:root{color-scheme:light;--paper:#fafbf7;--ink:#26392f;--muted:#58675c;--accent:#355b43;--line:#dce3d6;--accent-hover:#274a34;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;font-size:1rem;line-height:1.6}a{color:inherit;text-underline-offset:.25em}button,input,textarea,select{font:inherit;accent-color:var(--accent)}button,a,input,textarea,summary{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}.skip{position:absolute;top:-80px;left:20px}.skip:focus{top:16px;background:var(--paper);z-index:2}.shell{max-width:1180px;margin:auto;padding:0 clamp(20px,5vw,72px)}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 0}.wordmark{display:inline-flex;align-items:center;gap:8px;font-size:1.3rem;font-weight:750;letter-spacing:-.07em;text-decoration:none}.brand-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}nav{display:flex;flex-wrap:wrap;gap:24px;font-size:.875rem}nav a{text-decoration:none}.hero{text-align:center;padding:55px 0 30px}.eyebrow,.label{color:var(--accent);font-size:.875rem;font-weight:650;letter-spacing:.07em;line-height:1.5}.eyebrow{text-transform:uppercase}h1{font-size:clamp(3rem,8vw,6.25rem);font-weight:550;line-height:1.04;letter-spacing:-.06em;margin:16px 0 24px}h2{font-size:1.5rem;line-height:1.3;letter-spacing:-.035em;font-weight:550}.intro{font-size:1.125rem;color:var(--muted);line-height:1.6;margin:0}.claim-area{max-width:510px;margin:20px auto 60px}.claim-area .label{margin:0 0 10px}.handle-line{display:flex;align-items:center;gap:4px;font-size:clamp(2.5rem,7vw,4rem);line-height:1.2;letter-spacing:-.055em;border-bottom:1px solid var(--ink);padding:6px 0 13px}.handle-line input{min-width:0;width:100%;border:0;padding:0;background:transparent;color:var(--ink);font:inherit;letter-spacing:inherit}.handle-line input::placeholder{color:var(--muted);opacity:1}.hint,.scope-note{color:var(--muted);font-size:.875rem}.hint{margin:12px 0 20px}.consent{display:flex;align-items:flex-start;gap:10px;font-size:.875rem;line-height:1.55;margin:20px 0}.consent input{width:18px;height:18px;flex:none;accent-color:var(--accent);margin-top:2px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:11px 18px;min-height:46px;border:1px solid var(--accent);border-radius:3px;color:var(--ink);background:transparent;font-weight:550;text-decoration:none}.primary:hover{background:#eef2e8;border-color:var(--ink)}.primary:disabled{opacity:.65;cursor:wait}.status{min-height:1.5em;font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}.status.error{color:#972f2a}#receipt{overflow-wrap:anywhere}#receipt h2{font-size:clamp(2rem,6vw,3rem);margin:8px 0 14px}#receipt p{margin:12px 0}.principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin:0 0 48px;gap:24px}.principles div+div{border-left:1px solid var(--line);padding-left:24px}.principles dt{font-size:.875rem;font-weight:650;color:var(--accent);margin-bottom:6px}.principles dd{margin:0;color:var(--muted)}.discover{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;padding-bottom:30px}.discover h2{margin:0 0 8px}.discover p{color:var(--muted);margin:0}.lookup-row{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);margin-top:10px}.lookup-row input{width:100%;min-width:0;border:0;padding:10px 0;background:transparent;color:var(--ink)}.lookup-row button{flex:none;border:0;background:transparent;color:var(--accent);padding:11px 0 11px 12px}.scope-note{max-width:760px;margin:0 0 45px}footer{display:flex;flex-wrap:wrap;gap:12px 24px;border-top:1px solid var(--line);padding:24px 0 30px;font-size:.875rem;color:var(--muted)}footer span{margin-right:auto}.document{max-width:740px;margin:55px auto 70px;overflow-wrap:anywhere}.document h1{font-size:clamp(2.25rem,6vw,4rem);margin-bottom:20px}.document h2{margin-top:32px}.document p{color:var(--muted)}.document label{display:block;margin:16px 0 6px}.field{width:100%;border:1px solid var(--line);border-radius:2px;padding:11px 12px;background:transparent;color:var(--ink)}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.secondary{border:1px solid var(--line);border-radius:2px;padding:10px 14px;background:transparent;color:var(--ink);min-height:44px}.danger{color:#972f2a}.facts{margin:24px 0;border-top:1px solid var(--line)}.facts div{display:grid;grid-template-columns:130px 1fr;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.facts dt{font-weight:550}.facts dd{margin:0;overflow-wrap:anywhere}pre{max-width:100%;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;font-size:.875rem}code{overflow-wrap:anywhere}details{margin:22px 0}summary{cursor:pointer}input[type=file]{max-width:100%}
@media(max-width:640px){header{align-items:flex-start;padding:22px 0;gap:20px}nav{justify-content:flex-end;gap:8px 14px;max-width:220px}.hero{padding:38px 0 28px}.claim-area{margin-bottom:40px}.principles{grid-template-columns:1fr;gap:0;padding:10px 0}.principles div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;padding:12px 0}.principles div+div{padding-left:0;border-left:0;border-top:1px solid var(--line)}.discover{grid-template-columns:1fr;gap:22px}.document{margin-top:35px}.facts div{grid-template-columns:1fr;gap:4px}.primary{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.context-editor,.ask-area{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.context-editor h3,.ask-area h3{font-size:1.25rem;line-height:1.35;font-weight:550;margin:0 0 14px}.context-editor label{margin:0}.context-editor textarea{display:block;min-height:140px;resize:vertical;line-height:1.6}.ask-area label{display:block;margin-bottom:6px}.answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem}.answer.error{color:#972f2a}
.step-label{display:block;font-weight:550;margin-bottom:8px!important}.prompt-step{margin-top:24px}.prompt-step h4{font-size:1rem;font-weight:550;line-height:1.5;margin:0 0 12px}.prompt-step details{margin:14px 0}.prompt-text{font-size:.875rem;margin-top:12px}.text-button{border:0;background:transparent;color:var(--accent);padding:8px 0;text-decoration:underline;text-underline-offset:.25em;min-height:44px}.context-editor form{margin-top:24px}.context-editor select{max-width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}

/* A single entry point, then one private reading and writing surface. */
.onboarding-page{background:var(--paper);color:var(--ink)}
.onboarding-page .primary{border:1px solid var(--accent);border-radius:3px;background:transparent;color:var(--ink);padding:11px 20px;min-height:48px;font-weight:550;justify-content:center;gap:12px}
.onboarding-page .primary:hover{background:#eef2e8;border-color:var(--ink)}.onboarding-page .primary:disabled{cursor:default;opacity:.55}
.handle-shell{width:min(100%,820px);padding:0 32px;margin:auto}.handle-header{height:96px;padding:24px 0;gap:20px;position:relative;border:0}.handle-header .wordmark{font-size:1.25rem;letter-spacing:-.04em;color:var(--ink);text-decoration:none;font-weight:750}.handle-header #chat-handle{font-size:.875rem;margin-right:auto;color:var(--muted)}
.handle-entry{padding:clamp(50px,12vh,120px) 0 24px;max-width:560px;margin:0 auto}.handle-entry h1{font-size:clamp(2.8rem,7vw,4.9rem);line-height:1.08;letter-spacing:-.055em;font-weight:550;margin:0 0 48px}.handle-entry .handle-line{font-size:clamp(2rem,5vw,3rem);gap:8px;border-bottom:1px solid var(--line);padding:4px 0 12px}.handle-entry .handle-line input{color:var(--ink);width:100%;min-width:0}.handle-entry .handle-line input::placeholder{color:var(--muted)}.handle-entry .hint{margin:14px 0 26px}.handle-entry .status{margin-top:18px}.entry-footer{max-width:560px;margin:0 auto;border:0;padding:0 0 30px}
.private-chat{height:calc(100dvh - 96px);display:flex;flex-direction:column;min-height:0}.chat-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scroll-padding:24px;padding:28px 16px 20px 0;scrollbar-width:thin}.chat-log{display:flex;flex-direction:column;gap:32px}.chat-turn{max-width:640px;overflow-wrap:anywhere}.chat-turn.user{align-self:flex-end;width:fit-content;max-width:80%;text-align:left;padding-left:28px;border-left:1px solid var(--line)}.speaker{font-size:.875rem;font-weight:650;color:var(--accent);margin:0 0 8px}.user .speaker{color:var(--muted)}.turn-text{white-space:pre-wrap;font-size:1.125rem;line-height:1.7;letter-spacing:-.015em;margin:0}.chat-step{max-width:640px;margin-top:24px}.chat-step .consent{margin:0 0 20px}.chat-step details{margin:20px 0}.file-label{display:block;font-weight:550;margin-bottom:10px}.chat-step input[type=file]{font-size:.875rem;min-height:44px}.chat-step .field{margin-bottom:12px}.chat-bottom{flex:none;padding:10px 0 14px}.chat-bottom .status{margin:0 0 10px;min-height:0}.chat-composer{display:flex;align-items:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:16px}.chat-composer textarea{width:100%;min-width:0;min-height:48px;max-height:160px;resize:vertical;border:0;background:transparent;color:var(--ink);padding:12px 0;line-height:1.5}.chat-composer .primary{flex:none}.chat-privacy{font-size:.8125rem;color:var(--muted);margin:12px 0 0}.install-step{border-top:1px solid var(--line);padding:22px 0 0}.install-options{display:flex;flex-wrap:wrap;gap:16px 26px;margin:12px 0;font-size:1rem}.install-options a{font-weight:550;color:var(--accent)}.install-options span{color:var(--muted)}.handle-header details{margin:0;position:relative;font-size:.875rem}.handle-header summary{list-style:none;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:.3em}.handle-header summary::-webkit-details-marker{display:none}.handle-tools{position:absolute;right:0;top:48px;background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0;z-index:2;min-width:220px;display:flex;flex-direction:column;align-items:flex-start}.handle-tools a,.handle-tools button{font-size:.875rem;min-height:44px;padding:10px 12px;text-align:left;display:block;width:100%;color:var(--ink)}
@media(max-width:640px){.handle-shell{padding:0 22px}.handle-header{height:76px;align-items:center;padding:16px 0;gap:12px}.handle-entry{padding-top:56px}.handle-entry h1{margin-bottom:40px}.private-chat{height:calc(100dvh - 76px)}.chat-scroll{padding-top:20px;padding-right:4px}.turn-text{font-size:1.0625rem}.chat-log{gap:26px}.chat-turn.user{padding-left:16px;max-width:90%}.chat-composer{gap:8px}.chat-composer .primary{padding:12px 16px}.chat-privacy{font-size:.8125rem}.handle-tools{min-width:220px}.handle-header #chat-handle{overflow-wrap:anywhere}.install-options{flex-direction:column;gap:10px}}

body[data-local-preview] .handle-header .wordmark::after{content:'LOCAL PREVIEW';display:block;font-size:.65rem;letter-spacing:.06em;font-weight:500;color:var(--muted)}

.onboarding-page{min-height:100dvh}.studio{max-width:660px;margin:0 auto;padding:20px 0 36px}.studio-toolbar{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:34px;font-size:.875rem}.studio-toolbar .text-button{font-size:.875rem;text-decoration:none}.studio-empty{padding:42px 0 20px}.studio-empty h2{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;letter-spacing:-.04em;font-weight:500;max-width:480px;margin:0 0 20px}.studio-empty p{color:var(--muted);max-width:460px;margin-bottom:24px}.studio-rehearsal-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.875rem;margin:0 0 14px}.studio-rehearsal-bar input{border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);width:150px;min-width:0;padding:8px 2px}.studio-rehearsal-bar .text-button{margin-left:auto;font-size:.875rem}.studio-question-choice{margin:12px 0 30px;font-size:.875rem;color:var(--muted)}.studio-question-choice .field{margin-top:12px}.studio-question{font-size:1.2rem;line-height:1.6;letter-spacing:-.015em;margin:0 0 28px;white-space:pre-wrap;overflow-wrap:anywhere}.studio-proposed{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:8px 0 14px;resize:vertical;font-size:1.125rem;line-height:1.65;min-height:100px}.studio-evidence{font-size:.875rem;color:var(--muted);margin:14px 0}.studio-evidence details{margin:14px 0}.studio-evidence .source-text{color:var(--ink)}.studio-decisions{display:flex;align-items:center;gap:10px 24px;flex-wrap:wrap;margin:24px 0 10px}.studio-privacy{font-size:.8125rem;color:var(--muted);margin-top:30px}.studio.drag-active{outline:2px dashed var(--accent);outline-offset:12px}.studio-dialog{width:min(620px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink)}.studio-dialog::backdrop{background:rgb(38 57 47 / .10)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-heading h2{font-size:1.25rem;font-weight:500;line-height:1.4;margin:0}.dialog-heading button{font-size:.875rem;color:var(--muted)}.studio-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:22px}.studio-tabs button{background:none;border:0;padding:10px 0;color:var(--muted);border-bottom:2px solid transparent}.studio-tabs button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--accent)}.studio-dialog label{display:block;margin:16px 0 7px}.studio-dialog .field{margin-bottom:12px;line-height:1.6}.studio-dialog .primary{margin-top:12px}.studio-input-row{display:flex;align-items:center;gap:12px;margin:12px 0}.studio-input-row label{margin:0;flex:none}.studio-input-row .field{margin:0}.studio-source{border-top:1px solid var(--line);padding:18px 0}.studio-source strong{font-size:1rem;font-weight:500;overflow-wrap:anywhere}.studio-source>span{display:block;margin:5px 0}.studio-source p{margin:6px 0}.studio-source details{margin:12px 0;font-size:.875rem}.source-text{white-space:pre-wrap;overflow-wrap:anywhere}.studio-inline{display:flex;gap:10px 24px;align-items:center;flex-wrap:wrap}.studio-inline .field{flex:1;min-width:180px}.studio-dialog .text-button{font-size:.875rem}.studio-dialog input[type=file]{width:100%;min-height:44px}
@media(max-width:640px){.studio{padding-top:4px}.studio-toolbar{gap:4px 18px;margin-bottom:24px}.studio-empty{padding-top:24px}.studio-rehearsal-bar .text-button{margin-left:0}.studio-decisions{gap:8px 18px}.studio-dialog{padding:20px}.studio-input-row{display:block}.studio-input-row label{margin-bottom:8px}.studio-proposed{font-size:1rem}.studio-question{font-size:1.125rem}}

