/* Skipstone — site styles. Dark research-lab system, one file, no framework. */

@font-face { font-family: 'Geist'; src: url('/fonts/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/Atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/Atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Light (default): warm stone paper + deep navy ink from the logo. */
:root {
  --bg: #f4f1eb;
  --bg-2: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #ece8e0;
  --line: rgba(14, 42, 58, .11);
  --line-2: rgba(14, 42, 58, .2);
  --fg: #0e2a3a;
  --fg-2: #3f5566;
  --fg-3: #566676;
  --amber: #e9a23b;
  --amber-ink: #9c5a05;
  --ice: #1d5470;
  --bp: #1d5470;
  --bp-fill: rgba(29, 84, 112, .05);
  --logo-ripple: #1d5470;
  --logo-stone: #dc9024;
  --ok: #1e7a4c;
  --bad: #b3261e;
  --hover: rgba(14, 42, 58, .05);
  --active: rgba(14, 42, 58, .08);
  --shadow: 0 24px 70px rgba(14, 42, 58, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fs: 17px;
  color-scheme: light;
}
/* Dark: the whole site when chosen in Display settings, and always on the stages (hero, pitch, 3D viewers). */
html.a11y-dark, .on-dark, body.pitch {
  --bg: #050608;
  --bg-2: #0a0c10;
  --panel: #0e1116;
  --panel-2: #141820;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --fg: #eef1f4;
  --fg-2: #a7b0bb;
  --fg-3: #8a94a3;
  --amber: #f2b65a;
  --amber-ink: #f2b65a;
  --ice: #93cbe2;
  --bp: #93cbe2;
  --bp-fill: rgba(147, 203, 226, .06);
  --logo-ripple: #93cbe2;
  --logo-stone: #f2b65a;
  --ok: #7fd1a6;
  --bad: #ff8a7a;
  --hover: rgba(255, 255, 255, .05);
  --active: rgba(255, 255, 255, .08);
  --shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
.on-dark { color: var(--fg); }
html.a11y-readable { --font: 'Atkinson', 'Geist', system-ui, sans-serif; }
html.a11y-large { --fs: 20px; }
html.a11y-contrast { --fg-2: #1f3341; --fg-3: #2f4352; --line: rgba(14,42,58,.25); --line-2: rgba(14,42,58,.45); }
html.a11y-contrast.a11y-dark, html.a11y-contrast .on-dark { --fg-2: #d7dde4; --fg-3: #b4bcc6; --line: rgba(255,255,255,.22); --line-2: rgba(255,255,255,.4); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--fs)/1.6 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--amber); color: #111; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.amber { color: var(--amber-ink); }
.ice { color: var(--ice); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.display { font-size: clamp(2.9rem, 7.4vw, 7rem); letter-spacing: -.055em; line-height: .96; font-weight: 600; }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); letter-spacing: -.05em; line-height: 1; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: -.045em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -.03em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--fg-2); max-width: 40ch; letter-spacing: -.01em; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { display: inline-flex; gap: 14px; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow b { color: var(--fg); font-weight: 500; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--fg); --c: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--c); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.amber { --b: var(--amber); --c: #14100a; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--fg); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link:hover { border-color: var(--fg); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
body.home .nav:not(.solid):not(.open) { --fg: #eef1f4; --fg-2: #c3cad3; --active: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.22); --logo-ripple: #93cbe2; --logo-stone: #f2b65a; color-scheme: dark; }
body.home .nav:not(.solid):not(.open) .btn:not(.ghost) { --b: #eef1f4; --c: #0e2a3a; }
.nav.solid, .nav.open, body:not(.home) .nav { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; color: var(--fg); text-decoration: none; }
.logo-ripple { stroke: var(--logo-ripple); }
.logo-stone { fill: var(--logo-stone); }
.brand .logo { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--fg-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] { background: var(--active); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--fg); margin: 5px 0; transition: transform .3s var(--ease); }
.avatar { --h: 200; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 13px/1 var(--font); color: #0b0d10; background: hsl(var(--h) 60% 72%); flex: none; text-decoration: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); margin: 0; }
  .nav-links a { font-size: 20px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-cta .btn:not(.avatar) { display: none; }
  .nav.open .nav-cta { position: fixed; bottom: 0; }
}

/* ---------- flash ---------- */
.flash { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px 12px 16px; border-radius: 999px; font-size: 14.5px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); animation: flashIn .5s var(--ease), flashOut .5s var(--ease) 6s forwards; max-width: calc(100vw - 32px); }
.flash::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.flash.error::before { background: var(--bad); }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes flashOut { to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section.tight { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .lede { max-width: 46ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }
.page-head { padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head .h1 { margin: 22px 0 22px; max-width: 16ch; }

/* ---------- hero ---------- */
.hero { background: var(--bg); position: relative; min-height: 100svh; margin-top: -64px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero canvas.stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .fallback { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 50% at 70% 45%, rgba(147,203,226,.10), transparent 70%), radial-gradient(40% 30% at 72% 60%, rgba(242,182,90,.08), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5,6,8,.0) 40%, rgba(5,6,8,.65) 78%, var(--bg) 100%), linear-gradient(90deg, rgba(5,6,8,.75) 0%, rgba(5,6,8,0) 55%); }
.hero-copy { padding-bottom: clamp(32px, 6vh, 64px); }
.hero-copy .lede { max-width: 34ch; }
.hero-copy .display { margin: 26px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-bar { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); }
.hero-bar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-bar .cell { padding: 18px 0 20px; border-left: 1px solid var(--line); padding-left: 20px; font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.hero-bar .cell:first-child { border-left: 0; padding-left: 0; }
.hero-bar .cell b { display: block; font-weight: 500; color: var(--fg); letter-spacing: .02em; text-transform: none; font-family: var(--font); font-size: 15px; margin-top: 6px; }
.hero-bar .live { display: inline-flex; align-items: center; gap: 8px; }
.hero-bar .live::before, .dot-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242,182,90,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(242,182,90,0); } 100% { box-shadow: 0 0 0 0 rgba(242,182,90,0); } }
@media (max-width: 760px) { .hero-bar .wrap { grid-template-columns: 1fr 1fr; } .hero-bar .cell:nth-child(3) { border-left: 0; padding-left: 0; } .hero-bar .cell:nth-child(n+3) { border-top: 1px solid var(--line); } }
.scroll-cue { position: absolute; right: var(--pad); bottom: 120px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); writing-mode: vertical-rl; display: flex; gap: 14px; align-items: center; }
.scroll-cue::after { content: ''; width: 1px; height: 64px; background: linear-gradient(var(--fg-3), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- statement (scroll-lit words) ---------- */
.statement { font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.statement .w { color: var(--fg-3); transition: color .5s var(--ease); }
.statement .w.on { color: var(--fg); }
.statement .w.hl.on { color: var(--amber-ink); }
.statement-src { margin-top: 32px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat .n { font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.06em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .45em; letter-spacing: -.02em; color: var(--fg-2); margin-left: 4px; }
.stat p { margin: 18px 0 14px; color: var(--fg-2); font-size: 15.5px; max-width: 26ch; }
.stat .src { font: 11px/1.4 var(--mono); color: var(--fg-3); letter-spacing: .04em; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; margin-right: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; margin-right: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- blueprint / spec ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.spec-fig { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; min-height: 420px; display: grid; place-items: center; padding: 28px; }
.spec-fig svg { width: 100%; height: auto; }
.spec-fig .tag { position: absolute; top: 18px; left: 20px; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px 14px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { font: 12px/1.6 var(--mono); color: var(--fg-3); padding-top: 3px; }
.spec-list h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 6px; }
.spec-list p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 900px) { .spec { grid-template-columns: 1fr; } .spec-fig { border-right: 0; border-bottom: 1px solid var(--line); min-height: 300px; } }
.bp-line { stroke: var(--bp); stroke-width: 1.4; fill: none; }
.bp-fill { fill: var(--bp-fill); stroke: var(--bp); stroke-width: 1.4; }
.bp-dim { stroke: var(--fg-3); stroke-width: 1; fill: none; }
.bp-txt { fill: var(--fg-2); font: 11px var(--mono); letter-spacing: .06em; }
.bp-amber { stroke: var(--amber); fill: rgba(242,182,90,.12); }
.bp-anim { stroke-dasharray: 4 6; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; transition: border-color .3s, transform .4s var(--ease), background .3s; }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--line-2); background: var(--panel); transform: translateY(-2px); }
.card .k { font: 12px/1 var(--mono); color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.card h3 { margin: 56px 0 12px; }
.card p { color: var(--fg-2); margin: 0; font-size: 15.5px; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--fg-2); }
.card ul li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.card ul li::before { content: '—'; color: var(--fg-3); }
.icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ice); }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: m; }
.road li { list-style: none; position: relative; padding: 34px 22px 8px 0; }
.road li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg-3); }
.road li.done::before { background: var(--fg-2); border-color: var(--fg-2); }
.road li.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(242,182,90,.15); }
.road .lbl { font: 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.road li.now .lbl { color: var(--amber-ink); }
.road h3 { font-size: 1.12rem; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.25; }
.road p { font-size: 14.5px; color: var(--fg-2); margin: 0; }
.road-wrap { margin: 0; padding: 0; }
@media (max-width: 1000px) { .road { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) { .road { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); padding-left: 22px; } .road li { padding: 0 0 26px; } .road li::before { left: -27px; top: 3px; } }

/* ---------- lists (research style) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 140px 130px minmax(0, 1fr) 24px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), background .3s; }
.row:hover { padding-left: 12px; padding-right: 0; }
.row .d, .row .t { font: 12.5px/1.4 var(--mono); color: var(--fg-3); letter-spacing: .04em; }
.row .t { text-transform: uppercase; letter-spacing: .1em; }
.row h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.025em; line-height: 1.25; font-weight: 500; }
.row p { margin: 8px 0 0; color: var(--fg-2); font-size: 15.5px; max-width: 70ch; }
.row .go { color: var(--fg-3); transition: transform .3s var(--ease), color .3s; }
.row:hover .go { transform: translateX(4px); color: var(--fg); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr auto; gap: 6px 16px; } .row .d { order: 1; } .row .t { order: 2; text-align: right; } .row > div { order: 3; grid-column: 1 / -1; } .row .go { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--fg-2); text-decoration: none; background: transparent; cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip[aria-current="true"], .chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag { display: inline-flex; font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 9px; }
.tag.amber { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 40%, transparent); }
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

/* ---------- products ---------- */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .parts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .parts { grid-template-columns: 1fr; } }
.part { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease); }
.part:hover { border-color: var(--line-2); transform: translateY(-3px); }
.part .img { aspect-ratio: 4 / 3; background: #0d1014; overflow: hidden; }
.part .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.part:hover .img img { transform: scale(1.04); }
.part .meta { padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border-top: 1px solid var(--line); }
.part h3 { font-size: 1.08rem; letter-spacing: -.02em; font-weight: 500; }
.part .price { font: 13px/1.4 var(--mono); color: var(--fg); }
.part .price.free { color: var(--ok); }
.part p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: var(--fg-2); }

.viewer { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(80% 70% at 50% 35%, #161b22, #07090c); }
.viewer canvas { width: 100%; height: 100%; }
.viewer .hint { position: absolute; bottom: 14px; left: 16px; font: 11px var(--mono); color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.viewer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.person figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; background: #111; }
.person img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.person img.color { opacity: 0; }
.person:hover img.color { opacity: 1; }
.person:hover img { transform: scale(1.03); }
.person h3 { margin-top: 20px; font-size: 1.2rem; letter-spacing: -.02em; }
.person .role { font: 12px/1.6 var(--mono); color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.person p { color: var(--fg-2); font-size: 15px; margin-top: 12px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, label.lbl { font-size: 14px; color: var(--fg-2); font-weight: 500; }
.field small { color: var(--fg-3); font-size: 13px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; transition: border-color .2s, background .2s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.code { font: 14px/1.6 var(--mono); min-height: 460px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg-2); background: var(--panel); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-2); cursor: pointer; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--amber); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.error-box { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; }
.ok-box { border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.auth { min-height: calc(100svh - 64px); display: grid; place-items: center; padding: 64px var(--pad); }
.auth .form-card { width: 100%; max-width: 440px; }
.auth h1 { font-size: 2rem; margin-bottom: 8px; }
.auth .alt { text-align: center; color: var(--fg-2); margin-top: 22px; font-size: 15px; }

/* ---------- waitlist ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: clamp(36px, 6vw, 80px); background: radial-gradient(70% 90% at 100% 0%, rgba(147,203,226,.10), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(242,182,90,.08), transparent 60%), var(--bg-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.cta form { display: grid; gap: 12px; }
.cta .inline { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cta .count { font: 13px var(--mono); color: var(--fg-3); margin-top: 6px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .inline { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article-head { padding: clamp(64px, 10vw, 120px) 0 40px; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.05em; margin: 22px 0 22px; max-width: 18ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 12.5px/1.4 var(--mono); color: var(--fg-3); letter-spacing: .04em; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--fg); }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: 1.65rem; margin: 2.2em 0 .7em; letter-spacing: -.03em; color: var(--fg); }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .6em; color: var(--fg); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration-color: var(--amber-ink); }
.prose img, .prose video { max-width: 100%; width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--amber); color: var(--fg); font-size: 1.2rem; }
.prose code { font: .86em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); padding: 18px 20px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-size: .95rem; max-width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.prose hr { margin: 3em 0; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 80px; }
.article-nav a { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; }
.article-nav a:hover { border-color: var(--line-2); }
.article-nav .mono { color: var(--fg-3); display: block; margin-bottom: 8px; }
.article-nav .next { text-align: right; grid-column: 2; }

/* ---------- FAQ ---------- */
.faq-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .faq-group { grid-template-columns: 1fr; gap: 12px; } }
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-child { border-top: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.15rem; letter-spacing: -.02em; font-weight: 500; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
details.qa[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
details.qa .a { padding: 0 0 24px; color: var(--fg-2); max-width: 68ch; }
details.qa .a a { color: var(--fg); text-decoration-color: var(--amber-ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; color: var(--fg-2); font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer .base { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font: 12px/1.6 var(--mono); color: var(--fg-3); letter-spacing: .03em; }
.footer .logo { height: 28px; width: auto; color: var(--fg); margin-bottom: 18px; }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- a11y panel ---------- */
.a11y-btn { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.a11y-panel { position: fixed; left: 20px; bottom: 80px; z-index: 41; width: min(300px, calc(100vw - 40px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.a11y-panel h2 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 12px; }
.a11y-panel .check { margin: 10px 0; }

/* ---------- AI concierge ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; height: 52px; padding: 0 20px 0 14px; border-radius: 999px; background: var(--fg); color: var(--bg); border: 0; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab .orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, var(--amber) 35%, #b46f12 80%); box-shadow: inset 0 0 6px rgba(0,0,0,.25); }
.ai-panel { position: fixed; right: 20px; bottom: 84px; z-index: 46; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100svh - 120px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); transform-origin: bottom right; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 520px) { .ai-panel { right: 12px; left: 12px; width: auto; bottom: 80px; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ai-head .orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, var(--amber) 35%, #b46f12 80%); flex: none; }
.ai-head b { display: block; font-size: 15px; letter-spacing: -.01em; }
.ai-head small { color: var(--fg-3); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ai-head .x { margin-left: auto; background: none; border: 0; color: var(--fg-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.ai-head .x:hover { background: var(--hover); color: var(--fg); }
.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--fg); color: var(--bg); border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.bot a { color: var(--amber-ink); }
.bubble.typing { display: flex; gap: 4px; padding: 15px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.ai-suggest button { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--fg-2); }
.ai-suggest button:hover { color: var(--fg); border-color: var(--fg-3); }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form textarea { min-height: 46px; height: 46px; max-height: 140px; resize: none; border-radius: 14px; font-size: 15px; padding: 12px 14px; }
.ai-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.ai-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 12px; font-size: 12.5px; color: var(--fg-3); gap: 10px; }
.ai-foot button { background: none; border: 0; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12.5px; padding: 4px; }
.ai-escalate { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ai-escalate input, .ai-escalate textarea { min-height: 42px; font-size: 14.5px; }
.ai-escalate textarea { min-height: 70px; }

/* ---------- community chat ---------- */
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; height: calc(100svh - 64px); border-top: 1px solid var(--line); }
.chat aside { border-right: 1px solid var(--line); overflow-y: auto; padding: 22px 14px; }
.chat aside.right { border-right: 0; border-left: 1px solid var(--line); }
.chat aside h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 0 10px; margin: 18px 0 8px; }
.chat aside h4:first-child { margin-top: 0; }
.chan { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--fg-2); font-size: 15px; }
.chan:hover { background: var(--hover); color: var(--fg); }
.chan[aria-current="true"] { background: var(--active); color: var(--fg); }
.chan .hash { color: var(--fg-3); font-family: var(--mono); }
.chan .badge { margin-left: auto; background: var(--amber); color: #111; font: 600 11px/1 var(--mono); border-radius: 999px; padding: 4px 7px; }
.chan .avatar { width: 24px; height: 24px; font-size: 11px; }
.chat main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.chat-head h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.chat-head p { margin: 0; color: var(--fg-3); font-size: 14px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 6px 0; }
.msg .avatar { width: 36px; height: 36px; grid-row: span 2; }
.msg .who { font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.msg .who time { font: 11px var(--mono); color: var(--fg-3); font-weight: 400; }
.msg .who .tag { padding: 3px 6px; font-size: 9.5px; }
.msg .body { font-size: 15.5px; color: var(--fg); white-space: pre-wrap; word-wrap: break-word; }
.msg.cont { grid-template-columns: 36px 1fr; padding-top: 0; }
.msg.cont .avatar, .msg.cont .who { display: none; }
.msg.cont .body { grid-column: 2; }
.msg .del { opacity: 0; background: none; border: 0; color: var(--fg-3); cursor: pointer; font-size: 12px; margin-left: auto; }
.msg:hover .del { opacity: 1; }
.msg.deleted .body { color: var(--fg-3); font-style: italic; }
.chat-form { display: flex; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 48px; height: 48px; resize: none; }
.chat-typing { height: 18px; padding: 0 24px; font: 12px var(--mono); color: var(--fg-3); }
.member { display: flex; gap: 10px; align-items: center; padding: 7px 10px; font-size: 14.5px; color: var(--fg-2); border-radius: 10px; }
.member form { margin-left: auto; }
.member button { background: none; border: 1px solid var(--line-2); color: var(--fg-3); border-radius: 999px; font-size: 11.5px; padding: 3px 9px; cursor: pointer; }
.member button:hover { color: var(--fg); border-color: var(--fg-3); }
.member .on { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); opacity: .5; flex: none; }
.member .on.yes { background: var(--ok); opacity: 1; }
.chat-gate { margin: auto; text-align: center; max-width: 380px; padding: 40px 20px; }
@media (max-width: 1100px) { .chat { grid-template-columns: 220px minmax(0, 1fr); } .chat aside.right { display: none; } }
@media (max-width: 720px) { .chat { grid-template-columns: 1fr; height: auto; min-height: calc(100svh - 64px); } .chat aside:first-child { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding: 10px; } .chat aside:first-child h4 { display: none; } .chan { white-space: nowrap; } .chat main { height: calc(100svh - 64px - 62px); } }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--hover); }
.table a { text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
html.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
html.a11y-still .reveal { opacity: 1; transform: none; transition: none; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }

/* ---------- misc ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 100px; }
.photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; }
.photo figcaption, figure.photo + .cap { font: 12px var(--mono); color: var(--fg-3); padding: 12px 0; letter-spacing: .03em; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 12px 24px; font-size: 15px; }
.kv dt { color: var(--fg-3); font: 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kv dd { margin: 0; }
.notice { font: 12.5px/1.6 var(--mono); color: var(--fg-3); border: 1px dashed var(--line-2); padding: 12px 16px; border-radius: 12px; }
.empty { text-align: center; color: var(--fg-3); padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.quote { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.2; font-weight: 500; max-width: 26ch; }
.quote-by { margin-top: 20px; font: 12px var(--mono); color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase; }
.diagram { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); background: var(--bg-2); }
.diagram svg { width: 100%; height: auto; }
.layer { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.layer:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .layer { grid-template-columns: 1fr; gap: 8px; } }
.layer .n { font: 12px var(--mono); color: var(--amber-ink); letter-spacing: .1em; text-transform: uppercase; }
.layer h3 { font-size: 1.3rem; margin-bottom: 8px; }
.layer p { color: var(--fg-2); margin: 0; max-width: 62ch; }
.dot-live { display: inline-flex; }

/* ---------- admin ---------- */
.ok { color: var(--ok); }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100svh - 64px); }
.admin-nav { border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 64px; height: calc(100svh - 64px); overflow-y: auto; }
.admin-nav h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 22px 10px 8px; }
.admin-nav h4:first-child { margin-top: 0; }
.admin-nav a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--fg-2); font-size: 14.5px; }
.admin-nav a:hover { color: var(--fg); background: var(--hover); }
.admin-nav a[aria-current="page"] { color: var(--fg); background: var(--active); }
.admin-main { padding: 36px clamp(20px, 3vw, 44px) 80px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head h1 { font-size: 1.9rem; letter-spacing: -.035em; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--bg-2); text-decoration: none; display: block; }
a.tile:hover { border-color: var(--line-2); }
.tile .n { font-size: 2.2rem; letter-spacing: -.05em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .l { font: 11.5px var(--mono); color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.tile .s { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--fg-2); }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.status-pill.on::before { background: var(--ok); }
.status-pill.warn::before { background: var(--amber); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: 10px; }
.spark i { flex: 1; background: var(--bp); opacity: .75; border-radius: 3px 3px 0 0; min-height: 2px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.editor .preview { border: 1px solid var(--line); border-radius: 14px; padding: 24px; overflow-y: auto; max-height: 680px; background: var(--bg-2); }
.editor .preview.prose { font-size: 1rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.side-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 1100px) { .side-fields { grid-template-columns: 1fr 1fr; } .editor { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; } .admin-nav h4 { display: none; } }
.thread { display: grid; gap: 14px; margin-bottom: 24px; }
.thread .m { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--bg-2); white-space: pre-wrap; font-size: 15px; }
.thread .m.staff { border-color: color-mix(in srgb, var(--ice) 35%, transparent); background: color-mix(in srgb, var(--ice) 5%, var(--bg-2)); }
.thread .m .h { font: 12px var(--mono); color: var(--fg-3); margin-bottom: 8px; letter-spacing: .04em; white-space: normal; }
.inline-form { display: inline; }
.drop { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px; text-align: center; color: var(--fg-3); font-size: 14px; }
.drop.over { border-color: var(--amber); color: var(--fg); }
body.admin .a11y-btn, body.admin .a11y-panel { display: none; }
.chat ~ .a11y-btn { bottom: 96px; }
input[type=file] { font-size: 14px; color: var(--fg-2); }
input[type=file]::file-selector-button { font: 600 13.5px var(--font); color: var(--fg); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--fg); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(5,6,8,0) 22%, rgba(5,6,8,.75) 42%, var(--bg) 100%); }
  .a11y-btn { width: 42px; height: 42px; left: 12px; bottom: 14px; }
  .ai-fab { right: 12px; bottom: 14px; height: 46px; }
}

.footer .social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; }
.footer .social a { color: var(--fg); }

/* Light theme details */
.card, .form-card, .part, .spec, .cta, .tile, .diagram, .viewer { box-shadow: 0 1px 0 rgba(14,42,58,.02); }
html:not(.a11y-dark) .card, html:not(.a11y-dark) .form-card, html:not(.a11y-dark) .tile { background: var(--panel); }
html:not(.a11y-dark) .spec { background: var(--panel); }
html:not(.a11y-dark) .cta { background: radial-gradient(70% 90% at 100% 0%, rgba(29,84,112,.08), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(233,162,59,.12), transparent 60%), var(--panel); }
html:not(.a11y-dark) .section.band { background: var(--bg-2); }
.viewer, .part .img { color-scheme: dark; }
.lang-switch { font: 600 12.5px var(--mono); letter-spacing: .08em; color: var(--fg-2); text-decoration: none; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang-switch:hover { color: var(--fg); border-color: var(--fg-2); }
.notice-lang { font-size: 14px; color: var(--fg-2); border-left: 2px solid var(--amber); padding: 6px 0 6px 14px; margin: 0 0 28px; }

/* ---- Pebble (souls), circles and the AI admin ---- */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #14100a; font: 600 11px/1 var(--mono); }
.pb-head { padding-bottom: 28px; }
.pb-title { display: flex; gap: 18px; align-items: center; margin: 18px 0 26px; }
.pb-face { width: 58px; height: 42px; border-radius: 14px; background: var(--fg); display: inline-flex; gap: 10px; align-items: center; justify-content: center; flex: none; }
.pb-face i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.pb-tabs { margin-top: 4px; }
.pb-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; color: var(--fg); }
.pb-notice .link { background: none; border: 0; color: var(--amber-ink); cursor: pointer; font: inherit; text-decoration: underline; }
.pb-chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pb-chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.pb-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; max-height: 62vh; min-height: 380px; }
.pb-log .bubble, .pb-thread .bubble { white-space: pre-wrap; }
.bubble.sys { align-self: center; max-width: 92%; background: transparent; border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 14px; border-radius: 12px; }
.pb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.pb-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--panel); }
.pb-form textarea { flex: 1; resize: none; min-height: 46px; }
.pb-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; background: var(--panel); }
.pb-suggest .chip { height: auto; padding: 7px 12px; text-align: left; }
.pb-side .h3 { font-size: 18px; margin-bottom: 12px; }
.pb-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: 15px; }
.pb-small { font-size: 13.5px; line-height: 1.5; }
.pb-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pb-row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pb-filter { display: flex; gap: 8px; }
.pb-filter select, .pb-filter input { width: auto; min-height: 36px; }
.pb-mem { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pb-mem li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); }
.pb-mem li.unconfirmed { border-style: dashed; border-color: color-mix(in srgb, var(--amber-ink) 45%, transparent); }
.pb-mem-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; }
.pb-mem textarea { min-height: 52px; }
.pb-mem-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pb-mem-actions select { width: auto; min-height: 36px; }
.pb-rt { border-top: 1px solid var(--line); padding: 12px 0; }
.pb-rt-ctl { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 8px; }
.pb-rt-ctl .check { margin: 0; font-size: 13.5px; }
.pb-persona { max-width: 760px; }
.pb-slider input[type=range] { accent-color: var(--amber); width: 100%; }
.pb-ends { display: flex; justify-content: space-between; font-size: 12.5px; }
.pb-member { margin-bottom: 20px; }
.pb-member-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.pb-member-head select { width: auto; }
.pb-grants td, .pb-grants th { vertical-align: top; }
.pb-grants th:not(:first-child), .pb-grants td:not(:first-child) { text-align: center; width: 64px; }
.pb-grants input[type=radio] { width: 18px; height: 18px; accent-color: var(--amber); }
.pb-tags { display: flex; gap: 14px; margin-top: 6px; }
.pb-tags .check { margin: 0; font-size: 13px; }
.pb-defaults { margin-top: 18px; }
.pb-req { margin-bottom: 14px; padding: 20px; }
.pb-q { font-size: 17px; margin: 8px 0 14px; }
.pb-req-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-thread { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.pb-body { margin-bottom: 12px; padding: 18px; display: grid; gap: 10px; }
.pb-pair { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pb-pair img { border-radius: 12px; background: #fff; }
.pb-code { font-size: 34px; letter-spacing: .2em; margin: 0 0 6px; }
.pb-danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.pb-card { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.pb-scopes { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14.5px; }
.pb-actions { display: grid; gap: 8px; }
.care-cmd { display: grid; gap: 8px; }
.ai-strip { display: grid; gap: 10px; margin-bottom: 18px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.ai-card { margin-bottom: 18px; padding: 22px; }
.ai-card.risk-high { border-color: color-mix(in srgb, var(--amber-ink) 50%, transparent); }
.ai-card-head { margin-bottom: 12px; }
.ai-card textarea { width: 100%; }
.ai-card-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ai-pre { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--panel-2); padding: 14px; border-radius: 12px; overflow-x: auto; }
.ai-console { max-width: 900px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ai-console .pb-log { max-height: 60vh; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 900px) {
  .pb-chat-wrap, .pb-split { grid-template-columns: 1fr; }
  .pb-grants th:not(:first-child), .pb-grants td:not(:first-child) { width: 44px; }
}
@media (max-width: 720px) { .nav-pebble { display: none; } }
.pb-head + .section.tight { padding-top: 32px; }
.pb-rt-ctl input[type=checkbox] { width: 18px; height: 18px; }
.nav-mobile-only { display: none; } @media (max-width: 720px) { .nav-mobile-only { display: block; } }

/* ---- Contributors (/contribute, /team#contributors, the hub) ---- */
.cb-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cb-ladder li { padding: 22px 18px 6px 0; border-right: 1px solid var(--line); margin-right: 18px; }
.cb-ladder li:last-child { border-right: 0; margin-right: 0; }
.cb-ladder b { display: block; font-weight: 600; margin: 10px 0 6px; }
.cb-ladder p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
@media (max-width: 960px) { .cb-ladder { grid-template-columns: 1fr 1fr 1fr; row-gap: 18px; } .cb-ladder li:nth-child(3) { border-right: 0; } }
@media (max-width: 560px) { .cb-ladder { grid-template-columns: 1fr; } .cb-ladder li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; } }
.cb-area h3 { margin: 28px 0 10px; }
.cb-area .counts { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.cb-pts { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-ink); white-space: nowrap; }
.cb-st { display: inline-flex; font: 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 9px; border: 1px solid var(--line-2); color: var(--fg-3); white-space: nowrap; }
.cb-st.open { color: var(--ice); border-color: color-mix(in srgb, var(--ice) 40%, transparent); }
.cb-st.in_progress, .cb-st.review, .cb-st.pending, .cb-st.changes, .cb-st.applied { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 40%, transparent); }
.cb-st.done, .cb-st.approved, .cb-st.active { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.cb-st.rejected, .cb-st.declined { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.cb-filters { display: grid; gap: 12px; margin-bottom: 28px; }
.cb-tasks { display: grid; gap: 10px; }
.cb-task { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; color: var(--fg); transition: border-color .2s; }
.cb-task:hover { border-color: var(--line-2); }
.cb-task h3 { font-size: 1.04rem; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.cb-task .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--fg-2); }
.cb-task .right { display: flex; gap: 8px; align-items: center; }
.cb-task.offered { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.cb-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cb-two { grid-template-columns: 1fr; } }
.cb-side { display: grid; gap: 16px; position: sticky; top: 90px; }
@media (max-width: 900px) { .cb-side { position: static; } }
.cb-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); padding: 22px; }
.cb-box h2, .cb-box h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.cb-box form + form { margin-top: 12px; }
.cb-box textarea, .cb-box input[type=text], .cb-box input[type=url], .cb-box input[type=number], .cb-box select { width: 100%; }
.cb-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; margin: 0; }
.cb-kv dt { color: var(--fg-3); }
.cb-kv dd { margin: 0; }
.cb-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cb-notes li { border-left: 2px solid var(--line-2); padding: 2px 0 2px 16px; }
.cb-notes li.event { border-left-color: transparent; padding-left: 18px; color: var(--fg-3); font-size: 14px; }
.cb-notes li.ai { border-left-color: var(--ice); }
.cb-notes .who { font-size: 13px; color: var(--fg-3); margin-bottom: 4px; }
.cb-notes .body { white-space: pre-wrap; }
.cb-progress { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin: 10px 0 8px; }
.cb-progress i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.cb-face { --h: 200; width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 600 16px/1 var(--font); color: #0b0d10; background: hsl(var(--h) 60% 72%); overflow: hidden; }
.cb-face img { width: 100%; height: 100%; object-fit: cover; }
.cb-face.lg { width: 88px; height: 88px; font-size: 32px; }
.cb-face.sm { width: 28px; height: 28px; font-size: 12px; }
.cb-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .cb-people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cb-people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .cb-people { grid-template-columns: 1fr; } }
.cb-person { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; color: var(--fg); }
.cb-person:hover { border-color: var(--line-2); }
.cb-person b { font-weight: 600; display: block; }
.cb-person .sub { font-size: 13.5px; color: var(--fg-2); }
.cb-person .chips { grid-column: 1 / -1; gap: 6px; }
.cb-type { font: 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--hover); color: var(--fg-2); }
.cb-award { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber) 9%, var(--bg-2)); margin-bottom: 28px; }
.cb-award .k { font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); }
.cb-award h3 { margin: 10px 0 8px; font-size: 1.35rem; }
.cb-award p { margin: 0; color: var(--fg-2); }
@media (max-width: 560px) { .cb-award { grid-template-columns: 1fr; } }
.cb-board-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cb-legal { font-size: 15px; color: var(--fg-2); }
.cb-legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; color: var(--fg); }
.cb-legal h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; color: var(--fg); }
.cb-check { display: flex; gap: 10px; align-items: flex-start; }
.cb-check input { margin-top: 4px; }
.cb-areas-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 560px) { .cb-areas-pick { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cb-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); } .cb-scroll::-webkit-scrollbar { display: none; } .cb-scroll .chip { flex: none; } }

