/* Shika browser prototype. Values are Shika Dark and Shika Light in glass,
   from crates/shika/src/appearance/shika_chrome.rs and design/DESIGN.md.
   The canvas is the app's 1400x880 opening window; the landing page scales it. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --column-base: #f6f8f2;
  --column: rgba(246, 248, 242, 0.7);
  --hairline: rgba(0, 0, 0, 0.10);
  --line-2: rgba(0, 0, 0, 0.08);
  --line-control: rgba(0, 0, 0, 0.10);
  --ink-1: #262824;
  --ink-2: #4e524a;
  --ink-3: #5f6459;
  --ink-4: #868b7e;
  --ink-5: #adb1a5;
  --card-selected: rgba(40, 52, 30, 0.12);
  --row-selected: #e8ebe2;
  --hover: rgba(40, 52, 30, 0.06);
  --sunken: rgba(40, 52, 30, 0.08);
  --raised: #ffffff;
  --raised-hover: #fafbf8;
  --overlay: #fafaf7;
  --toast-bg: #252823;
  --toast-fg: #e9ece3;
  --dialog-ring: rgba(0, 0, 0, 0.20);
  --dialog-shadow: rgba(10, 14, 8, 0.30);
  --primary-bg: #262824;
  --primary-hover: #353a31;
  --primary-fg: #f3f5ee;
  --kbd-inverse: rgba(243, 245, 238, 0.72);
  --control-shadow: 0 1px 1px rgba(20, 30, 10, 0.04);

  --ready: #45b164;
  --ready-text: #21763c;
  --asking: #ed8725;
  --asking-text: #ab5200;
  --working: #4493d0;
  --working-text: #266ea4;
  --waiting: #a3a79b;
  --added: #3b763a;
  --removed: #b2463a;
  --added-tint: #e7eee3;
  --removed-tint: #f1eae3;

  --term-bg: #f6f8f2;
  --term-header: #f6f8f2;
  --term-line: rgba(0, 0, 0, 0.10);
  --term-seg-active: rgba(0, 0, 0, 0.18);
  --term-hover: rgba(20, 30, 10, 0.06);
  --term-fg: #262824;
  --term-fg-ui: #4e524a;
  --term-white: #262824;
  --term-dim: #6c7166;
  --term-faint: #868b7e;
  --term-fainter: #a3a79b;
  --a-red: #b2463a;
  --a-green: #3d7a3c;
  --a-yellow: #86630f;
  --a-blue: #35659f;
  --a-magenta: #8a4a86;
  --a-cyan: #2b7579;
  --a-bright-black: #7a7f73;
  --a-salmon: #c4594b;

  --backdrop: url("img/backdrop-light.webp");
  --notif-bg: rgba(246, 246, 242, 0.92);
  --notif-title: #1c1e1a;
  --notif-body: #353931;
  --notif-meta: #717668;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --column-base: #181a17;
  --column: rgba(24, 26, 23, 0.7);
  --hairline: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.07);
  --line-control: rgba(255, 255, 255, 0.12);
  --ink-1: #e8ebe3;
  --ink-2: #b6bbae;
  --ink-3: #a6ab9e;
  --ink-4: #9a9f92;
  --ink-5: #5e6359;
  --card-selected: rgba(255, 255, 255, 0.20);
  --row-selected: #363a33;
  --hover: rgba(255, 255, 255, 0.06);
  --sunken: rgba(255, 255, 255, 0.09);
  --raised: #272a25;
  --raised-hover: #2e322c;
  --overlay: #242722;
  --toast-bg: #363a33;
  --toast-fg: #f1f4ec;
  --dialog-ring: rgba(255, 255, 255, 0.10);
  --dialog-shadow: rgba(0, 0, 0, 0.55);
  --primary-bg: #e8ebe3;
  --primary-hover: #ffffff;
  --primary-fg: #1a1c19;
  --kbd-inverse: rgba(26, 28, 25, 0.70);
  --control-shadow: none;

  --ready: #68ca80;
  --ready-text: #89da9b;
  --asking: #f8a13f;
  --asking-text: #f6b669;
  --working: #66abe5;
  --working-text: #8cc4f4;
  --waiting: #6b7065;
  --added: #8cc98a;
  --removed: #e0786b;
  --added-tint: #242c23;
  --removed-tint: #2c231f;

  --term-bg: #181a17;
  --term-header: #181a17;
  --term-line: rgba(255, 255, 255, 0.07);
  --term-seg-active: rgba(255, 255, 255, 0.14);
  --term-hover: rgba(255, 255, 255, 0.06);
  --term-fg: #d5d9cf;
  --term-fg-ui: #c5cabe;
  --term-white: #f2f5ec;
  --term-dim: #878c80;
  --term-faint: #757a6e;
  --term-fainter: #5a5f55;
  --a-red: #e0786b;
  --a-green: #8cc98a;
  --a-yellow: #e2be6a;
  --a-blue: #7fa8d9;
  --a-magenta: #c793c2;
  --a-cyan: #7cc0c4;
  --a-bright-black: #6e6c66;
  --a-salmon: #f08f82;

  --backdrop: url("img/backdrop-dark.webp");
  --notif-bg: rgba(44, 46, 42, 0.92);
  --notif-title: #f1f3ee;
  --notif-body: #d3d6ce;
  --notif-meta: #a3a79b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
body { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; color: var(--ink-1); user-select: none; cursor: default; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: default; }
svg { display: block; }

/* Window */
.win { position: relative; width: 1400px; height: 880px; display: flex; overflow: hidden; background: var(--column-base); border-radius: 18px; }
/* Shika's halftone effect on the forest painting, already framed as the
   native capture is (zoom 125%, focus 89% / 50%), so it simply covers. */
