/* Spiral layout v2: wordmark, top bar, rail pages, orb modes, chat box, floating orb. */
.console-layout.shell{--console-width:0px;--panel-width:0px;
 /* Surfaces step up in lightness; colour is kept for status and the one main action. */
 --ground:#050506;--raise-1:#0c0c0f;--raise-2:#131317;--raise-3:#1a1a1f;
 --line:#1c1c21;--line-strong:#2a2a31;
 --ink:#f3f1f4;--ink-2:#b5afb9;--ink-3:#847e89;
 --ease-out:cubic-bezier(.23,1,.32,1);--press:scale(.97)}
.shell .console-panel,.shell .workspace-tabs,.shell .scene-heading,.shell .home-composer,.shell .presence{display:none}

/* Shared surfaces and controls */
.shell .glass{background:var(--raise-1);border:1px solid var(--line);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.console-layout.shell .primary-button,.console-layout.shell .secondary-button{min-height:36px;padding:0 14px;border-radius:9px;font-size:13px;font-weight:600;gap:8px;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .12s var(--ease-out)}
.console-layout.shell .primary-button{background:rgb(var(--accent));color:#16050a;border:1px solid transparent}
.console-layout.shell .primary-button:hover{background:rgba(var(--accent),.88)}
.console-layout.shell .secondary-button{background:var(--raise-2);border:1px solid var(--line-strong);color:var(--ink)}
.console-layout.shell a.primary-button,.console-layout.shell a.secondary-button{text-decoration:none;display:inline-flex;align-items:center}
.console-layout.shell .secondary-button:hover{background:var(--raise-3);border-color:#34343c}
.shell .primary-button:active:not(:disabled),.shell .secondary-button:active:not(:disabled),.shell .text-button:active,.shell .icon-button:active,.shell .mode-switch button:active,.shell .chat-search:active,.shell .switch:active{transform:var(--press)}
.shell .primary-button:disabled,.shell .secondary-button:disabled{opacity:.42;cursor:not-allowed}
.shell button:focus-visible,.shell input:focus-visible,.shell select:focus-visible,.shell textarea:focus-visible,.shell a:focus-visible{outline:2px solid rgba(var(--accent),.75);outline-offset:2px}
.console-layout.shell .tag{text-transform:none;letter-spacing:0;font-size:11px;font-weight:600;padding:3px 9px;border-radius:20px;border:1px solid var(--line-strong);background:transparent;color:var(--ink-2)}
.console-layout.shell .dialog-field{font-size:12px;color:var(--ink-2);gap:7px;margin-bottom:12px}
.console-layout.shell .dialog-field input,.console-layout.shell .dialog-field select,.console-layout.shell .dialog-field textarea{height:38px;padding:0 11px;border-radius:9px;border:1px solid var(--line-strong);background:var(--raise-2);color:var(--ink);font:inherit;font-size:13px}
.console-layout.shell .dialog-field textarea{height:auto;min-height:96px;padding:10px 11px;line-height:1.6;resize:vertical}
.console-layout.shell .setting-row{font-size:13px;color:var(--ink-2);padding:10px 0;border-color:var(--line)}
.console-layout.shell #dialog{background:#0e0e11;border:1px solid var(--line-strong);border-radius:18px;box-shadow:0 30px 80px #000c}
.console-layout.shell #dialog h2{font-size:19px;font-weight:650;letter-spacing:-.3px}
.console-layout.shell #dialog p{color:var(--ink-2);font-size:13px;line-height:1.65}
.console-layout.shell .sample-note{font-size:12px;color:var(--ink-3);line-height:1.6}
.console-layout.shell .workspace-footer{font-size:11px;color:#5f5a64}

/* Flat surfaces only: no gradient on the rail or behind the orb. */
.console-layout.shell .rail{background:var(--ground)}
.shell .ambient{display:none}
/* Nothing under 11px; reading text at 13px. */
.shell .chat-search kbd{font-size:11px}
.shell .chat-search span{font-size:13px}
.console-layout.shell .panel-title small,.console-layout.shell .pet-panel>small{font-size:11px;line-height:1.55}
.console-layout.shell .companion-caption p{font-size:13px;color:var(--ink-2)}
.shell .orb-status{font-size:12px}
.shell .mode-switch button{font-size:13px}

/* Rail: the active page is a neutral pill, not a colour */
.console-layout.shell .rail .nav-button{color:#7f7b86;transition:color .15s ease,background-color .15s ease,transform .12s var(--ease-out)}
.console-layout.shell .rail .nav-button:hover{color:#ebe7ee;background:#ffffff0a}
.console-layout.shell .rail .nav-button.active{color:#fff;background:#ffffff14}

/* Top bar */
.console-layout.shell .header{gap:16px;padding:0 20px}
.console-layout.shell .wordmark{width:auto;padding:8px 2px}
.console-layout.shell .wordmark img{position:static;width:auto;height:19px;max-width:none;display:block;transform:none;clip-path:none}
.console-layout.shell .header-actions{gap:8px}
.shell .chat-search{display:flex;align-items:center;gap:9px;width:300px;height:36px;padding:0 12px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff06;color:#a9a3ad;font-size:12px;transition:border-color .16s,color .16s}
.shell .chat-search svg{width:15px;height:15px;flex:none}
.shell .chat-search kbd{margin-left:auto;font:500 10px Manrope,sans-serif;color:#7d7782;border:1px solid #ffffff14;border-radius:5px;padding:2px 5px}
.shell .chat-search:hover,.shell .chat-search.active{border-color:rgba(var(--accent),.35);color:#ece6ec}
.console-layout.shell .header-actions>.credits{display:flex}
/* Credits nearly used up (10% left): the pill takes the accent, so the person sees it before Spiral stops (2026-11-20). */
.console-layout.shell .header-actions>.credits.low{border-color:rgba(var(--accent),.55);background:rgba(var(--accent),.1)}
.shell .plan-perks{margin:6px 0 12px;padding-left:18px;line-height:1.7;color:var(--ink-2,#b5afb9)}
.shell .orb-button svg{width:20px;height:20px}
.shell .header .orb-button[aria-pressed=true]{color:#fff;background:#ffffff14}
.shell .notify-button{position:relative}
.shell .notify-dot{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:rgb(var(--accent))}
.shell .header .icon-button{transition:color .15s ease,background-color .15s ease,transform .12s var(--ease-out)}
.shell .header .icon-button.active{color:#fff;background:#ffffff14}
.console-layout.shell .avatar{font-size:11px;font-weight:700}
.shell .header button:focus-visible,.shell .mode-switch button:focus-visible,.shell .switch:focus-visible{outline:2px solid rgba(var(--accent),.8);outline-offset:2px}

/* Chat page: status above the orb, Chat / Work / Off below */
.console-layout.shell .companion-stage{top:47%;width:460px}
.shell .orb-status{order:0;display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 13px;margin-bottom:12px;border:1px solid rgba(var(--accent),.25);border-radius:20px;background:rgba(var(--accent),.07);font-size:11px;font-weight:600;color:#ece4e8;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.shell .status-dot{width:7px;height:7px;border-radius:50%;background:rgb(var(--accent));flex:none}
/* The clock, top right of Chat: the time, and the day and date under it (the owner, 2026-11-14). */
.home-clock{position:absolute;top:22px;right:28px;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:2px;pointer-events:none;user-select:none}
.home-clock time{font-size:22px;font-weight:600;letter-spacing:-.01em;color:#f1ecef;font-variant-numeric:tabular-nums;line-height:1.1}
.home-clock span{font-size:11.5px;font-weight:500;color:#9c939f;white-space:nowrap}
@media(max-width:650px){.home-clock{top:14px;right:16px}.home-clock time{font-size:17px}.home-clock span{font-size:10.5px}}
.shell.mode-off .status-dot{background:#77727b}.shell.mode-off .orb-status{border-color:#ffffff18;background:#ffffff06;color:#a39ca7}
.shell .orb{order:1}
.shell .mode-switch{order:2;display:flex;gap:3px;padding:4px;margin-top:8px;border:1px solid #ffffff14;border-radius:11px;background:#111014c0}
.shell .mode-switch button{display:flex;align-items:center;gap:6px;height:32px;padding:0 15px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:600;color:#a9a2ad}
.shell .mode-switch svg{width:13px;height:13px}
.shell .mode-switch button:hover{color:#efe8ee}
.shell .mode-switch button[aria-checked=true]{background:rgba(var(--accent),.14);color:#f6e3ea;border-color:rgba(var(--accent),.2)}
.console-layout.shell .companion-caption{order:3;margin-top:14px;width:340px}
.console-layout.shell .companion-caption p{margin:0 auto;line-height:1.6;max-width:330px}
/* What Spiral says out loud after you talk to the orb: a short caption, not a chat. */
/* Like the website's hello caption: dark glass, each word fading in, three lines then from the top (voice.js liveCaption). */
.console-layout.shell .orb-reply{order:4;margin:14px auto 0;max-width:440px;padding:12px 18px;border-radius:18px;background:rgba(20,14,17,.78);border:1px solid #302b2e;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:15px;line-height:1.55;font-weight:500;color:#fff;text-align:center;overflow:hidden;animation:settle .2s var(--ease-out) both}
.orb-reply .live-words>span{display:inline-block;opacity:0;filter:blur(2px);transform:translateY(.15em);transition:opacity .12s,filter .12s,transform .14s var(--ease-out)} /* quick, so a word reads as it's said */
.orb-reply .live-words>span.said{opacity:1;filter:none;transform:none}
@media (prefers-reduced-motion:reduce){.orb-reply .live-words>span{filter:none;transform:none;transition:opacity .12s linear}}
.console-layout.shell .orb-reply small{display:block;margin-bottom:4px;font-size:11px;font-weight:600;color:#a39ca7}
.console-layout.shell .orb-reply[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.console-layout.shell .orb-reply{animation:none}}
.shell.mode-off .orb{filter:grayscale(1) brightness(.5)}
.shell.mode-work .orb{opacity:.82}
.shell .orb{transition:filter .4s,opacity .4s}
@media(prefers-reduced-motion:no-preference){.shell:not(.motion-off).listening .status-dot{animation:status-pulse 1.1s ease-in-out infinite}}
@keyframes status-pulse{50%{opacity:.25}}
@keyframes sheet-in{from{opacity:0;transform:translateY(8px)}}

/* Goals overlay on the Chat page: sits on the left, the orb moves right */
.console-layout.shell.goals-open{--console-width:410px;--panel-width:0px}
.console-layout.shell.goals-open #page-screen{top:18px;bottom:18px;left:18px;right:auto;width:390px;padding:24px 22px;background:var(--raise-1);border:1px solid var(--line);border-radius:16px;backdrop-filter:none;box-shadow:0 24px 60px #0009}
.console-layout.shell.goals-open #page-screen .page-heading{margin-bottom:20px}
.console-layout.shell .task-list{background:var(--raise-2);border:1px solid var(--line);border-radius:12px;padding:2px 14px}
.console-layout.shell .task-list .list-row{min-height:52px;border-color:var(--line)}

/* Full pages */
.console-layout.shell.full-page #page-screen{top:0;right:0;bottom:0;left:0;width:auto;max-width:none;margin:0;padding:36px 44px 72px;border:0;border-radius:0;background:var(--ground);backdrop-filter:none}
.shell .page-inner{max-width:1080px;margin:0 auto}
.console-layout.shell .page-heading{align-items:center;gap:16px;margin-bottom:28px}
.console-layout.shell .page-heading h1{font-size:24px;font-weight:650;letter-spacing:-.4px;margin:0 0 6px;color:var(--ink)}
.console-layout.shell .page-heading p{font-size:13px;line-height:1.6;color:var(--ink-3)}
/* One gutter (16px) between every block. */
.shell .shell-box{padding:20px;border-radius:14px;margin-bottom:16px}
.shell .box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:28px}
.shell .box-head h2{font-size:15px;font-weight:650;margin:0;color:var(--ink)}
.shell .box-empty{padding:4px 0 2px;color:var(--ink-3)}
.shell .box-empty h3{font-size:13px;color:var(--ink-2);margin:0 0 4px;font-weight:600}
.shell .box-empty p{font-size:12px;line-height:1.65;margin:0}
.shell .box-empty .feature-actions,.shell .box-empty>button{margin-top:14px}
.shell .box-note{font-size:12px;color:var(--ink-3);line-height:1.6;margin:12px 0 0}
.shell .count{font-size:11px;font-weight:700;color:#16050a;background:rgb(var(--accent));border-radius:10px;padding:2px 8px}
.shell .activity-grid,.shell .steps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.shell .steps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell .activity-grid .wide{grid-column:1/-1}
.shell .two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.shell .brain-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start}
.shell .activity-grid .shell-box,.shell .steps-grid .shell-box,.shell .two-col .shell-box,.shell .brain-layout .shell-box{margin-bottom:0}
.shell .activity-grid,.shell .steps-grid,.shell .two-col{margin-bottom:16px}
.shell .activity-list,.shell .file-list,.shell .plain-list,.shell .scope-list{list-style:none;margin:0;padding:0}
.shell .activity-list li,.shell .plain-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:9px 0;border-top:1px solid var(--line);font-size:13px}
.shell .activity-list li:first-child,.shell .plain-list li:first-child{border-top:0;padding-top:0}
.shell .activity-list strong,.shell .plain-list strong{font-weight:600;color:var(--ink);word-break:break-word}
.shell .activity-list small,.shell .plain-list small{display:block;color:var(--ink-3);font-size:12px;margin-top:3px;line-height:1.5}
.shell .plain-list .feature-actions{margin:0;flex:none}
.shell .tag{white-space:nowrap}
.shell .icon-button.small{width:30px;height:30px;flex:none}
.shell .icon-button.small svg{width:14px;height:14px}
.shell .icon-button[aria-pressed=true]{color:rgb(var(--accent));background:rgba(var(--accent),.1)}
.shell .secondary-button.danger{color:#ffb3bf;border-color:#ff5f7a40}
.shell .stack-form{display:flex;flex-direction:column;gap:4px;max-width:420px}
.shell .stack-form .primary-button{align-self:flex-start;margin-top:6px}
.shell .inline-form{display:flex;gap:8px}
.shell .inline-form input{flex:1;min-width:0}
.shell .inline-form input,.shell .goal-add input:not([type=checkbox]),.shell .hours-row input,.shell .hours-row select,.shell .search-input{height:38px;padding:0 11px;border-radius:9px;border:1px solid var(--line-strong);background:var(--raise-2);color:var(--ink);font:inherit;font-size:13px;transition:border-color .15s ease}
.shell .inline-form input:hover,.shell .goal-add input:hover,.shell .hours-row input:hover,.shell .hours-row select:hover,.shell .search-input:hover{border-color:#383840}
.shell input::placeholder,.shell textarea::placeholder{color:#6d6873}
.shell .check-label{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:12px;color:#c9c2cc;cursor:pointer}
.shell .check-label input{width:16px;height:16px;flex:none;margin:0;accent-color:rgb(var(--accent))}
.shell .check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.shell .setup-group{border:0;padding:0;margin:0 0 14px}
.shell .setup-group legend{font-size:12px;padding:0;color:#d9d3db}
.shell .setup-check{margin:4px 0 14px}
.shell .form-error{color:#ff9cad;font-size:12px}
/* Server results: agent work, approval drafts and task status. */
.shell .task-result{margin-top:8px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--ink-2);font-size:13px;line-height:1.55;white-space:pre-wrap;max-height:320px;overflow:auto}
/* A web page an agent built (shell.js resultHTML): its title and two buttons, not its code; opened in a sandboxed preview. */
.shell .page-card{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line);white-space:normal}
.shell .page-card strong{color:var(--ink);font-size:14px}
.shell .page-card small{color:var(--ink-3);font-size:12px}
.shell .page-card .feature-actions{margin-top:8px}
.console-layout.shell #dialog.wide{width:min(1180px,94vw);max-width:none}
.shell .page-preview{display:block;width:100%;height:min(76vh,860px);border:1px solid var(--line);border-radius:12px;background:#fff}
.shell .plain-list li>div:first-child{min-width:0;flex:1}
/* An agent's question (Activity → Waiting for you): the question on top, its choices and an answer box below it. */
.shell .plain-list li.ask-item{flex-direction:column;align-items:stretch;gap:10px}
/* An approval as a person reads it: what, subject, why, then the email itself behind "Show the email". */
.shell .plain-list li.approval-item{flex-direction:column;align-items:stretch;gap:12px}
.shell .approval-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.shell .approval-main strong{font-size:15px}
.shell .approval-subject{margin:0;color:var(--ink);font-size:14px}
.shell .approval-why{margin:2px 0 0;color:var(--ink-2);font-size:13px}
.shell .approval-preview{margin-top:8px}
.shell .approval-preview summary{cursor:pointer;color:var(--ink-2);font-size:13px;width:max-content}
.shell .approval-preview summary:hover{color:var(--ink)}
.shell .mail-preview{margin-top:8px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid var(--line);font-size:13px;line-height:1.55}
.shell .mail-row{display:grid;grid-template-columns:64px 1fr;gap:10px;padding:2px 0;color:var(--ink-2)}
.shell .mail-row span:first-child{color:var(--ink-3,var(--ink-2));opacity:.7}
.shell .mail-row span:last-child{color:var(--ink);overflow-wrap:anywhere}
.shell .mail-body{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);white-space:pre-wrap;color:var(--ink-2);max-height:300px;overflow:auto;overflow-wrap:anywhere}
.shell .approval-item .feature-actions{justify-content:flex-end;flex-wrap:wrap;gap:8px}
.shell .plain-list li.approval-row{display:block;padding:0}
.approval-row details>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:9px 0;border-radius:8px}
.approval-row details>summary::-webkit-details-marker{display:none}
.approval-row details>summary:focus-visible{outline:2px solid rgba(var(--accent),.6);outline-offset:2px}
.approval-row details[open]>summary .tag{opacity:.6}
.approval-row .mail-preview{margin:0 0 12px}
.approval-row .feature-actions{justify-content:flex-end;gap:8px;padding-bottom:12px}
.revise-form{display:flex;gap:8px;margin:0 0 10px}
.revise-form input{flex:1;min-width:0;height:38px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--ink);font:inherit;font-size:13px}
.revise-form input:focus-visible{outline:2px solid rgba(var(--accent),.6);outline-offset:1px}
.approval-shown .mail-row{grid-template-columns:84px 1fr;padding:4px 0}
.approval-words{white-space:pre-wrap;font-weight:600}
.activity-all{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.activity-all summary{cursor:pointer;color:var(--ink-2);font-size:13px;width:max-content}
.activity-all summary:hover{color:var(--ink)}
.activity-all[open] summary{margin-bottom:12px}
.shell .ask-item .feature-actions{flex-wrap:wrap;gap:8px}
.shell .ask-form{display:flex;align-items:center;gap:8px;flex:1 1 260px;min-width:0}
/* The answer box and its Send are one control: the same 36px height (Send came out 32px beside a 36px box). */
.console-layout.shell .ask-form .primary-button{height:36px;min-height:36px;flex:none}
.shell .ask-form input{flex:1;min-width:0;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#ffffff08;color:inherit;font:inherit}
.shell .ask-form input:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:1px}
.shell .tag.status-done{color:#8fe3b4}.shell .tag.status-needs_you{color:#ffd27a}.shell .tag.status-failed{color:#ff9cad}.shell .tag.status-working{color:#a9c8ff}
.shell .account-row{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#auth-form{display:grid;gap:16px;margin-top:16px}
#auth-form+.sample-note .text-button{display:inline;width:auto;min-height:0;padding:0;margin-left:4px;border:0;background:none;color:rgb(var(--accent));font-weight:600}
.shell .list-title{font-size:13px;font-weight:600;color:var(--ink-2);margin:24px 0 10px}
.shell .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}

/* Goals */
.shell .goal-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.shell .goal-add input[name=goal]{flex:2 1 160px}
.shell .goal-add input[name=when]{flex:1 1 110px}

/* Agents */
/* Small Spiral orb: same crop and eyes as the website orb. */
.shell .spiral-mini{position:relative;display:inline-block;width:46px;height:46px;flex:none;isolation:isolate}
.shell .spiral-mini.large{width:72px;height:72px;margin-bottom:6px}
.shell .spiral-mini.tiny{width:28px;height:28px}
.shell .spiral-mini img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:229.56%;height:148.09%;max-width:none;object-fit:fill;clip-path:ellipse(17.34% 26.88% at 49.81% 49.75%);filter:grayscale(1) brightness(1.7) contrast(1.15)}
/* Multiply keeps the sphere's highlights and shadows while setting its exact colour. */
.shell .spiral-mini .orb-tint{position:absolute;left:10.2%;top:10.2%;width:79.6%;height:79.6%;border-radius:50%;background:rgb(var(--orb-rgb));mix-blend-mode:multiply;pointer-events:none}
.shell .spiral-mini.off{opacity:.42;filter:saturate(.3)}
/* Super Spiral before the live orbs start: the same spectrum, still. */
.shell .spiral-mini.spectrum .orb-tint{background:url(assets/super-orb.png) center/cover;mix-blend-mode:normal}
.shell .spiral-mini.spectrum img{display:none}
/* Live orb: the shader canvas sits like the website orb's, 150% of the box, so the eyes line up. */
.shell .spiral-mini canvas{position:absolute;inset:-25%;width:150%;height:150%;display:none}
/* The picture stays until the live orb has been drawn once: a list redrawn while the orb loop rests (Spiral idle, window
   hidden) showed only the eyes, "--", in Today and Notifications (2026-11-22). */
.shell.mini-orbs-live .spiral-mini.drawn canvas{display:block}
.shell.mini-orbs-live .spiral-mini.drawn img,.shell.mini-orbs-live .spiral-mini.drawn .orb-tint{display:none}
.shell .spiral-mini .gaze,.shell .spiral-mini .eyelids{transform-origin:250px 230px}
.shell .spiral-mini .face{position:absolute;inset:0;width:100%;height:100%;fill:#fff;stroke:none;filter:drop-shadow(0 0 3px #ffffff90)}
.shell .text-button{flex:none;font-size:12px;color:var(--ink-2);padding:6px 9px;border-radius:7px;transition:color .15s ease,background-color .15s ease}
.shell .text-button:hover,.shell .text-button:focus-visible{color:#fff;background:#ffffff0c}
.shell .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Agents inbox: agent list | conversation | optional details */
.console-layout.shell.page-agents.full-page #page-screen{padding:0;overflow:hidden}
.shell.page-agents .page-inner{max-width:none;height:100%}
.shell .agents-page{display:flex;flex-direction:column;height:100%}
.shell .agents-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px;flex:none;padding:0 20px;border-bottom:1px solid var(--line)}
.shell .agents-bar h1{font-size:17px;font-weight:650;margin:0;color:var(--ink)}
.shell .segmented{display:flex;padding:3px;border:1px solid var(--line-strong);border-radius:10px;background:var(--raise-1)}
.shell .segmented button{padding:6px 14px;border-radius:7px;font-size:13px;font-weight:500;color:var(--ink-3);transition:color .15s ease,background-color .15s ease}
.shell .segmented button:hover{color:var(--ink-2)}
.shell .segmented button[aria-pressed=true]{background:var(--raise-3);color:var(--ink)}
/* 3D office: the canvas fills the stage; names float over each agent. */
.shell .office-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#060608}
/* A soft vignette over the 3D view: the edges fall off, so the eye goes to the office (depth, 2026-11-25). Clicks pass through. */
.shell .office-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 95% at 50% 46%,transparent 58%,rgba(0,0,0,.34) 100%)}
.shell .o-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:none}
/* The office appears whole: hidden until the building, furniture and agents are all in (office3d.js reveal), then a short fade. */
.shell .o-canvas,.shell .o-labels{transition:opacity 180ms ease-out}
.shell .o-canvas.o-wait,.shell .o-labels.o-wait{opacity:0}
.shell .segmented.office-zoom{position:absolute;right:16px;bottom:12px;z-index:2;background:#0e0e12e6}
.shell .office-zoom button{min-width:38px;font-size:15px;font-weight:600}
.shell .o-canvas:active{cursor:grabbing}
.shell .o-labels{position:absolute;inset:0;z-index:2;pointer-events:none}
.shell .o-label{position:absolute;left:0;top:0;display:flex;align-items:center;gap:7px;padding:4px 10px 4px 6px;border-radius:10px;background:#0e0e12e6;border:1px solid var(--line-strong);pointer-events:auto;white-space:nowrap;transition:border-color .15s ease}
.shell .o-label:hover{border-color:#44444d}
.shell .o-label span{display:flex;flex-direction:column;text-align:left}
.shell .o-label strong{font-size:12px;font-weight:600;color:var(--ink)}
.shell .o-label small{font-size:11px;color:var(--ink-3);display:none}
/* Names stay compact so each sits over its own agent; the status shows on hover or focus. */
.shell .o-label:hover small,.shell .o-label:focus-visible small{display:block}
.shell .o-label:hover,.shell .o-label:focus-visible{z-index:2}
.shell .o-dot{width:12px;height:12px;border-radius:4px;background:rgba(var(--c),.18);border:1px solid rgba(var(--c),.6);flex:none}
.shell .o-bubble{position:absolute;left:0;top:0;padding:1px 8px;border-radius:10px 10px 10px 3px;background:#f1edf3;color:#111;font-size:12px;font-weight:700;opacity:0;transition:opacity .25s ease}
.shell .o-bubble[data-show=true]{opacity:1}
.shell .segmented.office-tools{position:absolute;top:14px;right:16px;z-index:2;background:#0e0e12e6}
.shell .office-tools button{display:flex;align-items:center;gap:6px}
.shell .office-tools svg{width:14px;height:14px}
.shell .office-hint{position:absolute;left:16px;bottom:12px;margin:0;font-size:11px;color:var(--ink-3);z-index:1;pointer-events:none}
/* The office's own controls (office3d.js): walk in, the ideas board, the hint, and talking to an agent. */
.shell .o-hud{position:absolute;inset:0;pointer-events:none;z-index:3}
.shell .segmented.o-bar{position:absolute;top:14px;left:16px;background:#0e0e12e6;pointer-events:auto}
.shell .o-bar button{display:flex;align-items:center;gap:6px}
.shell .o-label.o-you{padding:3px 9px;font-size:12px;font-weight:700;color:#fff;background:rgba(var(--accent),.85);border-color:transparent;pointer-events:none}
.shell .o-walk[aria-pressed=true]{color:var(--ink)}
.shell .o-room{height:30px;margin-left:4px;padding:0 26px 0 10px;border-radius:8px;border:0;background:#ffffff0d;color:var(--ink-2);font:inherit;font-size:12px;cursor:pointer}
.shell .o-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 8px}
.shell .o-chip{padding:5px 9px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;color:var(--ink-2);font:inherit;font-size:11.5px;cursor:pointer}
.shell .o-chip:hover{color:var(--ink);border-color:#44444d}
.shell .o-count:not(:empty){min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ffffff14;font-size:11px;display:inline-grid;place-items:center}
.shell .o-ideas-btn.fresh .o-count{background:rgba(var(--accent),.9);color:#fff}
.shell .o-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:10px;background:#0e0e12d9;font-size:12px;color:var(--ink-2);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis}
/* Phone: the office's top bar and Day/Night stack instead of overlapping; the hint wraps above the zoom buttons. */
@media(max-width:650px){.shell .segmented.office-tools{top:60px}.shell .o-ideas{top:106px;max-height:calc(100% - 180px)}.shell .o-hint{bottom:60px;width:max-content;white-space:normal;text-align:center}.shell .office-hint{max-width:calc(100% - 180px)}}
.shell .o-ideas{position:absolute;top:58px;left:16px;width:min(340px,calc(100% - 32px));max-height:calc(100% - 120px);overflow:auto;padding:14px;border-radius:14px;background:#0e0e12f2;border:1px solid var(--line-strong);pointer-events:auto}
.shell .o-ideas h3{margin:0 0 4px;font-size:14px}
.shell .o-ideas .o-note,.shell .o-ideas .o-none{margin:0 0 10px;font-size:12px;color:var(--ink-3)}
.shell .o-ideas ol{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.shell .o-ideas li{padding:10px;border-radius:10px;background:#ffffff08}
.shell .o-ideas li p{margin:0 0 4px;font-size:13px;color:var(--ink);unicode-bidi:plaintext}
.shell .o-ideas li small{display:block;font-size:11px;color:var(--ink-3);margin-bottom:8px}
.shell .cli-term{height:min(460px,60vh);margin-top:10px;padding:10px;border-radius:14px;background:#0b0b0f;border:1px solid #ffffff14;overflow:hidden}
.shell .o-ideas li .o-from{margin-top:-4px;color:var(--ink-2);overflow-wrap:anywhere}.shell .o-ideas li .o-from span:first-child{font-weight:600}
.shell .o-add{font:inherit;font-size:12px;font-weight:600;padding:5px 10px;border-radius:8px;border:1px solid var(--line-strong);background:transparent;color:var(--ink);cursor:pointer}
.shell .o-add:disabled{opacity:.6;cursor:default}
.shell .o-chat{position:absolute;right:16px;bottom:60px;width:min(340px,calc(100% - 32px));max-height:calc(100% - 130px);display:flex;flex-direction:column;border-radius:14px;background:#0e0e12f5;border:1px solid var(--line-strong);z-index:4;box-shadow:0 18px 48px #0009}
.shell .o-chat header{display:flex;align-items:center;gap:8px;padding:10px 10px 8px 12px;border-bottom:1px solid var(--line)}
.shell .o-chat header>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.shell .o-chat header strong{font-size:13px}
.shell .o-chat header small{font-size:11px;color:var(--ink-3)}
.console-layout.shell .o-chat .o-clearchat{flex:none;width:auto;border:0;padding:5px 9px;border-radius:7px;font-size:12px;color:var(--ink-2);background:transparent;transition:background-color 150ms ease,color 150ms ease}
.console-layout.shell .o-chat .o-clearchat:hover{background:var(--raise-2);color:var(--ink)}
.console-layout.shell .o-chat .o-clearchat:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:1px}
.shell .o-x{width:28px;height:28px;border-radius:8px;border:0;background:transparent;color:var(--ink-2);font-size:18px;cursor:pointer}
.shell .o-x:hover{background:#ffffff10}
.shell .o-log{flex:1;min-height:60px;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.shell .o-m{margin:0;padding:7px 12px;border-radius:18px;font-size:13px;line-height:1.4;max-width:84%;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}
/* The same bubbles as the agents' chats (Messenger style). */
.shell .o-m.you{align-self:flex-end;background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 76%,#000),color-mix(in srgb,rgb(var(--accent)) 64%,#000));color:#fff}
.shell .o-m.them{align-self:flex-start;background:#26262c;color:var(--ink)}
.shell .o-m.status{align-self:center;background:none;color:var(--ink-3);font-size:11px;padding:3px 10px;box-shadow:inset 0 0 0 1px var(--line-strong);border-radius:999px}
.shell .o-chat .o-empty{margin:0;padding:10px 12px;font-size:12px;color:var(--ink-3)}
.shell .o-send{display:flex;gap:6px;padding:8px 10px;border-top:1px solid var(--line)}
.shell .o-send input{flex:1;min-width:0;height:34px;padding:0 10px;border-radius:9px;border:1px solid var(--line-strong);background:#ffffff08;color:var(--ink);font:inherit;font-size:13px}
.shell .o-send button{height:34px;padding:0 12px;border-radius:9px;border:0;background:rgb(var(--accent));color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.shell .o-full{margin:0 10px 10px;padding:4px 0;border:0;background:none;color:var(--ink-3);font:inherit;font-size:12px;text-align:left;cursor:pointer;text-decoration:underline}
/* A line of real talk over an agent: the speaker's words, wrapped, one bubble at a time. */
.shell .o-bubble.talk{max-width:220px;padding:6px 10px;font-size:12px;font-weight:600;line-height:1.35;white-space:normal;unicode-bidi:plaintext;transform-origin:bottom left}
@media (prefers-reduced-motion: reduce){.shell .o-bubble{transition:none}}
.shell .agent-inbox{position:relative;display:grid;grid-template-columns:280px minmax(0,1fr);flex:1;min-height:0}
.shell .thread-row.needs-you .thread-preview{color:rgb(var(--accent))}
.shell .msg-who{font-size:11px;font-weight:600;color:var(--ink-3);padding:0 12px 2px}
.shell .msg .text-button{align-self:flex-start;padding-left:12px}
.shell .action-chip[aria-pressed=true]{background:rgba(var(--accent),.14);border-color:rgba(var(--accent),.5);color:#fff}
.shell .action-chip.go{background:rgb(var(--accent));border-color:transparent;color:#16050a;font-weight:600}
.shell .action-chip.go:hover:not(:disabled){background:rgba(var(--accent),.88);border-color:transparent}
#setup-answer .action-chip{flex:none}

/* Goals: tasks and priorities from the agents */
.shell .goal-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.shell .goal-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:12px;background:var(--raise-2);border:1px solid var(--line)}
.shell .goal-item>div,.shell .goal-open>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .system-sub{margin:14px 0 6px;font-size:12px;font-weight:600;color:var(--ink-2)}
.shell .system-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.shell .system-items li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;background:var(--raise-2);border:1px solid var(--line)}
.shell .system-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .system-item-main strong{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .system-item-main small{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .system-items time{flex:none;font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .system-peek{margin:0;padding:10px 12px;border-radius:9px;background:var(--raise-2);border:1px solid var(--line);font-size:12px;color:var(--ink-2);white-space:pre-wrap;max-height:180px;overflow:auto}
.shell .goal-connect{border-color:rgba(var(--accent),.35);background:rgba(var(--accent),.06)}
.shell .goal-connect{flex-wrap:wrap;row-gap:10px}
.shell .goal-connect .goal-open{flex-basis:100%}
.shell .goal-connect small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.console-layout.shell .goal-connect-alt{flex:none;width:auto;min-height:34px;padding:0 14px;font-size:13px;white-space:nowrap}
.console-layout.shell .goal-connect-button{flex:none;width:auto;min-height:34px;padding:0 14px;font-size:13px;white-space:nowrap;margin-left:39px}
.shell .goal-open{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:8px}
.shell .goal-open:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:4px}
.shell .goal-item:has(.goal-open:hover){border-color:var(--line-strong)}
.shell .goal-item strong{font-size:13px;font-weight:600;color:var(--ink);word-break:break-word}
.shell .goal-item small{font-size:11px;color:var(--ink-3)}
.shell .goal-item.done strong{color:var(--ink-3);text-decoration:line-through}
.shell .goal-tick{width:22px;height:22px;flex:none;display:grid;place-items:center;border-radius:50%;border:1.5px solid #4a4a53;color:transparent;transition:background-color .15s ease,border-color .15s ease,transform .12s var(--ease-out)}
.shell .goal-tick svg{width:13px;height:13px}
.shell .goal-tick[aria-pressed=true]{background:rgb(var(--accent));border-color:transparent;color:#16050a}
.shell .goal-tick:active{transform:var(--press)}
.shell .goal-remove{flex:none;color:var(--ink-3)}
.shell .goal-remove:hover,.shell .goal-remove:focus-visible{color:var(--ink)}
.shell .priority-pops{position:fixed;top:78px;right:18px;z-index:60;display:flex;flex-direction:column;gap:8px;width:min(360px,calc(100% - 36px))}
.shell .priority-pop{display:flex;align-items:center;gap:11px;padding:11px 10px 11px 12px;border-radius:14px;background:var(--raise-2);border:1px solid rgba(var(--accent),.45);box-shadow:0 18px 40px #000a}
.shell .priority-pop .spiral-mini{width:34px;height:34px}
.shell .priority-pop .text-button{flex:none;width:auto;min-width:0;justify-content:center}
.shell .priority-pop>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .priority-pop small{font-size:11px;font-weight:600;color:rgb(var(--accent))}
.shell .priority-pop strong{font-size:13px;line-height:1.35;color:var(--ink);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}/* who it's from was cut off on one line */
/* Connect-your-app card (shell.js popConnect): the reason, then Connect / Not now / Don't ask again. */
.shell .priority-pop.connect-pop{align-items:flex-start;padding:14px 10px 14px 14px}
.shell .connect-pop strong{font-size:14px;-webkit-line-clamp:3}
.shell .connect-pop p{margin:2px 0 0;font-size:12.5px;line-height:1.45;color:var(--ink-2)}
.shell .connect-pop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:10px}
.shell .connect-pop-actions .primary-button{width:auto;min-height:34px;padding:0 14px;font-size:13px}
.shell .connect-pop-actions .text-button{font-size:12.5px}
.shell .connect-pop-actions .quiet{color:var(--ink-3)}
@media(prefers-reduced-motion:no-preference){.shell:not(.motion-off) .priority-pop{animation:pop-in .26s var(--ease-out)}}
@keyframes pop-in{from{opacity:0;transform:translateY(-8px) scale(.98)}}

/* Floating orb: name */
.shell .pet-name{padding:4px 20px 6px}
.shell .pet-name label{display:block;font-size:12px;color:var(--ink-3);margin-bottom:6px}
.shell .pet-name div{display:flex;gap:6px}
.shell .pet-name input{flex:1;min-width:0;height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--line-strong);background:var(--raise-2);color:var(--ink);font:inherit;font-size:13px}
.shell .pet-panel .pet-name .secondary-button{margin:0;width:auto}


.shell .agent-inbox.info-open{grid-template-columns:280px minmax(0,1fr) 300px}
.shell .thread-list{display:flex;flex-direction:column;min-height:0;background:var(--raise-1);border-right:1px solid var(--line)}
.shell .thread-search{display:flex;align-items:center;gap:8px;margin:14px 12px 8px;height:36px;padding:0 11px;border-radius:10px;background:var(--raise-2);border:1px solid var(--line);color:var(--ink-3)}
.shell .thread-search svg{width:15px;height:15px;flex:none}
.shell .thread-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--ink);font:inherit;font-size:13px}
.shell .thread-search:focus-within{border-color:rgba(var(--accent),.5)}
.shell .threads{flex:1;overflow:auto;padding:2px 8px 12px;display:flex;flex-direction:column;gap:2px}
.shell .thread-row{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border-radius:12px;text-align:left;transition:background-color .15s ease}
.shell .thread-row:hover{background:#ffffff08}
.shell .thread-row.selected{background:#ffffff12}
.shell .thread-row .spiral-mini{width:40px;height:40px}
.shell .thread-row.off .spiral-mini,.shell .thread-head .spiral-mini.off{opacity:.45;filter:saturate(.35)}
.shell .thread-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.shell .thread-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.shell .thread-top strong{font-size:14px;font-weight:600;color:var(--ink)}
.shell .thread-top time{flex:none;font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .thread-preview{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .thread-view{display:flex;flex-direction:column;min-width:0;min-height:0}
.shell .thread-head{display:flex;align-items:center;gap:12px;height:64px;flex:none;padding:0 18px;border-bottom:1px solid var(--line)}
.shell .thread-head .spiral-mini{width:34px;height:34px}
.shell .thread-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .thread-head strong{font-size:14px;font-weight:600;color:var(--ink)}
.shell .thread-head>div span{font-size:12px;color:var(--ink-3)}
.shell .thread-head .switch{margin-left:0}
.shell .thread-body{flex:1;overflow:auto;padding:24px 28px 8px}
.shell .thread-intro{max-width:420px;margin:6vh auto 0;text-align:center}
.shell .thread-intro .spiral-mini{width:96px;height:96px}
.shell .thread-intro h2{font-size:20px;font-weight:650;margin:10px 0 8px;color:var(--ink)}
.shell .thread-intro p{font-size:13px;line-height:1.7;color:var(--ink-2);margin:0 0 16px}
/* Messenger / Instagram style (the owner, 2026-11-26): grouped bubbles, the agent's orb beside the last of a group, the time
   between groups. Your bubbles a deep Spiral red (white text, contrast over 5:1); the agent's a soft grey; one radius, the
   joining corners tightened inside a group. */
.shell .thread-messages{list-style:none;padding:0;margin:0 auto;max-width:720px;display:flex;flex-direction:column;gap:0}
.shell .msg{display:flex;align-items:flex-end;gap:8px;max-width:78%;margin-top:2px}
.shell .msg.first{margin-top:12px}
.shell .msg-col{display:flex;flex-direction:column;gap:4px;min-width:0}
.shell .msg-avatar{flex:none;width:28px;height:28px;display:grid;place-items:center}
.shell .msg-avatar .spiral-mini{width:28px;height:28px}
.shell .msg p{margin:0;padding:8px 13px;border-radius:20px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.shell .msg-at{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.shell .msg.agent p,.shell .msg.chief p{background:#26262c;color:var(--ink)}
.shell .msg.agent:not(.first) p,.shell .msg.chief:not(.first) p{border-top-left-radius:6px}
.shell .msg.agent:not(.last) p,.shell .msg.chief:not(.last) p{border-bottom-left-radius:6px}
.shell .msg.chief p{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.shell .msg.you{align-self:flex-end}
.shell .msg.you .msg-col{align-items:flex-end}
.shell .msg.you p{background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 76%,#000),color-mix(in srgb,rgb(var(--accent)) 64%,#000));color:#fff}
.shell .msg.you:not(.first) p{border-top-right-radius:6px}
.shell .msg.you:not(.last) p{border-bottom-right-radius:6px}
.shell .msg.status{align-self:center;max-width:90%;margin-top:10px}
.shell .msg.status p{padding:4px 12px;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--ink-3);font-size:12px;text-align:center}
.shell .msg-day{align-self:center;margin:18px 0 4px;font-size:11.5px;font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .thread-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:12px 28px 0;flex:none}
.shell .action-chip{height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--line-strong);background:var(--raise-2);color:var(--ink);font-size:13px;font-weight:500;transition:background-color .15s ease,border-color .15s ease,transform .12s var(--ease-out)}
.shell .action-chip:hover:not(:disabled){background:var(--raise-3);border-color:#3a3a43}
.shell .action-chip:active:not(:disabled){transform:var(--press)}
.shell .action-chip:disabled{opacity:.4;cursor:not-allowed}
.shell .agent-composer{display:flex;align-items:center;gap:8px;flex:none;align-self:center;width:calc(100% - 56px);max-width:760px;margin:12px 28px 18px;padding:6px;border:1px solid var(--line-strong);border-radius:14px;background:var(--raise-1)}
.shell .agent-composer:focus-within{border-color:#3a3a43}
.shell .talk-button{display:inline-flex;align-items:center;gap:8px;flex:none;height:36px;padding:0 14px;border-radius:10px;background:rgb(var(--accent));color:#16050a;font-size:13px;font-weight:600;transition:background-color .15s ease,transform .12s var(--ease-out)}
.shell .talk-button svg{width:16px;height:16px}
.shell .talk-button:active:not(:disabled){transform:var(--press)}
.shell .talk-button[aria-pressed=true]{background:#fff}
.shell .talk-button:disabled{opacity:.4;cursor:not-allowed}
/* Every agent's message bar: the main chat's bar (+, Search, mic, send), placed under the thread. */
.console-layout.shell .agent-bar{flex:none;align-self:center;width:calc(100% - 56px);max-width:760px;margin:10px 28px 18px}
.console-layout.shell .agent-attachments:not(:empty){flex:none;align-self:center;width:calc(100% - 56px);max-width:760px;margin:8px 28px 0}
.console-layout.shell .agent-bar [data-action="agent-talk"][aria-pressed=true]{background:rgb(var(--accent));color:#16050a}
@media(max-width:760px){.console-layout.shell .agent-bar,.console-layout.shell .agent-attachments:not(:empty){width:calc(100% - 32px);margin-left:16px;margin-right:16px}}
/* Setup card: a time question's own small picker, in the row of chips above the message box. */
.shell .setup-time input[type=time]{height:32px;padding:0 10px;border-radius:9px;border:1px solid var(--line-strong);background:var(--raise-2);color:var(--ink);font:inherit;font-size:13px;color-scheme:dark}
/* A small mic inside the message box (replaces the big "Talk to …" button). */
.shell .composer-mic{flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:var(--ink-2);transition:background-color .15s ease,color .15s ease,transform .12s var(--ease-out)}
.shell .composer-mic svg{width:16px;height:16px}
.shell .composer-mic:hover:not(:disabled){background:var(--raise-3);color:var(--ink)}
.shell .composer-mic:active:not(:disabled){transform:var(--press)}
.shell .composer-mic[aria-pressed=true]{background:rgb(var(--accent));color:#16050a}
.shell .composer-mic:disabled{opacity:.4;cursor:not-allowed}
.shell .composer-mic:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.shell .agent-composer input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--ink);font:inherit;font-size:13px;padding:0 6px}
.shell .agent-composer input:disabled{cursor:not-allowed}
/* Agent details (owner, 2026-11-22): a header on the same 64px line as the conversation's, then three even sections. */
.shell .thread-info{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--raise-1);border-left:1px solid var(--line)}
.shell .info-head{display:flex;align-items:center;height:64px;flex:none;padding:0 20px;border-bottom:1px solid var(--line)}
.shell .info-head strong{font-size:14px;font-weight:600;color:var(--ink)}
.shell .info-body{flex:1;min-height:0;overflow:auto;padding:22px 20px 28px;display:flex;flex-direction:column;gap:28px}
.shell .info-section h3{font-size:12px;font-weight:600;color:var(--ink-3);margin:0 0 10px}
.shell .info-section p{font-size:13px;line-height:1.6;color:var(--ink-2);margin:0;text-wrap:pretty}
.shell .info-section .info-empty{color:var(--ink-3)}
.shell .info-list{list-style:none;padding:0;margin:0}
.shell .info-list li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 0;font-size:13px;line-height:1.45;color:var(--ink)}
.shell .info-list li:first-child{padding-top:0}
.shell .info-list li+li{border-top:1px solid var(--line)}
.shell .info-list li>span{overflow-wrap:anywhere}
.shell .info-list small{font-size:12px;color:var(--ink-3)}
/* The owner's "Try Spiral as Paid / Free" switch above the plans. */
.shell .owner-plan{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;max-width:900px;margin:0 0 16px;font-size:13px;color:var(--ink-2)}
.shell .owner-plan small{font-size:12px;color:var(--ink-3)}
/* Settings → Subscription: the two plans side by side (stacked on a phone), yours outlined in the accent. */
.shell .plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.shell .plan-card{display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid var(--line);border-radius:var(--r-card,16px);background:var(--raise-1)}
.shell .plan-card.mine{border-color:rgba(var(--accent),.55);background:linear-gradient(rgba(var(--accent),.05),rgba(var(--accent),.05)),var(--raise-1)}
.shell .plan-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.shell .plan-card h3{margin:0;font-size:16px;font-weight:650;color:var(--ink)}
.shell .plan-mine{height:22px;display:inline-flex;align-items:center;padding:0 9px;border-radius:11px;font-size:11px;font-weight:600;color:rgb(var(--accent));border:1px solid rgba(var(--accent),.35);background:rgba(var(--accent),.08)}
.shell .plan-price{margin:0;display:flex;align-items:baseline;gap:6px;font-size:28px;line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.shell .plan-price small{font-size:13px;font-weight:500;letter-spacing:0;color:var(--ink-3)}
.shell .plan-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;flex:1}
.shell .plan-list li{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--ink-2)}
.shell .plan-list svg{flex:none;width:16px;height:16px;margin-top:1px;color:rgb(var(--accent))}
.shell .plan-list li span{display:flex;flex-direction:column;gap:2px}
.shell .plan-list li b{font-weight:600;color:var(--ink)}
.shell .plan-list li small{font-size:12px;line-height:1.4;color:var(--ink-3)}
.shell .plan-free .plan-list svg{color:var(--ink-3)}
.shell .plan-tagline{margin:-6px 0 2px;font-size:13px;color:var(--ink-3)}
.shell .plan-badge{height:22px;display:inline-flex;align-items:center;padding:0 9px;border-radius:11px;font-size:11px;font-weight:600;color:var(--ink);background:rgba(var(--accent),.22)}
.shell .plan-paid{border-color:rgba(var(--accent),.3)}
.shell .plan-upgrade{align-self:stretch}
.shell .plan-upgrade:disabled{opacity:.45;cursor:not-allowed}
.shell .plan-note{margin:0;min-width:0;max-width:100%;font-size:12px;line-height:1.5;color:var(--ink-3);text-align:left;white-space:normal;overflow-wrap:anywhere}
.shell .plan-card>*{min-width:0}
.shell .plan-left{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:0;font-size:13px;color:var(--ink-3)}
.shell .plan-left strong{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.console-layout.shell .plan-left .text-button{width:auto;min-height:0;padding:0;border:0;margin-left:auto;display:inline-flex;color:var(--ink-2)}
.console-layout.shell .plan-left .text-button:hover{color:var(--ink)}
.shell .plan-grid,.shell .plan-left{max-width:900px}
@media(max-width:700px){.shell .plan-grid{grid-template-columns:1fr}}
/* The credits window: the balance as a number and a bar, then rows whose numbers line up on the right. */
.shell .usage-month{margin:-8px 0 18px;font-size:13px;color:var(--ink-3)}
.shell .credit-balance{padding:18px 18px 16px;border:1px solid var(--line);border-radius:14px;background:var(--raise-2);margin:0 0 24px}
.shell .credit-left{display:flex;align-items:baseline;gap:8px}
.shell .credit-left strong{font-size:34px;line-height:1;font-weight:700;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.shell .credit-left span{font-size:14px;color:var(--ink-2)}
.shell .credit-left small{margin-left:auto;font-size:13px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .credit-meter{height:6px;margin:14px 0 12px;border-radius:3px;background:#ffffff12;overflow:hidden}
.shell .credit-meter i{display:block;height:100%;border-radius:inherit;background:rgb(var(--accent))}
.shell .credit-balance.low .credit-meter i{background:#f0c987}
.shell .credit-balance p{margin:0;font-size:13px;line-height:1.5;color:var(--ink-3)}
.shell .usage-sub{font-size:13px;font-weight:600;color:var(--ink-2);margin:0 0 4px}
.shell .usage-rows{list-style:none;margin:0 0 22px;padding:0}
.shell .usage-rows li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;font-size:13px;color:var(--ink)}
.shell .usage-rows li+li{border-top:1px solid var(--line)}
.shell .usage-rows li>span{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.shell .usage-rows small{font-size:12px;color:var(--ink-3)}
.shell .usage-rows b{flex:none;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.shell .usage-jobs{max-height:240px;overflow:auto}
.shell .usage-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px}
.shell .usage-foot .box-note{margin:0}
.shell .info-meta{display:flex;align-items:center;gap:8px}
.shell .info-meta small{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
/* Under a chat reply: what the job behind it used, quiet and small. */
.shell .msg-credits{display:block;margin-top:6px;font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .info-pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:11px;border:1px solid var(--line-strong);font-size:11px;font-style:normal;font-weight:500;color:var(--ink-2);background:#ffffff06}
.shell .info-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.shell .info-pill.you{color:#f0c987;border-color:rgba(240,201,135,.28);background:rgba(240,201,135,.06)}
.shell .info-pill.stuck{color:#ff9cad;border-color:rgba(255,156,173,.28);background:rgba(255,156,173,.06)}
.shell .info-pill.work{color:#a9c8ff;border-color:rgba(169,200,255,.28);background:rgba(169,200,255,.06)}
@media(max-width:1000px){
 .shell .agent-inbox,.shell .agent-inbox.info-open{grid-template-columns:240px minmax(0,1fr)}
 .shell .thread-info{position:absolute;top:0;right:0;bottom:0;width:300px;z-index:3;box-shadow:-20px 0 50px #0009}
}
@media(max-width:650px){
 .console-layout.shell.page-agents.full-page #page-screen{padding-bottom:76px}
 .shell .agent-inbox,.shell .agent-inbox.info-open{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
 .shell .thread-list{border-right:0;border-bottom:1px solid var(--line)}
 .shell .thread-search{display:none}
 .shell .threads{flex-direction:row;overflow-x:auto;padding:10px 8px;scrollbar-width:none}
 .shell .thread-row{flex-direction:column;width:auto;min-width:68px;padding:6px;gap:6px}
 .shell .thread-main{align-items:center}.shell .thread-top time,.shell .thread-preview{display:none}
 .shell .thread-top strong{font-size:12px}
 .shell .thread-body{padding:18px 16px 8px}
 .shell .thread-actions{padding:10px 16px 0}
 .shell .agent-composer{width:calc(100% - 32px);margin:10px 16px 12px}
 .shell .thread-info{width:100%}
}
.shell .switch{margin-left:auto;width:40px;height:22px;border-radius:12px;background:#2a2a31;position:relative;flex:none;transition:background-color .2s ease,transform .12s var(--ease-out)}
.shell .switch span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#d8d3da;transition:transform .22s var(--ease-out)}
.shell .switch[aria-checked=true]{background:rgb(var(--accent))}
.shell .switch[aria-checked=true] span{transform:translateX(18px);background:#fff}
.shell .agent-row .switch[aria-checked=true]{background:rgb(var(--c))}

/* Brain */
.shell .search-input{width:100%;margin-bottom:6px}
.shell .brain-note{padding:12px 0;border-top:1px solid #ffffff0c}
.shell .brain-note h3{margin:0 0 5px;font-size:13px}
.shell .brain-note p{margin:0 0 5px;font-size:12px;line-height:1.7;color:#b8b1bb;white-space:pre-wrap}
.shell .brain-note small{font-size:11px;color:#8f8994}
.shell .brain-graph{width:100%;height:auto;display:block}
.shell .brain-graph line{stroke:rgba(var(--accent),.35);stroke-width:1}
.shell .brain-graph circle{fill:rgba(var(--accent),.85)}
.shell .brain-graph .you{fill:#f2eef3}
.shell .brain-graph text{fill:#cfc8d3;font:500 10px Manrope,sans-serif}

/* Apps */
.shell .app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.shell .app-tile{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raise-2);transition:border-color .15s ease}
.shell .app-tile:hover{border-color:var(--line-strong)}
.shell .app-tile h3{margin:0;font-size:13px;font-weight:600;color:var(--ink)}
.shell .app-tile p{margin:3px 0 0;font-size:12px;color:var(--ink-3)}
/* Neutral monogram instead of a letter in a tinted square. */
.console-layout.shell .app-letter{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--raise-3);border:1px solid var(--line-strong);color:var(--ink-2);font-size:13px;font-weight:700}
/* Real app logos sit on a light disc, so dark logos stay visible on the dark page. */
.console-layout.shell .app-logo{width:34px;height:34px;flex:none;border-radius:50%;padding:6px;box-sizing:border-box;background:#f4f1f3;object-fit:contain}
.console-layout.shell .app-tile>div{min-width:0;flex:1}
.console-layout.shell .app-tile p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Terminal: the running tool's sign-in note and Stop button. */
.shell .terminal-head{display:flex;align-items:flex-end;gap:12px;margin:14px 0 8px;max-width:760px}
/* Activity: what needs you, above the history. */
.shell .attention{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px;margin-bottom:12px}
.shell .attention .plain-list li{align-items:center}
/* Skills from GitHub: licence verdict, then the skills found (one tap to import when it's safe). */
.shell .repo-list li{align-items:flex-start}
.shell .repo-list small{display:block;margin-top:2px}
.shell .repo-skills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
/* Add system: one key field; each connected system is one calm row (letter, name, state pill, one muted line),
   with what it can do folded underneath. */
.shell .system-connect .inline-form{max-width:560px;margin-top:6px}
.shell .system-connect .inline-form input{letter-spacing:.02em}
.shell .system-connect .inline-form input[aria-invalid=true]{border-color:rgba(255,138,138,.55)}
.shell .field-error{margin:8px 0 0;font-size:12.5px;line-height:1.5;color:#ff9c9c}
.shell .system-connect :is(.field-error,.box-note){max-width:560px;margin-top:8px}
.shell .field-error:empty{display:none}
.shell .system-list li.system-row{align-items:flex-start;gap:14px;padding:14px 0}
.shell .system-list li.system-row:first-child{padding-top:2px}
.shell .system-main{flex:1;min-width:0}
.shell .system-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.shell .system-title strong{font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.shell .system-state{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:20px;border:1px solid var(--line-strong);font-size:11.5px;font-weight:600;white-space:nowrap}
.shell .system-state::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.shell .system-state.is-ok{color:#7fd6a4;border-color:rgba(62,207,142,.24);background:rgba(62,207,142,.06)}
.shell .system-state.is-bad{color:#ff9c9c;border-color:rgba(255,138,138,.24);background:rgba(255,138,138,.06)}
.shell .system-main>small{display:block;margin-top:4px;font-size:12.5px;line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere}
.shell .system-main>small.system-problem{color:#ff9c9c}
.shell .system-controls{display:flex;align-items:center;gap:8px;flex:none}
.shell .system-actions{margin-top:10px}
.shell .system-actions summary{display:inline-flex;align-items:center;gap:8px;min-height:28px;list-style:none;cursor:pointer;font-size:12.5px;color:var(--ink-2);border-radius:6px}
.shell .system-actions summary::-webkit-details-marker{display:none}
.shell .system-actions summary::after{content:'';width:5px;height:5px;margin-top:-3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s var(--ease-out)}
.shell .system-actions[open] summary::after{margin-top:3px;transform:rotate(225deg)}
.shell .system-actions summary:focus-visible{outline:2px solid rgba(var(--accent),.7);outline-offset:3px}
.shell .system-actions ul{list-style:none;margin:6px 0 0;padding:0;max-width:520px}
.shell .system-list .system-actions li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:34px;padding:5px 0;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink-2)}
.shell .system-list .system-actions li:first-child{border-top:0;padding-top:5px}
.shell .tag.is-asks{color:#f0c987;border-color:rgba(240,201,135,.3)}
/* A system's dashboard: its key numbers as stat tiles (label, value, signed change and period). */
.shell .system-numbers{margin-top:12px}
.shell .stat-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;max-width:640px}
.shell .stat-tile{margin:0;padding:11px 13px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--raise-2)}
.shell .stat-tile dt{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .stat-tile dd{margin:0}
.shell .stat-tile .stat-value{margin-top:4px;font-size:20px;line-height:1.2;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em;overflow-wrap:anywhere}
.shell .stat-tile .stat-delta{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .stat-delta .is-good{color:#7fd6a4}
.shell .stat-delta .is-bad{color:#ff9c9c}
.shell .system-numbers-note{margin:8px 0 0;font-size:12px;color:var(--ink-3)}
.shell .system-numbers-note.is-bad{color:#ff9c9c}
@media(max-width:640px){.shell .stat-tile{padding:10px 11px}.shell .stat-tile .stat-value{font-size:17px}}
@media(prefers-reduced-motion:no-preference){.shell:not(.motion-off) .system-row.is-new{animation:settle .32s var(--ease-out) both}}
@media(max-width:640px){.shell .system-list li.system-row{flex-wrap:wrap}.shell .system-controls{width:100%;padding-left:48px}}
/* Notifications (the bell): saved on the account; unread ones carry the accent edge. */
.shell .notice-tools{margin:0 0 12px}
.shell .notice-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-width:820px}
.shell .notice{display:flex;align-items:center;gap:6px;padding:10px 10px 10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raise-1)}
.shell .notice.unread{border-color:rgba(var(--accent),.35);background:rgba(var(--accent),.05)}
.shell .notice-open{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:8px}
.shell .notice-open:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:4px}
.shell .notice-open>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.shell .notice-open strong{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell .notice:not(.unread) .notice-open strong{font-weight:500;color:var(--ink-2)}
.shell .notice-open small{font-size:12px;color:var(--ink-3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shell .notice-open time{font-size:11px;color:var(--ink-3)}
.shell .notice [data-notice-toggle][aria-pressed=true]{color:rgb(var(--accent))}
/* "Connect apps for Inbox" when an agent is switched on */
.need-apps{list-style:none;margin:14px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}
.need-apps li{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raise-2)}
.need-apps li>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.need-apps strong{font-size:13px;color:var(--ink)}
.need-apps small{font-size:12px;color:var(--ink-3)}
.need-apps .app-logo{width:32px;height:32px;flex:none;border-radius:50%;padding:6px;box-sizing:border-box;background:#f4f1f3;object-fit:contain}
.need-apps .secondary-button{flex:none;min-height:32px;padding:6px 12px}
.console-layout.shell #app-search{max-width:520px;margin:0 0 var(--space-4)}
.console-layout.shell .app-tile .connected-button{color:var(--ink-2)}
.console-layout.shell .app-tile .connected-button::before{content:'';width:6px;height:6px;margin-right:7px;border-radius:50%;background:#3ecf8e;display:inline-block;vertical-align:middle}
.shell .app-tile .secondary-button{margin-left:auto;min-height:32px;padding:6px 11px;flex:none}
.shell .app-tile>div{min-width:0}
.shell .scope-list li{display:flex;gap:9px;align-items:center;padding:6px 0;font-size:13px}
.shell .scope-list svg{width:15px;height:15px;color:rgb(var(--accent));flex:none}
.shell .file-list{margin-top:12px;max-height:280px;overflow:auto}
.shell .file-list li{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid #ffffff0c;font-size:12px}
.shell .file-list span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell .file-list small{color:#958e9a;font-size:11px}
.shell .feature-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Automations */
.shell .hours-row{display:grid;grid-template-columns:120px 124px auto 124px 180px;justify-content:start;gap:8px;align-items:center;padding:5px 0;font-size:12px}
.shell #agent-hours-form .primary-button{margin-top:10px}

/* Settings, plans, terminal */
.shell .settings-tabs{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.shell .settings-tabs button{position:relative;padding:10px 12px 12px;font-size:13px;font-weight:500;color:var(--ink-3);transition:color .15s ease}
.shell .settings-tabs button:hover{color:var(--ink-2)}
.shell .settings-tabs button[aria-pressed=true]{color:var(--ink)}
.shell .settings-tabs button[aria-pressed=true]:after{content:'';position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:rgb(var(--accent))}
.shell .plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shell .plan{padding:16px;border:1px solid #ffffff12;border-radius:12px;display:flex;flex-direction:column;gap:8px}
.shell .plan h3{margin:0;font-size:14px}
.shell .plan p{margin:0;font-size:12px;line-height:1.7;color:#b2abb6;flex:1}

/* Chat box */
.console-layout.shell.chat-open{--panel-width:440px}
.console-layout.shell .chat-panel:not([hidden]){display:flex;flex-direction:column;top:82px;bottom:18px;right:18px;width:440px;border-radius:16px;box-shadow:0 24px 60px #0009}
.console-layout.shell .chat-panel .panel-title{border-bottom:1px solid var(--line)}
.console-layout.shell .bubble.user{background:var(--raise-3);border:1px solid var(--line-strong);color:var(--ink);font-size:13px}
.console-layout.shell .pet-panel{background:var(--raise-1);border:1px solid var(--line-strong);border-radius:16px;box-shadow:0 24px 60px #000b}
.shell .messages{flex:1;overflow:auto;display:flex;flex-direction:column}
/* A job still running from this chat (remote.js runningHere): what it is doing, who, and how long so far. */
.shell .chat-working{display:flex;align-items:center;gap:10px;align-self:flex-start;max-width:88%;margin:6px 0 4px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--raise-2)}
.shell .chat-working>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.shell .chat-working strong{font-size:13px;font-weight:600;color:transparent;background:linear-gradient(90deg,var(--ink-3) 0%,var(--ink) 50%,var(--ink-3) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:chat-working 1.8s linear infinite}
.shell .chat-working small{font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
@keyframes chat-working{from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.shell .chat-working strong{animation:none;background:none;color:var(--ink)}}
.shell .bubble.system{color:#aaa2ad;font-size:12px;border-left:2px solid rgba(var(--accent),.45);border-radius:0;padding:4px 0 4px 10px;margin-left:2px}
.shell .chat-empty{margin:auto;text-align:center;color:#a19aa5;padding:20px}
.shell .chat-empty h3{color:#ece6ec;font-size:15px;margin:0 0 8px}
.shell .chat-empty p{font-size:12px;line-height:1.7;margin:0}
.console-layout.shell .big-composer{display:block;margin:10px 12px 12px;padding:8px 10px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff05}
.console-layout.shell .big-composer input{width:100%;font-size:13px;padding:8px 4px;background:transparent;border:0;color:inherit;outline:0}
.shell .composer-tools{display:flex;align-items:center;gap:6px;position:relative;margin-top:4px}
.shell .composer-spacer{flex:1}
.shell .search-chip{display:inline-flex;gap:6px;align-items:center;height:30px;padding:0 11px;border:1px solid #ffffff14;border-radius:16px;font-size:11px;color:#aaa3ad}
.shell .search-chip svg{width:13px;height:13px}
.shell .search-chip[aria-pressed=true]{color:#f3e2e8;border-color:rgba(var(--accent),.4);background:rgba(var(--accent),.1)}
.shell .attach-menu:not([hidden]){position:absolute;bottom:40px;left:0;display:flex;flex-direction:column;padding:6px;border-radius:10px;background:#141418f7;border:1px solid #ffffff18;z-index:5;min-width:220px}
.shell .attach-menu button{display:flex;gap:9px;align-items:center;padding:9px 10px;border-radius:7px;font-size:12px;text-align:left}
.shell .attach-menu button:hover,.shell .attach-menu button:focus-visible{background:#ffffff0c}
.shell .attach-menu svg{width:15px;height:15px}
.shell .composer-attachments:not(:empty){display:flex;flex-wrap:wrap;gap:6px;margin:0 12px}
.shell .attach-chip{display:flex;align-items:center;gap:6px;max-width:100%;padding:3px 3px 3px 4px;border:1px solid #ffffff14;border-radius:8px;font-size:11px}
.shell .attach-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.shell .attach-chip img{width:28px;height:28px;object-fit:cover;border-radius:5px}
.shell .attach-chip>svg{width:14px;height:14px}
.shell .camera-view{width:100%;border-radius:10px;background:#000;aspect-ratio:4/3;margin:6px 0 12px}

/* Floating orb */
.shell .floating-pet{touch-action:none;cursor:grab}
.shell .floating-pet:active{cursor:grabbing}
.shell .floating-pet:focus-visible{outline:2px solid rgba(var(--accent),.8);outline-offset:4px;border-radius:50%}
.shell .pet-panel .primary-button svg,.shell .pet-panel .secondary-button svg{width:15px;height:15px}
.shell .pet-colors{display:flex;gap:10px;padding:12px 20px 4px}
.shell .pet-colors .swatch{width:26px;height:26px}

/* Phone navigation: the bar holds four pages and More; More opens a sheet with the rest */
.console-layout.shell .rail .more-button,.shell .more-sheet{display:none}
.shell .more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.shell .more-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:68px;padding:10px 4px;border-radius:12px;color:var(--ink-2);font-size:12px;font-weight:500;transition:background-color .15s ease,color .15s ease,transform .12s var(--ease-out)}
.shell .more-item svg{width:19px;height:19px}
.shell .more-item:hover{background:#ffffff0a;color:var(--ink)}
.shell .more-item:active{transform:var(--press)}
.shell .more-item.active{background:#ffffff14;color:#fff}

/* ===== Motion: quick, purposeful, interruptible =====
   Following the Emil Kowalski design-engineering rules: transform and opacity only, strong ease-out,
   under 300ms, exits faster than entrances, no motion on frequent actions, reduced motion respected. */
.console-layout.shell{--ease-drawer:cubic-bezier(.32,.72,0,1)}
/* One highlight slides between the chosen options. */
.shell .mode-switch,.shell .segmented{position:relative;isolation:isolate}
.shell .mode-switch button,.shell .segmented button{position:relative;z-index:1}
.shell .mode-switch button[aria-checked=true]{background:transparent;border-color:transparent}
.shell .segmented button[aria-pressed=true]{background:transparent}
.shell .slide-indicator{position:absolute;left:0;top:0;z-index:0;border-radius:8px;pointer-events:none;transition:transform .24s var(--ease-out),width .24s var(--ease-out),height .24s var(--ease-out),opacity .15s ease}
.shell .mode-switch .slide-indicator{background:rgba(var(--accent),.14);box-shadow:inset 0 0 0 1px rgba(var(--accent),.22)}
.shell .segmented .slide-indicator{background:var(--raise-3);border-radius:7px}
@media(prefers-reduced-motion:no-preference){
 /* Dialogs scale up from just below full size; their backdrop fades. */
 .shell:not(.motion-off) #dialog[open]{animation:dialog-in .2s var(--ease-out)}
 .shell:not(.motion-off) #dialog[open]::backdrop{animation:fade-in .2s ease-out}
 /* The chat box comes from the right edge, Goals from the left: each from where it lives. */
 .console-layout.shell:not(.motion-off) .chat-panel:not([hidden]){animation:from-right .26s var(--ease-drawer)}
 .console-layout.shell:not(.motion-off).goals-open #page-screen:not([hidden]){animation:from-left .26s var(--ease-drawer)}
 /* Menus grow from the button that opened them. */
 .shell:not(.motion-off) .attach-menu:not([hidden]){transform-origin:0 100%;animation:pop-from .16s var(--ease-out)}
 .shell:not(.motion-off) .pet-panel:not([hidden]){transform-origin:100% 100%;animation:pop-from .18s var(--ease-out)}
 .shell:not(.motion-off) .more-sheet:not([hidden]){transform-origin:100% 100%;animation:pop-from .18s var(--ease-out)}
 /* Arriving on a page: its sections settle in, 40ms apart (decorative; never blocks a click). */
 .shell:not(.motion-off) .page-enter .page-inner>*,.shell:not(.motion-off) .page-enter .activity-grid>*,.shell:not(.motion-off) .page-enter .agents-page>*{animation:settle .26s var(--ease-out) both}
 .shell .page-enter .page-inner>:nth-child(2),.shell .page-enter .activity-grid>:nth-child(2){animation-delay:.04s}
 .shell .page-enter .page-inner>:nth-child(3),.shell .page-enter .activity-grid>:nth-child(3){animation-delay:.08s}
 .shell .page-enter .page-inner>:nth-child(4){animation-delay:.12s}
 .shell .page-enter .page-inner>:nth-child(n+5){animation-delay:.16s}
 /* Toasts glide; the switch thumb and ticks keep their own short transitions. */
 .shell:not(.motion-off) #toast{transition:opacity .2s ease,transform .24s var(--ease-out)}
}
@keyframes dialog-in{from{opacity:0;transform:scale(.96)}}
@keyframes fade-in{from{opacity:0}}
@keyframes from-right{from{opacity:0;transform:translateX(14px)}}
/* Movement only, never a fade: when the window's frames stall (just started, or behind another window) a fade stayed at
   its first frame and Today opened as an empty, invisible panel (the owner, 2026-11-14: "where is the tab?"). */
@keyframes from-left{from{transform:translateX(-14px)}}
@keyframes pop-from{from{opacity:0;transform:scale(.95)}}
@keyframes settle{from{transform:translateY(6px)}}
/* While Lenis glides an area (smooth.js), the app's own jumps (newest message, a new page) land at once. */
.lenis.lenis-smooth{scroll-behavior:auto!important}
/* Hover lifts only on devices that really hover. */
@media(hover:none){.shell .app-tile:hover,.shell .thread-row:hover,.shell .action-chip:hover{background:inherit}}

/* ===== Spacing and controls: one rhythm everywhere =====
   From the UI UX Pro Max rules: a 4/8px spacing scale, at least 8px between tappable things, related
   items grouped by proximity, one control size. Placed last so every panel follows it. */
.console-layout.shell{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--control:36px;--control-sm:32px}
/* Panels: 20px inside, 16px under the title, 12px between every block. Blocks own no outer margins. */
.console-layout.shell .shell-box{padding:var(--space-5)}
.console-layout.shell .shell-box>*{margin-top:0;margin-bottom:0}
.console-layout.shell .shell-box>*+*{margin-top:var(--space-3)}
.console-layout.shell .shell-box>.box-head{margin-bottom:0;min-height:0}
.console-layout.shell .shell-box>.box-head+*{margin-top:var(--space-4)}
/* A note directly under a control explains that control, so it sits closer. */
.console-layout.shell .shell-box>:is(button,form,.feature-actions,.inline-form)+.box-note{margin-top:var(--space-2)}
/* Forms: a label sits 6px above its field; fields are 16px apart; the submit button follows 20px below. */
.console-layout.shell :is(.stack-form,#dialog form){display:flex;flex-direction:column;gap:var(--space-4);max-width:440px}
.console-layout.shell .dialog-field{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;color:var(--ink-2)}
.console-layout.shell .dialog-field :is(input,select,textarea){margin:0;width:100%}
.console-layout.shell :is(.stack-form,#dialog form)>:is(.primary-button,.secondary-button,.dialog-actions){margin-top:var(--space-1);align-self:flex-start}
.console-layout.shell #dialog form>.dialog-actions{align-self:stretch}
.console-layout.shell :is(.stack-form,#dialog form)>.setting-row{margin:0;padding:0}
/* A list after a row of actions is a new group: more space above it. */
.console-layout.shell .shell-box>:is(.feature-actions,button)+:is(.plain-list,.activity-list,.plan-grid){margin-top:var(--space-5)}
/* Buttons in a panel keep their natural width, aligned to the text's left edge. */
.console-layout.shell .shell-box>:is(.primary-button,.secondary-button){display:flex;width:fit-content}
/* Empty states: title, line, then any action. */
.console-layout.shell .box-empty{padding:0}
.console-layout.shell .box-empty h3{margin:0 0 var(--space-1)}
.console-layout.shell .box-empty p{margin:0}
.console-layout.shell .box-empty>:is(button,.feature-actions){margin-top:var(--space-3)}
/* One control size: 36px buttons and inputs; 32px for actions inside tiles and list rows. */
.console-layout.shell :is(.primary-button,.secondary-button){min-height:var(--control);height:var(--control);padding:0 var(--space-4);font-size:13px;line-height:1;white-space:nowrap}
.console-layout.shell :is(.app-tile,.plain-list,.activity-list,.file-list,.feature-card) :is(.primary-button,.secondary-button),
.console-layout.shell .plain-list .feature-actions .secondary-button{min-height:var(--control-sm);height:var(--control-sm);padding:0 var(--space-3);font-size:12px}
.console-layout.shell :is(.inline-form input,.search-input,.goal-add input:not([type=checkbox]),.hours-row input,.hours-row select,.dialog-field input,.dialog-field select){height:var(--control)}
.console-layout.shell .inline-form{gap:var(--space-2);align-items:center}
.console-layout.shell .feature-actions{gap:var(--space-2)}
/* Disabled: neutral and clearly inactive, never a dimmed brand colour. */
.console-layout.shell :is(.primary-button,.secondary-button):disabled{opacity:1;background:var(--raise-2);border:1px solid var(--line);color:#6d6873;box-shadow:none}
/* Tiles: the label column and its action share one centre line. */
.console-layout.shell .app-tile{align-items:center;min-height:60px}
.console-layout.shell .app-tile>div{flex:1}
/* Lists inside panels: first row starts flush with the block above. */
.console-layout.shell .shell-box>:is(.plain-list,.activity-list) li:first-child{padding-top:0}
/* Plans: text then button, with the button at the foot of each card. */
.console-layout.shell .plan{gap:var(--space-3);padding:var(--space-4)}
.console-layout.shell .plan .secondary-button{margin-top:auto;width:fit-content}
/* Page header: title, line, and its action share one baseline area. */
.console-layout.shell .page-heading{align-items:flex-start}
.console-layout.shell .page-heading>:is(button,.feature-actions){margin-top:var(--space-1)}
@media(max-width:650px){.console-layout.shell :is(.primary-button,.secondary-button){min-height:44px;height:44px}}

/* Smaller screens */
@media(max-width:1000px){
 .shell .activity-grid,.shell .steps-grid,.shell .plan-grid,.shell .two-col,.shell .brain-layout{grid-template-columns:1fr}
 .shell .chat-search{width:210px}.shell .chat-search kbd{display:none}
 .console-layout.shell.full-page #page-screen{padding:28px 24px 70px}
}
@media(max-width:650px){
 .shell .chat-search{width:38px;padding:0;justify-content:center}.shell .chat-search span{display:none}
 .console-layout.shell .wordmark img{height:15px}
 .console-layout.shell .header{gap:8px;padding:0 10px}
 .console-layout.shell .header-actions{gap:2px}
 .console-layout.shell.full-page #page-screen{padding:20px 16px 96px}
 .console-layout.shell .chat-panel:not([hidden]){left:8px;right:8px;width:auto;top:68px;bottom:76px}
 .console-layout.shell .rail{padding:5px 6px}
 .console-layout.shell .rail-main{overflow:visible;flex-wrap:nowrap;justify-content:space-around;width:100%;flex:1}
 .console-layout.shell .rail-main .nav-button:nth-child(n+5):not(.more-button),.console-layout.shell .rail-bottom{display:none}
 .console-layout.shell .rail .more-button{display:inline-flex}
 .console-layout.shell .rail .nav-button{width:48px;height:44px;border-radius:12px}
 .console-layout.shell .rail .nav-button svg{width:20px;height:20px}
 .shell .more-sheet:not([hidden]){display:block;position:fixed;left:9px;right:9px;bottom:76px;z-index:45;padding:8px;background:var(--raise-1);border:1px solid var(--line-strong);border-radius:16px;box-shadow:0 20px 50px #000c}
 @media(prefers-reduced-motion:no-preference){.shell:not(.motion-off) .more-sheet:not([hidden]){animation:sheet-in .2s var(--ease-out)}}
 .console-layout.shell .companion-stage{width:calc(100% - 32px)}
 .console-layout.shell .companion-caption{width:auto}
 .shell .hours-row{grid-template-columns:1fr 1fr}
 .shell .hours-row strong{grid-column:1/-1}.shell .hours-row>span{display:none}
 .shell .page-heading{flex-wrap:wrap}
 .shell .check-grid{grid-template-columns:1fr}
}
.shell #brain-results:not(:empty){margin:12px 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.shell .agent-memory{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.shell .agent-memory h3{font-size:13px;font-weight:600;margin:0 0 8px}.shell .agent-memory .inline-form{margin-top:10px}
.diff-view{max-height:280px;overflow:auto;background:#0d0d10;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:12px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;word-break:break-all}
.shell .brain-results-title{font-size:12px;font-weight:600;color:var(--ink-3);margin:0 0 8px;text-transform:none}
/* Brain: the second brain (remote.js). One box to search, keep and ask; a timeline of everything kept. */
/* One slim row: the box, then add a file, speak, send */
.shell .brain-composer,.console-layout.shell .brain-composer{display:flex;align-items:center;gap:4px;max-width:640px;height:44px;margin:0 0 18px;padding:0 6px 0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--raise-1);transition:border-color .15s ease}
.shell .brain-composer:focus-within{border-color:rgba(var(--accent),.45)}
.shell .brain-composer input:not([type=file]){flex:1;min-width:0;width:auto;height:100%;font:inherit;font-size:13.5px;padding:0;background:transparent;border:0;color:var(--ink);outline:0}
.shell .brain-composer .composer-tools{margin:0;flex:none;gap:2px}
.shell .brain-composer .icon-button{width:32px;height:32px}.shell .brain-composer .send-button{width:32px;height:32px}
/* Automations and Calls: the question, one chat bar, examples to start from, then a card for each automation or call. */
.shell .auto-start{display:flex;flex-direction:column;align-items:center;max-width:720px;margin:48px auto 0;text-align:center}
.shell .auto-ask{margin:0 0 20px;font-size:22px;font-weight:650;letter-spacing:-.3px;line-height:1.3;color:var(--ink);text-wrap:balance}
.shell .auto-composer{display:flex;align-items:center;gap:6px;width:100%;height:56px;padding:0 8px 0 18px;border:1px solid var(--line-strong);border-radius:16px;background:var(--raise-1);transition:border-color .15s ease,box-shadow .15s ease}
.shell .auto-composer:focus-within{border-color:rgba(var(--accent),.45);box-shadow:0 0 0 4px rgba(var(--accent),.08)}
.shell .auto-composer input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;text-align:left;outline:0}
.shell .auto-composer input::placeholder{color:var(--ink-3)}
.shell .auto-composer .composer-tools{display:flex;align-items:center;gap:4px;margin:0;flex:none}
.shell .auto-composer .icon-button,.shell .auto-composer .send-button{width:38px;height:38px}
.shell .auto-reply{width:100%;margin:14px 0 0;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--raise-1);font-size:14px;line-height:1.6;color:var(--ink);text-align:left}
.shell .auto-reply.busy{color:var(--ink-2)}
.shell .auto-ideas{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.shell .auto-note{margin:14px 0 0;font-size:12px;line-height:1.5;color:var(--ink-3)}
.shell .auto-list{margin-top:56px}
.shell .auto-list-title{display:flex;align-items:baseline;gap:8px;margin:0 0 14px;font-size:15px;font-weight:650;color:var(--ink)}
.shell .auto-list-title span{font-size:12px;font-weight:600;color:var(--ink-3)}
.shell .auto-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:start;gap:12px}
/* First-run setup: one big box, a step at a time. */
.console-layout.shell #dialog:has(.setup-form){width:min(600px,calc(100vw - 32px))}
.shell .setup-dots{display:flex;gap:6px;margin-bottom:20px}
.shell .setup-dots i{width:24px;height:4px;border-radius:2px;background:var(--line-strong);transition:background-color .2s ease}
.shell .setup-dots i.done{background:rgba(var(--accent),.45)}
.shell .setup-dots i.on{background:rgb(var(--accent))}
.shell .setup-form{display:flex;flex-direction:column;margin-top:18px}
.shell .setup-form .dialog-field{display:flex;flex-direction:column}
.shell .setup-form .dialog-field small{font-size:11.5px;line-height:1.5;color:var(--ink-3)}
.shell .setup-form .dialog-field input:disabled{color:var(--ink-3)}
.shell .setup-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.console-layout.shell .setup-nav>*{flex:none;width:auto;margin:0}
.console-layout.shell .setup-nav .text-button{display:inline-flex;min-height:36px;padding:0 10px;border:0;background:none;color:var(--ink-2)}
.shell .setup-list{display:flex;flex-direction:column;gap:8px;max-height:46vh;margin:0 0 4px;padding:0;overflow:auto;list-style:none}
.shell .setup-list li{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--raise-2)}
.shell .setup-list li>div{flex:1;min-width:0}
.shell .setup-list strong{display:block;font-size:13.5px;color:var(--ink)}
.shell .setup-list small{display:block;margin-top:2px;font-size:12px;line-height:1.5;color:var(--ink-3)}
.shell .setup-list .switch{margin-left:0}
/* Calls: adding your number before the first call. */
.shell .call-lead{margin:-8px 0 20px;max-width:520px;font-size:14px;line-height:1.6;color:var(--ink-2);text-wrap:balance}
.shell .call-connect{display:flex;flex-direction:column;gap:4px;width:100%;max-width:480px;padding:20px;border:1px solid var(--line-strong);border-radius:16px;background:var(--raise-1);text-align:left}
.shell .call-connect .dialog-field{display:flex;flex-direction:column}
.shell .call-connect .dialog-field small,#bland-settings .dialog-field small{font-size:11.5px;color:var(--ink-3)}
.shell .call-connect .primary-button{align-self:stretch;height:40px;margin-top:6px}
.shell .call-error{margin:0 0 4px;font-size:12.5px;line-height:1.5;color:#ff8fa3}
.shell .auto-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 46px 16px 16px;border-radius:14px}
.shell .auto-card h3{margin:0;font-size:14px;font-weight:650;line-height:1.45;color:var(--ink);overflow-wrap:anywhere}
.shell .auto-kind{font-size:11px;font-weight:600;color:rgb(var(--accent))}
.shell .auto-detail{margin:0;font-size:12px;line-height:1.5;color:var(--ink-2);overflow-wrap:anywhere}
.shell .auto-facts{display:flex;flex-direction:column;gap:3px;margin:4px 0 0;padding:0;list-style:none;font-size:12px;color:var(--ink-3)}
.shell .auto-card .secondary-button{align-self:flex-start;margin-top:8px}
.shell .auto-stop{position:absolute;top:10px;right:10px}.shell .composer-hint{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* Filters: quiet text toggles with a count, only the kinds you have */
.shell .mem-filters{display:flex;flex-wrap:wrap;gap:2px;margin:0}
.shell .mem-filter{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--ink-3);font:inherit;font-size:12.5px;font-weight:500;cursor:pointer;transition:color .15s ease,background-color .15s ease}
.shell .mem-filter span{font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums;opacity:.8}
.shell .mem-filter:hover{color:var(--ink-2)}
.shell .mem-filter[aria-pressed=true]{color:var(--ink);background:var(--raise-3)}
.shell .mem-filter:focus-visible,.shell .mem-hit:focus-visible,.shell .mem-del:focus-visible{outline:2px solid rgba(var(--accent),.55);outline-offset:1px}
.shell .mem-count{font-size:12px;color:var(--ink-3);margin:0 0 6px}
/* Timeline: day groups of calm rows (icon · what · time), the whole row opens it */
.shell .mem-day+.mem-day{margin-top:18px}
.shell .mem-day h3{margin:0 0 4px;font-size:12px;font-weight:600;color:var(--ink-3)}
.shell .mem-list{list-style:none;margin:0;padding:0}
.shell .mem-row{position:relative;display:flex;align-items:center;border-radius:10px;transition:background-color .15s ease}
.shell .mem-row:hover,.shell .mem-row:focus-within{background:#ffffff06}
.shell .mem-hit{flex:1;min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:54px;padding:8px 44px 8px 8px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.shell .mem-ico{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--raise-2);border:1px solid var(--line)}
.shell .mem-ico svg{width:15px;height:15px;color:var(--ink-3)}
.shell .mem-ico[data-kind=chat] svg{color:rgb(var(--accent))}.shell .mem-ico[data-kind=task] svg{color:#6aa8ff}
.shell .mem-ico[data-kind=note] svg{color:#4fd1a5}.shell .mem-ico[data-kind=approval] svg{color:#ffb547}
.shell .mem-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .mem-text{font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .mem-sub{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .mem-hit time{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.shell .mem-del{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:32px;height:32px;opacity:0;transition:opacity .15s ease}
.shell .mem-row:hover .mem-del,.shell .mem-row:focus-within .mem-del{opacity:1}
@media (hover:none){.shell .mem-del{opacity:.7}}
.shell .mem-more{margin-top:14px}
.shell .mem-foot{margin:22px 0 0;font-size:12px;color:var(--ink-3)}
.shell .mem-foot .text-button,.console-layout.shell .mem-foot .text-button{display:inline;width:auto;min-height:0;margin:0 0 0 4px;padding:0;border:0;background:none;font-size:12px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.shell .mem-foot .text-button:hover{color:var(--ink)}
.shell .mem-answer{margin:0 0 16px;padding:14px 16px;border:1px solid rgba(var(--accent),.3);border-radius:14px;background:rgba(var(--accent),.06)}
.shell .mem-answer small{font-size:11px;font-weight:600;color:var(--ink-3)}
.shell .mem-answer p{margin:6px 0 0;font-size:14px;line-height:1.65;color:var(--ink);white-space:pre-wrap}
.shell .mem-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.shell .mem-chip{padding:4px 10px;border:1px solid var(--line-strong);border-radius:16px;font:inherit;font-size:11.5px;color:var(--ink-2);background:var(--raise-2);cursor:pointer}
.shell .mem-chip:hover{color:var(--ink);border-color:#3a3a42}
.shell .mem-convo{max-height:50vh;overflow:auto;margin:6px 0 14px}
.shell .mem-line{padding:9px 11px;border-radius:10px;margin-bottom:6px}
.shell .mem-line.here{background:rgba(var(--accent),.09);border:1px solid rgba(var(--accent),.3)}
.shell .mem-line strong{font-size:12px;margin-right:8px}.shell .mem-line small{font-size:11px;color:var(--ink-3)}
.shell .mem-line p{margin:4px 0 0;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.shell .mem-bar{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between;margin:0 0 16px}
.shell .map-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}.shell .map-head .mem-count{margin:0}
.shell .map-stage{position:relative;height:min(560px,62vh);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#16121a 0%,#0a0a0d 60%,#060608 100%)}
.shell .brain-canvas{position:absolute;inset:0;display:block;cursor:grab;touch-action:none}
.shell .map-legend{position:absolute;top:12px;left:14px;z-index:1;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11.5px;color:var(--ink-2);pointer-events:none}
.shell .map-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:0;box-shadow:0 0 8px currentColor}
.shell .map-zoom{position:absolute;right:12px;bottom:12px;z-index:2;display:flex;gap:8px;align-items:center}.shell .map-zoom .segmented{background:#0e0e12e6}.shell .map-zoom .segmented button{min-width:36px;font-size:14px;font-weight:600}
.shell .brain-canvas.drag{cursor:grabbing}.shell .brain-canvas:focus-visible{outline:2px solid rgba(var(--accent),.6);outline-offset:-2px}
.shell .map-count{position:absolute;left:14px;bottom:14px;z-index:1;font-size:11.5px;color:#34d399;font-variant-numeric:tabular-nums;pointer-events:none}
.shell .map-card{position:absolute;left:12px;top:44px;z-index:2;width:min(300px,calc(100% - 24px));padding:12px 14px;border:1px solid var(--line-strong);border-radius:14px;background:#0d0d11f2;box-shadow:0 18px 40px #0008}
.shell .map-card strong{display:block;font-size:14px;margin:6px 0 4px}.shell .map-card p{margin:0 0 6px;font-size:12.5px;line-height:1.6;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.shell .map-card small{font-size:11px;color:var(--ink-3)}.shell .map-card .feature-actions{display:flex;gap:6px;align-items:center;margin-top:10px}
.shell .map-card-type{font-size:10.5px;font-weight:600;padding:1px 7px;border-radius:6px;color:var(--c);background:color-mix(in srgb,var(--c) 15%,transparent)}
.shell .page-group{margin-top:22px}
.shell .page-group>header{display:flex;align-items:center;gap:8px;margin-bottom:10px;min-height:28px}
.shell .page-group>header i{width:8px;height:8px;border-radius:50%;flex:none}
.shell .page-group h3{font-size:13px;font-weight:600;color:var(--ink);margin:0}
.shell .page-count{font-size:11.5px;font-variant-numeric:tabular-nums;color:var(--ink-3);padding:1px 8px;border-radius:999px;background:var(--raise-2);border:1px solid var(--line)}
.console-layout.shell .page-group>header .page-more{width:auto;border-top:0;margin:0 0 0 auto;font-size:12px;color:var(--ink-2)}
.shell .page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.shell .page-item{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--raise-1);color:var(--ink-2);font:inherit;text-align:left;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,transform 160ms cubic-bezier(.23,1,.32,1)}
.shell .page-item:hover{background:var(--raise-2);border-color:var(--line-strong);color:var(--ink)}
.shell .page-item:active{transform:scale(.98)}
.shell .page-item:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.shell .page-group:not(.open) .page-item.more{display:none}
.shell .page-mark{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 13%,transparent);border:1px solid color-mix(in srgb,var(--c) 28%,transparent)}
.shell .page-mark svg{width:14px;height:14px}
.shell .page-text{min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .page-text strong{font-size:12.5px;font-weight:600;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .page-text small{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){.shell .page-item{transition:none}.shell .page-item:active{transform:none}}
.shell .page-chips{display:flex;flex-wrap:wrap;gap:6px}
.shell .dialog-sub{font-size:12px;font-weight:600;color:var(--ink-3);margin:16px 0 8px}
.console-layout.shell .dialog-field textarea{height:auto;padding:9px 11px;line-height:1.55;resize:vertical}
@media (max-width:640px){.shell .composer-hint{display:none}.shell .map-stage{height:420px}.shell .mem-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.shell .mem-filters button{flex:none}}
/* What Spiral may do on this computer; Add a device */
.shell .pc-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:14px 0 6px}
.shell .pc-preset{display:flex;flex-direction:column;gap:3px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink-2);font:inherit;cursor:pointer}
.shell .pc-preset strong{font-size:13px;font-weight:600;color:var(--ink)}.shell .pc-preset small{font-size:11.5px;line-height:1.45;color:var(--ink-3)}
.shell .pc-preset:hover{border-color:var(--line-strong)}.shell .pc-preset[aria-pressed=true]{background:rgba(var(--accent),.1);border-color:rgba(var(--accent),.5)}
.shell .pc-preset:focus-visible,.shell .pc-caps select:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.shell .pc-caps select{flex:none;min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:12.5px}
.shell .pc-caps select option{background:#121216}
#dialog .qr-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}#dialog .qr{flex:none;width:148px;height:148px;background:#fff;border-radius:10px;padding:4px}#dialog .qr svg{display:block;width:100%;height:100%}
#dialog h3{font-size:13px;font-weight:600;margin:16px 0 6px}
#dialog .qr.big{width:220px;height:220px}
.shell .owner-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 4px}@media(max-width:560px){.shell .owner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}} /* six figures as an even 3×2 (2×3 on a phone): auto-fit left five in a row and one alone below */.shell .owner-stat{border:1px solid var(--line);border-radius:12px;padding:12px 14px}.shell .owner-stat strong{display:block;font-size:22px;font-weight:700;color:var(--ink)}.shell .owner-stat small{color:var(--ink-3);font-size:12px}
.shell .narrow-form{max-width:420px}
#dialog .evidence-shot{display:block;width:100%;max-height:70vh;object-fit:contain;border-radius:10px;border:1px solid var(--line)}

/* Clap and air touch */
.senses-badge{align-self:center;margin-top:10px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid rgba(var(--accent),.45);background:rgba(13,15,19,.86);color:#fff;font:600 12px Manrope,sans-serif;cursor:pointer}
.senses-badge i{width:8px;height:8px;border-radius:50%;background:rgb(var(--accent))}
.air-canvas{position:fixed;inset:0;width:100vw;height:100vh;margin:0;padding:0;border:0;background:transparent;overflow:visible;z-index:9500;pointer-events:none}
.air-video{position:fixed;left:0;top:0;width:2px;height:2px;opacity:0;pointer-events:none}
.air-help{margin:8px 0;padding-left:18px;display:grid;gap:5px;font-size:13.5px;color:var(--muted,#c3c7cf)}
.air-help b{color:#fff;font-weight:600}
.air-keyboard{position:fixed;inset:auto auto 14px 50%;translate:-50% 0;margin:0;width:min(1040px,94vw);padding:12px 14px 16px;display:none;flex-direction:column;gap:7px;border-radius:18px;border:1px solid rgba(var(--accent),0.35);background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 12%,#0a0a0c),#08080a);box-shadow:0 18px 50px #000c,inset 0 1px 0 #ffffff14;color:#fff;z-index:9300}
.air-keyboard:popover-open{display:flex}
.air-row{display:flex;gap:8px;justify-content:center}
.air-preview{min-height:30px;padding:4px 8px 8px;font:500 15px Manrope,sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr}
.air-preview.empty{color:#b98a92}
.air-key{flex:1 1 0;min-width:0;height:54px;border:0;border-radius:9px;background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 92%,#fff),color-mix(in srgb,rgb(var(--accent)) 78%,#000));color:#fff;font:700 18px Manrope,sans-serif;cursor:pointer;box-shadow:0 5px 0 color-mix(in srgb,rgb(var(--accent)) 42%,#000),0 7px 10px #0009,inset 0 1px 0 #ffffff40;transition:translate .05s linear,box-shadow .05s linear}
.air-key.wide{flex:1.6 1 0;font-size:14px}
.air-key.space{flex:5 1 0;font-size:14px}
.air-shift .air-key:not(.wide):not(.space){text-transform:uppercase}
.air-shift .air-key[data-key="shift"]{background:linear-gradient(180deg,#fff,#e8d8db);color:color-mix(in srgb,rgb(var(--accent)) 70%,#000)}
.air-key.air-key-down:not(#_){translate:0 4px;box-shadow:0 1px 0 color-mix(in srgb,rgb(var(--accent)) 42%,#000),inset 0 1px 0 #ffffff30;background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 80%,#fff),rgb(var(--accent)))!important}

/* Settings: one readable column, every box, note, field and switch row sharing the same left and right edges (the owner,
   2026-11-09: boxes ran the full window, text about 170 characters a line, fields 440 px, the switch 1000 px from its label). */
.console-layout.shell.page-settings :is(.settings-tabs,.shell-box){max-width:720px}
.console-layout.shell.page-settings .shell-box :is(.stack-form,#dialog form){max-width:none}
.console-layout.shell.page-settings .shell-box .setting-row{gap:24px}
.console-layout.shell.page-settings .shell-box .stack-form>.feature-actions{margin-top:4px}
.console-layout.shell.page-settings .shell-box .dialog-field small{font-size:12px;line-height:1.5;color:var(--ink-3)}

/* On/off switches: every setting, one look. Green is on, grey is off, the knob says which side. (Red for off read as "on" in
   Spiral's red brand: the owner's "Show Terminal" looked switched on while off, 2026-11-09.) */
html input[type=checkbox]:not(#_),html .shell .switch:not(#_){appearance:none;-webkit-appearance:none;flex:none;position:relative;width:46px;height:26px;margin:0;padding:0;border:0;border-radius:13px;background:#ffffff2e;cursor:pointer;box-shadow:inset 0 1px 2px #0003;transition:background-color .2s ease;accent-color:auto}
html input[type=checkbox]:not(#_)::before,html .shell .switch:not(#_) span{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0006;transform:none;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
html input[type=checkbox]:not(#_):checked,html .shell .switch[aria-checked=true]:not(#_){background:#30c75e}
html input[type=checkbox]:not(#_):checked::before,html .shell .switch[aria-checked=true]:not(#_) span{transform:translateX(20px)}
html input[type=checkbox]:not(#_):disabled{background:#3a3a42;cursor:not-allowed}
html input[type=checkbox]:not(#_):disabled::before{background:#8a8a92}
html input[type=checkbox]:not(#_):focus-visible,html .shell .switch:not(#_):focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){html input[type=checkbox]:not(#_),html input[type=checkbox]:not(#_)::before,html .shell .switch:not(#_),html .shell .switch:not(#_) span{transition:none}}
body.motion-off input[type=checkbox]:not(#_),body.motion-off input[type=checkbox]:not(#_)::before,body.motion-off .shell .switch:not(#_),body.motion-off .shell .switch:not(#_) span{transition:none}

/* Same left edge whether or not a page scrolls; no empty title rows. */
.console-layout.shell.full-page #page-screen{scrollbar-gutter:stable}
.console-layout.shell.page-agents.full-page #page-screen{scrollbar-gutter:auto}
.shell .box-head:has(h2:empty):not(:has(button)){display:none}
.console-layout.shell .setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.shell .check-label{gap:12px}
.page-heading p:empty{display:none}
/* Air touch selection: dark inside with a thin red edge and a strong glow, small icons included. */
html body .air-target:not(#_):not(.air-key):not(#main-orb):not(input){background:rgba(var(--accent),0.08)!important;border-color:rgb(var(--accent))!important;outline:none!important;border-radius:12px!important;box-shadow:0 0 0 1px rgb(var(--accent)),0 0 14px rgba(var(--accent),0.85),0 0 34px rgba(var(--accent),0.45),inset 0 0 10px rgba(var(--accent),0.2)!important}
html body input.air-target:not(#_){outline:none!important;box-shadow:0 0 0 1px rgb(var(--accent)),0 0 14px rgba(var(--accent),0.85),0 0 30px rgba(var(--accent),0.45)!important}
html body .air-target.air-target-down:not(#_):not(.air-key):not(#main-orb):not(input){background:rgba(var(--accent),0.3)!important}
html body .air-key.air-target:not(#_){background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--accent)) 72%,#fff),rgb(var(--accent)));outline:2px solid #fff;outline-offset:1px}
.air-top-row{display:flex;align-items:center;gap:10px;min-height:38px}
.air-top-row .air-preview{flex:1;min-width:0;min-height:0;padding:4px 8px}
.air-key.air-close{flex:none;width:92px;height:36px;font-size:14px;background:linear-gradient(180deg,#2c2c33,#1a1a1f);box-shadow:0 3px 0 #000,inset 0 1px 0 #ffffff26}
/* The keyboard covers the bottom of the screen: what's there moves up above it. */
body.air-kb #chat-panel:not(#_){bottom:calc(var(--air-kb-h,0px) + 24px)!important}
body.air-kb #page-screen:not(#_){bottom:calc(var(--air-kb-h,0px) + 16px)!important}
body.desktop-app #floating-pet,body.desktop-app #pet-panel{display:none!important}

/* ===== Final alignment pass (impeccable, UI UX Pro Max, Emil Kowalski, taste app rules) =====
   One corner for controls, one padding for text in a field, one rhythm in panels and dialogs. Placed last on purpose. */
.console-layout.shell{--r-control:10px;--r-card:16px;--inset:24px}
.console-layout.shell :is(.primary-button,.secondary-button,.icon-button,.dialog-field input,.dialog-field select,.dialog-field textarea,.inline-form input,.search-input,.hours-row input,.hours-row select,.setting-row select,.goal-add input:not([type=checkbox])){border-radius:var(--r-control)}
.console-layout.shell :is(.primary-button,.secondary-button,.icon-button){transition:transform .1s var(--ease-out,ease-out),background-color .15s ease,border-color .15s ease,color .15s ease}
.console-layout.shell :is(.primary-button,.secondary-button,.icon-button):active:not(:disabled){transform:scale(.97)}
/* Text starts at the same place in every field, drop-downs included: the browser's own arrow pushed theirs 4px in. */
.console-layout.shell :is(.dialog-field input,.dialog-field select,.dialog-field textarea,.inline-form input,.search-input,.hours-row input,.hours-row select,.setting-row select,.goal-add input:not([type=checkbox])){padding-left:12px;padding-right:12px;font-size:13px;line-height:1.4;box-sizing:border-box}
.console-layout.shell .dialog-field textarea{padding-top:10px;padding-bottom:10px}
.console-layout.shell :is(.dialog-field select,.hours-row select,.setting-row select){appearance:none;-webkit-appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9a2a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;cursor:pointer}
.console-layout.shell .setting-row select{height:36px;width:auto;min-width:130px;background-color:var(--raise-2);color:var(--ink);border:1px solid var(--line-strong);font-family:inherit}
.console-layout.shell select option{background:#141418;color:#f3eef1}
/* Panels */
.console-layout.shell .shell-box{padding:var(--inset);border-radius:var(--r-card)}
.console-layout.shell .shell-box>.box-head:has(h2:empty):not(:has(button)){display:none}
.console-layout.shell .shell-box>.box-head:has(h2:empty):not(:has(button))+*{margin-top:0}
.console-layout.shell .shell-box>.setting-row{min-height:36px;padding:0;border:0}
.console-layout.shell .shell-box>.setting-row+.box-note{margin-top:4px}
.console-layout.shell .shell-box>.box-note+.setting-row{margin-top:16px}
.console-layout.shell .shell-box>.list-title{margin-top:20px;margin-bottom:0}
.console-layout.shell .box-note,.console-layout.shell .sample-note{font-size:13px;line-height:1.55}
/* Settings: tabs sit on the title's left edge, and rows stay short enough to read a label with its switch. */
.console-layout.shell .settings-tabs{gap:24px;margin-bottom:24px}
.console-layout.shell .settings-tabs button{padding:10px 0 12px}
.console-layout.shell .settings-tabs button[aria-pressed=true]:after{left:0;right:0}
.console-layout.shell #page-screen:has(.settings-tabs)>:is(.settings-tabs,.shell-box){max-width:880px}
.console-layout.shell #page-screen:has(.settings-tabs) .plan{min-width:0}
/* A section on its own takes the full width, instead of half a row. */
.console-layout.shell :is(.two-col,.steps-grid)>:only-child{grid-column:1/-1}
/* Dialogs: close button on the title's centre line, one gap under the title, the same text size throughout. */
.console-layout.shell #dialog{padding:28px;width:min(520px,calc(100vw - 32px));box-sizing:border-box}
.console-layout.shell #dialog .dialog-close{top:22px;right:22px;width:36px;height:36px;display:grid;place-items:center}
.console-layout.shell #dialog-content{display:flex;flex-direction:column;gap:16px}
.console-layout.shell #dialog-content>*{margin:0}
.console-layout.shell #dialog-content>h2{font-size:20px;line-height:24px;padding-right:44px;margin:0}
.console-layout.shell #dialog-content>h3{font-size:14px;font-weight:650;color:var(--ink);margin:8px 0 -8px}
.console-layout.shell #dialog-content>:is(p,.box-note,.sample-note){font-size:13.5px;line-height:1.55;color:var(--ink-2)}
.console-layout.shell #dialog-content>.sample-note{font-size:13px;color:var(--ink-3)}
.console-layout.shell #dialog-content form{max-width:none}
.console-layout.shell #dialog-content .dialog-field{font-size:13px}
.console-layout.shell #dialog-content :is(.list-row,.plain-list li){padding-left:0;padding-right:0}
.console-layout.shell #dialog-content>.setting-row{min-height:36px;padding:0;border:0}
.console-layout.shell #dialog-content>.feature-actions{margin-top:4px}
.console-layout.shell .link-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:var(--r-control);background:var(--raise-2);border:1px solid var(--line)}
.console-layout.shell .link-code code{font-size:20px;font-weight:600;letter-spacing:.14em;color:var(--ink)}
/* Chat panel: one line for its name, level with the close button. */
.console-layout.shell .chat-panel .panel-title{min-height:60px;padding:12px 12px 12px 18px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}
.console-layout.shell .chat-panel .panel-title>div{display:flex;align-items:center;gap:8px}
.console-layout.shell .chat-panel .panel-title small{display:none}
/* The chat's header carries the SPIRAL letters, as the top bar does (the owner, 2026-11-21: "in chatbox also make spiral logo"). */
.console-layout.shell .chat-panel .panel-title .chat-wordmark{display:block;height:14px;width:auto;opacity:.95}
/* Page titles: a close or action button sits level with the title. */
.console-layout.shell .page-heading>.icon-button{margin-top:-2px}
/* Nothing readable under 12px. */
.console-layout.shell :is(.search-chip,.orb-status,.panel-title small,.goal-item small){font-size:12px}
@media(max-width:650px){.console-layout.shell #dialog{padding:22px}.console-layout.shell #dialog .dialog-close{top:16px;right:16px}.console-layout.shell .shell-box{padding:18px}.console-layout.shell .settings-tabs{gap:18px}.console-layout.shell .setting-row select{min-width:110px}}
/* Agents: title, search box and avatars share one left edge. */
.console-layout.shell .agents-bar{padding-left:16px}
.console-layout.shell .thread-search{margin-left:16px;margin-right:16px}
.console-layout.shell .thread-row{padding-left:8px;padding-right:8px}
/* Brain: rows run edge to edge with the page; their hover tint and delete button sit just outside the text. */
.console-layout.shell .mem-list{margin-left:-8px;margin-right:-8px}
.console-layout.shell .mem-hit{padding-right:8px}
.console-layout.shell .mem-row:hover .mem-hit time,.console-layout.shell .mem-row:focus-within .mem-hit time{opacity:0}
/* Touch screens show the delete button all the time: the time moves left of it instead of sitting underneath. */
@media (hover:none){.console-layout.shell .mem-hit{padding-right:44px}.console-layout.shell .mem-row:hover .mem-hit time,.console-layout.shell .mem-row:focus-within .mem-hit time{opacity:1}}
/* Buttons in a row share a centre line and a top. */
.console-layout.shell .feature-actions{align-items:center}
.console-layout.shell .feature-actions>*{margin:0!important;align-self:center}
.console-layout.shell #dialog-content form .feature-actions{margin-top:4px;align-self:stretch}
.console-layout.shell .attention{gap:16px;margin-bottom:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.console-layout.shell .attention>:only-child,.console-layout.shell .attention>:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:1000px){.console-layout.shell .attention{grid-template-columns:1fr}}
.console-layout.shell .mem-list{margin-top:6px}
@media(max-width:650px){.console-layout.shell.goals-open #page-screen{left:8px;right:8px;width:auto;top:68px;bottom:76px;padding:20px 16px}}
@media(max-width:650px){.shell .agent-inbox,.shell .agent-inbox.info-open{grid-template-columns:minmax(0,1fr)}.console-layout.shell .settings-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.console-layout.shell .settings-tabs button{flex:none}}
.console-layout.shell #app-search{max-width:none}
@media(max-width:650px){.console-layout.shell .settings-tabs{flex-wrap:wrap;overflow:visible;gap:0 18px}.shell .mem-text,.shell .mem-sub{white-space:normal;overflow:visible;text-overflow:clip}}
.shell .thread-messages .text-button{display:inline-flex;align-items:center;min-height:34px;margin-top:8px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-control);font-size:13px;font-weight:500;color:var(--ink);text-decoration:none}.shell .thread-messages .text-button:hover{background:var(--raise-1)}
#main-orb .hand{z-index:2}
#main-orb .float-bits{z-index:3}
/* A switch's row doesn't flip it: only the switch does, so a stray click or pinch beside it changes nothing. */
label.setting-row:has(input[type=checkbox]){pointer-events:none}
label.setting-row:has(input[type=checkbox]) input{pointer-events:auto}
/* Pointed at or selected: the orb's colour instead of grey, on every button, in every colour. */
.shell :is(button,a[href],[role=button],summary):not(.primary-button,.send-button,.orb,.swatch,.air-key,.switch,.settings-tabs button,:disabled):hover,
.shell :is(.nav-button.active,.thread-row.selected,.segmented button[aria-pressed=true],.mem-filter[aria-pressed=true],.mode-switch button[aria-checked=true]){background:rgba(var(--accent),.2)!important;box-shadow:inset 0 0 0 1px rgba(var(--accent),.5)!important;color:#fff!important}
.shell .settings-tabs button:hover{color:rgb(var(--accent))}

/* Teach Spiral your voice: the line to read, how loud you are while it listens, and the two buttons. */
.shell .voice-teach .setting-row>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.shell .voice-teach small{font-size:12px;color:var(--ink-3);line-height:1.5}
.shell .voice-teach-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
/* "Forget my voice" beside "Teach again": its own width and the button's height. As a full-width list link it filled the
   group and pushed "Teach again" out past the card's edge (the owner's screenshot, 2026-11-10). */
.console-layout.shell .voice-teach-actions .text-button{display:inline-flex;align-items:center;flex:none;width:auto;min-width:0;min-height:36px;margin:0;padding:0 12px;border:0;white-space:nowrap}
.console-layout.shell .voice-teach-actions .secondary-button{flex:none;white-space:nowrap}
/* The row sits in the card like every other Settings row: no margins or padding of its own (they left 7px extra above
   it and 24px under it, so this card alone looked taller than the rest). */
.console-layout.shell .voice-teach .setting-row{min-height:36px;margin:0;padding:0;border:0}
.shell .voice-line{margin:4px 0 0;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--raise-2);color:var(--ink);font-size:15px;line-height:1.7;text-wrap:pretty}
.shell .voice-meter{height:4px;margin-top:10px;border-radius:2px;background:var(--raise-3);overflow:hidden}
.shell .voice-meter i{display:block;height:100%;background:rgb(var(--accent));transform:scaleX(0);transform-origin:left;transition:transform 90ms linear}
@media(prefers-reduced-motion:reduce){.shell .voice-meter i{transition:none}}
@media(max-width:650px){.shell .voice-teach .setting-row{flex-direction:column;align-items:flex-start;gap:10px}}
/* App and AI-tool tiles: the name and its button on one line, the description under them at the tile's full width.
   Side by side, the description was squeezed to about ten letters a line and cut ("Gmail is Google's…"), names wrapped
   ("Google / Calendar") and tiles came out at different heights (the owner, 2026-11-10: "text cluttered"). */
.console-layout.shell .app-grid{grid-template-columns:repeat(auto-fill,minmax(264px,1fr));gap:12px}
/* Tiles are already cards: a box around a grid of them (Terminal's "Your AI tools") was a card inside a card. The box's
   heading and note stay, lined up with the page, without its own frame. */
.console-layout.shell .shell-box:has(>.app-grid){padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.console-layout.shell .app-tile{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:10px;padding:14px;min-height:0}
.console-layout.shell .app-tile>div:not(.feature-actions){display:contents}
.console-layout.shell .app-tile h3{grid-column:2;grid-row:1;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.console-layout.shell .app-tile p{grid-column:1/-1;grid-row:2;margin:0;font-size:12.5px;line-height:1.5;min-height:3em}
.console-layout.shell .app-tile>:is(.secondary-button,.primary-button,.tag,.feature-actions){grid-column:3;grid-row:1;margin:0}
.console-layout.shell .app-tile .feature-actions{display:flex;flex-wrap:nowrap;gap:6px}
/* Measured on every page, 2026-11-11: nothing under 12px (times, counts, tags and the access levels' notes were 11px),
   and nothing too faint to read (the selected agent's preview line was 4.0:1, the Brain's counts 4.2:1). */
.console-layout.shell :is(.thread-row time,.tag,.mem-filter span,.pc-presets small){font-size:12px}
.console-layout.shell .thread-row.selected .thread-preview{color:var(--ink-2)}
.console-layout.shell .mem-filter span{color:var(--ink-2);opacity:1}
/* Activity: "Needs you" sat 32px above the cards under it, twice the gap between every other pair of cards. */
.console-layout.shell .attention>.shell-box:last-child{margin-bottom:0}
/* A goal ticked on the page: a ring, filled with the accent and a drawn tick when done (no control for it existed). */
.console-layout.shell .goal-tick{flex:none;width:20px;height:20px;padding:0;border-radius:50%;border:1.5px solid var(--line-strong);background:transparent;cursor:pointer;position:relative;transition:border-color .15s ease,background-color .15s ease,transform .16s var(--ease-out)}
.console-layout.shell .goal-tick:hover{border-color:rgba(var(--accent),.7)}
.console-layout.shell .goal-tick:active{transform:scale(.94)}
.console-layout.shell .goal-tick:focus-visible{outline:2px solid rgba(var(--accent),.7);outline-offset:2px}
.console-layout.shell .goal-tick[aria-checked=true]{background:rgb(var(--accent));border-color:rgb(var(--accent))}
.console-layout.shell .goal-tick[aria-checked=true]::after{content:'';position:absolute;left:6px;top:2.5px;width:4.5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
/* Typing a goal on the Goals page (it could only be said). */
.console-layout.shell .goal-add{margin:18px 0 0}
.console-layout.shell .goal-add input[name=goal]{flex:1 1 180px;min-width:0}
/* Phone number with its country (Calls): the country list as wide as its words, the number takes the rest. */
.console-layout.shell .phone-field{display:flex;gap:8px;align-items:stretch}
.console-layout.shell .phone-field select{width:auto;flex:none;max-width:48%}
.console-layout.shell .phone-field input{flex:1;min-width:0}

/* Settings → About me: what Spiral picked up, one calm row each with its Remove. */
.about-learned{list-style:none;width:100%;margin:0 0 10px;padding:0;display:grid;gap:6px}
.about-learned li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #ffffff12;border-radius:12px;background:rgba(var(--accent),.05)}
.about-learned li span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.about-learned li small{opacity:.6;white-space:nowrap}
.mem-learnt{margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:16px}
.mem-learnt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.mem-learnt .text-button,.console-layout.shell .mem-learnt .text-button{flex:none;width:auto;min-width:0;margin:0}
/* Signed out, the sign-in is the whole page: no app behind it, no close button (remote.js authDialog). */
body.signed-out #dialog::backdrop{background:#08080b;backdrop-filter:none}
body.signed-out #dialog .dialog-close{display:none!important}
body.signed-out{background:#08080b}
body.signed-out>:not(#dialog):not(#toast):not(script){visibility:hidden}
/* Owner panel: each person's plan as a small label, and the All / Paid / Free filter. */
.shell .plan-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;line-height:18px;vertical-align:1px;border:1px solid var(--line-strong);color:var(--ink-3)}
.shell .plan-tag.paid{border-color:rgba(52,211,153,.45);color:#34d399}
.shell .plan-tag.owner{border-color:rgba(var(--accent),.5);color:rgb(var(--accent))}
.shell .owner-filter{width:max-content;margin:0 0 8px}
.shell .plain-list li[data-owner-user] small{display:block}
/* The fact gets the room; Remove stays its own size (text buttons are full width elsewhere, which left the fact one letter wide). */
.shell .about-learned .text-button,.console-layout.shell .about-learned .text-button{flex:none;width:auto;min-width:0;margin:0}

/* ---------- Activity, redesigned 2026-11-25 (remote.js activity / attentionParts) ----------
   Every row reads the same way: who or what (an agent's orb or a small kind icon), the thing itself with one muted line,
   when on the right, then its buttons. "Waiting for you" is the one section with the accent; approvals are cards of
   their own because each is a decision; a count sits beside each section's title. */
.shell .act-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;margin-left:6px;padding:0 7px;border-radius:999px;background:var(--raise-3);color:var(--ink-2);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;vertical-align:2px}
.console-layout.shell .act-waiting{border-color:rgba(var(--accent),.3);background:linear-gradient(rgba(var(--accent),.035),rgba(var(--accent),.035)),var(--raise-1)}
.shell .act-waiting>.box-head .act-count{background:rgba(var(--accent),.16);color:rgb(var(--accent))}
.shell .act-group+.act-group{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.shell .act-group>h3{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--ink-2)}
.shell .act-group>h3 .act-count{height:18px;min-width:20px;font-size:11.5px;vertical-align:1px}
.console-layout.shell .act-list>li.act-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;column-gap:12px;row-gap:8px;min-height:56px;padding:12px 0;border-top:1px solid var(--line)}
.console-layout.shell .act-list>li.act-row:first-child{border-top:0;padding-top:2px}
.console-layout.shell .act-list>li.act-row:last-child{padding-bottom:0}
.shell .act-row>:is(.act-who,.act-ico){grid-column:1;grid-row:1}
.shell .act-row>.act-body{grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.shell .act-row:not(:has(>:is(.act-who,.act-ico)))>.act-body{grid-column:1/3}
.shell .act-row>.act-when{grid-column:3;grid-row:1}
.shell .act-row>:is(.feature-actions,button,.tag){grid-column:4;grid-row:1}
.console-layout.shell .act-row .act-body>strong{font-size:13.5px;line-height:1.45;font-weight:600;color:var(--ink);overflow-wrap:anywhere;word-break:normal}
.console-layout.shell .act-row .act-body>small{margin:0;font-size:12px;line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere}
.shell .act-clamp{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.shell .act-when{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.shell .act-who{display:grid;place-items:center;width:28px;height:28px}
.shell .act-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--raise-2);border:1px solid var(--line-strong);color:var(--ink-3)}
.shell .act-ico svg{width:14px;height:14px}
.shell .act-ico.warn{color:#f0c987;background:rgba(240,201,135,.08);border-color:rgba(240,201,135,.22)}
.shell .act-ico.bad{color:#ff9cad;background:rgba(255,156,173,.08);border-color:rgba(255,156,173,.22)}
.shell .act-ico.work{color:#a9c8ff;background:rgba(169,200,255,.08);border-color:rgba(169,200,255,.22)}
/* A question: the answer sits under it, inside the text column. Send stays quiet until there's something to send. */
.console-layout.shell .act-list>li.ask-item{align-items:start}
.shell .ask-item>.act-when{padding-top:2px}
.console-layout.shell .ask-answer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0}
.console-layout.shell .ask-answer .ask-form{flex:1 1 240px}
.console-layout.shell .ask-answer .ask-form input{height:34px;background:var(--raise-2);border-color:var(--line-strong);font-size:13px}
.console-layout.shell .ask-answer .ask-form input::placeholder{color:var(--ink-3)}
.console-layout.shell .ask-answer .secondary-button{height:34px;min-height:34px}
.console-layout.shell .ask-form:has(input:not(:placeholder-shown)) .ask-send{background:rgb(var(--accent));border-color:transparent;color:#16050a}
/* An approval: a full-width row (the email inside is the only inner surface: no card in a card), a line between two. */
.console-layout.shell .act-list>li.approval-item{padding:16px 0;border-top:1px solid var(--line)}
.console-layout.shell .act-list>li.approval-item:first-child{border-top:0;padding-top:2px}
.console-layout.shell .act-list>li.approval-item:last-child{padding-bottom:0}
.console-layout.shell .approval-item .feature-actions{margin-top:2px}
/* Loading: three quiet bars where the rows will be. */
.shell .act-skeleton{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.shell .act-skeleton li{height:40px;border-radius:10px;background:linear-gradient(90deg,var(--raise-2) 0%,var(--raise-3) 50%,var(--raise-2) 100%);background-size:200% 100%}
.shell .act-skeleton li:nth-child(2){width:86%}.shell .act-skeleton li:nth-child(3){width:64%}
@media(prefers-reduced-motion:no-preference){.shell:not(.motion-off) .act-skeleton li{animation:act-shimmer 1.4s linear infinite}}
@keyframes act-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
.shell .activity-all .act-list{margin-top:4px}
.shell .act-when-in{display:none}
/* A page-wide notice above the sections (all automations paused): one quiet line with its link. */
.shell .act-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 16px;padding:10px 14px;border:1px solid rgba(240,201,135,.22);border-radius:12px;background:rgba(240,201,135,.05);font-size:13px;color:var(--ink-2)}
.shell .act-note>svg{width:15px;height:15px;color:#f0c987;flex:none}
.console-layout.shell .act-note .text-button{display:inline-flex;width:auto;min-height:0;margin:0 0 0 auto;padding:4px 8px;border:0;color:var(--ink);font-weight:600}
/* Phone: the buttons move under the text, the time stays on the right. */
@media(max-width:650px){
 .console-layout.shell .act-list>li.act-row{grid-template-columns:28px minmax(0,1fr) auto}
 .shell .act-row>:is(.feature-actions,button){grid-column:2/-1;grid-row:2;justify-self:start}
 .shell .act-row:not(:has(>:is(.act-who,.act-ico)))>:is(.feature-actions,button){grid-column:1/-1}
 .shell .act-row>.tag{grid-column:3;grid-row:2;justify-self:end}
 .shell .act-row:not(:has(>:is(.act-who,.act-ico)))>.act-body{grid-column:1/3}
 .console-layout.shell .ask-answer .ask-form{flex-basis:100%}
 .shell .act-row>time.act-when{display:none}
 .shell .act-when-in{display:inline}
}

/* ---------- Owner, redesigned 2026-11-25 (remote.js ownerHTML) ----------
   The six figures as one strip (not six cards), then one row a person, then how plans and credits work. */
.shell .owner-figures{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:12px;background:var(--line);overflow:hidden}
.shell .owner-figures>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:14px 16px;background:var(--raise-2)}
.shell .owner-figures strong{font-size:22px;line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.shell .owner-figures small{font-size:12px;line-height:1.35;color:var(--ink-3)}
.shell .owner-wait i{display:block;height:42px;border-radius:8px;background:var(--raise-3)}
.console-layout.shell .owner-figures+.box-note{margin-top:10px}
.console-layout.shell .owner-filter{margin:0 0 6px}
.shell .seg-n{margin-left:3px;font-size:12px;font-weight:500;color:var(--ink-3);font-variant-numeric:tabular-nums}
.shell .segmented button[aria-pressed=true] .seg-n{color:inherit;opacity:.8}
.console-layout.shell .owner-list>li.owner-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto 104px;align-items:center;column-gap:14px;row-gap:10px;min-height:68px;padding:14px 0}
.console-layout.shell .owner-list>li.owner-row:last-child{padding-bottom:0}
.shell .owner-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--raise-3);border:1px solid var(--line-strong);font-size:14px;font-weight:650;color:var(--ink-2)}
.shell .owner-row[data-plan=paid] .owner-avatar{color:#34d399;background:rgba(52,211,153,.08);border-color:rgba(52,211,153,.28)}
.shell .owner-row[data-plan=owner] .owner-avatar{color:rgb(var(--accent));background:rgba(var(--accent),.1);border-color:rgba(var(--accent),.32)}
.shell .owner-who{min-width:0;display:flex;flex-direction:column;gap:2px}
.shell .owner-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.console-layout.shell .owner-name strong{font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.shell .owner-name .plan-tag{margin-left:0}
.shell .plan-tag.off{color:#ff9cad;border-color:rgba(255,156,173,.35)}
.shell .owner-row.is-off .owner-name strong{color:var(--ink-3)}
.console-layout.shell .owner-who small{margin:0;font-size:12px;line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere}
.console-layout.shell .owner-who .owner-email{color:var(--ink-2)}
.shell .owner-use{display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right;white-space:nowrap}
.shell .owner-use b{font-size:13.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.console-layout.shell .owner-use small{margin:0;font-size:12px;line-height:1.45;color:var(--ink-3)}
.shell .owner-row>button{justify-self:end}
.console-layout.shell .owner-list>li.owner-none{display:block;min-height:0;padding:12px 0 4px}
.shell .owner-how{list-style:none;margin:0;padding:0}
.shell .owner-how li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:11px 0;border-top:1px solid var(--line);font-size:13px;line-height:1.5}
.shell .owner-how li:first-child{border-top:0;padding-top:0}
.shell .owner-how li:last-child{padding-bottom:0}
.shell .owner-how li>span:first-child{color:var(--ink-3)}
.shell .owner-how li>span:last-child{display:flex;flex-direction:column;gap:3px;color:var(--ink);overflow-wrap:anywhere}
.shell .owner-how small{font-size:12px;color:var(--ink-3)}
@media(max-width:760px){.shell .owner-figures{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 .console-layout.shell .owner-list>li.owner-row{grid-template-columns:36px minmax(0,1fr) auto;align-items:start}
 .shell .owner-use{grid-column:2;grid-row:2;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 6px;text-align:left;white-space:normal}
 .shell .owner-row>:is(button,.owner-gap){grid-column:3;grid-row:2;align-self:center}
 .shell .owner-how li{grid-template-columns:1fr;gap:2px}
}
@media(max-width:420px){.shell .owner-figures{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- Brain timeline, redesigned 2026-11-25 (remote.js memList / memRow) ----------
   A real timeline: each day's name stays in view while you scroll it, with how many moments it holds; a thin line joins
   the day's moments; each kind has its own soft colour (chat in the app's accent). */
/* Sticky against the page's top edge: the page's own top padding (36px, 28px under 1000px, 20px on a phone) is taken back. */
.console-layout.shell .mem-day h3{position:sticky;top:-36px;z-index:3;display:flex;align-items:baseline;gap:8px;margin:0;padding:12px 0 8px;background:var(--ground);font-size:13px;font-weight:650;color:var(--ink)}
@media(max-width:1000px){.console-layout.shell .mem-day h3{top:-28px}}
@media(max-width:650px){.console-layout.shell .mem-day h3{top:-20px}}
.shell .mem-day-n{font-size:12px;font-weight:500;color:var(--ink-3);font-variant-numeric:tabular-nums}
.console-layout.shell .mem-day+.mem-day{margin-top:10px}
.console-layout.shell .mem-day .mem-list{position:relative;margin-top:0}
.console-layout.shell .mem-day .mem-list::before{content:"";position:absolute;left:23px;top:27px;bottom:27px;width:1px;background:var(--line-strong);pointer-events:none}
.shell .mem-ico{--k:132,126,137;position:relative;z-index:1}
.shell .mem-ico:is([data-kind=chat],[data-kind=agent]){--k:var(--accent)}
.shell .mem-ico[data-kind=task]{--k:106,168,255}
.shell .mem-ico[data-kind=note]{--k:79,209,165}
.shell .mem-ico[data-kind=approval]{--k:255,181,71}
.shell .mem-ico:is([data-kind=reminder],[data-kind=meeting],[data-kind=call]){--k:190,160,255}
.shell .mem-ico[data-kind=notice]{--k:240,201,135}
.console-layout.shell .mem-ico{background:linear-gradient(rgba(var(--k),.1),rgba(var(--k),.1)),var(--raise-1);border-color:rgba(var(--k),.26)}
.console-layout.shell .mem-ico svg{color:rgb(var(--k))}
.console-layout.shell .mem-ico.mem-orb{background:var(--ground);border-color:transparent;overflow:visible}
.console-layout.shell .mem-row:hover .mem-ico,.console-layout.shell .mem-row:focus-within .mem-ico{border-color:rgba(var(--k),.45)}
/* Loading the first time: five quiet rows where the moments will be. */
.shell .mem-loading{display:grid;gap:2px;padding-top:12px}
.shell .mem-loading>div{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:center;min-height:54px}
.shell .mem-loading i{width:30px;height:30px;border-radius:9px}
.shell .mem-loading span{display:grid;gap:8px}
.shell .mem-loading b{height:10px;width:68%;border-radius:5px}
.shell .mem-loading b+b{width:38%;height:8px}
.shell .mem-loading>div:nth-child(2n) b:first-child{width:52%}
.shell .mem-loading :is(i,b){background:linear-gradient(90deg,var(--raise-2) 0%,var(--raise-3) 50%,var(--raise-2) 100%);background-size:200% 100%}
@media(prefers-reduced-motion:no-preference){.shell:not(.motion-off) .mem-loading :is(i,b){animation:act-shimmer 1.4s linear infinite}}
/* Phone: the kinds scroll sideways inside their own row; the fade says there are more. */
@media(max-width:640px){.shell .mem-filters{padding-right:28px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}.shell .mem-bar{flex-direction:column;flex-wrap:nowrap;align-items:stretch}.shell .mem-bar>*{min-width:0}
 .shell .mem-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.shell .mem-sub{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.shell .mem-bar .segmented{width:max-content}}

/* ---------- Settings → Devices, redesigned 2026-11-25 (remote.js devicesHTML, addDeviceDialog) ----------
   One row a device: what it is (computer or phone), its name and tags, online (green) or when last seen, its buttons.
   Add a device sits in the list's heading. */
.shell .dev-ico{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--raise-2);border:1px solid var(--line-strong);color:var(--ink-3)}
.shell .dev-ico svg{width:18px;height:18px}
.console-layout.shell .dev-list>li.dev-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;column-gap:14px;row-gap:10px;min-height:64px;padding:14px 0}
.console-layout.shell .dev-list>li.dev-row:last-child{padding-bottom:0}
.shell .dev-row.is-on .dev-ico{color:#34d399;background:rgba(52,211,153,.08);border-color:rgba(52,211,153,.28)}
.shell .dev-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.shell .dev-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.console-layout.shell .dev-name strong{font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.shell .dev-name .plan-tag{margin-left:0}
.shell .plan-tag.old{color:#f0c987;border-color:rgba(240,201,135,.35)}
.console-layout.shell .dev-main>small{margin:0;font-size:12px;line-height:1.5;color:var(--ink-3)}
.shell .dev-state{display:inline-flex;align-items:center;gap:6px}
.shell .dev-state::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ink-3);opacity:.6}
.shell .dev-state.on{color:#34d399}
.shell .dev-state.on::before{background:#34d399;opacity:1}
.shell .dev-row .feature-actions{flex-wrap:nowrap}
.console-layout.shell .dev-row [data-device-remove].danger{color:#ff9cad;border-color:rgba(255,156,173,.4)}
.console-layout.shell .shell-box>.box-head:has([data-action="device-pair"]){margin-bottom:0}
.console-layout.shell .shell-box>.box-head:has([data-action="device-pair"])+*{margin-top:12px}
.shell .dev-here{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.shell .dev-here p{margin:0;font-size:13px;line-height:1.55;color:var(--ink-2);flex:1 1 260px}
/* The Add a device dialog: Phone, Another Windows computer, Another Spiral app, each with its icon, a line between. */
.shell .add-device{display:flex;flex-direction:column}
.shell .add-part{padding:16px 0}
.shell .add-part+.add-part{border-top:1px solid var(--line)}
.shell .add-part:last-child{padding-bottom:0}
.console-layout.shell #dialog .add-part h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;font-weight:650;color:var(--ink)}
.shell .add-part h3 .dev-ico{width:28px;height:28px;border-radius:8px}
.shell .add-part h3 .dev-ico svg{width:15px;height:15px}
.shell .add-body{padding-left:38px}
.console-layout.shell #dialog .add-body>p{margin:0 0 8px}
.console-layout.shell #dialog .add-body>p:last-child{margin-bottom:0}
.console-layout.shell #dialog .add-body .qr-row{align-items:flex-start;flex-wrap:nowrap}
.console-layout.shell #dialog .add-body .qr{width:132px;height:132px}
.console-layout.shell #dialog .add-body .qr-row>div:last-child{flex:1 1 auto;min-width:0}
.console-layout.shell #dialog .add-body .qr-row p{margin:0 0 8px}
.shell .add-alt{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px}
.shell .add-alt .sample-note{margin:0;flex:1 1 220px}
/* Access on this computer: one question, three answers, the safety line, More options folded, Stop at the bottom. */
.console-layout.shell .pc-q{margin:0;font-size:14px;font-weight:600;color:var(--ink)}
.console-layout.shell .pc-q+.pc-presets{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0 0}
.console-layout.shell .pc-preset{padding:12px 14px;gap:4px;transition:border-color .15s ease,background-color .15s ease,transform .12s var(--ease-out)}
.console-layout.shell .pc-preset:active{transform:var(--press)}
.console-layout.shell .pc-preset strong{font-size:14px}
.console-layout.shell .pc-preset small{font-size:12.5px;line-height:1.45}
.console-layout.shell .pc-safe{margin-top:10px}
.shell .pc-more{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.shell .pc-more>summary{cursor:pointer;width:max-content;font-size:13px;font-weight:500;color:var(--ink-2);padding:4px 0}
.shell .pc-more>summary:hover{color:var(--ink)}
.shell .pc-more[open]>summary{margin-bottom:10px}
.shell .pc-stop{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.shell .pc-stop p{margin:0;flex:1 1 220px;font-size:13px;line-height:1.5;color:var(--ink-2)}
.console-layout.shell .pc-stop .danger{color:#ff9cad;border-color:rgba(255,156,173,.4)}
@media(max-width:650px){
 .console-layout.shell .pc-q+.pc-presets{grid-template-columns:1fr}
 .console-layout.shell .dev-list>li.dev-row{grid-template-columns:34px minmax(0,1fr)}
 .shell .dev-row>.feature-actions{grid-column:2;justify-self:start;flex-wrap:wrap}
 .shell .add-body{padding-left:0}
 .console-layout.shell #dialog .add-body .qr-row{flex-wrap:wrap}
}