/* ---- Governor console: a full-height chat (screenshots, dictation, voice chat) ---- */
.admin-main:has(> .gov) { padding-bottom: 20px; }
.gov { position: relative; display: flex; flex-direction: column; max-width: 980px; height: calc(100svh - 64px - 56px); min-height: 520px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gov svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.gov-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gov-who h1 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; }
.gov-sub { display: block; font: 12.5px var(--mono); color: var(--fg-3); }
.gov-mark { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--amber), var(--amber-ink)); flex: none; }
.gov-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gov-actions .btn { gap: 6px; }
.gov-actions svg { width: 17px; height: 17px; }
.gov-reset { margin: 0; }
.gov-voice.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.gov-status { position: relative; }
.gov-status summary { list-style: none; cursor: pointer; }
.gov-status summary::-webkit-details-marker { display: none; }
.gov-status-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); min-width: 260px; }
.gov-status-pop .status-pill { white-space: nowrap; }
.gov-log { flex: 1; max-height: none; min-height: 0; padding: 20px clamp(12px, 3vw, 24px); }
.gov-log .bubble { max-width: min(760px, 92%); }
.gov-log .bubble.bot { background: var(--panel); }
.gov-text { white-space: pre-wrap; }
.gov-changes { margin-top: 12px; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 10px; padding: 10px 12px; background: var(--bg-2); white-space: normal; }
.gov-changes h4 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 6px; }
.gov-changes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.gov-changes li.warn { color: var(--amber-ink); }
.gov-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; white-space: normal; }
.gov-act { background: none; border: 0; padding: 2px 0; color: var(--fg-3); font: 13px inherit; cursor: pointer; text-decoration: none; }
.gov-act:hover { color: var(--fg); text-decoration: underline; }
.gov-tools { font: 12px var(--mono); color: var(--fg-3); }
.gov-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gov-shots img { height: 84px; width: auto; max-width: 160px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); }
.gov-composer { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 12px 8px; }
.gov-attached { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 10px; }
.gov-attached[hidden] { display: none; }
.gov-thumb { position: relative; margin: 0; }
.gov-thumb img { display: block; height: 64px; width: auto; max-width: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.gov-thumb-x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); cursor: pointer; line-height: 1; font-size: 15px; }
.gov-row { display: flex; align-items: flex-end; gap: 6px; }
.gov-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 180px; border-radius: 14px; padding: 11px 14px; }
.gov-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; flex: none; }
.gov-icon:hover { background: var(--hover); color: var(--fg); }
.gov-icon:focus-within, .gov-icon:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gov-icon.on { background: #c0392b; color: #fff; animation: gov-pulse 1.4s ease-in-out infinite; }
.gov-icon[hidden], .gov-voice[hidden] { display: none; }
.gov-send { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: none; }
.gov-send:disabled { opacity: .5; }
.gov-hint { margin: 6px 4px 0; font-size: 12px; color: var(--fg-3); }
.gov-drop { position: absolute; inset: 0; display: none; place-items: center; background: color-mix(in srgb, var(--bg) 86%, transparent); border: 2px dashed var(--amber); border-radius: var(--radius-lg); font-weight: 600; z-index: 30; pointer-events: none; }
.gov-drop.on { display: grid; }
@keyframes gov-pulse { 50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, .18); } }
@media (max-width: 760px) {
  /* the admin menu becomes one scrollable row, so the chat starts near the top */
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px; -webkit-overflow-scrolling: touch; }
  .admin-nav a { white-space: nowrap; flex: none; }
  .admin-main:has(> .gov) { padding: 0; }
  .gov { height: calc(100svh - 64px - 52px); border-radius: 0; border-left: 0; border-right: 0; }
  .gov-head { padding: 10px 12px; }
  .gov-actions .btn span { display: none; }
  .gov-actions .btn { width: 38px; padding: 0; justify-content: center; }
  .gov-status summary.btn { width: auto; padding: 0 12px; }
  .gov-hint { display: none; }
}

/* ---- Area leads: the Lead page and the team's Area leads page ---- */
.cb-lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cb-lead-list { display: grid; gap: 10px; }
.cb-lead-list > .cb-box { padding: 14px 18px; }
.cb-lead-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; cursor: pointer; }
.cb-lead-row b { flex: 1; min-width: 200px; }
details.cb-box > summary { cursor: pointer; }
.cb-off { margin: 0; padding-left: 18px; font-size: 14px; color: var(--fg-2); }