.backdrop { position: absolute; inset: 0; background: var(--backdrop) center / cover no-repeat; pointer-events: none; }
:root[data-glass="off"] .backdrop { display: none; }
:root[data-glass="off"] { --column: var(--column-base); }
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 50; }
:root[data-theme="dark"] .win::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); }

/* Column */
.col { position: relative; z-index: 1; width: 420px; flex: none; display: flex; flex-direction: column; background: var(--column); border-right: 1px solid var(--hairline); transition: margin-left 220ms var(--ease); }
.win.col-hidden .col { margin-left: -421px; }
.titlebar { height: 48px; flex: none; display: flex; align-items: center; padding: 0 12px 0 18px; gap: 8px; }
.lights { display: flex; gap: 8px; margin-right: 12px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.wordmark { font-size: 13.5px; font-weight: 600; color: var(--ink-1); }
.icon-btn { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink-1); }
.icon-btn svg { width: 15px; height: 15px; }

.list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 18px; display: flex; flex-direction: column; scrollbar-width: none; }
.section-head { min-height: 24px; display: flex; align-items: center; gap: 2px; padding: 0 4px 0 8px; }
.section-head .label { flex: 1; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.section-head .icon-btn svg { width: 15px; height: 15px; }
.section + .section { margin-top: 20px; }
.projects-list { display: flex; flex-direction: column; gap: 20px; margin-top: 6px; }
.project { display: flex; flex-direction: column; gap: 6px; }
.project-head { min-height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 8px; border-radius: 6px; }
.project-head .name { font-size: 15px; font-weight: 600; color: var(--ink-1); white-space: nowrap; }
.project-head .base { display: flex; align-items: center; gap: 4px; font: 12px var(--font-mono); color: var(--ink-3); }
.project-head .base svg { width: 12px; height: 12px; }
.project-head .spacer { flex: 1; }
.project-head .icon-btn { visibility: hidden; }
.project-head:hover .icon-btn, .project.is-current .project-head .icon-btn { visibility: visible; }
.cards { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; }
.cards:empty { display: none; }
.lead-workers { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* Cards */
.card { display: flex; gap: 10px; padding: 12px 14px 11px; border-radius: 10px; transition: background-color 120ms var(--ease); }
.card.is-selected { background: var(--card-selected); }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.line1 { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.task { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task.is-new { color: var(--ink-2); }
.card.is-selected .task { color: var(--ink-1); }
.timer { flex: none; font: 11.5px/20px var(--font-mono); color: var(--working-text); font-variant-numeric: tabular-nums; }
.signal { flex: none; width: 14px; height: 20px; display: flex; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ready { background: var(--ready); }
.dot.asking { background: var(--asking); }
.dot.waiting { background: var(--waiting); }
.pixels { display: grid; grid-template-columns: repeat(5, 2px); gap: 1px; width: 14px; height: 14px; margin-top: 3px; align-self: flex-start; }
.pixels i { width: 2px; height: 2px; background: var(--working); opacity: 0.12; animation: twinkle 2s steps(1) infinite; box-shadow: 0 0 3px color-mix(in srgb, var(--working) 50%, transparent); }
@keyframes twinkle {
  0% { opacity: 0.12; }
  4% { opacity: 0.4; }
  8% { opacity: 0.7; }
  12% { opacity: 1; }
  24% { opacity: 0.7; }
  30% { opacity: 0.4; }
  36% { opacity: 0.12; }
}
.line2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--ink-4); white-space: nowrap; }
.card.is-selected .line2 { color: var(--ink-3); }
.line2 .sep { color: var(--ink-5); }
.mark { flex: none; width: 14px; height: 14px; color: inherit; }
.mark svg { width: 14px; height: 14px; fill: currentColor; }
.branch { font: 11.5px var(--font-mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stat { flex: none; color: var(--ink-3); }
.stat .add { color: var(--added); }
.stat .del { color: var(--removed); }
.pr { flex: none; display: flex; align-items: center; gap: 4px; font: 11.5px var(--font-mono); color: var(--ink-3); }
.pr .ring { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-4); }
.hint { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); padding-left: 8px; }
.kbd { font: 10.5px/16px var(--font-mono); background: var(--sunken); color: var(--ink-2); border-radius: 4px; padding: 0 5px; }
.lead-tile { flex: none; width: 30px; height: 30px; margin-top: 2px; border-radius: 8px; background: var(--raised); display: grid; place-items: center; color: var(--ink-2); }
.card.is-selected .lead-tile { background: var(--raised-hover); }
.lead-tile svg { width: 18px; height: 18px; }
.line2 .lead-reply { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card.is-closing { opacity: 0.5; transition: opacity 180ms var(--ease); }

.footer { flex: none; border-top: 1px solid var(--line-2); padding: 10px 12px 12px; display: flex; align-items: center; gap: 12px; }
.footer .hints { margin-left: auto; display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); }
.footer .hints span { display: flex; align-items: center; gap: 4px; }

/* Terminal side */
.main { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--term-bg); }
.term-head { height: 48px; flex: none; display: flex; align-items: flex-end; padding: 0 12px 0 8px; background: var(--term-header); position: relative; }
.term-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--term-line); }
.reveal-col { display: none; align-items: center; gap: 8px; align-self: center; padding: 0 12px 0 74px; }
.win.col-hidden .reveal-col { display: flex; }
.tabs { flex: 1; min-width: 0; display: flex; align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; z-index: 1; flex: none; height: 42px; min-width: 88px; max-width: 180px; padding: 0 12px 4px; display: flex; align-items: center; gap: 8px; border-radius: 7px 7px 0 0; border: 1px solid transparent; border-bottom: 0; font-size: 12px; color: var(--term-dim); }
.tab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { color: var(--term-fg); background: var(--term-hover); }
.tab.is-active { background: var(--term-bg); border-color: var(--term-line); color: var(--term-white); z-index: 2; }
.tab.is-active::before, .tab.is-active::after { content: ""; position: absolute; bottom: 0; width: 7px; height: 7px; }
.tab.is-active::before { left: -8px; background: radial-gradient(circle at 0 0, transparent 6.5px, var(--term-line) 6.5px, var(--term-line) 7.5px, var(--term-bg) 7.5px); }
.tab.is-active::after { right: -8px; background: radial-gradient(circle at 100% 0, transparent 6.5px, var(--term-line) 6.5px, var(--term-line) 7.5px, var(--term-bg) 7.5px); }
.tab-x { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--term-dim); opacity: 0; }
.tab:hover .tab-x, .tab.is-active .tab-x { opacity: 1; }
.tab-x:hover { background: var(--term-hover); color: var(--term-white); }
.add-tab { flex: none; align-self: center; width: 24px; height: 24px; margin-left: 7px; border-radius: 6px; display: grid; place-items: center; color: var(--term-dim); font-size: 15px; }
.add-tab:hover, .head-btn:hover { background: var(--term-hover); color: var(--term-white); }
.head-btn { flex: none; align-self: center; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 6px 0 10px; border: 1px solid var(--term-seg-active); border-radius: 6px; font-size: 12px; color: var(--term-fg-ui); }
.head-btn .k { font: 10.5px/15px var(--font-mono); color: var(--term-dim); background: var(--term-line); border-radius: 4px; padding: 0 5px; }
.changes-toggle { flex: none; align-self: center; margin-left: 8px; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--term-dim); }
.changes-toggle:hover { background: var(--term-hover); color: var(--term-white); }
.changes-toggle svg { width: 15px; height: 15px; }
.meta { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 20px 2px; min-height: 36px; }
.meta .proj { font-size: 12px; color: var(--term-fg); white-space: nowrap; }
.meta .br { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font: 11.5px var(--font-mono); color: var(--term-dim); }
.meta .br svg { flex: none; width: 12px; height: 12px; }
.meta .br span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .focus-hint { flex: none; font-size: 11.5px; color: var(--term-faint); }
.meta .head-btn { height: 26px; }

