/* ChiabeAI / Obsidian. Neutral glass, a single typography and interaction system. */
:root{color-scheme:dark;--ink:#f5f5f5;--paper:#080808;--surface:#141414;--panel:#1a1a1a;--muted:#aaa;--line:#303030;--highlight:#e8e8e8;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--r-small:8px;--r-control:10px;--r-panel:18px;--ease:cubic-bezier(.2,.8,.2,1);font-family:var(--font);font-synthesis:none;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;transition:background 180ms var(--ease),border-color 180ms var(--ease),transform 180ms var(--ease)}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #fff;outline-offset:4px}[hidden]{display:none!important}.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}.skip{position:fixed;top:-100px;left:16px;z-index:30;padding:12px 16px;background:var(--ink);color:var(--paper);border-radius:8px}.skip:focus{top:12px}
.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100svh}.sidebar{position:sticky;top:0;height:100svh;padding:32px 20px 20px;display:flex;flex-direction:column;min-width:0;background:#0e0e0e;border-right:1px solid #252525;z-index:5}.wordmark,.mobile-brand{display:flex;align-items:center;text-decoration:none}.brand-svg{display:block;width:146px;height:32px;color:#f5f5f5}.brand-line{font-size:12px;color:var(--muted);margin:12px 0 32px;letter-spacing:.2px}.new-chat,.primary-button,.send-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 16px;border-radius:var(--r-control);background:var(--ink);color:#090909;font-size:14px;font-weight:600;border:1px solid #fff}.new-chat{width:100%;justify-content:flex-start;padding:12px}.new-chat>span{font-size:22px;line-height:1}.new-chat kbd{margin-left:auto;font-family:var(--font);font-size:10px;font-weight:400}.new-chat:hover,.primary-button:hover,.send-button:hover{background:#d2d2d2;border-color:#d2d2d2}.primary-nav{display:grid;gap:8px;margin:28px 0}.nav-item{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:10px;text-align:left;font-size:14px;font-weight:500;color:#bbb}.nav-item.selected{color:#fff;background:#232323;border-color:#3b3b3b}.nav-item:not(.selected):hover{background:#1b1b1b;color:#fff}.nav-item>span:first-child{width:24px;font-size:22px;text-align:center}.count{margin-left:auto;font-size:12px;min-width:20px;text-align:center}.history-heading{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#999}.history{flex:1;overflow:auto;margin-top:12px}.history p{max-width:170px;font-size:13px;line-height:1.6;color:var(--muted)}.history button{display:block;min-height:44px;width:100%;text-align:left;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:10px 4px;color:#bbb;border-radius:8px}.history button:hover{background:#222;color:#fff}.sidebar-bottom{border-top:1px solid var(--line);padding-top:20px}.sidebar-bottom p{font-size:18px;font-weight:550;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px}.privacy-button{min-height:44px;font-size:12px;padding:10px 0;color:#aaa}main{min-width:0;position:relative}.topbar{height:76px;display:flex;align-items:center;gap:12px;padding:0 40px;border-bottom:1px solid #222;background:#080808}.topbar-label{font-size:12px;letter-spacing:.04em;color:#aaa;margin-right:auto}.mobile-menu,.mobile-brand{display:none}.text-button,.icon-button{min-height:44px;min-width:44px;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500;white-space:nowrap}.text-button:hover,.icon-button:hover{background:#242424}.text-button span{margin-left:8px}.workspace{max-width:1130px;padding:40px 48px 24px;margin:auto}.welcome{position:relative;display:grid;grid-template-columns:1.25fr 1fr;gap:20px;min-height:305px;margin-bottom:28px;border-bottom:1px solid #262626;padding-bottom:28px;isolation:isolate}.welcome:before{content:'';position:absolute;inset:0 0 20px 48%;background:radial-gradient(ellipse at center,#292929 0,transparent 68%);z-index:-1;pointer-events:none}.welcome-copy{padding-top:16px;position:relative;z-index:1}.eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:#aaa}.status-dot{width:5px;height:5px;border-radius:50%;background:#ccc;box-shadow:0 0 8px #ffffff55}.welcome h1{font-size:64px;font-weight:550;line-height:1.04;letter-spacing:-3.5px;margin:26px 0 22px}.welcome h1 em{font:inherit;color:#aaa}.welcome-copy>p{font-size:15px;line-height:1.6;margin:0;color:#c2c2c2}.hero-caption{font-size:11px;color:#888;letter-spacing:.02em;margin-top:20px}.spark-stage{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.sculpture{width:100%;max-width:350px;aspect-ratio:420/340;animation:orb-drift 12s ease-in-out infinite;transform-origin:50% 50%;will-change:transform}.spark-signature{color:#777;font-size:10px;letter-spacing:.13em;text-transform:uppercase;margin-top:-8px}.compose-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}.compose-heading h2{font-size:18px;font-weight:500;letter-spacing:-.3px;margin:0}.compose-heading>span{font-size:12px;color:#999}.composer{position:relative;overflow:hidden;border:1px solid #404040;border-radius:18px;padding:20px;background:radial-gradient(ellipse at 0 0,#ffffff16,transparent 65%),linear-gradient(140deg,#ffffff0e,#ffffff03),#141414e8;box-shadow:inset 0 1px 0 #ffffff16,0 12px 40px #0006;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:border-color 180ms,box-shadow 180ms}.composer:focus-within{border-color:#888;box-shadow:inset 0 1px 0 #ffffff20,0 12px 40px #0008}.composer:before{content:'';position:absolute;top:0;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,#ddd6,transparent);pointer-events:none}.composer textarea{display:block;width:100%;height:66px;min-height:66px;max-height:160px;field-sizing:content;resize:vertical;border:0;background:transparent;outline:none!important;padding:0;font-size:16px;line-height:1.5}.composer textarea::placeholder{color:#a6a6a6}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.mode-tabs{display:flex;gap:4px;padding:3px;background:#08080899;border:1px solid #2b2b2b;border-radius:12px;min-width:0}.mode-tabs button{min-height:44px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:500;white-space:nowrap;color:#aaa}.mode-tabs button[aria-pressed=true]{color:#fff;background:#303030;box-shadow:inset 0 1px 0 #ffffff20}.mode-tabs button:not([aria-pressed=true]):hover{background:#222;color:#fff}.send-button{min-width:94px}.stop-button{min-height:44px;padding:10px 16px;border:1px solid #777;border-radius:10px;font-size:14px}.composer-note{display:flex;justify-content:space-between;gap:16px;color:#999;font-size:11px;line-height:1.5;margin:12px 2px 0}.ideas{margin-top:28px}.ideas-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:11px;color:#999;margin-bottom:12px}.ideas-heading>span:first-child{font-weight:500;color:#ccc;letter-spacing:.04em}.idea-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.idea-list button{min-height:100px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;text-align:left;background:linear-gradient(145deg,#ffffff07,transparent),#101010;border:1px solid #2e2e2e;border-radius:12px}.idea-list button:hover{background:#202020;border-color:#666;transform:translateY(-2px)}.idea-icon{grid-column:1;color:#777;font-size:11px;letter-spacing:.06em}.idea-list strong{grid-column:1;font-size:14px;font-weight:500;line-height:1.35}.idea-list small{display:none}.idea-arrow{grid-column:2;grid-row:2;font-size:17px;color:#aaa}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:20px;border-top:1px solid #242424;color:#777;font-size:11px}.workspace-footer>span:last-child{letter-spacing:.03em;color:#aaa}
.workspace:has(#thread:not([hidden])){min-height:calc(100svh - 76px);display:flex;flex-direction:column;padding-top:32px}.thread{flex:1;max-width:760px;width:100%;margin:0 auto 24px}.message{overflow-wrap:anywhere;margin-bottom:28px}.message-label{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;letter-spacing:.08em;margin-bottom:12px}.message-label img{width:34px;height:34px;filter:none;background:#242424;border-radius:10px;border:1px solid #444}.message.user{margin-left:44px;padding:18px 20px;border:1px solid #303030;background:linear-gradient(135deg,#ffffff08,transparent),#171717;border-radius:16px}.message.user .message-label{color:#999}.message-content{font-size:16px;line-height:1.7;white-space:pre-wrap;max-width:70ch;color:#eee}.message-status{color:#999;font-size:11px;line-height:1.5;margin:14px 0 0}.message-actions{display:flex;align-items:center;gap:8px;margin-top:14px}.message-actions .text-button{font-size:13px}.message-actions .text-button:first-child{border:1px solid #3e3e3e;background:#202020}.workspace:has(#thread:not([hidden])) .compose-area{position:sticky;bottom:0;z-index:2;padding:12px 0 4px;background:linear-gradient(transparent,#080808 16%)}.workspace:has(#thread:not([hidden])) .compose-heading{display:none}.workspace:has(#thread:not([hidden])) .composer textarea{height:46px;min-height:46px}.workspace:has(#thread:not([hidden])) .workspace-footer{display:none}.draft,.agent-progress{padding:16px;background:#1b1b1b;border:1px solid #363636;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap}.draft summary{min-height:44px;cursor:pointer}.agent-progress{margin-bottom:16px}.error-banner{padding:16px;border:1px solid #888;border-radius:12px;background:#232323;font-size:14px;line-height:1.6;margin:16px 0}.privacy-note{margin:24px 40px;padding:24px;background:#171717;border:1px solid #383838;border-radius:18px;font-size:14px;line-height:1.6}.privacy-note p{max-width:70ch;color:#bbb}.privacy-note label{display:flex;align-items:center;gap:8px;min-height:44px}.privacy-note input{width:20px;height:20px;accent-color:#ddd}
.workspace:has(#shelf:not([hidden])) .compose-area{display:none}.shelf{min-height:calc(100svh - 220px)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:24px;border-bottom:1px solid #303030}.section-heading .eyebrow{font-size:10px;margin:0 0 12px}.section-heading h2{font-size:36px;font-weight:500;letter-spacing:-1.2px;margin:0}.section-heading .text-button{border:1px solid #555;background:#1a1a1a}.shelf-note{font-size:13px;color:#aaa;line-height:1.6;margin:20px 0 28px}.saved-page{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:20px;background:linear-gradient(145deg,#ffffff08,transparent),#141414;border:1px solid #363636;border-radius:14px;margin-bottom:12px}.saved-page button:first-child{position:relative;min-height:58px;text-align:left;padding:0 0 0 58px;min-width:0}.saved-page button:first-child:before{content:'↗';position:absolute;left:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:48px;background:#242424;border:1px solid #555;border-radius:8px;font-size:22px;color:#ccc}.saved-page strong{display:block;font-size:17px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.saved-page small{display:block;color:#999;font-size:12px;line-height:1.6;margin-top:8px}
.editor{max-width:940px;margin:auto;padding:36px 48px 28px}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.editor-toolbar .eyebrow{font-size:24px;color:#fff;font-weight:500;letter-spacing:-.7px;text-transform:none}.field-label{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#aaa;margin:20px 0 10px}.editor input,.editor textarea{width:100%;border:1px solid #3d3d3d;border-radius:12px;background:linear-gradient(135deg,#ffffff06,transparent),#131313;padding:18px;line-height:1.6}.editor input{font-family:var(--font);font-size:24px;font-weight:500;letter-spacing:-.7px}.editor textarea{font-size:16px;min-height:320px;height:320px;resize:vertical}.editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 0;margin-top:12px;position:sticky;bottom:0;background:#080808;z-index:2}.editor select{min-height:44px;padding:10px 12px;border:1px solid #444;background:#1b1b1b;border-radius:10px;font-size:14px}.editor-actions .text-button{border:1px solid #3b3b3b;background:#191919}.document-status{font-size:12px;line-height:1.5;color:#aaa;margin:8px 0}.document-diff{margin-top:20px;padding:20px;border:1px solid #3d3d3d;background:linear-gradient(145deg,#ffffff06,transparent),#151515;border-radius:16px;overflow-wrap:anywhere}.document-diff .editor-toolbar{gap:10px;margin-bottom:12px;align-items:flex-start}.document-diff .editor-toolbar strong{font-size:14px;font-weight:500;line-height:1.5;min-width:0;flex:1}.document-diff #close-diff{flex-shrink:0;font-size:12px}.document-diff p{font-size:12px;color:#aaa;line-height:1.6}#diff-content{white-space:pre-wrap;font-size:15px;line-height:1.7}.document-diff-added{background:#414141;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.document-diff-removed{background:#232323;color:#999;text-decoration:line-through}.document-diff-unchanged{color:#eee}.toast{pointer-events:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100% - 32px);background:#eee;color:#111;border:1px solid #fff;border-radius:10px;padding:14px 20px;font-size:14px;line-height:1.5;box-shadow:0 8px 24px #0009}.skeleton{height:12px;border-radius:6px;background:#333;max-width:90%;margin:16px 0}.skeleton.short{max-width:60%}
/* Optional personalization is additive; it never blocks the composer. */
.identity-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #363636;border-radius:12px;background:linear-gradient(110deg,#ffffff0a,transparent),#131313;padding:12px 16px;margin:0 0 24px}.identity-strip strong{font-size:13px;font-weight:500}.identity-strip small{display:block;margin-top:5px;font-size:11px;color:#999}.identity-strip .text-button{font-size:12px;border:1px solid #444}.identity-strip .icon-button{font-size:18px;color:#aaa}.identity-actions{display:flex;gap:6px}.identity-edit{color:#ccc;border:1px solid #373737;font-size:12px}.tone-apply{min-height:44px;font-size:11px;color:#ccc;padding:8px 0;align-self:flex-start;text-decoration:underline;text-underline-offset:4px}.identity-dialog{color:#f5f5f5;width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid #666;border-radius:24px;background:linear-gradient(135deg,#ffffff0e,#ffffff03),#141414f5;box-shadow:inset 0 1px 0 #ffffff33,0 32px 120px #000;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.identity-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.identity-dialog-inner{padding:28px}.identity-dialog-header{display:flex;justify-content:space-between;align-items:start;gap:16px}.identity-dialog .eyebrow{font-size:10px}.identity-dialog h2{font-size:32px;font-weight:500;letter-spacing:-1px;margin:10px 0}.identity-intro{font-size:13px;line-height:1.6;color:#aaa;margin:0 0 20px;max-width:55ch}.identity-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.identity-preview{min-width:0;display:flex;flex-direction:column;justify-content:center;text-align:center;align-items:center;border:1px solid #333;border-radius:16px;background:radial-gradient(ellipse at 50% 30%,#292929,#0b0b0b 70%);padding:20px;position:relative}.identity-preview .sculpture{max-width:240px}.preview-name{font-size:28px;letter-spacing:-1px;margin:8px 0;font-weight:500}.preview-tone{font-size:12px;color:#aaa}.preview-note{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#888;margin-top:24px}.identity-fields label,.identity-fields legend{font-size:11px;letter-spacing:.03em;color:#aaa;margin-bottom:8px}.identity-fields>label{display:block}.identity-fields input[type=text]{display:block;width:100%;min-height:44px;background:#080808;border:1px solid #555;border-radius:10px;padding:10px 12px;color:#fff;margin-bottom:20px}.identity-fields fieldset{border:0;padding:0;margin:0 0 18px}.choice-row{display:flex;flex-wrap:wrap;gap:6px}.choice-row button{min-height:44px;padding:10px 12px;border:1px solid #3d3d3d;background:#191919;border-radius:10px;font-size:12px;color:#bbb}.choice-row button[aria-pressed=true]{color:#fff;border-color:#aaa;background:#333;box-shadow:inset 0 1px 0 #ffffff1a}.memory-choice{display:flex!important;gap:10px;align-items:flex-start;line-height:1.5;font-size:12px!important;letter-spacing:0!important;margin:24px 0 10px}.memory-choice input{width:18px;height:18px;accent-color:#fff;flex-shrink:0}.identity-scope{font-size:11px;color:#999;line-height:1.6;margin:0}.identity-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid #333}.identity-footer .primary-button{margin-left:auto}.identity-feedback{font-size:11px;color:#bbb;line-height:1.5;min-height:16px;margin:10px 0 0}
@keyframes orb-drift{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-10px) rotate(7deg)}}
@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.welcome-copy{animation:reveal 600ms var(--ease) both}.identity-strip{animation:reveal 600ms 120ms var(--ease) both}.sculpture[data-finish=mirror]{filter:contrast(1.6) brightness(1.1)}.sculpture[data-finish=smoke]{filter:contrast(.85) brightness(.75)}body[data-visual=still] .sculpture{animation:none;transform:rotate(-4deg);will-change:auto}body[data-visual=mirror] .sculpture{filter:contrast(1.6) brightness(1.1)}body[data-visual=smoke] .sculpture{filter:contrast(.85) brightness(.8)}
@media(min-width:1400px){.welcome h1{font-size:72px}.welcome{min-height:340px}.sculpture{max-width:380px}}
@media(max-width:1100px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:28px 16px 20px}.new-chat kbd{display:none}.workspace{padding:32px}.topbar{padding:0 28px}.welcome h1{font-size:52px;letter-spacing:-2.5px}.welcome{min-height:270px}.compose-heading>span,.enter-hint{display:none}.idea-list{grid-template-columns:1fr 1fr}.idea-list button{min-height:80px}.editor{padding:32px}.topbar-label{font-size:11px}}
@media(max-width:850px){.app-shell{display:block}.topbar{height:68px;padding:0 24px;gap:8px;position:relative;z-index:6}.mobile-menu{display:block;min-width:44px;font-size:20px;padding:10px;margin-left:-10px}.mobile-brand{display:flex;margin-right:auto}.mobile-brand .brand-svg{width:116px;height:27px}.topbar-label{display:none}.sidebar{display:none;position:fixed;top:68px;left:0;right:0;width:100%;height:calc(100svh - 68px);background:#0e0e0e;padding:24px 24px 20px;border-right:0;border-top:1px solid #333;z-index:5}.sidebar.open{display:flex}.sidebar>.wordmark,.sidebar>.brand-line{display:none}.sidebar .primary-nav{grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 28px}.sidebar .history button{font-size:14px}.sidebar .new-chat{justify-content:center;min-height:48px}.workspace{max-width:820px;padding:28px}.workspace:has(#thread:not([hidden])){min-height:calc(100dvh - 68px)}.welcome h1{font-size:58px}.privacy-note{margin:24px}.editor{padding:28px}.identity-edit{font-size:11px;padding:10px}.topbar #blank-page{font-size:12px;padding:10px 8px}.topbar #blank-page span{margin-left:3px}}
@media(max-width:560px){.topbar{padding:0 20px;gap:4px}.mobile-brand .brand-svg{width:108px}.topbar .identity-edit{font-size:11px;padding:10px 7px;min-width:44px}.topbar #blank-page{font-size:11px;padding:10px 7px}.workspace{padding:24px 20px 16px}.welcome{display:block;min-height:240px;padding:0 0 24px;margin-bottom:20px}.welcome-copy{padding-top:4px;animation-duration:400ms}.welcome-copy>.eyebrow{font-size:10px;max-width:210px}.welcome h1{font-size:43px;line-height:1.04;letter-spacing:-2px;margin:42px 0 16px}.welcome-copy>p{font-size:13px;line-height:1.6;max-width:290px}.hero-caption{display:none}.welcome:before{inset:0 0 auto auto;width:120px;height:90px}.spark-stage{position:absolute;top:-12px;right:-5px;width:92px;height:80px;pointer-events:none}.spark-stage .sculpture{width:100px;max-width:none}.spark-signature{display:none}.identity-strip{padding:12px;margin-bottom:24px;gap:8px}.identity-strip strong{font-size:12px}.identity-strip small{font-size:10px;max-width:160px;line-height:1.5}.identity-strip .text-button{padding:10px;font-size:11px}.identity-strip .icon-button{min-width:32px;width:32px;padding:6px}.identity-actions{gap:0}.compose-heading h2{font-size:17px}.composer{padding:14px;border-radius:16px}.composer textarea{height:56px;min-height:56px;font-size:16px}.composer-bottom{margin-top:12px;gap:8px}.mode-tabs{flex:1;gap:2px;padding:2px}.mode-tabs button{flex:1;font-size:13px;padding:10px 8px;min-height:44px}.send-button{width:46px;min-width:46px;height:46px;padding:10px;font-size:21px}.send-button span{display:none}.composer-note{font-size:10px;margin:10px 2px 0;line-height:1.5}.ideas{margin-top:24px}.ideas-heading>span:last-child{display:none}.idea-list{gap:8px}.idea-list button{min-height:88px;padding:12px;gap:8px}.idea-list strong{font-size:13px}.idea-icon{font-size:10px}.workspace-footer{margin-top:24px;padding-top:16px;font-size:10px}.workspace:has(#thread:not([hidden])){padding-top:24px;padding-bottom:12px}.thread{margin-bottom:16px}.message.user{margin-left:20px;padding:14px 16px;margin-bottom:24px;border-radius:14px}.message-label{font-size:10px;gap:8px;margin-bottom:10px}.message-label img{width:30px;height:30px;border-radius:8px}.message-content{font-size:16px;line-height:1.6}.message-status{font-size:10px}.message-actions{gap:4px}.message-actions .text-button{font-size:12px}.workspace:has(#thread:not([hidden])) .composer textarea{height:42px;min-height:42px}.workspace:has(#thread:not([hidden])) .identity-strip{display:none}.shelf{min-height:calc(100svh - 185px)}.section-heading{gap:12px;align-items:end;padding-bottom:20px}.section-heading .eyebrow{font-size:9px;max-width:180px;line-height:1.5}.section-heading h2{font-size:30px}.section-heading .text-button{font-size:12px;padding:10px}.shelf-note{font-size:12px;margin:16px 0 24px}.saved-page{padding:16px;gap:8px}.saved-page button:first-child{padding-left:46px}.saved-page button:first-child:before{width:32px;height:42px;font-size:20px}.saved-page strong{font-size:15px}.saved-page small{font-size:11px}.saved-page .text-button{font-size:11px;padding:10px 5px}.editor{padding:24px 20px}.editor-toolbar{gap:12px;margin-bottom:24px}.editor-toolbar .eyebrow{font-size:22px}.editor-toolbar .text-button{font-size:12px;padding:10px 8px}.field-label{font-size:10px;margin:18px 0 8px}.editor input{font-size:21px;padding:14px}.editor textarea{min-height:290px;height:290px;font-size:16px;padding:14px}.editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;margin-top:12px}#save-page{grid-column:1;grid-row:1}#compare-page{grid-column:2;grid-row:1}#export-format{grid-column:1;grid-row:2;width:100%}#export-page{grid-column:2;grid-row:2}#rewrite-page{grid-column:1/3;grid-row:3}.editor-actions .text-button{font-size:12px}.document-diff{padding:16px;margin-top:16px}.document-diff .editor-toolbar strong{font-size:13px}.document-diff #close-diff{font-size:11px;padding:8px 4px}.document-diff p{font-size:11px}#diff-content{font-size:14px}.document-status{font-size:11px}.privacy-note{margin:20px;padding:20px;font-size:13px}.identity-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:20px}.identity-dialog-inner{padding:20px}.identity-dialog h2{font-size:28px}.identity-intro{font-size:12px}.identity-grid{grid-template-columns:1fr;gap:20px}.identity-preview{display:grid;grid-template-columns:90px 1fr;text-align:left;gap:4px 16px;padding:12px;min-height:112px}.identity-preview .sculpture{width:100px;grid-row:1/4;grid-column:1}.preview-name{grid-column:2;font-size:22px;margin:10px 0 0}.preview-tone{grid-column:2;font-size:11px;align-self:start}.preview-note{grid-column:2;font-size:8px;margin:0 0 8px}.identity-fields fieldset{margin-bottom:16px}.identity-footer{gap:4px;margin-top:20px;padding-top:16px}.identity-footer .text-button{font-size:12px}.identity-footer .primary-button{font-size:12px}}
@media(max-width:350px){.workspace{padding:20px 16px 16px}.editor{padding:20px 16px}.topbar{padding:0 16px;gap:2px}.mobile-brand .brand-svg{width:91px}.topbar #blank-page{font-size:10px;padding:10px 4px;min-width:40px}.topbar .identity-edit{font-size:10px;padding:10px 5px}.welcome h1{font-size:37px;letter-spacing:-1.8px;margin-top:40px}.welcome-copy>.eyebrow{font-size:9px;max-width:185px}.spark-stage{width:80px;right:-6px}.spark-stage .sculpture{width:88px}.welcome{min-height:222px}.welcome-copy>p{font-size:12px}.identity-strip{padding:10px;gap:6px}.identity-strip small{max-width:130px;font-size:9px}.identity-strip .text-button{font-size:10px;padding:10px 8px}.identity-strip .icon-button{min-width:28px;width:28px}.composer{padding:12px}.mode-tabs button{font-size:12px;padding:10px 6px}.idea-list strong{font-size:12px}.editor input{font-size:19px}.document-diff .editor-toolbar strong{font-size:12px}.document-diff #close-diff{font-size:10px}.choice-row button{font-size:11px;padding:10px}.identity-dialog-inner{padding:16px}}
@supports not (backdrop-filter:blur(1px)){.composer,.identity-dialog{background:#171717}.identity-dialog::backdrop{background:#000d}}
@media(prefers-reduced-transparency:reduce){.composer,.identity-dialog{background:#171717;backdrop-filter:none;-webkit-backdrop-filter:none}.identity-dialog::backdrop{backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.sculpture{will-change:auto;transform:rotate(-4deg)}}

.workspace:has(#welcome[hidden]) .identity-strip{display:none}.identity-preview .sculpture[data-finish=still]{animation:none;transform:rotate(-4deg)}

@media(hover:hover) and (prefers-reduced-motion:no-preference){.composer:hover{border-color:#777}.identity-preview:hover .sculpture{animation-duration:8s}}

@media(max-width:560px){.identity-footer{position:sticky;bottom:0;background:#191919f5;z-index:2;padding-bottom:8px;box-shadow:0 -12px 16px #191919;backdrop-filter:blur(8px)}.identity-preview{min-height:100px}.identity-preview .sculpture{width:88px}.identity-fields input[type=text]{margin-bottom:16px}.identity-intro{margin-bottom:16px}.identity-scope{font-size:10px;line-height:1.5}}
.identity-edit{max-width:120px;overflow:hidden;text-overflow:ellipsis}.preview-name{max-width:100%;overflow-wrap:anywhere}.mobile-brand{flex-shrink:0}
@media(max-width:560px){.identity-edit{max-width:64px}.topbar #blank-page{flex-shrink:0}}
@media(max-width:350px){.identity-edit{max-width:44px}}

/* Partial-answer recovery controls remain available on narrow screens. */
.message-actions{flex-wrap:wrap}

/* Keep the composer quiet; first-use data details stay accessible. */
.send-button{width:48px;min-width:48px;padding:10px;font-size:22px}
.data-notice{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.composer-privacy{font:inherit;min-height:44px;min-width:44px;padding:4px 0;text-decoration:underline;text-underline-offset:3px;color:#bbb}
.composer-privacy:hover{color:#fff}
.privacy-note details{margin:16px 0}
.privacy-note summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#eee}

/* Encounter correction: one conversation, existing choices secondary. */
body.encounter .app-shell{display:block}
body.encounter .topbar{height:64px;max-width:800px;margin:auto;padding:0 24px;border:0;background:transparent;position:relative;z-index:10}
body.encounter .mobile-menu,body.encounter .mobile-brand{display:flex}
body.encounter .mobile-menu{align-items:center;justify-content:center;min-width:44px;margin-left:-10px;font-size:19px}
body.encounter .mobile-brand{margin-right:auto}
body.encounter .mobile-brand .brand-svg{width:128px;height:29px}
body.encounter .topbar-label{display:none}
body.encounter .sidebar{display:none;position:fixed;top:68px;left:max(16px,calc(50vw - 376px));right:auto;width:300px;height:auto;max-height:calc(100dvh - 88px);overflow:auto;padding:20px;border:1px solid #303030;border-radius:18px;background:#111;box-shadow:0 24px 80px #000a;z-index:20}
body.encounter .sidebar.open{display:flex}
body.encounter .sidebar .wordmark,body.encounter .sidebar .brand-line,body.encounter .sidebar-bottom>p{display:none}
body.encounter .sidebar .primary-nav{display:flex;flex-direction:column;gap:6px;margin:16px 0}
body.encounter .sidebar .primary-nav .nav-item{min-height:44px;width:100%;text-align:left}
body.encounter .sidebar #talk-nav{display:none}
body.encounter .sidebar #blank-page{text-align:left;padding:12px 14px}
body.encounter .history-heading{margin:18px 0 8px}
body.encounter .history{flex:none;max-height:170px}
body.encounter .sidebar-bottom{margin-top:18px;padding-top:12px}
body.encounter .work-options{border-block:1px solid #292929;padding:10px 0;font-size:13px}
body.encounter .work-options summary{min-height:36px;cursor:pointer;display:flex;align-items:center}
body.encounter .work-options .mode-tabs{margin-top:10px}
body.encounter .tone-apply{font-size:12px;text-align:left;padding:10px 0;margin:0}
body.encounter .workspace{max-width:760px;padding:12px 24px 24px;margin:auto}
body.encounter .welcome{display:flex;flex-direction:column;align-items:center;gap:0;min-height:0;padding:0;border:0;margin:0 0 22px}
body.encounter .welcome-copy{display:contents}
body.encounter .welcome-copy>.eyebrow,body.encounter .welcome-copy>p,body.encounter .welcome-copy>.welcome-note{display:none}
body.encounter .welcome h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-1.1px;text-align:center;max-width:none}
body.encounter .identity-strip{display:none}
body.encounter .composer{padding:18px;border-radius:24px;overflow:visible;box-shadow:inset 0 1px 0 #ffffff16,0 10px 32px #0004}
body.encounter .composer textarea{min-height:76px;height:76px;max-height:220px;font-size:18px;line-height:1.5;padding:0;resize:vertical}
body.encounter .composer-bottom{position:relative;margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:12px}
body.encounter .voice-options{border:0;padding:0;margin:0;position:relative}
body.encounter .voice-options>summary{display:flex;align-items:center;gap:10px;list-style:none;border:1px solid #373737;background:#171717;border-radius:12px;padding:9px 13px;min-height:44px;font-size:13px;cursor:pointer}
body.encounter .voice-options>summary::-webkit-details-marker{display:none}
body.encounter .voice-options>summary span{font-size:18px;color:#aaa}
body.encounter .voice-controls{padding:0}
body.encounter .voice-controls .voice-notice{font-size:12px;margin:0 0 16px}
body.encounter .composer-note{margin-top:12px;min-height:20px}
body.encounter .data-notice{font-size:11px;line-height:1.5;gap:7px;justify-content:center;width:100%;text-align:center}
body.encounter .enter-hint{display:none}
body.encounter .ideas{margin-top:22px}
body.encounter .ideas-heading{display:none}
body.encounter .idea-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.encounter .idea-list button{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-radius:12px;background:#111;border-color:#282828}
body.encounter .idea-list strong{font-size:12px;font-weight:500;letter-spacing:0;white-space:nowrap}
body.encounter .idea-icon,body.encounter .idea-list small{display:none}
body.encounter .idea-arrow{font-size:15px;color:#999;position:static}
body.encounter .workspace-footer{margin-top:26px;border:0;font-size:11px;color:#666}
body.encounter .thread{padding:12px 0}
body.encounter .editor{max-width:760px;padding:24px;margin:auto}
body.encounter .local-tools-surface{max-width:760px}
@media(max-width:350px){body.encounter .workspace{padding-inline:16px}body.encounter .welcome h1{font-size:24px}body.encounter .mobile-brand .brand-svg{width:108px}body.encounter .idea-list strong{font-size:11px}}
body.encounter .workspace .spark-stage::before,body.encounter .workspace .spark-stage::after{display:none}
body.encounter .identity-preview .chia-preview-stage{position:relative;width:220px;height:190px;min-height:190px;max-width:100%;border:0;background:none;display:block}
body.encounter .identity-preview .chia-preview-stage .chia-character{width:100%;height:190px;max-width:none}
body.encounter .identity-preview .chia-preview-stage .chia-state-label{display:none}
body.encounter .identity-preview .chia-preview-stage>.chia-face-fallback{width:100%;height:100%}
body.encounter .sidebar:has(.history:not(:has(button))) .history-heading,body.encounter .sidebar .history:not(:has(button)){display:none}
@media(max-width:600px){body.encounter .identity-preview .chia-preview-stage{width:112px;height:112px;min-height:112px;grid-column:1;grid-row:1/4}body.encounter .identity-preview .chia-preview-stage .chia-character{height:112px}}
body.encounter #voice-host{display:flex;flex-direction:column;max-height:min(620px,calc(100dvh - 100px));overflow:auto}
body.encounter #voice-host>.voice-controls{order:0}
body.encounter #voice-availability{order:1;font-size:11px;line-height:1.5;color:#aaa;margin:12px 0 0}
body.encounter .voice-playback h3{width:100%;font-size:15px;margin:0 0 3px;font-weight:600}
body.encounter .voice-capture-title{font-size:15px;margin:20px 0 8px;padding-top:16px;border-top:1px solid #333}
body.encounter .voice-controls select{flex:1;min-width:170px}
body.encounter .voice-controls button{font-size:13px;border-color:#454545;background:#1c1c1c;border-radius:10px}
body.encounter .voice-controls [role=status]{font-size:12px;line-height:1.5}
body.encounter .encounter-voice-panel{margin-top:18px;padding:20px 0 0;border-top:1px solid #2c2c2c}
body.encounter .encounter-voice-panel[hidden]{display:none}
@media(max-width:600px){body.encounter .topbar{padding:0 20px}body.encounter .mobile-brand .brand-svg{width:116px}body.encounter .workspace{padding:4px 20px 20px}body.encounter .welcome{margin-bottom:20px}body.encounter .welcome h1{font-size:27px;letter-spacing:-1px}body.encounter .composer{padding:16px;border-radius:21px}body.encounter .composer textarea{font-size:17px;min-height:76px;height:76px}body.encounter .idea-list{grid-template-columns:1fr 1fr;gap:8px}body.encounter .idea-list button{min-height:48px}body.encounter .ideas{margin-top:20px}body.encounter .sidebar{left:16px;right:16px;width:auto}body.encounter .editor{padding:20px}body.encounter .identity-preview{grid-template-columns:112px 1fr}}
body.encounter .welcome::before,body.encounter .welcome::after{display:none}
body.encounter .welcome .welcome-footnote{display:none}
body.encounter .welcome .hero-caption{display:none}
body.encounter #encounter-mode{font-size:11px;color:#aaa;order:1;margin-right:auto}
body.encounter .composer-bottom>.voice-options{order:0}
body.encounter .composer-bottom>.send-button,body.encounter .composer-bottom>.stop-button{order:2}
body.encounter #personal-notes-preview:not([hidden]){font-size:12px;line-height:1.6;color:#bbb;margin:16px 0;padding:14px;border:1px solid #343434;border-radius:14px;overflow-wrap:anywhere}
body.encounter #personal-notes-preview h3{font-size:13px;margin:0 0 8px;color:#eee}
body.encounter #personal-notes-preview p{margin:5px 0}
