/* Preview-scoped only. Classic/Simple companion assets and physical controls are independent. */
.patch-home-candidate{--ph-surface:#fafcf9;--ph-ink:#23352d;--ph-line:#d9e5dc;--ph-soft:#edf4ef;max-width:1180px;margin:0 auto;color:var(--ph-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.patch-home-candidate>h1,.patch-home-candidate>p{display:none}.patch-home-candidate [data-patch-home-intro]{margin:0 0 24px;padding:24px;background:linear-gradient(120deg,var(--ph-surface),var(--ph-soft));border:1px solid var(--ph-line);border-radius:24px}.patch-home-identity{display:flex;align-items:center;gap:18px}.patch-home-identity img{flex:none;object-fit:contain}.patch-home-identity h1{font:600 clamp(24px,3vw,36px)/1.2 system-ui;margin:6px 0;letter-spacing:-.03em}.patch-home-eyebrow{font-size:13px;color:var(--ph-ink);opacity:.75}.patch-home-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.patch-home-tools button{border:1px solid var(--ph-line);border-radius:999px;padding:10px 16px;background:var(--ph-surface);color:var(--ph-ink);font:500 14px system-ui;min-height:42px}.patch-home-tools button:hover{background:var(--ph-soft)}.patch-home-status{font-size:12px;line-height:1.6;opacity:.8;margin-bottom:0}.patch-home-candidate .patch-workspace{gap:20px}.patch-home-candidate .patch-sections{background:var(--ph-surface);border:1px solid var(--ph-line);border-radius:18px}.patch-home-candidate [data-patch-panel=conversation]>.card{background:var(--ph-surface);border:1px solid var(--ph-line);border-radius:20px;box-shadow:none}.patch-home-candidate [data-harness-form] textarea{font:16px/1.5 system-ui;min-height:110px;border-radius:14px}.patch-home-candidate button:focus-visible{outline:3px solid #5d957a;outline-offset:3px}:root[data-theme=dark] .patch-home-candidate{--ph-surface:#182923;--ph-ink:#e3efe6;--ph-line:#365345;--ph-soft:#203b2e}@media(max-width:650px){.patch-home-candidate [data-patch-home-intro]{padding:16px;border-radius:18px}.patch-home-identity{gap:12px;align-items:flex-start}.patch-home-identity img{width:48px;height:48px}.patch-home-candidate .patch-workspace{grid-template-columns:minmax(0,1fr)}.patch-home-candidate .patch-sections{position:static}.patch-home-tools button{flex:1 1 auto}.patch-home-candidate .card{padding:14px}.patch-home-candidate [data-harness-form] textarea{max-width:100%}}@media(prefers-reduced-motion:reduce){.patch-home-candidate *{scroll-behavior:auto!important}}
/* Conversational reading surface uses the approved system typography; shell/companion artwork stay independent. */
.patch-home-candidate :is(p,label,small,summary,select,option,button,h2,h3,a){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal;text-transform:none}.patch-home-candidate p{line-height:1.6}.patch-home-candidate [data-patch-home-intro]>p{font-weight:400}.patch-home-candidate .patch-home-status{font-size:12px}
/* UX03 reference correction: conversation canvas, mint navigation, bottom composer. */
.patch-home-candidate{max-width:1240px;min-width:0}.patch-home-candidate [data-patch-home-intro]{background:transparent;border:0;border-radius:0;padding:8px 0 12px;margin:0}.patch-home-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.patch-home-heading>div{display:flex;align-items:center;gap:14px}.patch-home-heading h1{font:700 34px/1.2 system-ui;margin:0;color:var(--ph-ink)}.patch-main-status{display:inline-flex;gap:8px;align-items:center;background:#e6faeb;color:#1a5037;padding:9px 13px;border-radius:30px;font:13px system-ui}.patch-main-status i{width:10px;height:10px;border-radius:50%;background:#16a34a}.patch-conversation-search{margin-left:auto;max-width:300px;flex:1 1 180px}.patch-conversation-search input{width:100%;background:var(--ph-surface);border:1px solid var(--ph-line);border-radius:14px;padding:12px;font:14px system-ui;color:var(--ph-ink)}.patch-home-heading>button{background:var(--ph-surface);border:1px solid var(--ph-line);color:var(--ph-ink);border-radius:12px;min-width:44px;min-height:44px;font:24px system-ui}.patch-home-tools{margin:12px 0 0}.patch-home-tools button{padding:6px 12px;min-height:34px;font-size:12px}.patch-home-candidate .patch-workspace{display:block}.patch-home-candidate .patch-sections{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-bottom:1px solid var(--ph-line);border-radius:0;margin-bottom:20px;padding:0 0 10px}.patch-home-candidate .patch-nav-tools{display:none}.patch-home-candidate .patch-section-links{display:flex;gap:6px;flex-wrap:wrap}.patch-home-candidate .patch-section-links button{border-radius:22px;min-height:36px;padding:7px 12px;font-size:13px}.patch-home-candidate .patch-section-links button[aria-pressed=true]{background:#d2f1de;color:#15583c}.patch-home-candidate [data-patch-panel=conversation]>.card{border:0;background:transparent;padding:0;display:flex;flex-direction:column;gap:16px}.patch-home-candidate [data-patch-panel=conversation]>.card>h2{display:none}.patch-home-candidate [data-patch-panel=conversation]>.card>p{font-size:12px}.patch-home-candidate #harness-chat-messages{min-height:100px;display:flex;flex-direction:column;gap:14px}.patch-home-candidate .harness-chat-message{border:1px solid var(--ph-line);border-radius:18px;background:var(--ph-surface);padding:14px 18px;max-width:85%;align-self:flex-start}.patch-home-candidate .harness-chat-message.user{align-self:flex-end;background:var(--ph-soft)}.patch-home-candidate .harness-chat-message p{margin:6px 0;white-space:pre-wrap}.patch-home-candidate .harness-chat-message strong,.patch-home-candidate .harness-chat-message small{font-size:11px;color:var(--ph-ink);opacity:.7}.patch-home-candidate [data-patch-review-cards]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.patch-space-card{background:var(--ph-surface);border:1px solid var(--ph-line);border-radius:18px;display:grid;grid-template-columns:48px 1fr;gap:12px;padding:18px}.patch-space-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#d9f7e2;color:#126141;font:32px system-ui}.patch-dnd-icon{background:#ffe5df;color:#c42c15}.patch-space-card h3{margin:0;font:600 16px system-ui}.patch-space-card p{margin:5px 0;font:13px/1.5 system-ui}.patch-space-card small{font-size:11px;opacity:.7}.patch-space-card button{grid-column:2;background:transparent;color:var(--ph-ink);border:0;padding:6px 0;text-align:left;min-height:36px}.patch-home-character{display:flex;gap:18px;align-items:center;margin:0 0 8px}.patch-home-character img{object-fit:contain;image-rendering:auto}.patch-home-character p{border:1px solid var(--ph-line);border-radius:18px;padding:16px;font:16px/1.5 system-ui;background:var(--ph-surface);max-width:280px}.patch-home-character small{display:block;font-size:12px;opacity:.7}.patch-home-candidate .patch-home-composer{display:grid;grid-template-columns:48px minmax(0,1fr) 64px;gap:10px;background:var(--ph-surface);border:1px solid var(--ph-line);border-radius:28px;padding:12px;box-shadow:0 8px 24px #1533260a;position:sticky;bottom:12px}.patch-home-composer>label:first-child,.patch-home-composer>details{grid-column:1/-1;font-size:12px}.patch-home-composer>label:has(textarea){grid-column:2;grid-row:3;font-size:0;min-width:0;margin:0}.patch-home-candidate .patch-home-composer textarea{min-height:48px;height:58px;border:0;background:transparent;padding:10px 4px;resize:vertical;border-radius:0}.patch-home-composer>p{grid-column:1/-1;grid-row:4;font-size:10px;margin:0;opacity:.7}.patch-home-composer>button.primary{grid-column:3;grid-row:3;align-self:center;min-height:46px;border-radius:30px;background:#076649;color:white}.patch-home-composer>.patch-composer-voice{grid-column:1;grid-row:3;align-self:center;border:0;border-radius:50%;height:46px;background:#076649;color:white;font-size:22px}.patch-home-candidate [hidden]{display:none!important}
:root:not([data-theme=dark]) body:has(.patch-home-candidate) .shell{background:#fff}:root:not([data-theme=dark]) body:has(.patch-home-candidate) #app-pins{background:linear-gradient(150deg,#e8fbef,#f6fff9);border-radius:16px;padding:8px}:root:not([data-theme=dark]) body:has(.patch-home-candidate) #app-pins button{color:#164933;font-family:system-ui;text-transform:none;letter-spacing:normal}:root:not([data-theme=dark]) body:has(.patch-home-candidate) #app-pins button.active{background:#c5edcf}
@media(max-width:650px){.patch-home-heading{gap:10px}.patch-home-heading h1{font-size:28px}.patch-conversation-search{order:3;max-width:none;flex-basis:100%;margin:0}.patch-home-candidate [data-patch-review-cards]{grid-template-columns:1fr}.patch-home-character img{width:86px;height:86px}.patch-home-character p{padding:12px;font-size:14px}.patch-home-candidate .patch-home-composer{bottom:4px;padding:10px;gap:6px;grid-template-columns:44px minmax(0,1fr) 56px}.patch-home-candidate .patch-sections{overflow:visible}.patch-home-candidate .harness-chat-message{max-width:95%}}
#local-harness.patch-home-candidate .patch-sections{display:block;width:auto;position:static;min-width:0}#local-harness.patch-home-candidate .patch-section-links{display:flex;flex-direction:row;align-items:center;gap:6px;width:100%}#local-harness.patch-home-candidate .patch-section-links>button{width:auto;flex:none}#local-harness.patch-home-candidate [data-patch-panel=conversation]>.card{display:flex;flex-direction:column}#local-harness.patch-home-candidate [data-harness-chat-new]{order:0;align-self:flex-start}#local-harness.patch-home-candidate #harness-chat-messages{order:1}#local-harness.patch-home-candidate .harness-readiness{order:0}#local-harness.patch-home-candidate [data-patch-review-cards]{order:2}#local-harness.patch-home-candidate .patch-home-character{order:3}#local-harness.patch-home-candidate .patch-home-composer{order:4}#local-harness.patch-home-candidate .patch-home-heading label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:root:not([data-theme=dark]) body:has(.patch-home-candidate){background:#fff}:root:not([data-theme=dark]) body:has(.patch-home-candidate) .apprail{background:linear-gradient(160deg,#e8fbef,#f7fff9)}:root:not([data-theme=dark]) body:has(.patch-home-candidate) #app-pins{background:transparent}:root:not([data-theme=dark]) body:has(.patch-home-candidate) #top{font-family:system-ui}
#local-harness.patch-home-candidate .patch-home-composer{position:static;margin-top:8px}#local-harness.patch-home-candidate #harness-chat-messages{display:flex!important;min-height:80px}#local-harness.patch-home-candidate [data-patch-panel=conversation]>.card{min-height:70vh}#local-harness.patch-home-candidate .patch-home-character{margin-top:auto}#local-harness.patch-home-candidate [data-patch-panel=conversation]>.card>p:not(.harness-readiness){display:none}
/* Home voice controls share the existing local voice lifecycle; no automatic capture. */
#local-harness.patch-home-candidate .patch-home-composer{grid-template-columns:48px minmax(0,1fr) 58px 48px}
.patch-home-composer>.patch-composer-speaker{grid-column:4;grid-row:3;align-self:center;min-height:46px;border-radius:50%;border:1px solid var(--ph-line);background:var(--ph-soft);color:var(--ph-ink);font:15px system-ui}
.patch-home-composer>.patch-composer-speaker[aria-pressed=false]{opacity:.55}
.patch-home-composer>.patch-composer-stop{grid-column:1/-1;grid-row:5;justify-self:end;min-height:40px;background:var(--ph-soft);color:var(--ph-ink)}
.patch-composer-voice[aria-pressed=true]{background:#a43b35!important}
#local-harness.patch-home-candidate [data-patch-home-voice-status]{order:5;font:12px/1.5 system-ui;margin:0 12px;color:var(--ph-ink)}
#local-harness.patch-home-candidate [data-patch-voice-options]{order:6;border:1px solid var(--ph-line);border-radius:16px;padding:12px;color:var(--ph-ink)}
.patch-home-candidate [data-patch-voice-options] summary{cursor:pointer;font:13px system-ui;min-height:28px}
.patch-home-candidate #harness-voice{background:transparent;border:0;box-shadow:none;padding:10px 0;margin:0;min-width:0}
.patch-home-candidate #harness-voice textarea,.patch-home-candidate #harness-voice select{max-width:100%;font:15px system-ui}
.patch-home-character img{image-rendering:pixelated}
@media(max-width:650px){#local-harness.patch-home-candidate .patch-home-composer{grid-template-columns:44px minmax(0,1fr) 48px 44px;gap:4px}.patch-home-composer>button.primary{padding:8px;font-size:12px}.patch-home-composer>.patch-composer-speaker{font-size:12px}}
#local-harness.patch-home-candidate .patch-home-composer>label:has(textarea),#local-harness.patch-home-candidate .patch-home-composer>button.primary,#local-harness.patch-home-candidate .patch-home-composer>.patch-composer-voice,#local-harness.patch-home-candidate .patch-home-composer>.patch-composer-speaker{grid-row:2}
#local-harness.patch-home-candidate .patch-home-composer>button.primary,#local-harness.patch-home-candidate .patch-home-composer>.patch-composer-speaker{padding:0;white-space:nowrap;min-width:0;width:46px;height:46px;justify-self:center}
#local-harness.patch-home-candidate [data-patch-context-options]{grid-column:1/-1;grid-row:1;font:12px system-ui;color:var(--ph-ink)}
.patch-home-candidate [data-patch-context-options]>label{display:block}.patch-home-candidate [data-patch-context-options]>p{font:11px/1.5 system-ui;opacity:.75}
.patch-home-candidate [data-patch-context-options] summary{cursor:pointer;min-height:24px}
@media(max-width:650px){#local-harness.patch-home-candidate .patch-home-composer>button.primary,#local-harness.patch-home-candidate .patch-home-composer>.patch-composer-speaker{width:42px;height:44px}}
#local-harness.patch-home-candidate [data-patch-panel=conversation]>.card>p[data-patch-home-voice-status]{display:block}
.patch-home-character img[data-pose=thinking]{animation:patch-home-inspect 1.4s steps(2,end) infinite}.patch-home-character img[data-pose=talking]{animation:patch-home-explain .7s steps(2,end) infinite}
@keyframes patch-home-inspect{50%{transform:translateY(-2px)}}@keyframes patch-home-explain{50%{transform:rotate(1deg)}}
@media(prefers-reduced-motion:reduce){.patch-home-character img{animation:none!important}}
/* Shared first-party outline actions match the rest of the approved interface. */
.patch-home-heading>button,.patch-home-composer>.patch-composer-voice,.patch-home-composer>.patch-composer-speaker,.patch-home-composer>button.primary{display:grid;place-items:center}
.patch-home-heading>button .workspace-icon,.patch-home-composer>button .workspace-icon{width:22px;height:22px;margin:0;flex:none}.patch-space-icon .workspace-icon{width:27px;height:27px;margin:0}
/* Reference home gives the separate scientist more presence; keep narrow composer clear. */
.patch-home-character img{width:192px;height:192px;flex:none}
@media(max-width:650px){.patch-home-character img{width:96px;height:96px}.patch-home-character{gap:12px}.patch-home-character p{min-width:0}}
/* Secondary Patch sections collapse on phones without removing navigation or authority. */
.patch-home-candidate .patch-tools-toggle{display:none}
@media(max-width:650px){
 #local-harness.patch-home-candidate .patch-tools-toggle{display:block;min-height:44px;border:1px solid var(--ph-line);border-radius:12px;background:var(--ph-surface);color:var(--ph-ink);padding:8px 14px;font:14px system-ui}
 #local-harness.patch-home-candidate .patch-sections:not(.patch-tools-open) .patch-section-links{display:none}
 #local-harness.patch-home-candidate .patch-sections{margin-bottom:12px;padding-bottom:12px}
 #local-harness.patch-home-candidate .patch-section-links{margin-top:8px}
}
/* Phone Patch shell: conversation uses the full width; existing spaces/profile stay reachable. */
.patch-spaces-toggle{display:none}
@media(max-width:650px){
 body:has(.patch-home-candidate) #shell{display:block!important}
 body:has(.patch-home-candidate) .apprail{position:relative;top:auto;width:auto;height:auto;min-height:64px;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 16px;overflow:visible}
 body:has(.patch-home-candidate) .apprail .rail-wordmark{display:flex;align-items:center;padding:0;margin:0;border:0;flex:none}
 body:has(.patch-home-candidate) .apprail .seed-brand-window{display:block;width:40px;height:40px;margin:0}
 body:has(.patch-home-candidate) .apprail .seed-brand-icon{width:40px;height:40px;object-fit:contain}
 body:has(.patch-home-candidate) .apprail .seed-brand-label{display:none}
 body:has(.patch-home-candidate) .patch-spaces-toggle{display:block;min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:12px;background:transparent;color:inherit;font:14px system-ui}
 body:has(.patch-home-candidate) .apprail #app-pins{display:none}
 body:has(.patch-home-candidate) .apprail.patch-mobile-spaces-open #app-pins{display:flex;flex-wrap:wrap;order:3;flex-basis:100%;gap:6px;margin:0;padding:4px 0}
 body:has(.patch-home-candidate) .apprail #app-pins button{width:auto;min-width:64px;flex:1 1 80px;min-height:44px}
 body:has(.patch-home-candidate) .apprail .rail-account{margin:0 0 0 auto;padding:0;border:0;flex:none;max-width:120px}
 body:has(.patch-home-candidate) .apprail #profile-toggle{padding:0;min-height:44px;justify-content:center}
 body:has(.patch-home-candidate) .apprail #profile-toggle .brand-label{display:none}
 body:has(.patch-home-candidate) .apprail #profile-menu{left:auto;right:0;max-width:calc(100vw - 32px)}
 body:has(.patch-home-candidate) main{padding:0 16px 24px}
 body:has(.patch-home-candidate) #top{min-height:48px;margin-bottom:12px;padding:4px 0}
 #local-harness.patch-home-candidate .patch-home-heading h1{font-size:28px}
 #local-harness.patch-home-candidate .patch-home-tools{gap:6px;margin-top:10px}
}
@media(max-width:650px){
 body:has(.patch-home-candidate) .apprail .seed-brand-icon{position:static;left:auto;top:auto;transform:none;max-width:100%}
 #local-harness.patch-home-candidate .harness-readiness{display:none}
}
@media(max-width:650px){
 body:has(.patch-home-candidate) .apprail .profile-anchor{position:relative}
 body:has(.patch-home-candidate) .apprail #profile-menu{bottom:auto;max-height:calc(100dvh - 90px);overflow:auto}
}