.term { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 24px; font: 14px/21px var(--font-mono); color: var(--term-fg); user-select: text; cursor: text; scrollbar-width: none; }
.term .ln { white-space: pre-wrap; word-break: break-word; min-height: 21px; }
.c-dim { color: var(--term-dim); } .c-faint { color: var(--term-fainter); } .c-white { color: var(--term-white); }
.c-green { color: var(--a-green); } .c-red { color: var(--a-red); } .c-blue { color: var(--a-blue); }
.c-yellow { color: var(--a-yellow); } .c-magenta { color: var(--a-magenta); } .c-cyan { color: var(--a-cyan); }
.c-salmon { color: var(--a-salmon); } .b { font-weight: 700; }
.bg-add { background: var(--added-tint); color: var(--added); } .bg-del { background: var(--removed-tint); color: var(--removed); }
.cursor { display: inline-block; width: 8.4px; height: 18px; vertical-align: -4px; box-shadow: inset 0 0 0 1px var(--term-fg); }
.is-term-focus .cursor { background: var(--term-fg); box-shadow: none; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rule { color: var(--term-fainter); overflow: hidden; white-space: nowrap; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--term-faint); font-size: 13px; }
.empty img { width: 64px; height: 64px; margin-bottom: 6px; }
.empty .keys { display: flex; gap: 14px; font-size: 11.5px; }
.empty .keys span { display: flex; align-items: center; gap: 5px; }
.empty .k, .changes .k { font: 10.5px/16px var(--font-mono); background: var(--term-line); color: var(--term-dim); border-radius: 4px; padding: 0 5px; }

