/* Microooo
   Direction (unslop, by Damir Sokolovsky @heydamir, CC BY 4.0):
   Product   One account that keeps people signed in to every AI they use, and lets that AI build apps on services already connected
   Character exact, calm, a little warm
   World     a patch bay: ports, cables, labelled jacks
   Moments   the connection map (sign-in, build panel) and the stack card
   Signature the port ring, hollow when free, filled when connected, used for every connection state */

:root {
  /* graphite ramp, light */
  --bg: #fafafa; --panel: #ffffff; --side: #f4f4f5; --raised: #f4f4f5;
  --ink: #171717; --ink-2: #525252; --ink-3: #737373;
  --line: rgba(23,23,23,.08); --line-2: rgba(23,23,23,.14);
  --hover: rgba(23,23,23,.04); --press: rgba(23,23,23,.07);
  --accent: #171717; --accent-ink: #ffffff; --accent-text: #171717;
  --ok: #16a34a; --bad: #dc2626;
  --logo-bg: #171717; --logo-fg: #fafafa;
  --shadow-1: 0 1px 2px rgba(0,0,0,.05);
  --shadow-2: 0 8px 24px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-3: 0 16px 48px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Newsreader', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141415; --panel: #19191b; --side: #0f0f10; --raised: #232325;
    --ink: #ededed; --ink-2: #a1a1a6; --ink-3: #85858b;
    --line: rgba(237,237,237,.08); --line-2: rgba(237,237,237,.14);
    --hover: rgba(237,237,237,.04); --press: rgba(237,237,237,.07);
    --accent: #ededed; --accent-ink: #0f0f10; --accent-text: #ededed;
    --ok: #4cc38a; --bad: #e5484d;
    --logo-bg: #ededed; --logo-fg: #141415;
    --shadow-1: none; --shadow-2: 0 8px 24px rgba(0,0,0,.4); --shadow-3: 0 16px 48px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141415; --panel: #19191b; --side: #0f0f10; --raised: #232325;
  --ink: #ededed; --ink-2: #a1a1a6; --ink-3: #85858b;
  --line: rgba(237,237,237,.08); --line-2: rgba(237,237,237,.14);
  --hover: rgba(237,237,237,.04); --press: rgba(237,237,237,.07);
  --accent: #ededed; --accent-ink: #0f0f10; --accent-text: #ededed;
  --ok: #4cc38a; --bad: #e5484d;
  --logo-bg: #ededed; --logo-fg: #141415;
  --shadow-1: none; --shadow-2: 0 8px 24px rgba(0,0,0,.4); --shadow-3: 0 16px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
b, strong { font-weight: 500; }
.ic { flex: none; display: block; }
::selection { background: color-mix(in srgb, var(--ink) 16%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .mono { font-family: var(--mono); font-size: 12px; }
.grow { flex: 1; } .row { display: flex; align-items: center; gap: 8px; }

/* Signature: the port ring */
.port { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: transparent; display: inline-block; transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.port.on { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2px var(--panel); }
.port.run { border-color: var(--accent); border-style: dashed; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.state.on { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; border: 1px solid transparent; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-accent { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--line-2); background: var(--panel); }
.btn-line:hover { background: var(--raised); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); transition: background-color .15s var(--ease), color .15s var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
kbd { font: 400 11px/16px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--panel); }

/* App marks: flat colour, the one place colour lives in the chrome */
.mono-tile { --c: #333; flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font: 500 12px/1 var(--font); color: #fff; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mono-tile.xs { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }
.mono-tile.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.mono-tile.lg { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.mono-tile.light { color: #171717; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mono-tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); } }
:root[data-theme="dark"] .mono-tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

button.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-size: 13px; }
button.link:hover { text-decoration-color: var(--ink); }

/* Quiet status text (replaces pills) */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.live { background: var(--ok); }
.dot.building { background: var(--accent); animation: live 1.2s var(--ease) infinite alternate; }
@keyframes live { to { opacity: .35; } }
.tag { font: 400 12px/16px var(--mono); color: var(--ink-3); white-space: nowrap; }

/* ============ Sign in ============ */
.auth { height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; overflow: auto; }
.auth-art { position: relative; background: #0f0f10; color: #ededed; padding: 40px 48px; display: flex; flex-direction: column; overflow: hidden; --logo-bg: #ededed; --logo-fg: #0f0f10; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 16px; position: relative; z-index: 2; }
.auth-art h1 { font: 400 56px/1.04 var(--serif); letter-spacing: -.03em; margin: auto 0 16px; max-width: 12ch; position: relative; z-index: 2; }
.auth-art p { color: #a1a1a6; max-width: 40ch; margin: 0; font-size: 16px; line-height: 24px; position: relative; z-index: 2; }
.patch { position: absolute; z-index: 1; right: 6%; top: 8%; width: min(520px, 60%); aspect-ratio: 1; pointer-events: none; }
.patch svg { width: 100%; height: 100%; overflow: visible; }
.patch .cable { stroke: rgba(237,237,237,.14); stroke-width: 1.5; fill: none; }
.patch .cable.on { stroke: rgba(237,237,237,.4); }
.patch .jack { fill: #0f0f10; stroke: rgba(237,237,237,.45); stroke-width: 1.5; }
.patch .jack.on { fill: #4cc38a; stroke: #4cc38a; }
.patch .lbl { font: 400 11px var(--mono); fill: #85858b; }
.patch .tile-t { font: 500 13px var(--font); fill: #fff; }
.auth-foot { display: flex; gap: 24px; color: #85858b; font-size: 12px; margin-top: 24px; position: relative; z-index: 2; flex-wrap: wrap; }
.auth-foot span { display: inline-flex; align-items: center; gap: 8px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font: 500 28px/1.15 var(--font); letter-spacing: -.02em; margin: 0 0 8px; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 24px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input { height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 12px; outline: none; width: 100%; transition: border-color .15s var(--ease); }
.input:focus { border-color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; margin: 4px 0 20px; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.switch-mode { text-align: center; margin-top: 20px; color: var(--ink-2); font-size: 13px; }
.switch-mode button { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal { margin-top: 32px; color: var(--ink-3); font-size: 12px; text-align: center; }

/* ============ App shell ============ */
.app { height: 100vh; display: grid; grid-template-columns: 256px 1fr; }
.app.side-off { grid-template-columns: 0 1fr; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.side-in { width: 256px; height: 100%; display: flex; flex-direction: column; padding: 12px; }
.side-top { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 4px 0 8px; margin-bottom: 8px; font-weight: 500; font-size: 16px; }
.new-build { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 500; background: var(--panel); border: 1px solid var(--line-2); margin-bottom: 16px; transition: background-color .15s var(--ease); }
.new-build:hover { background: var(--raised); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a .ic { color: var(--ink-3); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on .ic { color: var(--ink); }
.nav a .count { margin-left: auto; font: 400 12px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-h { font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 24px 8px 8px; display: flex; align-items: center; }
.side-h button { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.side-h button:hover { color: var(--ink); }
.connected-ai { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.connected-ai > span { position: relative; }
.connected-ai .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.connected-ai > span .port { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; box-shadow: inset 0 0 0 1.5px var(--side), 0 0 0 2px var(--side); }
.connected-ai .add { width: 24px; height: 24px; border-radius: 6px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--ink-3); }
.connected-ai .add:hover { color: var(--ink); }
.builds { flex: 1; overflow: auto; margin: 0 -4px; padding: 0 4px; display: grid; gap: 2px; align-content: start; }
.builds a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 13px; }
.builds a span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builds a:hover { background: var(--hover); color: var(--ink); }
.builds a.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.builds .empty { padding: 4px 8px; color: var(--ink-3); font-size: 13px; }
.me { position: relative; border-top: 1px solid var(--line); margin: 8px -12px -12px; padding: 8px 12px 12px; }
.me-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 8px; text-align: left; }
.me-btn:hover { background: var(--hover); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 500; font-size: 13px; flex: none; }
.me-btn b { display: block; font-weight: 500; font-size: 13px; line-height: 16px; }
.me-btn small { color: var(--ink-3); font-size: 12px; line-height: 16px; display: block; max-width: 156px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; bottom: calc(100% - 4px); left: 12px; right: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); padding: 4px; z-index: 30; animation: rise .18s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border-radius: 8px; text-decoration: none; font-size: 13px; color: var(--ink-2); }
.menu button:hover, .menu a:hover { background: var(--hover); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.theme-row .seg button { width: 32px; padding: 0; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.main { min-width: 0; display: flex; flex-direction: column; height: 100vh; position: relative; }
.topbar { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid transparent; }
.topbar.lined { border-bottom-color: var(--line); }
.crumb { display: flex; align-items: center; gap: 12px; font-weight: 500; min-width: 0; }
.crumb > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { flex: 1; min-height: 0; overflow: auto; }

/* Search trigger + palette */
.cmdk { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 12px; min-width: 240px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-3); font-size: 13px; transition: color .15s var(--ease); }
.cmdk:hover { color: var(--ink-2); }
.cmdk kbd { margin-left: auto; margin-right: 4px; }
.palette { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3); z-index: 51; overflow: hidden; animation: drop .2s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); min-width: 0; }
.pal-in input::placeholder { color: var(--ink-3); }
.pal-list { max-height: min(432px, 58vh); overflow: auto; padding: 4px; }
.pal-g { font-size: 12px; color: var(--ink-3); padding: 12px 12px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 8px; text-align: left; }
.pal-item b { font-weight: 400; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item small { color: var(--ink-3); font-size: 12px; line-height: 16px; display: block; }
.pal-item kbd { visibility: hidden; }
.pal-item.on { background: var(--raised); }
.pal-item.on kbd { visibility: visible; }
.pal-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.pal-empty { padding: 24px; text-align: center; color: var(--ink-3); }
.pal-foot { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot kbd { margin-right: 4px; }

/* Segmented control */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }

/* ============ Build ============ */
.build { display: grid; grid-template-columns: 1fr; }
.build.has-insp { grid-template-columns: 1fr 368px; }
.insp-toggle { display: none !important; }
.thread-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.thread-in { max-width: 760px; margin: 0 auto; display: grid; gap: 24px; }
.composer-wrap { padding: 0 24px 16px; }
.composer-wrap .hint { max-width: 760px; margin: 8px auto 0; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.composer { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-2); padding: 12px 12px 12px 16px; transition: border-color .15s var(--ease); }
.composer:focus-within { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 15px; line-height: 24px; min-height: 24px; max-height: 220px; padding: 4px 0 8px; display: block; }
.composer textarea::placeholder { color: var(--ink-3); }
.comp-row { display: flex; align-items: center; gap: 4px; }
.ai-pick { position: relative; }
.ai-pick-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border-radius: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: background-color .15s var(--ease); }
.ai-pick-btn:hover { background: var(--hover); color: var(--ink); }
.ai-pick-btn .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.ai-menu { position: absolute; bottom: calc(100% + 8px); left: 0; width: 280px; max-height: 360px; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); padding: 4px; z-index: 40; animation: rise .18s var(--ease); }
.ai-menu .h { font-size: 12px; color: var(--ink-3); padding: 8px 8px 4px; }
.ai-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 8px; text-align: left; }
.ai-menu button:hover { background: var(--hover); }
.ai-menu button b { font-weight: 400; }
.ai-menu button small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ai-menu button .ic.check { margin-left: auto; color: var(--ink); }
.ai-menu .mono-tile { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; }
.auto-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--ink-3); }
.send { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: opacity .15s var(--ease), transform .12s var(--ease); }
.send:disabled { opacity: .2; cursor: default; }
.send:not(:disabled):active { transform: scale(.96); }

.hero { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 48px 24px 10vh; }
.hero-in { max-width: 760px; margin: 0 auto; width: 100%; }
.hero h1 { font: 500 32px/1.15 var(--font); letter-spacing: -.02em; margin: 0 0 8px; }
.hero .lead { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; line-height: 22px; max-width: 36rem; }
.suggest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.suggest button { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.suggest button:hover { background: var(--panel); border-color: var(--line-2); }
.sg-ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--ink-3); background: var(--panel); }
.suggest b { display: block; font-weight: 500; }
.suggest small { color: var(--ink-3); font-size: 13px; }
.hero-ai { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.hero-ai .stack { display: flex; }
.hero-ai .stack .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); }
.hero-ai .stack .mono-tile:first-child { margin-left: 0; }

.msg { display: flex; gap: 12px; animation: rise .3s var(--ease) both; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--raised); padding: 8px 16px; border-radius: 16px 16px 4px 16px; max-width: 80%; white-space: pre-wrap; line-height: 22px; }
.msg .who { width: 28px; height: 28px; flex: none; }
.msg .who .mono-tile { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.msg .body { min-width: 0; flex: 1; display: grid; gap: 12px; }
.msg .text { line-height: 22px; }
.msg .text p { margin: 0 0 8px; } .msg .text p:last-child { margin: 0; }
.msg .text code { font: 400 12px var(--mono); background: var(--raised); padding: 2px 4px; border-radius: 4px; }
.msg .text ul { margin: 4px 0; padding-left: 20px; } .msg .text li { margin: 4px 0; }
.msg .meta { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: live .6s var(--ease) infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }

.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.card-h b { font-weight: 500; }
.card-h .ic { color: var(--ink-3); }
.card-f { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; line-height: 16px; display: flex; align-items: center; gap: 8px; }
.stack-row { display: grid; grid-template-columns: 88px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; border-bottom: 1px solid var(--line); }
.stack-row:last-of-type { border-bottom: 0; }
.stack-row .cat { font-size: 13px; color: var(--ink-3); }
.stack-row .prov { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stack-row .prov .mono-tile { width: 28px; height: 28px; border-radius: 6px; font-size: 10px; }
.stack-row .prov b { font-weight: 500; display: block; line-height: 20px; }
.stack-row .prov small { color: var(--ink-3); font: 400 12px/16px var(--font); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); transition: background-color .15s var(--ease); }
.swap:hover { background: var(--raised); color: var(--ink); }
.swap select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.notes { padding: 12px 16px; display: flex; gap: 12px; color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--line); background: var(--raised); }
.notes .ic { color: var(--ink-3); margin-top: 2px; }

.steps { list-style: none; margin: 0; padding: 8px 16px 12px; display: grid; }
.steps li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 4px 0; transition: opacity .2s var(--ease); }
.steps .mark { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; }
.steps li.run .mark { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.wait { opacity: .45; }
.steps b { font-weight: 500; font-size: 13px; display: block; line-height: 20px; }
.steps small { color: var(--ink-3); font-size: 12px; line-height: 16px; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; flex: none; }
.progress { height: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transition: transform .4s var(--ease); }
.live-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--raised); }
.live-row a { font: 400 12px var(--mono); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-row a:hover { text-decoration: underline; }
.connect-card { padding: 16px; display: grid; gap: 12px; }
.connect-card .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.connect-card .opts button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 500; transition: background-color .15s var(--ease); }
.connect-card .opts button:hover { background: var(--raised); }
.connect-card .opts .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }

/* Inspector */
.insp { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.insp-h { padding: 16px 16px 12px; display: flex; align-items: flex-start; gap: 12px; }
.insp-h h3 { margin: 4px 0 0; font-size: 16px; line-height: 20px; font-weight: 500; }
.eyebrow { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.insp .seg { margin: 0 16px 16px; align-self: flex-start; }
.insp-body { flex: 1; overflow: auto; padding: 0 16px 16px; display: grid; gap: 16px; align-content: start; }
.graph { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.graph svg { display: block; width: 100%; height: auto; }
.graph .edge { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; fill: none; transition: stroke .3s var(--ease); }
.graph .edge.on { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-dasharray: none; }
.graph .flow { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 10; fill: none; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.graph text { font: 400 9.5px var(--font); fill: var(--ink-3); }
.graph .lbl-mono { font: 500 9.5px var(--font); fill: #fff; }
.kv { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); width: 80px; flex: none; }
.kv .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list > div { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 13px; }
.list > div:last-child { border-bottom: 0; }
.list .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.tree { font: 400 12px/28px var(--mono); color: var(--ink-2); }
.tree div { display: flex; align-items: center; gap: 8px; }
.tree .ic { color: var(--ink-3); }
.secret { font: 400 12px var(--mono); color: var(--ink-2); }

/* Build home */
.home { max-width: 960px; margin: 0 auto; padding: 64px 32px 48px; }
.home h1 { font: 500 32px/1.15 var(--font); letter-spacing: -.02em; margin: 0 0 8px; max-width: 24ch; }
.home .lead { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; line-height: 22px; max-width: 36rem; }
.home .composer { max-width: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; align-items: start; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; margin-bottom: 4px; }
.eyebrow-row h2 { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.eyebrow-row a { font-size: 12px; color: var(--ink-3); text-decoration: none; }
.eyebrow-row a:hover { color: var(--ink); }
.starts { display: grid; border-top: 1px solid var(--line); }
.start-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease); }
.start-row:hover { background: var(--hover); }
.start-row .t { flex: 1; min-width: 0; }
.start-row b { display: block; font-weight: 500; }
.start-row small { display: block; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-row .go { color: var(--ink-3); transition: transform .15s var(--ease), color .15s var(--ease); }
.start-row:hover .go { color: var(--ink); transform: translateX(2px); }
.rig { padding: 8px 16px 12px; }
.rig h3 { font-size: 12px; font-weight: 400; color: var(--ink-3); margin: 12px 0 0; }
.rig-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 16px; align-items: center; gap: 12px; height: 40px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rig-row .k { color: var(--ink-3); }
.rig-row .v { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rig-row .v > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* AI Store */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.acct { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 128px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); text-align: left; cursor: pointer; transition: border-color .15s var(--ease); }
.acct:hover { border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.acct-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct .tn { min-width: 0; }
.acct b { display: block; font-weight: 500; }
.acct small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acct.add { border-style: dashed; background: transparent; justify-content: flex-start; flex-direction: row; align-items: center; color: var(--ink-2); }
.acct.add .add-ic { width: 48px; height: 48px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; flex: none; color: var(--ink-3); }
.dir-sec .section-h { margin-top: 24px; }
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.dir-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 12px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s var(--ease); }
.dir-row:hover { background: var(--hover); }
.dir-row .mid { min-width: 0; display: grid; gap: 2px; }
.dir-row .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dir-row .nm b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-row .d { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-row .act { display: flex; align-items: center; gap: 12px; }
.dir-row .p { font: 400 12px var(--mono); color: var(--ink-3); max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Services: one patch panel per category */
.panels { columns: 3 320px; column-gap: 16px; }
.panel { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-h .ic { color: var(--ink-3); }
.panel-h h2 { margin: 0; font-size: 14px; font-weight: 500; flex: 1; }
.prow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 32px; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s var(--ease); }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--hover); }
.prow .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prow .nm b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .p { font: 400 12px var(--mono); color: var(--ink-3); max-width: 156px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.def { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; transition: background-color .15s var(--ease); }
.def:hover { background: var(--press); }
.port.pick { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--panel); }

/* ============ Pages ============ */
.page { max-width: 1280px; margin: 0 auto; padding: 8px 32px 64px; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-h h1 { font: 500 28px/1.15 var(--font); letter-spacing: -.02em; margin: 0 0 8px; }
.page-h p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { height: 36px; width: 280px; max-width: 100%; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 12px 0 36px; outline: none; transition: border-color .15s var(--ease); }
.search input:focus { border-color: var(--accent); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.chips button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.chips button:hover { background: var(--hover); color: var(--ink); }
.chips button.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chips button .n { font: 400 12px var(--mono); color: var(--ink-3); }
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 12px; }
.section-h h2 { font-size: 15px; font-weight: 500; margin: 0; }
.section-h span { color: var(--ink-3); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 12px; }
.tile { text-align: left; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 152px; cursor: pointer; transition: border-color .15s var(--ease); }
.tile:hover { border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.tile-h { display: flex; align-items: center; gap: 12px; }
.tile-h .tn { flex: 1; min-width: 0; }
.tile-h b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-h small { color: var(--ink-3); font-size: 12px; line-height: 16px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-h .state { align-self: flex-start; padding-top: 2px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 20px; flex: 1; }
.tile-f { display: flex; align-items: center; gap: 8px; font-size: 12px; min-height: 32px; }
.tile-f .price { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); margin-bottom: 8px; }
.feature-l { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feature-l h2 { font: 500 24px/1.2 var(--font); letter-spacing: -.01em; margin: 0; }
.feature-l p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.feature-l .row { margin-top: 8px; flex-wrap: wrap; }
.feature-r { background: #0f0f10; position: relative; min-height: 232px; display: grid; place-items: center; padding: 24px; }
.feature-r .wall { display: grid; grid-template-columns: repeat(6, 44px); gap: 12px; }
.feature-r .wall > span { position: relative; }
.feature-r .wall .mono-tile { width: 44px; height: 44px; border-radius: 10px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.feature-r .wall .port { position: absolute; right: -3px; bottom: -3px; box-shadow: inset 0 0 0 2px #0f0f10, 0 0 0 2px #0f0f10; }
.feature-r .wall > span:not(.lit) .mono-tile { opacity: .45; }

/* Drawer / modal */
.scrim { position: fixed; inset: 0; background: rgba(10,10,10,.32); z-index: 50; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(456px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3); z-index: 51; display: flex; flex-direction: column; animation: slide .3s var(--ease); overflow: hidden; }
@keyframes slide { from { transform: translateX(12px); opacity: 0; } }
.drawer-h { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 16px; }
.drawer-h h3 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 500; }
.drawer-h p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.drawer-b { flex: 1; overflow: auto; padding: 0 24px 24px; display: grid; gap: 20px; align-content: start; }
.drawer-f { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plans { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plans > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.plans > div:last-child { border-bottom: 0; }
.plans b { font-weight: 500; } .plans .pr { font: 400 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.plans small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.howto { display: grid; gap: 12px; }
.howto div { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.howto i { font: normal 400 12px/20px var(--mono); width: 20px; text-align: center; color: var(--ink-3); flex: none; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(448px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3); z-index: 51; animation: zoom .24s var(--ease); }
.modal.wide { width: min(640px, calc(100vw - 24px)); }
@keyframes zoom { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }
.modal-b { padding: 24px; }
.modal h3 { margin: 0 0 8px; font-size: 20px; line-height: 24px; font-weight: 500; }
.modal .sub { color: var(--ink-2); margin: 0 0 20px; }
.handshake { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 20px; }
.handshake .line { width: 64px; height: 0; border-top: 1.5px dashed var(--line-2); }
.handshake .line.go { border-top: 1.5px solid var(--ink-3); }
.handshake .port { width: 12px; height: 12px; }
.conn-steps { display: grid; gap: 8px; margin: 4px 0 20px; }
.conn-steps div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.conn-steps div.done { color: var(--ink); }
.conn-steps div.done .ic { color: var(--ok); }
.conn-steps .spin { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.conn-steps .wait { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.pick-grid button { display: flex; align-items: center; gap: 12px; padding: 8px 12px; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); text-align: left; font-weight: 500; font-size: 13px; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.pick-grid button:hover { background: var(--raised); }
.pick-grid button.on { border-color: var(--ink); }
.pick-grid button .port { margin-left: auto; }
.pick-grid button.on .port { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--panel); }
.pick-grid button[disabled] { opacity: .6; cursor: default; }
.pick-grid .mono-tile { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; }

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; font-size: 13px; }
.table th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 16px; height: 48px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.wrap { white-space: normal; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s var(--ease); }
.table tbody tr:hover { background: var(--hover); }
.table .who { display: flex; align-items: center; gap: 12px; }
.table .mono-tile { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-family: var(--mono); font-size: 12px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 20px; }
.stat small { color: var(--ink-3); font-size: 13px; display: block; }
.stat b { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: block; margin: 8px 0 4px; }
.stat span { color: var(--ink-3); font-size: 12px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); margin-bottom: 24px; }
.callout .ic { color: var(--ink-3); margin-top: 2px; }
.callout b { display: block; margin-bottom: 4px; font-weight: 500; }
.callout p { margin: 0; color: var(--ink-2); font-size: 13px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); }
.empty-state .ic { margin: 0 auto 12px; color: var(--ink-3); }
.cap-card { padding: 20px; margin-bottom: 12px; }
.cap-val { font: 500 24px/1 var(--font); font-variant-numeric: tabular-nums; }
.range { --p: 50%; width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 4px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--ink) var(--p), var(--raised) var(--p)); box-shadow: inset 0 0 0 1px var(--line); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--ink); box-shadow: var(--shadow-1); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--ink); }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 8px; }
.rt { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; text-align: left; }
.rt b { font-weight: 500; display: block; }
.rt small { color: var(--ink-3); font-size: 12px; line-height: 16px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Preview (the deployed app, its own look) */
.pv-wrap { padding: 24px; height: 100%; display: flex; flex-direction: column; }
.pv-frame { flex: 1; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-2); background: #fff; color: #18181b; min-height: 480px; }
.pv-bar { height: 40px; background: #f4f4f5; border-bottom: 1px solid #e4e4e7; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.pv-bar .lights { display: flex; gap: 8px; } .pv-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.pv-bar .url { flex: 1; max-width: 460px; margin: 0 auto; height: 28px; border-radius: 6px; background: #fff; border: 1px solid #e4e4e7; display: flex; align-items: center; justify-content: center; gap: 8px; font: 400 12px var(--mono); color: #71717a; }
.pv-site { flex: 1; overflow: auto; }
.pv-nav { display: flex; align-items: center; gap: 20px; padding: 16px 32px; border-bottom: 1px solid #f4f4f5; }
.pv-nav b { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.pv-nav b i { width: 20px; height: 20px; border-radius: 6px; background: var(--pv, #2456d6); }
.pv-nav span { color: #71717a; font-size: 13px; }
.pv-nav .cta { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px; background: #18181b; color: #fff; display: inline-flex; align-items: center; }
.pv-hero { padding: 64px 32px 32px; max-width: 760px; }
.pv-hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; font-weight: 500; margin: 0 0 12px; }
.pv-hero p { color: #52525b; font-size: 17px; line-height: 26px; margin: 0 0 24px; }
.pv-hero .b { display: inline-flex; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--pv, #2456d6); color: #fff; align-items: center; font-weight: 500; margin-right: 8px; }
.pv-hero .b2 { display: inline-flex; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid #e4e4e7; align-items: center; font-weight: 500; }
.pv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 8px 32px 40px; }
.pv-card { border: 1px solid #e4e4e7; border-radius: 12px; padding: 16px; }
.pv-card .k { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e4e4e7; color: #52525b; display: grid; place-items: center; margin-bottom: 12px; }
.pv-card b { display: block; margin-bottom: 4px; font-weight: 500; }
.pv-card p { margin: 0; color: #71717a; font-size: 13px; }
.pv-foot { padding: 16px 32px; border-top: 1px solid #f4f4f5; color: #a1a1aa; font-size: 12px; display: flex; gap: 12px; }

/* Toasts */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 40px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: var(--shadow-2); animation: rise .3s var(--ease); }

/* Responsive */
.only-m { display: none; }
@media (max-width: 1100px) { .dir-row .p { display: none; } }
@media (max-width: 1180px) {
  .build.has-insp { grid-template-columns: 1fr; }
  .build .insp { position: fixed; top: 0; right: 0; bottom: 0; width: min(368px, 100vw); z-index: 45; box-shadow: var(--shadow-3); transform: translateX(105%); transition: transform .3s var(--ease); }
  .build .insp.open { transform: none; }
  .insp-toggle { display: grid !important; }
}
@media (max-width: 860px) {
  .only-m { display: grid; }
  .app, .app.side-off { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 46; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-3); }
  .app.side-m .side { transform: none; }
  .app.side-m::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 45; }
  .side-in { width: 272px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 400px; padding: 24px 20px; }
  .auth-art h1 { font-size: 40px; margin-top: 200px; }
  .patch { right: -8%; top: 40px; width: 64%; }
  .suggest { grid-template-columns: 1fr; }
  .page { padding: 8px 16px 48px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr auto; }
  .stack-row .cat { grid-column: 1 / -1; margin-bottom: -4px; }
  .stack-row .state { display: none; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .thread, .composer-wrap { padding-left: 12px; padding-right: 12px; }
  .search, .search input { width: 100%; }
  .pv-wrap { padding: 12px; }
  .pv-hero { padding: 40px 20px 24px; }
  .pv-hero h1 { font-size: 32px; }
  .hero h1, .home h1 { font-size: 26px; }
  .home { padding: 32px 16px 40px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .dir { grid-template-columns: minmax(0, 1fr); }
  .dir-row .p { display: none; }
}
@media (max-width: 640px) {
  .ai-pick-btn .faint, .auto-chip span { display: none; }
  .cmdk { min-width: 0; padding: 0 8px; } .cmdk span, .cmdk kbd { display: none; }
  .hide-s { display: none; }
  .pal-foot span:last-child { display: none; }
  .feature-r .wall { grid-template-columns: repeat(5, 40px); gap: 8px; }
  .feature-r .wall .mono-tile { width: 40px; height: 40px; }
  .feature-r .wall > span:nth-child(n+21) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; } }

/* =====================================================================
   Fynn-style layer (owner 2026-11-11: dashboard look and colours like the
   "Fynn AI Finance SaaS" case study by Fractal Labs on Behance). Our own
   mark, words and data; their visual language: grey canvas, floating white
   cards on 24px corners, black active pills, one peach gradient feature
   card, one black card, periwinkle charts, lime badges, Inter / Inter Tight.
   ===================================================================== */
:root {
  --bg: #ececec; --panel: #ffffff; --side: #ffffff; --raised: #f3f3f4;
  --ink: #111111; --ink-2: #55555b; --ink-3: #8c8c93;
  --line: rgba(17,17,17,.07); --line-2: rgba(17,17,17,.11);
  --hover: rgba(17,17,17,.04); --press: rgba(17,17,17,.07);
  --accent: #111111; --accent-ink: #ffffff; --accent-text: #111111;
  --lime: #d4f57a; --lime-ink: #2d3b06; --peach: #ff9a62; --pink: #ff6f91;
  --blue: #8e9cf7; --blue-2: #5b6cf0; --blue-soft: #e9ecff; --red: #ff5c74; --red-soft: #ffe6ea; --green-soft: #e8f8d2; --green-ink: #3b5a00;
  --brand: #e0682f; --brand-ink: #b3471a; --brand-soft: #fbe9df;
  --grad: linear-gradient(135deg, #f6a46c 0%, #ea733d 50%, #cf4f27 100%);
  --ok: #4fb31f;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04);
  --shadow-card: 0 1px 2px rgba(0,0,0,.03), 0 10px 30px -12px rgba(0,0,0,.08);
  --shadow-2: 0 12px 32px -8px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.05);
  --r-card: 24px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0b0c; --panel: #161618; --side: #161618; --raised: #222226; --ink: #f2f2f3; --ink-2: #b2b2b8; --ink-3: #7d7d85;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.11); --hover: rgba(255,255,255,.05); --press: rgba(255,255,255,.08);
  --accent: #f2f2f3; --accent-ink: #111; --accent-text: #f2f2f3; --blue-soft: #1e2244; --red-soft: #3a1820; --green-soft: #1f2d12; --green-ink: #c3ec7a;
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset; --shadow-1: none;
} }
:root[data-theme="dark"] {
  --bg: #0b0b0c; --panel: #161618; --side: #161618; --raised: #222226; --ink: #f2f2f3; --ink-2: #b2b2b8; --ink-3: #7d7d85;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.11); --hover: rgba(255,255,255,.05); --press: rgba(255,255,255,.08);
  --accent: #f2f2f3; --accent-ink: #111; --accent-text: #f2f2f3; --blue-soft: #1e2244; --red-soft: #3a1820; --green-soft: #1f2d12; --green-ink: #c3ec7a;
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset; --shadow-1: none;
}
body { font-family: var(--font); font-size: 14px; letter-spacing: -.006em; }
.mono, .tag, .plans .pr, .dir-row .p, .prow .p, .nav a .count, .chips button .n, .table td.num { font-family: var(--font); font-variant-numeric: tabular-nums; }
.secret, .tree, .msg .text code, .live-row a, .pv-bar .url, kbd, .mono-in { font-family: var(--mono); }

/* Shell: floating white sidebar card on the grey canvas */
.app { grid-template-columns: 284px 1fr; }
.side { background: transparent; border-right: 0; padding: 12px 0 12px 12px; }
.side-in { width: 272px; background: var(--side); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px 12px 12px; }
.side-top { height: 44px; padding: 0 4px 0 6px; margin-bottom: 12px; gap: 10px; }
.brand-t { display: grid; line-height: 1.15; min-width: 0; }
.brand-t b { font: 600 16px/1.2 var(--display); letter-spacing: -.02em; }
.brand-t small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.new-build { background: var(--ink); color: var(--bg); border: 0; border-radius: 12px; height: 40px; }
.new-build .ic { color: var(--lime); }
.new-build:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.nav { gap: 4px; }
.nav a { height: 40px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-size: 14px; }
.nav a .ic { color: var(--ink-2); }
.nav a.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.nav a.on .ic { color: var(--lime); }
.nav a .count:not(:empty) { height: 20px; min-width: 20px; padding: 0 7px; border-radius: 99px; background: var(--raised); color: var(--ink-2); font-size: 11px; font-weight: 500; display: grid; place-items: center; }
.nav a.on .count:not(:empty) { background: rgba(255,255,255,.16); color: var(--bg); }
.side-h { padding: 20px 12px 8px; font-weight: 500; }
.connected-ai { padding: 0 12px; }
.builds a { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.builds a.on { background: var(--raised); box-shadow: none; color: var(--ink); }
.side-promo { margin: 12px 0 8px; padding: 16px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; gap: 4px; }
.side-promo b { font: 500 14px var(--display); }
.side-promo span { font-size: 12px; opacity: .9; }
.side-promo a { margin-top: 12px; height: 34px; border-radius: 10px; background: #fff; color: #111; display: grid; place-items: center; font-weight: 500; font-size: 13px; text-decoration: none; }
.me { border-top: 0; margin: 0 -12px -12px; padding: 4px 12px 12px; }
.avatar { background: var(--lime); color: var(--lime-ink); border-radius: 10px; }
.menu { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-2); }

/* Top bar: breadcrumb left, search, bell and account right */
.topbar { height: 76px; padding: 0 24px; gap: 12px; }
.topbar.lined { border-bottom-color: transparent; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs .sep { color: var(--ink-3); }
.cmdk { height: 40px; min-width: 280px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-1); padding: 0 14px; color: var(--ink-3); }
.cmdk kbd { border: 0; background: none; font-family: var(--font); font-size: 12px; color: var(--ink-3); }
.circle-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-1); display: grid; place-items: center; color: var(--ink); flex: none; }
.circle-btn:hover { background: var(--raised); }
.who-chip { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 4px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-1); text-align: left; }
.who-chip .avatar { width: 32px; height: 32px; font-size: 12px; }
.who-chip b { display: block; font-size: 13px; font-weight: 500; line-height: 16px; }
.who-chip small { display: block; font-size: 11px; color: var(--ink-3); line-height: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons, pills, round arrow buttons */
.btn { height: 40px; border-radius: 12px; padding: 0 18px; }
.btn-sm { height: 34px; border-radius: 10px; padding: 0 14px; }
.btn-lg { height: 48px; border-radius: 14px; }
.btn-primary .ic { color: var(--lime); }
.btn-line { border: 0; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: color-mix(in srgb, var(--lime) 88%, #000); }
.arrow-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; color: var(--ink); flex: none; transition: background-color .15s var(--ease); }
.arrow-btn:hover { background: var(--press); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--ink-2); }
.badge.lime { background: var(--lime); color: var(--lime-ink); }
.badge.pink { background: var(--red); color: #fff; }
.badge.soft-pink { background: var(--red-soft); color: #c21f3d; }
.badge.blue { background: var(--blue-soft); color: var(--blue-2); }
.badge.green { background: var(--green-soft); color: var(--green-ink); }
.badge.dark { background: var(--ink); color: var(--bg); }
.state.on { height: 22px; padding: 0 9px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font-weight: 500; font-size: 11.5px; gap: 6px; }
.state.on .port { width: 6px; height: 6px; border: 0; background: currentColor; box-shadow: none; }
.port.on { border-color: #4fb31f; background: #4fb31f; }

/* Segmented controls and chips: grey track, black active pill */
.seg { background: var(--raised); border: 0; border-radius: 99px; padding: 4px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 99px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.theme-row .seg button { width: 34px; padding: 0; }
.chips { gap: 8px; }
.chips button { height: 36px; padding: 0 16px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); color: var(--ink-2); }
.chips button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chips button.on .n { color: rgba(255,255,255,.6); }

/* Cards */
.card, .tile, .stat, .panel, .acct, .rt, .callout, .table, .kv, .list, .plans, .empty-state, .composer, .feature, .app-card { border: 0; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); }
.empty-state { border: 1.5px dashed var(--line-2); box-shadow: none; background: transparent; }
.card-h { border-bottom-color: var(--line); padding: 16px 20px; min-height: 60px; }
.card-h b { font: 500 16px var(--display); letter-spacing: -.01em; }
.card-f { background: transparent; }
.table { border-radius: 20px; }
.table th { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: var(--ink-3); padding: 12px 20px; background: transparent; }
.table td { padding: 10px 20px; height: 56px; }
.table-wrap { border-radius: 20px; }
.kv, .list { border-radius: 16px; box-shadow: none; background: var(--raised); }
.kv > div, .list > div { border-bottom-color: var(--line); }
.mono-tile { background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: color-mix(in srgb, var(--c) 82%, #000); box-shadow: none; border-radius: 10px; font-weight: 600; }
.mono-tile.light { color: color-mix(in srgb, var(--c) 55%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mono-tile { background: color-mix(in srgb, var(--c) 26%, var(--panel)); color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: none; } }
:root[data-theme="dark"] .mono-tile { background: color-mix(in srgb, var(--c) 26%, var(--panel)); color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: none; }
.feature-r .wall .mono-tile, .patch .mono-tile { color: #fff; background: var(--c); }

/* Page header: date chip, big headline whose second sentence is grey */
.page { max-width: 1440px; padding: 0 24px 64px; }
.page-h { margin-bottom: 24px; align-items: flex-end; }
.page-h h1 { font: 500 40px/1.08 var(--display); letter-spacing: -.035em; margin: 12px 0 0; }
.page-h h1 .soft { color: var(--ink-3); }
.page-h p { margin-top: 8px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); font-size: 12px; color: var(--ink-2); }
.date-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { height: 40px; border: 0; border-radius: 12px; box-shadow: var(--shadow-1); }
.section-h { margin: 32px 0 16px; }
.section-h h2 { font: 500 18px var(--display); letter-spacing: -.015em; }

/* Black notice bar */
.alert-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 8px 8px 18px; border-radius: 16px; background: #111; color: #f2f2f3; margin-bottom: 24px; font-size: 13.5px; }
.alert-bar .ic { color: var(--lime); }
.alert-bar span { flex: 1; min-width: 0; }
:root[data-theme="dark"] .alert-bar { background: #1c1c1f; }

/* Overview */
.ov { max-width: 1440px; margin: 0 auto; padding: 0 24px 64px; }
.ov-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ov-head h1 { font: 500 44px/1.06 var(--display); letter-spacing: -.04em; margin: 12px 0 0; flex: 1; min-width: 280px; }
.ov-head h1 .soft { color: var(--ink-3); }
.ov .composer { max-width: none; margin-bottom: 20px; border-radius: var(--r-card); padding: 16px 16px 12px 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi { position: relative; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); padding: 20px 22px; min-height: 236px; display: flex; flex-direction: column; overflow: hidden; }
.kpi-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-h b { font: 500 17px var(--display); letter-spacing: -.01em; }
.kpi .lbl { font-size: 13px; color: var(--ink-3); margin-top: auto; }
.kpi .big { font: 400 52px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 8px 0 14px; }
.kpi .big .c { opacity: .55; font-size: .5em; letter-spacing: -.02em; }
.kpi .big .u { font-size: .34em; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.kpi .foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.kpi.grad { background: var(--grad); color: #fff; box-shadow: none; }
.kpi.grad .lbl, .kpi.grad .foot { color: rgba(255,255,255,.88); }
.kpi.grad .arrow-btn { background: #fff; color: #111; }
.kpi.grad .glass { background: rgba(255,255,255,.2); color: #fff; }
.kpi.grad::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03); pointer-events: none; }
.kpi.dark { background: #111; color: #f2f2f3; box-shadow: none; }
.kpi.dark .lbl { color: #8c8c93; }
.kpi.dark .arrow-btn { background: #2a2a2e; color: #f2f2f3; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; position: relative; }
.bars i { flex: 1; height: 100%; border-radius: 3px; background: var(--raised); }
.bars i.on { background: var(--blue); }
.bars i.on:nth-child(odd) { background: color-mix(in srgb, var(--blue) 80%, var(--panel)); }
.bars .mark { position: absolute; top: -18px; bottom: -2px; width: 2px; background: var(--ink); border-radius: 1px; }
.bars .mark span { position: absolute; top: -2px; left: 6px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.dots { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.dots .col { display: grid; justify-items: center; gap: 6px; }
.dots .stack { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; }
.dots .stack i { width: 7px; height: 7px; border-radius: 2px; background: #3a3a3f; }
.dots .col.hot .stack i { background: var(--brand); }
.dots .col small { font-size: 10.5px; color: #8c8c93; }
.dots .col.hot small { color: #f2f2f3; font-weight: 500; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.ov-card { border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); padding: 20px 22px; min-width: 0; }
.ov-card .sub { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 16px; }
.ov-wide { margin-top: 16px; }
.start-row { border-bottom-color: var(--line); padding: 12px 4px; min-height: 60px; }
.starts { border-top: 0; }
.sg-ic { border: 0; background: var(--raised); border-radius: 12px; width: 36px; height: 36px; color: var(--ink); }
.split-bar { display: flex; gap: 4px; height: 26px; margin: 4px 0 16px; }
.split-bar i { border-radius: 99px; min-width: 18px; }
.legend-list { display: grid; gap: 10px; }
.legend-list div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-list i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend-list span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend-list .faint { color: var(--ink-3); }
.rig { padding: 20px 22px; }
.rig-row { height: 44px; border-bottom-color: var(--line); }

/* Composer */
.composer { border-radius: 20px; box-shadow: var(--shadow-card); }
.composer:focus-within { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--ink); }
.send { border-radius: 12px; width: 36px; height: 36px; }
.auto-chip { background: var(--raised); border-radius: 99px; color: var(--ink-2); height: 30px; padding: 0 12px; }
.auto-chip .port.on { background: #4fb31f; border-color: #4fb31f; }
.ai-menu, .palette, .drawer, .modal { border: 0; border-radius: 22px; }

/* Thread */
.thread-in { gap: 28px; }
.msg.user .bubble { background: var(--panel); box-shadow: var(--shadow-1); border-radius: 18px 18px 6px 18px; }
.card .card-h .ic { color: var(--ink-3); }
.progress { height: 3px; background: var(--raised); }
.progress i { background: var(--blue-2); }
.steps li.done .mark { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.steps li.run .mark { border-color: var(--blue-2); border-top-color: transparent; }
.spinner { border-color: var(--blue-2); border-top-color: transparent; }
.live-row { background: var(--raised); }
.stack-row { border-bottom-color: var(--line); padding: 10px 20px; }
.swap { border: 0; background: var(--raised); border-radius: 99px; height: 30px; padding: 0 12px; }
.insp { background: transparent; border-left: 0; padding: 0 12px 12px 0; }
.insp > * { }
.insp-wrap { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); height: 100%; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.graph { border: 0; border-radius: 18px; background: var(--raised); }
.graph .edge.on { stroke: var(--blue); }

/* Brief */
.brief .b-sec { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.brief h4 { margin: 0 0 12px; font: 500 13px var(--font); color: var(--ink-2); }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.style-opt { display: grid; gap: 10px; text-align: left; padding: 6px 6px 10px; border-radius: 18px; background: var(--raised); transition: box-shadow .15s var(--ease), background-color .15s var(--ease); }
.style-opt:hover { background: var(--press); }
.style-opt.on { background: var(--panel); box-shadow: 0 0 0 2px var(--ink); }
.style-opt .frame { display: block; container-type: inline-size; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.style-opt .sl { padding: 0 6px; display: grid; }
.style-opt .sl b { font-weight: 500; font-size: 13.5px; }
.style-opt .sl small { font-size: 12px; color: var(--ink-3); line-height: 16px; }
.b-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.pick-sel { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 14px; background: var(--raised); font-size: 14px; cursor: pointer; }
.pick-sel > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-sel select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-opts button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 14px; background: var(--raised); font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.ai-opts button.on { background: var(--ink); color: var(--bg); }
.b-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--ink-2); font-size: 13px; }
.cost { border-radius: 16px; background: var(--raised); overflow: hidden; }
.cost-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 132px 132px 104px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cost-row:last-child { border-bottom: 0; }
.cost-row.head { min-height: 36px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.cost-row .cat { color: var(--ink-3); font-size: 13px; }
.cost-row .prov { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cost-row .prov b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-row .now, .cost-row .later { font-variant-numeric: tabular-nums; font-weight: 500; min-width: 0; }
.cost-row .now small, .cost-row .later small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-row .swap { justify-self: end; background: var(--panel); }
.cost-total { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: 16px 0 12px; }
.cost-total small { display: block; font-size: 12px; color: var(--ink-3); }
.cost-total b { font: 400 32px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cost-total b span { font-size: 14px; color: var(--ink-3); margin-left: 2px; }
.cost-total p { margin: 0; font-size: 12px; color: var(--ink-3); flex: 1; min-width: 200px; text-align: right; }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--press); position: relative; transition: background-color .18s var(--ease); }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s var(--ease); }
.toggle input:checked + .sw { background: var(--ink); }
.toggle input:checked + .sw::after { transform: translateX(16px); background: var(--lime); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.brief-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }

/* The user's app (style previews and the full preview) */
.site { background: var(--s-bg); color: var(--s-ink); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; min-height: 100%; letter-spacing: -.01em; }
.site .s-nav { display: flex; align-items: center; gap: 1.25em; padding: 1em 2em; border-bottom: 1px solid var(--s-line); font-size: .875em; }
.site .s-logo { display: flex; align-items: center; gap: .5em; font-weight: 600; color: var(--s-ink); }
.site .s-logo i { width: 1.4em; height: 1.4em; border-radius: calc(var(--s-r) * .5); background: var(--s-acc); }
.site .s-nav > span:not(.s-logo):not(.s-cta) { color: var(--s-mute); }
.site .s-cta { margin-left: auto; padding: .55em 1em; border-radius: var(--s-r); background: var(--s-ink); color: var(--s-bg); }
.site .s-hero { padding: 3.5em 2em 2em; max-width: 46em; }
.site .s-hero h1 { font-family: var(--s-head); font-weight: var(--s-hw); font-size: 2.9em; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .4em; }
.site .s-hero p { color: var(--s-mute); font-size: 1.06em; line-height: 1.5; margin: 0 0 1.5em; max-width: 32em; }
.site .s-btn { display: inline-flex; padding: .8em 1.3em; border-radius: var(--s-r); background: var(--s-acc); color: var(--s-acc-ink); font-weight: 500; margin-right: .5em; }
.site .s-btn2 { display: inline-flex; padding: .8em 1.3em; border-radius: var(--s-r); border: 1px solid var(--s-line); font-weight: 500; }
.site .s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75em; padding: .5em 2em 2.5em; }
.site .s-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-r); padding: 1em; }
.site .s-card .k { width: 2em; height: 2em; border-radius: calc(var(--s-r) * .6); border: 1px solid var(--s-line); display: grid; place-items: center; margin-bottom: .75em; color: var(--s-mute); }
.site .s-card .k svg { width: 1em; height: 1em; }
.site .s-card b { display: block; margin-bottom: .25em; font-weight: 500; }
.site .s-card p { margin: 0; color: var(--s-mute); font-size: .82em; line-height: 1.45; }
.site .s-foot { display: flex; gap: 1em; padding: 1em 2em; border-top: 1px solid var(--s-line); color: var(--s-mute); font-size: .8em; }
.site.mini { font-size: 2.45cqw; pointer-events: none; min-height: 100%; height: 100%; }
.site.mini .s-hero { padding: 2.6em 2em 1.6em; }
.pv-frame { border: 0; border-radius: var(--r-card); }
.pv-site .site { min-height: 100%; }

/* Apps */
.apps { display: grid; gap: 16px; }
.app-card { padding: 22px 24px; }
.app-h { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.app-h h2 { margin: 0; font: 500 24px/1.15 var(--display); letter-spacing: -.025em; }
.app-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.app-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.app-links > div { background: var(--raised); border-radius: 16px; padding: 12px 16px; min-width: 0; display: grid; gap: 4px; }
.app-links small { font-size: 12px; color: var(--ink-3); }
.app-links .row { min-width: 0; }
.app-links a.mono { font-family: var(--font); font-size: 13.5px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-links a.mono:hover { text-decoration: underline; }
.app-links .icon-btn { width: 28px; height: 28px; margin-left: auto; }
.usage { margin-top: 16px; }
.usage-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.u-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) minmax(0, 260px); align-items: center; gap: 16px; min-height: 40px; font-size: 13px; }
.u-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meter { height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: 99px; transform-origin: left; }
.meter i.full { background: var(--grad); }
.u-txt { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Browser */
.browser { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; height: 100%; padding: 0 24px 24px; min-height: 560px; }
.b-side { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px 12px; overflow: auto; }
.b-side-h { padding: 0 8px 8px; }
.b-side-h h1 { margin: 0; font: 500 24px var(--display); letter-spacing: -.025em; }
.b-side-h p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.b-g { font-size: 12px; color: var(--ink-3); padding: 16px 8px 6px; }
.b-login { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background-color .15s var(--ease); }
.b-login:hover { background: var(--hover); }
.b-login.on { background: var(--raised); }
.b-login .tn { flex: 1; min-width: 0; }
.b-login b { display: block; font-weight: 500; font-size: 13.5px; }
.b-login small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-pane { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.b-tabs { display: flex; gap: 4px; padding: 10px 10px 0; overflow-x: auto; min-height: 48px; background: var(--raised); }
.b-tab { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 4px 0 14px; border-radius: 12px 12px 0 0; font-size: 13px; color: var(--ink-2); max-width: 220px; flex: none; }
.b-tab.on { background: var(--panel); color: var(--ink); }
.b-tab > button:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-x { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.b-x:hover { background: var(--hover); }
.b-bar { display: flex; align-items: center; gap: 8px; margin: 10px 12px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--raised); }
.b-bar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13.5px; }
.b-lock { color: var(--ink-3); }
.b-view { flex: 1; overflow: auto; border-top: 1px solid var(--line); }
.b-empty, .b-site { height: 100%; min-height: 360px; display: grid; place-items: center; text-align: center; padding: 32px; }
.b-empty { align-content: center; gap: 8px; color: var(--ink-3); }
.b-empty b { color: var(--ink); font-weight: 500; }
.b-site-in { max-width: 440px; display: grid; justify-items: center; gap: 12px; }
.b-site-in h3 { margin: 4px 0 0; font: 500 22px var(--display); letter-spacing: -.02em; }
.b-site-in p { margin: 0; font-size: 13.5px; }

/* Billing */
.stat { padding: 20px 22px; }
.stat b { font: 400 40px/1.1 var(--display); letter-spacing: -.035em; }
.stat b .per { font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.bill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.pay-card, .cap-card { padding: 22px 24px; margin: 0; }
.cc { position: relative; aspect-ratio: 1.7; max-width: 340px; border-radius: 20px; background: #111; color: #f2f2f3; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cc::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 36px rgba(255,255,255,.03); }
.cc-brand { font: 500 16px var(--display); }
.cc-num { font-size: 20px; letter-spacing: .08em; }
.cc-exp { font-size: 12px; color: #8c8c93; }
.range { height: 8px; background: linear-gradient(90deg, var(--ink) var(--p), var(--raised) var(--p)); box-shadow: none; }
.range::-webkit-slider-thumb { border: 0; background: var(--lime); box-shadow: 0 0 0 4px var(--ink); width: 18px; height: 18px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-err { color: var(--red); font-size: 13px; margin: -4px 0 12px; }
.input { border-radius: 12px; height: 44px; border: 0; background: var(--raised); }
.input:focus { box-shadow: 0 0 0 1.5px var(--ink); }

/* Store and services */
.acct { padding: 20px; border-radius: 22px; }
.acct.add { box-shadow: none; border: 1.5px dashed var(--line-2); }
.dir { border-top: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px 16px; column-gap: 24px; }
.dir-row { border-bottom-color: var(--line); border-radius: 12px; }
.panel { border-radius: 22px; }
.panel-h { height: 56px; padding: 0 20px; }
.panel-h h2 { font: 500 15px var(--display); }
.prow { padding: 0 12px 0 20px; height: 52px; }
.port.pick { border-color: var(--ink); background: var(--ink); }
.feature { border-radius: var(--r-card); }

/* Onboarding modal extras */
.pick-h { font-size: 12px; color: var(--ink-3); margin: 4px 0 8px; }
.pick-grid button { border: 0; background: var(--raised); border-radius: 14px; height: 52px; }
.pick-grid button.on { background: var(--panel); box-shadow: 0 0 0 2px var(--ink); }
.g-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); flex: none; }
.wrap-row { flex-wrap: wrap; }

/* Sign-in keeps its dark art panel; the form follows the new tokens */
.auth-form { background: var(--bg); }
.auth-card { background: var(--panel); border-radius: 28px; box-shadow: var(--shadow-card); padding: 32px; max-width: 420px; }
.auth-card h2 { font: 500 30px/1.1 var(--display); letter-spacing: -.03em; }
.auth-art h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.04em; }

/* Responsive */
@media (max-width: 1280px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ov-grid > :last-child { grid-column: 1 / -1; }
  .cost-row { grid-template-columns: 72px minmax(0, 1fr) 112px 112px 96px; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis > :first-child { grid-column: 1 / -1; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser { grid-template-columns: 240px minmax(0, 1fr); }
  .who-chip .wt { display: none; }
  .who-chip { padding: 0 4px; }
  .cmdk { min-width: 200px; }
}
@media (max-width: 1180px) {
  .insp { padding: 0; }
  .insp-wrap { border-radius: 0; }
}
@media (max-width: 860px) {
  .app, .app.side-off { grid-template-columns: 1fr; }
  .side { padding: 0; background: var(--side); }
  .side-in { border-radius: 0; box-shadow: none; width: 284px; }
  .side { width: 284px; }
  .topbar { height: 64px; padding: 0 12px; }
  .cmdk, .circle-btn.bell { display: none; }
  .page, .ov { padding: 0 16px 48px; }
  .ov-head h1, .page-h h1 { font-size: 30px; min-width: 0; }
  .kpis, .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis > :first-child, .ov-grid > :last-child { grid-column: auto; }
  .kpi { min-height: 200px; }
  .b-two, .bill-grid, .app-links { grid-template-columns: minmax(0, 1fr); }
  .cost-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .cost-row .cat { grid-column: 1 / -1; }
  .cost-row.head { display: none; }
  .cost-row .now { grid-column: 1; }
  .cost-row .later { grid-column: 2; text-align: right; }
  .cost-row .swap { grid-column: 1 / -1; justify-self: start; }
  .cost-total p { text-align: left; }
  .browser { grid-template-columns: minmax(0, 1fr); padding: 0 12px 16px; }
  .b-side { max-height: 260px; }
  .u-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .u-txt { grid-column: 1 / -1; margin-top: -8px; }
  .alert-bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .who-chip { display: none; }
  .styles { gap: 8px; }
  .kpi .big { font-size: 44px; }
  .field-2 { grid-template-columns: 1fr 1fr; }
}
.blist { display: grid; }
.brow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 12px; transition: background-color .15s var(--ease); }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--hover); }
.brow .tn { min-width: 0; }
.brow b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .amt { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 64px; text-align: right; }
.kpi .seg button { height: 28px; font-size: 12.5px; }
@media (max-width: 640px) { .brow { grid-template-columns: 32px minmax(0, 1fr) auto; } .brow .amt { display: none; } }

/* Brand: Microooo copper (owner 2026-11-11: "come up with a nice colour for my brand") */
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.date-chip i { background: var(--brand); }
.bars .mark { background: var(--brand); }
.progress i { background: var(--brand); }
.steps li.run .mark, .spinner { border-color: var(--brand); border-top-color: transparent; }
.graph .flow { stroke: var(--brand); }
.style-opt.on { box-shadow: 0 0 0 2px var(--brand); }
.composer:focus-within { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--brand); }
:focus-visible { outline-color: var(--brand); }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.starts { grid-template-columns: minmax(0, 1fr); }
.start-row { min-width: 0; width: 100%; }
.ov-card, .kpi, .rig { min-width: 0; }

/* ===== Real brand logos ===== */
.mono-tile.logo { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.mono-tile.logo svg { width: 58%; height: 58%; display: block; }
.mono-tile.logo.xs svg, .mono-tile.logo.sm svg { width: 62%; height: 62%; }
.kpi.dark .mono-tile.logo, .feature-r .mono-tile.logo { background: #fff; color: #111; }
.feature-r .wall .mono-tile.logo { background: #fff; }
.patch .mono-tile.logo { background: #fff; }

/* ===== Compact sidebar, account in the top right (owner 2026-11-11) ===== */
.side-in { padding: 14px 10px 10px; }
.side-top { height: 40px; margin-bottom: 10px; }
.new-build { height: 38px; margin-bottom: 12px; padding: 0 12px; }
.new-build kbd { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: rgba(255,255,255,.7); font-family: var(--font); }
:root[data-theme="dark"] .new-build kbd { background: rgba(0,0,0,.12); color: rgba(0,0,0,.6); }
.nav { position: relative; gap: 2px; }
.nav a { position: relative; z-index: 1; height: 36px; padding: 0 10px; gap: 10px; border-radius: 10px; transition: color .25s var(--ease), background-color .15s var(--ease); }
.nav .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-h { font-size: 11.5px; color: var(--ink-3); padding: 14px 10px 6px; }
.side-h { padding: 18px 10px 8px; }
.side-h .tag { margin-left: auto; }
.connected-ai { padding: 0 10px; }
.builds a { height: 32px; padding: 0 10px; }
.side-cost { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--grad); color: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.side-cost:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(207,79,39,.6); }
.side-cost small { display: block; font-size: 11.5px; opacity: .85; }
.side-cost b { font: 500 20px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.side-cost b span { font-size: 12px; opacity: .8; margin-left: 2px; }
.side-cost .sc-r { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .92; white-space: nowrap; }
.acct-wrap { position: relative; }
.who-chip { cursor: pointer; }
.who-chip .chev { color: var(--ink-3); transition: transform .2s var(--ease); }
.who-chip[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acct-menu { position: absolute; top: calc(100% + 8px); right: 0; left: auto; bottom: auto; width: 268px; z-index: 40; transform-origin: top right; animation: menuIn .22s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.am-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.am-head .avatar { width: 36px; height: 36px; }
.am-head .tn { min-width: 0; }
.am-head b { display: block; font-weight: 500; font-size: 13.5px; }
.am-head small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Motion ===== */
.has-slider { position: relative; isolation: isolate; }
.has-slider > .slider { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; transition: transform .42s cubic-bezier(.22, 1, .36, 1), width .42s cubic-bezier(.22, 1, .36, 1), height .42s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.seg.has-slider > .slider { background: var(--ink); border-radius: 99px; }
.seg.has-slider > button { position: relative; z-index: 1; transition: color .3s var(--ease); }
.seg.has-slider > button.on { background: transparent; }
.chips.has-slider > .slider { background: var(--ink); border-radius: 99px; }
.chips.has-slider > button { position: relative; z-index: 1; transition: color .3s var(--ease), background-color .15s var(--ease); }
.chips.has-slider > button.on { background: transparent; }
.nav.has-slider > .slider { background: var(--ink); border-radius: 10px; }
.nav.has-slider > a.on { background: transparent; }
.bars i { transform-origin: bottom; transition: background-color .35s var(--ease); }
.bars.anim i { animation: barIn .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes barIn { from { transform: scaleY(.15); opacity: .35; } }
.bars .mark { transition: left .5s cubic-bezier(.22, 1, .36, 1); }
.enter { animation: enterUp .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
@keyframes enterUp { from { opacity: 0; transform: translateY(10px); } }
.kpi, .ov-card, .tile, .acct, .app-card, .panel, .style-opt { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .15s var(--ease); }
.kpi:hover, .ov-card:hover, .acct:hover, .app-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 40px -16px rgba(0,0,0,.16); }
.kpi.grad:hover { box-shadow: 0 18px 40px -16px rgba(207,79,39,.55); }
.arrow-btn { transition: transform .25s var(--ease), background-color .15s var(--ease); }
.kpi:hover .arrow-btn, .ov-card:hover .arrow-btn { transform: rotate(45deg); }
.btn, .new-build, .circle-btn, .who-chip, .send { transition: transform .12s var(--ease), background-color .15s var(--ease), box-shadow .2s var(--ease); }
.btn:active, .new-build:active, .circle-btn:active, .who-chip:active, .send:not(:disabled):active { transform: scale(.97); }
.toggle .sw::after { transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), background-color .2s var(--ease); }
@media (prefers-reduced-motion: reduce) { .has-slider > .slider { transition: none; } .enter, .bars.anim i { animation: none; } .kpi:hover, .ov-card:hover, .acct:hover, .app-card:hover { transform: none; } }
@media (max-width: 860px) { .acct-menu { right: -4px; } }
.ov-title { flex: 1 1 360px; min-width: 0; }
.page-h > .grow { flex: 1 1 360px; min-width: 0; }
@media (max-width: 640px) { .ov-head .page-actions { width: 100%; } .ov-head .page-actions .btn { flex: 1; } }
.pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-grid button { min-width: 0; }
.pick-grid button > span:not(.mono-tile):not(.port) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.site:not(.mini) .s-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pv-site .site { font-size: clamp(13px, 1.2vw + 8px, 16px); }
@media (max-width: 860px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site:not(.mini) .s-nav > span:not(.s-logo):not(.s-cta) { display: none; } }
.kv .v { flex: 1; min-width: 0; }
.ai-menu { width: min(280px, calc(100vw - 48px)); }
.kv, .list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .ai-menu { position: fixed; left: 12px; right: 12px; bottom: 16px; width: auto; max-height: 60vh; } }

/* ===== Overview, denser (owner 2026-11-11: "optimise this dashboard") ===== */
.ov-ask { margin-bottom: 16px; }
.ov .composer { margin-bottom: 10px; padding: 12px 12px 10px 18px; }
.ov .composer textarea { font-size: 15px; padding: 4px 0 6px; }
.qchips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.qchips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.qchips button:hover { color: var(--ink); background: var(--raised); }
.qchips button:active { transform: scale(.97); }
.qchips button .ic { color: var(--ink-3); }
.kpis { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.kpi { min-height: 220px; }
.ov-row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ov-card .kpi-h { align-items: flex-start; }
.atable { margin-top: 12px; display: grid; }
.ar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) 92px 72px 24px; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 12px; font-size: 13.5px; transition: background-color .15s var(--ease); }
.ar:last-child { border-bottom: 0; }
.ar:not(.head):hover { background: var(--hover); }
.ar:not(.head):hover .go { transform: translateX(2px); color: var(--ink); }
.ar.head { min-height: 36px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ar .r { text-align: right; justify-self: end; }
.ar .num { font-variant-numeric: tabular-nums; font-weight: 500; }
.ar .go { color: var(--ink-3); transition: transform .2s var(--ease), color .15s var(--ease); }
.a-app { display: flex; align-items: center; gap: 12px; min-width: 0; }
.a-app .tn { min-width: 0; }
.a-app b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-app small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-cell { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-tile.brandish { background: var(--brand-soft); color: var(--brand-ink); }
.cs-big { font: 400 40px/1.1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 16px 0 12px; }
.cs-big .c { opacity: .5; font-size: .5em; }
.cs-big .u { font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.split-bar i { transition: flex-grow .6s var(--ease); }
.feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.feed li:last-child { border-bottom: 0; }
.feed b { color: var(--ink); font-weight: 500; }
.f-ic { width: 24px; height: 24px; border-radius: 6px; background: var(--raised); display: grid; place-items: center; color: var(--ink-2); }
.f-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 1280px) { .ar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 92px 72px 24px; } .ar > :nth-child(3) { display: none; } }
@media (max-width: 1100px) { .ov-row2 { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .ar { grid-template-columns: minmax(0, 1fr) auto auto; } .ar > :nth-child(2), .ar > :nth-child(3), .ar > :nth-child(6) { display: none; } .feed li { grid-template-columns: 24px minmax(0, 1fr); } .feed .f-when, .feed .badge { grid-column: 2; } .f-t { white-space: normal; } }

/* Real logos as images, price filter, page never shifts sideways */
.mono-tile.logo.img { background: var(--panel); padding: 0; overflow: hidden; }
.mono-tile.logo.img img { width: 66%; height: 66%; object-fit: contain; border-radius: 4px; display: block; }
html, body { overflow: clip; }
.app, .main { overflow: clip; }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 32px 0 12px; }
.filters .seg button .n, .seg button .n { font-size: 11.5px; opacity: .6; margin-left: 2px; }
.dir-row .nm .badge { flex: none; }

/* Research */
.r-search { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-card); margin-bottom: 16px; }
.r-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; height: 40px; }
.r-ic { color: var(--ink-3); display: grid; }
.r-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi.skel { min-height: 220px; background: linear-gradient(90deg, var(--panel) 0%, var(--raised) 50%, var(--panel) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.r-bars { display: grid; gap: 8px; margin-top: 4px; }
.r-bars > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.r-bars b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.meter.warm i { background: var(--brand); }
.meter.good i { background: #7ccf3a; }
.ar.rr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 100px 110px 110px; }
.r-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); }
.r-icon.sm { width: 28px; height: 28px; border-radius: 7px; }
.r-pitch { font-size: 14px; line-height: 22px; color: var(--ink-2); margin: 16px 0; }
.r-pitch b { color: var(--ink); font-weight: 500; }
.r-related { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.r-related small { width: 100%; font-size: 12px; color: var(--ink-3); }
.r-related button { height: 28px; padding: 0 10px; border-radius: 99px; background: var(--raised); font-size: 12.5px; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background-color .15s var(--ease); }
.r-related button:hover { background: var(--press); color: var(--ink); }
.r-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 12px; }
.r-mk { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 32px; grid-template-rows: auto auto; align-items: center; gap: 4px 12px; padding: 10px 8px; border-radius: 12px; text-align: left; transition: background-color .15s var(--ease); }
.r-mk:hover { background: var(--hover); }
.r-mk .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-mk b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.r-mk small { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.r-rank { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.r-rank li { display: grid; grid-template-columns: 20px 28px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.r-rank li:last-child { border-bottom: 0; }
.r-rank .rk { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.r-rank .tn { min-width: 0; } .r-rank b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .r-rank small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 1280px) { .ar.rr { grid-template-columns: minmax(0, 2fr) 100px 110px 100px; } .ar.rr > :nth-child(2) { display: none; } }
@media (max-width: 860px) { .r-loading { grid-template-columns: minmax(0, 1fr); } .r-markets { grid-template-columns: minmax(0, 1fr); } .ar.rr { grid-template-columns: minmax(0, 1fr) 84px; } .ar.rr > :nth-child(4), .ar.rr > :nth-child(5) { display: none; } .r-search .btn { padding: 0 14px; } }

/* AI Store: one toolbar, a category rail, same-size cards (owner 2026-11-11: "well aligned … where to focus") */
.store-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.store-bar .search { min-width: 240px; }
.store-bar .search input { width: 100%; }
.store { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.store-rail { position: sticky; top: 0; }
.rail-in { display: grid; gap: 2px; padding: 8px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); position: relative; }
.rail-in > button { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 12px; text-align: left; color: var(--ink-2); font-size: 13.5px; transition: color .25s var(--ease), background-color .15s var(--ease); }
.rail-in > button:hover { color: var(--ink); }
.rail-in > button .ic { color: var(--ink-3); flex: none; }
.rail-in > button .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-in > button .n { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rail-in > button.on { color: var(--bg); background: var(--ink); }
.rail-in > button.on .ic { color: var(--lime); }
.rail-in > button.on .n { color: rgba(255,255,255,.6); }
.rail-in.has-slider > .slider { background: var(--ink); border-radius: 12px; }
.rail-in.has-slider > button.on { background: transparent; }
.store-main { min-width: 0; }
.store-count { margin: 0 0 8px; color: var(--ink-3); font-size: 13px; }
.store-sec { margin-bottom: 8px; }
.store-sec .section-h { margin: 24px 0 12px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: 12px; }
.app-tile { display: flex; flex-direction: column; gap: 12px; height: 176px; padding: 16px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-width: 0; }
.app-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 40px -16px rgba(0,0,0,.16); }
.app-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.at-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.at-h .mono-tile.lg { width: 44px; height: 44px; border-radius: 12px; }
.at-h .tn { flex: 1; min-width: 0; }
.at-h b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-h small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-h .badge, .at-h .state { align-self: flex-start; flex: none; }
.app-tile p { margin: 0; flex: 1; font-size: 13px; line-height: 20px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-f { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.at-f .p { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .store { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .store { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .store-rail { position: static; margin: 0 -16px; }
  .rail-in { display: flex; overflow-x: auto; gap: 6px; padding: 0 16px 4px; background: transparent; box-shadow: none; border-radius: 0; scrollbar-width: none; }
  .rail-in > button { flex: none; height: 36px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); }
  .rail-in.has-slider > .slider { border-radius: 99px; }
  .store-bar .seg { width: 100%; } .store-bar .seg button { flex: 1; justify-content: center; }
}

/* Mobile app preview */
.pv-phones { display: flex; justify-content: center; align-items: flex-start; gap: 48px; flex-wrap: wrap; padding: 24px; }
.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 14px; }
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 46px; background: #111; padding: 10px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), inset 0 0 0 1.5px #333; }
.phone.android { border-radius: 34px; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 99px; background: #000; z-index: 2; }
.phone.android .notch { width: 12px; height: 12px; top: 20px; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden auto; background: #fff; scrollbar-width: none; }
.phone.android .phone-screen { border-radius: 26px; }
.phone-screen .site { font-size: 11px; padding-top: 34px; }
.phone-screen .site .s-nav > span:not(.s-logo):not(.s-cta) { display: none; }
.phone-screen .site .s-cards { grid-template-columns: minmax(0, 1fr); }
.phone-wrap figcaption { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) { .phone { width: 260px; } .pv-phones { gap: 24px; padding: 16px; } }

/* ===== Rail alignment fix: rows never wider than the card ===== */
.rail-in { grid-template-columns: minmax(0, 1fr); overflow: hidden; }

/* ===== Chat-first home ===== */
.home2 { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 24px 48px; }
.h2-in { width: 100%; max-width: 820px; }
.h2-head { text-align: center; margin-bottom: 24px; }
.h2-head h1 { font: 500 40px/1.1 var(--display); letter-spacing: -.035em; margin: 12px 0 0; }
.h2-head h1 .soft { color: var(--ink-3); }
.home2 .composer { max-width: none; border-radius: 24px; padding: 16px 16px 12px 20px; box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.home2 .composer textarea { font-size: 16px; min-height: 52px; }
.home2 .qchips { justify-content: center; margin-top: 14px; }
.h2-recent { margin-top: 36px; }
.h2-rh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.h2-rh h2 { margin: 0; font: 500 14px var(--font); color: var(--ink-2); }
.h2-rh a { font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.h2-rh a:hover { color: var(--ink); }
.h2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h2-card { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.h2-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.16); }
.h2-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.h2-card b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-card small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.h2-strip a, .h2-strip button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); text-decoration: none; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.h2-strip a:hover, .h2-strip button:hover { background: var(--panel); color: var(--ink); }
.h2-strip .stack { display: flex; } .h2-strip .stack .mono-tile { margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); } .h2-strip .stack .mono-tile:first-child { margin-left: 0; }
@media (max-width: 860px) { .h2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h2-head h1 { font-size: 28px; } .home2 { align-items: flex-start; padding: 16px 16px 40px; } }

/* ===== Composer: private switch ===== */
.priv-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); background: var(--raised); transition: background-color .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.priv-chip:hover { color: var(--ink); }
.priv-chip.on { background: var(--ink); color: var(--bg); }
.priv-chip.on .ic { color: var(--lime); }
@media (max-width: 640px) { .priv-chip span { display: none; } .priv-chip { padding: 0 9px; } }
.b-lockic { margin-left: auto; color: var(--ink-3); display: grid; }
.badge.dark .ic { width: 12px; height: 12px; }
.ai-fall { margin: 6px 8px 4px; font-size: 12px; }
.msg.sys { justify-content: center; }
.msg.sys span { display: inline-flex; align-items: center; gap: 8px; max-width: 90%; padding: 8px 14px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); font-size: 12.5px; color: var(--ink-2); }
.msg.sys .ic { color: var(--brand); flex: none; }
.mem { align-items: flex-start !important; }
.mem .k { color: var(--ink-3); width: 76px; flex: none; }
.mem-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }

/* ===== Accounts per AI ===== */
.accts { display: grid; gap: 6px; }
.acct-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--raised); }
.acct-line.on { background: var(--panel); box-shadow: 0 0 0 1.5px var(--ink); }
.acct-line .tn { flex: 1; min-width: 0; }
.acct-line b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-line small { display: block; font-size: 12px; color: var(--ink-3); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }

/* ===== Store: Discover | Your AI, cards ===== */
.store-tabs { margin-bottom: 20px; }
.store-tabs button { height: 34px; padding: 0 16px; }
.at-h .tn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-f .tags { flex: 1; min-width: 0; display: flex; gap: 6px; overflow: hidden; }
.mine-grid { display: grid; gap: 10px; }
.mine-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); cursor: pointer; flex-wrap: wrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mine-row:hover { transform: translateY(-1px); }
.mine-row .tn { min-width: 0; }
.mine-row b { display: block; font-weight: 500; }
.mine-row small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Browser: logo-only dock, unlimited pins, hover names ===== */
.browser2 { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; height: 100%; padding: 0 24px 24px; }
.dock { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-card); min-height: 0; }
.dock-list { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overflow-x: visible; display: flex; flex-direction: column; align-items: center; gap: 6px; scrollbar-width: none; padding: 2px 0; }
.dock-list::-webkit-scrollbar { display: none; }
.dock-pin, .dock-add { position: relative; width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.dock-pin:hover { background: var(--hover); }
.dock-pin:active { transform: scale(.94); }
.dock-pin.on { background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dock-pin .mono-tile { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; background: transparent; }
.dock-pin .mono-tile.logo:not(.img) { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.dock-pin .mono-tile b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dock-add { color: var(--ink-3); border: 1.5px dashed var(--line-2); }
.dock-add:hover { color: var(--ink); }
[data-tip] { position: relative; }
.dock [data-tip]:hover::after { content: attr(data-tip); position: fixed; transform: translate(52px, -50%); margin-top: 22px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; white-space: nowrap; z-index: 60; pointer-events: none; animation: rise .15s var(--ease); }
.b-pane2 { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.b-tabs2 { display: flex; align-items: flex-end; gap: 4px; padding: 8px 8px 0; background: var(--raised); overflow-x: auto; scrollbar-width: none; min-height: 46px; }
.b-tab2 { display: flex; align-items: center; height: 38px; padding: 0 4px 0 10px; gap: 2px; border-radius: 12px 12px 0 0; max-width: 220px; min-width: 120px; flex: none; color: var(--ink-2); font-size: 12.5px; }
.b-tab2.on { background: var(--panel); color: var(--ink); }
.b-tab2 > button:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; text-align: left; }
.b-tab2 .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-tab2 .mono-tile { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.b-new { width: 32px; height: 32px; margin-bottom: 4px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.b-new:hover { background: var(--panel); color: var(--ink); }
.b-bar2 { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.b-bar2 .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.b-bar2 .icon-btn.pinned { color: var(--brand); }
.b-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--raised); margin: 0 4px; }
.b-addr input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13.5px; }
.b-shield { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; color: var(--green-ink); background: var(--green-soft); flex: none; }
.b-shield b { font-weight: 600; font-variant-numeric: tabular-nums; }
.b-view { flex: 1; min-height: 0; overflow: auto; position: relative; }
.b-native { position: absolute; inset: 0; background: var(--panel); }
.b-start { padding: 40px 32px; max-width: 900px; margin: 0 auto; }
.b-start h2 { margin: 0; font: 500 24px var(--display); letter-spacing: -.02em; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; margin-top: 24px; }
.b-grid button { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; font-size: 12px; color: var(--ink-2); transition: background-color .15s var(--ease); }
.b-grid button:hover { background: var(--hover); color: var(--ink); }
.b-grid button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-tile.add-t { background: transparent; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
@media (max-width: 860px) { .browser2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 0 12px 12px; } .dock { flex-direction: row; padding: 6px 8px; border-radius: 18px; } .dock-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; } .dock [data-tip]:hover::after { display: none; } }

/* ===== Research tabs and embedded Storelens pages ===== */
.r-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.r-tabs::-webkit-scrollbar { display: none; }
.r-tabs a { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--panel); box-shadow: var(--shadow-1); color: var(--ink-2); font-size: 13px; text-decoration: none; position: relative; z-index: 1; transition: color .25s var(--ease); }
.r-tabs a:hover { color: var(--ink); }
.r-tabs a.on { color: var(--bg); background: var(--ink); }
.r-tabs.has-slider > a.on { background: transparent; }
.r-tabs.has-slider > .slider { background: var(--ink); border-radius: 99px; }
.r-embed-wrap { display: flex; flex-direction: column; overflow: hidden !important; }
.r-embed-head { padding-bottom: 0 !important; width: 100%; }
.r-embed { flex: 1; width: calc(100% - 48px); margin: 0 24px 24px; border: 0; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); min-height: 0; }
@media (max-width: 860px) { .r-embed { width: calc(100% - 24px); margin: 0 12px 12px; } }

/* Capacity, time and tokens */
.cap-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; background: var(--raised); color: var(--ink-2); margin-right: 4px; transition: color .15s var(--ease); }
.cap-chip:hover { color: var(--ink); }
.cap-chip .ic { color: var(--brand); }
.cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cap-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cap-l .ic { color: var(--brand); }
.est-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.est { padding: 12px 14px; border-radius: 14px; background: var(--raised); display: grid; gap: 2px; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.est.on { background: var(--panel); box-shadow: 0 0 0 1.5px var(--brand); }
.est small { font-size: 11.5px; color: var(--ink-3); }
.est b { font: 500 20px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.est span { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.run-meter { display: inline-flex; gap: 12px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.run-meter span { display: inline-flex; align-items: center; gap: 4px; }
.run-meter .ic { color: var(--ink-3); width: 14px; height: 14px; }
@media (max-width: 860px) { .est-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .run-meter span:nth-child(3) { display: none; } }
@media (max-width: 640px) { .cap-chip span { display: none; } .cap-chip { padding: 0 9px; } .run-meter span:first-child { display: none; } }

@media (min-width: 1101px) { .store { grid-template-columns: 248px minmax(0, 1fr); } }

/* ===== Sign-in, redesigned (owner 2026-11-11: "improve the design much better") ===== */
.auth2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--bg); padding: 16px; gap: 16px; }
.a2-art { position: relative; border-radius: 32px; background: var(--grad); color: #fff; padding: 32px 40px 40px; display: flex; flex-direction: column; overflow: hidden; min-height: calc(100vh - 32px); }
.a2-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 38%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.a2-brand { position: relative; display: flex; align-items: center; gap: 12px; font: 600 18px var(--display); letter-spacing: -.02em; z-index: 2; }
.a2-brand svg rect { fill: #fff; }
.a2-brand svg circle, .a2-brand svg path, .a2-brand svg g { fill: #cf4f27; stroke: #cf4f27; }
.a2-orbit { position: relative; flex: 1; min-height: 300px; margin: 8px -16px 0; z-index: 1; }
.a2-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.a2-wire { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.4; stroke-dasharray: 3 6; }
.a2-wire.on { stroke: rgba(255,255,255,.75); stroke-dasharray: 4 10; animation: wire 2.4s linear infinite; animation-delay: calc(var(--d) * -1); }
@keyframes wire { to { stroke-dashoffset: -56; } }
.a2-node { position: absolute; transform: translate(-50%, -50%); animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.a2-node .mono-tile.lg { width: 50px; height: 50px; border-radius: 15px; background: #fff; box-shadow: 0 10px 24px -8px rgba(90, 30, 10, .45); color: #111; }
.a2-node .mono-tile.lg svg, .a2-node .mono-tile.lg img { width: 56%; height: 56%; }
.a2-node.big .mono-tile.lg { width: 60px; height: 60px; border-radius: 18px; }
.a2-node:not(.big) { opacity: .92; }
@keyframes bob { 50% { transform: translate(-50%, calc(-50% - 6px)); } }
.a2-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 30px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,.16), 0 0 0 28px rgba(255,255,255,.08), 0 24px 50px -14px rgba(90, 30, 10, .55); }
.a2-copy { position: relative; z-index: 2; }
.a2-copy h1 { font: 500 clamp(40px, 4.4vw, 60px)/1.02 var(--display); letter-spacing: -.045em; margin: 0 0 16px; max-width: 13ch; }
.a2-copy h1 span { color: rgba(255,255,255,.62); }
.a2-copy p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 24px; color: rgba(255,255,255,.88); }
.a2-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.a2-facts span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 13px; backdrop-filter: blur(6px); }
.auth2 .auth-form { background: transparent; padding: 24px; }
.auth2 .auth-card { box-shadow: var(--shadow-card); }
@media (max-width: 860px) {
  .auth2 { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .a2-art { min-height: 0; padding: 22px 22px 26px; border-radius: 26px; }
  .a2-orbit { min-height: 240px; height: 240px; flex: none; margin: 4px -12px 8px; }
  .a2-node .mono-tile.lg { width: 36px; height: 36px; border-radius: 11px; }
  .a2-node.big .mono-tile.lg { width: 42px; height: 42px; border-radius: 13px; }
  .a2-core { width: 68px; height: 68px; border-radius: 22px; }
  .a2-core svg { width: 40px; height: 40px; }
  .a2-copy h1 { font-size: 36px; }
  .auth2 .auth-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .a2-node, .a2-wire.on { animation: none; } }

/* ===== Sidebar collapse to an icon rail (owner 2026-11-11: "minimize and maximize … working perfectly") ===== */
@media (min-width: 861px) {
  .app { transition: grid-template-columns .34s cubic-bezier(.22, 1, .36, 1); }
  .side-in { transition: width .34s cubic-bezier(.22, 1, .36, 1), padding .34s cubic-bezier(.22, 1, .36, 1); overflow: hidden; }
  .brand-t, .nav .nl, .nav .count, .nb-t, .new-build kbd, .side-h, .builds, .side-cost .sc-l, .side-cost .sc-r { transition: opacity .18s var(--ease); }
  .app.side-mini { grid-template-columns: 88px 1fr; }
  .side-mini .side-in { width: 76px; padding-left: 10px; padding-right: 10px; overflow-y: auto; scrollbar-width: none; }
  .side-mini .side-top { position: relative; justify-content: center; }
  .side-mini .side-top > svg { transition: opacity .15s var(--ease); }
  .side-mini .brand-t, .side-mini .side-top > .grow { display: none; }
  .side-mini .side-tog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; background: var(--panel); box-shadow: var(--shadow-1); }
  .side-mini .side-top:hover > svg, .side-mini .side-top:focus-within > svg { opacity: 0; }
  .side-mini .side-top:hover .side-tog, .side-mini .side-tog:focus-visible { opacity: 1; }
  .side-mini .new-build { width: 56px; padding: 0; justify-content: center; gap: 0; }
  .side-mini .nb-t, .side-mini .new-build kbd { display: none; }
  .side-mini .nav a { width: 56px; padding: 0 19px; gap: 0; }
  .side-mini .nav .nl, .side-mini .nav .count { opacity: 0; width: 0; flex: 0 0 0; }
  .side-mini .nav-h { font-size: 0; height: 1px; padding: 0; margin: 10px 12px; background: var(--line); }
  .side-mini .side-h, .side-mini .builds { display: none; }
  .side-mini .connected-ai { flex-direction: column; align-items: center; flex-wrap: nowrap; gap: 8px; padding: 14px 0 0; margin-top: 8px; border-top: 1px solid var(--line); }
  .side-mini .side-cost { width: 56px; height: 44px; padding: 0; justify-content: center; margin-top: auto; }
  .side-mini .side-cost .sc-l, .side-mini .side-cost .sc-r span, .side-mini .side-cost .sc-r { font-size: 0; gap: 0; }
  .side-mini .side-cost .sc-l { display: none; }
  .side-mini .side-cost .sc-r svg { width: 18px; height: 18px; }
}
.tip { position: fixed; left: 0; top: 0; z-index: 90; transform: translate(-4px, -50%); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s var(--ease), transform .12s var(--ease); }
.tip.on { opacity: 1; transform: translate(0, -50%); }
.dock [data-tip]:hover::after { display: none; }

/* ===== Token optimizer chip ===== */
.opt-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); background: var(--hover); white-space: nowrap; max-width: 260px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.opt-chip span { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.opt-chip svg { flex: none; color: var(--ink-3); }
.opt-chip.on svg { color: var(--brand); }
.opt-chip em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #2f7d4f; background: rgba(47, 125, 79, .12); padding: 2px 6px; border-radius: 99px; }
.opt-chip.t2 em { color: var(--ink-3); background: var(--line); }
.opt-chip:not(.on) { color: var(--ink-3); }
.opt-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.opt-line svg { flex: none; color: var(--brand); margin-top: 1px; }
.opt-line b { font-weight: 500; color: var(--ink); }
@media (max-width: 600px) { .opt-chip { max-width: 132px; } .opt-chip em { display: none; } }

/* ===== Research tabs: still, aligned, no reload ===== */
.r-tabs { gap: 6px; padding: 2px 2px 4px; scroll-padding: 0 24px; }
.r-tabs a { transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.r-tabs a.on { color: var(--bg); background: var(--ink); box-shadow: none; }
.r-embed { opacity: 0; transition: opacity .25s var(--ease); }
.r-embed.ready { opacity: 1; }
.r-embed-head .r-tabs { margin-bottom: 12px; }

/* ===== Browser: own engine frame, pins ===== */
.b-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.b-load { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: bload 1.1s linear infinite; pointer-events: none; }
.b-load.done { opacity: 0; transition: opacity .3s; }
@keyframes bload { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.b-pin { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: var(--ink-2); background: var(--hover); flex: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.b-pin:hover { color: var(--ink); }
.b-pin.on { background: var(--ink); color: var(--bg); }
.browser2 { grid-template-columns: 56px minmax(0, 1fr); }
.dock { padding: 8px 0; gap: 6px; border-radius: 20px; }
.dock-list { gap: 2px; padding: 0; }
.dock-item { position: relative; flex: none; border-radius: 12px; }
.dock-item.dragging { opacity: .4; }
.dock-item.over { box-shadow: 0 -2px 0 var(--brand); }
.dock-pin, .dock-add { width: 40px; height: 40px; border-radius: 12px; }
.dock-pin .mono-tile { width: 26px; height: 26px; border-radius: 8px; }
.dock-x { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: var(--bg); opacity: 0; transform: scale(.8); transition: opacity .12s var(--ease), transform .12s var(--ease); z-index: 2; }
.dock-x svg { width: 10px; height: 10px; }
.dock-item:hover .dock-x, .dock-x:focus-visible { opacity: 1; transform: none; }
.dock-add { width: 40px; height: 40px; }
@media (hover: none) { .dock-x { display: none; } }
.pin-sugg { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; margin: 4px 0 12px; padding: 2px; }
.pin-sugg button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--hover); font-size: 13px; color: var(--ink); text-align: left; min-width: 0; transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.pin-sugg button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-sugg button.on { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pin-sugg button svg { flex: none; }
@media (max-width: 860px) { .browser2 { grid-template-columns: minmax(0, 1fr); } .dock-list { gap: 4px; } }
.b-save { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: var(--ink-2); background: var(--hover); flex: none; white-space: nowrap; transition: color .15s var(--ease); }
.b-save:hover { color: var(--ink); }
.b-save:disabled { opacity: .6; }

/* ===== History (owner 2026-11-11: "if we have 15 or 20 history, how are we gonna show this clearly") ===== */
.h2-all { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.h2-all:hover { background: var(--panel); }
.builds .b-all { color: var(--ink-3); gap: 8px; }
.builds .b-all:hover { color: var(--ink); }
.hist-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hist-bar .search { flex: 1; min-width: 220px; max-width: 480px; } .hist-bar .search input { width: 100%; }
.hist-g { margin-top: 20px; }
.hist-g h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 4px; font: 500 13px var(--font); color: var(--ink-3); }
.hist-g h3 span { font-size: 12px; color: var(--ink-3); opacity: .7; }
.hist-list { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.hist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px 36px; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); transition: background-color .15s var(--ease); }
.hist-row:first-child { border-top: 0; }
.hist-row:hover { background: var(--hover); }
.hist-main { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; padding: 4px 0; }
.hist-main .tn { min-width: 0; }
.hist-main b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-main small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.hist-row .icon-btn.sure { background: var(--bad); color: #fff; }
@media (max-width: 700px) { .hist-row { grid-template-columns: minmax(0, 1fr) 36px 36px; } .hist-meta { display: none; } }

/* ===== My Applications: run from the account's files ===== */
.run-note { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 20px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink-2); line-height: 1.5; max-width: 860px; }
.run-note svg { flex: none; color: var(--brand); margin-top: 2px; }
.run-t { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.run-wrap { padding: 0 24px 24px; overflow: hidden !important; display: flex; }
.run-frame { flex: 1; width: 100%; border: 0; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
@media (max-width: 860px) { .run-wrap { padding: 0 12px 12px; } }

/* Sidebar never squashes: fixed parts keep their size, the builds list takes the leftover height and scrolls */
.side-in > * { flex-shrink: 0; }
.side-in > .builds { flex: 1 1 auto; min-height: 48px; overflow-y: auto; scrollbar-width: none; }
.side-in > .builds::-webkit-scrollbar { display: none; }
@media (min-width: 861px) { .side-in { overflow-y: auto; scrollbar-width: none; } .side-in::-webkit-scrollbar { display: none; } }
@media (min-width: 861px) and (max-height: 820px) { .nav a { height: 32px; } .nav-h { padding: 10px 10px 4px; } .side-h { padding: 12px 10px 6px; } .new-build { margin-bottom: 8px; } }
/* The running-cost card always sits whole at the bottom; the builds list gives up its height first and fades at its edge */
.side-in > .builds { min-height: 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent); mask-image: linear-gradient(#000 calc(100% - 18px), transparent); padding-bottom: 12px; }
.side-in > .side-cost { margin-top: auto; }
@media (min-width: 861px) { .side-in { overflow: hidden; } .side-mini .side-in { overflow-y: auto; } }
@media (min-width: 861px) and (max-height: 900px) { .side-cost { padding: 9px 14px; } .side-cost b { font-size: 18px; } .side-h { padding-top: 12px; } }

/* Sidebar scrolls as one piece (builds fully reachable); the running-cost card stays pinned at the bottom */
@media (min-width: 861px) {
  .side-in { overflow-y: auto; overscroll-behavior: contain; }
  .side-in > .builds { flex: none; min-height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 4px; }
  .side-in > .side-cost { position: sticky; bottom: 0; z-index: 2; margin-top: auto; box-shadow: 0 -14px 14px -2px var(--side); }
}

/* ===== Smooth scrolling (owner 2026-11-11: "a bit slow when I scroll … make it smooth") =====
   Off-screen cards skip layout and paint; each card paints on its own; scrolling areas get their own layer. */
.content { will-change: scroll-position; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.app-tile, .svc2-tile, .svc2-pick, .team-role, .ov-card, .kpi, .app-card, .hist-row, .cl-card, .h2-card, .prow { contain: layout paint style; }
.store-sec, .svc2-sec, .hist-g, .team-dept, .ov-row2, .apps > .app-card { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.mono-tile img, .r-icon { content-visibility: auto; }
@media (pointer: fine) { .app-tile, .svc2-tile, .h2-card, .prow { transition-property: transform, box-shadow, background-color; } }

/* ===== AI Store → Connected: cards (owner 2026-11-11: "like a card, not like a list") ===== */
.mine-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.mine-card { display: flex; flex-direction: column; gap: 12px; min-height: 196px; padding: 18px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); cursor: pointer; text-align: left; color: inherit; min-width: 0; contain: layout paint style; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mine-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 40px -18px rgba(0,0,0,.2); }
.mine-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mc-name { min-width: 0; }
.mc-name b { display: block; font: 500 17px/1.25 var(--display); letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-name small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-f { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mc-go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .25s var(--ease); }
.mine-card:hover .mc-go { transform: rotate(-45deg); }
.mc-add { align-items: center; justify-content: center; text-align: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); gap: 6px; }
.mc-add:hover { background: var(--panel); }
.mc-add b { font-weight: 500; font-size: 14px; } .mc-add small { font-size: 12.5px; color: var(--ink-3); }
.mc-plus { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--bg); margin-bottom: 4px; }

/* ===== Sidebar v3: short menu, More, Recents as the main scrolling list ===== */
@media (min-width: 861px) {
  .side-in { overflow: hidden; }
  .side-in > .side-cost { position: static; box-shadow: none; }
}
.side-in > .builds.recents { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 14px), transparent); padding: 4px 4px 12px; }
.recents .rc-g { font-size: 11.5px; color: var(--ink-3); padding: 10px 10px 4px; }
.recents .rc-g:first-child { padding-top: 2px; }
.recents a .dot.chat { background: var(--line-2); }
.side-more { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-top: 2px; border-radius: 10px; font-size: 13.5px; color: var(--ink-3); width: 100%; transition: color .15s var(--ease), background-color .15s var(--ease); }
.side-more:hover { color: var(--ink); background: var(--hover); }
.side-more .nl { flex: 1; text-align: left; }
.rc-h { display: flex; align-items: center; }
.rc-h > span { flex: 1; }
.rc-all { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); transition: color .15s var(--ease), background-color .15s var(--ease); }
.rc-all:hover { color: var(--ink); background: var(--hover); }
/* collapsed rail: the expand button is always visible under the logo; recents hidden */
@media (min-width: 861px) {
  .side-mini .side-top { flex-direction: column; height: auto; gap: 8px; margin-bottom: 10px; }
  .side-mini .side-top > svg { opacity: 1 !important; }
  .side-mini .side-tog { position: static; transform: none; opacity: 1; width: 36px; height: 36px; background: var(--hover); box-shadow: none; }
  .side-mini .side-tog:hover { background: var(--line); }
  .side-mini .side-more { width: 56px; padding: 0 20px; gap: 0; }
  .side-mini .side-more .nl { display: none; }
  .side-mini .rc-h, .side-mini .recents { display: none; }
}
/* account chip: just the initial and the arrow */
.who-chip.compact { padding: 4px 8px 4px 4px; gap: 6px; }
.who-chip.compact .avatar { width: 34px; height: 34px; }

/* ===== AI Store header (owner 2026-11-11: "really congested … the tab bar color is not blending") =====
   Title and search share one row; the tabs are quiet text tabs on a hairline, no grey box. */
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 18px; flex-wrap: wrap; }
.st-head h1 { margin: 0; }
.st-search { width: min(360px, 100%); }
.st-search input { width: 100%; height: 42px; border-radius: 99px; border-color: transparent; background: var(--panel); box-shadow: var(--shadow-1); }
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; flex-wrap: wrap; }
.st-tabs { display: flex; gap: 4px; position: relative; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs > button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; font-size: 14px; color: var(--ink-3); background: transparent; white-space: nowrap; transition: color .2s var(--ease); }
.st-tabs > button:hover { color: var(--ink); }
.st-tabs > button.on { color: var(--ink); font-weight: 500; }
.st-tabs > button .n { font-size: 12px; font-weight: 400; color: var(--ink-3); background: var(--hover); padding: 1px 7px; border-radius: 99px; }
.st-tabs > button.on .n { background: var(--ink); color: var(--bg); }
.st-tabs.has-slider > .slider { background: transparent; border-bottom: 2px solid var(--ink); border-radius: 0; }
.st-tabs:not(.has-slider) > button.on { box-shadow: inset 0 -2px 0 var(--ink); }
.st-price { display: flex; gap: 2px; position: relative; padding-bottom: 6px; }
.st-price > button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: var(--ink-3); transition: color .2s var(--ease); }
.st-price > button:hover { color: var(--ink); }
.st-price > button.on { color: var(--ink); }
.st-price.has-slider > .slider { background: var(--panel); border-radius: 99px; box-shadow: var(--shadow-1); }
.st-price:not(.has-slider) > button.on { background: var(--panel); box-shadow: var(--shadow-1); }
.store-count { display: none; }
@media (max-width: 860px) {
  .st-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .st-search { width: 100%; }
  .st-bar { border-bottom: 0; gap: 10px; }
  .st-tabs { width: 100%; border-bottom: 1px solid var(--line-2); }
  .st-price { width: 100%; } .st-price > button { flex: 1; }
}

/* ===== Sidebar v4: every item visible, grouped; no history list, no More ===== */
.side-in > .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.side-in > .nav::-webkit-scrollbar { display: none; }
.side-in > .side-cost { margin-top: 10px; }
.nav-h { padding: 14px 10px 4px; font-size: 11.5px; letter-spacing: .01em; }
@media (min-width: 861px) and (max-height: 860px) { .nav a { height: 32px; } .nav-h { padding: 8px 10px 2px; } }
@media (min-width: 861px) and (max-height: 740px) { .side-cost .sc-l small { display: none; } .side-cost { padding: 8px 14px; } }
/* Brand colour for the one main action; black stays for selected states */
.new-build { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(207, 79, 39, .55); }
.new-build:hover { filter: brightness(1.04); }
.new-build kbd, :root[data-theme="dark"] .new-build kbd { background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
:root[data-theme="dark"] .new-build { color: #fff; }
.mono-tile.logo:not(.img) img { width: 58%; height: 58%; display: block; object-fit: contain; }
.mono-tile.logo.xs:not(.img) img, .mono-tile.logo.sm:not(.img) img { width: 62%; height: 62%; }
/* containment that helped; content-visibility removed (it made each section lay out mid-scroll) */
.store-sec, .svc2-sec, .hist-g, .team-dept, .ov-row2, .apps > .app-card { content-visibility: visible; }
.content { will-change: auto; }

/* ===== One balanced palette (owner 2026-11-11: "too much yellow … consistency") =====
   Buttons stay black; the only accent is a soft copper from the brand, used sparingly. */
:root { --lime: #f3a87f; --lime-ink: #8a3412; }
:root[data-theme="dark"] { --lime: #f3a87f; --lime-ink: #2a1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lime: #f3a87f; --lime-ink: #2a1206; } }
.avatar { background: #f8dccb; color: #8a3412; }
:root[data-theme="dark"] .avatar { background: #3a2116; color: #f3a87f; }
.new-build { background: var(--ink); color: var(--bg); box-shadow: none; filter: none; }
:root[data-theme="dark"] .new-build { color: var(--bg); }
.new-build kbd { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
:root[data-theme="dark"] .new-build kbd { background: rgba(0,0,0,.12); color: rgba(0,0,0,.6); }
.toggle input:checked + .sw::after { background: #fff; }

/* ===== Rich tooltips with a small animated demo ===== */
.tip.rich { white-space: normal; padding: 12px 14px; border-radius: 14px; display: grid; gap: 4px; font-weight: 400; line-height: 1.45; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.tip.rich b { font-weight: 600; font-size: 13px; }
.tip.rich span { font-size: 12.5px; opacity: .78; }
.tip.above { transform: translate(0, calc(-100% + 4px)); }
.tip.above.on { transform: translate(0, -100%); }
.tip-demo { margin: -2px -4px 8px; height: 92px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
:root[data-theme="dark"] .tip-demo { background: rgba(0,0,0,.06); }
.dm { position: absolute; inset: 0; padding: 12px; display: grid; align-content: center; gap: 8px; font-size: 11.5px; }
.dm .mono-tile { width: 22px; height: 22px; border-radius: 7px; }
/* optimizer: a small ask gets the small model, a big one the top model */
.dm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; opacity: 0; animation: dmRow 6s infinite; }
.dm-row.b { animation-delay: 3s; position: absolute; left: 12px; right: 12px; top: 50%; translate: 0 -50%; }
.dm-row.a { position: absolute; left: 12px; right: 12px; top: 50%; translate: 0 -50%; }
.dm-typed { overflow: hidden; white-space: nowrap; border-right: 1.5px solid currentColor; max-width: 0; animation: dmType 3s steps(28) infinite; }
.dm-row.b .dm-typed { animation-delay: 3s; }
.dm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; opacity: 0; animation: dmPop 3s infinite; }
.dm-row.b .dm-pill { animation-delay: 3s; }
.dm-pill svg { width: 12px; height: 12px; }
.dm-pill.s { background: #2f7d4f; color: #fff; } .dm-pill.l { background: #e0682f; color: #fff; }
@keyframes dmRow { 0%, 2% { opacity: 0; } 5%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dmType { 0% { max-width: 0; } 45% { max-width: 190px; } 100% { max-width: 190px; } }
@keyframes dmPop { 0%, 50% { opacity: 0; transform: scale(.8); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* capacity: more agents, the bars fill sooner */
.dm-cap { gap: 6px; }
.dm-agent { display: flex; align-items: center; gap: 8px; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: #f3a87f; }
.dm-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.dm-bar i { display: block; height: 100%; background: currentColor; transform-origin: left; animation: dmFill calc(4.8s / var(--i)) linear infinite; }
.dm-cap-l { display: flex; justify-content: space-between; opacity: .7; font-size: 11px; }
@keyframes dmFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* private: the line to your AI account closes */
.dm-priv { grid-auto-flow: column; justify-content: space-between; align-items: center; }
.dm-box { display: grid; justify-items: center; gap: 4px; position: relative; }
.dm-box small { font-size: 10.5px; opacity: .75; }
.dm-line { width: 80px; height: 2px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.dm-line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #f3a87f, transparent); animation: dmFlow 1.4s linear infinite, dmCut 5s infinite; }
.dm-lock { position: absolute; right: -10px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: #e0682f; color: #fff; display: grid; place-items: center; opacity: 0; animation: dmLock 5s infinite; }
.dm-lock svg { width: 11px; height: 11px; }
@keyframes dmFlow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes dmCut { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes dmLock { 0%, 50% { opacity: 0; transform: scale(.6); } 56%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* AI switch: one runs dry, the next takes over */
.dm-ai2 { grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: 10px 14px; }
.dm-ai2 small { grid-column: 1 / -1; text-align: center; font-size: 10.5px; opacity: .75; }
.dm-ac { display: grid; justify-items: center; gap: 6px; }
.dm-fuel { width: 44px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.dm-fuel i { display: block; height: 100%; background: #f3a87f; transform-origin: left; animation: dmDrain 5s infinite; }
.dm-fuel.full i { background: #7fd19b; animation: dmTake 5s infinite; }
.dm-ac.two { animation: dmGlow 5s infinite; }
.dm-arrow { opacity: .6; }
@keyframes dmDrain { 0% { transform: scaleX(1); } 50%, 100% { transform: scaleX(0); } }
@keyframes dmTake { 0%, 50% { transform: scaleX(1); opacity: .35; } 55%, 100% { transform: scaleX(1); opacity: 1; } }
@keyframes dmGlow { 0%, 50% { opacity: .45; } 55%, 100% { opacity: 1; } }
/* attach: a file drops in */
.dm-att { justify-items: center; }
.dm-file { width: 30px; height: 36px; border-radius: 6px; background: #fff; color: #171717; display: grid; place-items: center; animation: dmDropIn 2.4s var(--ease) infinite; }
.dm-drop { width: 120px; height: 26px; border-radius: 99px; border: 1.5px dashed rgba(255,255,255,.35); display: grid; place-items: center; opacity: .8; }
@keyframes dmDropIn { 0% { transform: translateY(-30px); opacity: 0; } 30% { opacity: 1; } 60%, 100% { transform: translateY(6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tip-demo * { animation: none !important; opacity: 1 !important; max-width: none !important; } .dm-row.b { display: none; } }

/* ===== History rail on Home and inside builds (owner: "inside the home … the history … whether it's from Claude") ===== */
.content.hx { display: flex; align-items: stretch; overflow: hidden; }
.hx-main { flex: 1; min-width: 0; overflow: auto; }
.content.build.hx > .thread-col { flex: 1; min-width: 0; }
.hx-rail { flex: none; width: 272px; display: flex; flex-direction: column; margin: 0 0 16px 24px; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.hx-h { display: flex; align-items: center; gap: 8px; padding: 14px 10px 8px 16px; }
.hx-h b { font-weight: 500; font-size: 14px; }
.hx-search { position: relative; margin: 0 10px 6px; }
.hx-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.hx-search input { width: 100%; height: 34px; border-radius: 10px; border: 0; background: var(--hover); padding: 0 10px 0 32px; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.hx-search input:focus { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.hx-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.hx-g { font-size: 11.5px; color: var(--ink-3); padding: 12px 10px 4px; }
.hx-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color .15s var(--ease); }
.hx-item:hover { background: var(--hover); }
.hx-item.on { background: var(--ink); color: var(--bg); }
.hx-item.on small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.hx-item .mono-tile { flex: none; }
.hx-item .tn { flex: 1; min-width: 0; }
.hx-item b { display: block; font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-item small { display: block; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-chat { background: var(--hover); color: var(--ink-3); display: grid; place-items: center; }
.hx-chat svg { width: 12px; height: 12px; }
.hx-lock { color: var(--ink-3); display: grid; } .hx-lock svg { width: 13px; height: 13px; }
.hx-item.on .hx-lock { color: inherit; }
.hx-empty { margin: 16px 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 1180px) { .hx-rail { width: 236px; } }
@media (max-width: 1024px) { .hx-rail { display: none; } }

/* ===== Light selection (owner 2026-11-11: "black is too much … something light that matches") =====
   Selected = soft warm grey on white surfaces, white with a hairline on grey surfaces; ink text; copper icon. */
:root { --sel: #f1eeea; --sel-ink: #171717; --sel-ic: #d2602b; }
:root[data-theme="dark"] { --sel: #26262a; --sel-ink: #f2f2f3; --sel-ic: #f3a87f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sel: #26262a; --sel-ink: #f2f2f3; --sel-ic: #f3a87f; } }
/* sidebar */
.nav a.on, .nav.has-slider > .slider { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.nav.has-slider > a.on { background: transparent; }
.nav a.on .ic, .nav a.on svg { color: var(--sel-ic); }
.nav a.on .nl { font-weight: 500; }
.nav a.on .count:not(:empty) { background: var(--panel); color: var(--ink-2); }
/* category rails, history rail, dock */
.rail-in > button.on, .rail-in.has-slider > .slider { background: var(--sel); color: var(--sel-ink); }
.rail-in.has-slider > button.on { background: transparent; }
.rail-in > button.on .ic { color: var(--sel-ic); }
.rail-in > button.on .n { color: var(--ink-3); }
.hx-item.on { background: var(--sel); color: var(--sel-ink); }
.hx-item.on small { color: var(--ink-3); }
.dock-pin.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.b-pin.on { background: var(--sel); color: var(--sel-ink); }
.b-pin.on svg { color: var(--sel-ic); }
/* segmented switches and chips: a white pill on the grey track */
.seg.has-slider > .slider, .seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px -2px rgba(0,0,0,.08); }
.seg.has-slider > button.on { background: transparent; color: var(--ink); }
.chips.has-slider > .slider, .chips button.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips.has-slider > button.on { background: transparent; }
.chips button.on .n { color: var(--ink-3); }
.r-tabs a.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.st-tabs > button.on .n { background: var(--sel); color: var(--ink-2); }
.st-tabs.has-slider > .slider { border-bottom-color: var(--sel-ic); }
.hist .seg button.on .faint { color: var(--ink-3); }

/* Sidebar: no extra space between sections (owner: "zero spacing") */
.nav { gap: 0; }
.nav-h { padding: 8px 10px 2px !important; font-size: 11px; }
.nav-h:first-child { padding-top: 0 !important; }
.side-mini .nav-h { margin: 6px 12px; padding: 0 !important; }

/* ===== My Applications: just your apps (owner: "the application that I built, not stacks or subscriptions") ===== */
.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ma-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); overflow: hidden; min-width: 0; contain: layout paint style; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ma-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 20px 44px -20px rgba(0,0,0,.22); }
.ma-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid var(--line); text-align: left; }
.ma-scale { width: 1280px; zoom: .29; pointer-events: none; }
.ma-scale .pv-site, .ma-scale > * { min-height: 0; }
.ma-thumb.phone { background: var(--sel); }
.ma-thumb.phone .ma-scale { width: 420px; zoom: .55; margin: 14px auto 0; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); background: #fff; }
.ma-frame { width: 1280px; height: 800px; border: 0; zoom: .29; pointer-events: none; }
.ma-state { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--panel) 72%, transparent); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.ma-f { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; }
.ma-f .tn { flex: 1; min-width: 0; }
.ma-f b { display: block; font: 500 15px/1.3 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-f small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-new { align-items: center; justify-content: center; gap: 6px; min-height: 260px; text-decoration: none; color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ma-new:hover { background: var(--panel); }
.ma-new b { font-weight: 500; font-size: 14px; } .ma-new small { font-size: 12.5px; color: var(--ink-3); }
.run-note { display: none; }

/* ===== Attach menu ===== */
.composer { position: relative; }
.att-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.att-chips:not(:empty) { margin: 0 0 8px; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; height: 30px; padding: 0 6px 0 10px; border-radius: 10px; background: var(--sel); font-size: 12.5px; color: var(--ink); }
.att-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip svg { flex: none; color: var(--sel-ic); width: 14px; height: 14px; }
.att-chip button { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.att-chip button:hover { background: var(--panel); color: var(--ink); }
.att-chip button svg { color: inherit; width: 12px; height: 12px; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.att-pop { position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 32px)); max-height: 380px; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--panel); box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 24px 50px -18px rgba(0,0,0,.28); animation: menuIn .2s var(--ease); }
.home2 .att-pop { bottom: auto; top: calc(100% + 8px); }
.att-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.att-h .icon-btn { width: 28px; height: 28px; }
.att-pop > button, .att-list > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; color: var(--ink); transition: background-color .12s var(--ease); }
.att-pop > button:hover, .att-list > button:hover, .att-pop > button:focus-visible, .att-list > button:focus-visible { background: var(--sel); }
.att-pop > button > svg { color: var(--ink-3); flex: none; }
.att-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sel); color: var(--sel-ic); flex: none; }
.att-pop .tn { flex: 1; min-width: 0; }
.att-pop b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-pop small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-search { position: relative; margin: 0 4px 6px; }
.att-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.att-search input { width: 100%; height: 34px; border: 0; border-radius: 10px; background: var(--hover); padding: 0 10px 0 32px; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.att-list { overflow-y: auto; min-height: 0; }
.att-empty { margin: 14px 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ===== Phone preview QR ===== */
.phone-m { width: min(440px, calc(100vw - 24px)); }
.qr-box { position: relative; width: 220px; height: 220px; margin: 8px auto 16px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box svg rect[fill="#ffffff"], .qr-box svg path { shape-rendering: crispEdges; }
.qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px; border-radius: 12px; background: #fff; display: grid; }
.qr-steps { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.qr-steps b { color: var(--ink); font-weight: 500; }
.qr-link { display: flex; gap: 8px; }
.qr-link .input { flex: 1; min-width: 0; font-size: 12px; }
.qr-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--sel); font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; }
.qr-go { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 13px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.qr-go a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ===== Run view: responsive or scaled to a real screen size ===== */
.run-wrap { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.run-wrap.responsive .run-stage { flex: 1; align-self: stretch; display: flex; }
.run-wrap.responsive .run-frame { flex: 1; }
.run-wrap.scaled { background: transparent; }
.run-wrap.scaled .run-stage { flex: none; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.run-wrap.scaled .run-frame { border-radius: 0; box-shadow: none; flex: none; display: block; }
.run-wrap.scaled.dev-phone .run-stage { border-radius: 30px; box-shadow: 0 0 0 8px #111, 0 30px 60px -24px rgba(0,0,0,.45); margin-top: 8px; }
.run-wrap.scaled.dev-tablet .run-stage { border-radius: 22px; box-shadow: 0 0 0 8px #111, 0 30px 60px -24px rgba(0,0,0,.4); margin-top: 8px; }
.run-wrap.scaled.dev-phone, .run-wrap.scaled.dev-tablet { align-items: center; }
.run-wrap:fullscreen { padding: 0; background: var(--bg); }
.run-wrap:fullscreen.scaled { padding: 16px; }
.run-wrap:fullscreen .run-frame { border-radius: 0; }
.run-mode, .run-dev { flex: none; }
.run-dev button { display: inline-flex; align-items: center; gap: 6px; }
.run-pct { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 34px; }
@media (max-width: 1180px) { .hide-m { display: none; } }
@media (max-width: 760px) { .run-dev, .run-pct { display: none; } }
/* history panel: collapse to a strip, drag to resize */
.hx-rail { position: relative; transition: width .25s cubic-bezier(.22, 1, .36, 1); }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none; }
body.resizing .hx-rail { transition: none; }
.hx-resize { position: absolute; top: 16px; bottom: 16px; right: -6px; width: 12px; cursor: col-resize; z-index: 3; touch-action: none; }
.hx-resize::after { content: ""; position: absolute; left: 5px; top: 50%; height: 40px; width: 3px; margin-top: -20px; border-radius: 99px; background: var(--line-2); opacity: 0; transition: opacity .15s var(--ease); }
.hx-rail:hover .hx-resize::after, .hx-resize:focus-visible::after, body.resizing .hx-resize::after { opacity: 1; }
.hx-h .hx-tog { margin-left: -4px; }
.hx-rail.mini { width: 56px; align-items: center; padding: 10px 0; gap: 8px; }
.hx-mini-list { display: flex; flex-direction: column; align-items: center; gap: 4px; overflow-y: auto; scrollbar-width: none; min-height: 0; padding: 2px 0; }
.hx-mini-list a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; transition: background-color .15s var(--ease); }
.hx-mini-list a:hover { background: var(--hover); }
.hx-mini-list a.on { background: var(--sel); }
.nav, .nav a { gap: 0; } .nav a { margin: 0 !important; gap: 10px; } .nav a + a { margin-top: 0 !important; }
/* Line icons read darker, like the reference */
.nav a .ic { color: var(--ink-2); }
.nav a:hover .ic { color: var(--ink); }

/* ===== Projects in the history panel ===== */
.hx-sec { font-size: 11.5px; color: var(--ink-3); padding: 12px 10px 4px; font-weight: 500; }
.hx-sec:first-child { padding-top: 4px; }
.hx-folder { border-radius: 12px; margin-bottom: 2px; transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.hx-folder.drop, .hx-sec.drop { box-shadow: inset 0 0 0 1.5px var(--sel-ic); background: var(--sel); }
.hx-fh { display: flex; align-items: center; gap: 2px; }
.hx-fname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 10px; color: var(--ink); font-size: 13px; font-weight: 500; text-align: left; transition: background-color .15s var(--ease); }
.hx-fname:hover { background: var(--hover); }
.hx-fname > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-fname small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.hx-fname .chev { color: var(--ink-3); transition: transform .2s var(--ease); width: 14px; height: 14px; }
.hx-folder.shut .hx-fname .chev { transform: rotate(-90deg); }
.hx-fname .ic:not(.chev) { color: var(--sel-ic); }
.hx-fadd { width: 28px; height: 28px; opacity: 0; transition: opacity .15s var(--ease); }
.hx-folder:hover .hx-fadd, .hx-fadd:focus-visible { opacity: 1; }
.hx-fl { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 15px; }
.hx-fe { margin: 4px 8px 8px; font-size: 12px; color: var(--ink-3); }
.hx-row { position: relative; }
.hx-row.dragging { opacity: .4; }
.hx-row .hx-item { padding-right: 34px; }
.hx-more { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); opacity: 0; transition: opacity .12s var(--ease), background-color .12s var(--ease); }
.hx-row:hover .hx-more, .hx-row.menu-open .hx-more, .hx-more:focus-visible { opacity: 1; }
.hx-more:hover { background: var(--panel); color: var(--ink); }
@media (hover: none) { .hx-more, .hx-fadd { opacity: 1; } }
.hx-pop { position: absolute; right: 4px; top: calc(100% - 2px); z-index: 20; width: 220px; padding: 6px; border-radius: 14px; background: var(--panel); box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 20px 44px -16px rgba(0,0,0,.28); animation: menuIn .18s var(--ease); }
.hx-pop-h { font-size: 11.5px; color: var(--ink-3); padding: 6px 8px 4px; }
.hx-pop button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--ink); text-align: left; }
.hx-pop button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-pop button:hover { background: var(--sel); }
.hx-pop button .ic { color: var(--ink-3); }
.hx-pop button.on .ic:last-child { color: var(--sel-ic); }
.hx-pop button.danger, .hx-pop button.danger .ic { color: var(--bad); }
.hx-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.hx-newf { display: flex; align-items: center; gap: 6px; margin: 4px 4px 6px; padding: 0 4px 0 10px; height: 38px; border-radius: 10px; background: var(--sel); }
.hx-newf > span { color: var(--sel-ic); display: grid; }
.hx-newf input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.hx-newf .icon-btn { width: 28px; height: 28px; }
.hx-list { overflow-x: hidden; }
/* History rows: one line, title only, tiny source logo (owner: "titles only … maximum items") */
.hx-item { padding: 6px 8px; gap: 8px; min-height: 34px; }
.hx-src { flex: none; display: grid; place-items: center; width: 18px; height: 18px; color: var(--ink-3); }
.hx-src .mono-tile { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; background: transparent; }
.hx-src .mono-tile.logo:not(.img) img { width: 100%; height: 100%; }
.hx-src svg { width: 14px; height: 14px; }
.hx-item b { font-size: 13px; font-weight: 400; }
.hx-item.on b { font-weight: 500; }
.hx-fname { height: 32px; }
.hx-g, .hx-sec { padding-top: 8px; padding-bottom: 2px; }
.rn-input { width: 100%; min-width: 60px; height: 24px; margin: -3px 0; padding: 0 6px; border: 0; border-radius: 6px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--sel-ic); font: inherit; color: var(--ink); outline: none; }
[data-rename] { cursor: text; }
.hx-item [data-rename], .hx-fname [data-rename] { cursor: pointer; }

/* ===== Vault: tabs and compact rows ===== */
.v-safe { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.v-safe svg { color: var(--sel-ic); flex: none; }
.v-list { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); min-height: 58px; }
.v-row:first-child { border-top: 0; }
.v-row .tn { flex: 1; min-width: 0; }
.v-row b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; }
.v-row small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.v-row small a { color: inherit; }
.v-r { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12.5px; }
.v-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.v-tool { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-1); min-width: 0; }
.v-tool .tn { flex: 1; min-width: 0; }
.v-tool b { display: block; font-weight: 500; font-size: 13px; }
.v-tool small { display: block; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-seg { flex: none; padding: 2px; }
.v-seg button { height: 26px; padding: 0 9px; font-size: 12px; }
.am-sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.acct-menu a:has(.am-sub) { align-items: flex-start; height: auto; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; flex-wrap: wrap; }
@media (max-width: 700px) { .v-row { flex-wrap: wrap; } .v-r { width: 100%; justify-content: flex-end; } }
/* The sidebar never scrolls sideways (collapsing while the toggle had focus scrolled it right, showing only counts) */
.side, .side-in { overflow-x: hidden !important; }
.side-in > .nav { overflow-x: hidden; }

/* ===== Space pass, every page (owner 2026-11-11: "we are not wasting the spaces like this in any other") ===== */
.page-h .date-chip { display: none; }
.page-h { margin-bottom: 16px; gap: 12px; }
.page-h h1, .st-head h1, .cl2 .cl-head h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.03em; margin: 2px 0 0; }
.page-h p { font-size: 13.5px; margin-top: 6px; max-width: 72ch; }
.st-head { margin: 2px 0 14px; }
.cl2 .cl-head { margin: 2px 0 14px; }
.topbar { min-height: 0; }
.stat-row { margin-bottom: 16px; }
.kpis { margin-bottom: 16px; }
.section-h { margin: 20px 0 10px; }
@media (min-width: 861px) and (max-height: 860px) { .page-h h1, .st-head h1, .cl2 .cl-head h1 { font-size: 28px; } }
@media (max-width: 860px) { .page-h h1, .st-head h1, .cl2 .cl-head h1 { font-size: 26px; } }
.pv-list { display: grid; gap: 2px; margin: 4px 0 14px; border-radius: 14px; background: var(--hover); padding: 6px; }
.pv-list > div { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; }
.pv-list svg { color: var(--sel-ic); flex: none; margin-top: 2px; }
.pv-list b { display: block; font-weight: 500; font-size: 13.5px; }
.pv-list small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.pv-tog { align-items: flex-start; }
.pv-tog b { font-weight: 500; }

/* ===== Billing on one screen (owner: "I don't want to see any scrolls inside billing") ===== */
.bl { display: flex; flex-direction: column; height: 100%; padding-bottom: 20px; }
.bl .page-h { align-items: center; }
.bl-sum { display: flex; gap: 22px; }
.bl-sum span { display: grid; }
.bl-sum small { font-size: 11.5px; color: var(--ink-3); }
.bl-sum b { font: 500 16px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.bl-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.bl-subs { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.bl-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-size: 13px; }
.bl-h b { font-weight: 500; font-size: 14px; }
.bl-h .faint { font-size: 12px; }
.bl-total { font: 500 20px var(--display); font-variant-numeric: tabular-nums; }
.bl-total small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.bl-list { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bl-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 110px 80px 76px; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--line); }
.bl-row:hover { background: var(--hover); }
.bl-row .tn { min-width: 0; }
.bl-row b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-row small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-use { display: flex; align-items: center; gap: 8px; }
.bl-use .meter { flex: 1; }
.bl-use small { font-size: 11.5px; width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.bl-amt { text-align: right; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-amt.free { color: var(--ink-3); font-weight: 400; }
.bl-act { justify-self: end; font-size: 12px; }
.bl-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.bl-side::-webkit-scrollbar { display: none; }
.bl-box { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding-bottom: 14px; }
.bl-box > :not(.bl-h) { margin-left: 16px; margin-right: 16px; }
.bl-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #1d1d20, #2c2c31); color: #fff; font-size: 13px; }
.bl-card .cc-brand { font-weight: 600; }
.bl-card .faint { color: rgba(255,255,255,.6); margin-left: auto; }
.bl-nocard { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.bl-note { margin-top: 10px !important; margin-bottom: 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.bl-side .ov-card { margin: 0; padding: 14px 16px; }
.bl-ai { display: grid; gap: 6px; }
.bl-ai span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.bl-ai b { font-weight: 500; }
.bl-ai small { color: var(--ink-3); margin-left: auto; white-space: nowrap; }
@media (max-width: 1100px) { .bl-grid { grid-template-columns: minmax(0, 1fr); } .bl { height: auto; } .bl-list { max-height: 60vh; } .bl-side { overflow: visible; } }
@media (max-width: 700px) { .bl-row { grid-template-columns: 32px minmax(0, 1fr) auto; } .bl-use, .bl-act { display: none; } .bl-sum { gap: 14px; } }
/* Billing v2: Microooo's own plan */
.bl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 14px; }
.bl-plan { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.bl-plan.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--sel-ic); }
.bl-ph { display: flex; align-items: center; gap: 8px; } .bl-ph b { font-weight: 500; font-size: 14px; }
.bl-pp { font: 500 24px/1.1 var(--display); letter-spacing: -.02em; } .bl-pp small { font-size: 12px; color: var(--ink-3); font-family: var(--font); margin-left: 3px; }
.bl-plan p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.bl-plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.bl-plan li { display: flex; gap: 6px; align-items: center; } .bl-plan li svg { color: var(--sel-ic); width: 14px; height: 14px; flex: none; }
.bl-plan .btn { margin-top: auto; }
.bl-inv-h { border-top: 1px solid var(--line); }
.bl-inv { display: grid; grid-template-columns: 110px minmax(0, 1fr) 80px auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.bl-lines { display: grid; gap: 6px; font-size: 13px; }
.bl-lines div { display: flex; justify-content: space-between; } .bl-lines b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bl-third { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s var(--ease); }
.bl-third:hover { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--line-2); }
.bl-subs .bl-list { border-top: 0; }
@media (max-width: 1280px) { .bl-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bl-plan ul li:nth-child(n+4) { display: none; } }
@media (max-width: 760px) { .bl-plans { grid-template-columns: minmax(0, 1fr); } }
.bl-held { display: grid; gap: 6px; margin-top: 10px !important; }
.bl-held > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--sel); }
.bl-held .tn { flex: 1; min-width: 0; } .bl-held b { display: block; font-size: 12.5px; font-weight: 500; } .bl-held small { display: block; font-size: 11.5px; color: var(--ink-3); }
/* Menu items sit flush: the nav fills the sidebar height, so its rows must not stretch into the spare space */
.side-in > .nav { align-content: start; grid-auto-rows: max-content; }

/* ===== One font everywhere: Inter Tight (owner 2026-11-11) ===== */
:root, :root[data-theme] { --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Inter Tight', ui-sans-serif, system-ui, sans-serif; --mono: 'Inter Tight', ui-sans-serif, system-ui, sans-serif; }
html, body, button, input, textarea, select { font-family: var(--font); }
body { font-feature-settings: 'cv11', 'ss01'; letter-spacing: -.005em; }
/* code you read line by line keeps fixed-width digits */
pre, code, .mono, kbd { font-family: var(--font); font-variant-numeric: tabular-nums; }

/* ===== Selected items: a raised, premium chip instead of a flat fill (owner 2026-11-11) ===== */
:root { --sel-raise: linear-gradient(180deg, #ffffff 0%, #f6f3ef 100%); --sel-edge: 0 0 0 1px rgba(23, 23, 23, .07), 0 1px 2px rgba(23, 23, 23, .06), 0 6px 14px -8px rgba(23, 23, 23, .18), inset 0 1px 0 rgba(255, 255, 255, .9); }
:root[data-theme="dark"] { --sel-raise: linear-gradient(180deg, #2c2c31 0%, #232327 100%); --sel-edge: 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 18px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sel-raise: linear-gradient(180deg, #2c2c31 0%, #232327 100%); --sel-edge: 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 18px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); } }
.nav a.on, .nav.has-slider > .slider,
.rail-in > button.on, .rail-in.has-slider > .slider,
.hx-item.on, .hx-mini-list a.on { background: var(--sel-raise); box-shadow: var(--sel-edge); }
.nav.has-slider > a.on, .rail-in.has-slider > button.on { background: transparent; box-shadow: none; }
.nav a.on .count:not(:empty) { background: var(--sel); color: var(--ink-2); }
/* Selected chip: the edge is drawn inside, the shadow falls straight down, and the menu leaves room so nothing is clipped */
:root { --sel-edge: inset 0 0 0 1px rgba(23, 23, 23, .07), inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(23, 23, 23, .06), 0 4px 8px -5px rgba(23, 23, 23, .16); }
:root[data-theme="dark"] { --sel-edge: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4), 0 4px 10px -5px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sel-edge: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4), 0 4px 10px -5px rgba(0, 0, 0, .6); } }
.side-in > .nav { padding: 2px 3px 8px; }
.rail-in { padding-bottom: 10px; }
/* Icon lines a touch heavier so they sit with Inter Tight's weight (owner 2026-11-11) */
svg.ic [stroke-width], svg.ic [stroke] { stroke-width: 1.8; }
svg.ic.chev [stroke-width], svg.ic.chev [stroke] { stroke-width: 2; }

/* ===== Steady hovers (owner 2026-11-11: "suddenly changing the color … I don't like it") =====
   "Add / new" cards are white from the start like every other card; hover only lifts them a little.
   Every clickable thing eases its colour changes instead of snapping. */
.h2-all, .mc-add, .ma-new { background: var(--panel); box-shadow: var(--shadow-card); }
.h2-all:hover, .mc-add:hover, .ma-new:hover { background: var(--panel); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 40px -18px rgba(0,0,0,.2); }
.mc-plus, .ma-new .mc-plus { transition: transform .25s var(--ease); }
.mc-add:hover .mc-plus, .ma-new:hover .mc-plus { transform: scale(1.06); }
:where(button, a, [role="button"], summary, label) { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .22s ease, opacity .18s ease, transform .22s ease; }
.h2-strip a:hover, .h2-strip button:hover, .b-new:hover, .suggest button:hover { background: var(--panel); }
.h2-strip a, .h2-strip button, .b-new, .suggest button { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
@media (prefers-reduced-motion: reduce) { .h2-all:hover, .mc-add:hover, .ma-new:hover { transform: none; } }

/* ===== Microooo tab bar, one style everywhere (owner 2026-11-11: "our own nice tab bar … with background") =====
   A soft track; the active tab is the same raised chip as the selected menu item. */
:root { --tab-track: #ffffff; --tab-track-in: #f3f1ee; }
:root[data-theme="dark"] { --tab-track: #18181b; --tab-track-in: #202024; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tab-track: #18181b; --tab-track-in: #202024; } }
.cl-filters, .st-tabs, .r-tabs, .chips, .st-price, .seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px;
  background: var(--tab-track); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.03); border: 0; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; position: relative; flex-wrap: nowrap;
}
.cl-filters::-webkit-scrollbar, .st-tabs::-webkit-scrollbar, .r-tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
/* inside white cards and pop-ups the track sits a shade darker so it still reads */
:is(.ov-card, .modal, .cl-modal, .bl-box, .hx-rail, .v-tool, .kpi, .mine-card) :is(.seg, .chips) { background: var(--tab-track-in); box-shadow: inset 0 0 0 1px var(--line); }
.cl-filters > button, .st-tabs > button, .r-tabs > a, .chips > button, .chips > a, .st-price > button, .seg > button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px;
  border: 0; background: transparent; box-shadow: none; color: var(--ink-2); font-size: 13px; font-weight: 450; white-space: nowrap; text-decoration: none; flex: none;
}
.cl-filters > button:hover, .st-tabs > button:hover, .r-tabs > a:hover, .chips > button:hover, .chips > a:hover, .st-price > button:hover, .seg > button:hover { color: var(--ink); background: var(--hover); }
.cl-filters > button.on, .st-tabs > button.on, .r-tabs > a.on, .chips > button.on, .chips > a.on, .st-price > button.on, .seg > button.on,
.cl-filters.has-slider > .slider, .st-tabs.has-slider > .slider, .r-tabs.has-slider > .slider, .chips.has-slider > .slider, .st-price.has-slider > .slider, .seg.has-slider > .slider {
  background: var(--sel-raise); box-shadow: var(--sel-edge); color: var(--ink); border-radius: 10px; border: 0;
}
:is(.cl-filters, .st-tabs, .r-tabs, .chips, .st-price, .seg).has-slider > :is(button, a).on { background: transparent; box-shadow: none; }
:is(.cl-filters, .st-tabs, .r-tabs, .chips, .st-price, .seg) > :is(button, a).on { font-weight: 500; }
/* counts inside tabs */
.cl-filters > button span, .st-tabs > button .n, .chips .n, .seg .faint { font-size: 11.5px; color: var(--ink-3); background: transparent; padding: 0; font-weight: 400; }
.st-tabs > button.on .n { background: transparent; color: var(--ink-3); }
/* the AI Store / Vault bar: tabs on the left, price filter on the right, no underline */
.st-bar { border-bottom: 0; gap: 10px; margin-bottom: 18px; }
.st-tabs { margin-bottom: 0; }
.st-tabs.has-slider > .slider { border-bottom: 0; }
.seg { padding: 3px; border-radius: 12px; }
.seg > button { height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; }
.seg.has-slider > .slider { border-radius: 9px; }
/* Every tab bar is exactly the Research one: same height, padding, radius (owner: "use this tab bar entirely") */
.seg { padding: 4px; border-radius: 14px; }
.seg > button { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.seg.has-slider > .slider { border-radius: 10px; }
.v-seg > button { height: 28px; padding: 0 10px; font-size: 12px; }

/* ===== Settings pop-up (opens over the current page) ===== */
.modal.settings-m { width: min(820px, calc(100vw - 24px)); max-width: none; height: min(560px, calc(100vh - 24px)); display: grid; grid-template-columns: 210px minmax(0, 1fr); padding: 0; overflow: hidden; }
.st-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: var(--tab-track-in); border-right: 1px solid var(--line); }
.st-t { font: 500 15px var(--display); padding: 4px 10px 12px; }
.st-nav button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); text-align: left; }
.st-nav button:hover { background: var(--hover); color: var(--ink); }
.st-nav button.on { background: var(--sel-raise); box-shadow: var(--sel-edge); color: var(--ink); font-weight: 500; }
.st-nav button.on .ic { color: var(--sel-ic); }
.st-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.st-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.st-h b { font: 500 17px var(--display); letter-spacing: -.01em; }
.st-rows { overflow-y: auto; padding: 0 22px 18px; min-height: 0; }
.st-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-row .tn { flex: 1; min-width: 0; }
.st-row b { display: block; font-weight: 500; font-size: 13.5px; }
.st-row small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.st-c { flex: none; display: flex; align-items: center; gap: 8px; }
.st-in { width: 220px; height: 36px; font-size: 13px; }
.st-sw { margin: 0; }
@media (max-width: 680px) {
  .modal.settings-m { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: min(640px, calc(100vh - 24px)); }
  .st-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; scrollbar-width: none; }
  .st-t { display: none; } .st-nav button { flex: none; } .st-nav button span { white-space: nowrap; }
  .st-row { flex-wrap: wrap; } .st-in { width: 100%; }
}
/* No sliding layer: the chip is on the selected item itself */
[data-slide] > .slider { display: none !important; }
/* Focus rings only for keyboard use, drawn inside so nothing overlaps */
:focus:not(:focus-visible) { outline: none; }
.nav a:focus-visible, .st-nav button:focus-visible, .rail-in > button:focus-visible { outline: 2px solid var(--sel-ic); outline-offset: -2px; border-radius: 10px; }

/* ===== Browser dock: no ×, right-click menus, drop tabs to pin ===== */
.dock-x { display: none !important; }
.dock-drop { width: 40px; height: 40px; border-radius: 12px; display: none; place-items: center; color: var(--sel-ic); border: 1.5px dashed var(--sel-ic); flex: none; }
.dock.want .dock-drop { display: grid; }
.dock.over { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--sel-ic); }
.dock.over .dock-drop { background: var(--sel); }
.b-tab2[draggable="true"] { cursor: default; }
.ctx-menu { position: fixed; z-index: 95; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 18px 44px -14px rgba(0,0,0,.3); display: none; }
.ctx-menu.on { display: block; animation: menuIn .14s var(--ease); }
.ctx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 13px; color: var(--ink); text-align: left; }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--sel); outline: none; }
.ctx-menu button .ic { color: var(--ink-3); }
.ctx-menu button.danger, .ctx-menu button.danger .ic { color: var(--bad); }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* Full-height panels end exactly where the sidebar ends: 12px from the window edge (owner 2026-11-11) */
@media (min-width: 861px) {
  .browser2 { padding-bottom: 12px; }
  .hx-rail { margin-bottom: 12px; }
  .run-wrap { padding-bottom: 12px; }
  .r-embed { margin-bottom: 12px; }
  .bl { padding-bottom: 12px; }
  .content.build .thread-col .composer-wrap { padding-bottom: 12px; }
  .main { padding-bottom: 0; }
}
.tip-click { display: flex; align-items: flex-start; gap: 6px; font-style: normal; font-size: 12px; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); color: inherit; opacity: .95; }
.tip-click svg { flex: none; width: 13px; height: 13px; margin-top: 2px; color: #f3a87f; }
:root[data-theme="dark"] .tip-click { border-top-color: rgba(0,0,0,.12); }

/* ===== Collapsed sidebar v2: a slim rail of square 40px buttons, same size as the expand button (owner 2026-11-11) ===== */
@media (min-width: 861px) {
  .app.side-mini { grid-template-columns: 76px 1fr; }
  .side-mini .side-in { width: 64px; padding: 12px 12px 12px; }
  .side-mini .side-top { gap: 10px; margin-bottom: 10px; }
  .side-mini .side-top > svg { width: 32px; height: 32px; }
  .side-mini .side-tog { width: 40px; height: 40px; border-radius: 12px; }
  .side-mini .new-build { width: 40px; height: 40px; min-height: 0; border-radius: 12px; padding: 0; margin: 0 0 10px; justify-content: center; }
  .side-mini .side-in > .nav { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .side-mini .nav a { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .side-mini .nav a .ic { width: 20px; height: 20px; }
  .side-mini .nav-h { width: 24px; height: 1px; margin: 6px auto; }
  .side-mini .side-cost { width: 40px; height: 40px; border-radius: 12px; padding: 0; margin-top: 10px; }
  .side-mini .side-cost .sc-r svg { width: 18px; height: 18px; }
}
/* History panel collapse/expand animates its width; contents fade so nothing squashes mid-way */
.hx-rail.hx-anim { transition: width .28s cubic-bezier(.22, 1, .36, 1); overflow: hidden; }
.hx-rail.hx-anim > * { transition: opacity .16s ease; }
.hx-rail.hx-closing > *:not(.hx-h) { opacity: 0; }
.hx-rail.hx-closing .hx-h > :not(.hx-tog) { opacity: 0; }
.hx-rail.hx-opening > * { animation: hxIn .3s ease both; }
@keyframes hxIn { from { opacity: 0; } 40% { opacity: 0; } }
.hx-rail { min-width: 0; }
.hx-h, .hx-search, .hx-list { min-width: 200px; }
.hx-rail.mini .hx-h, .hx-rail.mini .hx-search, .hx-rail.mini .hx-list { min-width: 0; }
.hx-newf-btn.on { background: var(--sel); color: var(--ink); }
.hx-newf .icon-btn { flex: none; }
/* Collapsed rail: labels and counts take no space at all, so every icon sits dead centre in its square */
@media (min-width: 861px) { .side-mini .nav a .nl, .side-mini .nav a .count, .side-mini .side-cost .sc-l { display: none !important; } .side-mini .side-cost .sc-r { margin: 0; } }
.hx-fh { position: relative; }
.rn-input.rn-over { position: absolute; left: 34px; right: 40px; top: 50%; transform: translateY(-50%); height: 30px; margin: 0; z-index: 2; }

/* ===== My Applications as a launcher (owner 2026-11-11: "same like this … only the app model") ===== */
.la .page-h { align-items: center; }
.la-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 28px 12px; padding: 18px 8px 8px; }
.la-app { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 18px; text-decoration: none; color: var(--ink); background: transparent; min-width: 0; }
.la-app:hover .ai-icon { transform: translateY(-3px) scale(1.04); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 18px 32px -12px rgba(0,0,0,.35); }
.la-app:active .ai-icon { transform: scale(.96); }
.la-app:focus-visible { outline: 2px solid var(--sel-ic); outline-offset: 2px; }
.la-ic { position: relative; display: grid; }
.ai-icon { --s: 76px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26); display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 52%), linear-gradient(180deg, var(--a), var(--b));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.08), 0 10px 22px -12px rgba(0,0,0,.35);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease; }
.ai-icon svg [stroke], .ai-icon svg [stroke-width] { stroke-width: 1.7; }
.ai-icon.add { background: var(--panel); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.la-badge, .la-plat { position: absolute; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(0,0,0,.15); }
.la-badge { top: -5px; right: -5px; }
.la-plat { bottom: -5px; right: -5px; }
.la-name { max-width: 112px; font-size: 13px; font-weight: 450; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.la-new .la-name { color: var(--ink-3); }
.la-hint { margin: 28px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 600px) { .la-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 22px 6px; } .ai-icon { --s: 62px !important; } .la-name { font-size: 12px; max-width: 84px; } }

/* ===== Product Research: pages in a left panel (owner 2026-11-11) ===== */
.rs .hx-main { min-width: 0; }
.rs-main { display: flex; padding: 0 24px 12px 16px; }
.rs-main .r-embed { flex: 1; width: 100%; margin: 0; height: 100%; }
.rs-rail { width: 236px; }
.rs-item { gap: 10px; min-height: 36px; }
.rs-item .ic { color: var(--ink-3); flex: none; }
.rs-item.on .ic { color: var(--sel-ic); }
.rs-item b { font-weight: 450; }
.rs-item.on b { font-weight: 500; }
.rs .hx-main > .page { padding-left: 16px; }
.hx-mini-list a .ic { color: var(--ink-2); }
.hx-mini-list a.on .ic { color: var(--sel-ic); }
@media (max-width: 1024px) { .rs-rail { display: flex; } .rs-rail:not(.mini) { width: 200px; } }
@media (max-width: 760px) { .rs-rail { display: none; } }
@media (max-width: 760px) {
  .content.hx.rs { flex-direction: column; }
  .rs-rail, .rs-rail.mini { display: flex !important; width: auto !important; margin: 0 12px 8px; padding: 4px; flex-direction: row; }
  .rs-rail .hx-h, .rs-rail .hx-g, .rs-rail .hx-tog { display: none; }
  .rs-list, .rs-rail .hx-mini-list { display: flex; flex-direction: row; overflow-x: auto; padding: 0; gap: 2px; }
  .rs-item { flex: none; min-height: 34px; padding: 0 10px; }
  .rs-main { padding: 0 12px 12px; }
}
/* Research panel = the main menu, exactly (owner: "make sure the navbar looks same … same like the main app") */
.rs-list { padding: 2px 9px 10px; }
.rs-list .hx-g { font-size: 11px; color: var(--ink-3); padding: 8px 10px 2px; letter-spacing: .01em; }
.rs-list .hx-g:first-child { padding-top: 0; }
.rs-item { display: flex; align-items: center; gap: 10px; height: 36px; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-size: inherit; }
.rs-item .ic { width: 18px; height: 18px; color: var(--ink-2); }
.rs-item:hover { background: var(--hover); }
.rs-item:hover .ic { color: var(--ink); }
.rs-item .tn b { font-size: 14px; font-weight: 400; }
.rs-item.on { background: var(--sel-raise); box-shadow: var(--sel-edge); }
.rs-item.on .ic { color: var(--sel-ic); }
.rs-item.on .tn b { font-weight: 500; }
.rs-rail .hx-h { padding: 14px 10px 8px 19px; }
.rs-rail .hx-h b { font-size: 14px; font-weight: 500; }

/* Research overview: cards in a row share one height (no grey gap under the shorter one); bars in brand copper */
.ov-row2 { align-items: stretch; }
.ov-row2 > .ov-card { display: flex; flex-direction: column; }
.meter i { background: linear-gradient(90deg, #f3a87f, #e0682f); }
.meter.good i { background: linear-gradient(90deg, #6fd39b, #2f9e63); }
.meter.warm i { background: linear-gradient(90deg, #ffd08a, #f0a030); }
.r-mk { align-items: center; }
/* An open pop-up redrawn in place doesn't replay its entrance */
.modal.still, .scrim.still, .modal.still * { animation: none !important; }
/* App tiles: a real ⋯ menu that shows on hover; "Not built yet" as text */
.la-app { position: relative; padding: 0; }
.la-hit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 18px; background: transparent; color: inherit; width: 100%; }
.la-hit:hover .ai-icon { transform: translateY(-3px) scale(1.04); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 18px 32px -12px rgba(0,0,0,.35); }
.la-hit:active .ai-icon { transform: scale(.96); }
.la-sub { font-size: 11.5px; color: var(--ink-3); margin-top: -4px; }
.la-app.draft .ai-icon { filter: saturate(.55); opacity: .82; }
.la-badge { display: none; }
.la-more { position: absolute; top: 2px; left: calc(50% + 24px); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(0,0,0,.25); opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease; z-index: 2; }
.la-app:hover .la-more, .la-more:focus-visible, .la-more[aria-expanded="true"] { opacity: 1; transform: none; }
.la-more:hover { color: var(--ink); }
@media (hover: none) { .la-more { opacity: 1; transform: none; } }
.la-new { padding: 8px 4px; }

/* AI Store / Vault tabs: no underline left over — the same raised chip as every tab bar */
.st-tabs > button.on, .st-tabs:not(.has-slider) > button.on { box-shadow: var(--sel-edge) !important; background: var(--sel-raise); }

/* ===== Spacing like the sidebar (owner 2026-11-11): 12px from the window's right edge, a slimmer top bar ===== */
@media (min-width: 861px) {
  .topbar { height: 60px; padding: 12px 12px 0 24px; }
  .page { padding-right: 12px; }
  .browser2 { padding-right: 12px; }
  .run-wrap { padding-right: 12px; }
  .rs-main { padding-right: 12px; }
  .content.hx > .hx-main > .home2 { padding-right: 12px; }
  .content.build .thread { padding-right: 12px; }
}
.st-price > button.on, .st-price:not(.has-slider) > button.on, .seg > button.on, .chips > button.on, .cl-filters > button.on { background: var(--sel-raise) !important; box-shadow: var(--sel-edge) !important; color: var(--ink); font-weight: 500; }
.st-price > button { height: 32px; padding: 0 12px; border-radius: 10px; }
.st-lead { margin: 4px 0 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.b-legal { display: flex; flex-wrap: wrap; gap: 6px; }
.b-legal span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--sel); font-size: 12.5px; color: var(--ink); }
.b-legal span svg { color: var(--sel-ic); width: 14px; height: 14px; }

/* ---- One page header for every page (owner 2026-11-11: "not sure … the title and the placement of the tab bar … make it better").
   Title on one line, a quiet subtitle under it, actions on the right of the title; any tab bar sits on its own row
   under the title, left-aligned, where the content starts. ---- */
.page-h, .st-head, .db-head, .sk-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 16px; margin: 4px 0 20px; }
.page-h::after, .db-head::after, .sk-head::after { content: ''; flex: 0 0 100%; order: 9; height: 0; }
.page-h > .grow, .db-head > .grow { flex: 1 1 320px; min-width: 0; }
.page-h > .cl-filters, .page-h > .seg, .page-h > .chips, .page-h > .st-tabs, .page-h > .r-tabs,
.db-head > .cl-filters, .db-head > .seg, .db-head > .chips, .sk-head > .cl-filters, .sk-head > .seg, .sk-head > .chips { order: 10; flex: none; margin: 0; }
.page-h h1, .st-head h1, .db-head h1, .sk-head h1, .fm-headrow h1, .cl2 .cl-head h1, .team-head h1 { font: 500 30px/1.12 var(--font); letter-spacing: -.028em; margin: 0; color: var(--ink); }
.page-h h1 .soft, .st-head h1 .soft, .db-head h1 .soft, .sk-head h1 .soft, .fm-headrow h1 .soft, .cl2 .cl-head h1 .soft, .team-head h1 > span {
  display: block; margin-top: 6px; font: 400 14.5px/1.4 var(--font); letter-spacing: -.005em; color: var(--ink-3); }
.st-head { margin-bottom: 16px; }
@media (min-width: 861px) and (max-height: 860px) { .page-h h1, .st-head h1, .db-head h1, .sk-head h1, .cl2 .cl-head h1, .team-head h1 { font-size: 27px; } }
@media (max-width: 860px) { .page-h h1, .st-head h1, .db-head h1, .sk-head h1, .cl2 .cl-head h1, .team-head h1 { font-size: 25px; }
  .page-h > .cl-filters, .page-h > .seg, .page-h > .chips { max-width: 100%; overflow-x: auto; } }

/* rename box: the name holder crops overflow, so the box was cut at the top and bottom (owner 2026-11-11: "something wrong with the edges") */
[data-rename].rn-on { overflow: visible !important; text-overflow: clip !important; }
.rn-input { height: 26px; margin: -3px 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; box-shadow: 0 0 0 3px rgba(224, 104, 47, .16); outline: none !important; }
.rn-input:focus, .rn-input:focus-visible { outline: none !important; border-color: rgba(224, 104, 47, .55); }
.rn-input.rn-over { height: 30px; margin: 0; }

/* ================= Billing v2 (owner 2026-11-11: "too small … very basic … a better way") ================= */
.bl2 { padding-bottom: 24px; }
.bl2-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(300px, 1.15fr); gap: 14px; margin-bottom: 14px; }
.bl2-kpi { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 20px 22px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); }
.bl2-lbl { font-size: 13px; color: var(--ink-3); }
.bl2-big { font: 500 40px/1.05 var(--font); letter-spacing: -.035em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.bl2-big small { font-size: 16px; letter-spacing: 0; color: var(--ink-3); margin-left: 2px; font-weight: 400; }
.bl2-sub { font-size: 13px; color: var(--ink-2); }
.bl2-link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; border: 0; background: none; padding-left: 0; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; }
.bl2-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.bl2-link:hover svg { transform: translate(2px, -2px); }
.bl2-pay { position: relative; display: flex; flex-direction: column; }
.bl2-cc { position: relative; flex: 1; min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; border-radius: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(224, 104, 47, .55) 0%, rgba(224, 104, 47, 0) 55%), linear-gradient(135deg, #1c1b1a 0%, #2c2926 55%, #141312 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -18px rgba(20, 16, 12, .55), var(--shadow-card); }
.bl2-cc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.07) 50%, rgba(255,255,255,0) 60%); pointer-events: none; }
.bl2-cc-top { display: flex; align-items: center; justify-content: space-between; }
.bl2-chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #e9c98d, #b98a45); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.bl2-brand { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.bl2-num { font: 500 19px/1 var(--font); letter-spacing: .12em; font-variant-numeric: tabular-nums; margin-top: 18px; }
.bl2-cc-foot { display: flex; gap: 26px; font-size: 13px; }
.bl2-cc-foot span { display: grid; gap: 3px; } .bl2-cc-foot small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.bl2-cc.empty { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--line-2); justify-content: center; align-items: flex-start; gap: 6px; border: 0; text-align: left; cursor: pointer; font: inherit; transition: box-shadow .2s var(--ease); }
.bl2-cc.empty::after { display: none; }
.bl2-cc.empty:hover { box-shadow: inset 0 0 0 1.5px var(--sel-ic), var(--shadow-card); }
.bl2-cc.empty b { font-size: 17px; font-weight: 500; margin-top: 8px; } .bl2-cc.empty small { font-size: 12.5px; color: var(--ink-3); max-width: 30ch; line-height: 1.45; }
.bl2-plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sel); color: var(--sel-ic); }
.bl2-rm { position: absolute; right: 14px; bottom: -26px; border: 0; background: none; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.bl2-rm:hover { color: var(--ink); }
.bl2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.bl2-main { border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); padding: 16px; min-width: 0; }
.bl2-tabs { margin-bottom: 16px; }
.bl2-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bl2-plan { display: flex; flex-direction: column; padding: 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); transition: box-shadow .2s var(--ease); }
.bl2-plan:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.bl2-plan.pop { background: linear-gradient(180deg, rgba(224, 104, 47, .07), rgba(224, 104, 47, 0) 46%), var(--panel); box-shadow: inset 0 0 0 1px rgba(224, 104, 47, .35); }
.bl2-plan.on { background: var(--sel-raise, var(--sel)); box-shadow: inset 0 0 0 1.5px var(--sel-ic); }
.bl2-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl2-ph b { font-weight: 500; font-size: 16px; }
.bl2-tag { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: rgba(224, 104, 47, .12); color: var(--sel-ic); }
.bl2-tag.cur { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.bl2-price { font: 500 38px/1 var(--font); letter-spacing: -.035em; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.bl2-price small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 3px; }
.bl2-plan p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); }
.bl2-plan ul { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; }
.bl2-plan li { display: flex; align-items: center; gap: 10px; }
.bl2-ck { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(224, 104, 47, .12); color: var(--sel-ic); flex: none; }
.bl2-ck svg { width: 11px; height: 11px; stroke-width: 2.4; }
.bl2-plan .btn { margin-top: auto; height: 42px; width: 100%; justify-content: center; }
.bl2-fine { margin: 14px 2px 2px; font-size: 12.5px; color: var(--ink-3); }
.bl2-uses { display: grid; gap: 4px; margin-bottom: 14px; }
.bl2-use { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px minmax(120px, 220px); align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.bl2-use:hover { background: var(--hover); }
.bl2-uic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg, #f1f0ee); color: var(--ink-2); }
.bl2-use .tn { min-width: 0; } .bl2-use .tn b { display: block; font-weight: 500; font-size: 14px; } .bl2-use .tn small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl2-uv { text-align: right; font-variant-numeric: tabular-nums; } .bl2-uv b { font-weight: 500; font-size: 15px; } .bl2-uv small { color: var(--ink-3); font-size: 12.5px; }
.bl2-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bl2-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .4s var(--ease); }
.bl2-bar.warn i { background: var(--brand); }
.bl2-body .cl-storage { box-shadow: inset 0 0 0 1px var(--line); margin: 0; }
.bl2-inv { display: grid; font-size: 13.5px; }
.bl2-inv-h, .bl2-inv-r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px 90px; gap: 14px; align-items: center; padding: 12px; }
.bl2-inv-h { font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.bl2-inv-r { border-radius: 12px; } .bl2-inv-r:hover { background: var(--hover); } .bl2-inv-r b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bl2-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 16px; text-align: center; } .bl2-empty b { font-weight: 500; font-size: 15px; margin-top: 6px; } .bl2-empty small { color: var(--ink-3); font-size: 13px; }
.bl2-side { display: grid; gap: 14px; }
.bl2-box { border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); padding: 20px; }
.bl2-bh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bl2-bh span:first-child { display: grid; gap: 3px; } .bl2-bh b { font-weight: 500; font-size: 15px; } .bl2-bh small { font-size: 12.5px; color: var(--ink-3); }
.bl2-capv { font: 500 26px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bl2-gauge { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; } .bl2-gauge b { color: var(--ink); font-weight: 500; }
.bl2-box .range { width: 100%; margin: 18px 0 4px; }
.bl2-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.bl2-lines { display: grid; gap: 10px; font-size: 13.5px; }
.bl2-lines div { display: flex; justify-content: space-between; } .bl2-lines b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bl2-lines .tot { padding-top: 10px; border-top: 1px solid var(--line); } .bl2-lines .tot span { font-weight: 500; }
@media (max-width: 1280px) { .bl2-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl2-pay { grid-column: 1 / -1; } .bl2-cc { min-height: 150px; } }
@media (max-width: 1100px) { .bl2-grid { grid-template-columns: minmax(0, 1fr); } .bl2-plans { grid-template-columns: minmax(0, 1fr); } .bl2-use { grid-template-columns: 40px minmax(0, 1fr) 110px; } .bl2-use .bl2-bar { grid-column: 2 / -1; } }
@media (max-width: 700px) { .bl2-top { grid-template-columns: minmax(0, 1fr); } .bl2-kpi { min-height: 0; } .bl2-big { font-size: 32px; } }

/* Help me choose entry points (owner: "the very upselling feature") */
.st-right { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; }
.adv-btn { height: 42px; border-radius: 12px; gap: 8px; white-space: nowrap; }
.adv-btn svg { color: var(--sel-ic); }
@media (max-width: 700px) { .st-right { flex-basis: 100%; } .st-right .search { flex: 1; } }
.bl2-grid { grid-template-columns: minmax(0, 1fr); }

/* ===== App logo marks (public/app-logo.js, owner 2026-11-12): the squircle is in the image, so the shadow follows its shape ===== */
.app-logo { display: block; flex: none; width: var(--s, 76px); height: var(--s, 76px); user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.10)) drop-shadow(0 8px 14px rgba(0,0,0,.13)); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.hx-src .app-logo, .hx-mini-list .app-logo, .nt-ic .app-logo, .db-where .app-logo, .card-h .app-logo, .sd-proj .app-logo { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.14)); }
.hx-src:has(.app-logo) { width: 20px; height: 20px; }
.nt-item .nt-ic.nt-logo, .nt-item.new .nt-ic.nt-logo { background: none; width: 32px; height: 32px; }
.la-app:hover .app-logo { transform: translateY(-2px); }
.insp-h > .app-logo { margin-top: 2px; }