/* Keep a rehearsal to one question, one editable reply and one decision. */
.studio{max-width:600px;padding-top:26px}
.studio-toolbar{justify-content:space-between;padding-bottom:10px;margin-bottom:32px}
.studio-toolbar:has(.studio-context-tools[hidden]):has(#studio-inbox-toggle[hidden]){display:none}
.studio-context-tools{display:flex;align-items:center;gap:24px}
.studio-question-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:10px}
.studio-question-heading .speaker{margin:0;color:var(--muted);font-weight:500}
.studio-question-heading .text-button{font-size:.8125rem;color:var(--muted);text-decoration:none}
.studio-question{font-size:clamp(1.4rem,3vw,1.8rem);font-weight:500;line-height:1.45;letter-spacing:-.025em;margin-bottom:30px}
.studio label.speaker{display:block;color:var(--muted);font-size:.8125rem;font-weight:500}
.studio-proposed{font-size:1.0625rem;line-height:1.7;padding-top:4px;min-height:0}
#studio-uncertainty:empty,#studio-message:empty{display:none}
.studio-rehearsal-bar{gap:6px;margin:16px 0 10px;color:var(--muted);font-size:.8125rem}
.studio-rehearsal-bar input{width:128px;padding:6px 2px;color:var(--ink)}
.studio-rehearsal-bar .hint{font-size:.8125rem;margin:0 0 0 auto}
.studio-decisions{gap:8px 22px;margin:18px 0}
.studio-decisions .primary{font-size:.875rem;padding:10px 18px;min-height:44px}
.studio-decisions .text-button{font-size:.875rem;color:var(--ink);text-decoration:none}
.studio-evidence{font-size:.8125rem;margin:18px 0;color:var(--muted)}
.studio-evidence>summary{min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
.studio-evidence>summary::after{content:'+'}
.studio-evidence[open]>summary::after{content:'−'}
.studio-evidence>summary::-webkit-details-marker{display:none}
.studio-evidence>label{display:block;margin:22px 0 8px}
.studio-evidence>.field{font-size:.875rem}
.studio-evidence>.speaker{margin-top:24px;color:var(--muted);font-weight:500}
.studio-privacy{margin-top:26px}
@media(max-width:640px){.studio{padding-top:12px}.studio-context-tools{gap:20px}.studio-rehearsal-bar{gap:5px}.studio-rehearsal-bar input{width:108px}.studio-rehearsal-bar .hint{margin-left:0}.studio-decisions{gap:6px 16px}.studio-question{margin-bottom:24px}.studio-proposed{font-size:1rem}}

/* One action at a time, with its reason beside it. */
.identity-welcome{padding-top:clamp(36px,7vh,70px)}
.identity-welcome h1{font-size:clamp(2.6rem,6vw,4.4rem);margin-bottom:24px}
.identity-promises{font-size:1.0625rem;line-height:1.75;color:var(--muted);margin:0 0 26px}
.identity-chain{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.8125rem;color:var(--muted);margin:0 0 28px}
.identity-chain strong{color:var(--ink);font-weight:550}
.identity-step,.identity-journey,.identity-step-heading{max-width:560px;margin:36px auto 0;padding:22px 0 28px}
.identity-step h1,.identity-step h2,.identity-journey h2,.identity-step-heading h2{font-size:clamp(1.9rem,4.5vw,2.8rem);line-height:1.2;letter-spacing:-.04em;font-weight:500;margin:0 0 24px}
.journey-position{font-size:.75rem;color:var(--muted);margin:0 0 22px;letter-spacing:.025em}
.journey-reason{color:var(--muted);font-size:.9375rem;margin:16px 0 24px;line-height:1.5}
.identity-step .primary,.identity-journey .primary{margin-top:14px;text-decoration:none}
.identity-journey input,.identity-journey textarea{max-width:100%}
.identity-journey .journey-actions,.identity-journey .journey-choices{display:flex;gap:12px 22px;flex-wrap:wrap;align-items:center}
.identity-journey .source-text{max-height:40dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}
.identity-journey .text-button{font-size:.875rem}
.identity-journey .status:empty,#chat-message:empty,#saved-message:empty{display:none}
.identity-journey .hint{font-size:.8125rem}
.ownership-flow{display:block;height:auto;max-width:560px;margin:0 auto}
.ownership-flow .identity-step-heading{padding-bottom:0}
.ownership-flow .chat-scroll{overflow:visible;padding:0}
.ownership-flow .chat-step{margin-top:12px}
.ownership-flow .chat-bottom{padding:0}
.ownership-flow .consent{margin-top:0}
#local-connect details{font-size:.875rem;color:var(--muted);margin-top:24px}
#local-connect details p{margin:10px 0;font-size:.875rem}
#own-ai-heading{margin:0 0 12px;border-top:1px solid var(--line);padding-top:16px}
#own-ai-heading h2{font-size:1.125rem;margin:0 0 6px}
#own-ai-heading .journey-reason{font-size:.8125rem;margin:0 0 8px}
#own-ai-heading .text-button{font-size:.8125rem;padding-right:22px}
.handle-tools{max-height:calc(100dvh - 120px);overflow:auto}
@media(max-width:640px){.identity-welcome{padding-top:28px}.identity-welcome h1{font-size:clamp(2.3rem,9.5vw,3.2rem);margin-bottom:28px}.identity-promises{font-size:.9375rem}.identity-chain{gap:7px}.identity-step,.identity-journey,.identity-step-heading{margin-top:18px;padding-top:14px}.journey-position{margin-bottom:18px}.identity-step h1,.identity-step h2,.identity-journey h2,.identity-step-heading h2{margin-bottom:20px}.journey-reason{font-size:.875rem}.identity-step .primary,.identity-journey .primary{font-size:.9375rem}}

/* A device-local workspace: three named places, no decorative containers. */
.setup-page{max-width:600px;margin:32px auto 48px;font-size:.9375rem;line-height:1.7}.setup-page h1{font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.2;font-weight:500;letter-spacing:-.04em}.setup-page>p,.setup-page li p{color:var(--muted)}.setup-page ol{padding-left:22px}.setup-page li{padding:8px 0}.setup-page pre{font-size:.8125rem}
.identity-welcome h1{font-size:clamp(2.3rem,5.5vw,3.8rem);max-width:580px}
.workspace{max-width:560px;margin:26px auto 48px;overflow-wrap:anywhere}
.workspace-local{font-size:.75rem;color:var(--accent);margin:0 0 18px}
.workspace-nav{display:flex;gap:12px 26px;max-width:none;justify-content:flex-start;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:30px}
.workspace-nav button{font-size:.875rem;text-decoration:none;color:var(--muted)}
.workspace-nav button[aria-current=page]{color:var(--ink);text-decoration:underline;text-underline-offset:12px}
.workspace-body h2{font-size:clamp(1.7rem,4.5vw,2.6rem);line-height:1.2;letter-spacing:-.04em;font-weight:500;margin:0 0 18px}
.workspace-body>.journey-reason{margin:12px 0 24px}
.workspace-body .hint{font-size:.8125rem;line-height:1.65;margin:12px 0;color:var(--muted)}
.workspace-body>button,.workspace-body>a{margin:12px 22px 0 0}
.workspace-body>details>.text-button{margin-right:20px}

.handle-entry .handle-line:focus-within{border-bottom-color:var(--accent)}
.handle-entry .handle-line input:focus{outline:none;box-shadow:none}
.handle-entry .handle-line input:focus::placeholder{opacity:0}

/* Actions look like controls; supporting text waits until requested. */
.onboarding-page .primary{background:var(--accent);color:var(--paper);border-color:var(--accent);font-weight:600}
.onboarding-page .primary:hover{background:#294b36;border-color:#294b36;color:var(--paper)}
.onboarding-page .secondary,.workspace-body button.text-button,.chat-step button.text-button{border:1px solid var(--line);border-radius:3px;padding:9px 14px;min-height:44px;text-decoration:none;color:var(--ink);background:transparent}
.workspace-body button.text-button:hover,.chat-step button.text-button:hover{border-color:var(--accent)}
.workspace-nav button.text-button{border:0;border-radius:0;padding:10px 0;background:none}
.workspace-body summary,.setup-page summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;min-height:44px;color:var(--ink)}
.workspace-body summary::after,.setup-page summary::after{content:'+';flex:none;color:var(--accent)}
.workspace-body details[open]>summary::after,.setup-page details[open]>summary::after{content:'−'}
.workspace-body summary::-webkit-details-marker,.setup-page summary::-webkit-details-marker{display:none}
.workspace-body .hint,.workspace-body .journey-reason{margin:10px 0 18px}
.workspace-inspect{margin-left:auto;font-size:.8125rem;color:var(--accent)}
.identity-welcome .identity-promises{margin-bottom:24px}
.identity-welcome h1{margin-bottom:20px}
.setup-page h1{margin-bottom:14px}.setup-page .journey-reason{margin:0 0 22px}
.setup-page>details{border-top:1px solid var(--line);padding-top:8px}
.setup-page .setup-open-source{margin:18px 0}.setup-page .setup-footer{margin-top:24px}
.journey-choices{display:flex;flex-wrap:wrap;gap:10px}.chat-step>button+button{margin-left:12px}
.workspace-body .workspace-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.workspace-body details{font-size:.875rem;margin:22px 0}
.workspace-body summary{min-height:44px;display:flex;align-items:center}
.workspace-body label:has(.field){display:block;font-size:.875rem;margin:18px 0}
.workspace-body .field{display:block;margin-top:8px;font-size:1rem;line-height:1.6;resize:vertical}
.workspace-body .source-text{font-size:.9375rem;max-height:40dvh;overflow:auto;line-height:1.7}
.workspace-source,.workspace-request{border-top:1px solid var(--line);padding:16px 0}
.workspace-source details{margin:0}.workspace-source details+details{margin-top:4px}
.workspace-source summary{overflow-wrap:anywhere}
.workspace-source details>button{font-size:.8125rem;margin-right:20px}
.workspace-sources{margin:22px 0}
.workspace-source details>button{font-size:.8125rem}
.workspace-drop{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:24px 0}
.workspace-drop label{display:block;margin-bottom:12px;font-size:.9375rem}
.workspace-drop input[type=file]{font-size:.8125rem;max-width:100%;min-height:44px}
.workspace-drop.drag-active{outline:2px dashed var(--accent);outline-offset:8px}
.workspace-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:8px 0;font-size:.875rem}
.workspace-check input{flex:none;accent-color:var(--accent)}
.workspace-question{font-size:1.25rem;white-space:pre-wrap;line-height:1.5}
.workspace-rule-path{padding-left:22px;color:var(--muted);font-size:.9375rem;line-height:1.8}
.workspace #workspace-message:empty{display:none}
.workspace label>input[type=file]{display:block;margin-top:12px}
@media(max-width:640px){.workspace{margin-top:16px}.workspace-nav{gap:8px 20px;margin-bottom:24px}.workspace-body h2{font-size:1.8rem}.identity-welcome h1{font-size:clamp(2.2rem,8.5vw,3.2rem)}}