/* Lead chat */
.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 0 12px; display: flex; flex-direction: column; align-items: center; scrollbar-width: none; }
.chat-inner { width: min(720px, 100% - 64px); display: flex; flex-direction: column; gap: 18px; }
.bubble { max-width: 80%; font-size: 14px; line-height: 21px; }
.bubble.me { align-self: flex-end; background: var(--term-hover); color: var(--term-white); border-radius: 22px; padding: 10px 16px; }
.bubble.lead { align-self: flex-start; color: var(--term-fg); }
.bubble.lead code { font: 12.5px var(--font-mono); color: var(--term-white); }
.bubble.lead p { margin: 0 0 8px; } .bubble.lead p:last-child { margin: 0; }
.steps { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--term-dim); }
.composer { flex: none; margin: 0 auto 22px; width: min(720px, 100% - 64px); min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 24px; background: var(--term-hover); font-size: 14px; color: var(--term-fg); }
.composer .text { flex: 1; min-width: 0; white-space: pre-wrap; }
.composer .placeholder { color: var(--term-faint); }
.composer .send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--term-white); color: var(--term-bg); }
.composer .send svg { width: 16px; height: 16px; }

/* Changes panel */
.changes { position: relative; z-index: 1; flex: none; width: 480px; display: flex; flex-direction: column; background: var(--term-bg); border-left: 1px solid var(--term-line); }
.changes-head { height: 48px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 20px; background: var(--term-header); border-bottom: 1px solid var(--term-line); }
.changes-head .title { font-size: 13px; font-weight: 500; color: var(--term-fg); }
.changes.is-focus .changes-head .title { color: var(--term-white); }
.changes-head .st { flex: 1; min-width: 0; font-size: 12px; color: var(--term-dim); white-space: nowrap; }
.changes-head .hints { display: flex; gap: 12px; font-size: 11.5px; color: var(--term-faint); }
.changes-head .hints span { display: flex; gap: 4px; align-items: center; }
.changes-list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 28px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.file { border: 1px solid var(--term-line); border-radius: 10px; overflow: hidden; font: 14px/21px var(--font-mono); }
.file-head { padding: 4px 12px 4px; background: color-mix(in srgb, var(--term-bg), var(--term-white) 5%); border-bottom: 1px solid var(--term-line); }
.file-head .r1 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--term-white); }
.file-head .r1 .sp { flex: 1; }
.file-head .r1 .n { font-size: 11.5px; font-weight: 400; }
.file-head .r2 { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--term-dim); }
.file-head .r2 .s { font-family: var(--font-ui); }
.dl { display: flex; white-space: pre; padding-right: 12px; color: var(--term-fg); }
.dl .no { flex: none; width: 5ch; text-align: right; padding-right: 1ch; color: var(--term-dim); }
.dl.add { background: var(--added-tint); color: var(--added); }
.dl.del { background: var(--removed-tint); color: var(--removed); }
.dl.gap { height: 21px; border-top: 1px solid var(--term-line); }
.changes-empty { flex: 1; display: grid; place-items: center; color: var(--term-faint); font-size: 13px; }

