/* Shared interaction foundation. Independent of project/Space hierarchy. */
:root{--hover:rgba(255,255,255,.055);--pressed:rgba(255,255,255,.085);--selected:#2b2b2b;--focus:#aaa;--control-radius:8px;--menu-bg:#222;--menu-border:#3b3b3b}
button{transition:background-color 120ms ease,color 120ms ease,border-color 120ms ease; -webkit-tap-highlight-color:transparent}
button:hover{background:transparent}
button:focus{outline:none}button:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
button:disabled{opacity:.4;cursor:default}
::selection{background:#575757;color:#fff}
.nav{border-radius:7px;padding:9px 11px;margin-bottom:3px;min-height:37px}.nav:hover{background:var(--hover);color:#e7e7e7}.nav.active{background:#2a2a2a;color:#f1f1f1}.nav.active:hover{background:#303030}.nav:active{background:var(--pressed)}
.nav.new{border-color:transparent;background:transparent;margin-bottom:20px}.nav.new:hover{background:var(--hover)}
.side-label{text-transform:none;letter-spacing:0;font-size:12px;color:#848484}.side-label button{border-radius:5px;width:24px;height:24px}.side-label button:hover{background:var(--hover);color:#ddd}
.recents{padding:0}.recents button{padding:8px 11px;border-radius:6px;width:100%;max-width:100%;color:#b3b3b3}.recents button:hover{background:var(--hover);color:#e8e8e8}
.icon-btn,.pill,.text-btn,.toolbar-action{border-radius:var(--control-radius)}.icon-btn:hover,.pill:hover,.text-btn:hover,.toolbar-action:hover{background:var(--hover);color:#eee}.icon-btn:active,.pill:active,.toolbar-action:active{background:var(--pressed)}
.text-btn{padding:6px 8px}.toolbar-action{border-color:transparent}.chip{border-color:#323232;border-radius:9px}.chip:hover{background:var(--hover);border-color:#444;color:#eee}.chip:active{background:var(--pressed)}
.primary{border-radius:8px;background:#dedede;color:#222}.primary:hover{background:#efefef}.primary:active{background:#c9c9c9}
.card{background:#1d1d1d;border-color:#303030;transition:background-color 140ms ease,border-color 140ms ease}.card:hover{background:#242424;border-color:#414141}.card:active{background:#282828}.project-card-open{padding:0}.project-card-menu{opacity:0;color:#aaa}.project-card:hover .project-card-menu,.project-card:focus-within .project-card-menu{opacity:1}.project-card-menu:hover{background:#383838;color:#eee}.card footer{align-items:center}
.composer{background:#202020;border-color:#3b3b3b;box-shadow:none;transition:border-color 140ms ease}.composer:focus-within{border-color:#535353}.composer .pill{border-radius:18px}.send{background:#d6d6d6}.send:hover{background:#eee}.send:active{background:#bebebe}
.tabs button{padding:0 7px;color:#929292}.tabs button:hover{background:transparent;color:#e0e0e0}.tabs button.active{color:#eee}.tabs button.active:after{height:2px;background:#d5d5d5}.tabs{gap:17px}
.profile{border-radius:0}.profile:hover{background:var(--hover)}
input:not([type=checkbox]),textarea{caret-color:#ddd}dialog input:focus,dialog textarea:focus{border-color:#737373;box-shadow:0 0 0 1px #737373}.search-box:focus-within{border-color:#666}.document:focus-visible{outline:none}.document:focus{outline:none}
dialog{background:#222;border:1px solid #404040;border-radius:14px;box-shadow:0 20px 80px #0007;padding:25px}dialog::backdrop{background:#0006;backdrop-filter:blur(2px)}.dialog-actions>button:not(.primary){padding:9px 13px;border-radius:8px}.dialog-actions>button:not(.primary):hover{background:var(--hover)}
.source-row,.library-row,.search-result{border-radius:7px}.source-row:hover,.search-result:hover{background:var(--hover)}.library-row:hover{background:var(--hover)}.library-row{padding-left:10px;padding-right:10px}.library-row button:hover{background:transparent}.task{padding-left:8px;border-radius:6px}.task:hover{background:var(--hover)}.task input{accent-color:#ddd}
.select-wrap{display:inline-flex;min-width:0}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;border-radius:8px;padding:7px 9px;color:#bababa;min-height:32px;font-size:12px;max-width:100%}.select-trigger:hover,.select-trigger[aria-expanded=true]{background:#303030;color:#eee}.select-trigger .selection-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger svg{width:12px;height:12px;stroke-width:1.8;transform:rotate(90deg)}
.document-switcher .select-wrap{flex:1}.document-switcher .select-trigger{border:1px solid #383838;width:100%;text-align:left;padding:9px 11px}.panel-composer .select-trigger{font-size:11px}.composer .select-trigger{border-radius:18px}
.control-popover{position:fixed;z-index:1000;background:var(--menu-bg);border:1px solid var(--menu-border);border-radius:11px;padding:5px;box-shadow:0 5px 20px #0005;min-width:190px;max-width:min(340px,calc(100vw - 20px));max-height:320px;overflow:auto}.control-popover button{display:flex;align-items:center;gap:10px;width:100%;min-height:35px;border-radius:6px;padding:8px 10px;text-align:left;font-size:13px;color:#c7c7c7}.control-popover button:hover,.control-popover button:focus-visible{background:#323232;color:#f0f0f0;outline:none}.control-popover button:active{background:#3a3a3a}.control-popover svg{width:15px;height:15px}.control-popover .option-check{margin-left:auto}.control-popover .menu-heading{padding:8px 10px;font-size:11px;color:#888;border-bottom:1px solid #333;margin-bottom:4px}.control-popover [aria-selected=true]{color:#eee}
@media(hover:none){.project-card-menu{opacity:1}}
@media(prefers-reduced-motion:reduce){button,.card,.composer{transition:none}}
.space-switch{display:flex;align-items:center;gap:5px;margin:0 0 17px;padding:0 5px}.space-switch .select-wrap{flex:1;min-width:0}.space-switch .select-trigger{width:100%;text-align:left;color:#ddd;background:#252525;border:1px solid #353535}.brand{padding-bottom:20px}.chip[aria-pressed=true]{background:#333;color:#eee;border-color:#555}

/* Neutral glass surfaces: opaque fallback, transparency where supported. */
:root{--glass-fill:rgba(43,43,43,.76);--glass-edge:rgba(255,255,255,.16);--glass-shadow:0 12px 36px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.08)}
.composer,.panel-composer .composer,.control-popover{background:#292929;border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow)}
.composer,.panel-composer .composer{border-radius:20px;background-image:linear-gradient(145deg,rgba(255,255,255,.035),transparent 60%)}
.composer:focus-within{border-color:rgba(255,255,255,.28);box-shadow:0 14px 40px #0004,inset 0 1px 0 #ffffff18}
.control-popover{border-radius:14px;padding:6px;background-image:linear-gradient(140deg,rgba(255,255,255,.045),transparent 55%)}
.control-popover button{border-radius:8px}.control-popover button:hover,.control-popover button:focus-visible{background:rgba(255,255,255,.09)}
.select-trigger[aria-expanded=true]{background:rgba(255,255,255,.09)}
dialog{background:#282828;border-color:var(--glass-edge);box-shadow:0 24px 70px #0007,inset 0 1px 0 #ffffff16}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
.composer,.panel-composer .composer,.control-popover,dialog{background-color:var(--glass-fill);-webkit-backdrop-filter:blur(24px) saturate(125%);backdrop-filter:blur(24px) saturate(125%)}
}
@media(prefers-reduced-transparency:reduce){.composer,.panel-composer .composer,.control-popover,dialog{background:#292929;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){.composer,.panel-composer .composer,.control-popover,dialog{background:#242424;border-color:#aaa;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Experimental focus accent: a fine moving pastel perimeter. */
@property --composer-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.composer{position:relative;isolation:isolate}
.composer::before{content:'';position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;opacity:0;background:conic-gradient(from var(--composer-angle),#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;transition:opacity 220ms ease}
.composer:has(textarea:focus)::before{opacity:1;animation:composer-border-orbit 7s linear infinite}
.composer:has(textarea:focus){border-color:transparent}
@keyframes composer-border-orbit{to{--composer-angle:360deg}}
@media(prefers-reduced-motion:reduce){.composer:has(textarea:focus)::before{animation:none;transition:none}}
@media(forced-colors:active){.composer::before{display:none}.composer:has(textarea:focus){border-color:Highlight}}
.color-choices{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 18px}.color-swatch{width:29px;height:29px;border-radius:50%;background:var(--swatch)!important;color:#222;display:grid;place-items:center;border:3px solid #222;box-shadow:0 0 0 1px transparent}.color-swatch:hover{box-shadow:0 0 0 1px #777}.color-swatch[aria-pressed=true]{box-shadow:0 0 0 2px #ddd}.color-swatch svg{width:15px;height:15px}.inherit-color{font-size:12px;padding:7px 10px;border:1px solid #444;border-radius:8px}.inherit-color[aria-pressed=true]{background:#383838;border-color:#999}.space-switch .selection-label{flex:1;text-align:left}
.format-toolbar{display:flex;gap:3px;margin:-20px 0 25px;padding:5px;border:1px solid #333;border-radius:9px;width:fit-content;flex-wrap:wrap}.format-toolbar button{padding:6px 9px;border-radius:5px;font-size:11px;color:#bcbcbc}.format-toolbar button:hover{background:#333;color:#eee}.document ul,.document ol{padding-left:24px}

/* One persistent assistant toggle across desktop and compact layouts. */
.assistant-panel[hidden]{display:none!important}
.tabs .assistant-toggle{display:inline-grid;align-self:center;flex-shrink:0}

/* Shared interaction polish: panel controls live in the page header. */
.topbar .assistant-toggle{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;white-space:nowrap;color:var(--muted);font-size:12px;min-height:32px}
.topbar .assistant-toggle[aria-expanded="true"]{background:#ffffff0b;color:var(--ink)}
.topbar .assistant-toggle:hover{background:#ffffff10;color:var(--ink)}
.topbar .assistant-toggle svg{width:16px;height:16px}
.panel-head .icon-btn{flex-shrink:0}
dialog{position:fixed;max-height:85vh;overflow:auto;padding:26px;width:min(520px,calc(100vw - 32px))}
dialog h2{padding-right:34px;margin-top:0;font-size:19px;font-weight:500}
.dialog-close{position:absolute;right:16px;top:16px;font-size:23px;line-height:1;border:1px solid var(--line);border-radius:50%}
dialog label{display:block;margin-top:18px;font-size:13px}
dialog label input,dialog label textarea{margin-top:8px}
dialog input:focus,dialog textarea:focus{border-color:#777;box-shadow:0 0 0 1px #ffffff12}
.dialog-actions{padding-top:18px;gap:10px}
.dialog-actions>button{min-height:34px;padding:8px 13px;border-radius:8px}
button:disabled,button:disabled:hover{cursor:default;opacity:.4}
.control-popover [role="menuitem"]:last-child:not(:first-child){border-top:1px solid var(--line);margin-top:5px;padding-top:11px}
@media(max-width:600px){.topbar .right{gap:8px}.topbar .assistant-toggle{padding:6px 8px}.topbar .breadcrumb{min-width:0;overflow:hidden}.topbar .breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.format-toolbar{position:fixed;z-index:30;margin:0!important;padding:5px!important;background:rgba(38,38,38,.96);backdrop-filter:blur(18px);border:1px solid #505050;border-radius:10px;box-shadow:0 8px 28px #0006}
.format-toolbar[hidden]{display:none!important}
.project-overview{max-width:760px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;gap:28px;padding:12px 0 0}
.project-overview h1{font-size:28px;font-weight:500;letter-spacing:-.6px;margin:10px 0}
.project-overview h2{font-size:13px;font-weight:500;color:var(--muted);margin:0;padding:15px 18px}
.project-start{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#ffffff02}
.project-start>button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:18px;border-top:1px solid #ffffff07}
.project-start>button>span{flex:1}.project-start strong{font-weight:500;display:block}.project-start small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}
.overview-prompt{margin-top:auto;padding-top:30px;padding-bottom:4px}.overview-prompt .composer{box-shadow:0 0 32px #a7c9bd0d,0 12px 35px #0002}.overview-prompt .composer:focus-within{box-shadow:0 0 36px #a7c9bd18}
.overview-layout .workspace{padding-bottom:22px}.overview-recent .source-row{width:100%;text-align:left}
@media(max-height:800px){.project-overview{gap:18px;padding-top:0}.project-overview h1{font-size:25px}.project-start>button{padding:12px 16px}.project-start h2{padding:12px 16px}.overview-prompt{padding-top:8px}.project-overview>div:first-child p{margin-bottom:0}.overview-layout .workspace{padding-top:18px}}
/* Project shell: identity, content, contextual details, and a docked composer. */
#app:has(.project-layout){display:flex;flex-direction:column;overflow:hidden}
.project-top{flex:none}.project-top .topbar{height:58px}.project-identity{display:flex;align-items:center;gap:14px;padding:12px 36px 22px}.project-identity>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#ffffff09;color:#aaa}.project-identity h1{font-size:20px;font-weight:500;margin:0}.project-layout{flex:1;height:auto;min-height:0}
.overview-layout .workspace{padding:0;overflow:hidden}.project-overview{height:100%;min-height:0;max-width:none;padding:0;gap:0}.overview-feed{flex:1;min-height:0;overflow:auto;padding:18px 28px 30px}.overview-filter{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:28px}.overview-filter span{font-size:10px;background:#ffffff09;border-radius:20px;padding:3px 7px}.project-start,.overview-recent{max-width:720px;margin:0 auto}.project-start{background:transparent}.project-start h2{background:#ffffff04}.project-start>button{padding:15px 18px}.overview-prompt{flex:none;margin:0;padding:20px 28px 12px;background:linear-gradient(transparent,var(--bg) 25%)}.overview-prompt .composer{max-width:720px;margin:auto;box-shadow:0 0 32px #8ec8c51a;border-color:#799e9c55}.overview-prompt .panel-note{text-align:center;margin:9px 0 0}.project-details{width:280px;flex-shrink:0;align-self:stretch;overflow:auto;border-left:1px solid var(--line);padding:22px 20px}.detail-heading{display:flex;justify-content:space-between;align-items:center}.detail-heading h2{font-size:13px;font-weight:500;margin:0}.project-details p{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 32px}.overview-layout:has(.assistant-panel:not([hidden])) .project-details{display:none}
@media(max-width:1050px){.project-details{width:230px}.overview-feed{padding:18px}.overview-prompt{padding:14px 18px 10px}.project-start>button{padding:12px}.project-start small{font-size:11px}}
@media(max-width:850px){.project-details{display:none}.project-identity{padding:10px 24px 18px}.assistant-panel.mobile-open{top:170px}.project-top .tabs{overflow-x:auto;flex-shrink:0}.project-top .tabs>button{white-space:nowrap}}
/* Iridescent resting glow for the project composer. */
.overview-prompt .composer{position:relative;isolation:isolate;border-color:rgba(207,211,225,.34);box-shadow:-16px 0 34px -10px #9480ff40,16px 0 34px -10px #2fd3bf38,0 12px 30px -10px #ff7eb32e;background:linear-gradient(120deg,rgba(148,128,255,.07),rgba(47,211,191,.045) 48%,rgba(255,126,179,.06)),rgba(35,35,35,.94)}
.overview-prompt .composer:focus-within{box-shadow:-16px 0 40px -8px #9480ff5c,16px 0 40px -8px #2fd3bf50,0 12px 34px -8px #ff7eb340}
.materials-page{max-width:960px;margin:auto}.materials-page h1{font-size:25px;font-weight:500;margin:0 0 8px}.materials-page .page-head{gap:20px}.materials-page .page-head p{font-size:12px;margin:0}.instructions-form{border:1px solid var(--line);border-radius:12px;padding:18px;margin:24px 0}.instructions-form>label{display:block;margin-bottom:12px;font-size:13px}.instructions-form textarea{width:100%;min-height:95px;resize:vertical;font-size:13px;line-height:1.6}.instructions-form>div{display:flex;justify-content:space-between;align-items:center;font-size:11px}.materials-controls{display:flex;gap:8px;align-items:center;margin:26px 0 14px}.materials-controls>input{flex:1;min-width:0;background:#ffffff04;border:1px solid var(--line);padding:10px 12px;border-radius:8px}.materials-controls [aria-pressed=true]{background:#ffffff0d;color:var(--ink)}.material-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);min-height:76px}.material-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;padding:16px 8px;border-radius:8px}.material-open span{min-width:0}.material-open strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:500}.material-open small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.material-include{display:flex;gap:6px;font-size:11px;color:var(--muted);align-items:center}.materials-empty{text-align:center;padding:65px 20px;color:var(--muted)}.materials-empty h2{font-size:17px;font-weight:500;color:var(--ink)}.materials-empty p{font-size:13px}.material-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;font:13px/1.7 inherit;border:1px solid var(--line);padding:16px;border-radius:10px}.context-choice{display:flex;align-items:center;gap:10px}.context-choice input{width:auto;margin:0}.conversation-context{margin-bottom:24px}

.research-saved{max-height:240px;overflow:auto;margin:12px 0}.research-saved>div{display:flex;align-items:center;gap:8px;border-radius:8px}.research-saved>div:hover{background:rgba(255,255,255,.04)}.research-saved>div>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:10px;overflow:hidden;text-overflow:ellipsis;background:none;border:0;color:var(--text)}
.research-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;color:var(--muted);font-size:12px}.research-toggle:hover,.research-toggle[aria-expanded=true]{background:#ffffff08;color:var(--ink)}
@media(max-width:900px){.topbar .badge{display:none}.project-top .breadcrumb{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-top .topbar{gap:10px}.project-top .right{flex-shrink:0}.project-top .right button span{display:none}}
.material-meta{font-size:12px;color:var(--muted);margin-bottom:10px}.material-origin{display:flex;align-items:center;gap:8px;width:100%;text-align:left;overflow-wrap:anywhere;font-size:12px;color:var(--muted);padding:9px 0;margin:6px 0 14px}.material-origin svg{flex-shrink:0}.material-excerpt{margin:16px 0 22px;padding:16px 18px;border-left:2px solid #aca6c5;border-radius:0 9px 9px 0;background:#ffffff04;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;line-height:1.7;font-size:14px}.material-use-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.dialog:has(#material-review){max-width:680px}#editor blockquote{margin:20px 0;padding:8px 20px;border-left:2px solid #aca6c5;white-space:pre-wrap}#editor a{color:#bfcbd2;text-decoration:underline;text-underline-offset:3px}
.context-source{align-items:flex-start!important;padding:12px!important;border-radius:9px}.context-source:hover{background:#ffffff04}.context-source span{display:flex;flex-direction:column;gap:5px;min-width:0}.context-source strong{font-size:13px;font-weight:500}.context-source small{font-size:12px;color:var(--muted);line-height:1.5}.context-source input{margin-top:3px}.context-choice input,.material-include input{accent-color:#c7c7c7}

::selection{background:#423d52;color:#e4dcf5;text-shadow:none}
input::selection,textarea::selection,[contenteditable]::selection{background:#423d52;color:#e4dcf5}
.composer-modes{display:flex;gap:4px;align-items:center;min-width:0}.mode-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid transparent;border-radius:18px;font-size:12px;color:var(--muted);white-space:nowrap}.mode-pill>svg{width:15px;height:15px}.mode-pill>svg:last-child{width:11px;height:11px;transform:rotate(90deg)}.mode-pill[aria-pressed=true]{background:#ffffff05;border-color:#ffffff21;color:var(--ink)}.mode-pill:hover,.mode-pill[aria-expanded=true]{background:#ffffff0b;color:var(--ink)}
.control-popover.mode-popover{display:grid;grid-template-columns:1fr 1fr;padding:7px;min-width:0!important;border:1px solid #ffffff24;border-radius:14px;background:linear-gradient(140deg,#292929ed,#202020f5);backdrop-filter:blur(28px);box-shadow:0 16px 48px #0005;overflow:auto;z-index:50}.mode-options{padding:3px 8px 3px 2px;border-right:1px solid #ffffff10;overflow:auto}.mode-popover .mode-options button{display:flex;align-items:center;width:100%;gap:10px;min-height:39px;padding:9px 10px;border-radius:8px;font-size:13px;text-align:left;color:#bfbfbf}.mode-options button svg{width:16px;height:16px}.mode-options button span{flex:1}.mode-popover .mode-options button.previewed{background:#ffffff07;color:#eee}.mode-detail{display:flex;flex-direction:column;padding:10px 10px 5px 16px}.mode-detail-copy{margin-bottom:12px}.mode-detail h3{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;margin:0 0 9px}.mode-detail h3 svg{width:16px;height:16px}.mode-detail p{font-size:13px;color:#a2a2a2;line-height:1.6;margin:0}.mode-popover .mode-use{align-self:flex-end;margin-top:auto;padding:7px 14px;background:#dededc;color:#222;border-radius:9px;width:auto}.mode-popover .mode-use:hover{background:#f0f0ee}.mode-options button:focus-visible{outline:1px solid #aaa;outline-offset:-2px}@media(max-width:520px){.mode-detail{padding-left:10px}.mode-popover .mode-options button{font-size:12px;padding:8px 6px;gap:6px}.composer-bottom{flex-wrap:wrap}.mode-pill{font-size:11px;padding:6px}.mode-detail p{font-size:12px}}
.control-popover.mode-popover{max-width:calc(100vw - 20px)}
.brand img{width:29px;height:29px;object-fit:contain;border-radius:0;background:none}.brand>span{letter-spacing:-.7px}
.brand>.icon-btn{margin-left:auto}

/* Sidebar header controls and collapsed navigation rail. */
#sidebar .brand{padding-left:8px;padding-right:0;gap:6px;min-height:52px}
#sidebar .brand>.icon-btn{margin-left:0;width:30px;height:32px;flex-shrink:0}
#sidebar .brand>img+.icon-btn{margin-left:auto}
#sidebar.is-collapsed{width:60px;padding:27px 9px 14px;align-items:center}
#sidebar.is-collapsed .brand{padding:0 0 20px;justify-content:center;width:100%}
#sidebar.is-collapsed .brand>.icon-btn{width:38px;height:32px}
.rail-expand{position:relative;display:grid;place-items:center}
.rail-expand img{width:27px;height:27px}
.rail-expand svg{display:none}
.rail-expand:hover img,.rail-expand:focus-visible img{display:none}
.rail-expand:hover svg,.rail-expand:focus-visible svg{display:block}
#sidebar.is-collapsed nav{display:flex;flex-direction:column;gap:5px;width:100%}
#sidebar .rail-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:#aaa}
#sidebar .rail-button:hover{background:#ffffff0a;color:#eee}
#sidebar .rail-button.active{background:#ffffff0d;color:#eee}
#sidebar .rail-button:first-child{margin-bottom:8px}
#sidebar .side-bottom .rail-button{margin:0}
@media(min-width:601px){.mobile-menu{display:none}}

/* Gentle sidebar motion, with an immediate reduced-motion alternative. */
#sidebar{transition:width 240ms cubic-bezier(.22,1,.36,1),padding 240ms cubic-bezier(.22,1,.36,1);overflow-x:clip}
#sidebar .brand,#sidebar .nav,#sidebar .side-label,#sidebar .profile{flex-shrink:0;white-space:nowrap}
@media(prefers-reduced-motion:reduce){#sidebar{transition:none}}

.collection{max-width:1200px}.collection .page-head{margin-bottom:22px}.collection-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.collection-controls .search-box{flex:1;max-width:none;min-width:220px;margin:0}.collection-controls select{max-width:150px}.collection-filters{margin:20px 0}.collection-row{display:flex;align-items:center;border-bottom:1px solid #ffffff09;border-radius:8px;padding:4px 8px;gap:8px}.collection-row:hover{background:#ffffff04}.collection-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;padding:14px 4px;border-radius:6px}.collection-open>span:first-of-type{flex:1;min-width:0}.collection-open strong{font-size:13px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-open small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.collection-kind{font-size:11px;color:var(--muted)}.collection-row>.icon-btn{opacity:0}.collection-row:hover>.icon-btn,.collection-row:focus-within>.icon-btn{opacity:1}.move-note{font-size:12px!important}@media(hover:none){.collection-row>.icon-btn{opacity:1}}

.conversation-ready{max-width:860px;padding-top:28px;padding-bottom:0;min-height:calc(100vh - 75px);display:flex;flex-direction:column}.conversation-ready .page-head{margin-bottom:16px}.conversation-ready h1{font-size:25px}.chat-context-bar{display:flex;align-items:center;gap:14px;margin-bottom:32px;font-size:12px}.chat-turn{margin:0 0 30px;min-width:0}.chat-by{font-size:11px;color:var(--muted);margin-bottom:10px}.chat-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}.user-turn{margin-left:auto;max-width:88%;background:#ffffff06;border:1px solid #ffffff08;border-radius:18px;padding:16px 20px}.assistant-turn{padding:4px 0}.chat-actions{display:flex;gap:6px;align-items:center;margin-top:8px}.chat-actions .text-btn{font-size:11px;color:var(--muted)}.chat-actions .icon-btn{width:28px;height:28px}.chat-status{color:var(--muted);font-size:12px;line-height:1.6;margin:12px 0}.chat-composer-dock{position:sticky;bottom:0;margin-top:auto;padding:16px 0 20px;background:linear-gradient(transparent,var(--bg) 24%)}.conversation-ready .composer{margin:0}.context-snapshot{max-height:50vh;overflow:auto}.context-snapshot details{padding:12px 0;border-bottom:1px solid var(--line)}.context-snapshot pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 inherit;color:var(--muted)}
.provider-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.provider-row strong{display:block;font-size:13px;font-weight:500}.provider-row small{display:block;font-size:11px;color:var(--muted);margin-top:7px}.provider-actions{display:flex;align-items:center;gap:12px}.provider-note{font-size:12px!important;line-height:1.7}.provider-actions button:disabled{opacity:.45;cursor:default}#provider-list{margin:16px 0}.chat-status .text-btn{text-decoration:underline}

/* Unified settings: familiar navigation, restrained surfaces, spacious rows. */
#modal.settings-dialog{width:780px;max-width:calc(100vw - 40px);padding:0;overflow:hidden}.settings-shell{display:grid;grid-template-columns:176px minmax(0,1fr);min-height:460px;height:min(580px,80vh)}.settings-nav{padding:28px 12px;background:#ffffff03;border-right:1px solid var(--line)}.settings-title{font-size:13px;font-weight:600;padding:2px 12px 25px}.settings-nav button{display:block;width:100%;text-align:left;padding:11px 12px;margin-bottom:4px;border-radius:8px;color:var(--muted);font-size:13px}.settings-nav button:hover{background:#ffffff06;color:var(--text)}.settings-nav button[aria-current=page]{background:#ffffff0b;color:var(--text)}.settings-content{padding:30px 32px;overflow:auto;min-width:0}.settings-content h2{font-size:20px;margin:0 32px 10px 0}.settings-content>p{font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:24px}.settings-content h3{font-size:12px;color:var(--muted);margin-top:28px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.settings-row strong{font-size:13px;font-weight:500}.settings-row small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:7px}.settings-row button,.settings-row select{flex-shrink:0;width:auto}.settings-tag{font-size:11px;color:var(--muted);white-space:nowrap}.settings-stats{display:flex;gap:38px;padding:24px 0}.settings-stats strong{display:block;font-size:22px;font-weight:500}.settings-stats span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.settings-row kbd{font:11px inherit;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 8px;white-space:nowrap}.settings-content #provider-list{margin-top:0}.settings-content .provider-actions{gap:8px}@media(max-width:620px){.settings-shell{grid-template-columns:1fr;height:80vh}.settings-nav{display:flex;gap:4px;overflow:auto;padding:14px 40px 12px 12px;border-right:0;border-bottom:1px solid var(--line)}.settings-title{display:none}.settings-nav button{width:auto;white-space:nowrap;margin:0}.settings-content{padding:24px}.settings-shell{grid-template-rows:auto minmax(0,1fr)}}
.activity-controls{display:flex;gap:12px;align-items:center;margin:24px 0}.activity-controls input{margin:0;flex:1;min-width:0}.activity-controls button{white-space:nowrap}#activity-rows{max-height:50vh;overflow:auto}#activity-rows h3{font-size:12px;color:var(--muted);margin:24px 0 12px}.activity-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.activity-time{font-size:10px;color:var(--muted);white-space:nowrap}.activity-page{flex:1;min-width:0;text-align:left}.activity-page strong{font-size:13px;display:block;font-weight:500}.activity-page small{display:block;font-size:11px;color:var(--muted);margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.activity-page progress{width:100%;height:3px;accent-color:#c7b9df}.activity-row>.icon-btn{opacity:0}.activity-row:hover>.icon-btn,.activity-row:focus-within>.icon-btn{opacity:1}.activity-empty{padding:60px 16px;text-align:center;font-size:13px;color:var(--muted)}
.empty-work{text-align:center;padding:48px 24px;max-width:520px;margin:0 auto}.empty-work-icon{display:inline-flex;padding:14px;border:1px solid var(--line);border-radius:16px;color:var(--muted);margin-bottom:12px}.empty-work-icon svg{width:24px;height:24px}.empty-work h2{font-size:18px;font-weight:500;margin:10px 0}.empty-work p{font-size:13px;line-height:1.7;color:var(--muted);margin:0 auto 22px;max-width:360px}.welcome-card{position:relative;display:flex;gap:20px;text-align:left;margin:38px 0 30px;padding:26px 42px 26px 24px;border:1px solid #ffffff12;border-radius:16px;background:linear-gradient(120deg,#c7b9df09,#a9d1ce05,transparent)}.welcome-card h2{font-size:16px;font-weight:500;margin:0 0 9px}.welcome-card p{font-size:13px;line-height:1.7;color:var(--muted);margin:0;max-width:430px}.welcome-mark{width:32px;flex-shrink:0;padding-top:3px}.welcome-mark img{width:28px;opacity:.7}.welcome-actions{display:flex;gap:18px;align-items:center;margin-top:18px}.welcome-actions .text-btn{font-size:12px}.welcome-dismiss{position:absolute;right:10px;top:10px}#editor:empty:before{content:'Start writing…';color:var(--muted);pointer-events:none}@media(max-width:600px){.welcome-card{padding:24px;gap:14px}.welcome-mark{display:none}.welcome-actions{flex-wrap:wrap;gap:12px}.empty-work{padding:32px 16px}}
.welcome-mark img{filter:invert(1)}
.project-tasks{max-width:900px;padding:36px 40px;margin:auto}.project-tasks h1{font-size:24px;margin:0 0 10px}.project-tasks .page-head{margin-bottom:24px}.project-tasks .primary{display:flex;align-items:center;gap:8px}.project-tasks .primary svg{width:15px;height:15px}.task-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px;flex-wrap:wrap}.task-controls input{width:190px;margin:0;font-size:12px;padding:9px 12px}.task-item{display:flex;gap:14px;align-items:center;padding:17px 8px;border-bottom:1px solid var(--line);border-radius:8px}.task-item:hover{background:#ffffff03}.task-item input{width:16px;height:16px;margin:0;accent-color:#c6c6c6;flex-shrink:0}.task-open{flex:1;min-width:0;text-align:left;padding:0}.task-open strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.task-open small{display:block;color:var(--muted);font-size:12px;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-complete .task-open strong{text-decoration:line-through;color:var(--muted)}.task-due{font-size:11px;white-space:nowrap;color:var(--muted)}.task-due.overdue{color:#dfb5c4}.task-menu{opacity:0}.task-item:hover .task-menu,.task-item:focus-within .task-menu{opacity:1}@media(hover:none){.task-menu{opacity:1}}@media(max-width:600px){.project-tasks{padding:24px 18px}.task-due{max-width:85px;white-space:normal}.task-controls{gap:12px}.task-controls input{width:100%}}
.task-controls input{border:1px solid var(--line);border-radius:9px;background:#ffffff03;color:var(--ink);outline:none}.task-controls input:focus{border-color:#ffffff38;background:#ffffff05}
.overview-section{max-width:720px;margin:24px auto 0}.overview-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:16px}.overview-section-head .text-btn{font-size:11px;color:var(--muted)}.overview-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px 18px;text-align:left;border-radius:9px;border-bottom:1px solid #ffffff06}.overview-item:hover{background:#ffffff04}.overview-item>svg{width:17px;height:17px;color:var(--muted);flex-shrink:0}.overview-item>svg:last-child{width:12px;opacity:0}.overview-item:hover>svg:last-child,.overview-item:focus-visible>svg:last-child{opacity:1}.overview-item span{flex:1;min-width:0}.overview-item strong{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview-item small{display:block;font-size:11px;color:var(--muted);margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview-filter .text-btn{margin-left:auto;font-size:11px}.overview-quiet{text-align:center;padding:44px 18px;color:var(--muted)}.overview-quiet p{font-size:13px;line-height:1.7}.overview-quiet h2{font-size:18px;color:var(--ink)}
.search-guidance{font-size:13px;line-height:1.9}.search-guidance small{font-size:11px}.search-count{font-size:11px;color:var(--muted);margin:18px 0 10px}.search-result .search-excerpt{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 0;white-space:normal}.search-result:focus-visible{outline:1px solid #ffffff45;outline-offset:-1px;background:#ffffff07}

.provider-models{display:grid;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border,#363636)}
.provider-models label{display:grid;gap:8px;color:#b8b8bb;font-size:12px}
.provider-models input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #3c3c40;border-radius:10px;background:#202022;color:#eee;font:inherit;outline:none}
.provider-models input:focus{border-color:#a9a5ba;box-shadow:0 0 0 3px #b9afda12}
.provider-test{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.provider-test small{color:#aaa;max-width:340px;line-height:1.5}
/* Answer reading surface */
.conversation-ready{max-width:820px}.response-prose{white-space:normal;font-size:15px;line-height:1.8;color:#d6d6da}.response-prose>:first-child{margin-top:0}.response-prose>:last-child{margin-bottom:0}.response-prose p{margin:0 0 18px;white-space:pre-line}.response-prose h2,.response-prose h3,.response-prose h4,.response-prose h5,.response-prose h6{font-size:18px;line-height:1.45;margin:28px 0 12px;font-weight:600;color:#eee}.response-prose h3{font-size:16px}.response-prose ul,.response-prose ol{padding-left:25px;margin:12px 0 22px}.response-prose li{padding-left:4px;margin:7px 0}.response-prose li::marker{color:#999}.response-prose strong{font-weight:600;color:#eee}.response-prose a{color:#d2cce5;text-decoration:underline;text-underline-offset:3px}.response-prose code{font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;background:#ffffff09;border:1px solid #ffffff09;border-radius:5px;padding:2px 5px}.response-code{margin:20px 0;border:1px solid #ffffff14;border-radius:12px;overflow:hidden;background:#1d1d20}.code-toolbar{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:1px solid #ffffff09;font-size:11px;color:#929298}.code-toolbar button{font-size:11px;color:#b4b4bb}.response-code pre{padding:16px;margin:0;overflow:auto;white-space:pre;tab-size:2}.response-code pre code{padding:0;border:0;background:none;font-size:12px;color:#d8d8de}.response-prose blockquote{border-left:2px solid #87818f;margin:20px 0;padding:2px 18px;color:#aaa}.response-prose hr{border:0;border-top:1px solid #ffffff12;margin:26px 0}.response-table{max-width:100%;overflow:auto;border:1px solid #ffffff14;border-radius:10px;margin:20px 0}.response-table table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6}.response-table th,.response-table td{padding:11px 14px;border-bottom:1px solid #ffffff10;border-right:1px solid #ffffff0b;min-width:110px;vertical-align:top}.response-table th{background:#ffffff05;font-weight:500;color:#ddd}.response-table tr:last-child td{border-bottom:0}.response-table td:last-child,.response-table th:last-child{border-right:0}.response-check{list-style:none}.response-check>span{color:#b7adc9;margin-left:-22px;margin-right:5px}.response-pending{display:flex;align-items:center;gap:8px}.response-pulse{width:7px;height:7px;border-radius:50%;background:#c0b9d2;animation:response-breathe 1.5s ease-in-out infinite}.chat-jump{position:absolute;top:-34px;left:calc(50% - 17px);border:1px solid #ffffff1c!important;border-radius:50%!important;background:#29292dcc!important;backdrop-filter:blur(16px);box-shadow:0 3px 14px #0004}.chat-jump[hidden]{display:none}.chat-inline-edit{display:grid;gap:12px;min-width:min(420px,60vw)}.chat-inline-edit textarea{width:100%;min-height:110px;resize:vertical;box-sizing:border-box;border:1px solid #ffffff24;border-radius:12px;padding:14px;background:#202023;color:#eee;font:inherit;line-height:1.6}.chat-inline-edit p{font-size:11px;color:var(--muted);margin:0}.chat-inline-edit .dialog-actions{margin:0}.chat-actions button:focus-visible,.response-prose a:focus-visible,.response-code pre:focus-visible,.response-table:focus-visible{outline:2px solid #bcb3cc;outline-offset:3px}.chat-actions{gap:8px}.user-turn .chat-actions{justify-content:flex-end}.chat-inline-edit textarea:focus{outline:1px solid #b7aec7}.response-table-tools{display:flex;justify-content:flex-end;padding:6px 10px;border-top:1px solid #ffffff0b}.response-table-tools button{font-size:11px;color:#aaa}@keyframes response-breathe{50%{opacity:.3;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.response-pulse{animation:none}}@media(max-width:650px){.response-prose{font-size:14px}.user-turn{max-width:95%}.chat-inline-edit{min-width:0}.response-code pre{padding:12px}}
.page-context-origin{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.page-context-review{min-height:220px;max-height:40vh;resize:vertical;line-height:1.7}.page-context-chip{max-width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-context-warning{font-size:12px;color:#d6c6a8}.chat-context-bar{flex-wrap:wrap}
.page-preview{padding-top:6px}.page-preview-header{display:flex;align-items:flex-start;gap:14px;padding-right:26px}.page-preview-mark{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px solid #ffffff13;border-radius:12px;background:linear-gradient(140deg,#c6bbdb12,#b9d2cd08);color:#c6c3ce}.page-preview-mark svg{width:20px;height:20px}.page-preview-domain{font-size:11px;color:#929098;letter-spacing:.015em;margin:1px 0 6px}.page-preview-header h2{margin:0!important;font-size:19px!important;line-height:1.35;overflow-wrap:anywhere}.page-preview-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:#96929d;margin:22px 0 12px}.page-preview-meta span+span:before{content:'·';margin-right:9px;color:#666}.page-preview-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:290px;overflow:auto;padding:18px 20px;border:1px solid #ffffff0d;border-radius:12px;background:#00000012;color:#ceccd2;font:13px/1.85 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.page-preview-excerpt:focus-visible{outline:1px solid #afa6c3;outline-offset:3px}.page-preview-edit[hidden],.page-preview-excerpt[hidden]{display:none}.page-preview-edit-toggle{display:flex;align-items:center;gap:7px;margin:12px 0 4px;font-size:11px;color:#b4b0bc}.page-preview-edit-toggle svg{width:13px;height:13px}.page-preview-footer{margin-top:22px;padding-top:18px;border-top:1px solid #ffffff0c}.page-preview-destination{display:flex;align-items:center;gap:8px;color:#aaa6b1;font-size:11px}.page-preview-destination svg{width:14px;height:14px}.page-preview-destination strong{font-weight:500;color:#d0cdd5}.page-preview-footer p{font-size:11px!important;line-height:1.6!important;color:#928e98!important;margin:8px 0 0!important}.page-preview-footer .dialog-actions{margin-top:20px}.page-preview-edit label{font-size:12px}.page-preview-edit textarea{font:13px/1.8 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.provider-card{padding:18px;margin:14px 0;border:1px solid #ffffff12;background:#ffffff02;border-radius:14px}.provider-card-heading{display:flex;align-items:center;gap:11px}.provider-card-heading h3{font-size:13px;margin:0 0 5px!important}.provider-card-heading>.chip{margin-left:auto}.provider-monogram{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;border:1px solid #ffffff15;background:#ffffff05;color:#cac5d2;font-size:13px;font-weight:600}.provider-state{font-size:10px;color:#97949d}.provider-state.is-connected{color:#bad0c4}.provider-model-label{display:grid;gap:7px;margin:18px 0 13px;font-size:11px!important;color:#aaa6af}.provider-model-label input{font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important;padding:10px 12px!important}.provider-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.provider-card-footer>div{display:flex;gap:10px;align-items:center;flex-shrink:0}.provider-feedback{font-size:10px;line-height:1.6;color:#aaa6b1;overflow-wrap:anywhere}.provider-feedback.has-error{color:#d2b8b8}.provider-card button:disabled{opacity:.4;cursor:default}.provider-card .text-btn{font-size:10px}.provider-card .chip{font-size:11px}@media(max-width:650px){.provider-card-footer{align-items:flex-start;flex-direction:column}}
.raven-default-card{padding:18px;margin:18px 0 22px;border:1px solid #c9bfdc20;border-radius:14px;background:linear-gradient(135deg,#c9bfdc08,#b8cec905)}.raven-default-title{display:flex;align-items:center;gap:9px;font-size:14px}.raven-default-title svg{width:17px;height:17px;color:#c8c0d6}.raven-default-title>span{margin-left:auto;font-size:10px;color:#aaa4b4;border:1px solid #ffffff12;padding:4px 7px;border-radius:6px}.raven-default-card p{font-size:12px!important;margin:12px 0!important}.raven-default-card label{font-size:11px!important}.raven-default-card select{margin-top:8px}.raven-default-card small{display:block;margin-top:12px;color:#aaa4b0;font-size:10px;line-height:1.6}

/* Dialog titles receive initial focus without implying an active action. */
#modal #dialog-title:focus{outline:none}

.provider-logo{width:18px;height:18px;object-fit:contain;flex-shrink:0}.provider-logo-openai{filter:brightness(0) invert(1);opacity:.9}.provider-monogram .provider-logo{width:22px;height:22px}.selection-label{display:inline-flex;align-items:center;gap:8px}

.provider-logo-raven{filter:brightness(0) invert(1);opacity:.9}

/* Conversation alignment: one content column, deliberate user inset, common response edge. */
.conversation-ready{width:100%;max-width:820px;box-sizing:border-box;margin-inline:auto;padding:32px 24px 0}
.conversation-ready .page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;margin:0 0 20px}
.conversation-ready .page-head h1{min-width:0;margin:0;font-size:25px;line-height:1.35;overflow-wrap:anywhere}
.conversation-ready .page-head>.chip{margin-top:2px;white-space:nowrap}
.conversation-ready .chat-context-bar{gap:10px;margin:0 0 32px;align-items:center}
.conversation-ready #chat-turns{width:100%;min-width:0}
.conversation-ready .chat-turn{box-sizing:border-box;margin-bottom:32px}
.conversation-ready .user-turn{width:calc(100% - 48px);max-width:none;margin-left:48px;padding:18px 20px}
.conversation-ready .assistant-turn{padding:0}
.conversation-ready .chat-by{margin:0 0 10px;line-height:16px}
.conversation-ready .chat-status{margin:0 0 12px;line-height:1.7}
.conversation-ready .chat-status .text-btn{display:block;width:fit-content;padding:0;margin-top:8px;text-align:left}
.conversation-ready .chat-actions{gap:12px;min-height:28px;margin-top:12px;flex-wrap:wrap}
.conversation-ready .assistant-turn .chat-actions>.text-btn{padding-inline:0}
.conversation-ready .chat-text:empty{display:none}
@media(max-width:650px){.conversation-ready{padding:24px 18px 0}.conversation-ready .page-head{gap:16px}.conversation-ready .page-head h1{font-size:22px}.conversation-ready .user-turn{width:calc(100% - 20px);margin-left:20px;padding:16px}.conversation-ready .chat-context-bar{margin-bottom:24px}}

.page-destination-picker{border:0;padding:0;margin:18px 0;max-height:200px;overflow:auto;min-width:0}
.page-destination-picker legend{font-size:12px;margin-bottom:10px;color:var(--muted)}
.page-destination-picker label{display:flex!important;align-items:center;gap:12px;padding:10px 12px;margin:4px 0!important;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.page-destination-picker label:has(input:checked){background:#ffffff08;border-color:#777}
.page-destination-picker input{width:16px!important;margin:0!important;flex-shrink:0;accent-color:#bbb}
.page-destination-picker span{min-width:0}.page-destination-picker strong{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-destination-picker small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.page-preview:has(.page-destination-picker) .page-preview-excerpt{max-height:20vh;min-height:100px}
.page-destination-picker{max-height:160px}

.page-context-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

.collection-library-options{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 12px}.collection-library-options label{display:flex;align-items:center;gap:8px;color:#999;font-size:12px}.collection-library-options select{background:var(--surface,#202020);color:inherit;border:1px solid #ffffff18;border-radius:10px;padding:7px 10px;font:inherit}.collection-activity{font-size:11px;color:#999;flex:0 0 62px;text-align:right}@media(max-width:650px){.collection-activity{display:none}}

.select-trigger:disabled{opacity:.45;cursor:default}.select-trigger:disabled:hover{background:transparent}.control-popover{box-sizing:border-box;overscroll-behavior:contain}.collection-open small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-library-options{flex-wrap:wrap}

/* Keep the workspace footer readable at the expanded sidebar's narrow width. */
#sidebar .profile{display:grid;grid-template-columns:30px minmax(0,1fr) 16px;gap:8px;align-items:center;padding:10px 8px;margin-top:12px;border-top:0;border-radius:10px;min-height:54px}
#sidebar .profile .avatar{width:30px;height:30px;min-width:30px;flex-shrink:0;border-radius:50%}
#sidebar .profile>div{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.4}
#sidebar .profile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-top:2px}
#sidebar .profile>svg{width:16px;height:16px}
.today-group{margin:28px 0}.today-group h2{font-size:14px;display:flex;align-items:center;gap:10px}.today-group h2 span{font-size:11px;color:var(--muted);font-weight:400}.today-group .task-open small{display:block;margin-top:5px;color:var(--muted)}
.market-page{max-width:1160px;margin:auto}.market-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:32px}.market-tabs button{padding:12px 0;color:var(--muted);border-bottom:2px solid transparent}.market-tabs button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--ink)}.market-page h1{font-size:28px;letter-spacing:-.6px}.market-page>.search-box{max-width:none;margin:26px 0 18px}.market-filters{margin-bottom:24px}.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}.market-card{display:flex;align-items:flex-start;gap:16px;text-align:left;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--glass-fill);max-width:560px}.market-card:hover{border-color:#777}.market-icon{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#c1cdbb18;color:#c1cdbb}.market-card strong{display:block;font-size:15px}.market-card small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.market-card p{font-size:13px;line-height:1.6;margin-bottom:0;color:var(--muted)}.market-status{margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted)}.market-empty{padding:50px 12px;text-align:center;color:var(--muted)}.market-empty h2{font-size:18px;color:var(--ink)}.market-detail h3{font-size:13px;margin-top:24px}.market-detail li,.market-detail p{font-size:13px;line-height:1.7}.market-detail .dialog-actions{flex-wrap:wrap}

/* One shared catalog grid keeps provider cards aligned across rows. */
.market-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;align-items:stretch}
.market-card{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:16px;row-gap:12px;max-width:none;width:100%;padding:22px;position:relative}
.market-card>.market-icon{grid-column:1;grid-row:1 / 3}
.market-card>span:nth-child(2){grid-column:2;grid-row:1;min-width:0}
.market-card>.market-status{grid-column:2;grid-row:2;margin:0;align-self:end;justify-self:start}
.market-card strong{line-height:1.4}.market-card small{line-height:1.5}.market-card p{margin:12px 0 0;line-height:1.55}
.market-icon img{display:block;width:28px;height:28px;object-fit:contain}
.market-card .market-icon:has(img){color-scheme:light;background:#fff;border:1px solid #0000000d}

/* Keep navigation reachable in short windows and avatars circular in both modes. */
#sidebar{min-height:0;max-height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:none}
#sidebar::-webkit-scrollbar{display:none}
#sidebar>nav,#sidebar>.recents,#sidebar>.side-bottom{flex-shrink:0}
#sidebar .avatar{width:30px;height:30px;min-width:30px;min-height:30px;max-width:30px;max-height:30px;flex:0 0 30px;aspect-ratio:1;border-radius:50%;overflow:hidden;object-fit:cover}
#sidebar.is-collapsed .side-bottom .rail-button{padding:0;flex-shrink:0}
/* Connection details: one primary action, setup first, tools after authorization. */
dialog:has(.connection-detail){width:min(520px,calc(100vw - 32px));padding:30px;max-height:calc(100dvh - 48px);overflow-y:auto}
.connection-heading{display:flex;align-items:center;gap:16px;margin:0 24px 26px 0}
.connection-heading h2{margin:0;font-size:23px}.connection-heading p{margin:5px 0 0}
.connection-logo{display:grid;place-items:center;width:54px;height:54px;flex:none;background:white;color-scheme:light;border-radius:14px}.connection-logo img{width:34px;height:34px;object-fit:contain}
.connection-access{padding:18px;border:1px solid var(--line);border-radius:12px;background:#ffffff03}.connection-access>strong{font-size:13px}.connection-access p{margin:9px 0 13px}.connection-badge{display:inline-block;padding:5px 9px;border-radius:6px;background:#ffffff09;font-size:11px}
.connection-detail .connection-fine{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:0}.connection-status{min-height:20px;margin:20px 0 12px!important}.connection-actions{display:flex;gap:10px;align-items:center}.connection-actions .primary{min-height:40px;padding:10px 20px;border-radius:10px}.connection-read{margin-top:24px;padding-top:2px;border-top:1px solid var(--line)}.connection-read>.primary{margin-top:12px;padding:9px 16px;border-radius:8px}.connection-secondary{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.connection-detail [hidden]{display:none!important}

/* Configured integrations are recognizable without relying on color alone. */
.market-card.is-connected{border-color:#78b98b80}
.market-card.is-connected:hover{border-color:#8dcea1}
.market-card.is-connected .market-status{display:inline-flex;align-items:center;gap:6px;color:#a1d6af;background:#71b78612;padding:4px 8px;border-radius:6px}
.market-card.is-connected .market-status svg{width:13px;height:13px;stroke-width:2}
.connection-page-result{white-space:normal!important;max-height:none!important;padding:18px!important}.connection-source-head small{color:var(--muted);font-size:11px}.connection-source-head h3{font-size:18px;margin:8px 0}.connection-source-head a{color:var(--ink);font-size:12px}.connection-page-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;scrollbar-width:thin;line-height:1.7;margin:18px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.connection-result-actions{display:flex;gap:10px;flex-wrap:wrap}.connection-result-actions .primary{padding:9px 14px;border-radius:9px}
/* People search: clustered experiences cited to people (dist/people.js) */
.people-answer{margin:14px 0 6px;display:grid;gap:10px}
.people-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.people-total{padding:3px 9px;border-radius:99px;background:var(--panel);border:1px solid var(--line);color:var(--ink);font-weight:600}
.people-note{color:var(--muted)}
.people-clusters{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.people-cluster{padding:14px 14px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:grid;gap:8px;align-content:start}
.people-cluster header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.people-cluster h4{margin:0;font-size:14px;line-height:1.35;color:var(--ink)}
.people-cluster header::before{content:"";flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--muted)}
.people-cluster.lean-positive header::before{background:#86d6a4}
.people-cluster.lean-mixed header::before{background:#e0b26a}
.people-cluster.lean-negative header::before{background:#e58f8f}
.people-cluster header h4{flex:1}
.people-count{flex:none;min-width:22px;padding:1px 7px;border-radius:99px;background:var(--line);color:var(--ink);font-size:11px;font-weight:700;text-align:center}
.people-cluster p{margin:0;font-size:13px;line-height:1.55;color:#d6d6da}
.people-split{color:#e0b26a!important}
.people-cluster blockquote{margin:2px 0 0;padding:0 0 0 10px;border-left:2px solid var(--accent);font-size:13px;line-height:1.55;color:var(--ink)}
.people-cluster blockquote footer{margin-top:6px}
.people-person{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:12px}
.people-person:hover span:not(.people-avatar){color:var(--ink);text-decoration:underline}
.people-person small{opacity:.75}
.people-avatar{width:18px;height:18px;display:inline-grid;place-items:center;border-radius:50%;background:var(--line);color:var(--ink);font-size:9px;font-weight:700}
.people-latest{font-size:11px;color:var(--muted)}
.people-cite{display:inline-grid;place-items:center;min-width:16px;height:16px;margin:0 1px;padding:0 4px;border-radius:5px;background:var(--line);color:var(--accent);font-size:10px;font-weight:700;vertical-align:1px;line-height:1}
.people-sources summary{cursor:pointer;font-size:12px;color:var(--muted)}
.people-sources ol{margin:8px 0 0;padding-left:20px;font-size:12px;line-height:1.7;color:var(--muted)}
.people-sources a{color:var(--ink)}
@media (max-width:520px){.people-clusters{grid-template-columns:1fr}}

/* Shopping board: board and chat side by side; each pane scrolls on its own. */
#app.board-mode{display:flex;flex-direction:column;overflow:hidden}
#app.board-mode>.topbar{flex:none}
.conversation-ready.conversation-board{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px)}
#app.board-mode>.conversation-board{flex:1;overflow:hidden;grid-template-columns:minmax(0,1fr) 380px;transition:grid-template-columns .32s cubic-bezier(.22,.8,.24,1)}
.conversation-board .board-main{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.conversation-board .board-main>.topbar{flex:none}
.conversation-board .shop-board{flex:1;min-width:0;min-height:0;overflow:auto;padding:20px 32px 36px;scrollbar-width:none}
#app.board-mode>.conversation-board.chat-hidden{grid-template-columns:minmax(0,1fr) 0px}
.conversation-board .board-chat{width:380px;box-sizing:border-box;transition:opacity .22s ease,visibility 0s}
.conversation-board.chat-hidden .board-chat{opacity:0;visibility:hidden;transition:opacity .18s ease,visibility 0s .32s}
.conversation-board .board-main{transition:border-color .32s}
.conversation-board.chat-hidden .board-main{border-right-color:transparent}
@media (prefers-reduced-motion:reduce){#app.board-mode>.conversation-board,.conversation-board .board-chat{transition:none}}
.board-chat-toggle[aria-pressed="true"]{color:var(--ink)}
.conversation-board .board-chat{min-width:0;overflow:auto;display:flex;flex-direction:column;padding:24px 20px 0;scrollbar-width:none}
.conversation-board .shop-board::-webkit-scrollbar,.conversation-board .board-chat::-webkit-scrollbar{display:none}
.conversation-board .board-chat .page-head{margin-bottom:12px}
.conversation-board .board-chat .page-head h1{font-size:16px;line-height:1.4;font-weight:500}
.conversation-board .board-chat .chat-context-bar{margin-bottom:20px}
.conversation-board .board-chat .user-turn{width:auto;margin-left:28px;padding:12px 14px}
.conversation-board .board-chat .chat-turn{margin-bottom:22px;font-size:13.5px}
.conversation-board .chat-jump{display:none}
.board-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:6px}
.board-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.board-eyebrow svg{width:13px;height:13px}
.board-title h2{margin:6px 0 0;font-size:24px;font-weight:500;line-height:1.25;letter-spacing:-.01em}
.board-constraints{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.board-constraint{display:inline-flex;align-items:center;gap:4px;padding:3px 4px 3px 10px;border:1px solid var(--line);border-radius:99px;font-size:12px;color:var(--ink)}
.board-constraint button{border:0;background:none;color:var(--muted);font-size:14px;line-height:1;padding:0 4px;cursor:pointer}
.board-tally{display:flex;align-items:center;gap:14px;flex:none}
.board-total{display:grid;justify-items:end;line-height:1.2}
.board-total strong{font-size:20px;font-weight:600;letter-spacing:-.01em}
.board-total span{font-size:12px;color:var(--muted)}
.board-slot{padding-top:26px;margin-top:22px;border-top:1px solid var(--line)}
.board-head+.board-slot{border-top:0;margin-top:8px}
.slot-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.slot-head h3{margin:0;font-size:15px;font-weight:600}
.slot-head p{margin:3px 0 0;font-size:13px;color:var(--muted)}
.slot-tools{display:flex;align-items:center;gap:4px;flex:none}
.slot-flag{font-size:12px;color:var(--accent);padding:0 6px}
.board-x{width:28px;height:28px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:17px;line-height:1;cursor:pointer}
.board-x:hover{background:var(--panel);color:var(--ink)}
.shop-board{container-type:inline-size}
.slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:dense;gap:12px}
@container (min-width:520px){.slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:760px){.slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.slot-grid.is-refreshing{opacity:.55;transition:opacity .2s}
.slot-message{margin:0;font-size:13px;color:var(--muted)}
.product-card{position:relative;cursor:pointer;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.product-card.feature{grid-column:span 2;grid-row:span 2}
.product-card.kept{border-color:var(--accent)}
.product-media{position:relative;aspect-ratio:1;margin:6px 6px 0;border-radius:10px;display:grid;place-items:center;background:#f1f0ec;overflow:hidden}
.product-card.feature .product-media{margin:8px 8px 0}
.product-card.feature .product-body{padding:14px 16px 4px}
.product-card.feature .product-actions{padding:8px 16px 16px}
.product-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.product-card:hover .product-media img{transform:scale(1.035)}
@media (prefers-reduced-motion:reduce){.product-media img{transition:none}.product-card:hover .product-media img{transform:none}}
.product-initial{font-size:40px;font-weight:300;color:#a3a29c}
.product-dismiss{position:absolute;top:8px;right:8px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(20,20,20,.55);color:#fff;font-size:15px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s}
.product-card:hover .product-dismiss,.product-dismiss:focus-visible{opacity:1}
@media (hover:none){.product-dismiss{opacity:1}}
.product-body{display:grid;gap:5px;padding:12px 12px 4px;align-content:start}
.product-body h4{margin:0;font-size:13.5px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-body h4 a{color:inherit;text-decoration:none}
.product-body h4 a:hover{text-decoration:underline}
.product-card.feature .product-body h4{font-size:15px}
.product-price{display:flex;align-items:baseline;gap:8px;font-size:12px;color:var(--muted)}
.product-price strong{font-size:14px;font-weight:600;color:var(--ink)}
.product-actions{display:flex;gap:8px;padding:8px 12px 12px;margin-top:auto}
.product-keep{border:1px solid var(--line);border-radius:9px;background:none;color:var(--ink);font:inherit;font-size:12.5px;padding:6px 14px;cursor:pointer}
.product-keep:hover{border-color:var(--accent);color:var(--accent)}
.product-skeleton{aspect-ratio:3/4;border-radius:14px;background:linear-gradient(100deg,var(--panel) 40%,var(--line) 50%,var(--panel) 60%) 0 0/250% 100%;animation:board-shimmer 1.4s linear infinite}
.slot-grid .product-skeleton:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
@keyframes board-shimmer{to{background-position:-150% 0}}
@media (prefers-reduced-motion:reduce){.product-skeleton{animation:none}}
.board-note{margin:30px 0 0;font-size:11.5px;color:var(--muted)}
@media (max-width:900px){
 #app.board-mode{display:block;overflow:auto}
 .conversation-ready.conversation-board{display:block}
 .conversation-board .board-chat{width:auto}
 .conversation-board.chat-hidden .board-chat{display:none}
 .conversation-board .board-main{display:block;border-right:0}
 .conversation-board .shop-board{overflow:visible;padding:20px 16px 8px}
 .conversation-board .board-chat{overflow:visible;padding:16px 16px 0;border-top:1px solid var(--line)}
 .board-head{flex-direction:column;align-items:flex-start}
 .board-total{justify-items:start}
}
@media (max-width:420px){
   }

/* Narrow composers (board chat, project assistant): Work and the model picker go icon-only so the
   controls never overlap. Labels stay readable to assistive tech. */
.composer{container-type:inline-size}
.composer-modes{flex:none}
@container (max-width:430px){
 .composer-bottom .mode-pill[data-mode="work"]>span,.composer-bottom .mode-pill[data-mode="work"]>svg:last-child,
 .composer-bottom .select-trigger .selection-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .composer-bottom .select-trigger{gap:4px;padding-inline:6px}
}

.board-title h2 .board-rename{all:unset;cursor:text;border-radius:6px}
.board-title h2 .board-rename:hover{box-shadow:0 0 0 4px var(--panel);background:var(--panel)}
.board-title h2 .board-rename:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.board-x svg{width:14px;height:14px}
.board-x{display:inline-grid;place-items:center}
.board-empty{margin:18px 0 0;font-size:14px;color:var(--muted)}
.board-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:26px;padding:14px;border:1px dashed var(--line);border-radius:14px;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.board-add svg{width:15px;height:15px}
.board-add:hover:not(:disabled){color:var(--ink);border-color:var(--muted)}
.conversation-board .board-chat .page-head h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.conversation-board .board-chat .page-head{justify-content:flex-end;display:flex}
/* Boards page */
.boards-page{max-width:1040px;margin:0 auto;padding:32px 28px 48px}
.boards-page .page-head h1{margin:0;font-size:25px;font-weight:500}
.boards-page .page-head p{margin:4px 0 0;font-size:13px}
.boards-page .page-head .primary{display:inline-flex;align-items:center;gap:6px}
.boards-page .page-head .primary svg{width:14px;height:14px}
.board-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.board-card{all:unset;box-sizing:border-box;display:grid;gap:4px;padding:8px 8px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);cursor:pointer;transition:border-color .15s}
.board-card:hover{border-color:var(--muted)}
.board-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.board-thumbs{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:4px;aspect-ratio:4/3;margin-bottom:8px;border-radius:10px;overflow:hidden}
.board-thumbs span{display:grid;place-items:center;background:#f1f0ec;overflow:hidden}
.board-thumbs img{width:100%;height:100%;object-fit:cover}
.board-thumbs.count-1 span{grid-area:1/1/3/3}
.board-thumbs.count-2 span{grid-row:1/3}
.board-thumbs.count-3 span:first-child{grid-row:1/3}
.board-thumbs.count-0{background:var(--bg)}
.board-thumbs .board-thumbs-empty{grid-area:1/1/3/3;background:none;color:var(--muted)}
.board-thumbs-empty svg{width:26px;height:26px;opacity:.6}
.board-card-title{padding:0 6px;font-size:14.5px;font-weight:500;color:var(--ink)}
.board-card-meta{padding:0 6px;font-size:12px;color:var(--muted)}
.boards-empty{padding:56px 0;text-align:center;color:var(--muted);font-size:14px}
.boards-empty .chip{display:inline-flex;align-items:center;gap:6px;margin-top:6px}
.board-links{display:grid;gap:1px;margin-bottom:8px}
.board-links button{all:unset;box-sizing:border-box;padding:6px 10px;border-radius:8px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.board-links button:hover,.board-links button.active{background:var(--panel);color:var(--ink)}
.board-links .muted{padding:4px 10px;font-size:12px}

/* Product detail sheet */
.product-open{all:unset;box-sizing:border-box;display:grid;place-items:center;width:100%;height:100%}
.product-open:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:10px}
.product-title{all:unset;cursor:pointer}
.product-title:hover{text-decoration:underline}
.product-title:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
dialog:has(.product-sheet){width:min(900px,calc(100vw - 32px));padding:0}
.product-sheet{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.sheet-gallery{padding:14px;display:grid;gap:10px;align-content:start}
.sheet-main{aspect-ratio:1;border-radius:12px;background:#f1f0ec;display:grid;place-items:center;overflow:hidden}
.sheet-main img{width:100%;height:100%;object-fit:cover}
.sheet-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.sheet-thumbs button{all:unset;flex:none;width:60px;height:60px;border-radius:8px;background:#f1f0ec;cursor:pointer;box-shadow:0 0 0 1px transparent;overflow:hidden}
.sheet-thumbs button.active{box-shadow:0 0 0 2px var(--accent)}
.sheet-thumbs img{width:100%;height:100%;object-fit:cover}
.sheet-info{padding:30px 28px 24px 14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.sheet-info h2{margin:2px 0 0;font-size:22px;font-weight:500;line-height:1.3}
.sheet-info .product-price strong{font-size:18px}
.sheet-info .product-price{font-size:13px}
.sheet-description{margin:4px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted)}
.sheet-specs{margin:6px 0 0;display:grid;gap:6px;font-size:12.5px}
.sheet-specs div{display:flex;justify-content:space-between;gap:16px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.sheet-specs dt{color:var(--muted)}
.sheet-specs dd{margin:0;text-align:right}
.sheet-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto;padding-top:16px}
.sheet-actions a.chip{text-decoration:none;color:var(--ink)}
.sheet-info .board-note{margin:6px 0 0}
@media (max-width:700px){.product-sheet{grid-template-columns:1fr}.sheet-info{padding:4px 20px 22px}}

/* Your messages: just the label and the words. Copy and edit sit beside the label and appear on hover. */
.chat-turn.user-turn{position:relative;padding:10px 14px 12px}
.chat-turn.user-turn .chat-by{margin:0 0 3px;font-size:11px;line-height:16px}
.chat-turn.user-turn .chat-actions{position:absolute;top:4px;right:8px;margin:0;min-height:0;gap:2px;opacity:0;transition:opacity .15s}
.chat-turn.user-turn:hover .chat-actions,.chat-turn.user-turn:focus-within .chat-actions{opacity:1}
.chat-turn.user-turn .chat-actions .icon-btn{width:26px;height:24px}
@media (hover:none){.chat-turn.user-turn .chat-actions{opacity:1}}

/* Keep marks the card where it sits; nothing in the slot moves or resizes. */
.product-keep{display:inline-flex;align-items:center;gap:5px}
.product-keep svg{width:13px;height:13px}
.product-keep[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.board-slot.is-kept .product-card:not(.kept){opacity:.55;transition:opacity .2s}
.board-slot.is-kept .product-card:not(.kept):hover,.board-slot.is-kept .product-card:not(.kept):focus-within{opacity:1}

/* Steering: suggestion chips after the latest reply, and More like this on cards. Chips wrap; nothing scrolls sideways. */
.board-steer{display:grid;gap:14px;margin:4px 0 24px}
.steer-row{display:grid;gap:8px;min-width:0}
.steer-slot{font-size:12px;font-weight:600;color:var(--ink)}
.steer-chips{display:flex;flex-wrap:wrap;gap:8px}
.steer-chip{max-width:100%;padding:7px 14px;border:1px solid transparent;border-radius:99px;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--ink);font:inherit;font-size:13px;line-height:1.3;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.steer-chip:hover{background:color-mix(in srgb,var(--accent) 26%,transparent)}
.steer-chip[aria-pressed="true"]{background:var(--accent);color:var(--bg)}
.steer-chip[aria-pressed="true"]::before{content:"✓ "}
.product-similar{border:0;background:none;color:var(--muted);font:inherit;font-size:12px;padding:6px 4px;cursor:pointer;opacity:0;transition:opacity .15s,color .15s}
.product-card:hover .product-similar,.product-similar:focus-visible{opacity:1}
.product-similar:hover{color:var(--ink)}
@media (hover:none){.product-similar{opacity:1}}
.slot-like{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:3px 4px 3px 10px;border:1px solid var(--accent);border-radius:99px;font-size:12px;color:var(--accent);max-width:100%}
.slot-like button{border:0;background:none;color:inherit;font-size:14px;line-height:1;padding:0 4px;cursor:pointer}

/* Accounts: the sign-in form (a dialog on the Mac, the whole page on the web while signed out). */
.account-form{max-width:360px;margin:0 auto;text-align:left}
.account-form h2{margin-top:14px}
.account-form p{color:var(--muted)}
.account-mark{width:34px;height:34px;display:block;color:var(--ink,#eee)}
.account-hint{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.account-error{min-height:18px;margin:12px 0 0;color:#f0a6a0!important;font-size:12px}
.account-error:empty{min-height:0;margin:0}
.account-actions{margin-top:18px}
.account-actions .primary{width:100%;justify-content:center}
.account-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:14px}
.account-links .text-btn{padding:6px 0}
dialog.account-gate{width:min(440px,calc(100vw - 32px));border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);padding:36px 32px}
dialog.account-gate::backdrop{background:var(--bg)}
body.signed-out #app,body.signed-out #sidebar{visibility:hidden}
@media (max-width:520px){dialog.account-gate{padding:28px 20px}}
.account-home{display:inline-block;border-radius:8px}

/* AI providers: a clear status, the key field in the card (web), the model ID tucked under Advanced. */
.provider-card-heading>div:nth-child(2){flex:1;min-width:0}
.provider-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.provider-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#97949d}
.provider-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#5c5a61}
.provider-badge.is-ok{color:#bfe0cc}.provider-badge.is-ok::before{background:#7fcf9f}
.provider-badge.is-idle{color:#cfcbd6}.provider-badge.is-idle::before{background:#b7b4f5}
.provider-badge.is-checking{color:#cfcbd6}.provider-badge.is-checking::before{background:#b7b4f5;animation:provider-pulse 1s ease-in-out infinite}
.provider-badge.is-error{color:#e6b8b2}.provider-badge.is-error::before{background:#e08a80}
@keyframes provider-pulse{50%{opacity:.3}}
.provider-card.is-ok{border-color:#7fcf9f33}
.provider-key-form{display:flex;gap:8px;margin-top:16px}
.provider-key-form input{flex:1;min-width:0;margin:0!important;font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important;padding:10px 12px!important}
.provider-key-form .primary{flex-shrink:0;white-space:nowrap}
.provider-help{display:block;margin-top:10px;font-size:11px;color:#97949d;line-height:1.6}
.provider-help a{color:#cfcbd6;text-decoration:underline;text-underline-offset:2px}
.provider-advanced{margin-top:14px;font-size:11px;color:#97949d}
.provider-advanced summary{cursor:pointer;width:max-content;list-style:none}
.provider-advanced summary::-webkit-details-marker{display:none}
.provider-advanced summary::before{content:"›";display:inline-block;margin-right:6px;transition:transform .15s}
.provider-advanced[open] summary::before{transform:rotate(90deg)}
.provider-model-form{display:flex;align-items:flex-end;gap:8px;margin-top:10px}
.provider-model-form label{flex:1;display:grid;gap:6px;margin:0!important;font-size:11px!important;color:#aaa6af}
.provider-model-form input{margin:0!important;font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important;padding:9px 11px!important}
.provider-advanced small{display:block;margin-top:8px;color:#7f7c86}
@media(max-width:520px){.provider-card-heading{flex-wrap:wrap}.provider-actions{width:100%}}
.danger-chip{color:#f0a6a0!important;border-color:#f0a6a040!important}
.primary.danger{background:#e2726a;color:#1a0f0e}
.text-btn.inline-link{display:inline;padding:0;font-size:inherit;text-decoration:underline}
.account-legal{margin:16px 0 0;font-size:11px;line-height:1.6;color:var(--muted)}
.account-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* First run: two steps on Home */
.welcome-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:14px}
.welcome-steps>li{display:flex;align-items:flex-start;gap:12px}
.welcome-steps>li>div{flex:1;min-width:0}
.welcome-steps strong{display:block;font-size:13px;font-weight:600;color:var(--ink)}
.welcome-steps small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.welcome-steps>li>.chip{flex-shrink:0}
.welcome-step{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--line);font-size:11px;color:var(--muted)}
.welcome-steps .is-done .welcome-step{border-color:transparent;background:#7fcf9f;color:#10251a;font-weight:700}
.welcome-examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
/* Sources under a Search answer */
.chat-sources{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 4px}
.chat-sources-label{margin-right:4px;font-size:11px;color:var(--muted)}
.chat-source{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 9px 4px 5px;border:1px solid var(--line);border-radius:99px;font-size:11px;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-source:hover{border-color:#ffffff30}
.chat-source b{display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#ffffff14;font-size:10px;font-weight:600}

/* Board at a glance: every slot's pick or status, and the total against the budget */
.board-picks{display:flex;align-items:stretch;gap:16px;margin:16px 0 4px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.pick-list{flex:1;min-width:0;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.pick-list::-webkit-scrollbar{display:none}
.board-pick{flex:0 0 auto;display:flex;align-items:center;gap:10px;max-width:230px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:10px;background:none;color:var(--ink);text-align:left;cursor:pointer}
.board-pick:hover{border-color:#ffffff30}
.board-pick.is-kept{border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
.pick-thumb{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#ffffff0d;overflow:hidden;color:var(--accent)}
.pick-thumb img{width:100%;height:100%;object-fit:cover;background:#f1f0ec}
.pick-thumb svg{width:15px;height:15px}
.pick-text{min-width:0;display:grid}
.pick-text b{font-size:12.5px;font-weight:600}
.pick-text small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-budget{flex:none;display:grid;align-content:center;gap:5px;min-width:150px;padding-left:16px;border-left:1px solid var(--line)}
.board-budget>div:first-child{display:flex;align-items:baseline;gap:6px}
.board-budget strong{font-size:18px;font-weight:600;letter-spacing:-.01em}
.board-budget span,.board-budget small{font-size:11px;color:var(--muted)}
.budget-bar{height:4px;border-radius:99px;background:#ffffff14;overflow:hidden}
.budget-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.board-budget.is-over .budget-bar i{background:#e2726a}
.board-budget.is-over span{color:#f0a6a0}
@container (max-width:560px){.board-picks{flex-direction:column}.board-budget{padding:10px 0 0;border-left:0;border-top:1px solid var(--line)}}
.slot-more{margin-top:12px;border:0;background:none;padding:4px 0;font-size:12.5px;color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.slot-more:hover{color:var(--ink)}
.slot-compare{font-size:12px}

/* Compare */
.product-compare{position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:0;border-radius:99px;background:rgba(20,20,20,.62);color:#fff;font-size:11px;cursor:pointer;opacity:0;transition:opacity .15s}
.product-compare svg{width:11px;height:11px}
.product-card:hover .product-compare,.product-compare:focus-visible,.product-compare[aria-pressed="true"]{opacity:1}
.product-compare[aria-pressed="true"]{background:var(--accent);color:#1b1b22}
@media (hover:none){.product-compare{opacity:1}}
.product-card.comparing{border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
#modal.compare-dialog{width:min(920px,calc(100vw - 32px));max-width:none}
.compare-sheet h2{margin:4px 0 16px}
.compare-grid{display:grid;gap:0;max-height:62vh;overflow:auto}
.compare-row{display:grid;grid-template-columns:90px repeat(var(--cols),minmax(0,1fr));gap:14px;padding:10px 0;border-top:1px solid var(--line);font-size:13px;align-items:start}
.compare-row.compare-photos{border-top:0}
.compare-label{font-size:11px;color:var(--muted);padding-top:2px}
.compare-photo{aspect-ratio:1;width:100%;max-width:170px;border-radius:10px;background:#f1f0ec;overflow:hidden;display:grid;place-items:center}
.compare-photo img{width:100%;height:100%;object-fit:cover}
.compare-about{font-size:12px;color:var(--muted);line-height:1.5}
.compare-actions{display:flex;align-items:center;gap:10px}
@media (max-width:620px){.compare-row{grid-template-columns:repeat(var(--cols),minmax(0,1fr))}.compare-label{grid-column:1/-1;padding:0}}

/* Home: balanced suggestions and recent work */
.home-suggestions .chip svg{width:14px;height:14px}
.recent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.recent-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer}
.recent-card:hover{border-color:#ffffff30}
.recent-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#ffffff0a;color:var(--muted)}
.recent-icon svg{width:16px;height:16px}
.recent-text{min-width:0;display:grid;gap:2px}
.recent-text strong{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-text small{font-size:11px;color:var(--muted)}
/* Sidebar: More */
.nav-more-toggle svg{transition:transform .15s}
.nav-more-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}
.nav-more-items{display:grid}
.nav-more-items[hidden]{display:none}
.nav-more-items .nav{padding-left:28px}
.raven-default-card small strong{color:var(--ink);font-weight:600}
/* Sharing a board (share.js) */
.board-share{gap:7px;font-size:12px;padding:7px 11px;border:1px solid #3b3b3b;border-radius:999px;color:#e6e6e6}
.board-share svg{width:15px;height:15px}
#modal.share-dialog{width:500px;max-width:calc(100vw - 32px)}
.share-sheet h2{margin-right:28px;overflow-wrap:anywhere}
.share-sheet h3{font-size:12px;font-weight:500;color:var(--muted);margin:22px 0 8px}
.share-loading{margin:18px 0 6px}
.share-invite{display:flex;gap:8px;margin-top:18px}
.share-invite input{flex:1;min-width:0;margin:0;border:1px solid #454545;border-radius:9px;padding:10px 12px}
.share-invite input:focus{border-color:#6a6a6a}
.share-invite .primary{flex-shrink:0}
.share-error:empty{display:none}
.share-note{font-size:12px!important;margin:10px 0 0;padding:10px 12px;border-radius:9px;background:#ffffff08;color:#cfcfcf!important}
.share-people{display:grid;gap:2px}
.share-person{display:flex;align-items:center;gap:11px;padding:7px 0;min-height:44px}
.share-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#343434;color:#ddd;font-size:12px;font-weight:600;flex-shrink:0}
.share-who{flex:1;min-width:0}
.share-who b{display:block;font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-who small{display:block;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-role{font-size:12px;color:var(--muted);white-space:nowrap}
.share-remove{width:26px;height:26px;border-radius:7px;color:var(--muted);font-size:17px;line-height:1}
.share-remove:hover{background:var(--hover);color:var(--ink)}
dialog label.share-access{display:flex;gap:11px;align-items:flex-start;margin:0;font-size:13px}
.share-access-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#2c2c2c;flex-shrink:0}
.share-access-icon svg{width:15px;height:15px}
.share-access-text{flex:1;min-width:0}
.share-access select{background:transparent;color:var(--ink);border:0;font:inherit;font-weight:500;padding:4px 2px;margin:2px 0 0 -2px;cursor:pointer;max-width:100%}
.share-access small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:2px}
.share-link{margin-top:16px}
dialog .share-link input{margin:0;font-size:12px;color:#cfcfcf;background:#ffffff06}
dialog .share-signature{margin:16px 0 0;padding:14px;border-radius:10px;background:#ffffff07;border:1px solid #ffffff10}
.share-signature b{display:block;font-size:13px;font-weight:500}
.share-signature>div{display:flex;gap:8px;align-items:center;margin-top:10px}
dialog .share-signature input{flex:1;min-width:0;margin:0;padding:9px 11px}
.share-signature small{display:block;margin-top:9px;font-size:12px;color:var(--muted)}
.share-signature .inline-link{display:inline;padding:0;font-size:12px;text-decoration:underline}
dialog .share-signed{display:flex;align-items:center;gap:9px;font-size:12px;margin:16px 0 0}
.share-signed>span:not(.share-avatar){flex:1}
.share-signed b{color:var(--ink);font-weight:500}
.share-signed .text-btn{flex-shrink:0}
.share-avatar.small{width:22px;height:22px;font-size:10px}
.share-avatar.has-photo,.avatar.has-photo,.profile-photo.has-photo{padding:0;overflow:hidden;background:#2c2c2c}
.share-avatar img,.avatar img,.profile-photo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
/* Profile (profile.js) */
.profile-editor{display:flex;align-items:center;gap:18px;margin:6px 0 4px}
.profile-photo{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#343434;color:#ddd;font-size:26px;font-weight:600;flex-shrink:0}
.profile-photo-actions{display:grid;gap:8px}
.profile-photo-actions>div{display:flex;align-items:center;gap:10px}
.profile-photo-actions small{font-size:12px;color:var(--muted)}
.settings-content label.profile-name{display:block;font-size:12px;margin-top:22px;max-width:360px}
#sidebar .profile .profile-label{display:block;overflow:hidden;text-overflow:ellipsis}
#sidebar .profile small{overflow:hidden;text-overflow:ellipsis}
.share-private{display:flex;gap:8px;align-items:flex-start;font-size:12px!important;margin:18px 0 0}
.share-private svg{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:#b9c9b6}
.share-actions{align-items:center}
.share-actions .spacer{flex:1}
.share-actions button{display:inline-flex;align-items:center;gap:7px}
.share-actions button svg{width:15px;height:15px}
.share-stop{color:#f0a6a0!important;padding:8px 4px}
@media(max-width:520px){.share-actions{flex-wrap:wrap}.share-actions .spacer{display:none}.share-stop{width:100%;justify-content:flex-start}}
/* Home's composer: the gradient rests faintly around it and glows when you type, like the project prompt. */
.home .composer{position:relative;isolation:isolate;box-shadow:-16px 0 34px -12px #9480ff33,16px 0 34px -12px #2fd3bf2e,0 12px 30px -12px #ff7eb326}
.home .composer::before{opacity:.38}
.home .composer:focus-within{box-shadow:-16px 0 40px -8px #9480ff52,16px 0 40px -8px #2fd3bf47,0 12px 34px -8px #ff7eb33a}
@media(prefers-reduced-motion:reduce){.composer:has(textarea:focus)::before{animation:none}}
/* Web sections: pages as cards, and a table when their facts line up (board.js) */
.page-media{aspect-ratio:16/10;background:#2a2a2a}
.page-media img{width:100%;height:100%;object-fit:cover}
.page-tile{display:grid;place-items:center;width:100%;height:100%;font-size:34px;font-weight:600;color:#cfc8ff;background:linear-gradient(135deg,#9480ff2e,#2fd3bf1f)}
.page-site{font-size:11px;color:var(--muted);letter-spacing:.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-takeaway{margin:0;font-size:12.5px;line-height:1.45;color:#cfcfcf;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.page-facts{display:grid;gap:6px;margin:6px 0 0}
.page-facts div{display:grid;gap:1px;font-size:12px;line-height:1.35}
.page-facts dt{color:var(--muted);font-size:10.5px;letter-spacing:.2px}
.page-facts dd{margin:0;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.page-sheet .sheet-main{aspect-ratio:16/10}
.page-sheet .sheet-main .page-tile{font-size:64px}
.slot-view{display:inline-flex;border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px}
.slot-view button{font-size:11.5px;padding:4px 9px;border-radius:6px;color:var(--muted)}
.slot-view button[aria-pressed="true"]{background:#ffffff12;color:var(--ink)}
.slot-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.slot-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:560px}
.slot-table th,.slot-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.slot-table tbody tr:last-child th,.slot-table tbody tr:last-child td{border-bottom:0}
.slot-table thead th{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}
.slot-table tbody tr:hover{background:#ffffff05}
.slot-table tr.kept{background:#9480ff14}
.slot-table td{color:#d8d8d8}
.table-item{display:flex;align-items:center;gap:10px;text-align:left;min-width:200px;max-width:320px}
.table-item b{display:block;font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-item small{display:block;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-item>span:last-child{min-width:0}
.table-thumb{flex:0 0 40px;width:40px;height:40px;border-radius:8px;overflow:hidden;display:grid;place-items:center;background:#2a2a2a}
.table-thumb img{width:100%;height:100%;object-fit:cover}
.table-thumb .page-tile{font-size:16px}
.table-actions{white-space:nowrap;text-align:right!important}
.table-actions .product-dismiss{position:static;opacity:.6;margin-left:6px;background:transparent;color:var(--muted)}
.table-actions .product-dismiss:hover{opacity:1;color:var(--ink)}
.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}
.page-tile.has-icon img{width:44px;height:44px;object-fit:contain;border-radius:10px}
.table-thumb .page-tile.has-icon img{width:24px;height:24px;border-radius:5px}
/* Price freshness and moves (board.js) */
.price-move{font-size:11px;font-weight:600;padding:1px 6px;border-radius:999px;white-space:nowrap}
.price-move.down{color:#7fe0a8;background:#2fd38a1f}
.price-move.up{color:#f0a6a0;background:#f0a6a01a}
.out-of-stock{color:#f0a6a0}
.price-trail{font-size:12px;color:var(--muted);margin:6px 0 0}
.board-pick .price-move{display:inline-block;margin-top:3px}
/* Live product details loading (board-live.js) */
.price-loading{display:inline-block;width:46px;height:12px;border-radius:6px;background:linear-gradient(100deg,var(--panel) 40%,var(--line) 50%,var(--panel) 60%) 0 0/250% 100%;animation:board-shimmer 1.4s linear infinite;vertical-align:middle}
.product-media.is-loading{background:linear-gradient(100deg,#2a2a2a 40%,#333 50%,#2a2a2a 60%) 0 0/250% 100%;animation:board-shimmer 1.4s linear infinite}
.product-media.is-loading .product-initial{opacity:0}
@media (prefers-reduced-motion:reduce){.price-loading,.product-media.is-loading{animation:none}}

/* Threads: everything toward one goal, kept together (threads.js). */
.thread-dot{width:8px;height:8px;border-radius:3px;flex:0 0 8px;background:#a6a6a6;display:inline-block}
.thread-dot.tone-sage{background:#b6cbb8}.thread-dot.tone-sand{background:#dec6a4}.thread-dot.tone-blue{background:#adc4df}.thread-dot.tone-lavender{background:#b9adf5}.thread-dot.tone-rose{background:#f0a8c4}.thread-dot.tone-teal{background:#86d6c6}
.thread-side{margin-top:6px}
.thread-side .side-label{margin-top:22px}
.thread-link{gap:10px}
.thread-link .thread-link-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-link small{font-size:11px;color:#8b8b8b}
.thread-side-sub{display:flex;flex-direction:column;gap:1px;margin:0 0 6px 15px;border-left:1px solid #333;padding-left:6px}
.thread-side-sub button{font-size:13px;color:#a3a3a3;padding:6px 8px;border-radius:6px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-side-sub button:hover,.thread-side-sub button.active{background:var(--hover);color:#ececec}
.thread-side-empty{font-size:12px;color:#777;margin:4px 12px 8px}
/* Tab groups are threads (tab-groups.js): each thread a group with its open tabs, in the thread's own colour. */
.tab-group{--tone:#8b8b8b;border-radius:10px;margin:1px 0}
.tab-group.tone-sage{--tone:#b6cbb8}.tab-group.tone-sand{--tone:#dec6a4}.tab-group.tone-blue{--tone:#adc4df}.tab-group.tone-lavender{--tone:#b9adf5}.tab-group.tone-rose{--tone:#f0a8c4}.tab-group.tone-teal{--tone:#86d6c6}
.tab-group.open{background:color-mix(in srgb,var(--tone) 7%,transparent);padding-bottom:4px;margin:3px 0}
.tab-group-head{position:relative}
.tab-group-head .thread-link{width:100%;min-width:0}
/* The fold and Keep controls sit over the tab count on hover, so names keep their room. */
.tab-group-head:hover .thread-link small,.tab-group-head:focus-within .thread-link small{visibility:hidden}
.tab-group-fold{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:#8b8b8b;opacity:0;transition:opacity .12s}
.tab-group-fold svg{width:13px;height:13px;transition:transform .15s}
.tab-group:not(.open) .tab-group-fold svg{transform:rotate(-90deg)}
.tab-group-head:hover .tab-group-fold,.tab-group-fold:focus-visible{opacity:1}
.tab-group-fold:hover{background:var(--hover);color:#ececec}
.tab-group-keep{position:absolute;right:30px;top:50%;transform:translateY(-50%);font-size:11px;color:#d6d6d6;padding:3px 9px;border-radius:99px;background:#2a2a2a;border:1px solid #3a3a3a;opacity:0;transition:opacity .12s}
.tab-group-head:hover .tab-group-keep,.tab-group-keep:focus-visible{opacity:1}
.tab-group-keep:hover{background:var(--hover);color:#fff}
.tab-group-tabs{display:flex;flex-direction:column;gap:1px;margin:0 4px 0 14px;padding-left:6px;border-left:2px solid color-mix(in srgb,var(--tone) 45%,transparent)}
.tab-group.loose .tab-group-tabs{border-left-color:#3a3a3a}
.tab-group-tab{display:flex;align-items:center;border-radius:7px}
.tab-group-tab>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:5px 6px;font-size:12.5px;color:#a3a3a3;text-align:left}
.tab-group-tab .tab-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-group-tab .tab-fav{flex:none;width:16px;height:16px;border-radius:4px;display:grid;place-items:center;font-size:9.5px;font-weight:600;color:#1a1a1a;background:color-mix(in srgb,var(--tone) 75%,#fff)}
.tab-group.loose .tab-fav{background:#bdbdbd}
.tab-group-tab:hover,.tab-group-tab.active{background:var(--hover)}
.tab-group-tab.active>button:first-child{color:#f2f2f2}
.tab-group-tab .tab-x{width:22px;height:22px;display:grid;place-items:center;border-radius:5px;color:#8b8b8b;opacity:0}
.tab-group-tab .tab-x svg{width:11px;height:11px}
.tab-group-tab:hover .tab-x,.tab-group-tab .tab-x:focus-visible{opacity:1}
.tab-group-tab .tab-x:hover{background:#3a3a3a;color:#fff}
.tab-group-more{font-size:11.5px;color:#8b8b8b;text-align:left;padding:3px 6px}
.tab-group-more:hover{color:#ececec}
.tab-group .thread-side-sub{margin-left:14px}

.thread-away-link small{margin-left:auto}
.thread-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.thread-card{display:flex;flex-direction:column;gap:8px;text-align:left;background:#1d1d1d;border:1px solid #303030;border-radius:12px;padding:16px;min-height:150px;color:var(--ink);cursor:pointer;transition:background-color 140ms ease,border-color 140ms ease}
.thread-card:hover{background:#242424;border-color:#444}
.thread-card-top{display:flex;align-items:center;gap:8px;font-size:11px;color:#8f8f8f}
.thread-steps{margin-left:auto;color:#86d6c6}
.thread-card strong{font-weight:500;font-size:15px;line-height:1.3}
.thread-card-left{font-size:12.5px;line-height:1.5;color:var(--muted);flex:1}
.thread-card-foot{font-size:11px;color:#7d7d7d}
.thread-steps-list{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.thread-step{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:13.5px;color:#d0d0d0;cursor:pointer}
.thread-step:hover{background:var(--hover)}
.thread-step input{accent-color:#9480ff;width:15px;height:15px;flex-shrink:0}
.thread-step span{flex:1;min-width:0}
.thread-step.done span{text-decoration:line-through;color:#7a7a7a}
.thread-step-where{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:#8f8f8f;padding:3px 8px;border-radius:6px}
.thread-step-where:hover{background:var(--hover);color:#e6e6e6}
.thread-step-add input,.thread-criterion-add input{width:100%;background:transparent;border:1px dashed #3a3a3a;border-radius:8px;padding:8px 10px;font-size:13px}
.thread-step-add input:focus,.thread-criterion-add input:focus{border-style:solid;border-color:#5a5a5a}
.thread-step-add{margin-top:4px}
.threads-page .section-title{margin:36px 0 12px}
.thread-away-list{display:flex;flex-direction:column}
.thread-away-row{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;font-size:13px;color:#cfcfcf;text-align:left}
.thread-away-row:hover{background:var(--hover)}
.thread-away-row span:not(.thread-dot){flex:1}
.thread-away-row small{font-size:11px;color:#7d7d7d}
#app{scrollbar-width:thin;scrollbar-color:#3a3a3a transparent}
#app::-webkit-scrollbar{width:6px;height:6px}
#app::-webkit-scrollbar-track{background:transparent}
#app::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:3px}
#app::-webkit-scrollbar-thumb:hover{background:#4a4a4a}
.thread-view{max-width:820px;margin:0 auto;padding:30px 32px 70px}
.thread-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.thread-title{min-width:0}
.thread-title h1{font-size:30px;font-weight:500;letter-spacing:-.6px;line-height:1.2;margin:8px 0 0;text-wrap:balance}
.thread-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.thread-count{font-size:11.5px;color:#7d7d7d}
.thread-pill{font-size:11px;border:1px solid #3a3a3a;border-radius:20px;padding:2px 8px;color:#bdbdbd}
.thread-actions{display:flex;gap:6px;flex-wrap:wrap}
.thread-act{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#cfcfcf;padding:7px 10px;border-radius:8px;border:1px solid #3a3a3a}
.thread-act svg{width:15px;height:15px}
.thread-act:hover{background:var(--hover);color:#f0f0f0}
.thread-act[aria-pressed="true"]{background:#2a2a2a;color:#f0f0f0}
.thread-pages{display:flex;gap:6px;overflow-x:auto;margin-top:18px;padding-bottom:2px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
.thread-pages::-webkit-scrollbar{display:none}
.thread-page{flex-shrink:0;display:flex;align-items:center;gap:8px;max-width:240px;font-size:12px;color:#a9a9a9;padding:7px 10px;border-radius:8px;background:#1d1d1d;border:1px solid #2e2e2e}
.thread-page:hover{color:#efefef;border-color:#454545}
.thread-page span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-fav{width:16px;height:16px;border-radius:4px;display:grid;place-items:center;font-size:9px;font-weight:600;background:#333;color:#ddd;flex-shrink:0}
.thread-left{background:linear-gradient(180deg,#1f1f1f,#1b1b1b);border:1px solid #2e2e2e;border-radius:14px;padding:18px 20px;margin-top:20px}
.thread-left-when{font-size:11.5px;color:#7d7d7d;margin-bottom:6px}
.thread-left p{margin:0;font-size:15.5px;line-height:1.6;color:var(--ink);max-width:64ch}
.thread-section{margin-top:30px}
.thread-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.thread-section-head h2{font-size:13px;font-weight:500;color:var(--muted);margin:0}
.thread-criteria{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.thread-criterion{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:5px 6px 5px 11px;border-radius:20px;background:#212121;border:1px solid #2e2e2e;color:#d6d6d6}
.thread-criterion button{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:#7d7d7d}
.thread-criterion button:hover{background:var(--hover);color:#eee}
.thread-criterion svg{width:11px;height:11px}
.thread-criterion-add{flex:1;min-width:200px}
.thread-hint{font-size:11.5px;color:#777;margin:8px 0 0}
.thread-kept{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.thread-kept li{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:10px;background:#1d1d1d;border:1px solid #2e2e2e;font-size:13px;color:#d0d0d0}
.thread-kept li span{color:#a9a9a9;font-size:12.5px}
.thread-kept li small{font-size:11px;color:#777}
.thread-chats{display:flex;flex-direction:column}
.thread-chat{display:flex;align-items:center;gap:12px;padding:10px;border-radius:8px;font-size:13px;color:#d0d0d0;text-align:left}
.thread-chat:hover{background:var(--hover)}
.thread-chat svg{width:16px;height:16px;color:#8f8f8f}
.thread-chat span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-chat .thread-fav{flex:none}
.thread-chat small{font-size:11px;color:#7d7d7d;white-space:nowrap}
.thread-ask{margin-top:30px}
.thread-ask textarea{height:46px}
.thread-crumb{display:inline-flex;align-items:center;gap:8px}
.thread-offer{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 22px;padding:14px 16px;border-radius:12px;border:1px solid transparent;background:linear-gradient(#1d1c24,#1d1c24) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite}
.thread-offer strong{font-weight:500;font-size:14px}
.thread-offer p{margin:4px 0 0;font-size:12.5px;color:var(--muted);max-width:60ch}
.thread-offer-actions{display:flex;gap:8px;align-items:center}
@keyframes threadflow{from{background-position:0 0,0 0}to{background-position:0 0,300% 0}}
@media(max-width:600px){.thread-view{padding:22px 18px 60px}.thread-title h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.thread-offer{animation:none}}
.space-toggle{flex:1;min-width:0;display:flex;gap:3px;background:#202020;border:1px solid #2e2e2e;border-radius:9px;padding:3px}
.space-toggle button{flex:1;min-width:0;text-align:center;font-size:12px;padding:6px 8px;border-radius:7px;color:#9a9a9a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.space-toggle button:hover{color:#e6e6e6}
.space-toggle button[aria-pressed="true"]{background:#2e2e2e;color:#f0f0f0}
.loose-browse[aria-pressed="true"]{background:#2a2a2a;color:#f0f0f0}
.browse-offer{position:fixed;right:22px;bottom:22px;z-index:40;width:min(340px,calc(100vw - 32px));padding:15px 16px;border-radius:14px;color:var(--ink);border:1px solid transparent;background:linear-gradient(#1d1c24,#1d1c24) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite,offerrise .3s ease;box-shadow:0 20px 60px #0008}
@keyframes offerrise{from{transform:translateY(12px);opacity:.4}to{transform:none;opacity:1}}
.browse-offer-kicker{font-size:11px;color:#86d6c6;margin-bottom:5px}
.browse-offer strong{display:block;font-weight:500;font-size:14.5px;margin-bottom:4px}
.browse-offer p{margin:0 0 10px;font-size:12.5px;color:var(--muted);line-height:1.5}
.browse-offer-favs{display:flex;gap:5px;margin-bottom:12px}
.browse-offer-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.import-sources{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.import-source{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;border:1px solid #333;text-align:left;font-size:13.5px}
.import-source:hover{background:var(--hover);border-color:#474747}
.import-source span{flex:1}
.import-list{display:flex;flex-direction:column;gap:4px;margin-top:14px;max-height:50vh;overflow:auto}
.import-row{display:flex;gap:11px;align-items:flex-start;padding:10px;border-radius:9px;cursor:pointer}
.import-row:hover{background:var(--hover)}
.import-row input{accent-color:#9480ff;margin-top:3px}
.import-row strong{display:block;font-weight:500;font-size:13.5px}
.import-row small{font-size:11.5px;color:#8a8a8a}
.settings-subhead{margin-top:28px}
@media(prefers-reduced-motion:reduce){.browse-offer{animation:none}}

/* Thread view, layout A: one place to pick up, the rest behind tabs. */
.thread-view .thread-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.thread-view .thread-count{font-size:12px;color:#858585}
.thread-tools{margin-left:auto;display:flex;gap:6px}
.thread-more{letter-spacing:1px;padding:7px 9px}
.thread-name{font-size:30px;font-weight:500;letter-spacing:-.6px;line-height:1.2;margin:10px 0 0;text-wrap:balance}
.thread-hero{margin-top:22px;border-radius:16px;padding:22px 24px;border:1px solid transparent;background:linear-gradient(#1c1b22,#1c1b22) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 7s linear infinite}
.thread-hero-when{font-size:11.5px;color:#7d7d7d}
.thread-hero p{margin:8px 0 0;font-size:18px;line-height:1.55;color:var(--ink);max-width:58ch}
.thread-hero-go{display:flex;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}
.thread-continue{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;padding:8px 14px 8px 11px;border-radius:9px;background:#e2e2e2;color:#1b1b1b}
.thread-continue:hover{background:#f2f2f2}
.thread-continue svg{width:15px;height:15px}
.thread-next{display:inline-flex;align-items:center;gap:9px;font-size:13px;color:#d0d0d0;padding:7px 11px;border-radius:9px;border:1px solid #3a3a3a;cursor:pointer;max-width:100%}
.thread-next:hover{background:var(--hover)}
.thread-next b{font-weight:500;color:#7d7d7d;font-size:11.5px}
.thread-next span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-next input{accent-color:#9480ff;flex-shrink:0}
.thread-view .thread-ask{margin-top:16px}
.thread-tabs{display:flex;gap:4px;margin-top:30px;border-bottom:1px solid #2b2b2b;overflow-x:auto;scrollbar-width:none}
.thread-tabs button{font-size:13px;color:#979797;padding:9px 10px;position:relative;white-space:nowrap}
.thread-tabs button:hover{color:#dedede}
.thread-tabs button span{font-size:11px;color:#6e6e6e;margin-left:6px}
.thread-tabs button[aria-selected="true"]{color:var(--ink)}
.thread-tabs button[aria-selected="true"]::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;border-radius:2px;background:#cbcbcb}
.thread-panel{padding-top:10px}
.thread-panel-sub{font-size:12px;font-weight:500;color:var(--muted);margin:16px 10px 8px}
.thread-panel .thread-criteria{padding:0 8px}
.thread-panel .thread-hint{padding:0 10px}
.thread-panel .thread-steps-list{padding:0 2px}
.thread-menu{min-width:200px}
@media(prefers-reduced-motion:reduce){.thread-hero{animation:none}}
@media(max-width:600px){.thread-name{font-size:25px}.thread-hero p{font-size:16px}.thread-tools{margin-left:0}}
.thread-step span,.thread-next span{transition:color .25s ease}
.thread-step.just-done span,.thread-next.just-done span{text-decoration:line-through;color:#7a7a7a}
.thread-step.just-done,.thread-next.just-done{animation:stepdone .9s ease forwards}
@keyframes stepdone{0%,55%{opacity:1}100%{opacity:.35}}
.step-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:14px;background:#e2e2e2;color:#1c1c1c;font-size:12.5px;padding:9px 10px 9px 15px;border-radius:10px;box-shadow:0 10px 30px #0006;max-width:calc(100vw - 32px)}
.step-toast span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step-toast button{font-weight:600;padding:4px 8px;border-radius:6px;color:#1c1c1c}
.step-toast button:hover{background:#d0d0d0}
@media(prefers-reduced-motion:reduce){.thread-step.just-done,.thread-next.just-done{animation:none}}
/* Checking off a step: the checkbox pops, a line draws across the words, then the row eases away. */
.thread-step .strike,.thread-next .strike{font-style:normal;background:linear-gradient(currentColor,currentColor) no-repeat 0 58%/0% 1.5px;transition:background-size .42s cubic-bezier(.6,0,.2,1),color .3s ease .15s}
.thread-step.just-done span,.thread-next.just-done span{text-decoration:none}
.thread-step.just-done .strike,.thread-next.just-done .strike,.thread-step.done .strike{background-size:100% 1.5px;color:#7a7a7a}
.thread-step.done span{text-decoration:none}
.thread-step.just-done,.thread-next.just-done{animation:none}
.thread-step.just-done input,.thread-next.just-done input{animation:checkpop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes checkpop{0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}
.thread-step.leaving,.thread-next.leaving{transition:opacity .35s ease,transform .35s ease;opacity:0;transform:translateX(10px)}
@media(prefers-reduced-motion:reduce){.thread-step .strike,.thread-next .strike{transition:none}.thread-step.just-done input,.thread-next.just-done input{animation:none}.thread-step.leaving,.thread-next.leaving{transition:none}}
/* Everything you've read (recall.js) */
.recall-page{max-width:860px}
.recall-search{display:flex;align-items:center;gap:10px;border:1px solid #3a3a3a;background:#1f1f1f;border-radius:12px;padding:11px 14px;margin:4px 0 12px}
.recall-search:focus-within{border-color:#555}
.recall-search span{color:#7d7d7d;display:grid}
.recall-search input{flex:1;min-width:0;background:transparent;border:0;outline:none;font-size:15px}
.recall-scope{margin:0 0 16px}
.recall-ask{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 8px;font-size:12px;color:#8a8a8a}
.recall-list{display:flex;flex-direction:column}
.recall-hit{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;padding:13px 12px;border-radius:10px;border-bottom:1px solid #262626}
.recall-hit:hover{background:var(--hover)}
.recall-hit-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.recall-hit strong{font-weight:500;font-size:14px;color:var(--ink)}
.recall-hit small{font-size:11.5px;color:#7d7d7d}
.recall-thread{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#a3a3a3;border:1px solid #333;border-radius:20px;padding:1px 8px}
.recall-snippet{font-size:13px;line-height:1.55;color:#c4c4c4}
.recall-snippet mark{background:rgba(185,173,245,.24);color:var(--ink);border-radius:3px;padding:0 2px}
.recall-in-search{margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #2b2b2b}
/* Ask Raven (ask-raven.js): the button, and ⌘J */
.ask-raven{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#d6d6dc;padding:6px 10px;border-radius:9px;border:1px solid #34343c;background:transparent;white-space:nowrap;transition:border-color .15s ease,background-color .15s ease}
.ask-raven svg{width:14px;height:14px;color:#b9adf5}
.ask-raven kbd{font:11px var(--mono,ui-monospace,monospace);color:#8f8f8f}
.ask-raven:hover{background:var(--hover);border-color:#4a4468;color:var(--ink)}
.summon-layer{position:fixed;inset:0;z-index:70;background:rgba(8,8,10,.5);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px}
.summon-box{width:min(620px,100%);border-radius:16px;overflow:hidden;border:1px solid transparent;background:linear-gradient(#1c1b23,#1c1b23) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite,summonin .18s ease;box-shadow:0 30px 90px rgba(0,0,0,.6)}
@keyframes summonin{from{transform:translateY(-6px) scale(.985);opacity:0}to{transform:none;opacity:1}}
.summon-box form{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #2e2c38}
.summon-spark{color:#b9adf5;display:grid}
.summon-box input{flex:1;min-width:0;background:transparent;border:0;outline:none;font-size:16px;color:var(--ink)}
.summon-box kbd{font:11px var(--mono,ui-monospace,monospace);color:#7d7d7d}
.summon-chips{display:flex;gap:6px;flex-wrap:wrap;padding:12px 16px 4px}
.summon-chip{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#cfcfcf;border:1px solid #3a3a3a;border-radius:20px;padding:3px 9px;max-width:100%}
.summon-chip svg{width:12px;height:12px}
.summon-chip.memory{color:#b9adf5;border-color:#46425e}
.summon-list{padding:8px}
.summon-list button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;font-size:13.5px;color:#d6d6d6;text-align:left}
.summon-list button:hover,.summon-list button:focus-visible{background:#2a2932;color:#f2f2f2}
.summon-list svg{width:15px;height:15px;color:#8f8f8f}
.summon-note{font-size:11px;color:#757575;margin:0;padding:2px 16px 14px}
@media(prefers-reduced-motion:reduce){.ask-raven,.summon-box{animation:none}}
@media(max-width:600px){.ask-raven span,.ask-raven kbd{display:none}}
/* Send Raven ahead (ahead.js) */
.thread-ahead{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;padding:7px 12px 7px 10px;border-radius:9px;color:#f5a15c;border:1px solid #f28c3a;background:transparent}
.thread-ahead svg{width:15px;height:15px;color:#f28c3a}
.thread-ahead:hover{background:rgba(242,140,58,.1);color:#f8b47a}
.thread-ahead:active{background:rgba(242,140,58,.18)}
.thread-ahead .ahead-spin{border-color:rgba(242,140,58,.25);border-top-color:#f28c3a}
.ahead-spin{width:12px;height:12px;border-radius:50%;border:2px solid #3a3a3a;border-top-color:#b9adf5;animation:aheadspin .8s linear infinite;flex-shrink:0;display:inline-block}
@keyframes aheadspin{to{transform:rotate(360deg)}}
.ahead-float{position:fixed;inset:0;z-index:65;background:rgba(8,8,10,.45);backdrop-filter:blur(2px);display:flex;justify-content:center;align-items:flex-start;padding:10vh 16px 16px;overflow:auto}
.ahead-plan{width:min(540px,100%);border-radius:16px;padding:20px 22px;color:var(--ink);border:1px solid transparent;background:linear-gradient(#1c1b23,#1c1b23) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite,summonin .18s ease;box-shadow:0 30px 80px rgba(0,0,0,.55)}
.ahead-kicker{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#b9adf5;margin-bottom:8px}
.ahead-kicker svg{width:14px;height:14px}
.ahead-plan strong{display:block;font-weight:500;font-size:16px}
.ahead-why{font-size:12.5px;color:var(--muted);margin:5px 0 0}
.ahead-planning{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.ahead-planning span{height:34px;border-radius:9px;background:linear-gradient(90deg,#24232c,#2f2d3a,#24232c);background-size:200% 100%;animation:aheadshimmer 1.3s linear infinite}
@keyframes aheadshimmer{to{background-position:-200% 0}}
.ahead-steps{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.ahead-steps li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:#d4d4d4;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.03)}
.ahead-dot{width:15px;height:15px;flex-shrink:0;margin-top:2px;border-radius:50%;border:1.5px solid #6e6e6e;display:grid;place-items:center}
.ahead-steps li.doing .ahead-dot{border-color:#3a3a3a;border-top-color:#b9adf5;animation:aheadspin .8s linear infinite}
.ahead-steps li.done .ahead-dot{background:#86d6c6;border-color:#86d6c6}
.ahead-steps li.done .ahead-dot::after{content:"";width:6px;height:3px;border-left:2px solid #12312b;border-bottom:2px solid #12312b;transform:rotate(-45deg) translate(1px,-1px)}
.ahead-steps li.failed .ahead-dot,.ahead-steps li.stopped .ahead-dot,.ahead-steps li.skipped .ahead-dot{border-style:dashed}
.ahead-step-text{flex:1;min-width:0}
.ahead-step-text small{display:block;font-size:11px;color:#7d7d7d;margin-top:2px}
.ahead-steps li button{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;color:#7d7d7d}
.ahead-steps li button:hover{background:var(--hover);color:#eee}
.ahead-steps li button svg{width:12px;height:12px}
.ahead-add{display:flex;gap:8px;margin-top:8px}
.ahead-add input{flex:1;min-width:0;background:rgba(255,255,255,.03);border:1px dashed #3a3a3a;border-radius:9px;padding:8px 10px;font-size:13px;color:var(--ink)}
.ahead-add input:focus{outline:none;border-style:solid;border-color:#55507a}
.ahead-add button{font-size:12.5px;padding:7px 12px;border-radius:8px;border:1px solid #3a3a3a;color:#d0d0d0}
.ahead-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.ahead-bar>span:first-child{font-size:11.5px;color:#7d7d7d;flex:1;min-width:200px}
.ahead-btns{display:flex;gap:8px;align-items:center}
.ahead-pill{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:5px 11px;border-radius:20px;white-space:nowrap;color:var(--ink)}
.ahead-pill.running{border:1px solid transparent;background:linear-gradient(#1f1e27,#1f1e27) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite}
.ahead-pill.done{color:#7fe0b8;border:1px solid #2f8f6a;background:rgba(47,166,120,.08)}
.ahead-pill.done:hover{background:rgba(47,166,120,.16)}
.ahead-pill svg{width:14px;height:14px}
.ahead-pane{position:fixed;top:0;right:0;bottom:0;z-index:55;width:min(380px,92vw);background:#181818;border-left:1px solid #2e2e2e;box-shadow:-20px 0 60px rgba(0,0,0,.45);display:flex;flex-direction:column;animation:aheadin .25s ease}
@keyframes aheadin{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.ahead-pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px;padding:9px 10px 9px 12px;border-radius:11px;border:1px solid transparent;background:linear-gradient(#1e1d26,#1e1d26) padding-box,linear-gradient(110deg,#9480ff,#4fa3ff,#2fd3bf,#ff7eb3,#9480ff) border-box;background-size:100% 100%,300% 100%;animation:threadflow 6s linear infinite}
.ahead-pane-head>span{display:flex;align-items:center;gap:8px;font-size:12.5px}
.ahead-pane-head svg{width:14px;height:14px;color:#b9adf5}
.ahead-pane-body{flex:1;overflow:auto;padding:0 16px 16px;scrollbar-width:thin;scrollbar-color:#3a3a3a transparent}
.ahead-pane-thread{display:flex;align-items:center;gap:8px;margin:2px 0 6px}
.ahead-pane-thread .text-btn{padding:2px 4px;font-size:13px;color:var(--ink)}
.ahead-error{font-size:12.5px;color:#e7c08a;margin:10px 2px}
.ahead-needs{margin-top:14px;border:1px solid #5a4a2e;background:rgba(231,192,138,.06);border-radius:11px;padding:10px 12px}
.ahead-needs h4{margin:0 0 6px;font-size:11.5px;font-weight:500;color:#e7c08a}
.ahead-need{padding:6px 0;border-top:1px solid rgba(231,192,138,.15)}
.ahead-need:first-of-type{border-top:0}
.ahead-need strong{font-weight:500;font-size:13px}
.ahead-need p{margin:2px 0 6px;font-size:12px;color:#a9a9a9}
.ahead-need span{display:flex;gap:8px;justify-content:flex-end}
.ahead-findings{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.ahead-finding{padding:12px;border-radius:11px;background:#1f1f1f;border:1px solid #2e2e2e}
.ahead-finding strong{font-weight:500;font-size:13.5px;color:var(--ink)}
.ahead-finding p{margin:4px 0 8px;font-size:13px;line-height:1.55;color:#c8c8c8}
.ahead-sources{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.ahead-sources button{font-size:11px;color:#9a9a9a;border:1px solid #333;border-radius:6px;padding:2px 7px}
.ahead-sources button:hover{color:#eee;border-color:#4a4a4a}
.ahead-acts{display:flex;gap:6px;flex-wrap:wrap}
.ahead-acts button{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#d0d0d0;padding:5px 9px;border-radius:7px;border:1px solid #3a3a3a;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ahead-acts button:hover{background:var(--hover)}
.ahead-acts button.used{color:#86d6c6;border-color:#2f5149;pointer-events:none}
.ahead-acts svg{width:12px;height:12px}
.ahead-pane-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #2a2a2a}
@media(prefers-reduced-motion:reduce){.ahead-plan,.ahead-pill.running,.ahead-pane-head,.ahead-pane{animation:none}}
/* Rabbit hole (rabbit.js): a full-bleed canvas and a side pane */
#app.rh-active{overflow:hidden;display:flex;flex-direction:column}
#app.rh-active .topbar{flex-shrink:0}
.rh{flex:1;min-height:0;display:flex;border-top:1px solid #2a2927}
.rh-stage{--gx:0px;--gy:0px;--gs:24px;position:relative;flex:1;min-width:0;overflow:hidden;background-color:#121211;background-image:radial-gradient(rgba(255,255,255,.075) 1px,transparent 1.3px);background-size:var(--gs) var(--gs);background-position:var(--gx) var(--gy);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;outline:none}
.rh-stage.dragging{cursor:grabbing}
.rh-stage.dragging .rh-card,.rh-stage.dragging .rh-door{cursor:grabbing}
.rh-stage img{-webkit-user-drag:none}
.rh-world{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.rh-world.glide{transition:transform .9s cubic-bezier(.65,0,.2,1)}
.rh-trail{position:absolute;left:14px;top:12px;right:14px;display:flex;align-items:center;gap:2px;width:max-content;max-width:calc(100% - 28px);overflow-x:auto;scrollbar-width:none;background:rgba(22,22,27,.86);backdrop-filter:blur(10px);border:1px solid #33312e;border-radius:10px;padding:3px;z-index:3}
.rh-trail[hidden]{display:none}
.rh-trail::-webkit-scrollbar{display:none}
.rh-crumb{font-size:12px;color:#92929c;padding:5px 9px;border-radius:7px;white-space:nowrap}
.rh-crumb:hover{background:var(--hover);color:var(--ink)}
.rh-crumb.on{color:var(--ink);background:rgba(255,255,255,.06)}
.rh-sep{color:#55555e;font-size:12px}
.rh-zoom{position:absolute;left:14px;bottom:14px;display:flex;align-items:center;gap:2px;background:rgba(22,22,27,.86);backdrop-filter:blur(10px);border:1px solid #33312e;border-radius:10px;padding:3px;z-index:3;cursor:default}
.rh-zoom button{min-width:28px;height:28px;border-radius:7px;color:#c6c6ce;font-size:15px;line-height:1;padding:0 6px}
.rh-zoom button:hover{background:var(--hover);color:var(--ink)}
.rh-zoom .pct{font:500 11.5px var(--mono,ui-monospace,monospace);min-width:50px;color:#a0a0aa}
.rh-zoom .fit{font-size:12px;border-left:1px solid #33312e;border-radius:0 7px 7px 0;padding:0 10px}
/* While a stop streams in */
.rh-chip{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:9px;max-width:720px;white-space:nowrap;font:500 13px var(--mono,ui-monospace,monospace);color:#fff0d0;background:#1a1716;border:1px solid #4f3a44;border-radius:22px;padding:9px 16px;box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 6px rgba(255,143,191,.05);z-index:1}
.rh-chip small{font:500 10px var(--mono,ui-monospace,monospace);letter-spacing:.7px;text-transform:uppercase;color:#ff9fc8}
.rh-chip span{overflow:hidden;text-overflow:ellipsis}
.rh-chip i{width:7px;height:15px;background:#ff8fbf;border-radius:1px;animation:rhcaret 1s steps(2,start) infinite}
@keyframes rhcaret{to{visibility:hidden}}
.rh-slip{position:absolute;width:204px;height:64px;padding:9px 11px 10px;border-radius:9px;background:#191817;border:1px solid #302e2c;color:#c6c6ce;opacity:.72;overflow:hidden;transition:opacity .5s ease,filter .5s ease;pointer-events:none}
.rh-slip small{display:block;font:500 10px var(--mono,ui-monospace,monospace);color:#e7a9c4;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rh-slip b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:400;font-size:12px;line-height:1.35}
.rh-slip i{position:absolute;left:0;bottom:0;height:2px;width:100%;background:linear-gradient(90deg,transparent,#ff8fbf,transparent);transform:translateX(-100%);animation:rhread 3.2s cubic-bezier(.45,0,.3,1) infinite}
@keyframes rhread{0%{transform:translateX(-100%)}40%,100%{transform:translateX(100%)}}
.rh-slip.used{opacity:.18;filter:saturate(0)}
.rh-slip.used i{animation:none;opacity:0}
/* Side pane */
.rh-pane{width:340px;flex-shrink:0;display:flex;flex-direction:column;border-left:1px solid #2a2927;background:#161615;min-height:0}
.rh-pane-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:16px 18px 18px}
.rh-pane-body::-webkit-scrollbar{display:none}
.rh-pane-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.rh-mode{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;padding:2px 11px 2px 5px;border-radius:20px;color:#ffe9a8;background:transparent;border:1px solid rgba(255,217,90,.55);white-space:nowrap}
.rh-mode i{width:19px;height:19px;background:url(rabbit-hole/magic_hat.png) center/contain no-repeat}
.rh-kept-n{font-size:12px;color:#a0a0aa}
.rh-kept-n b{font-weight:500;color:#86d6c6}
.rh-q{font-size:19px;font-weight:500;line-height:1.3;letter-spacing:-.3px;margin:0 0 14px;color:var(--ink)}
.rh-answer{border:1px solid #302e2c;background:#1c1b1a;border-radius:12px;padding:12px 14px;margin-bottom:18px}
.rh-answer .who{display:block;font:500 10.5px var(--mono,ui-monospace,monospace);letter-spacing:.5px;color:#ff8fbf;margin-bottom:6px}
.rh-answer p{margin:0;font-size:13.5px;line-height:1.6;color:#e2e2e8}
.rh-answer small{display:block;margin-top:8px;font:10.5px var(--mono,ui-monospace,monospace);color:#80808a}
.rh-sec{font:500 10.5px var(--mono,ui-monospace,monospace);letter-spacing:.7px;text-transform:uppercase;color:#7c7c86;margin:4px 0 8px}
.rh-next{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.rh-next button{--d:#ff8fbf;--dt:rgba(255,143,191,.06);text-align:left;padding:9px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--d) 45%,transparent);background:var(--dt);font-size:13px;line-height:1.35;color:var(--ink)}
.rh-next button:hover:not(:disabled){background:color-mix(in srgb,var(--d) 14%,transparent)}
.rh-next button:disabled{opacity:.5;cursor:default}
.rh-next small{display:block;font:500 10px var(--mono,ui-monospace,monospace);letter-spacing:.6px;text-transform:uppercase;color:var(--d);margin-bottom:2px}
.rh-keptlist{display:flex;flex-direction:column;gap:2px}
.rh-keptlist button{display:flex;align-items:center;gap:10px;padding:6px;border-radius:8px;text-align:left;font-size:12.5px;color:#d0d0d8}
.rh-keptlist button:hover{background:var(--hover)}
.rh-keptlist img{width:30px;height:30px;border-radius:6px;object-fit:cover;flex-shrink:0}
.rh-keptlist .dot{width:30px;height:30px;border-radius:6px;background:#262422;flex-shrink:0;position:relative}
.rh-keptlist .dot::after{content:"";position:absolute;inset:11px;border-radius:50%;background:#86d6c6}
.rh-steps{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.rh-steps li{display:flex;gap:11px;font-size:13.5px;color:#6c6c76;align-items:flex-start;transition:color .3s ease}
.rh-steps li i{width:14px;height:14px;margin-top:2px;border-radius:50%;border:1.5px solid #3a3a44;flex-shrink:0;position:relative;transition:border-color .3s ease,background .3s ease}
.rh-steps li.on{color:var(--ink)}
.rh-steps li.on i{border-color:#ff8fbf;border-top-color:transparent;animation:rhspin .9s linear infinite}
.rh-steps li.done{color:#a8a8b2}
.rh-steps li.done i{border-color:#86d6c6;background:#86d6c6}
.rh-steps li.done i::after{content:"";position:absolute;left:4px;top:1.5px;width:3px;height:6px;border:solid #111;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.rh-steps em{display:block;font:normal 11.5px var(--mono,ui-monospace,monospace);color:#ff9fc8;margin-top:3px;word-break:break-word}
@keyframes rhspin{to{transform:rotate(360deg)}}
.rh-err{font-size:13.5px;line-height:1.5;color:#e8b4a0;margin:0 0 12px}
.rh-back{font-size:12px;color:#92929c;padding:4px 6px 4px 2px;margin:-4px 0 10px;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-back:hover{color:var(--ink)}
.rh-pick img{width:100%;max-height:220px;object-fit:cover;border-radius:10px;display:block;margin-bottom:12px}
.rh-kind{display:block;font:500 10px var(--mono,ui-monospace,monospace);letter-spacing:.7px;text-transform:uppercase;color:#ff9fc8;margin-bottom:6px}
.rh-pick-big{display:block;font-size:30px;font-weight:500;line-height:1.05;letter-spacing:-.8px;margin-bottom:6px}
.rh-pick h3{font-weight:500;font-size:16px;line-height:1.35;margin:0 0 6px}
.rh-pick p{margin:0 0 10px;font-size:13.5px;line-height:1.55;color:#c6c6ce}
.rh-src{display:block;font:11px var(--mono,ui-monospace,monospace);color:#92929c;text-decoration:none;margin-bottom:14px}
.rh-src:hover{color:var(--ink);text-decoration:underline}
.rh-acts{display:flex;gap:8px;flex-wrap:wrap}
.rh-acts button{font-size:12.5px;padding:7px 11px;border-radius:8px;border:1px solid #3d3b39;color:#c6c6ce}
.rh-acts button:hover:not(:disabled){background:var(--hover);color:var(--ink)}
.rh-acts button:disabled{opacity:.45;cursor:default}
.rh-acts .keep{border-color:#6a4a28;color:#f5b47a}
.rh-acts .kept{border-color:#2f5149;color:#86d6c6}
.rh-ask{display:flex;align-items:flex-end;gap:8px;margin:0 12px 12px;padding:8px 8px 8px 12px;border:1px solid #363431;border-radius:14px;background:#1d1c1b;transition:border-color .2s ease}
.rh-ask:focus-within{border-color:#7a4a61}
.rh-ask textarea{flex:1;resize:none;font-size:13.5px;line-height:1.45;padding:4px 0;max-height:120px;color:var(--ink)}
.rh-ask textarea::placeholder{color:#7c7c86}
.rh-ask button{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ff8fbf;color:#1a1716;flex-shrink:0}
.rh-ask button:hover{background:#ffe27d}
.rh-ask svg{width:15px;height:15px;stroke-width:2}
.rh-ask:has(textarea:disabled){opacity:.6}
/* A rabbit hole in Threads */
.thread-dot.rabbit{width:16px;height:11px;flex-basis:16px;border-radius:50%;border:2px solid transparent;background:radial-gradient(ellipse at 50% 75%,#000 40%,#2a1820 100%) padding-box,linear-gradient(#ffd0e4,#ff8fbf 50%,#c45a8a) border-box;box-shadow:inset 0 1.5px 1.5px rgba(0,0,0,.9),0 1.5px 0 #7e3a59,0 2.5px 2px rgba(0,0,0,.45);box-sizing:border-box;align-self:center}
.thread-card.rabbit{background:linear-gradient(135deg,rgba(255,143,191,.09),rgba(255,217,90,.05) 45%,rgba(124,198,245,.05) 80%),#1c1b1a;border-color:#4a3340}
.thread-card.rabbit:hover{background:linear-gradient(135deg,rgba(255,143,191,.13),rgba(255,217,90,.07) 45%,rgba(124,198,245,.07) 80%),#23211f;border-color:#6b4458}
.thread-card.rabbit .thread-card-top span:last-child{color:#ffb3d3}
.rh-strip{display:flex;gap:6px}
.rh-strip img{width:52px;height:52px;border-radius:8px;object-fit:cover}
/* Tags: a stop's thread labels, color-coded, on the corner of each card they join */
.rh-tags{position:absolute;left:10px;bottom:-11px;z-index:3;display:flex;gap:4px;max-width:calc(100% + 30px)}
.rh-tag{display:inline-block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 10.5px/1 var(--mono,ui-monospace,monospace);color:var(--c,#b5b5be);background:#181716;border:1px solid color-mix(in srgb,var(--c,#7d7880) 45%,transparent);box-shadow:inset 0 0 0 20px color-mix(in srgb,var(--c,#7d7880) 12%,transparent);padding:5px 8px;border-radius:20px}
.rh-tag.more{--c:#8a8a96}
.rh-card .rh-tag[data-tag]:hover{border-color:var(--c)}
/* A card's preview */
.rh{position:relative}
.rh-modal-layer{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:28px;background:rgba(8,8,11,.62);backdrop-filter:blur(3px)}
.rh-modal{position:relative;width:min(600px,100%);max-height:100%;overflow-y:auto;scrollbar-width:none;background:#191817;border:1px solid #363431;border-radius:16px;box-shadow:0 30px 90px rgba(0,0,0,.6)}
.rh-modal::-webkit-scrollbar{display:none}
.rh-modal-x{position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;border-radius:50%;background:rgba(20,20,25,.8);color:#d0d0d8;font-size:19px;line-height:1}
.rh-modal-x:hover{background:#2a2a32;color:#fff}
.rh-modal-hero{position:relative;height:240px;background:#111}
.rh-modal-hero img{width:100%;height:100%;object-fit:cover;display:block;border-radius:16px 16px 0 0}
.rh-modal-hero small{position:absolute;right:10px;bottom:8px;font:10.5px var(--mono,ui-monospace,monospace);color:#ddd;background:rgba(0,0,0,.55);padding:3px 7px;border-radius:6px}
.rh-modal-body{padding:18px 22px 20px}
.rh-modal-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px;padding-right:30px}
.rh-modal-meta .rh-kind{margin:0 4px 0 0}
.rh-modal h2{font-size:21px;font-weight:500;line-height:1.3;letter-spacing:-.3px;margin:0 0 6px}
.rh-modal-lede{margin:0 0 16px;font-size:14.5px;line-height:1.55;color:#d2d2da}
.rh-article{border:1px solid #302e2c;background:#1e1d1b;border-radius:12px;padding:14px 16px;margin-bottom:14px;display:flex;flex-direction:column;gap:8px}
.rh-article-head{display:flex;gap:10px;align-items:baseline;font:11px var(--mono,ui-monospace,monospace);color:#8d8d97}
.rh-article-head b{font-weight:500;color:#ff8fbf}
.rh-article h3{margin:0;font-weight:500;font-size:15px;line-height:1.35}
.rh-article p{margin:0;font-size:13.5px;line-height:1.6;color:#c6c6ce}
.rh-article p.lead{color:#a9a9b3}
.rh-article-img{width:100%;max-height:180px;object-fit:cover;border-radius:8px}
.rh-article-none{color:#8d8d97!important}
.rh-skel{height:9px;border-radius:5px;background:linear-gradient(90deg,#26262d,#30303a,#26262d);background-size:200% 100%;animation:rhskel 1.3s ease-in-out infinite}
@keyframes rhskel{to{background-position:-200% 0}}
.rh-modal-ask{display:flex;align-items:flex-end;gap:8px;padding:8px 8px 8px 12px;border:1px solid #363431;border-radius:12px;background:#1d1c1b;margin-bottom:12px}
.rh-modal-ask:focus-within{border-color:#7a4a61}
.rh-modal-ask textarea{flex:1;resize:none;font-size:13.5px;line-height:1.45;padding:4px 0;color:var(--ink)}
.rh-modal-ask textarea::placeholder{color:#7c7c86}
.rh-modal-ask button{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ff8fbf;color:#1a1716;flex-shrink:0}
.rh-modal-ask button:disabled{opacity:.4}
.rh-modal-ask svg{width:15px;height:15px;stroke-width:2}
.rh-modal-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rh-modal-acts span{flex:1}
.rh-modal-acts button{font-size:12.5px;padding:8px 12px;border-radius:9px;border:1px solid #3d3b39;color:#c6c6ce}
.rh-modal-acts button:hover:not(:disabled){background:var(--hover);color:var(--ink)}
.rh-modal-acts button:disabled{opacity:.45}
.rh-modal-acts .keep{border-color:#6a4a28;color:#f5b47a}
.rh-modal-acts .kept{border-color:#2f5149;color:#86d6c6}
.rh-modal-acts .open{background:#ececf0;border-color:#ececf0;color:#161615;font-weight:500}
.rh-modal-acts .open:hover{background:#fff!important;color:#161615!important}
@media(max-width:900px){.rh{flex-direction:column}.rh-pane{width:auto;max-height:44%;border-left:0;border-top:1px solid #2a2927}}
.rh-links{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}
.rh-links path{fill:none;stroke:var(--c,#8f8a8c);stroke-opacity:.3;stroke-width:1.6;stroke-linecap:round;transition:stroke-opacity .2s ease,stroke-width .2s ease}
.rh-links path.hot{stroke-opacity:1;stroke-width:2.2}
.rh-links path.cross{--c:#7d7880}
.rh-links path.cross{stroke-dasharray:6 6}
.rh-links circle{fill:var(--c,#8f8a8c);opacity:.8}
.rh-label{position:absolute;transform:translate(-50%,-50%);font:500 10.5px var(--mono,ui-monospace,monospace);color:#ffd2e4;background:#1b1a22;border:1px solid #4f3a44;border-radius:20px;padding:2px 8px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .4s ease}
.rh-label.show{opacity:1}
.rh-card{position:absolute;padding:0;text-align:left;color:#ececf0;border-radius:12px;background:#1d1c1b;isolation:isolate;border:1px solid #3d3b39;box-shadow:0 14px 34px rgba(0,0,0,.45);overflow:visible;cursor:pointer;transition:box-shadow .2s ease,filter .25s ease}
.rh-in{position:absolute;inset:0;border-radius:11px;overflow:hidden;background:#1d1c1b}
.rh-card:hover{box-shadow:0 18px 44px rgba(0,0,0,.55),0 0 0 1px #6b5a63}
.rh-card::after{content:"";position:absolute;left:50%;top:6px;z-index:2;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffd0e3,#ff6fa8);transform:translateX(-50%);box-shadow:0 2px 4px rgba(0,0,0,.5)}
.rh-badge{position:absolute;top:8px;right:8px;z-index:3;width:20px;height:20px;border-radius:50%;background:#f28c3a;color:#2a1405;font:600 11px var(--sans,sans-serif);display:none;place-items:center}
.rh-card.kept .rh-badge{display:grid}
/* Threads always sit beneath the cards (Safari can otherwise draw them on top); a card you point at lifts. */
.rh-links{z-index:0}
.rh-card,.rh-door{z-index:1}
.rh-card:hover{z-index:3}
.rh-card.near{z-index:2;box-shadow:0 0 0 2px var(--ring,#ffd95a),0 18px 44px rgba(0,0,0,.55)}
.rh-card.sel{box-shadow:0 0 0 2px #ff8fbf,0 18px 44px rgba(0,0,0,.55)}
.rh-in>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
.rh-cap{position:absolute;left:0;right:0;bottom:0;padding:24px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.85));font-size:12.5px;line-height:1.35}
.rh-cap b{display:block;font-weight:500;color:#fff}
.rh-cap span{display:block;color:#d4d4dc;font-size:11.5px;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rh-cap small,.rh-line small,.rh-big small,.rh-alt small{display:block;font:10.5px var(--mono,ui-monospace,monospace);color:#9a9aa4;margin-top:4px}
.rh-alt{display:none;padding:14px;height:100%;flex-direction:column;gap:6px}
.rh-alt b{font-weight:500;font-size:14px}
.rh-alt p{margin:0;font-size:12.5px;color:#c6c6ce;line-height:1.45}
.rh-card.noimg .rh-in>img,.rh-card.noimg .rh-cap,.rh-card.noimg .rh-play{display:none}
.rh-card.noimg .rh-alt{display:flex}
.rh-play{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92)}
.rh-play::after{content:"";position:absolute;left:15px;top:11px;border-left:12px solid #111;border-top:9px solid transparent;border-bottom:9px solid transparent}
.rh-line{padding:16px 16px 12px;display:flex;flex-direction:column;gap:6px;height:100%;border-left:3px solid #ff8fbf}
.rh-line h4{margin:0;font-weight:500;font-size:13px;color:#b9b9c2}
.rh-line p{margin:0;font:italic 400 14.5px/1.45 'Lora',Georgia,serif;color:#ececf0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rh-paper{position:absolute;inset:0;background:#efe9dc;color:#2a261f;padding:14px 15px;display:flex;flex-direction:column;gap:7px}
.rh-paper .rh-venue{font:500 9.5px var(--mono,ui-monospace,monospace);letter-spacing:.5px;text-transform:uppercase;color:#7a6f5c}
.rh-paper h4{margin:0;font:500 14px/1.3 'Lora',Georgia,serif}
.rh-paper p{margin:0;font-size:11.5px;color:#5e5646;line-height:1.4;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rh-ln{height:5px;border-radius:3px;background:#d8d0bf}
.rh-thumb{width:100%;height:88px;object-fit:cover;border-radius:6px;max-width:none;flex-shrink:0}
.rh-big{padding:14px 16px;display:flex;flex-direction:column;justify-content:center;height:100%;gap:4px}
.rh-big strong{font:500 28px/1.05 var(--sans,sans-serif);letter-spacing:-.8px}
.rh-big span{font-size:12.5px;color:#c6c6ce;line-height:1.4}
.rh-post{padding:12px 14px;display:flex;flex-direction:column;gap:6px;height:100%}
.rh-post .rh-sub{font:500 10.5px var(--mono,ui-monospace,monospace);color:#ff8f5a}
.rh-post h4{margin:0;font-weight:500;font-size:13.5px;line-height:1.3}
.rh-post p{margin:0;font-size:12.5px;color:#c6c6ce;line-height:1.45;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rh-door{--d:#ff8fbf;--dt:rgba(255,143,191,.06);position:absolute;width:250px;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 12px;border-radius:14px;background:#1d1c1b;border:1px solid color-mix(in srgb,var(--d) 55%,transparent);color:#ececf0;box-shadow:0 12px 30px rgba(0,0,0,.4);text-align:left;font-size:13px;line-height:1.3;transition:background .2s ease,box-shadow .2s ease}
.rh-door:hover{background:#24221f;box-shadow:0 0 0 6px var(--dt),0 12px 30px rgba(0,0,0,.4)}
.rh-door small{display:block;font:500 10px var(--mono,ui-monospace,monospace);letter-spacing:.6px;text-transform:uppercase;color:var(--d);margin-bottom:2px}
.rh-door i{width:30px;height:30px;border-radius:50%;flex-shrink:0;background:radial-gradient(circle at 50% 55%,#09090b 40%,var(--d) 44%,var(--d) 58%,transparent 61%)}
.rh-door.ring::before{content:"";position:absolute;inset:-1px;border-radius:14px;border:1px solid var(--d);animation:rhring 2.4s ease-out 3;pointer-events:none}
@keyframes rhring{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.rh-world.glide{transition:none}.rh-door.ring::before,.rh-slip i,.rh-chip i,.rh-steps li.on i,.rh-skel{animation:none}}
.rh-card[data-tags] .rh-cap,.rh-card[data-tags] .rh-line,.rh-card[data-tags] .rh-big,.rh-card[data-tags] .rh-post,.rh-card[data-tags] .rh-alt,.rh-card[data-tags] .rh-paper{padding-bottom:20px}
/* A mode's art spans the top of its description (dist/rabbit-hole/) */
.mode-art{display:block;width:calc(100% + 16px);max-width:none;aspect-ratio:1200/312;object-fit:contain;margin:-4px -6px 12px -10px}

/* Rabbit hole colors, from its art: pink (the hat), butter yellow (the road), sky blue (the signpost), mint */
.rh-door[data-door$=":sideways"],.rh-next button[data-kind="sideways"]{--d:#ffd95a;--dt:rgba(255,217,90,.07)}
.rh-door[data-door$=":wild"],.rh-next button[data-kind="wild"]{--d:#7cc6f5;--dt:rgba(124,198,245,.07)}
.rh-door[data-door$=":sideways"] i{background:#fff4d6 url(rabbit-hole/magnifying_glass.png) 52% 50%/74% no-repeat;box-shadow:0 0 0 2px var(--d)}
.rh-door.used,.rh-next button.used{--d:#7fdcae;--dt:transparent}
.rh-door.used{opacity:.8}
.rh-next button.used{color:#b5b3ae}
.rh-next small i{display:inline-block;width:15px;height:15px;vertical-align:-3px;margin-right:5px;background:url(rabbit-hole/magnifying_glass.png) center/contain no-repeat}
.rh-chip{border-color:rgba(255,217,90,.35);box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 6px rgba(255,217,90,.05)}
.rh-chip small{color:#ffd95a}
.rh-chip i{background:#ff8fbf}
.rh-slip i{background:linear-gradient(90deg,transparent,#ff8fbf,#ffd95a,transparent)}
.rh-steps li.done i{border-color:#7fdcae;background:#7fdcae}
.rh-steps em{color:#ffd95a}
.rh-ask button,.rh-modal-ask button{background:#ffd95a;color:#1a1716}
.rh-ask button:hover,.rh-modal-ask button:hover{background:#ffe58f}
.rh-card.sel{box-shadow:0 0 0 2px #ffd95a,0 18px 44px rgba(0,0,0,.55)}
/* Rabbit hole in the composer: the hat, and the art's pink, yellow and blue around the prompt */
.mode-ico{width:17px;height:17px;object-fit:contain;flex-shrink:0}
.mode-detail h3 .mode-ico{width:19px;height:19px}
.mode-pill.rabbit{background:rgba(255,217,90,.1);color:#ffe9a8;border-color:rgba(255,217,90,.3)}
.mode-pill.rabbit:hover{background:rgba(255,217,90,.16)}
.composer:has(.mode-pill.rabbit)::before{background:conic-gradient(from var(--composer-angle),#ff8fbf,#ffd95a,#7cc6f5,#ff8fbf)}
.home .composer:has(.mode-pill.rabbit){box-shadow:-16px 0 34px -12px #ff8fbf38,16px 0 34px -12px #7cc6f533,0 12px 30px -12px #ffd95a2e}
.home .composer:has(.mode-pill.rabbit):focus-within{box-shadow:-16px 0 40px -8px #ff8fbf5c,16px 0 40px -8px #7cc6f552,0 12px 34px -8px #ffd95a45}
/* The mode menu's description: tighter, with Use under the words */
.mode-detail-copy{margin-bottom:8px}
.mode-popover .mode-use{align-self:flex-start;margin-top:0}
/* Make (make.js): mint, beside Send Raven ahead's orange */
.thread-make{display:inline-flex;align-items:center;gap:7px;font-size:13px;padding:8px 13px;border-radius:10px;color:#9fe6c3;border:1px solid rgba(127,220,174,.55);background:transparent}
.thread-make:hover{background:rgba(127,220,174,.1);color:#bff0d6}
.thread-make svg,.make-kind-pill svg,.make-sheet .primary svg,.rh-make svg{width:15px;height:15px}
.make-sheet{width:min(520px,100%)}
.make-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.make-kind{position:relative;display:block;margin:0!important;cursor:pointer}
.make-kind input{position:absolute;opacity:0;pointer-events:none}
.make-kind>span{display:flex;flex-direction:column;gap:3px;height:100%;padding:11px 12px;border-radius:11px;border:1px solid #3a3a37;transition:border-color .15s ease,background-color .15s ease}
.make-kind b{font-weight:500;font-size:13.5px;color:var(--ink)}
.make-kind small{font-size:12px;color:var(--muted);line-height:1.4}
.make-kind:hover>span{border-color:#55554f}
.make-kind input:checked+span{border-color:rgba(127,220,174,.7);background:rgba(127,220,174,.07)}
.make-kind input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.make-kind.muted>span{opacity:.45}
.make-own{margin-top:16px!important}
.make-own textarea{height:auto!important;resize:none}
.make-sheet .primary{display:inline-flex;align-items:center;gap:7px}
.make-view{max-width:760px;margin:0 auto;padding:12px 32px 80px}
.make-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.make-kind-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:20px;color:#9fe6c3;border:1px solid rgba(127,220,174,.45)}
.make-when{font-size:12px;color:var(--muted)}
.make-tools{margin-left:auto;display:flex;gap:6px}
.make-tools button{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:6px 10px;border-radius:8px;border:1px solid #3a3a37;color:#cfcfca}
.make-tools button:hover{background:var(--hover);color:var(--ink)}
.make-tools svg{width:14px;height:14px}
.make-title{font-family:'Lora',Georgia,serif;font-weight:500;font-size:32px;line-height:1.25;letter-spacing:-.5px;margin:4px 0 20px}
.make-doc{font-size:15.5px;line-height:1.75;color:#d9d9d4}
.make-doc h1,.make-doc h2,.make-doc h3{font-weight:500;color:var(--ink);line-height:1.35}
.make-doc h1{font-size:24px;margin:28px 0 10px}
.make-doc h2{font-size:19px;margin:28px 0 8px}
.make-doc h3{font-size:16px;margin:22px 0 6px}
.make-doc p{margin:0 0 14px}
.make-doc ul,.make-doc ol{padding-left:22px;margin:0 0 14px}
.make-doc li{margin:5px 0}
.make-doc li.make-check{list-style:none;position:relative;margin-left:-4px;padding-left:26px}
.make-doc li.make-check::before{content:"";position:absolute;left:0;top:7px;width:14px;height:14px;border-radius:4px;border:1.5px solid #7d7d77}
.make-doc li.make-check.done::before{background:#7fdcae;border-color:#7fdcae}
.make-doc blockquote{margin:0 0 14px;padding:4px 16px;border-left:3px solid rgba(127,220,174,.5);color:#bdbdb7}
.make-doc table{width:100%;border-collapse:collapse;margin:6px 0 18px;font-size:14px;line-height:1.5}
.make-doc th,.make-doc td{text-align:left;padding:8px 10px;border-bottom:1px solid #33332f;vertical-align:top}
.make-doc th{font-weight:500;color:var(--ink);border-bottom-color:#4a4a45}
.make-doc code{font-size:.9em;background:#262624;padding:1px 5px;border-radius:5px}
.make-doc a:not(.cite){color:#9fe6c3}
.make-doc a.cite{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;margin:0 1px;border-radius:9px;font:500 10.5px/1 var(--mono,ui-monospace,monospace);color:#9fe6c3;background:rgba(127,220,174,.12);text-decoration:none;vertical-align:2px}
.make-doc a.cite:hover{background:rgba(127,220,174,.26);color:#d4f6e4}
.make-doc.writing>:last-child::after{content:"";display:inline-block;width:7px;height:15px;margin-left:3px;vertical-align:-2px;background:#7fdcae;animation:rhcaret 1s steps(2,start) infinite}
.make-skel{display:block;height:11px;margin:10px 0;border-radius:6px;background:linear-gradient(90deg,#262624,#30302d,#262624);background-size:200% 100%;animation:rhskel 1.3s ease-in-out infinite}
.make-sources{margin-top:34px;padding-top:18px;border-top:1px solid #2f2f2c}
.make-sources h2{font-size:12px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.make-sources ol{margin:0;padding-left:24px;font-size:13.5px;line-height:1.5;color:#bdbdb7}
.make-sources li{margin:6px 0}
.make-sources li::marker{font-family:var(--mono,ui-monospace,monospace);font-size:11.5px;color:#9fe6c3}
.make-sources a{color:var(--ink);text-decoration:none}
.make-sources a:hover{text-decoration:underline}
.make-sources small{margin-left:8px;font-size:12px;color:var(--muted)}
.make-change{display:flex;align-items:flex-end;gap:8px;margin-top:26px;padding:9px 9px 9px 14px;border:1px solid #3a3a37;border-radius:14px;background:#1f1f1d}
.make-change:focus-within{border-color:rgba(127,220,174,.55)}
.make-change textarea{flex:1;resize:none;font-size:14px;line-height:1.45;padding:4px 0}
.make-change button{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#7fdcae;color:#14231b;flex-shrink:0}
.make-change svg{width:15px;height:15px}
.make-undo{margin-top:10px;font-size:12.5px;color:var(--muted);text-decoration:underline}
.make-err{margin-top:18px;color:#e8b4a0;font-size:14px}
.make-err button{margin-left:8px;color:var(--ink);text-decoration:underline}
.make-edit{width:100%;min-height:320px;font:14px/1.6 var(--mono,ui-monospace,monospace);color:var(--ink);background:#1d1d1b;border:1px solid #3a3a37!important;border-radius:12px;padding:14px;resize:vertical}
.make-edit-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.make-edit-acts button{font-size:13px;padding:8px 13px;border-radius:9px;border:1px solid #3a3a37}
.rh-make{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px;border-radius:10px;border:1px solid rgba(127,220,174,.45);color:#9fe6c3;margin-bottom:8px}
.rh-make:hover{background:rgba(127,220,174,.08)}
.rh-make b{display:block;font-weight:500;font-size:13px;color:var(--ink)}
.rh-make small{display:block;font-size:11.5px;color:#9c9a96}
@media(max-width:600px){.make-view{padding:8px 18px 60px}.make-title{font-size:26px}.make-kinds{grid-template-columns:1fr}.make-tools{margin-left:0}}
@media(prefers-reduced-motion:reduce){.make-skel,.make-doc.writing>:last-child::after{animation:none}}
.thread-make.small{padding:5px 11px;font-size:12px;border-radius:9px}
.made-empty p{margin:4px 0 12px;font-size:13.5px;color:var(--muted);line-height:1.5}
.made-start{display:flex;flex-wrap:wrap;gap:8px}
.made-start button{font-size:13px;padding:7px 12px;border-radius:9px;border:1px solid rgba(127,220,174,.45);color:#bff0d6}
.made-start button:hover{background:rgba(127,220,174,.1)}
.chat-make{display:inline-flex;align-items:center;gap:5px;color:#9fe6c3!important}
.chat-make svg{width:13px;height:13px}
.make-already{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.make-already span{font-size:12px;color:var(--muted);margin-right:2px}
.make-already button{font-size:12.5px;padding:4px 10px;border-radius:20px;border:1px solid #3a3a37;color:var(--ink);max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.make-already button:hover{border-color:rgba(127,220,174,.55)}
/* Second opinion (opinion.js): a card under the answer, colored by how much it agrees */
.opinion{margin:14px 0 6px;padding:13px 15px;border-radius:12px;border:1px solid #33332f;background:#1c1c1a}
.opinion-head{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.opinion-head b{font-weight:500;color:var(--ink)}
.opinion-head .provider-logo{width:15px;height:15px}
.opinion-verdict{margin-left:auto;font-size:11.5px;font-weight:500;padding:3px 9px;border-radius:20px;border:1px solid}
.opinion-verdict.agree{color:#9fe6c3;border-color:rgba(127,220,174,.45)}
.opinion-verdict.mostly{color:#ffe08a;border-color:rgba(255,217,90,.45)}
.opinion-verdict.differ{color:#ffb3d3;border-color:rgba(255,143,191,.5)}
.opinion-sum{margin:9px 0 0;font-size:14px;line-height:1.55;color:var(--ink)}
.opinion-points{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.opinion-points li{display:flex;gap:10px;font-size:13.5px;line-height:1.5;color:#cfcfca}
.opinion-points b{flex-shrink:0;width:54px;font:500 10.5px/2 var(--mono,ui-monospace,monospace);letter-spacing:.5px;text-transform:uppercase}
.opinion-points .agree b{color:#9fe6c3}.opinion-points .differ b{color:#ffb3d3}.opinion-points .add b{color:#7cc6f5}.opinion-points .check b{color:#ffe08a}
.opinion-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid #2c2c29;font-size:12px;color:#8b8b85}
.opinion-foot .text-btn{margin-left:auto;color:var(--ink);font-size:12.5px}
.opinion-wait{margin:9px 0 0;font-size:13.5px;color:var(--muted);background:linear-gradient(90deg,#8b8b85 0%,#e8e8e2 50%,#8b8b85 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:rhskel 1.6s linear infinite}
.opinion-err{margin:9px 0 0;font-size:13.5px;color:#e8b4a0}
.chat-opinion{font-size:12px}
@media(prefers-reduced-motion:reduce){.opinion-wait{animation:none;color:var(--muted)}}
/* Separate AI for a Space (space-ai.js) */
.space-ai{margin-top:22px;padding-top:18px;border-top:1px solid #33332f}
.space-ai-toggle{display:flex!important;gap:12px;align-items:flex-start;margin:0!important;cursor:pointer}
.space-ai-toggle input{width:16px!important;height:16px;margin:2px 0 0!important;padding:0!important;flex-shrink:0;accent-color:#7fdcae}
.space-ai-toggle b{display:block;font-weight:500;font-size:13px;color:var(--ink)}
.space-ai-toggle small{display:block;margin-top:3px;font-size:12px;line-height:1.5;color:var(--muted)}
.space-ai-model{margin-top:14px!important}
.space-ai-model select{display:block;width:100%;margin-top:8px;padding:10px 12px;border-radius:8px;border:1px solid #454e3c;background:transparent;color:var(--ink)}
.space-ai-model[hidden]{display:none!important}
.space-ai-note{margin:0 0 14px;padding:10px 12px;border-radius:10px;border:1px solid #33332f;background:#1c1c1a;font-size:12.5px;line-height:1.5;color:#cfcdc8}
.space-ai-note b{font-weight:500;color:var(--ink)}
.space-ai-note .text-btn{display:inline;margin-left:4px;text-decoration:underline}

/* Watches (watch.js): blue, Raven's eye on things. */
.watch-since{margin-top:22px;border-radius:14px;padding:14px 16px 12px;border:1px solid rgba(124,198,245,.4);background:linear-gradient(180deg,rgba(124,198,245,.08),rgba(124,198,245,.02))}
.watch-since-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.2px;color:#a9dbfa}
.watch-since-head svg{width:16px;height:16px}
.watch-since-head .text-btn{margin-left:auto;font-weight:500}
.watch-since ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.watch-since li{padding-top:10px;border-top:1px solid rgba(124,198,245,.16)}
.watch-since li:first-child{padding-top:0;border-top:0}
.watch-since strong{font-weight:500;font-size:15px;color:var(--ink)}
.watch-since p{margin:4px 0 0;font-size:13.5px;line-height:1.55;color:#cfcfcf;max-width:64ch}
.watch-since-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.watch-since-foot small{font-size:11.5px;color:var(--muted)}
.watch-since-foot .ahead-sources{margin:0}
.watch-keep{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#d0d0d0;padding:4px 9px;border-radius:7px;border:1px solid #3a3a3a}
.watch-keep.used{color:#86d6c6;border-color:#2f5149;pointer-events:none}
.watch-keep svg{width:12px;height:12px}
.watch-since-more{margin-top:8px}
.watch-empty p{margin:4px 0 12px;font-size:13.5px;color:var(--muted);line-height:1.5;max-width:62ch}
.watch-start{display:flex;flex-wrap:wrap;gap:8px}
.watch-start button{display:inline-flex;align-items:center;gap:7px;font-size:13px;padding:7px 12px;border-radius:9px;border:1px solid rgba(124,198,245,.45);color:#c4e6fb}
.watch-start button:hover{background:rgba(124,198,245,.1)}
.watch-start svg{width:15px;height:15px}
.watch-suggest{display:flex;flex-direction:column;gap:4px}
.watch-suggest button{display:flex;align-items:center;gap:9px;text-align:left;padding:8px 10px;border-radius:8px;font-size:13px;color:#d6d6d6}
.watch-suggest svg{width:15px;height:15px;color:#7cc6f5}
.watch-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.watch-row{padding:12px 14px;border-radius:12px;background:#1d1d1d;border:1px solid #2e2e2e}
.watch-row.paused,.watch-row.skipped{opacity:.75}
.watch-row-head{display:flex;align-items:center;gap:9px;min-width:0}
.watch-row-head strong{font-weight:500;font-size:14px;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-kind-tag{flex-shrink:0;font-size:10.5px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:#7cc6f5;border:1px solid rgba(124,198,245,.4);border-radius:5px;padding:1px 6px}
.watch-row-acts{margin-left:auto;display:flex;align-items:center;gap:4px;flex-shrink:0}
.watch-row-acts .icon-btn{width:28px;height:26px;font-size:11px;letter-spacing:1px}
.watch-url{display:block;margin-top:3px;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-answer{margin:7px 0 0;font-size:13.5px;line-height:1.55;color:#d2d2d2}
.watch-price{margin:6px 0 0;font-size:13px;color:#cfcfcf}
.watch-price b{font-weight:600;color:var(--ink)}
.watch-latest{display:flex;gap:10px;align-items:baseline;margin-top:9px;padding:7px 10px;border-radius:8px;background:#232323;font-size:12.5px}
.watch-latest b{font-weight:500;color:#e6e6e6}
.watch-latest span{margin-left:auto;font-size:11px;color:var(--muted);flex-shrink:0}
.watch-latest.new{background:rgba(124,198,245,.1);box-shadow:inset 2px 0 0 #7cc6f5}
.watch-row-foot{display:flex;align-items:center;gap:6px;margin-top:9px;font-size:11.5px;color:var(--muted)}
.watch-row-foot.warn{color:#e8c76a}
.watch-row-foot .ahead-spin{width:10px;height:10px}
.watch-note{display:block;margin-top:4px;font-size:11.5px;color:#8a8a8a}
.watch-history{margin-top:8px;font-size:12px;color:var(--muted)}
.watch-history summary{cursor:pointer;width:max-content}
.watch-history ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.watch-history li{font-size:12.5px;line-height:1.5;color:#c8c8c8}
.watch-history li b{font-weight:500;color:#e2e2e2}
.watch-history li small{margin-left:8px;color:var(--muted)}
.watch-history .ahead-sources{margin:4px 0 0}
.watch-new{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#7cc6f5;box-shadow:0 0 0 3px rgba(124,198,245,.18);flex-shrink:0}
.thread-link .watch-new+small,.thread-link small+.watch-new{margin-left:8px}
.watch-home{display:flex;flex-direction:column;gap:6px}
.watch-home-row{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 13px;border-radius:11px;border:1px solid rgba(124,198,245,.25);background:rgba(124,198,245,.04)}
.watch-home-row:hover{background:rgba(124,198,245,.09)}
.watch-home-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:rgba(124,198,245,.14);color:#a9dbfa;flex-shrink:0}
.watch-home-icon svg{width:16px;height:16px}
.watch-home-row strong{display:block;font-weight:500;font-size:13.5px;color:var(--ink)}
.watch-home-row small{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:11.5px;color:var(--muted)}
.watch-form .watch-kinds{display:flex;gap:8px;margin-top:18px}
.watch-kind{flex:1;margin:0!important;cursor:pointer}
.watch-kind input{position:absolute;opacity:0;width:1px!important;height:1px;pointer-events:none}
.watch-kind span{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 8px;border-radius:9px;border:1px solid #3c3c3c;font-size:13px;color:#cfcfcf}
.watch-kind span svg{width:15px;height:15px}
.watch-kind input:checked+span{border-color:#7cc6f5;color:#d8effd;background:rgba(124,198,245,.1)}
.watch-kind input:focus-visible+span{outline:2px solid #7cc6f5;outline-offset:2px}
.watch-form .watch-target[hidden]{display:none}
.watch-form select{display:block;width:100%;margin-top:8px;padding:10px 12px;border-radius:8px;border:1px solid #454e3c;background:transparent;color:var(--ink)}
.watch-form .watch-fine{margin:14px 0 0;font-size:12px;line-height:1.5}
.watch-menu-gap{display:inline-block;width:19px}
.chat-watch svg{width:14px;height:14px}
@media(max-width:600px){.watch-form .watch-kinds{flex-direction:column}.watch-keep{margin-left:0}.watch-row-head strong{white-space:normal}}

/* Sharing threads and Made documents (share.js, share-threads.js). */
.thread-share.on,.make-share.on{color:#9fe6c3;border-color:rgba(127,220,174,.45)}
.make-tools button svg{width:14px;height:14px}
.share-talk{display:flex!important;gap:12px;align-items:flex-start;margin:16px 0 0!important;padding:12px 14px;border-radius:12px;border:1px solid #33332f;cursor:pointer}
.share-talk input{width:16px!important;height:16px;margin:2px 0 0!important;padding:0!important;flex-shrink:0;accent-color:#7fdcae}
.share-talk b{display:block;font-weight:500;font-size:13px;color:var(--ink)}
.share-talk small{display:block;margin-top:3px;font-size:12px;line-height:1.5;color:var(--muted)}
.watch-foot{margin:12px 2px 0;font-size:12px;line-height:1.5;color:var(--muted)}
.watch-foot .text-btn{display:inline;margin-left:4px;text-decoration:underline;font-size:12px}
.make-export-menu{width:280px}
.make-export-menu button{align-items:flex-start}
.make-export-menu b{display:block;font-weight:500;font-size:13px;color:var(--ink)}
.make-export-menu small{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}

/* Answers (answers.js): a reading serif for what you read, sans for the app around it. */
.response-prose{font-family:'Lora',Georgia,serif;font-size:16.5px;line-height:1.65;color:#e4e4de}
.response-prose h2,.response-prose h3,.response-prose h4,.response-prose h5,.response-prose h6{font-family:'Lora',Georgia,serif;font-weight:600;letter-spacing:-.1px}
.response-prose h2{font-size:19px}.response-prose h3{font-size:17px}
.response-prose .response-table,.response-prose .response-code,.response-prose code{font-family:'DM Sans',sans-serif}
.response-prose .response-code pre code,.response-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.make-doc{font-family:'Lora',Georgia,serif;font-size:16.5px;line-height:1.65;color:#e4e4de}
.make-doc h1,.make-doc h2,.make-doc h3,.make-doc h4{font-family:'Lora',Georgia,serif;font-weight:600}
.make-doc table,.make-doc .response-table{font-family:'DM Sans',sans-serif}
@media(max-width:650px){.response-prose,.make-doc{font-size:16px;line-height:1.62}}

.cite-pill{display:inline-flex;align-items:center;gap:3px;vertical-align:1px;margin-left:2px;padding:1px 6px 2px;border-radius:6px;background:#ffffff12;color:#b9b9b2;font:500 10.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.1px;cursor:pointer;white-space:nowrap}
.cite-pill span{color:#8d8d86}
.cite-pill:hover,.cite-pill:focus-visible{background:#ffffff22;color:#ececE6}
.site-badge{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;flex-shrink:0;font:600 10px/1 'DM Sans',sans-serif;color:#fff;background:hsl(var(--h) 38% 38%)}

.cite-card{position:fixed;z-index:60;width:340px;max-height:min(420px,70vh);overflow:auto;padding:6px;border-radius:14px;background:#1f1f1e;border:1px solid #393936;box-shadow:0 18px 50px #0009;scrollbar-width:none}
.cite-card ul,.sources-body ul{list-style:none;margin:0;padding:0}
.src-row{padding:11px 12px;border-radius:10px}
.cite-card .src-row+.src-row,.sources-body .src-row+.src-row{border-top:1px solid #2c2c2a}
.src-head{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--muted)}
.src-site{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.src-n{margin-left:auto;font:600 10.5px ui-monospace,Menlo,monospace;color:#7d7d77}
.src-title{display:block;margin-top:6px;font-size:13.5px;font-weight:500;line-height:1.4;color:var(--ink);text-decoration:none}
.src-title:hover{text-decoration:underline;text-underline-offset:3px}
.src-snippet{margin:5px 0 0;font-size:12.5px;line-height:1.5;color:#b4b4ad;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.src-skel{display:block;height:9px;margin:5px 0;border-radius:5px;background:#ffffff0d;animation:response-breathe 1.5s ease-in-out infinite}
.src-skel.short{width:62%}
.src-acts{display:flex;gap:6px;margin-top:9px}
.src-acts button{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#d0d0ca;padding:4px 9px;border-radius:7px;border:1px solid #3a3a37}
.src-acts button:hover{background:#ffffff0a}
.src-acts button.used{color:#86d6c6;border-color:#2f5149;pointer-events:none}
.src-acts svg{width:12px;height:12px}

.sources-pane{position:fixed;z-index:40;top:0;right:0;bottom:0;width:360px;display:flex;flex-direction:column;background:#1a1a19;border-left:1px solid #2e2e2c;box-shadow:-20px 0 50px #0006}
.sources-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px;font-size:14px}
.sources-head b{font-weight:600}
.sources-body{flex:1;overflow:auto;padding:0 8px 20px;scrollbar-width:none}
.sources-sheet{position:fixed;inset:0;z-index:60;background:#0000;transition:background .2s}
.sources-sheet.on{background:#0008}
.sources-sheet section{position:absolute;left:0;right:0;bottom:0;max-height:78vh;display:flex;flex-direction:column;border-radius:18px 18px 0 0;background:#1d1d1c;border-top:1px solid #353532;transform:translateY(100%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.sources-sheet.on section{transform:none}
@media(prefers-reduced-motion:reduce){.sources-sheet,.sources-sheet section{transition:none}}

.chat-sources-btn{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 10px 0 6px;border-radius:99px;font-size:11.5px;color:var(--muted)}
.chat-sources-btn:hover{background:#ffffff0a;color:var(--ink)}
.site-stack{display:inline-flex}
.site-stack .site-badge{width:16px;height:16px;font-size:9px;box-shadow:0 0 0 2px var(--bg)}
.site-stack .site-badge+.site-badge{margin-left:-5px}
.chat-actions .chat-more-btn{margin-left:auto}
.chat-actions .chat-more-btn[hidden]{display:none}
.chat-more-btn svg{width:16px;height:16px;stroke-width:2.6}
.answer-menu button svg{width:15px;height:15px}

/* Answers, continued: follow-ups, the running status, room under a new question. */
.answer-next{display:flex;flex-direction:column;margin:18px 0 6px;border-top:1px solid var(--line)}
.next-row{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:12px 4px;border-bottom:1px solid #ffffff08;font-size:14.5px;line-height:1.45;color:#dcd9d2}
.next-row>span:first-child{color:var(--muted);flex-shrink:0;width:16px}
.next-row:hover{color:var(--ink);background:#ffffff05}
.next-row.ahead{color:#f5a15c}
.next-row.ahead svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.next-row.ahead small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.answer-clock{font-variant-numeric:tabular-nums}
.chat-spacer{pointer-events:none}

/* Share: who can open the link, as two rows; Copy link inside the link field. */
.share-access-rows{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.share-access-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:11px 13px;font-size:13px;color:var(--ink)}
.share-access-row+.share-access-row{border-top:1px solid var(--line)}
.share-access-row>svg{width:16px;height:16px;color:var(--muted);flex-shrink:0}
.share-access-row b{display:block;font-weight:500}
.share-access-row small{display:block;margin-top:2px;font-size:12px;line-height:1.45;color:var(--muted)}
.share-access-row span:not(.share-access-check){flex:1;min-width:0}
.share-access-check{width:16px;flex-shrink:0;color:#9fe6c3}
.share-access-check svg{width:16px;height:16px}
.share-access-row[aria-checked="true"]{background:#ffffff06}
.share-link{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 0;border:1px solid var(--line);border-radius:10px;background:#ffffff06}
dialog .share-link input{flex:1;min-width:0;border:0;background:transparent}
.share-link button{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:7px 11px;border-radius:7px;background:var(--ink);color:#1b1a18;font-size:12px;font-weight:550}
.share-link button svg{width:13px;height:13px}

/* Sidebar names fade out at the edge instead of ending in "…". */
.thread-link .thread-link-name,.recents button{text-overflow:clip;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}

/* Settings search (settings.js). */
.settings-search{display:block;width:calc(100% - 8px);margin:0 4px 10px;padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:#ffffff06;font-size:12.5px}
.settings-results{display:flex;flex-direction:column;gap:2px}
.settings-results button{display:block;text-align:left;padding:10px 12px;border-radius:9px}
.settings-results button:hover{background:#ffffff08}
.settings-results small{display:block;font-size:11px;color:var(--muted)}
.settings-results b{display:block;font-weight:500;font-size:13.5px;color:var(--ink);margin-top:1px}
.settings-results span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.settings-found{animation:settings-found 1.6s ease}
@keyframes settings-found{0%,40%{background:#ffffff10}100%{background:transparent}}
@media(max-width:620px){.settings-search{flex:0 0 150px;width:150px;margin:0 4px 0 0}}

/* Deep research while it runs (deep-research.js): what it's searching and reading, then the writing. */
.research-progress{margin:6px 0 22px;padding:12px 14px;border-radius:12px;background:#1d1d1d;border:1px solid #2c2c2c}
.research-progress summary{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:500;color:#e6e6e6;cursor:pointer;list-style:none}
.research-progress summary::-webkit-details-marker{display:none}
.research-progress ol{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.research-progress li{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#9b9b9b;min-width:0}
.research-progress li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.research-progress li svg{width:13px;height:13px;flex:none;color:#7d7d7d}
.research-progress li:last-child{color:#d6d6d6;animation:research-in .35s ease-out}
.research-spin{width:14px;height:14px;border-radius:50%;flex:none;background:conic-gradient(from 0deg,#3fd69a,#b6e35a,#37b8e0,#3fd69a);-webkit-mask:radial-gradient(circle,transparent 4px,#000 4.5px);animation:research-spin 1.1s linear infinite}
@keyframes research-spin{to{transform:rotate(1turn)}}
@keyframes research-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.research-spin,.research-progress li:last-child{animation:none}}

/* Connections (connections-hub.js): a directory of work apps, like an integrations page. */
.hub-page .page-head p{max-width:60ch}
.hub-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0 8px}
.hub-search{display:flex;align-items:center;gap:8px;background:#1d1d1d;border:1px solid #2c2c2c;border-radius:10px;padding:0 10px;height:36px;min-width:220px;flex:1;max-width:340px}
.hub-search svg{width:15px;height:15px;color:#8b8b8b}
.hub-search input{background:none;border:0;outline:0;color:inherit;font:inherit;font-size:13.5px;flex:1;min-width:0}
.hub-cats{display:flex;flex-wrap:wrap;gap:6px}
.hub-cats button{font-size:12.5px;padding:6px 11px;border-radius:99px;color:#a8a8a8;border:1px solid #2c2c2c}
.hub-cats button[aria-pressed="true"]{background:#ececec;color:#141414;border-color:#ececec}
.hub-cats small{opacity:.7}
.hub-group{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#8b8b8b;margin:26px 0 10px}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.hub-card{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:14px;border-radius:12px;background:#1b1b1b;border:1px solid #282828;position:relative;transition:border-color .12s,background .12s}
.hub-card:hover{background:#202020;border-color:#383838}
.hub-card-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.hub-card-text strong{font-size:14px;font-weight:600;color:#ececec}
.hub-card-text span{font-size:12.5px;color:#9b9b9b;line-height:1.4}
.hub-logo{flex:none;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:700;font-size:15px;color:#fff;background:color-mix(in srgb,var(--brand) 85%,#000);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.hub-logo i{display:block;width:56%;height:56%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.hub-logo.image{background:#fff;overflow:hidden}
.hub-logo.image img{width:72%;height:72%;object-fit:contain}
.hub-logo.big{width:52px;height:52px;border-radius:13px;font-size:22px;margin-bottom:10px}
.hub-on{position:absolute;top:12px;right:12px;font-size:11px;color:#7fcf9f;background:rgba(127,207,159,.1);padding:2px 8px;border-radius:99px}
.hub-note{margin-top:22px;font-size:13px;color:#9b9b9b}
.hub-detail h3{font-size:13px;margin:18px 0 6px;color:#d6d6d6}
.hub-points{margin:0;padding-left:18px;display:grid;gap:5px;font-size:13px;color:#b5b5b5}
.hub-tools{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:220px;overflow:auto;scrollbar-width:none}
.hub-tools li{display:flex;flex-direction:column;gap:1px;font-size:12.5px;color:#9b9b9b}
.hub-tools code{font-size:12px;color:#e0e0e0}
.hub-err{min-height:1em;font-size:12.5px;color:#f08a7a;margin:10px 0 0}
/* The active border takes the mode's colours (modes.js sets data-mode on the ask box). */
.composer[data-mode="research"]::before{background:conic-gradient(from var(--composer-angle),#3fd69a,#b6e35a,#37b8e0,#3fd69a)}
.composer[data-mode="rabbit-hole"]::before{background:conic-gradient(from var(--composer-angle),#ff8fbf,#ffd95a,#7cc6f5,#ff8fbf)}
/* The agent's run page (agent-runs.js): Raven's browser live on the left, what it's doing on the right. */
.composer[data-mode="agent"]::before{background:conic-gradient(from var(--composer-angle),#ff9f5a,#ffcf6b,#ff7a8a,#ff9f5a)}
.make-view.agent-make{max-width:1180px}
.agent-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start;margin-top:6px}
.agent-screen{position:relative;border:1px solid #ffffff14;border-radius:14px;overflow:hidden;background:#151517}
.agent-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #ffffff0d;font-size:12px;color:#9b9b9b}
.agent-url{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-dot{flex:none;width:7px;height:7px;border-radius:50%;background:#666}
.agent-screen.live .agent-dot{background:#ff9f5a;animation:response-breathe 1.6s ease-in-out infinite}
#agent-frame{display:block;width:100%;aspect-ratio:1280/800;object-fit:contain;background:#0f0f10;user-select:none}
#agent-frame:not([src]){background:linear-gradient(90deg,#161618,#1d1d20,#161618) 0 0/200% 100%;animation:board-shimmer 1.6s linear infinite}
.agent-screen.theirs{border-color:#ff9f5a88;box-shadow:0 0 0 3px #ff9f5a22}
.agent-screen.theirs #agent-frame{cursor:pointer;outline:none}
.agent-turn{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px 14px;border-top:1px solid #ff9f5a33;background:#ff9f5a0d;font-size:13px;color:#e6e6e6}
.agent-turn p{margin:0;flex:1 1 260px}
.agent-turn .agent-fine{flex-basis:100%;order:3}
.agent-fine{font-size:12px;color:#8f8f95}
.agent-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.agent-state{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:#d6d6d6}
.agent-steps{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:min(62vh,560px);overflow:auto;scrollbar-width:none}
.agent-steps::-webkit-scrollbar{display:none}
.agent-step{display:flex;gap:9px;align-items:flex-start;padding:6px 4px;font-size:12.5px;line-height:1.45;color:#a9a9ae;animation:agent-in .25s ease-out}
.agent-step svg{flex:none;width:14px;height:14px;margin-top:2px;opacity:.75}
.agent-step.note{color:#e2e2e4}
.agent-step.blocked{color:#f0b37a}
.agent-step.change{color:#e2e2e4}
.agent-step.check{color:#7fcf9f}
.agent-step.bad{color:#f08a7a}
@keyframes agent-in{from{opacity:0;transform:translateY(3px)}}
.agent-approval{border:1px solid #ff9f5a55;border-radius:14px;padding:14px;background:#ff9f5a0a}
.agent-approval h2{font-size:14px;margin:0 0 4px;color:#f1f1f1}
.agent-approval>p{margin:0 0 10px;font-size:13px;color:#bdbdc2}
.agent-approval ul,.agent-changes{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.agent-approval li,.agent-changes li{display:flex;gap:10px;align-items:flex-start;font-size:13px}
.agent-approval li div,.agent-changes li div{display:flex;flex-direction:column;gap:2px;min-width:0}
.agent-approval li strong,.agent-changes li strong{font-weight:600;color:#ececec}
.agent-approval li span,.agent-changes li span{color:#c9c9cd;overflow-wrap:anywhere}
.agent-approval s,.agent-changes s{color:#8f8f95}
.agent-kind{flex:none;font-size:10.5px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;padding:2px 7px;border-radius:99px;background:#ffffff12;color:#d6d6d6;margin-top:1px}
.agent-kind.payment,.agent-kind.delete{background:#f08a7a22;color:#f4a294}
.agent-kind.send,.agent-kind.post{background:#7cc6f522;color:#9ed3f7}
.agent-approval .dialog-actions{margin-top:12px}
.agent-result{display:grid;gap:12px;font-size:14px;line-height:1.6;color:#d6d6d6}
.agent-result>p{margin:0}
.agent-verdict{display:flex;align-items:center;gap:8px;font-size:15px}
.agent-verdict svg{width:18px;height:18px}
.agent-result.good .agent-verdict{color:#7fcf9f}
.agent-result.bad .agent-verdict{color:#f08a7a}
.agent-changes{margin-top:4px;border-top:1px solid #ffffff0d;padding-top:12px}
.agent-changes li svg{flex:none;width:15px;height:15px;margin-top:3px}
.agent-changes li.ok svg{color:#7fcf9f}
.agent-changes li.bad svg{color:#f08a7a}
.agent-changes small{font-size:12px;color:#8f8f95}
@media(max-width:900px){.agent-grid{grid-template-columns:1fr}.agent-steps{max-height:none}}
@media(prefers-reduced-motion:reduce){.agent-step{animation:none}.agent-screen.live .agent-dot{animation:none}}
.agent-state .agent-dot{background:#ff9f5a}
.agent-history{border-top:1px solid #ffffff0d;padding-top:10px}
.agent-history summary{cursor:pointer;font-size:13px;color:#9b9b9b;list-style:none}
.agent-history summary::-webkit-details-marker{display:none}
.agent-history summary::before{content:'›';display:inline-block;margin-right:7px;transition:transform .15s}
.agent-history[open] summary::before{transform:rotate(90deg)}
.agent-history .agent-steps{margin-top:8px;max-height:none}
