@charset "UTF-8";
@font-face{font-family:"Quickshell Icons";src:url("./agent-font.woff2") format("woff2"),url("./agent-font.ttf") format("truetype");font-display:swap}
/* Hermes is ⚕, which no Nerd Font carries: a one-glyph cut of Noto Sans Symbols (OFL) so it never falls back to an emoji. */
@font-face{font-family:"Quickshell Icons";src:url("./fonts/agent-symbols.woff2") format("woff2");unicode-range:U+2695;font-display:swap}
@font-face{font-family:"Agent Symbols";src:url("./fonts/agent-symbols.woff2") format("woff2");unicode-range:U+2695;font-display:swap}
.qs-mark{display:inline-block;font-family:"Quickshell Icons",monospace;font-weight:400;font-style:normal}
.agent-chooser .agent-choice span{font-family:"Quickshell Icons",monospace!important;font-weight:400!important}
/* Card figures: tabular digits in fixed slots so CTX and recall line up down a
   column of cards; the figure is bright, its label and unit stay quiet. */
.session-status .context-value,.session-status .memory-value{display:inline-block;text-align:right;font:10px/1 ui-monospace,monospace;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.session-status .context-value{margin-left:auto;min-width:8ch}
.session-status .memory-value{margin-left:10px;min-width:11ch}
.session-status .num,#terminal-path .num{font-weight:600;color:#ece7f0;font-variant-numeric:tabular-nums}
.session-status .num-label,.session-status .num-unit,#terminal-path .num-label,#terminal-path .num-unit{opacity:.6}
#terminal-path .chat-ctx.full .num{color:inherit}
.context-track{display:block;position:relative;height:3px;overflow:hidden;font-size:0;color:#ffffff30;white-space:nowrap;margin-top:6px;background:currentColor;mask-image:repeating-linear-gradient(to right,#000 0 calc(5% - 2px),transparent calc(5% - 2px) 5%);-webkit-mask-image:repeating-linear-gradient(to right,#000 0 calc(5% - 2px),transparent calc(5% - 2px) 5%)}
.context-track>span{position:absolute;inset:0 auto 0 0;overflow:hidden;color:var(--agent-color);background:currentColor}
.session[data-mode="working"] .qs-mark{color:#fab387;animation:qs-bob 1s steps(1,end) infinite}
.session[data-agent-kind="claude"][data-mode="working"] .qs-mark{animation:qs-spin 1s steps(8,end) infinite}
.session[data-mode="input"] .qs-mark{color:#a6e3a1;animation:qs-breathe 9s ease-in-out infinite}
.session[data-mode="choice"] .qs-mark{color:#f38ba8;animation:qs-blink .5s steps(1,end) infinite}
.session[data-mode="idle"] .qs-mark{opacity:.45}
.session[data-mode="working"] .session-status{color:#fab387}
.session[data-mode="input"] .session-status{color:#a6e3a1}
.session[data-mode="choice"] .session-status{color:#f38ba8}
.session .state{background:currentColor;animation:none}
.terminal-sheet[data-mode="working"] .qs-mark{animation:qs-bob 1s steps(1,end) infinite}
.terminal-sheet[data-agent-kind="claude"][data-mode="working"] .qs-mark{animation:qs-spin 1s steps(8,end) infinite}
@keyframes qs-spin{to{transform:rotate(360deg)}}
@keyframes qs-bob{0%,87.5%,100%{transform:translateY(0)}12.5%,75%{transform:translateY(-1px)}25%,62.5%{transform:translateY(-2px)}37.5%,50%{transform:translateY(-3px)}}
@keyframes qs-blink{0%,100%{opacity:1}50%{opacity:.18}}
@keyframes qs-breathe{0%,13.34%,100%{opacity:1}6.67%{opacity:.35}}

.launch-actions{display:flex;align-items:center;gap:8px}
#launch-default-summary{overflow-wrap:anywhere;line-height:1.5}
.attachments{display:flex;gap:8px;flex-shrink:0;overflow-x:auto}
.attachments:empty{display:none}
.attachments button{display:flex;align-items:center;min-width:76px;min-height:60px;background:#ffffff09;border:1px solid var(--agent-color);border-radius:8px;padding:5px;margin:5px 0}
.attachments img{width:48px;height:48px;object-fit:cover;border-radius:4px}
.user-message img{display:block;max-width:100%;max-height:220px;object-fit:contain;margin-top:10px;border-radius:8px}
.terminal-sheet #terminal{background:transparent;padding:0}
.message-form #attach-image{align-self:center;min-width:44px;min-height:44px}
.session-row{position:relative;min-width:0}
.session-row.has-quick-input .session{height:auto}
.session-row.has-quick-input .session-options{top:34px;transform:none}
.quick-input{border:1px solid var(--border,#414559);border-radius:0 0 12px 12px;background:var(--surface,#242638);font-size:13px;overflow-wrap:anywhere}
.quick-input summary{cursor:pointer;padding:10px 14px;color:var(--blue,#8aadf4);min-height:44px;box-sizing:border-box}
.quick-input-body{padding:0 14px 12px}
.quick-input-hint,.quick-input-result{margin:0 0 10px;line-height:1.5}
.quick-input-result:empty{display:none}
.quick-input label{display:block}
.quick-input textarea{display:block;box-sizing:border-box;width:100%;min-height:86px;margin:7px 0;resize:vertical;font:inherit;line-height:1.5;padding:10px;color:var(--text,#eee);background:var(--base,#181926);border:1px solid var(--border,#414559);border-radius:8px}
.quick-input-actions,.quick-input-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.quick-input button{min-height:40px;font-size:12px}
.quick-input :focus-visible{outline:2px solid var(--blue,#8aadf4);outline-offset:2px}
.session-row .session{width:100%;height:100%;padding-right:52px;-webkit-touch-callout:none;user-select:none;touch-action:pan-y}
.session-row .session-open{display:none}
.session-options{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:44px;min-height:44px;padding:0;background:transparent;border:0;font-size:24px;color:var(--text,#eee)}
/* Touch-first launcher: icon targets and explicit full-width model choices. */
.agent-chooser .agent-picker{gap:14px;margin-top:16px}
.agent-chooser .agent-picker{grid-template-columns:repeat(auto-fit,minmax(86px,1fr))}
.agent-chooser .agent-choice{position:relative;min-height:76px;border-radius:8px 20px 8px 20px;border:1px solid color-mix(in srgb,var(--agent-color) 35%,transparent);color:var(--agent-color);background:color-mix(in srgb,var(--agent-color) 5%,transparent);touch-action:manipulation}
.agent-chooser .agent-choice span{font:700 32px ui-monospace,monospace;margin:0}
.agent-chooser .agent-choice.selected{background:color-mix(in srgb,var(--agent-color) 18%,transparent);border:2px solid var(--agent-color);box-shadow:0 4px 18px color-mix(in srgb,var(--agent-color) 12%,transparent)}
#launch-dialog .launcher-hint{color:var(--muted);font-size:12px;margin:16px 0 0}
.agent-chooser .selected-agent{font:12px ui-monospace,monospace;color:var(--agent-color);margin:17px 0 10px}
.model-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.model-picker.full-catalog{max-height:42dvh;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;scrollbar-color:#c6a0f677 transparent}
.model-group-heading{grid-column:1/-1;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#c1b8d0;padding:12px 2px 4px}
.model-picker .model-choice{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;min-height:76px}
.model-icon{font-family:'Quickshell Icons',monospace;font-size:21px;line-height:1}
.model-copy{min-width:0}.model-copy strong,.model-copy small{overflow-wrap:anywhere}
.model-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-height:68px;padding:12px;border:1px solid #ffffff19;border-radius:10px;background:#ffffff04;touch-action:manipulation}
.model-choice strong{font-size:14px;display:block}.model-choice small{display:block;font-size:11px;line-height:1.45;color:var(--muted);margin-top:5px}
.model-choice[aria-pressed="true"]{border-color:var(--agent-color);background:color-mix(in srgb,var(--agent-color) 12%,transparent)}
.agent-chooser .primary{background:var(--agent-color);box-shadow:none;min-height:50px}
@media(max-width:370px){.model-picker{grid-template-columns:1fr}.model-choice{min-height:56px}}
:root{color-scheme:dark;--bg:#151820;--surface:#1f232d;--text:#eeeef2;--muted:#a0a4b2;--line:#ffffff14;--blue:#b5e5d2;--violet:#cca9d4;--green:#a5dcc4;--peach:#e2b891;--red:#f29daa;font-family:"Agent Symbols",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100dvh}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 0 0,#cb91b018,transparent 50%),radial-gradient(ellipse at 100% 80%,#90bbaa0a,transparent 60%);z-index:-1}
#app{max-width:820px;margin:auto;padding:max(24px,env(safe-area-inset-top)) 22px calc(104px + env(safe-area-inset-bottom))}
.topbar,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar{padding-bottom:23px;border-bottom:1px solid var(--line)}
.eyebrow{font:500 9px ui-monospace,SFMono-Regular,monospace;letter-spacing:.14em;color:var(--muted);margin:0 0 8px}h1{font-size:27px;letter-spacing:-1.2px;font-weight:650;margin:0}h1 span{color:#d4b5cc}h2{font-size:23px;letter-spacing:-.7px;font-weight:600;margin:0}.brand-note{font:10px ui-monospace,monospace;color:#8e929f;margin:8px 0 0}
.icon-button{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;font-size:21px;border:1px solid var(--line);border-radius:50%;background:#ffffff04;color:#b9bdc9}
.hero{display:flex;gap:30px;margin:23px 0 32px;padding:0 1px}.hero div{display:flex;flex-direction:column;gap:5px}.hero span{font-size:25px;font-weight:550;letter-spacing:-.7px;color:var(--text)}.hero small{font-size:11px;color:var(--muted)}.hero .identity{margin-left:auto;text-align:right;justify-content:center}.hero .identity span{font:11px ui-monospace,monospace;color:#c8b0c8;letter-spacing:0}
section[data-view]{margin-top:24px}.primary{border:1px solid #f4e4ef50;background:#d7bacf;color:#2d2430;border-radius:10px;padding:12px 15px;min-height:44px;font-size:12px;font-weight:650;box-shadow:inset 0 1px #ffffff40}.primary:active{background:#e6cfdf}.danger{background:#f29daa12;border:1px solid #f29daa35;color:var(--red);padding:10px;border-radius:8px}.wide{width:100%;margin-top:16px}
.field{display:block;width:100%;border:1px solid #ffffff12;background:#0b0e142f;color:var(--text);border-radius:10px;padding:13px 14px;min-height:46px;font-size:16px}.field::placeholder{color:#818796}.path-field{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}#session-search{margin-top:21px;font-size:14px}
.tabs{display:flex;gap:4px}.tabs button{border:0;background:none;color:#9399a9;font-size:12px;min-height:44px;padding:0 14px;white-space:nowrap}.tabs button.selected{color:var(--text)}.filters{margin-top:9px;margin-bottom:8px;border-bottom:1px solid var(--line)}.filters button{padding:0 9px;margin-right:7px;border-bottom:2px solid transparent}.filters button.selected{border-bottom-color:#d7bacf}
.main-nav{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(380px,calc(100% - 40px));padding:5px;background:#282b36df;border:1px solid #ffffff1c;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:17px;z-index:5;box-shadow:0 8px 35px #0005,inset 0 1px #ffffff0d}.main-nav button{flex:1;min-height:45px;border-radius:12px}.main-nav button.selected{background:#ffffff0e;color:#e7cadc}
.session-list{display:grid;gap:10px;margin-top:14px}.session{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:17px 16px;border-radius:13px;border:1px solid #ffffff10;background:linear-gradient(115deg,#272b35bd,#20242dcc);box-shadow:inset 0 1px #ffffff04}.session:active{background:#303440}.agent-glyph{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border:1px solid #ffffff0b;border-radius:11px;background:#ffffff04;font:600 14px ui-monospace,monospace;color:#c7b1d4!important}.session-copy{flex:1;min-width:0}.session strong{display:block;font-size:15px;font-weight:550;letter-spacing:-.15px}.session small{display:block;font:11px ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#929aaa;margin-top:6px}.path-divider{padding:0 5px;color:#5b626f}.session-status{display:flex;align-items:center;gap:6px;font-size:10px;color:#bdad9f;margin-top:10px}.session-status.working{color:#a5dcc4}.state{width:5px;height:5px;display:inline-block;border-radius:50%;background:#a5dcc4}.state.waiting{background:#d9b58e}.session-open{color:#848c9a;font-size:19px;margin-left:6px}.empty{border:1px dashed #ffffff20;border-radius:12px;padding:25px;color:var(--muted);line-height:1.6;font-size:13px;text-align:center;margin-top:16px}
.usage-grid,.tool-grid{display:grid;gap:10px;margin-top:18px}.usage-group,.tool{background:#ffffff04;border:1px solid var(--line);border-radius:12px;padding:16px}.usage-group h3{font-size:12px;color:var(--muted);margin:0 0 15px}.meter{margin-top:14px}.meter-label{display:flex;justify-content:space-between;gap:10px;font:11px ui-monospace,monospace;margin-bottom:7px}.bar{height:4px;border-radius:5px;background:#ffffff0c;overflow:hidden}.bar i{display:block;height:100%;background:var(--blue)}.tool{display:flex;align-items:center;gap:13px}.tool-copy{flex:1;min-width:0}.tool strong{display:block;font-size:13px}.tool small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.muted{color:var(--muted);font-size:11px}
.sheet,.terminal-sheet{color:var(--text);background:#20242e;border:1px solid #ffffff1b;box-shadow:0 20px 100px #0008}.sheet{width:min(520px,calc(100% - 16px));max-height:90dvh;overflow:auto;margin:auto auto 8px;padding:14px 20px calc(24px + env(safe-area-inset-bottom));border-radius:23px}.sheet::backdrop,.terminal-sheet::backdrop{background:#080b14ae;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.sheet-grip{width:34px;height:3px;margin:0 auto 20px;border-radius:9px;background:#ffffff20}.sheet label{display:block;font-size:12px;color:var(--muted);margin:20px 0 9px}.sheet p{font-size:13px;line-height:1.6}.sheet h2{font-size:20px}.agent-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.agent-choice{border:1px solid var(--line);border-radius:10px;min-height:72px;font-size:12px;background:#ffffff04}.agent-choice span{display:block;margin-bottom:7px}.agent-choice.selected{border-color:#d7bacf;background:#d7bacf12}.error{font-size:12px;color:var(--red)}.folder-list{display:grid;gap:7px}.folder{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:14px;border:1px solid var(--line);border-radius:9px;background:#ffffff04}.folder .git{margin-left:auto;font-size:9px;color:#c7b1d4}.path-up{width:100%;background:none;border:0;color:#c7b1d4;text-align:left;min-height:48px;overflow-wrap:anywhere}
.terminal-sheet{width:100%;max-width:900px;height:100dvh;max-height:100dvh;margin:0 auto;padding:max(10px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));border-radius:0;background:#171b24}.terminal-sheet[open]{display:flex;flex-direction:column}.terminal-sheet header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;flex-shrink:0;padding:0 4px 10px;border-bottom:1px solid var(--line)}.terminal-sheet header strong{font-size:14px;color:#d9c1d8}.terminal-sheet header small{display:block;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:10px ui-monospace,monospace;color:var(--muted);margin-top:5px}.terminal-actions{display:flex;gap:8px}.agent-tabs{flex-shrink:0;margin:5px 0;border-bottom:1px solid var(--line)}.agent-tabs button.selected{color:#d7bacf;border-bottom:2px solid #d7bacf}.agent-chat{flex:1;min-height:0;overflow:auto;padding:15px 3px;font-family:ui-monospace,SFMono-Regular,monospace}.chat-caption,.output-label{font-size:9px;letter-spacing:.09em;color:#9fb8ac}.chat-caption{color:#7f899b;margin-bottom:23px}.agent-output{border-left:2px solid #829a8e;background:#ffffff03;padding:15px 12px;margin:17px 0;border-radius:0 10px 10px 0}.user-message{margin:14px 0 14px 24px;padding:13px;background:#d7bacf0b;border:1px solid #d7bacf20;border-radius:12px 12px 3px 12px}.user-message .output-label{color:#cbb0c8}.user-message p{font-size:13px;line-height:1.6;white-space:pre-wrap}#agent-output-text{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#d9dde6}#terminal{flex:1;min-height:0;overflow:hidden;background:#080a11;padding:4px}.xterm{height:100%}#terminal.offscreen-terminal{position:absolute;left:-10000px;top:0;width:900px;height:650px}.keybar{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;flex-shrink:0;padding:8px 0}.keybar button{min-height:35px;font:10px ui-monospace,monospace;border:1px solid #ffffff10;background:#ffffff03;border-radius:6px;color:#9da6b6}.message-form{display:flex;gap:8px;flex-shrink:0;border-top:1px solid var(--line);padding-top:10px}.message-form textarea{flex:1;min-width:0;background:#ffffff05;border:1px solid #ffffff15;color:var(--text);border-radius:12px;padding:12px;font-size:16px;resize:none}.message-form .primary{align-self:stretch}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#e4d2df;color:#292330;padding:12px 18px;border-radius:12px;font-size:12px;opacity:0;pointer-events:none;z-index:20}#toast.show{opacity:1}
:focus-visible{outline:2px solid #d7bacf;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}
@media(min-width:650px){#app{padding-top:38px}.session-list{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-grid,.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-sheet{height:92dvh;margin:auto;border-radius:20px}.hero{gap:40px}.hero span{font-size:30px}}
@media(max-width:370px){#app{padding-left:14px;padding-right:14px}.hero{gap:18px}.hero .identity span{font-size:9px}.filters button{font-size:11px;padding:0 6px}h2{font-size:21px}}
/* Floral Shoppe: architectural angles, rose marble, mint neon. */
:root{--bg:#211827;--surface:#2d2537;--blue:#91edd0;--violet:#ef91c5;--muted:#b7acbe}
body{background:radial-gradient(ellipse at 0 0,#68344e66,transparent 55%),linear-gradient(145deg,#211827,#17272c);background-attachment:fixed}
.topbar{position:relative;border-bottom:3px solid #91edd0;padding-bottom:25px}
.topbar::after{content:"";width:42px;height:32px;position:absolute;right:58px;bottom:-13px;transform:skewY(-15deg);background:repeating-conic-gradient(#a7f1d6 0% 25%,#336b66 0% 50%) 0/12px 12px;border:2px solid #d9fff0;box-shadow:4px 4px #ed8dbc}
h1{font-family:Georgia,serif;font-size:36px;font-weight:500;letter-spacing:-1.8px;text-shadow:2px 2px #ed8dbc28}h1 span{color:#a7f1d6}.brand-note{color:#c4acbb}.eyebrow{color:#d7a7c3}
.section-heading h2{font-style:italic}.primary{background:#a7f1d6;border-color:#d9fff0;color:#203e38;border-radius:4px 13px 4px 13px;box-shadow:3px 3px #ed8dbc80}
.hero .identity span{color:#efb1d4}.filters button.selected{border-color:#91edd0}.main-nav{background:#302638ed;border-radius:5px 20px 5px 20px;border-color:#eda9cf55;box-shadow:5px 5px #91edd021,0 8px 35px #0005}.main-nav button.selected{background:#e9a0c41a;color:#aff0dc}
.session{--agent-color:#91edd0;position:relative;border-radius:4px 19px 4px 19px;border-color:color-mix(in srgb,var(--agent-color) 30%,transparent);border-left:3px solid var(--agent-color);background:linear-gradient(120deg,color-mix(in srgb,var(--agent-color) 9%,#2c2635),#262331);box-shadow:3px 3px #ed8dbc0c}
.agent-glyph{color:var(--agent-color,#91edd0)!important;background:color-mix(in srgb,var(--agent-color,#91edd0) 10%,transparent);border-color:color-mix(in srgb,var(--agent-color,#91edd0) 25%,transparent);border-radius:3px 10px 3px 10px}.session-open{color:var(--agent-color)}.session small{color:#b1a7bb}
.terminal-sheet{background:linear-gradient(150deg,color-mix(in srgb,var(--agent-color,#91edd0) 8%,#191922),#191922);border-top:2px solid var(--agent-color,#91edd0)}
.terminal-sheet header strong,.terminal-sheet .output-label{color:var(--agent-color)}.terminal-sheet .agent-tabs button.selected{color:var(--agent-color);border-color:var(--agent-color)}.terminal-sheet .agent-output{border-color:var(--agent-color);background:color-mix(in srgb,var(--agent-color) 4%,transparent)}.terminal-sheet .user-message{background:color-mix(in srgb,var(--agent-color) 9%,transparent);border-color:color-mix(in srgb,var(--agent-color) 25%,transparent)}.terminal-sheet .primary{background:var(--agent-color);color:#172027;box-shadow:none}.terminal-sheet :focus-visible{outline-color:var(--agent-color)}.terminal-sheet .message-form textarea:focus{border-color:var(--agent-color)}
.beach-banner{position:relative;isolation:isolate;overflow:hidden;padding:30px 20px;margin-bottom:25px;min-height:195px;border:1px solid #f6bcac66;border-radius:4px 24px 4px 24px;background:linear-gradient(#624671 0%,#ca7689 49%,#efb19a 51%,#568c9a 52%,#224751 82%,#c4a298 83%,#e3bf9d);box-shadow:5px 5px #91edd026}
.beach-banner::after{content:"";position:absolute;inset:52% -25% 17%;z-index:-1;background:repeating-linear-gradient(0deg,transparent 0 12px,#b1f6e93d 13px 14px);transform:skewX(-22deg);animation:tide 9s ease-in-out infinite alternate}
.beach-banner .eyebrow{color:#fff1df}.beach-banner h2{position:relative;max-width:240px;color:#fff5ef;font:italic 28px Georgia,serif;text-shadow:0 2px 12px #352133}.beach-banner p:last-child{color:#fff2e4;font-size:12px;position:relative}.beach-sun{position:absolute;z-index:-1;width:105px;height:105px;right:25px;top:20px;border-radius:50%;background:repeating-linear-gradient(0deg,#ffcb9b 0 11px,transparent 11px 14px);box-shadow:0 0 45px #ffc69740}
[data-view="stack"] .usage-group,[data-view="stack"] .tool{background:linear-gradient(135deg,#31575c77,#3f304c99);border-color:#a7ecda30;border-radius:4px 17px 4px 17px}[data-view="stack"] .usage-group h3{color:#f3c9b4}[data-view="stack"] .bar{height:6px;background:#0c273d66}
button,a,.field,textarea{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
@media(hover:hover){.session:hover,.tool:hover{transform:translateY(-3px);border-color:var(--agent-color,#91edd0);box-shadow:4px 6px #ee8dbb22}.primary:hover{transform:translateY(-2px)}}
.primary:active,.session:active{transform:translateY(1px)}dialog[open]{animation:arrive .22s ease-out}.main-nav{animation:arrive .4s ease-out}.bar i{transition:width .7s ease}.state:not(.waiting){animation:signal 3s ease-in-out infinite}
@keyframes arrive{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes signal{50%{box-shadow:0 0 0 4px #a5dcc41a}}@keyframes tide{to{translate:20px 3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.main-nav{background:#302638;backdrop-filter:none}.sheet::backdrop,.terminal-sheet::backdrop{backdrop-filter:none}}

/* Keep iOS chrome outside the scrolling workspace. The dock has its own row,
   so it cannot obscure agent cards, even after keyboard/viewport changes. */
html { height: 100%; overflow: hidden; background: #19262d; }
body {
  position: fixed;
  inset: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-top: env(safe-area-inset-top, 0px);
}
#app {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  scrollbar-width: thin;
  scroll-padding: 20px;
}
.app-dock {
  padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(0deg, #19262d, #251d2bea);
  border-top: 1px solid #ffffff0b;
}
.app-dock .main-nav {
  position: static;
  transform: none;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px 19px 8px 19px;
  box-shadow: inset 0 1px #ffffff0b;
}
.main-nav button { font-size: 13px; }
.topbar { padding-bottom: 12px; }
.hero { margin: 12px 0; gap: 24px; }
.section-heading { gap: 10px; }
.section-heading h2 { font-size: clamp(20px, 5.4vw, 24px); letter-spacing: -.6px; }
.section-heading .eyebrow { font-size: 8px; letter-spacing: .1em; }
.launch-actions { gap: 7px; flex-shrink: 0; }
.launch-actions .primary { min-height: 44px; padding: 10px 12px; box-shadow: 2px 2px #ed8dbc50; }
.launch-actions .icon-button { width: 44px; height: 44px; font-size: 22px; }
#launch-default-summary {
  margin: 12px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #b7acbe;
}
#session-search { margin-top: 16px; font-size: 16px; background: #15182277; }
.filters { justify-content: space-between; margin-top: 8px; }
.filters button { flex: 1; font-size: 12px; margin: 0; padding: 0 6px; }
.session-list { gap: 8px; margin-top: 10px; }
.session { padding: 11px 12px; gap: 12px; box-shadow: none; }
.session strong { font-size: 15px; font-weight: 600; }
.session small { font-size: 11px; margin-top: 5px; }
.session-status { font-size: 11px; margin-top: 8px; }
.session-open { font-size: 22px; }
.session .agent-glyph { width: 36px; height: 40px; }
.account-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 11px; color: var(--muted); }
.account-panel a { padding: 13px 10px; min-height: 44px; color: #a7f1d6; text-decoration: underline; }
.sheet { max-height: calc(100dvh - env(safe-area-inset-top) - 16px); }
@media (max-width: 370px) {
  .section-heading { flex-wrap: wrap; }
  .hero .identity { max-width: 44%; }
  .hero .identity span { overflow: hidden; text-overflow: ellipsis; }
}

/* Phone workspace: keep branding compact and give the space to live agents. */
@media (max-width: 649px) {
  .topbar .eyebrow, .brand-note { display: none; }
  .topbar h1 { font-size: 29px; line-height: 1.15; }
  .topbar::after { width: 25px; height: 21px; right: 57px; bottom: -8px; background-size: 9px 9px; }
  .hero { align-items: center; gap: 20px; }
  .hero div { flex-direction: row; align-items: baseline; gap: 5px; }
  .hero span { font-size: 20px; }
  .hero small { font-size: 10px; }
  .hero .identity { display: block; }
  .hero .identity span { display: block; font-size: 10px; }
  .hero .identity small { display: none; }
  section[data-view] { margin-top: 12px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 21px; }
  #launch-default-summary { margin-top: 5px; font-size: 10px; }
  #session-search { margin-top: 10px; min-height: 44px; padding: 10px 12px; }
  .filters { margin-top: 2px; margin-bottom: 0; }
  .session { min-height: 72px; padding: 10px 12px; }
  .session strong { font-size: 14px; }
  .session small { font-size: 10px; margin-top: 3px; }
  .session-status { font-size: 10px; margin-top: 5px; }
  .session .agent-glyph { width: 32px; height: 34px; }
  .main-nav button { min-height: 44px; }
}
@media (min-width: 1100px) {
  .session-list, .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The entire telemetry workspace is a coast, not a promotional banner. */
body.coast-view {
  background: linear-gradient(180deg,
    #49344f 0%, #70465f 27%, #93596e 40%,
    #557f83 41%, #305966 43%, #203f49 75%,
    #1d343d 95%, #826e68 99%, #ad9380 100%);
}
body.coast-view::before {
  inset: max(60px, 9%) 5% auto auto;
  width: clamp(95px, 22vw, 190px);
  height: clamp(95px, 22vw, 190px);
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #ffd0a0 0 12px, transparent 12px 16px);
  opacity: .32;
  z-index: 0;
}
body.coast-view::after {
  content: "";
  position: fixed;
  inset: 42% -20% 13%;
  background: repeating-linear-gradient(0deg, transparent 0 30px, #b8f4e60d 31px 32px);
  transform: skewX(-18deg);
  animation: tide 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.coast-view #app { position: relative; z-index: 1; }
.coast-view .topbar { border-color: #f7d9bf9c; }
.coast-view .topbar::after { display: none; }
.coast-view .hero small, .coast-view .hero .identity span,
.coast-view .eyebrow, .coast-view .brand-note { color: #fff0e4; }
.coast-view [data-view="stack"] .section-heading { margin-bottom: 12px; }
.coast-view [data-view="stack"] h2 { color: #fff5ef; font-style: normal; font-size: 21px; font-weight: 650; letter-spacing: -.4px; text-shadow: 0 1px 8px #352438a0; }
.coast-view [data-view="stack"] .muted { color: #fff0e4; }
.coast-view [data-view="stack"] .usage-group,
.coast-view [data-view="stack"] .tool {
  background: linear-gradient(125deg, #202c3af5, #302b3af5);
  border-color: #ffe0c332;
  box-shadow: inset 0 1px #ffffff0c, 0 4px 16px #13273218;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.coast-view [data-view="stack"] .tool strong { color: #faf3ee; font-size: 15px; font-weight: 600; }
.coast-view [data-view="stack"] .tool small { color: #c6cbd7; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.coast-view [data-view="stack"] .tool { padding: 15px 16px; min-height: 76px; }
.coast-view [data-view="stack"] .usage-group { padding: 18px; }
.coast-view [data-view="stack"] .usage-group h3 { font-size: 16px; font-weight: 600; color: #ffdabd; margin-bottom: 19px; }
.coast-view .meter { margin-top: 18px; }
.coast-view .meter-label { align-items: baseline; font: 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #edf0f6; margin-bottom: 8px; }
.coast-view .meter-label strong { font: 600 16px/1.4 ui-monospace,monospace; color: #fff4e8; font-variant-numeric: tabular-nums; }
.coast-view [data-view="stack"] .bar { height: 7px; background: #101c2b; }
.meter-reset { color: #c6cbd7; font-size: 12px; margin-top: 7px; line-height: 1.4; }
.coast-view .usage-grid, .coast-view .tool-grid { gap: 12px; margin-top: 14px; }
.coast-view section[data-view="stack"] + section { margin-top: 25px; }
.launch-advanced { margin-top: 18px; border: 1px solid #ffffff20; border-radius: 12px; padding: 0 14px 14px; }
.router-status { margin: 0 0 12px; font-size: 14px; color: #a6ead4; }
#router-panel summary { min-height: 44px; align-content: center; cursor: pointer; }
.router-models { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.router-model { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #ffffff20; }
.router-model > div { min-width: 0; }
.router-model strong { font-size: 13px; overflow-wrap: anywhere; }
.router-model small { display: block; margin-top: 5px; font-size: 12px; opacity: .8; }
.router-model button { flex: 0 0 100px; min-height: 44px; font-size: 12px; padding: 8px; }
.launch-advanced:not([open]) { padding-bottom: 0; }
.launch-advanced summary { cursor: pointer; min-height: 48px; align-content: center; font-size: 14px; }
.launch-advanced summary span { font-size: 12px; opacity: .7; margin-left: 8px; }
.launch-advanced summary:focus-visible { outline: 2px solid var(--agent-color); outline-offset: 3px; }
.launch-advanced .path-field { overflow-wrap: anywhere; white-space: normal; text-align: left; }
.coast-view .account-panel { color: #fff1e8; }
.coast-view .account-panel { font-size: 12px; padding: 18px 2px 4px; line-height: 1.5; }
.coast-view .app-dock { position: relative; z-index: 2; background: #243d46; border-color: #e6c5aa45; }
.coast-view .main-nav { background: #354c56; border-color: #f7d7bd80; }
.coast-view .main-nav button { color: #d4dce0; }
.coast-view .main-nav button.selected { color: #ffdfbd; background: #efb69e20; }
.coast-view .main-nav button { font-size: 14px; }
.coast-view [data-view="stack"] .section-heading > .muted { display: none; }
@media(prefers-reduced-transparency:reduce) {
  .coast-view [data-view="stack"] .usage-group,
  .coast-view [data-view="stack"] .tool { background: #293d4b; backdrop-filter: none; }
}
.agent-column{display:grid;gap:5px;justify-items:center;flex-shrink:0}
.dev-key,.session-dev-key{display:inline-grid;place-items:center;justify-self:start;min-width:32px;padding:2px 6px;
  border:1px solid color-mix(in srgb,var(--agent-color) 45%,transparent);border-bottom-width:2px;border-radius:6px;
  background:color-mix(in srgb,var(--agent-color) 12%,transparent);
  font:600 10px/1.4 ui-monospace,monospace;letter-spacing:.3px;color:var(--agent-color)}
/* Chat tab: prompt and reply bubbles; replies collapse to a few lines. */
.chat-log{display:flex;flex-direction:column;gap:14px;padding:4px 2px 8px}
.chat-turn{display:flex;flex-direction:column;gap:6px}
.chat-empty{color:var(--muted);font-size:12px;text-align:center;padding:26px 8px}
.chat-unavailable{display:grid;gap:6px;margin:auto 8px;padding:18px;border:1px solid #ffffff12;border-radius:14px;background:#ffffff05;font:13px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.chat-unavailable strong{color:#e7eaf0;font-size:14px}.chat-unavailable span{max-width:38em;margin:auto}
.bubble{max-width:86%;padding:10px 13px;border-radius:14px;font:13.5px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.bubble p{margin:0;white-space:pre-wrap}
.bubble time{display:block;margin-top:4px;font:9.5px ui-monospace,monospace;color:#8f97a6;text-align:right}
.bubble.you{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in srgb,var(--agent-color) 16%,#1b1e26);border:1px solid color-mix(in srgb,var(--agent-color) 32%,transparent);color:#eef0f5}
.bubble.you.sending{opacity:.7}
.bubble.agent{align-self:flex-start;position:relative;border-bottom-left-radius:4px;background:#ffffff08;border:1px solid #ffffff12;color:#d9dde6;text-align:left}
.bubble.agent .reply{white-space:normal}
.bubble.agent .reply> :first-child{margin-top:0}.bubble.agent .reply> :last-child{margin-bottom:0}
.bubble.agent .reply p{margin:0 0 .7em;white-space:normal}.bubble.agent .reply h3{margin:.2em 0 .45em;font-size:14px;line-height:1.35;color:#f0f2f6}
.bubble.agent .reply ul,.bubble.agent .reply ol{margin:.35em 0 .75em;padding-left:1.25em}.bubble.agent .reply li+li{margin-top:.3em}
.bubble.long:not(.open){cursor:pointer}
.bubble.you.long:not(.open) p,.bubble.agent.reply-long:not(.open) .reply{max-height:4.7em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
.bubble.agent pre{margin:6px 0;padding:8px 10px;border-radius:8px;background:#00000040;font:11.5px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.agent code{font:12px ui-monospace,monospace;padding:0 3px;border-radius:4px;background:#ffffff0f}
.chat-tools{margin-top:7px;font:10.5px/1.5 ui-monospace,monospace;color:#9aa3b3}
ul.chat-tools{list-style:none;padding:7px 0 0;border-top:1px solid #ffffff10;display:grid;gap:3px}
ul.chat-tools li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-more{display:block;margin-top:6px;padding:0;border:0;background:none;color:var(--agent-color);font:600 11px Inter,-apple-system,sans-serif;cursor:pointer}
.chat-live{display:block;margin-top:5px;font:10px ui-monospace,monospace;color:var(--agent-color)}
.bubble.typing{display:flex;gap:4px;padding:12px 14px}
.bubble.typing i{width:6px;height:6px;border-radius:50%;background:var(--agent-color);opacity:.35;animation:typing 1.2s infinite}
.bubble.typing i:nth-child(2){animation-delay:.2s}.bubble.typing i:nth-child(3){animation-delay:.4s}
@keyframes typing{30%{opacity:1;transform:translateY(-2px)}}
#sent-messages{display:flex;flex-direction:column;gap:6px;margin-top:6px}
#sent-messages img{max-width:100%;max-height:180px;border-radius:8px;margin-top:6px}
.live-screen{margin-top:14px;border:1px solid color-mix(in srgb,var(--agent-color) 18%,transparent);background:color-mix(in srgb,var(--agent-color) 3%,transparent);border-radius:10px;overflow:hidden}
.live-screen summary{display:flex;gap:9px;align-items:baseline;padding:10px 12px;cursor:pointer;list-style:none}
.live-screen summary::-webkit-details-marker{display:none}
.live-screen summary::before{content:"›";color:var(--agent-color);font:18px/10px ui-monospace,monospace;transform:translateY(2px);transition:transform .16s ease}
.live-screen[open] summary::before{transform:translateY(2px) rotate(90deg)}
#live-last{flex:1;min-width:0;font:10.5px ui-monospace,monospace;color:#9aa3b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-screen[open] #live-last{display:none}
.live-screen #agent-output-text{max-height:min(42dvh,360px);margin:0;padding:0 12px 12px;overflow:auto;overscroll-behavior:contain;border-top:1px solid #ffffff0a}
@media (prefers-reduced-motion:reduce){.bubble.typing i{animation:none;opacity:.7}}
.session-warning{display:flex;align-items:center;gap:10px;margin-top:-4px;padding:9px 12px 10px;border:1px solid #fab38733;border-top:0;border-radius:0 0 13px 13px;background:#fab3870d;font:11px/1.4 ui-monospace,monospace;color:#fab387}
.session-warning span{flex:1;min-width:0;overflow-wrap:anywhere}
.session-warning button{flex-shrink:0;padding:6px 10px;border-radius:8px;border:1px solid #fab38766;background:none;color:#fab387;font:600 11px Inter,-apple-system,sans-serif}
.session-row:has(.session-warning) .session{height:auto;border-bottom-left-radius:0;border-bottom-right-radius:0}
.session-row:has(.session-warning) .session-options{top:34px;transform:none}
.session-warning{margin-top:0}
/* Permission requests: in the chat and as a strip on the session card. */
#chat-approval:not(:empty){margin-top:12px}
.approval{padding:12px 13px;border-radius:14px;border:1px solid color-mix(in srgb,#f38ba8 45%,transparent);background:color-mix(in srgb,#f38ba8 8%,#1b1e26);font:13px/1.5 Inter,-apple-system,sans-serif;color:#eef0f5}
.approval.on-screen{border-color:color-mix(in srgb,var(--agent-color) 45%,transparent);background:color-mix(in srgb,var(--agent-color) 8%,#1b1e26)}
.approval-head strong{color:#f38ba8}.approval.on-screen .approval-head strong{color:var(--agent-color)}
.approval-why{margin:6px 0 0;color:#c9ced8}
.approval pre{margin:8px 0 0;padding:8px 10px;max-height:9em;overflow:auto;border-radius:8px;background:#00000040;font:11.5px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.approval-actions{display:flex;gap:8px;margin-top:10px}
.approval-actions button,.session-approval button{flex:1;min-height:40px;border-radius:10px;border:1px solid #ffffff26;background:#ffffff0a;color:#eef0f5;font:600 13px Inter,-apple-system,sans-serif}
.approval-actions .allow,.session-approval .allow{background:#a6e3a1;border-color:#a6e3a1;color:#11141a}
.approval-actions button:disabled,.session-approval button:disabled{opacity:.5}
.session-approval{border-color:#f38ba855;background:#f38ba80f;color:#f5c2cf}
.session-approval button{flex:0 0 auto;min-height:32px;padding:0 12px;font-size:12px}
.topbar-actions{display:flex;gap:8px;align-items:center}
#notify-toggle svg{display:block;margin:auto}
#notify-toggle[aria-pressed="true"]{color:#a6e3a1;border-color:#a6e3a155;background:#a6e3a112}

/* ---- Phone tidy-up (issue 36): one-row header, one-line stats, search beside
   "New agent", tighter cards and dock, key row on demand in the chat. ---- */
.terminal-sheet:not(.raw-view) .keybar,.terminal-sheet.hide-keys .keybar{display:none}
.keys-toggle{margin-left:auto;font:11px ui-monospace,monospace;color:var(--muted)}
.keys-toggle[aria-pressed="true"]{color:var(--agent-color)}
.terminal-sheet:not(.raw-view) .keys-toggle{display:none}
.message-form{align-items:flex-end}
.message-form textarea{box-sizing:border-box;min-height:44px;max-height:140px}
.message-form .primary{align-self:flex-end;height:44px}
@media (max-width: 649px) {
  .topbar{padding-bottom:10px;border-bottom-width:2px}
  .topbar::after{display:none}
  h1{font-size:29px}
  .topbar .icon-button{width:38px;height:38px;min-width:38px;min-height:38px}
  .hero{margin:8px 0 12px;gap:16px}
  .hero div{flex-direction:row;align-items:baseline;gap:5px}
  .hero span{font-size:17px;letter-spacing:-.3px}
  .hero small{font-size:12px}
  .hero .identity{display:none}
  section[data-view="work"]{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
  section[data-view="work"] > *{grid-column:1 / -1}
  /* Only this view's own heading is flattened into the search row; headings
     inside it (the board) keep their own layout. */
  section[data-view="work"] > .section-heading{display:contents}
  section[data-view="work"] > .section-heading > div:first-child{display:none}
  section[data-view="work"] #session-search{grid-column:1;grid-row:1;margin:0}
  section[data-view="work"] .launch-actions{grid-column:2;grid-row:1}
  #new-agent{min-height:44px;padding:0 14px;font-size:14px;white-space:nowrap;box-shadow:none}
  .filters{margin-top:6px}
  .filters button{min-height:38px;font-size:13px}
  .session-list{gap:8px;margin-top:10px}
  .session{min-height:0;padding:9px 12px;gap:11px}
  .session .agent-glyph{width:30px;height:30px}
  .session small{margin-top:2px}
  .session-status{margin-top:4px}
  .context-track{margin-top:6px}
  .app-dock{padding-top:4px}
  .main-nav button{min-height:40px;font-size:13px}
  .terminal-sheet header{padding-bottom:4px}
  .agent-tabs button{min-height:36px}
  .agent-chat{padding-top:10px;padding-bottom:10px}
  .bubble{max-width:91%;padding:9px 11px;font-size:13px}
  .live-screen #agent-output-text{max-height:34dvh;font-size:11px;line-height:1.55}
  .message-form{gap:6px;padding-top:8px}
  .message-form #attach-image{min-width:42px;width:42px;min-height:42px;height:42px}
  .message-form textarea{min-height:42px;padding:9px 11px}
  .message-form .primary{height:42px;min-height:42px}
  .message-form .primary{min-width:64px;padding:0 14px}
}
@media (max-width: 370px) {
  .terminal-sheet{padding-left:8px;padding-right:8px}
  .message-form .primary{min-width:54px;padding:0 10px}
  .bubble{max-width:94%}
}

/* ---- Motion (issue 37). Transform and opacity only; the reduced-motion rule
   near the top of this file switches every animation and transition off. ---- */
:root{--ease-out:cubic-bezier(.2,.8,.2,1);--ease-spring:cubic-bezier(.3,1.35,.5,1)}
@keyframes rise-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes sheet-up{from{transform:translateY(28px);opacity:.4}to{transform:none;opacity:1}}
@keyframes sheet-down{to{transform:translateY(36px);opacity:0}}
@keyframes backdrop-in{from{opacity:0}}
@keyframes bump{40%{transform:scale(1.22)}}
@keyframes card-flash{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--agent-color,#91edd0) 55%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
@keyframes shimmer{to{background-position:-200% 0}}
@keyframes attention{50%{box-shadow:0 0 0 4px color-mix(in srgb,#f38ba8 22%,transparent)}}
@keyframes reveal{from{opacity:.55;transform:translateY(-3px)}}

/* Cards: in once, staggered on the first load; a flash when the state changes. */
.session-row.enter{animation:rise-in .42s var(--ease-out) both;animation-delay:calc(var(--i,0) * 38ms)}
.session-row.changed .session{animation:card-flash .9s ease-out}
.session{transition:transform .16s var(--ease-out),border-color .25s,background-color .25s}
.session:active{transform:scale(.985)}
.hero span{display:inline-block}
.hero span.bump{animation:bump .45s var(--ease-spring)}

/* Tab highlights slide between tabs. */
.filters.has-indicator,.agent-tabs.has-indicator{position:relative}
.app-dock .main-nav.has-indicator{position:relative;left:auto;right:auto;bottom:auto;transform:none}
.main-nav.has-indicator::before{content:"";position:absolute;top:5px;bottom:5px;left:0;width:var(--ind-w);transform:translateX(var(--ind-x));border-radius:12px;background:#e9a0c41a;transition:transform .38s var(--ease-out),width .38s var(--ease-out);pointer-events:none}
.coast-view .main-nav.has-indicator::before{background:#efb69e20}
.main-nav.has-indicator button.selected{background:transparent}
.main-nav.has-indicator button{position:relative;z-index:1;transition:color .25s}
.filters.has-indicator::after,.agent-tabs.has-indicator::after{content:"";position:absolute;bottom:-1px;left:0;height:2px;width:var(--ind-w);transform:translateX(var(--ind-x));background:#91edd0;border-radius:2px;transition:transform .34s var(--ease-out),width .34s var(--ease-out);pointer-events:none}
.agent-tabs.has-indicator::after{background:var(--agent-color)}
.filters.has-indicator button.selected,.agent-tabs.has-indicator button.selected{border-bottom-color:transparent;box-shadow:none}
.filters button,.agent-tabs button{transition:color .25s}

/* Views fade in when switched to. */
section[data-view]:not([hidden]){animation:fade-in .28s ease-out}

/* Sheets slide up on open and down on close; the backdrop fades. */
.terminal-sheet[open]{animation:sheet-up .34s var(--ease-out)}
.terminal-sheet.closing,.sheet.closing{animation:sheet-down .2s ease-in forwards}
dialog[open]::backdrop{animation:backdrop-in .3s ease-out}

/* Chat: new turns and sent messages slide in; expanded replies ease open. */
.chat-turn.enter{animation:rise-in .36s var(--ease-out) both}
.bubble.you.enter{animation:rise-in .3s var(--ease-out) both;transform-origin:bottom right}
.bubble.just-opened .reply,.bubble.just-opened > p,.bubble.just-opened .chat-tools{animation:reveal .3s var(--ease-out)}
.approval{animation:rise-in .34s var(--ease-out) both,attention 2.2s ease-in-out .5s 3}
.session-approval{animation:attention 2.2s ease-in-out infinite}

/* Press feedback. */
.primary,.icon-button,.approval-actions button,.session-approval button,.chat-more{transition:transform .14s var(--ease-out),opacity .2s,background-color .2s}
.primary:active,.icon-button:active,.approval-actions button:active,.session-approval button:active{transform:scale(.96)}

/* Loading skeletons. */
.skeleton{display:flex;flex-direction:column;gap:12px;padding:6px 2px}
.skeleton i{display:block;height:58px;width:72%;border-radius:14px;background:linear-gradient(90deg,#ffffff08 25%,#ffffff14 37%,#ffffff08 63%) 0 0/200% 100%;animation:shimmer 1.3s linear infinite}
.skeleton i.you{align-self:flex-end;width:52%;height:40px}
.skeleton i.short{width:34%}
.connection-note{margin:0;padding:7px 12px;border-radius:9px;background:#fab3871a;border:1px solid #fab38740;color:#fab387;font:11px ui-monospace,monospace;text-align:center}
.terminal-sheet.offline .message-form .primary{background:#fab387;color:#11141a}
/* Chat: a conversation sits at the bottom; a long tool list stays contained. */
.agent-chat{display:flex;flex-direction:column}
#chat-log{margin-top:auto}
div.chat-tools{display:flex;gap:6px;align-items:baseline;white-space:nowrap}
div.chat-tools span{color:#b9c0cd;min-width:0;overflow:hidden;text-overflow:ellipsis}
ul.chat-tools{max-height:13em;overflow:auto;overscroll-behavior:contain}
.chat-live{display:flex;align-items:center;gap:4px}
.chat-live i{width:4px;height:4px;border-radius:50%;background:var(--agent-color);opacity:.4;animation:typing 1.2s infinite}
.chat-live i:nth-child(2){animation-delay:.2s}
.chat-live i:nth-child(3){animation-delay:.4s;margin-right:4px}

/* Attachments: what is uploading, and how far along. */
.attachments .attachment{position:relative;display:flex;align-items:center;gap:6px;min-width:76px;min-height:60px;background:#ffffff09;border:1px solid var(--agent-color);border-radius:8px;padding:5px;margin:5px 0;color:inherit;overflow:hidden}
.attachments .attachment.uploading{border-style:dashed;border-color:color-mix(in srgb,var(--agent-color) 55%,transparent)}
.attachments .attachment.uploading img{opacity:.5}
.attachments .attachment i{position:absolute;left:0;bottom:0;height:3px;background:var(--agent-color);transition:width .2s linear}
.attachments .attachment small{font:10px ui-monospace,monospace;color:var(--agent-color)}
.message-form .primary:disabled{opacity:.65}
.bubble.you.sent time{color:#a6e3a1}
.chat-note{align-self:center;max-width:90%;padding:5px 11px;border-radius:999px;background:#ffffff08;border:1px solid #ffffff12;font:11px ui-monospace,monospace;color:#9aa3b3;text-align:center}
.handoff-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:20px;box-sizing:border-box}
.handoff-dialog form,.handoff-dialog label{display:flex;flex-direction:column;gap:8px}
.handoff-dialog form{gap:12px}
.handoff-dialog label{margin:0;font-size:14px}
.handoff-dialog button{min-height:44px}
.handoff-dialog p{margin:10px 0}
.handoff-dialog select,.handoff-dialog textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;color:inherit;background:#181b28;border:1px solid #ffffff30;border-radius:8px}
.handoff-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:35dvh;overflow:auto}
.handoff-source{overflow-wrap:anywhere}
.handoff-error{color:#fab387}


.session[data-session]{touch-action:pan-y pinch-zoom}.handoff-dialog textarea{font-size:16px;min-height:120px}.handoff-dialog .handoff-source{overflow-wrap:anywhere;color:var(--muted)}.handoff-dialog .model-copy{min-width:0;overflow-wrap:anywhere}.handoff-dialog .agent-choice{font-size:11px;padding:8px 3px}.handoff-dialog{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.handoff-dialog .handoff-error{color:var(--peach)}.actions-sheet .action-error{color:var(--red)}

.actions-sheet button:not(.primary):not(.danger),.handoff-dialog [data-refresh],.handoff-dialog [data-cancel]{background:#ffffff06;border:1px solid #ffffff1c;border-radius:12px;padding:12px}.actions-sheet .action-error:empty{display:none}.handoff-dialog summary{min-height:44px;padding:10px 0}.actions-sheet button:focus-visible,.handoff-dialog button:focus-visible{outline:2px solid var(--agent-color,var(--text));outline-offset:3px}

.session-row{touch-action:pan-y pinch-zoom}.session-row.swiping{overflow:hidden;border-radius:4px 19px 4px 19px}.session-row.swiping .session{transition:none}.session-row.swiping .session-options{visibility:hidden}.session-row.swiping::before{position:absolute;inset:0;display:flex;align-items:center;padding:18px;font-size:13px;font-weight:600;pointer-events:none}.session-row[data-swipe-action="kill"]::before{content:"Kill…";color:var(--red);background:#f38ba815}.session-row[data-swipe-action="handoff"]::before{content:"Hand off";justify-content:flex-end;color:#91edd0;background:#91edd015}

.terminal-sheet header>div:first-child{min-width:0;overflow-wrap:anywhere}.terminal-actions{flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;gap:6px}@media(max-width:430px){.terminal-sheet header{flex-wrap:wrap;align-items:center}.terminal-sheet header>div:first-child{flex:1 1 100%}.terminal-actions{width:100%;justify-content:flex-end}}

.chat-model-dialog{--agent-color:var(--text);width:min(540px,calc(100% - 20px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px 18px max(18px,env(safe-area-inset-bottom))}.chat-model-dialog .model-picker{margin:18px 0}.chat-model-dialog .model-current{color:var(--muted);font-size:13px;overflow-wrap:anywhere}.chat-model-dialog .model-error{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.chat-model-dialog .primary{background:var(--agent-color);color:#172027}.model-sheet-actions{display:flex;justify-content:flex-end;gap:10px}.model-sheet-actions button{min-height:44px;padding:12px 16px;border-radius:12px}.model-sheet-actions [data-cancel]{background:#ffffff06;border:1px solid #ffffff1c}.chat-grip{display:flex;justify-content:center;flex-shrink:0;padding:4px 0 10px}.chat-grip span{width:36px;height:4px;border-radius:99px;background:#ffffff35}.terminal-sheet.pulling{transform:translateY(var(--chat-pull));transition:none;animation:none}.terminal-sheet .agent-chat{overscroll-behavior-y:contain}.terminal-sheet .chat-grip,.terminal-sheet header{touch-action:pan-x pinch-zoom}.terminal-sheet.raw-view .chat-grip{display:none}@media(min-width:700px){.chat-grip{display:none}}

/* Continue a released pull from its on-screen position, never replay sheet-up. */
@keyframes chat-pull-away{from{transform:translateY(var(--chat-pull,0px));opacity:1}to{transform:translateY(110dvh);opacity:1}}
@keyframes chat-pull-return{from{transform:translateY(var(--chat-pull,0px))}to{transform:translateY(0)}}
@keyframes chat-backdrop-away{to{opacity:0}}
.terminal-sheet.chat-interacted:not(.closing){animation:none}
.terminal-sheet.pulling.returning{animation:chat-pull-return .18s var(--ease-out) forwards}
.terminal-sheet.pulling.closing{animation:chat-pull-away .24s cubic-bezier(.32,0,.67,1) forwards}
.terminal-sheet.pulling.closing::backdrop{animation:chat-backdrop-away .24s ease-out forwards}

/* The chat sheet header: mark, name and key on one line; where it is, what it
   is doing and how full it is on the next; actions kept to their own corner. */
#terminal-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:15px}
#terminal-title .chat-title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#terminal-title .qs-mark{flex:none;font-size:15px;color:var(--agent-color)}
#terminal-path{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;max-width:none;white-space:normal}
#terminal-path .chat-cwd{max-width:min(46vw,320px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#terminal-path .chat-state{display:inline-flex;align-items:center;gap:5px;color:var(--agent-color)}
#terminal-path .chat-state i{width:5px;height:5px;border-radius:50%;background:currentColor}
#terminal-path .chat-state.state-working i{animation:chat-pulse 1.6s ease-in-out infinite}
#terminal-path .chat-ctx.full{color:#f38ba8}
#terminal-path .chat-mem{white-space:nowrap}
/* Leading separators, so a line that wraps never ends on a dangling dot. */
#terminal-path > span:not(:first-child)::before{content:"·";margin-right:10px;color:var(--muted);opacity:.55}
@keyframes chat-pulse{0%,100%{opacity:1}50%{opacity:.25}}
.terminal-sheet header{align-items:flex-start;gap:12px}
.terminal-sheet header>div:first-child{display:grid;gap:6px}
@media(max-width:520px){
  .terminal-sheet header{flex-wrap:nowrap;gap:8px}
  /* The title gets the room; the actions shrink to what they need. */
  .terminal-sheet header>div:first-child{flex:1 1 auto;min-width:0}
  .terminal-actions{flex:0 0 auto;width:auto;flex-wrap:nowrap;gap:5px}
  #terminal-title{font-size:14px}
  #terminal-close{width:34px;height:34px}
  
  #terminal-delete{padding:8px 10px}
}
/* The app's own confirm and prompt: a sheet like every other, with the answer
   on the right where the primary action always sits. */
.ask-sheet{box-sizing:border-box}
.ask-sheet h2{margin:0 0 8px}
.ask-sheet p{color:var(--muted);overflow-wrap:anywhere}
.ask-sheet .error:empty{display:none}
.ask-sheet input{box-sizing:border-box;width:100%;font-size:16px;padding:12px;border-radius:10px;background:#181b28;color:var(--text);border:1px solid #ffffff30}
.ask-sheet label{margin-top:16px}
.ask-sheet label+.muted,.ask-sheet input+.muted{margin:6px 0 0;font-size:12px}
.ask-actions{display:flex;gap:8px;margin-top:22px}
.ask-actions button{flex:1 1 0;min-height:48px}
.ask-actions .field{background:#ffffff06;border:1px solid #ffffff1c;border-radius:10px;padding:12px;color:var(--text);font-size:12px;font-weight:650}
.ask-actions .danger{border-radius:10px;padding:12px 15px;font-size:12px;font-weight:650}
.ask-sheet button:focus-visible{outline:2px solid var(--text);outline-offset:3px}
/* The agent harnesses: one line each, and the one behind says so. */
.harness{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ffffff10}
.harness:last-of-type{border-bottom:0}
.harness small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.harness em{font-style:normal;font-size:12px;color:var(--muted);text-align:right;overflow-wrap:anywhere}
.harness.behind em{color:var(--text)}
.harness.behind .id-name::after{content:"update";margin-left:8px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:650;color:#2d2430;background:#d7bacf;vertical-align:middle}
.harness-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.harness-actions button{flex:1 1 140px;min-height:44px;border-radius:10px}
.harness-actions .field{background:#ffffff06;border:1px solid #ffffff1c;color:var(--text);font-size:12px;font-weight:650;padding:12px}
#harnesses code{overflow-wrap:anywhere}
.harness-news{margin-top:14px;padding:10px 12px;border-radius:10px;font-size:12px;color:var(--text);background:color-mix(in srgb,#f9e2af 10%,transparent);border:1px solid color-mix(in srgb,#f9e2af 35%,transparent)}

/* Agents grouped by project: a header per project, and under each agent the
   tasks it owns there, each a link into Projects. */
.session-group{grid-column:1/-1;min-width:0}
.session-group+.session-group{margin-top:10px}
.session-group-list{margin-top:8px}
.session-group-heading{display:flex;align-items:center;gap:11px;width:100%;min-width:0;min-height:48px;padding:6px 4px;border:0;background:none;color:var(--text);text-align:left;font:inherit}
button.session-group-heading{cursor:pointer;border-radius:10px}
button.session-group-heading:hover{background:#ffffff06}
.session-group-heading:focus-visible,.session-task:focus-visible{outline:2px solid #a6ead4;outline-offset:2px}
.session-group-heading .project-avatar{width:32px;height:32px;border-radius:8px}
.session-group-heading.tinted .project-avatar{background:color-mix(in srgb,var(--project-accent) 14%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--project-accent) 45%,transparent)}
.session-group-copy{display:flex;flex-direction:column;flex:1;min-width:0}
.session-group-copy .eyebrow{display:block;margin:0 0 3px;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-group-heading.tinted .eyebrow{color:color-mix(in srgb,var(--project-accent) 55%,var(--muted))}
.session-group-copy strong{font-size:16px;font-weight:600;letter-spacing:-.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-group-copy small{font:10px ui-monospace,monospace;color:var(--muted);margin-top:3px}
.session-group-plain{min-height:0;padding-top:10px}
.session-group-plain .session-group-copy{flex-direction:row;align-items:baseline;gap:10px}
.session-group-go{color:var(--muted);font-size:20px;flex:none}
.session-row:has(.session-tasks) .session{height:auto;border-bottom-left-radius:0;border-bottom-right-radius:0}
.session-row:has(.session-tasks) .session-options{top:34px;transform:none}
.session-tasks{display:grid;gap:1px;margin-top:0;padding:6px 6px 6px 8px;border:1px solid #ffffff10;border-top:0;border-radius:0 0 13px 13px;background:#ffffff05}
.session-task{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:6px 6px;border:0;border-radius:8px;background:none;color:var(--text);text-align:left;font:inherit;font-size:12px;line-height:1.35;cursor:pointer}
.session-task:hover,.session-task:active{background:#ffffff08}
.session-task-status{flex:none;min-width:52px;font:10px ui-monospace,monospace;color:var(--muted)}
.session-task[data-task-status="working"] .session-task-status{color:#a6ead4}
.session-task[data-task-status="review"] .session-task-status{color:#edd293}
.session-task[data-task-status="done"] .session-task-title{color:var(--muted);text-decoration:line-through;text-decoration-color:#ffffff40}
.session-task-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.session-task-go{flex:none;color:var(--muted)}
.session-task-more{justify-content:flex-start;font-size:11px;color:var(--blue,#a6ead4);min-height:36px}
.session-task-note{margin:0;padding:8px 6px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
/* Where an Agents link lands on the Projects tab. */
.project-card.revealed,.project-task.revealed{animation:reveal-mark 2.4s ease-out}
@keyframes reveal-mark{0%,40%{box-shadow:0 0 0 2px #a6ead4}100%{box-shadow:0 0 0 2px transparent}}
@media (prefers-reduced-motion: reduce){.project-card.revealed,.project-task.revealed{animation:none;box-shadow:0 0 0 2px #a6ead4}}
@media (min-width:650px){button.session-group-heading{width:auto;max-width:100%;padding-right:12px}.session-group-go{margin-left:10px}}
.auto-accept{display:flex;align-items:flex-start;gap:12px;margin:12px 0 4px;padding:10px 12px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff05;cursor:pointer}
.auto-accept input{flex-shrink:0;width:20px;height:20px;margin:2px 0 0;accent-color:#a6e3a1}
.auto-accept span{display:grid;gap:3px;min-width:0}
.auto-accept strong{font-size:14px}
.auto-accept small{font-size:12px;line-height:1.4;opacity:.7}

/* Keep card heights independent; desktop composers float above the grid. */
.session-row{align-self:start}
@media (hover:hover){.session-row .session:hover{transform:none}}
@media (min-width:650px) and (hover:hover){
  .session-row:has(.quick-input[open]){z-index:20}
  .quick-input{position:relative}
  .quick-input[open]>.quick-input-body{position:absolute;top:100%;left:-1px;right:-1px;z-index:1;padding:14px;max-height:min(420px,var(--quick-space,50dvh));overflow:auto;overscroll-behavior:contain;background:var(--surface,#242638);border:1px solid var(--border,#414559);border-radius:12px;box-shadow:0 12px 32px #0008;box-sizing:border-box}
  .quick-input.opens-up>.quick-input-body{top:auto;bottom:100%}
}
.session-blocker { grid-column:1 / -1; min-width:0; padding:12px; border-top:1px solid var(--overlay0, #555); background:rgba(249,226,175,.06); }
.session-blocker strong { color:var(--yellow, #f9e2af); }
.session-blocker p { margin:6px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.session-blocker small { display:block; margin:6px 0; opacity:.8; }
.blocker-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.blocker-actions button { min-height:36px; }
.session[data-mode="blocked"] .state { background:var(--yellow, #f9e2af); }
.session-row:has(.session-blocker) > .session { height:auto; }
.session-row:has(.session-blocker) > .session-options { top:34px; transform:none; }
.session-blocker { border:1px solid var(--line,#ffffff20); border-top:0; border-radius:0 0 12px 12px; }
.blocker-actions button,.session-blocker > button { border:1px solid var(--line,#ffffff20); border-radius:8px; background:#ffffff08; padding:7px 10px; font-size:12px; }
.blocker-actions [data-unblock] { background:var(--green,#a6e3a1); color:#17242a; border-color:transparent; }

/* Named helper links remain visible even when the peer is outside the filter. */
.recovery-glyph { width:18px; height:18px; flex:none; vertical-align:middle; }
.helper-badge { display:inline-flex; align-items:center; gap:5px; width:fit-content; padding:2px 6px; margin-bottom:4px; border:1px solid #c6a0f666; border-radius:5px; color:#dbc2fb; font-size:11px; line-height:16px; }
.helper-badge .recovery-glyph { width:12px; height:12px; }
.session-row.is-helper > .session { border-left-color:#c6a0f6; }
.helper-relation { grid-column:1 / -1; display:flex; align-items:center; gap:7px; min-width:0; padding:4px 12px; border:1px solid var(--line,#ffffff20); border-top:0; background:#c6a0f60c; color:#dbc2fb; font-size:12px; }
.helper-relation > .recovery-glyph { width:15px; height:15px; }
.helper-relation-role { flex:none; font-weight:600; }
.helper-relation button { display:flex; align-items:center; gap:6px; min-width:0; min-height:44px; flex:1; overflow-wrap:anywhere; text-align:left; border:0; padding:4px 0; background:transparent; color:inherit; font:inherit; }
.helper-relation button .recovery-glyph { margin-left:auto; width:14px; height:14px; }
.helper-unavailable { padding:10px 0; color:var(--muted,#aaa); }
.blocker-actions { gap:6px; margin-top:8px; }
.blocker-actions .recovery-action { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; padding:0; }
.recovery-action:focus-visible,.helper-relation button:focus-visible { outline:2px solid var(--green,#a6e3a1); outline-offset:2px; }
.session-row:has(.helper-relation) > .session { height:auto; }

.helper-peer-name { min-width:0; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Hermes keeps its purple edge; the active model colors the other end. */
.session[data-agent-kind="hermes"][data-model-family] {
  background:linear-gradient(110deg,color-mix(in srgb,var(--agent-color) 22%,#262331),color-mix(in srgb,var(--model-color) 22%,#262331));
  border-right-color:color-mix(in srgb,var(--model-color) 65%,transparent);
}
.session[data-agent-kind="hermes"][data-model-family] .agent-glyph {
  background:linear-gradient(120deg,color-mix(in srgb,var(--agent-color) 30%,#262331),color-mix(in srgb,var(--model-color) 40%,#262331));
}

/* Independent columns avoid gaps caused by a neighboring tall blocker. */
.session-list { display:block; column-count:1; column-gap:8px; }
.session-list > .session-row,.session-family { display:inline-block; width:100%; vertical-align:top; break-inside:avoid; margin-bottom:8px; }
.session-family > .session-row + .session-row { margin-top:8px; margin-left:10px; width:calc(100% - 10px); }
.session-family { border-left:1px solid #c6a0f644; }
.session-family > .session-row { width:100%; }
.session-row .session { height:auto; }
@media(min-width:650px) { .session-list { column-count:2; } }
@media(min-width:1100px) { .session-list { column-count:3; } }
#sessions:has(> .session-group) { column-count:1; }
.blocker-detail summary,.helper-brief summary { cursor:pointer; min-height:44px; align-content:center; font-size:12px; }
.blocker-detail summary strong { font-size:13px; }
.blocker-preview { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:4px; color:var(--muted,#aaa); }
.blocker-detail[open] .blocker-preview { display:none; }
.blocker-detail summary:focus-visible,.helper-brief summary:focus-visible { outline:2px solid #a6ead4; outline-offset:2px; }
.session-blocker { padding:8px 12px; }
.helper-brief { display:block; padding:0 12px; font-size:12px; color:var(--muted,#aaa); }
/* A project containing only one family can use the available row. */
@media(min-width:650px) {
  .session-group-list:has(> .session-family:only-child) { column-count:1; }
  .session-group-list > .session-family:only-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; border-left:0; }
  .session-group-list > .session-family:only-child > .session-row { margin:0; width:100%; }
}
@media(min-width:1100px) {
  .session-group-list > .session-family:only-child { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Fixed lanes retain positions when telemetry or expanded content changes. */
.session-list { column-count:1; }
.session-list.stable-columns { display:grid; grid-template-columns:repeat(var(--session-columns,1),minmax(0,1fr)); align-items:start; }
.session-lane { display:flex; flex-direction:column; gap:8px; min-width:0; }
.session-lane > .session-row,.session-lane > .session-family { display:block; width:100%; margin-bottom:0; }
.session-row .session-options { z-index:3; }
#session-load-status { min-height:24px; }

.brand-icon{width:1em;height:1em;object-fit:contain;vertical-align:middle;display:inline-block}.agent-choice .brand-icon{width:36px;height:36px}

/* ---- Revamp (issue 135): one sticky app bar, settings in a sheet, filter
   chips, four-tab dock with badges. Everything above stays as the theme. ---- */
.appbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:10px;margin:0 calc(-1 * max(12px, env(safe-area-inset-right))) 0 calc(-1 * max(12px, env(safe-area-inset-left)));padding:10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));background:linear-gradient(180deg,#211827f2,#211827d9);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:2px solid #91edd0}
.appbar-brand{margin:0;font-family:Georgia,serif;font-size:22px;font-weight:500;letter-spacing:-1px;line-height:1;white-space:nowrap;text-shadow:2px 2px #ed8dbc28}
.appbar-brand span{color:#a7f1d6}
.appbar-stats{display:flex;gap:6px;min-width:0;margin-left:auto}
.stat-chip{display:flex;align-items:baseline;gap:4px;min-height:36px;padding:0 10px;border:1px solid #ffffff17;border-radius:999px;background:#ffffff08;color:var(--text);white-space:nowrap;cursor:pointer}
.stat-chip span{display:inline-block;font:650 15px ui-monospace,monospace}
.stat-chip span.bump{animation:bump .45s var(--ease-spring,ease-out)}
.stat-chip small{font-size:11px;color:var(--muted)}
.stat-chip.attention.has-attention{border-color:#f5b26b80;background:#f5b26b1c}
.stat-chip.attention.has-attention span{color:#ffc98f}
.appbar-actions{display:flex;gap:6px}
.appbar .icon-button{width:38px;height:38px;min-width:38px;min-height:38px}
.appbar .icon-button svg{display:block;margin:auto}

.view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 0}
.view-heading h2{font-size:22px;letter-spacing:-.6px}
.view-note{margin:6px 0 0;font-size:12px;line-height:1.45}
/* The app bar sticks to the very top, so the scroller carries no top padding
   (sticky offsets ignore negative margins and overlapped the next block). */
#app{padding-top:0}
section[data-view],#board-section{margin-top:14px}
section[data-view="stack"] + section[data-view="stack"]{margin-top:18px}
.launch-setup{min-height:44px;padding:0 14px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff08;color:var(--text);white-space:nowrap}
.new-agent{display:inline-flex;align-items:center;gap:6px}
.new-agent span{font-size:16px;line-height:1}

.agent-toolbar{position:sticky;top:var(--appbar-h,60px);z-index:3;margin:10px calc(-1 * max(12px, env(safe-area-inset-right))) 0 calc(-1 * max(12px, env(safe-area-inset-left)));padding:8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));background:#211827e6;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.agent-toolbar #session-search{margin:0;min-height:44px;font-size:16px}
.toolbar-row{display:flex;gap:8px;align-items:center}.toolbar-row #session-search{flex:1;min-width:0}
.filter-chips{display:flex;gap:6px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.filter-chips::-webkit-scrollbar{display:none}
.filter-chips button{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border:1px solid #ffffff1a;border-radius:999px;background:#ffffff06;color:#c9bfcd;font-size:13px;cursor:pointer}
.filter-chips button span{font:600 11px ui-monospace,monospace;opacity:.75}
.filter-chips button[aria-pressed="true"]{border-color:#91edd0;background:#91edd01f;color:#d7fff1}
.filter-chips button[data-session-filter="attention"][aria-pressed="true"]{border-color:#f5b26b;background:#f5b26b1f;color:#ffe0bd}

/* The dock: icon over label, a badge for what needs you and unread board posts. */
.main-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;min-height:52px;padding:4px 2px;font-size:11px;line-height:1}
.main-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-badge{position:absolute;top:3px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f5b26b;color:#2b1c10;font:700 10px/18px ui-monospace,monospace;text-align:center}
.nav-badge.board-unread{background:#ef91c5;color:#2a1222}
.nav-badge[hidden]{display:none}

/* Settings sheet. */
.settings-sheet .sheet-grip{width:38px;height:4px;margin:0 auto 10px;border-radius:2px;background:#ffffff30}
.settings-sheet label{display:block;margin:10px 0 6px;font-size:13px}
.settings-sheet label.auto-accept{display:flex;margin:6px 0 0}
.settings-group{margin:20px 0 4px;font:600 10px ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.settings-sheet #task-model-defaults{margin-top:10px}
.settings-sheet #launch-default-summary{white-space:normal}
.settings-sheet .account-panel{padding-top:6px}
.settings-sheet .account-panel span{display:grid;gap:3px}
.settings-sheet .brand-note{display:block;margin:0;font-size:11px}

@media (max-width:649px){
  .appbar-brand{font-size:20px}
  .stat-chip{padding:0 9px}
  section[data-view="work"]{display:block}
  section[data-view="work"] .launch-actions{grid-column:auto;grid-row:auto}
  .work-heading{display:none}
  section[data-view="work"] .agent-toolbar{margin-top:-14px}
  .toolbar-row{gap:6px}
  .toolbar-row .launch-actions{gap:6px}
  .new-agent b{display:inline}
  .new-agent{min-height:44px;padding:0 14px;justify-content:center}
  .new-agent span{font-size:22px}
}
@media (max-width:370px){
  .appbar{gap:6px}
  .appbar-brand{font-size:18px}
  .stat-chip small{display:none}
  .appbar .icon-button{width:34px;height:34px;min-width:34px;min-height:34px}
}
@media (min-width:650px){
  .main-nav{max-width:560px}
  .main-nav button{flex-direction:row;gap:8px;font-size:13px;min-height:44px}
  .nav-badge{position:static;margin-left:2px}
}
.coast-view .appbar{background:linear-gradient(180deg,#243d46f2,#243d46d9);border-color:#f7d9bf9c}
.coast-view .appbar-brand,.coast-view .stat-chip small{color:#fff0e4}
@media (prefers-reduced-transparency:reduce){.appbar,.agent-toolbar{backdrop-filter:none;background:#211827}}
.crash-events{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.crash-events li{display:grid;gap:2px;padding:8px 10px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff05;overflow-wrap:anywhere}
.crash-events li b{font-size:13px}
.crash-events li small{font-size:12px;opacity:.7}
.crash-events li[data-outcome="dispatched"]{border-color:#a6e3a155}
.crash-events li[data-outcome="failed"]{border-color:#f38ba855}