/* Overlays */
.scrim { position: absolute; inset: 0; z-index: 30; background: var(--dialog-shadow); display: flex; justify-content: center; align-items: flex-start; animation: fade 180ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.panel { background: var(--overlay); border-radius: 12px; box-shadow: 0 0 0 0.5px var(--dialog-ring), 0 24px 60px var(--dialog-shadow); animation: rise 180ms var(--ease); }
.picker { width: 420px; margin-top: 18%; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.picker-head { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px 10px; }
.picker-head .t { font-size: 14px; font-weight: 600; }
.picker-head .p { font-size: 13px; color: var(--ink-3); }
.picker-head .tab-hint { margin-left: auto; font-size: 11.5px; color: var(--ink-4); }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 7px; }
.row.is-active { background: var(--row-selected); }
.row .kbd { color: var(--ink-3); }
.row .nm { font-size: 13.5px; font-weight: 500; }
.row .pth { flex: 1; min-width: 0; text-align: right; font: 11px var(--font-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.picker-foot { display: flex; align-items: center; gap: 14px; padding: 10px 10px 6px; margin-top: 6px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--ink-3); }
.switch { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.switch:hover { color: var(--ink-1); }
.track { width: 28px; height: 17px; border-radius: 9px; border: 1px solid var(--ink-1); background: var(--ink-1); position: relative; }
.track::after { content: ""; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--overlay); }
.switch.is-off .track { background: var(--sunken); border-color: var(--ink-3); }
.switch.is-off .track::after { left: 2px; background: var(--ink-3); }
.checkout-fact { padding: 4px 10px 0; font-size: 11px; color: var(--ink-3); }
.checkout-fact code { font-family: var(--font-mono); }
.dialog { width: 400px; margin-top: 20%; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.dialog .t { font-size: 14px; font-weight: 600; }
.dialog .f { font-size: 13px; line-height: 19px; color: var(--ink-2); }
.dialog .f code, .dialog .mono { font: 12px var(--font-mono); }
.dialog .label { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.field { height: 26px; border-radius: 6px; background: var(--raised); box-shadow: 0 0 0 1px var(--ink-1); padding: 0 8px; font: 12px/26px var(--font-mono); color: var(--ink-1); white-space: nowrap; overflow: hidden; }
.files { display: flex; flex-direction: column; gap: 2px; font: 12px/18px var(--font-mono); color: var(--ink-2); }
.files div { display: flex; justify-content: space-between; }
.buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 7px; font-size: 12.5px; background: var(--raised); box-shadow: 0 0 0 1px var(--line-control), var(--control-shadow); }
.btn:hover { background: var(--raised-hover); }
.btn .k { font: 10.5px var(--font-mono); color: var(--ink-3); }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.primary .k { color: var(--kbd-inverse); }

.toast { position: absolute; z-index: 35; bottom: 22px; left: calc(420px + (100% - 420px) / 2); transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-fg); font-size: 12.5px; padding: 8px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); white-space: nowrap; animation: rise 180ms var(--ease); }
.win.col-hidden .toast { left: 50%; }

.notes { position: absolute; z-index: 40; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.note { width: 344px; display: flex; gap: 11px; padding: 11px 12px; border-radius: 14px; background: var(--notif-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.28); animation: slide 260ms var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }
.note img { flex: none; width: 36px; height: 36px; }
.note .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.note .meta-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--notif-meta); }
.note .meta-row b { font-weight: 600; letter-spacing: 0.02em; }
.note .ttl { font-size: 13px; font-weight: 600; color: var(--notif-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note .msg { font-size: 13px; color: var(--notif-body); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .pixels i { animation: none; }
}

/* Lead chat header and bubbles, as the native Claude Code Lead draws them. */
.lead-head { align-items: center; padding: 0 12px 0 20px; gap: 12px; }
.lead-title { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--term-dim); }
.lead-title b { font-weight: 600; color: var(--term-white); margin-right: -4px; }
.lead-tile.sm { width: 24px; height: 24px; margin: 0; border-radius: 6px; }
.lead-tile.sm svg { width: 15px; height: 15px; }
.lead-count { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--term-dim); }
.dot-sm { width: 6px; height: 6px; border-radius: 50%; }
.dot-sm.working { background: var(--working); }
.dot-sm.ready { background: var(--ready); }
.stamp { align-self: center; font-size: 12px; color: var(--term-dim); }
.bubble.me { background: var(--ink-1); color: var(--column-base); padding: 12px 18px; }
.bubble.lead { background: var(--raised); border-radius: 22px; padding: 12px 18px; color: var(--term-fg); }
.composer-hint { flex: none; width: min(720px, 100% - 64px); margin: -14px auto 14px; font-size: 12px; color: var(--term-faint); }
