@font-face { font-family: "Geist Variable"; src: url(fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Geist Mono Variable"; src: url(fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: block; }

/* tokens copied from src/styles.css, [data-skin="grok"] and [data-skin="grok-dark"] */
[data-skin="grok"] {
  color-scheme: light;
  --app: #fdfdfd; --panel: #f7f7f7; --raised: #e4e4e4; --raised-hover: #d8d8d8; --card: #efefef; --inset: #e9e9e9;
  --control: #e2e2e2; --hairline: #1c1c1c3d; --edge: #1c1c1c14;
  --ink: #1c1c1c; --ink-2: #1c1c1cad; --ink-3: #1c1c1ca6;
  --accent: #126fd4; --accent-border: #1680f3; --accent-text: #0b69cc; --focus: #7f7f7f;
  --composer: #ffffff; --composer-ring: #1c1c1c1f; --menu: #ffffff; --menu-hover: #1c1c1c0f;
  --success: #007a44; --danger: #cd2834; --warning: #9c5b00;
  --shadow-float: 0 4px 12px -1px rgb(28 28 28 / 0.08), 0 2px 4px -2px rgb(28 28 28 / 0.06);
  --shadow-menu: 0 10px 28px -12px rgb(0 0 0 / 0.24), 0 2px 6px -2px rgb(0 0 0 / 0.08);
  --scrim: rgb(28 28 28 / 0.28);
}
[data-skin="grok-dark"] {
  color-scheme: dark;
  --app: #121212; --panel: #0e0e0e; --raised: #202020; --raised-hover: #2c2c2c; --card: #1f1f1f; --inset: #1b1b1b;
  --control: #282828; --hairline: #f5f5f538; --edge: #f5f5f50f;
  --ink: #f5f5f5; --ink-2: #f5f5f5a8; --ink-3: #f5f5f58a;
  --accent: #116dd2; --accent-border: #116dd2; --accent-text: #4d9bff; --focus: #6d6d6d;
  --composer: #1f1f1f; --composer-ring: #f5f5f51a; --menu: #1f1f1f; --menu-hover: #f5f5f50f;
  --success: #00ba69; --danger: #ff6463; --warning: #e28600;
  --shadow-float: 0 4px 12px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-menu: 0 16px 40px -16px rgb(0 0 0 / 0.6), 0 4px 10px -4px rgb(0 0 0 / 0.3);
  --scrim: rgb(0 0 0 / 0.5);
}
:root {
  --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", "SF Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --frame: color-mix(in srgb, var(--composer), var(--ink) 6%);
  --nova: #8057C8; --scout: #01A492; --ledger: #E78531; --pip: #D84F8B; --hermes: #D8A729; --echo: #D84F8B; --quill: #377FE6; --dusk: #B3BAC4; --sage: #009957;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-sans); background: var(--app); color: var(--ink); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon { display: inline-flex; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* lab switcher, hidden for screenshots */
#lab { position: fixed; left: 12px; bottom: 12px; z-index: 100; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--menu); box-shadow: var(--shadow-menu); max-width: 980px; }
#lab.hidden .lab-row:first-child { display: none; }
.lab-row { display: flex; flex-wrap: wrap; gap: 4px; }
.lab-chip { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: transparent; }
.lab-chip:hover { background: var(--menu-hover); color: var(--ink); }
.lab-chip[aria-current="true"] { background: var(--ink); color: var(--app); }
body.shot #lab { display: none; }

/* window */
.win { position: relative; width: 100vw; height: 100vh; min-height: 640px; display: flex; overflow: hidden; background: var(--app); }
.sidebar { width: 272px; flex-shrink: 0; background: var(--panel); display: flex; flex-direction: column; padding: 14px 12px 12px; }
.sb-top { display: flex; justify-content: flex-end; gap: 8px; height: 40px; }
.round { width: 40px; height: 40px; border-radius: 999px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.round:hover { background: var(--raised-hover); }
.round .icon { width: 16px; height: 16px; }
.sb-section { margin: 18px 10px 6px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.sb-list { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.sb-list.tight { margin-top: 0; }
.sb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; width: 100%; }
.sb-row:hover { background: var(--menu-hover); }
.sb-row[aria-current="page"] { background: var(--raised); }
.sb-row .who { min-width: 0; flex: 1; }
.sb-row .name { font-size: 15px; line-height: 20px; display: flex; align-items: center; gap: 6px; }
.sb-row .prev { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-new { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.sb-bottom { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.sb-pill { flex: 1; height: 40px; border-radius: 999px; background: var(--raised); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.sb-bg { margin: 0 2px 10px; padding: 10px 12px; border-radius: 12px; background: var(--raised); font-size: 13px; }
.sb-bg .bar { margin-top: 8px; }

/* chat column */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat-head { height: 72px; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 16px; flex-shrink: 0; }
.head-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7.5px 13.5px 7.5px 7.5px; border-radius: 999px; background: var(--composer); box-shadow: var(--shadow-float); font-size: 14px; font-weight: 500; max-width: 100%; }
.head-pill .chev { width: 12px; height: 12px; color: var(--ink-3); }
.head-pill .sub { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-tools { position: absolute; right: 16px; top: 18px; display: flex; gap: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--menu-hover); color: var(--ink); }
.icon-btn[aria-expanded="true"], .icon-btn[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .icon { width: 15px; height: 15px; }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tip { position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--app); font-size: 12px; line-height: 16px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.tip kbd { font-family: var(--font-sans); opacity: 0.7; }
.thread { flex: 1; min-height: 0; overflow: hidden; padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }
.when { text-align: center; font-size: 13px; color: var(--ink-2); margin: 4px 0 6px; }
.bub { max-width: min(88%, 44rem); padding: 9px 14px; border-radius: 18px; font-size: 15px; line-height: 22px; }
.bub.me { align-self: flex-end; background: var(--botc, var(--nova)); color: #fff; }
.bub.bot { align-self: flex-start; background: var(--card); }
.card-t { align-self: flex-start; width: min(100%, 30rem); background: var(--card); border-radius: 18px; padding: 14px 16px; font-size: 14px; }
.card-t h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card-t ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.card-t li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.card-t li .icon { width: 16px; height: 16px; margin-top: 2px; }
.card-t .row-actions { display: flex; gap: 8px; margin-top: 12px; }
.ok { color: var(--success); }
.warn { color: var(--warning); }
.bad { color: var(--danger); }
.composer { margin: 12px 24px 20px; min-height: 56px; border-radius: 22px; background: var(--composer); box-shadow: 0 0 0 1px var(--composer-ring); display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--ink-3); font-size: 15px; flex-shrink: 0; }
.composer .plus { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.composer .plus .icon, .composer .mic .icon { width: 16px; height: 16px; }
.composer .mic { margin-left: auto; width: 36px; height: 36px; border-radius: 999px; background: var(--botc, var(--nova)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* buttons */
.btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--control); color: var(--ink); white-space: nowrap; transition: background-color 0.15s ease, transform 0.12s var(--ease-out); }
.btn:hover { background: var(--raised-hover); }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 14px; height: 14px; }
.btn.primary { background: var(--ink); color: var(--app); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88.5%, var(--app)); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--menu-hover); color: var(--ink); }
.btn.lg { height: 40px; padding: 0 20px; font-size: 15px; }
.btn.bot { background: var(--botc); color: #fff; }
.btn:disabled { background: color-mix(in srgb, var(--ink) 13%, transparent); color: color-mix(in srgb, var(--ink) 30%, transparent); cursor: not-allowed; }

/* switch, as Toggle.tsx */
.sw { width: 40px; height: 24px; border-radius: 999px; background: var(--control); position: relative; flex-shrink: 0; transition: background-color 0.15s ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.18s var(--ease-out); }
.sw[aria-checked="true"] { background: var(--accent-border); }
.sw[aria-checked="true"]::after { transform: translateX(16px); }
.sw.sm { width: 32px; height: 20px; }
.sw.sm::after { width: 14px; height: 14px; }
.sw.sm[aria-checked="true"]::after { transform: translateX(12px); }

/* side panel */
.panel { flex-shrink: 0; width: 320px; background: var(--app); box-shadow: inset 0.5px 0 0 var(--hairline); display: flex; flex-direction: column; min-height: 0; }
.panel.wide { width: 760px; }
.panel-head { height: 72px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; flex-shrink: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--inset); }
.seg button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--composer); color: var(--ink); box-shadow: var(--shadow-float); }
.panel-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.p-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; }
.p-hero .nm { font-size: 18px; font-weight: 500; line-height: 24px; }
.p-sec { display: flex; flex-direction: column; gap: 6px; }
.p-sec h4 { margin: 0 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.p-sec h4 a, .linkish { color: var(--accent-text); font-weight: 400; font-size: 13px; text-decoration: none; }
.p-group { background: var(--card); border-radius: 14px; padding: 4px; display: flex; flex-direction: column; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; text-align: left; width: 100%; }
.p-row:hover { background: var(--menu-hover); }
.p-row .icon { width: 16px; height: 16px; color: var(--ink-2); }
.p-row .r { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; background: var(--frame); }
.thumb .mini-tabs { display: flex; gap: 4px; padding: 6px 8px 0; }
.thumb .mini-tab { height: 22px; border-radius: 8px 8px 0 0; padding: 0 8px; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); max-width: 110px; }
.thumb .mini-tab.on { background: var(--composer); color: var(--ink); }
.thumb .mini-tab span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb .mini-page { aspect-ratio: 16 / 10; background: var(--composer); }

/* browser */
.browser { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--frame); }
.strip { height: 40px; display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; flex-shrink: 0; }
.tab { position: relative; height: 34px; min-width: 76px; max-width: 200px; flex: 1 1 0; display: flex; align-items: center; gap: 7px; padding: 0 6px 0 10px; border-radius: 10px 10px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-2); text-align: left; }
.tab:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--composer); color: var(--ink); z-index: 1; }
.tab[aria-selected="true"]::before, .tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; pointer-events: none; }
.tab[aria-selected="true"]::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--composer) 10px); }
.tab[aria-selected="true"]::after { right: -10px; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--composer) 10px); }
.tab .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab .x { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); opacity: 0; }
.tab .x .icon { width: 12px; height: 12px; }
.tab:hover .x, .tab[aria-selected="true"] .x, .tab:focus-within .x { opacity: 1; }
.tab .x:hover { background: var(--menu-hover); color: var(--ink); }
.tab .who { width: 14px; height: 14px; flex-shrink: 0; }
.tab .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); flex-shrink: 0; }
.tab .dot.wait { background: var(--warning); }
.tab.other { opacity: 0.62; }
.strip .add { width: 30px; height: 30px; margin: 0 0 2px 4px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex-shrink: 0; }
.strip .add:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.strip .add .icon { width: 16px; height: 16px; }
.strip .sep { width: 1px; height: 16px; background: var(--edge); align-self: center; margin: 0 4px; }
.site { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0; }
.bar-row { height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--composer); flex-shrink: 0; }
.bar-row .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.bar-row .icon-btn .icon { width: 16px; height: 16px; }
.url { flex: 1; min-width: 0; height: 32px; margin: 0 6px; border-radius: 999px; background: var(--inset); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; color: var(--ink-2); position: relative; }
.url .icon { width: 13px; height: 13px; color: var(--ink-3); }
.url .host { color: var(--ink); }
.url .txt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url.focus { background: var(--composer); box-shadow: 0 0 0 2px var(--accent-border); color: var(--ink); }
.url .caret { display: inline-block; width: 1px; height: 16px; background: var(--ink); margin-left: -6px; }
.url .readonly-hint { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.suggest { position: absolute; left: -2px; right: -2px; top: 38px; background: var(--menu); border-radius: 14px; box-shadow: var(--shadow-menu); padding: 6px; z-index: 5; }
.suggest .s { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.suggest .s.on { background: var(--menu-hover); }
.suggest .s .icon { width: 14px; height: 14px; color: var(--ink-3); }
.suggest .s .k { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.control-pill { height: 30px; padding: 0 12px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; background: var(--inset); color: var(--ink-2); }
.control-pill .face { width: 18px; height: 18px; }
.control-pill.yours { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.control-pill .icon { width: 13px; height: 13px; }
.page { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--composer); }
.page.held::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent-border); pointer-events: none; }
.b-status { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 2px 0; }
.b-status .msg { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.b-status .msg .d { width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.b-status .msg .d.wait { background: var(--warning); }

/* the site inside the browser: a train timetable, painted as its own light page */
.site-page { position: absolute; inset: 0; background: #fbfbfa; color: #1f2a24; font-family: var(--font-sans); }
.site-page .sp-nav { height: 52px; background: #0f5132; color: #f1f6f2; display: flex; align-items: center; gap: 22px; padding: 0 28px; font-size: 13px; }
.site-page .sp-nav b { font-size: 17px; letter-spacing: 0.02em; margin-right: 12px; }
.site-page .sp-body { padding: 26px 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.site-page h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.site-page .sp-sub { font-size: 13px; color: #5d6b63; margin-bottom: 16px; }
.sp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-field { border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #d4dbd6; padding: 8px 10px; font-size: 13px; }
.sp-field small { display: block; color: #6b7a71; font-size: 11px; }
.sp-field.typing { box-shadow: inset 0 0 0 2px var(--botc, var(--nova)); }
.sp-go { grid-column: span 2; height: 40px; border-radius: 8px; background: #0f5132; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.sp-times { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e1e6e2; }
.sp-times div { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; border-top: 1px solid #edf0ee; }
.sp-times div:first-child { border-top: 0; color: #6b7a71; font-size: 11px; }
.sp-login { position: absolute; inset: 52px 0 0; background: rgb(15 30 22 / 0.35); display: flex; align-items: center; justify-content: center; }
.sp-login .box { width: 320px; background: #fff; border-radius: 12px; padding: 22px; color: #1f2a24; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.4); }
.sp-login h3 { margin: 0 0 4px; font-size: 17px; }
.sp-login .sp-field { margin-top: 10px; }
.agent-cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; z-index: 3; }
.agent-cursor svg { width: 18px; height: 18px; }
.agent-cursor .lbl { margin-top: 14px; padding: 2px 8px; border-radius: 999px; background: var(--botc, var(--nova)); color: #fff; font-size: 11px; line-height: 16px; }
.newtab { position: absolute; inset: 0; background: var(--composer); display: flex; flex-direction: column; align-items: center; padding-top: 90px; gap: 18px; color: var(--ink); }
.newtab .tiles { display: flex; gap: 14px; }
.newtab .tile { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.newtab .tile .site { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }

/* onboarding / bring over */
.onb { width: 100vw; height: 100vh; min-height: 640px; background: var(--app); display: flex; flex-direction: column; align-items: center; overflow: hidden; position: relative; }
.onb-top { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.steps { display: flex; gap: 6px; }
.steps i { width: 18px; height: 4px; border-radius: 999px; background: var(--raised); display: block; }
.steps i.on { background: var(--ink); }
.onb-col { width: 640px; max-width: calc(100vw - 48px); display: flex; flex-direction: column; align-items: center; padding-top: 72px; }
.parade { display: flex; align-items: flex-end; gap: 12px; height: 64px; margin-bottom: 18px; }
.onb h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; text-align: center; letter-spacing: -0.01em; }
.onb .lede { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-align: center; max-width: 520px; }
.finds { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.find { background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.find.off { background: color-mix(in srgb, var(--card) 55%, transparent); }
.find-top { display: flex; align-items: center; gap: 12px; }
.app-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--composer); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-tile svg { width: 22px; height: 22px; }
.app-tile .letter { font-size: 16px; font-weight: 600; }
.find .what { flex: 1; min-width: 0; }
.find .ttl { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.find .ttl .where { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.find .nums { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.find .nums b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.find .faces { display: flex; gap: 2px; margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 52px; }
.chip { height: 30px; padding: 0 12px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--composer); color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }
.chip[aria-pressed="false"] { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--edge); }
.chip[aria-pressed="false"] .icon { opacity: 0.6; }
.chip .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.find .foot { padding-left: 52px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.find .foot .icon { width: 13px; height: 13px; }
.onb-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.keynote { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.keynote .icon { width: 14px; height: 14px; }

/* preview sheet */
.scrim { position: absolute; inset: 0; background: var(--scrim); display: flex; align-items: center; justify-content: center; }
.sheet { width: 980px; height: 680px; max-height: calc(100vh - 80px); background: var(--menu); border-radius: 14px; box-shadow: var(--shadow-menu); display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.sheet-side { background: var(--panel); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.sheet-side .hd { padding: 4px 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.sheet-side .hd .app-tile { width: 28px; height: 28px; border-radius: 8px; background: var(--composer); }
.sheet-side .hd .app-tile svg { width: 16px; height: 16px; }
.sheet-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sheet-head { padding: 18px 22px 0; display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.sheet-tabs { display: flex; gap: 4px; padding: 14px 22px 0; }
.sheet-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.sheet-foot { padding: 12px 22px 16px; display: flex; align-items: center; gap: 8px; }
.sheet-foot .grow { flex: 1; font-size: 13px; color: var(--ink-3); }
.soul { background: var(--card); border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 21px; color: var(--ink); white-space: pre-wrap; font-family: var(--font-mono); max-height: 220px; overflow: hidden; position: relative; }
.soul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--card)); }
.notes { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 14px; padding: 4px; }
.note { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; font-size: 13px; }
.note .k { color: var(--ink-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.conflict { background: color-mix(in srgb, var(--warning) 10%, var(--card)); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.conflict .line { display: flex; gap: 8px; align-items: flex-start; }
.conflict .icon { width: 16px; height: 16px; color: var(--warning); margin-top: 2px; }
.radio-row { display: flex; gap: 6px; padding-left: 24px; }
.radio { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; background: var(--composer); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.radio[aria-checked="true"] { background: var(--ink); color: var(--app); }
.needs { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 14px; padding: 4px; }
.needs .p-row .icon { color: var(--ink-3); }
.sub-h { font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 2px 2px -4px; display: flex; justify-content: space-between; }
.sb-row .prev { display: block; }
.card-t h3 .icon { width: 18px; height: 18px; }
.sheet { --card: color-mix(in srgb, var(--ink) 5%, var(--menu)); }
.onb-col.found { padding-top: 44px; }
.onb-col.found .parade { height: 52px; margin-bottom: 12px; }
.onb-col.found .finds { margin-top: 20px; }
.onb-col.found .onb-actions { margin-top: 16px; }
.onb-col.found .keynote { margin-top: 10px; }
.onb-col.moving { padding-top: 110px; }
.carrier:nth-child(2) { animation-delay: -0.5s; }
.carrier:nth-child(3) { animation-delay: -1.7s; }
.carrier:nth-child(4) { animation-delay: -2.9s; }
.carrier:nth-child(5) { animation-delay: -4.1s; }
.keyname { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--composer); color: var(--ink-2); margin-right: 2px; }

/* browser additions: bot-check chip, held tab, acting toggle */
.check-chip { height: 26px; padding: 0 10px 0 8px; margin-right: 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; background: var(--inset); color: var(--ink-2); }
.check-chip .icon { width: 13px; height: 13px; }
.check-chip.need { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.tab .held-mark { color: var(--accent-text); }
.b-status .msg .icon { width: 14px; height: 14px; }
.icon-btn .act { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 2px var(--app); }
.icon-btn.acting { color: var(--ink); background: color-mix(in srgb, var(--success) 14%, transparent); }

/* moving day */
.move { display: flex; align-items: center; gap: 0; width: 720px; height: 150px; margin: 22px 0 6px; position: relative; }
.move .end { width: 84px; height: 84px; border-radius: 22px; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 2; }
.move .end svg { width: 40px; height: 40px; }
.move .track { flex: 1; position: relative; height: 150px; }
.move .road { position: absolute; left: 0; right: 0; top: 108px; height: 2px; background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 14px); }
.carrier { position: absolute; top: 46px; left: 0; width: 56px; display: flex; flex-direction: column; align-items: center; animation: walk 4.8s linear infinite; }
.carrier .load { width: 26px; height: 26px; image-rendering: pixelated; margin-bottom: -4px; animation: bob 0.6s ease-in-out infinite alternate; }
.carrier .body { animation: hop 0.6s ease-in-out infinite alternate; }



@keyframes walk { 0% { transform: translateX(-10px); opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(520px); opacity: 0; } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-3px) rotate(4deg); } }
body.shot .carrier { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .carrier, .carrier .load, .carrier .body { animation: none; }
  .carrier:nth-child(2) { transform: translateX(60px); }
  .carrier:nth-child(3) { transform: translateX(200px); }
  .carrier:nth-child(4) { transform: translateX(340px); }
  .carrier:nth-child(5) { transform: translateX(470px); }
}
.prog { width: 560px; display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 16px; padding: 6px; margin-top: 14px; }
.prog .p-row { padding: 9px 12px; }
.prog .p-row .icon { width: 16px; height: 16px; }
.prog .p-row .r { font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* settings modal */
.settings { position: absolute; inset: 40px 80px; background: var(--menu); border-radius: 14px; box-shadow: var(--shadow-menu); display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.set-nav { padding: 20px 16px; display: flex; flex-direction: column; gap: 2px; }
.set-nav .p-row { font-size: 15px; padding: 9px 12px; }
.set-nav .p-row[aria-current="page"] { background: var(--raised); }
.set-nav .p-row .icon { width: 18px; height: 18px; color: var(--ink); }
.set-main { padding: 22px 40px 24px 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.set-main .ttl { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 500; }
.set-main .ttl .icon { width: 18px; height: 18px; color: var(--ink-2); }
.set-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.set-row .what { flex: 1; min-width: 0; }
.set-row .n1 { font-size: 15px; }
.set-row .n2 { font-size: 13px; color: var(--ink-2); }
.set-group { background: var(--card); border-radius: 16px; padding: 4px; display: flex; flex-direction: column; }
