/* MADD LLM API: design system.
   Shape rule: interactive controls (buttons, chips, pills) are full pill; panels and cards 14px; inputs 10px.
   Colour rule: monochrome. Semantic colours (--ok, --err) only for real state. Code panels are always dark. */

:root {
  --bg: #fafafa;
  --bg-2: #f3f3f4;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --line: rgba(10, 10, 12, 0.08);
  --line-2: rgba(10, 10, 12, 0.15);
  --text: #0c0c0e;
  --muted: #55555c;
  --faint: #6f6f78;
  --inv: #111113;
  --inv-text: #f7f7f8;
  --ok: #1f8a4c;
  --err: #c9343a;
  --warn: #8a6a12;
  --shadow: 0 1px 0 rgba(10, 10, 12, 0.04), 0 12px 32px -12px rgba(10, 10, 12, 0.14);
  --shadow-lg: 0 1px 0 rgba(10, 10, 12, 0.04), 0 30px 80px -24px rgba(10, 10, 12, 0.28);
  --code-bg: #0e0e10;
  --code-bg-2: #161619;
  --code-line: rgba(255, 255, 255, 0.08);
  --code-text: #e7e7ea;
  --code-dim: #8b8b94;
  --code-str: #d8d8dc;
  --code-key: #ffffff;
  --r-card: 14px;
  --r-input: 10px;
  --r-pill: 999px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-2: #0e0e11;
    --surface: #111114;
    --surface-2: #17171b;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #f4f4f5;
    --muted: #a6a6ae;
    --faint: #8a8a93;
    --inv: #f4f4f5;
    --inv-text: #0c0c0e;
    --ok: #4cc27c;
    --err: #ff6b70;
    --warn: #e0b84c;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -24px rgba(0, 0, 0, 0.8);
    --code-bg: #0c0c0e;
    --code-bg-2: #131316;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, pre, kbd, .mono { font-family: var(--mono); font-feature-settings: normal; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── icons ─────────────────────────────────────────────── */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--inv); color: var(--inv-text); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text); }
.btn-quiet { color: var(--muted); padding: 0 12px; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { border-color: color-mix(in srgb, var(--err) 40%, transparent); color: var(--err); background: var(--surface); }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 8%, var(--surface)); }
.btn-danger-solid { background: var(--err); color: #fff; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .2s, color .2s; }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--inv); color: var(--inv-text); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-sub { color: var(--faint); font-weight: 500; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: var(--r-pill); color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active { background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; font-size: 12px; font-family: var(--mono); }
.lang button { padding: 3px 9px; border-radius: var(--r-pill); color: var(--faint); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--inv); color: var(--inv-text); }
.nav-burger { display: none; }
.nav-sheet { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-sheet.is-open {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 16px 20px; animation: drop .3s var(--ease);
  }
  .nav-sheet a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-sheet .btn { margin-top: 16px; width: 100%; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── type ──────────────────────────────────────────────── */
.h-display { font-size: clamp(38px, 4.9vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--muted); line-height: 1.55; max-width: 56ch; margin: 0; text-wrap: pretty; }
.body { color: var(--muted); max-width: 62ch; margin: 0; text-wrap: pretty; }
.small { font-size: 13px; color: var(--faint); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dim { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); letter-spacing: -0.02em; }

/* ── sections ──────────────────────────────────────────── */
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
@media (max-width: 768px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 72% 30%, color-mix(in srgb, var(--text) 7%, transparent), transparent 70%),
    radial-gradient(500px 260px at 15% 0%, color-mix(in srgb, var(--text) 4%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.dotgrid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 10%, transparent 70%);
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 72px; } }

/* ── code panel (always dark) ──────────────────────────── */
.code {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-lg); position: relative;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.code-top { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0 14px; border-bottom: 1px solid var(--code-line); }
.code-tab { padding: 8px 12px 10px; color: var(--code-dim); font-size: 12.5px; position: relative; transition: color .2s; }
.code-tab[aria-selected="true"] { color: var(--code-key); }
.code-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--code-key); }
.code-top .spacer { flex: 1; }
.code-copy { color: var(--code-dim); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; transition: color .2s, background .2s; margin-bottom: 6px; }
.code-copy:hover { color: #fff; background: rgba(255,255,255,.06); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre; tab-size: 2; }
.code .c-k { color: #ffffff; font-weight: 500; }
.code .c-s { color: #bdbdc4; }
.code .c-d { color: #74747d; }
.code .c-n { color: #e4e4e7; }
.code .c-hl { background: rgba(255,255,255,.09); border-radius: 4px; padding: 1px 3px; margin: -1px -3px; color: #fff; }
.code-out { border-top: 1px solid var(--code-line); background: var(--code-bg-2); padding: 14px 20px 16px; min-height: 148px; }
.code-out-head { display: flex; justify-content: space-between; align-items: center; color: var(--code-dim); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.stream { color: var(--code-text); white-space: pre-wrap; word-break: break-word; min-height: 66px; font-size: 13px; }
.caret { display: inline-block; width: 7px; height: 15px; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.meter { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--code-line); color: var(--code-dim); font-size: 12px; }
.meter b { color: #fff; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #4cc27c; box-shadow: 0 0 0 3px rgba(76,194,124,.18); }

/* ── model row (landing) ──────────────────────────────── */
.model-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 24px;
  padding: 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.model-row + .model-row { margin-top: 12px; }
.model-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.model-row .k { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.model-row .v { font-family: var(--mono); font-size: 18px; letter-spacing: -0.02em; }
.model-name { display: grid; gap: 6px; }
.model-name .id { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.model-name .t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .model-row { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
  .model-row .model-name { grid-column: 1 / -1; }
  .model-row .go { grid-column: 1 / -1; }
}

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: var(--mono); color: var(--muted); padding: 3px 9px 3px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status.off i { background: var(--faint); }

/* ── bento ─────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px;
}
.tile .h-3 { font-size: 19px; }
.tile .body { font-size: 14.5px; }
.tile-a { grid-column: span 4; }
.tile-b { grid-column: span 2; }
.tile-c { grid-column: span 2; }
.tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; }
.tile-dark { background: var(--code-bg); color: #f4f4f5; border-color: rgba(255,255,255,.06); }
.tile-dark .body { color: #a6a6ae; }
.tile-lines {
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 5%, transparent) 0 1px, transparent 1px 10px);
}
.tile-ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); margin-bottom: 6px; }
.tile-dark .tile-ico { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.tile .push { margin-top: auto; }
.diff { font-family: var(--mono); font-size: 13px; border-radius: 10px; background: var(--code-bg); color: #d4d4d8; padding: 14px 16px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.diff .m { color: #8b8b94; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.diff .p { color: #fff; }
.diff .g { color: #6a6a72; }
.jsonbit { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre; overflow-x: auto; color: var(--muted); }
.jsonbit b { color: var(--text); font-weight: 500; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 4px; padding: 0 3px; }
.budget { display: grid; gap: 10px; }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.budget-row .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.budget-row .bar i { display: block; height: 100%; background: var(--text); border-radius: 4px; transform-origin: left; }
.vatlist { display: grid; gap: 8px; font-size: 13px; }
.vatlist div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.vatlist b { font-family: var(--mono); font-weight: 500; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-a { grid-column: 1 / -1; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: 1 / -1; }
  .tile { min-height: 0; padding: 22px; }
}

/* ── flow (how billing works) ─────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.flow-step { position: relative; padding-right: 32px; display: grid; gap: 12px; }
.flow-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; }
.flow-step:first-child .flow-dot { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
.flow-step .h-3 { font-size: 20px; margin-top: 10px; }
@media (max-width: 768px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-step { grid-template-columns: 46px 1fr; column-gap: 18px; padding: 0; }
  .flow-step .flow-dot { grid-row: span 2; }
  .flow-step .h-3 { margin-top: 10px; }
}

/* ── price teaser ─────────────────────────────────────── */
.price-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.price-big { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.price-big .p { font-family: var(--mono); font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -0.06em; font-weight: 500; }
.price-big .l { font-size: 13px; color: var(--faint); margin-top: 10px; }
.example { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 22px 24px; display: grid; gap: 12px; }
.example-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.example-row b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.example-total { border-top: 1px solid var(--line); padding-top: 12px; color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .price-split { grid-template-columns: 1fr; gap: 36px; } }

/* ── statement ────────────────────────────────────────── */
.statement { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; max-width: 18ch; margin: 0; text-wrap: balance; }
.statement .soft { color: var(--faint); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.fact { padding: 22px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .h-3 { font-size: 15px; }
.fact p { margin: 0; font-size: 14px; color: var(--muted); }
.link-u { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link-u:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact { padding-bottom: 22px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { margin: -8px 0 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── CTA band ─────────────────────────────────────────── */
.band { border-radius: 22px; background: var(--code-bg); color: #f4f4f5; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%); }
.band .lead { color: #a6a6ae; }
.band .btn-primary { background: #f4f4f5; color: #0c0c0e; position: relative; z-index: 1; }
@media (max-width: 768px) { .band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 18px; } }

/* ── footer ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--muted); transition: color .2s; }
.foot ul a:hover { color: var(--text); }
.foot-co { color: var(--faint); font-size: 13px; line-height: 1.7; margin-top: 14px; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── page header (subpages) ───────────────────────────── */
.page-head { padding: 64px 0 40px; display: grid; gap: 16px; }
.page-head .lead { max-width: 60ch; }

/* ── cards / panels ───────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head .h-3 { font-size: 15px; }
.panel-body { padding: 22px; }
@media (max-width: 640px) { .panel-pad, .panel-body { padding: 18px; } .panel-head { padding: 14px 18px; } }

/* ── models page ──────────────────────────────────────── */
.mcard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.mcard + .mcard { margin-top: 16px; }
.mcard-main { padding: 32px; display: grid; gap: 18px; align-content: start; }
.mcard-side { padding: 32px; border-left: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 20px; align-content: start; }
.mcard .title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.mcard .idline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 6px 5px 12px; width: fit-content; max-width: 100%; }
.mcard .idline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .idline button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.mcard .idline button:hover { background: var(--surface); color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; }
.spec .k { font-size: 12px; color: var(--faint); }
.spec .v { font-family: var(--mono); font-size: 15px; letter-spacing: -0.01em; }
.prices { display: grid; gap: 14px; }
.prices .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prices .row .v { font-family: var(--mono); font-size: 26px; letter-spacing: -0.04em; }
.prices .row .k { color: var(--muted); font-size: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-family: var(--mono); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) {
  .mcard { grid-template-columns: 1fr; }
  .mcard-side { border-left: 0; border-top: 1px solid var(--line); }
  .mcard-main, .mcard-side { padding: 22px; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ── tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t .mono { font-size: 13px; }
.t tbody tr { transition: background .15s; }
.t tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ── forms ────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .help { font-size: 12.5px; color: var(--faint); }
.field .error { font-size: 12.5px; color: var(--err); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-input); background: var(--surface);
  border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; outline: none; font-size: 14.5px;
}
.textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.input.is-invalid { border-color: var(--err); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.range { width: 100%; accent-color: var(--text); }

/* ── notices ──────────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.notice .i { margin-top: 2px; }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.notice.ok .i { color: var(--ok); }
.notice.err { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: color-mix(in srgb, var(--err) 6%, var(--surface)); }
.notice.err .i { color: var(--err); }
.notice .grow { flex: 1; }
.notice p { margin: 2px 0 0; color: var(--muted); }

/* ── toast ────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--inv); color: var(--inv-text); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .35s var(--ease); }
.toast.err { background: var(--err); color: #fff; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ── modal ────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, #000 45%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.modal { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-body { padding: 18px 24px 24px; display: grid; gap: 16px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.keybox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--code-bg); color: #fff; font-family: var(--mono); font-size: 13px; }
.keybox code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.keybox code::-webkit-scrollbar { display: none; }
.keybox .btn { background: #f4f4f5; color: #0c0c0e; }

/* ── skeleton ─────────────────────────────────────────── */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 5%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── empty ────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 48px; height: 48px; border-radius: 14px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--faint); margin-bottom: 4px; }
.empty .h-3 { color: var(--text); }
.empty p { margin: 0; max-width: 42ch; font-size: 14px; }

/* ── reveal ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
  .hero .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── docs ─────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 40px; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs-nav .grp { font-size: 12px; color: var(--faint); margin: 18px 0 6px; font-weight: 500; }
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.is-active { color: var(--text); background: var(--surface-2); }
.doc { max-width: 760px; min-width: 0; }
.doc section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 26px; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 600; }
.doc h3 { font-size: 16px; margin: 28px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 18px; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc :not(pre) > code { font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.doc .code { margin: 14px 0 18px; box-shadow: none; }
.doc table.t { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; margin: 10px 0 16px; background: var(--surface); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: none; }
  .docs-nav .grp { display: none; }
  .docs-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--r-pill); }
}

/* ── login ────────────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-inner { width: min(380px, 100%); margin: auto; display: grid; gap: 22px; padding: 40px 0; }
.auth-side { background: var(--code-bg); color: #f4f4f5; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent 75%); }
.auth-side > * { position: relative; }
.auth-side .quote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; max-width: 16ch; }
.auth-side .small { color: #8b8b94; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 56px; text-align: center; font-family: var(--mono); font-size: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); padding: 0; min-width: 0; }
.otp input:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.otp.is-invalid input { border-color: var(--err); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; height: 44px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding: 20px 16px; } }

/* ── dashboard shell ──────────────────────────────────── */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; }
.side .brand { padding: 4px 8px 18px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.side-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.side-nav a.is-active { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-bal { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.side-bal .v { font-family: var(--mono); font-size: 20px; letter-spacing: -0.03em; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.side-user .av { width: 28px; height: 28px; border-radius: 50%; background: var(--inv); color: var(--inv-text); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.side-user .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.main { min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .ttl { font-weight: 600; letter-spacing: -0.01em; }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.view { padding: 32px; max-width: 1180px; display: grid; gap: 20px; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.mob-tabs { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 0 16px; }
  .mob-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 60px; z-index: 29; background: var(--bg); }
  .mob-tabs::-webkit-scrollbar { display: none; }
  .mob-tabs a { white-space: nowrap; padding: 7px 13px; border-radius: var(--r-pill); color: var(--muted); font-size: 13.5px; border: 1px solid var(--line); }
  .mob-tabs a.is-active { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
  .view { padding: 20px 16px 40px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 20px 22px; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--faint); }
.stat .v { font-family: var(--mono); font-size: 24px; letter-spacing: -0.04em; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

.balance-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 28px; }
.balance-hero .v { font-family: var(--mono); font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -0.06em; }
.balance-hero .v .c { color: var(--faint); }
@media (max-width: 640px) { .balance-hero { grid-template-columns: 1fr; padding: 20px; } }

.chart { position: relative; height: 200px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: color-mix(in srgb, var(--text) 82%, transparent); transition: fill .15s; }
.chart .bar.zero { fill: var(--line-2); }
.chart .bar:hover, .chart .bar.is-hot { fill: var(--text); }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .ax { fill: var(--faint); font-size: 11px; font-family: var(--mono); }
.tip { position: absolute; pointer-events: none; background: var(--inv); color: var(--inv-text); font-size: 12px; padding: 8px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow); font-family: var(--mono); line-height: 1.5; z-index: 5; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; background: var(--surface); transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
.quote-box { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.quote-box .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.quote-box .row b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.quote-box .total { border-top: 1px solid var(--line); padding-top: 10px; color: var(--text); font-weight: 500; }
.quote-box .total b { font-size: 18px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.badge.solid { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }

.minibar { width: 90px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--text); }
.minibar.hot i { background: var(--err); }

/* playground */
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: stretch; min-height: calc(100dvh - 60px - 64px); }
.pg-chat { display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.pg-msgs { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 22px; align-content: start; }
.msg { display: grid; gap: 6px; max-width: 760px; }
.msg .who { font-size: 12px; color: var(--faint); font-family: var(--mono); display: flex; gap: 10px; align-items: center; }
.msg .txt { white-space: normal; word-break: break-word; line-height: 1.65; }
.msg .txt p { margin: 0 0 10px; }
.msg .txt p:last-child { margin-bottom: 0; }
.msg .txt pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; margin: 8px 0; }
.msg .txt :not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; font-size: 13px; }
.msg.user { justify-self: end; }
.msg.user .txt { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.msg.user .who { justify-content: flex-end; }
.msg .stats-line { font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap; }
.msg.err .txt { color: var(--err); }
.pg-input { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; }
.pg-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 200px; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; background: var(--surface); line-height: 1.45; }
.pg-input textarea:focus { border-color: var(--text); }
.pg-side { display: grid; gap: 18px; align-content: start; }
.pg-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
@media (max-width: 1060px) { .pg { grid-template-columns: 1fr; } .pg-side { order: -1; } .pg-chat { min-height: 480px; } }

.inline-confirm { display: inline-flex; gap: 6px; align-items: center; animation: fade .2s; }
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.sep { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

.two.two-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .two.two-even { grid-template-columns: 1fr; } }
.modal-body { grid-template-columns: minmax(0, 1fr); }
.modal { width: min(560px, 100%); }
.code { min-width: 0; }
.seg { width: fit-content; max-width: 100%; }
.input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.hero-grid > *, .price-split > *, .faq-grid > *, .two > *, .pg > *, .docs > * { min-width: 0; }
.view { grid-template-columns: minmax(0, 1fr); }
.view > * { min-width: 0; }
.t td.mono, .t .nw { white-space: nowrap; }
@media (max-width: 640px) { .pg-input textarea::placeholder { font-size: 13px; } }