/* A short explanation first; the data lifecycle opens on request. */
.document .notice-intro{font-size:1.125rem;line-height:1.65;max-width:640px;margin-bottom:26px}
.data-path{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;list-style:none;padding:0;margin:22px 0;color:var(--ink);font-size:.875rem}
.data-path li+li::before{content:'→';color:var(--muted);margin-right:18px}
.notice-details{border-top:1px solid var(--line);margin:30px 0 20px}
.notice-details>details{border-bottom:1px solid var(--line);margin:0;padding:8px 0}
.notice-details>details>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;list-style:none;font-weight:550;line-height:1.4}
.notice-details>details>summary::after{content:'+';font-weight:400;color:var(--muted)}
.notice-details>details[open]>summary::after{content:'−'}
.notice-details>details>summary::-webkit-details-marker{display:none}
.notice-details details p,.notice-details details ol{font-size:.9375rem;line-height:1.7}
.notice-details details ol{padding-left:22px;color:var(--muted)}
.data-table{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.65;margin:16px 0;color:var(--muted)}
.data-table th,.data-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:12px 12px 12px 0}
.data-table th{font-weight:550;color:var(--ink)}
.data-table td:first-child{width:120px;color:var(--ink)}
.data-table th:first-child,.data-table td:first-child{overflow-wrap:normal;word-break:normal}
.notice-links{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:.875rem;margin:24px 0}
@media(max-width:640px){.document .notice-intro{font-size:1rem}.data-path{gap:8px 12px}.data-path li+li::before{margin-right:12px}.notice-details>details>summary{font-size:.9375rem}.data-table td:first-child{width:88px}.data-table th,.data-table td{padding-right:8px}}

/* Explanations sit beside their action and open only when needed. */
.identity-welcome .identity-promises{margin-bottom:22px}
.workspace-availability{font-size:.75rem;color:var(--muted);margin:-12px 0 22px}
.workspace-body>.primary{margin-top:0}
.workspace-source summary{gap:12px}
.workspace-sources:empty{display:none}
.setup-page{max-width:560px;margin-top:36px}
.setup-page h1{margin:0 0 18px}.setup-page>.journey-reason{margin:0 0 22px}
.setup-command-label{font-size:.8125rem;color:var(--ink)!important;margin:24px 0 8px}
.setup-page .install-command{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.65;padding:16px 0;margin:0 0 16px}
.install-command code{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
.setup-copy-row{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}
.setup-copy-row .status{margin:0;min-height:0}.setup-copy-row .status:empty{display:none}
.setup-open-source{margin:26px 0;color:var(--ink)!important;font-size:.875rem}.setup-open-source strong{font-weight:550}
.setup-page>details{border-top:1px solid var(--line);margin:0;padding:5px 0}
.setup-page>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:44px;font-size:.875rem;color:var(--ink)}
.setup-page>details>summary::after{content:'+';color:var(--muted)}.setup-page>details[open]>summary::after{content:'−'}.setup-page>details>summary::-webkit-details-marker{display:none}
.setup-page>details p{font-size:.875rem;color:var(--muted)}
.setup-footer{font-size:.8125rem;margin-top:26px}
@media(max-width:640px){.setup-page{margin-top:24px}.setup-page h1{font-size:2rem}.setup-copy-row{gap:12px}.identity-welcome h1{font-size:clamp(2.1rem,8vw,3rem)}}

/* One neutral control language across public and private surfaces. */
.primary{background:var(--accent);color:var(--paper);border-color:var(--accent)}
.primary:hover{background:#294b36;color:var(--paper);border-color:#294b36}
.draft-exit{max-width:420px}.draft-exit p{color:var(--muted)}.draft-exit .workspace-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}

.workspace-state-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;margin:0 0 18px}.workspace-state-line .workspace-local,.workspace-state-line .workspace-availability{margin:0;font-size:.75rem;line-height:1.6}.workspace-source>details>summary{flex-wrap:wrap;justify-content:flex-start;column-gap:12px;row-gap:2px}.workspace-source>details>summary .hint{margin:0;font-size:.75rem}.workspace-inspect{white-space:nowrap}
/* WEB052: quiet object-owned controls and small explanatory diagrams. */
.ui-control{display:inline-flex!important;align-items:center;justify-content:center;position:relative;min-width:44px;min-height:44px;padding:10px!important;gap:0!important;border:0!important;border-radius:50%!important;background:none!important;text-decoration:none!important;color:var(--muted);flex:none}.ui-control:hover,.ui-control[aria-current=page],.ui-control[aria-pressed=true]{color:var(--accent);background:#edf1e8!important}.ui-control.primary{color:var(--accent)}.ui-symbol{width:24px;height:24px;flex:none}.ui-control:focus-visible{outline:1px solid var(--accent);outline-offset:3px}.ui-control:focus-visible::after{content:attr(data-label);position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);width:max-content;max-width:min(160px,65vw);background:var(--paper);padding:4px 7px;color:var(--ink);font-size:.75rem;line-height:1.45;pointer-events:none;z-index:15;white-space:normal}.handle-header .ui-control:focus-visible::after{top:calc(100% + 7px);bottom:auto;left:auto;right:0;transform:none}.brand-character{display:block;width:34px;height:34px}.welcome-diagrams{display:flex;align-items:center;justify-content:flex-start;gap:28px;flex-wrap:wrap;margin:28px 0}.relationship-diagram{margin:18px 0;display:flex;flex-direction:column;gap:14px;color:var(--muted);max-width:100%}.diagram-flow{display:flex;align-items:center;gap:clamp(8px,2vw,18px);max-width:100%}.diagram-node{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0;text-align:center}.diagram-node .ui-symbol{width:30px;height:30px}.diagram-caption{font-size:.75rem;line-height:1.4;overflow-wrap:anywhere;max-width:90px}.diagram-arrow{color:#93a18f;width:20px;height:20px;flex:none}.diagram-share{padding:0 0 12px}.diagram-share .diagram-flow:first-child{opacity:.7}.handle-entry h1{font-size:clamp(2.3rem,6vw,4rem);max-width:500px;margin-bottom:20px}.identity-welcome #begin-handle.ui-control{min-width:58px;min-height:58px;border:1px solid var(--line)!important}.handle-header .wordmark .brand-character{width:34px;height:34px}.entry-footer{gap:6px}
.workspace{max-width:740px;margin:8px auto 36px;position:relative}.workspace-state-line{position:absolute;right:0;top:0;display:flex;align-items:center;gap:3px;margin:0}.workspace-state-line .ui-control{min-width:40px;min-height:44px}.workspace-state-line button.workspace-state{border:0;background:none}.workspace-nav{width:max-content;gap:5px;margin:0 0 28px;padding:0;border:0}.workspace-nav .ui-control{padding:10px!important;border-radius:50%!important}.ui-count{position:absolute;right:0;top:0;font-size:.65rem;line-height:1;color:var(--accent);background:var(--paper);padding:3px;border-radius:50%}.workspace-body{padding-bottom:170px;max-width:620px;margin:0 auto;overflow-wrap:anywhere}.workspace-body h2{font-size:clamp(1.35rem,4vw,1.8rem);line-height:1.4;max-width:calc(100% - 54px);font-weight:500;margin:0 0 18px;letter-spacing:-.025em}.workspace-body>.relationship-diagram{margin:20px 0}.workspace-body>.journey-reason{font-size:.8rem;margin:10px 0 20px}.workspace-body .field{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0;background:none}.workspace-body .field:focus{outline:0;border-bottom-color:var(--accent)}.workspace-body label:has(.field){margin:18px 0;display:block}.workspace-body details{margin:14px 0}.workspace-body summary{font-size:.8125rem}.workspace-body .hint{font-size:.8rem;line-height:1.6;margin:14px 0}.workspace-body .source-text{border:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:calc(100dvh - 330px);line-height:1.65}.workspace-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-body.context-canvas{padding-bottom:180px}.workspace-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:24px 30px;margin:20px 0 30px}.workspace-source.source-tile{padding:0;border:0;min-width:0}.source-open{background:none;border:0;width:100%;padding:12px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:110px;color:var(--muted)}.source-open>.ui-symbol{width:42px;height:42px;opacity:.75}.source-open>img{max-height:140px;max-width:100%;object-fit:contain;display:block}.source-name{font-size:.8rem;line-height:1.5;display:block;text-align:center;max-width:100%;overflow-wrap:anywhere}.source-badge{font-size:.68rem;line-height:1.4;color:var(--muted)}.source-badge:empty{display:none}.source-reader>img{display:block;max-width:100%;max-height:calc(100dvh - 350px);object-fit:contain;margin:10px auto 24px}.source-reader>.ui-control:first-of-type{position:absolute;top:72px;right:0}.workspace-body .workspace-drop{display:flex;align-items:center;justify-content:center;gap:8px;min-height:96px;padding:16px 0;border:1px dashed var(--line);margin:24px 0}.workspace-drop>label{margin:0}.workspace-drop>label>.ui-symbol{display:none}.workspace-note>summary{justify-content:flex-start;gap:12px}.workspace-note>summary::after{margin-left:auto}.workspace-empty{display:flex;align-items:center;gap:12px;color:var(--muted);padding:14px 0}.workspace-empty>.ui-symbol{width:30px;height:30px}.workspace-request{border-top:1px solid var(--line);padding:20px 0}.workspace #workspace-message:empty{display:none}.settings-actions{margin:20px 0}.icon-file{display:inline-flex!important;align-items:center}.workspace-body>#workspace-add{display:flex!important;margin:22px auto}.workspace-body.context-canvas>.relationship-diagram{justify-content:center;align-items:center;margin-top:36px;opacity:.75}
#workspace-companion{position:fixed;z-index:8;width:112px;height:132px;pointer-events:none;user-select:none;touch-action:none}.companion-figure{width:112px;height:132px;display:flex;align-items:center;justify-content:center;cursor:grab;pointer-events:auto;touch-action:none;opacity:.72}.companion-figure:active{cursor:grabbing}.companion-figure img{width:100%;height:auto;pointer-events:none}.companion-figure:focus-visible{outline:1px dashed var(--accent);outline-offset:0;border-radius:50%}.companion-actions,.companion-utilities,.companion-sound{position:absolute;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;width:max-content;pointer-events:none}.companion-actions>.ui-control,.companion-utilities>.ui-control,.companion-sound .ui-control,.companion-volume{pointer-events:auto}.companion-utilities{max-width:310px}.companion-sound{width:270px;gap:3px}.companion-voices{display:flex;align-items:center;gap:0}.companion-sound-level{display:flex;align-items:center;gap:12px}.companion-voices .ui-control{min-width:44px;min-height:44px;color:var(--ink)}.companion-volume{appearance:none;width:150px;height:4px;border:0;border-radius:0;background:linear-gradient(to right,var(--ink) 0,var(--ink) var(--sound-level),var(--line) var(--sound-level),var(--line) 100%);padding:0}.companion-volume::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:var(--ink)}.companion-volume::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--ink)}.companion-sound-open #workspace,.companion-sound-open .handle-header,.companion-sound-open .entry-footer{opacity:.25;filter:grayscale(1)}#workspace-companion.working .companion-figure{opacity:.5}.companion-control[data-action=pause]{color:var(--accent)}
@media(max-width:600px){.handle-shell{padding:0 18px}.workspace-state-line{gap:0}.workspace-state-line .ui-control{min-width:36px;min-height:44px;padding:8px!important}.workspace-nav{gap:1px;margin-bottom:26px}.workspace-sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.workspace-body{padding-bottom:160px}.workspace-body h2{font-size:1.4rem}.welcome-diagrams{gap:14px}.diagram-caption{max-width:80px}.diagram-node .ui-symbol{width:25px;height:25px}.diagram-flow{gap:9px}.diagram-arrow{width:16px;height:16px}.workspace-body .source-text{max-height:calc(100dvh - 320px)}.companion-utilities{max-width:270px}.ui-control:focus-visible::after{max-width:120px}.workspace-nav .ui-control:first-child:focus-visible::after{left:0;transform:none}.workspace-state-line .ui-control:focus-visible::after{left:auto;right:0;transform:none}.relationship-diagram.diagram-share .diagram-caption{max-width:72px}}
.ui-control[hidden],.companion-control[hidden]{display:none!important}
.companion-volume{height:44px;background:transparent;min-height:44px}.companion-volume::-webkit-slider-runnable-track{height:4px;background:linear-gradient(to right,var(--ink) 0,var(--ink) var(--sound-level),var(--line) var(--sound-level),var(--line) 100%)}.companion-volume::-webkit-slider-thumb{margin-top:-4px}.companion-volume::-moz-range-track{height:4px;background:linear-gradient(to right,var(--ink) 0,var(--ink) var(--sound-level),var(--line) var(--sound-level),var(--line) 100%)}
.workspace-body:not(.context-canvas){max-height:calc(100dvh - 320px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:20px;scroll-padding:14px;scrollbar-width:thin}.workspace-body:not(.context-canvas) .source-text{max-height:32dvh}.workspace-body:not(.context-canvas)>textarea,.workspace-body:not(.context-canvas) .field{max-width:100%}
@media(max-width:600px){.workspace-body:not(.context-canvas){max-height:calc(100dvh - 295px)}}
.workspace-body label:has(.field){position:relative}
/* The unfilled bracket marks the device scope; only text arrows cross it. */
.diagram-boundary{display:grid;grid-template-columns:minmax(215px,1fr) 104px 86px;align-items:center;gap:12px;width:min(100%,540px);margin:0}
.diagram-boundary .scope-local{display:flex;flex-direction:column;gap:18px;padding:0 14px 17px;border-inline:1px solid var(--line);border-bottom:1px solid var(--line);background:none;box-shadow:none}
.diagram-boundary .scope-heading{display:flex;justify-content:center;align-items:center;gap:6px;font-size:.75rem;line-height:1.4;color:var(--ink)}
.diagram-boundary .scope-heading .ui-symbol{width:16px;height:16px}
.diagram-boundary .scope-local .diagram-flow{justify-content:space-between;gap:10px}
.diagram-boundary .scope-local .diagram-node{flex:1}
.diagram-boundary .scope-exchange{display:flex;flex-direction:column;gap:11px;align-items:center;padding-top:17px}
.diagram-boundary .scope-route{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%}
.diagram-boundary .scope-route-label{font-size:.6875rem;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.diagram-boundary .scope-route .diagram-arrow{width:60px;height:19px;flex:none}
.diagram-boundary .scope-route-in .diagram-arrow{transform:rotate(180deg)}
.diagram-boundary .scope-route-out{color:var(--accent)}
.diagram-boundary .scope-route-out .diagram-arrow{color:var(--accent)}
.diagram-boundary .scope-peer{align-self:center;margin-top:17px}
@media(max-width:600px){
  .diagram-boundary{grid-template-columns:1fr;width:100%;max-width:300px;gap:0}
  .diagram-boundary .scope-local{gap:15px;padding-inline:18px;padding-bottom:15px}
  .diagram-boundary .scope-local .diagram-flow{justify-content:center;gap:14px}
  .diagram-boundary .scope-exchange{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:12px 24px}
  .diagram-boundary .scope-route{gap:4px}
  .diagram-boundary .scope-route .diagram-arrow{width:38px;height:15px;margin:12px 0}
  .diagram-boundary .scope-route-in .diagram-arrow{transform:rotate(-90deg)}
  .diagram-boundary .scope-route-out .diagram-arrow{transform:rotate(90deg)}
  .diagram-boundary .scope-peer{margin:0;justify-self:center}
}

.research-formula{white-space:pre-wrap;overflow-wrap:anywhere}.research-formula code{white-space:inherit}

/* WEB-070: named actions stay readable on touch and at enlarged text sizes. */
.ui-control.ui-named{justify-content:flex-start;gap:8px!important;padding:10px 8px!important;border-radius:0!important;max-width:100%;min-width:0;flex:0 1 auto;white-space:normal;text-align:left;font-size:.875rem;line-height:1.5}
.ui-named .ui-label{overflow-wrap:anywhere;min-width:0}.ui-control.ui-named:focus-visible::after{content:none}
.identity-welcome #begin-handle.ui-named{border:0!important;min-height:48px}.workspace-state-line{position:static;justify-content:flex-end;flex-wrap:wrap;margin-bottom:12px}
.workspace-nav{width:auto;flex-wrap:wrap;gap:4px 12px}.workspace-nav .ui-control.ui-named{border-radius:0!important}.workspace-nav .ui-control[aria-current=page]{text-decoration:underline!important;text-underline-offset:5px}
.ui-named .ui-count{position:static;font-size:.75rem;padding:0;background:none}.workspace-body h2{max-width:100%}
.companion-actions,.companion-utilities{max-width:310px;gap:2px 8px}.companion-control.ui-named{font-size:.8125rem;padding:8px!important}.companion-utilities .ui-symbol,.companion-actions .ui-symbol{width:20px;height:20px}
.workspace-body>.hint,.workspace-body label,.workspace-body summary{font-size:.875rem}
@media(max-width:600px){.workspace-state-line{justify-content:flex-start;gap:2px 8px}.workspace-nav{gap:2px 8px}.companion-actions,.companion-utilities{max-width:270px}}

.handle-header>#chat-handle{flex:1;min-width:0;overflow-wrap:anywhere}.handle-header>#chat-menu{flex:none}.handle-header>#chat-menu>summary.ui-named{gap:6px!important}.companion-utilities,.companion-actions{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}

body:has(#workspace-companion.utility-open) #workspace,body:has(#workspace-companion.companion-open) #workspace{opacity:.18}.handle-header{height:auto;min-height:76px}.handle-header>#chat-menu>summary.ui-named{white-space:nowrap}

/* WEB-075: public explanations use the same flat, compact reading surface. */
.about-page h1{max-width:680px}.about-lead{font-size:1.125rem;line-height:1.7;max-width:650px}.about-nav{justify-content:flex-start;max-width:none;gap:8px 24px;margin:24px 0 30px}.about-nav a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline}
.about-page section{scroll-margin-top:24px}.about-cases{list-style:decimal-leading-zero;padding-left:2.4rem;margin:24px 0 36px}.about-cases>li{padding:18px 0 20px 12px;border-top:1px solid var(--line)}.about-cases>li::marker{font-size:.875rem;color:var(--accent)}.about-cases h3{font-size:1.125rem;line-height:1.4;font-weight:600;margin:0 0 10px;letter-spacing:-.025em}.about-cases p{margin:8px 0}.about-cases .about-question{color:var(--ink);font-size:1rem}
.about-principles{margin:24px 0}.about-principles>div{border-top:1px solid var(--line);padding:18px 0}.about-principles dt{font-weight:600;line-height:1.4;margin:0 0 8px}.about-principles dd{margin:0;color:var(--muted)}.about-vision{margin:24px 0}.about-today{border-top:1px solid var(--line);padding-top:8px}.about-today details{border-top:1px solid var(--line);padding-top:12px}.about-today summary{min-height:44px;font-size:.875rem}.about-page .actions{margin:24px 0 0}
@media(max-width:640px){.about-nav{gap:4px 18px}.about-cases{padding-left:1.8rem}.about-cases>li{padding-left:6px}.about-lead{font-size:1rem}}


/* The public network introduction expands only while welcome is visible.
   Owner entry, conversations and the character keep their existing layout. */
.handle-shell:has(#welcome:not([hidden])) {
  width: min(100%, 1120px);
}
.homepage-nav { display: none; }
.handle-shell:has(#welcome:not([hidden])) .homepage-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: none;
}
.homepage-nav a, .homepage-nav .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
}
.homepage-nav a:hover, .homepage-nav .text-button:hover { color: var(--ink); }
.handle-shell:has(#welcome:not([hidden])) .handle-header { height: auto; min-height: 84px; padding: 16px 0; }
.network-welcome {
  position: relative;
  isolation: isolate;
  max-width: none;
  padding: 22px 0 0;
  text-align: center;
}
.network-backdrop {
  position: absolute;
  top: 95px;
  left: 50%;
  width: 100vw;
  height: 480px;
  transform: translateX(-50%);
  overflow: clip;
  pointer-events: none;
  z-index: -1;
}
.network-backdrop span {
  position: absolute;
  top: 38px;
  left: -290px;
  width: 420px;
  height: 420px;
  border: 1px solid color-mix(in srgb, var(--accent) 7%, var(--paper));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 1.5%, var(--paper));
}
.network-backdrop span + span { left: auto; right: -290px; }
.network-welcome .eyebrow {
  margin: 0 0 14px;
  font-size: .6875rem;
  letter-spacing: .16em;
}
.handle-entry.network-welcome h1 {
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.1vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.05em;
}
.network-intro {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}
.network-diagrams { position: relative; margin: 28px auto 24px; }
.network-diagrams::after {
  content: '';
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  height: 14px;
  border-left: 1px dotted var(--line);
}
.agent-network {
  display: grid;
  grid-template-columns: 180px minmax(52px, 156px) 124px minmax(52px, 156px) 180px;
  align-items: start;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
}
.network-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  font-size: .8125rem;
  line-height: 1.5;
}
.network-node strong {
  margin: 2px 0 3px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.network-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 145px;
}
.network-portrait img { display: block; width: 144px; height: auto; }
.context-cluster {
  position: absolute;
  display: block;
  width: 104px;
  height: 72px;
  color: var(--accent);
}
.context-feed { stroke: var(--muted); opacity: .65; }
.network-owner .context-cluster { left: -16px; top: -12px; }
.network-peer .context-cluster { right: -16px; top: 70px; }
.network-halo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}
.network-halo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--line);
  border-radius: inherit;
  opacity: .5;
}
.network-hub strong { font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.network-globe { color: var(--accent); }
.network-link {
  width: calc(100% + 26px);
  height: 24px;
  margin-top: 60.5px;
  color: color-mix(in srgb, var(--accent) 65%, var(--paper));
  z-index: -1;
}
.network-link-in { margin-left: -22px; }
.network-link-out { margin-left: -4px; }
.network-cta { margin: 0 auto; width: min(100%, 380px); }
.network-welcome .handle-create {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  gap: 28px;
  padding: 16px 28px;
  border-color: var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 650;
}
.network-welcome .handle-create:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.network-cta-hint {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.network-cta-free {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}
.homepage-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.homepage-values > div { padding: 0 24px; }
.homepage-values > div:first-child { padding-left: 0; }
.homepage-values > div + div { border-left: 1px solid var(--line); }
.homepage-values dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.5;
}
.homepage-values svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.homepage-values dd {
  margin: 6px 0 0 29px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.handle-shell:has(#welcome:not([hidden])) .entry-footer {
  max-width: none;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 22px;
  padding: 8px 0 24px;
}
.homepage-closing { display: none; }
.handle-shell:has(#welcome:not([hidden])) .homepage-closing {
  display: inline;
  margin-right: auto;
  font-size: .75rem;
}
.handle-shell:has(#welcome:not([hidden])) .entry-footer .ui-control {
  color: var(--muted);
  font-size: .75rem;
  padding: 7px 0!important;
  gap: 7px!important;
}
.handle-shell:has(#welcome:not([hidden])) .entry-footer .ui-symbol { width: 16px; height: 16px; }
@media (min-width: 801px) and (max-height: 800px) {
  .handle-shell:has(#welcome:not([hidden])) .handle-header { height: auto; min-height: 72px; padding: 14px 0; }
  .network-welcome { padding-top: 8px; }
  .handle-entry.network-welcome h1 { font-size: clamp(2.5rem, 5.1vw, 3.8rem); }
  .network-diagrams { margin-top: 8px; margin-bottom: 16px; }
  .homepage-values { margin-top: 20px; padding: 16px 0; }
}
@media (max-width: 800px) {
  .agent-network {
    grid-template-columns: 160px minmax(20px, 1fr) 124px minmax(20px, 1fr) 160px;
  }
  .network-owner .context-cluster { left: -6px; }
  .network-peer .context-cluster { right: -6px; }
  .network-backdrop span { left: -350px; }
  .network-backdrop span + span { right: -350px; }
  .homepage-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-values > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .homepage-values > div:nth-child(n + 3) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .handle-shell:has(#welcome:not([hidden])) .handle-header { height: auto; padding: 16px 0; gap: 16px; }
  .handle-shell:has(#welcome:not([hidden])) .homepage-nav { gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; }
  .homepage-nav a, .homepage-nav .text-button { font-size: .75rem; }
  .network-welcome { display: flex; flex-direction: column; align-items: stretch; padding-top: 24px; }
  .network-welcome .eyebrow { font-size: .625rem; margin-bottom: 12px; }
  .handle-entry.network-welcome h1 { font-size: clamp(1.75rem, 7.5vw, 2.8rem); margin-bottom: 18px; }
  .network-intro { max-width: 350px; font-size: .9375rem; }
  .desktop-break { display: none; }
  .network-diagrams { order: 1; margin: 26px 0 24px; }
  .network-diagrams::after { display: none; }
  .network-backdrop { top: 170px; height: 500px; }
  .network-backdrop span { left: -390px; }
  .network-backdrop span + span { right: -390px; }
  .agent-network { grid-template-columns: 1fr; gap: 0; }
  .network-node { font-size: .75rem; }
  .network-node strong { font-size: .9375rem; margin-top: 0; }
  .network-portrait { width: 190px; height: 94px; }
  .network-portrait img { width: 112px; }
  .network-owner .context-cluster, .network-peer .context-cluster { position: static; width: 116px; height: 80px; }
  .network-owner .context-cluster { margin-bottom: -8px; }
  .network-peer .context-cluster { margin-top: 6px; }
  .network-link { width: 52px; height: 18px; margin: 8px auto; transform: rotate(90deg); }
  .network-hub .network-portrait { height: 102px; }
  .network-halo { width: 88px; height: 88px; }
  .network-halo::before { inset: -6px; }
  .network-globe { width: 66px; height: 66px; }
  .network-hub strong { font-size: 1.125rem; }
  .network-cta { width: min(100%, 360px); margin-top: 24px; }
  .network-welcome .handle-create { gap: 20px; padding-inline: 20px; }
  .network-cta-hint { font-size: 1.125rem; }
  .homepage-values { order: 2; padding: 22px 0; margin-top: 28px; }
  .homepage-values > div { padding-right: 14px; }
  .homepage-values > div:nth-child(even) { padding-left: 16px; }
  .homepage-values dt { display: block; font-size: .8125rem; }
  .homepage-values svg { display: block; margin-bottom: 8px; }
  .homepage-values dd { margin: 5px 0 0; font-size: .75rem; }
  .handle-shell:has(#welcome:not([hidden])) .entry-footer { justify-content: flex-start; gap: 2px 16px; }
  .handle-shell:has(#welcome:not([hidden])) .homepage-closing { flex-basis: 100%; margin: 0 0 8px; }
}
@media (max-width: 359px) {
  .handle-shell:has(#welcome:not([hidden])) .homepage-nav { gap: 4px 10px; }
  .homepage-nav a, .homepage-nav .text-button { font-size: .6875rem; }
}


/* Utility billing shares a readable canvas; values use flat rows and dividers. */
.document-public-nav{max-width:none;align-items:center}.document-public-nav a{display:inline-flex;align-items:center;min-height:44px}
.document:has(.pricing-page){max-width:720px;margin-top:28px}
.pricing-lead{font-size:1.125rem;line-height:1.6;margin:0 0 26px}.pricing-page h1{margin-top:8px;font-size:clamp(2rem,5vw,2.75rem)}
.utility-summary{margin:24px 0}.utility-summary>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.4fr);gap:16px;padding:18px 0;border-top:1px solid var(--line)}
.utility-summary>div:last-child{border-bottom:1px solid var(--line)}.utility-summary dt{font-size:.875rem;color:var(--muted)}.utility-summary dd{margin:0;font-weight:600;font-size:1.15rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.utility-summary dd span{display:block;font-weight:400;font-size:.875rem;line-height:1.5;margin-top:5px;color:var(--muted)}.utility-summary .utility-credit{font-size:2rem;line-height:1.1;letter-spacing:-.03em}
.utility-details{margin:22px 0;font-size:.875rem}.utility-details summary{min-height:44px;cursor:pointer;align-content:center}.utility-details p{line-height:1.6}.billing-availability{font-size:.875rem;color:var(--accent)!important}.billing-page{max-width:600px;margin:auto}.billing-page label{font-size:.875rem}.billing-page input[type=file]{min-height:44px;font-size:.875rem}.billing-content h3{font-size:1.3rem;font-weight:600;margin:14px 0}.billing-actions{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;margin:22px 0}.billing-actions button,.billing-actions a{max-width:100%;font-size:.875rem}.billing-content .hint{line-height:1.65}.workspace-billing{width:100%}.billing-total{font-size:1.6rem!important}.billing-breakdown{padding:0;list-style:none;line-height:1.8;color:var(--muted);font-size:.875rem}
@media(max-width:640px){.document-public-nav{gap:4px 14px;max-width:240px}.document-public-nav a{font-size:.75rem}.utility-summary>div{grid-template-columns:minmax(90px,1fr) minmax(0,1.4fr);gap:12px}.billing-actions{align-items:flex-start;flex-direction:column}.billing-actions button{justify-content:center}.handle-shell:has(#welcome:not([hidden])) .homepage-nav{gap:4px 12px;max-width:230px}}

/* The web stage surrounds the same live workspace and stable character. */
.character-introduction{display:none}
.interface-switch{position:fixed;right:24px;top:20px;z-index:9;font-size:.875rem!important;min-height:44px}
body[data-interface=character]{--paper:#080b0c;--ink:#e7efeb;--muted:#a6b7b0;--line:#34453e;--accent:#b7d5c4;background:var(--paper);color:var(--ink);color-scheme:dark}
body[data-interface=character] .handle-header{padding-right:130px}
body[data-interface=character] .homepage-nav{display:none}
body[data-interface=character] .network-welcome{padding-top:clamp(50px,12vh,130px)}
body[data-interface=character] #welcome>:not(.character-introduction):not(.network-cta){display:none}
body[data-interface=character] .character-introduction{display:block;max-width:560px;margin:0 auto 28px;text-align:left}
body[data-interface=character] .character-introduction h1{font-size:clamp(2.8rem,7vw,4.7rem);line-height:1.08;font-weight:450;letter-spacing:-.045em;margin:24px 0}
body[data-interface=character] .character-introduction p:not(.eyebrow){font-size:1.125rem;line-height:1.7;max-width:410px}
body[data-interface=character] #begin-handle{margin-left:0;min-width:180px}
body[data-interface=character] .network-welcome{max-width:560px;margin:auto;text-align:left}
body[data-interface=character] #welcome .character-introduction .eyebrow{letter-spacing:.12em}
body[data-interface=character] .companion-figure{opacity:1}
.companion-guest .companion-figure{animation:character-emerge 3s ease both}
@keyframes character-emerge{from{opacity:.04;filter:blur(6px)}to{opacity:1;filter:blur(0)}}
@media(max-width:600px){.interface-switch{right:12px;top:12px}body[data-interface=character] .handle-header{padding-right:100px}body[data-interface=character] .character-introduction h1{font-size:2.8rem}body[data-interface=character] .network-welcome{padding-top:35px}body[data-interface=character] .entry-footer{padding-bottom:170px}}
@media(prefers-reduced-motion:reduce){.companion-guest .companion-figure{animation:none}}
.character-guide{display:none;max-width:560px;margin:32px auto 24px}
body[data-interface=character] .character-guide:not([hidden]){display:block}
.character-guide h2{font-size:clamp(1.4rem,4vw,2rem);font-weight:450;letter-spacing:-.025em;line-height:1.3;margin:0 0 16px}
.character-guide>p{font-size:1rem;line-height:1.7;margin:0 0 12px;max-width:510px}
.character-guide-actions,.character-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.character-guide-actions button,.character-shortcuts button{font-size:.875rem;min-height:44px}
.character-guide-actions>button:first-child{color:var(--accent);text-decoration:underline;text-underline-offset:5px}
.character-guide-actions .hint{margin-left:auto;font-size:.875rem}
.character-shortcuts{border-top:1px solid var(--line);margin-top:12px;padding-top:6px}
.character-shortcuts [aria-current=page]{text-decoration:underline;text-underline-offset:5px}
body[data-interface=character] #workspace{max-width:560px}
body[data-interface=character] .workspace-nav{display:none}
body[data-interface=character] .workspace-state-line{justify-content:flex-start;border-bottom:1px solid var(--line);padding-bottom:8px}
body[data-interface=character] .workspace-body{max-height:calc(100dvh - 475px);padding-bottom:16px}
body[data-interface=character] .workspace-body h2{font-size:1.25rem}
body[data-interface=character] .workspace-body.context-canvas{max-height:calc(100dvh - 475px);overflow-y:auto;opacity:.75}
body[data-interface=character] .relationship-diagram{display:none}
body[data-interface=character] .field{color:var(--ink);font-size:1rem}
body[data-interface=character] .handle-entry.identity-step,body[data-interface=character] .ownership-flow{max-width:560px}
body[data-interface=character] .handle-header a,body[data-interface=character] .entry-footer a{color:var(--muted)}
@media(max-width:600px){.character-guide{margin-top:18px}.character-guide h2{font-size:1.35rem}.character-guide>p{font-size:1rem}body[data-interface=character] .workspace-body,body[data-interface=character] .workspace-body.context-canvas{max-height:none;overflow:visible;padding-bottom:170px}body[data-interface=character] .workspace-state-line .ui-label{font-size:.875rem}}
@media(max-height:700px) and (min-width:601px){.character-guide{margin-top:12px}.character-guide>p{margin-bottom:4px}.character-guide h2{margin-bottom:8px}body[data-interface=character] .workspace-body{max-height:calc(100dvh - 385px)}}
body[data-interface=character]:not(:has(#welcome:not([hidden]))) .handle-shell .homepage-nav{display:none!important}
body[data-interface=character] .ui-control:hover,body[data-interface=character] .ui-control[aria-current=page],body[data-interface=character] .ui-control[aria-pressed=true]{background:#20332a!important;color:#e7efeb!important}
body[data-interface=character] .primary:hover{background:#d0e7db!important;color:#080b0c!important}
body[data-interface=character] .error,body[data-interface=character] .danger{color:#ffaaa3!important}
body[data-interface=character] .companion-guest,body[data-interface=character] .companion-guest .companion-figure{width:180px;height:210px}
.companion-sound-open .character-guide,.companion-sound-open .interface-switch{opacity:.25;filter:grayscale(1)}
body[data-interface=character] #welcome #welcome-diagrams{display:block;position:absolute;inset:210px 0 auto;margin:0;opacity:.045;pointer-events:none;z-index:0}
body[data-interface=character] .character-introduction,body[data-interface=character] .network-cta{position:relative;z-index:1}
@media(max-width:800px){body[data-interface=character] .companion-guest,body[data-interface=character] .companion-guest .companion-figure{width:112px;height:132px}body[data-interface=character] #welcome #welcome-diagrams{display:none}}
@media(max-width:600px){body[data-interface=character] .handle-header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 14px;padding:50px 0 8px}body[data-interface=character] .handle-header #chat-handle{font-size:.875rem;line-height:1.5}body[data-interface=character] .handle-header #chat-menu{grid-column:1 / -1;justify-self:start}body[data-interface=character] .handle-header .wordmark{font-size:1.4rem}}
@media(scripting:enabled){body.onboarding-page:not([data-interface]){--paper:#080b0c;--ink:#e7efeb;--muted:#a6b7b0;background:#080b0c;color:#e7efeb}body.onboarding-page:not([data-interface]) #welcome{visibility:hidden}}

/* Compact About reading pages share a flat, explicit page navigation. */
.about-nav a[aria-current=page]{color:var(--ink);font-weight:600;text-decoration-thickness:2px;text-underline-offset:5px}
.about-overview section{border-top:1px solid var(--line);padding:14px 0}
.about-overview h2{font-size:1.125rem;line-height:1.4;margin:0 0 8px}
.about-overview h2 a{color:var(--ink);text-underline-offset:4px}
.about-overview p{margin:0;max-width:620px}
.about-link{vertical-align:middle}

/* Access belongs to the handle; ownership recovery stays separate from the choices. */
.ownership-flow .identity-step-heading{margin-top:24px;padding-top:12px;padding-bottom:0}
.ownership-flow .identity-step-heading h2{font-size:clamp(1.65rem,3.4vw,2.15rem);margin-bottom:12px;overflow-wrap:anywhere}
.ownership-flow .journey-reason{margin:0 0 22px;font-size:1rem}
.access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--line);padding:0 0 18px}
.access-option{min-width:0;position:relative;text-align:center}
.access-option+.access-option{border-left:1px solid var(--line)}
#scope-step .access-choice{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:12px 8px 4px;border:0;border-radius:0;background:none;color:var(--ink);text-align:center;line-height:1.4}
#scope-step .access-choice:hover .access-name,#scope-step .access-choice:focus-visible .access-name{text-decoration:underline;text-underline-offset:5px}
.access-portrait{display:flex;align-items:center;justify-content:center;position:relative;width:132px;max-width:100%;height:112px;pointer-events:none}
.access-portrait>img{position:relative;z-index:1;width:96px;height:auto}
.access-orbit{position:absolute;inset:0;width:100%;height:100%;color:var(--accent)}
.access-portrait>img.access-peer{position:absolute;top:28px;width:58px;opacity:.65;z-index:0}
.access-peer-left{left:-3px}.access-peer-right{right:-3px}
.access-name{font-size:1.0625rem;font-weight:600;overflow-wrap:anywhere}
.access-reach{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.access-next{font-size:1rem;color:var(--accent);margin-top:2px}
.access-privacy{margin:18px 0 10px;font-size:.875rem!important;line-height:1.55;text-align:center}
.access-recovery{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 22px}
#scope-step .access-recovery .text-button,#unlock-step>button.text-button{border:0;border-radius:0;padding:8px 0;text-decoration:underline;text-underline-offset:.25em;background:none;font-size:.875rem}
.billing-page h1{font-size:clamp(2rem,5vw,2.75rem);margin:8px 0 16px}
.billing-page .eyebrow{margin:0}
.billing-page #billing-open{margin:24px 0}
.billing-page input[type=file]{min-height:44px;font-size:1rem}
@media(max-width:480px){.access-options{gap:6px}.access-portrait{width:116px;height:104px}.access-name{font-size:1rem}.access-reach{font-size:.875rem}.ownership-flow .identity-step-heading{margin-top:12px}}
.privacy-details details p{font-size:1rem}

/* Public repository directory and its owner Settings view. */
.source-repositories{list-style:none;margin:24px 0;padding:0}.source-repositories>li{padding:18px 0;border-top:1px solid var(--line)}.source-repositories h2,.source-repositories h3{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 6px!important;font-size:1rem!important;max-width:100%!important}.source-repositories p{margin:6px 0;font-size:1rem;line-height:1.6}.source-repositories a{overflow-wrap:anywhere}.source-license{font-size:.875rem;color:var(--muted);font-weight:400}.source-audit{font-size:.875rem}

/* A single dark reading canvas, with setup and its stable character retained. */
.data-notice-page,.data-notice-modal{--paper:#080b0c;--ink:#e7efeb;--muted:#a6b7b0;--line:#34453e;--accent:#b7d5c4;--accent-hover:#d1e7dc;color-scheme:dark;color:var(--ink)}
.data-notice-page{min-height:100dvh;background:var(--paper)}
.data-notice-open{overflow:hidden}
.data-notice-modal{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:rgb(0 0 0 / .68)}
.data-notice-reader{width:min(740px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:var(--paper);padding:0 28px 24px;overflow-wrap:anywhere;scrollbar-width:thin}
.data-notice-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);background:var(--paper)}
.data-notice-heading h2{font-size:1.125rem;margin:0}
.data-notice-heading button{flex:none}
.data-notice-content h2{font-size:clamp(1.75rem,5vw,2.5rem);line-height:1.15;margin:20px 0}
.data-notice-content p{color:var(--muted);font-size:1rem}
.data-notice-content .scope-note{margin:16px 0}
.data-notice-content .notice-details{margin:20px 0}
.data-notice-modal .secondary:hover,.data-notice-page .secondary:hover{background:rgb(183 213 196 / .1)}
.data-notice-open #workspace-companion{z-index:21}
.data-notice-open #workspace-companion .companion-actions,.data-notice-open #workspace-companion .companion-utilities,.data-notice-open #workspace-companion .companion-sound{visibility:hidden;pointer-events:none}
@media(max-width:640px){.data-notice-modal{padding:12px}.data-notice-reader{max-height:calc(100dvh - 24px);padding:0 18px 20px}}

/* The first conversation starts with the character and public navigation. */
body[data-interface=character]:has(#welcome:not([hidden])){--welcome-character-size:clamp(144px,22vmin,220px)}
body[data-interface=character]:has(#welcome:not([hidden])) #welcome{height:100dvh;max-width:none;margin:0;padding:0!important}
body[data-interface=character]:has(#welcome:not([hidden])) #welcome>*{display:none!important}
body[data-interface=character]:has(#welcome:not([hidden])) .companion-guest,
body[data-interface=character]:has(#welcome:not([hidden])) .companion-guest .companion-figure{width:var(--welcome-character-size);height:calc(var(--welcome-character-size)*1.18)}
.companion-welcome{position:absolute;width:max-content;max-width:calc(100vw - 24px);text-align:center;pointer-events:none;user-select:text}
body[data-interface=character] .companion-welcome .character-introduction{display:block;width:auto;max-width:100%;margin:0}
body[data-interface=character] .companion-welcome .character-introduction h1{font-size:1.0625rem;font-weight:400;line-height:1.6;letter-spacing:0;max-width:100%;margin:8px 0;color:var(--muted)}
body[data-interface=character] .companion-welcome #begin-handle{pointer-events:auto;width:auto;min-width:0;min-height:44px;font-size:1rem;padding:8px 16px;gap:0;border:0;border-radius:0;background:none!important;color:var(--accent);text-decoration:underline;text-underline-offset:5px}
.companion-welcome #begin-handle [aria-hidden=true]{display:none}
#workspace-companion.sound-open .companion-welcome{opacity:.25;pointer-events:none}

/* Named entry controls stay with the character and readable on every interaction. */
body[data-interface=character] .companion-welcome{display:flex;flex-direction:column;align-items:center;gap:4px}
body[data-interface=character] .companion-welcome #begin-handle{min-height:48px;padding:8px 20px;border:1px solid var(--line);border-radius:3px;color:var(--ink)!important;text-decoration:none;transition:border-color .15s ease}
body[data-interface=character] .companion-welcome #begin-handle:hover{border-color:var(--accent);color:var(--accent)!important;background:none!important}
body[data-interface=character] .companion-welcome #begin-handle:focus-visible{outline:2px solid var(--accent);outline-offset:3px;color:var(--ink)!important}
body[data-interface=character] .companion-welcome .interface-switch{position:static;pointer-events:auto;min-height:44px;padding:8px 12px;color:var(--muted);font-size:.875rem!important;text-decoration:underline;text-underline-offset:4px}
body[data-interface=character] .companion-welcome .interface-switch:hover{color:var(--ink)}
@media(prefers-reduced-motion:reduce){body[data-interface=character] .companion-welcome #begin-handle{transition:none}}

/* Identity controls belong to the owner, with flat content and explicit disclosure. */
.identity-content details{margin-block:1rem}
.identity-content summary{cursor:pointer;font-weight:600}
.identity-content article{padding-block:.75rem;border-bottom:1px solid var(--line,#54616b)}
.identity-content h3{font-size:1rem;margin:.35rem 0}
.identity-content label{display:block;margin-block:.5rem}
.identity-content .field{display:block;width:100%;box-sizing:border-box}
.identity-content button{margin:.25rem .6rem .25rem 0}
.identity-content pre,.identity-content code{white-space:pre-wrap;overflow-wrap:anywhere}
.identity-content select{margin-inline:.5rem}
