/* Ciabatta console design system (derived from the BreadTTS dashboard; warm crust palette). ASCII-only file. */

:root {
  --bg: #14100b;
  --bg-2: #1b150e;
  --panel: rgba(255, 220, 170, 0.04);
  --panel-solid: #211a11;
  --panel-hover: rgba(255, 220, 170, 0.075);
  --border: rgba(255, 220, 170, 0.11);
  --border-strong: rgba(255, 225, 185, 0.22);
  --text: #f6eee2;
  --muted: #c9bba6;
  --faint: #8f8270;
  --accent: #e8a948;
  --accent-2: #f3c27a;
  --accent-3: #ffd98a;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #ffe0a0 0%, #e8a948 55%, #c97a2a 100%);
  --grad-wave: linear-gradient(100deg, #f3c27a 0%, #e8a948 50%, #c97a2a 100%);
  --grad-steel: linear-gradient(180deg, #ffffff 0%, #efe3d2 55%, #cbb89c 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(120% 80% at 50% -10%, #0b1a3a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, .price-big { font-family: var(--display); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(245, 181, 68, 0.45); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Background glow ---- */
.glow {
  position: fixed; inset: -20vh -10vw auto; height: 95vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 30vh at 12% 28%, rgba(56, 217, 255, 0.20), transparent 70%),
    radial-gradient(36vw 30vh at 88% 24%, rgba(245, 181, 68, 0.17), transparent 70%),
    radial-gradient(50vw 40vh at 50% 0%, rgba(31, 90, 190, 0.22), transparent 70%);
  filter: blur(10px);
}
.glow::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(5px 5px at 14% 22%, rgba(255, 210, 122, .8), transparent 70%),
    radial-gradient(4px 4px at 31% 62%, rgba(56, 217, 255, .7), transparent 70%),
    radial-gradient(7px 7px at 72% 18%, rgba(255, 210, 122, .6), transparent 70%),
    radial-gradient(4px 4px at 84% 55%, rgba(255, 210, 122, .8), transparent 70%),
    radial-gradient(12px 12px at 64% 72%, rgba(56, 217, 255, .25), transparent 70%),
    radial-gradient(14px 14px at 8% 70%, rgba(56, 217, 255, .22), transparent 70%),
    radial-gradient(10px 10px at 94% 80%, rgba(245, 181, 68, .3), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(0, 18px, 0); opacity: .7; } }
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---- Buttons & inputs ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--panel); color: var(--text); font: 600 14px/1 var(--sans);
  cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--panel-hover); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); border-color: transparent; color: #1b1203; box-shadow: 0 8px 30px -8px rgba(245,181,68,.55), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn-danger { color: var(--danger); border-color: rgba(248,113,113,.35); }
.btn-danger:hover { background: rgba(248,113,113,.1); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn .spinner { width: 14px; height: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--faint); }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.35); color: var(--text); font: 14px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
/* The open dropdown list can't render the translucent field background (it comes
   out grey on Windows), so give the select and its options a solid dark fill. */
select { background-color: #0a1222; }
select option, select optgroup { background-color: #0d1628; color: var(--text); }
select optgroup { color: var(--muted); font-weight: 600; }
/* Themed dropdown (assets/js/select.js) that replaces the native popup. */
.csel { position: relative; display: block; width: 100%; min-width: 0; }
.csel.csel-inline { display: inline-block; width: auto; }
.csel > select.csel-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.csel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: #0a1222; color: var(--text); font: 14px/1.4 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.csel-btn:hover { border-color: rgba(255,255,255,.28); background: #0d1730; }
.csel-btn:focus-visible, .csel-btn[aria-expanded=true] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.csel-btn:disabled { opacity: .55; cursor: not-allowed; }
.csel-btn.csel-invalid { border-color: var(--danger); }
.csel-btn svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.csel-btn[aria-expanded=true] svg { transform: rotate(180deg); color: var(--accent); }
.csel-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-label.csel-placeholder { color: var(--muted); }
.csel-list {
  position: fixed; inset: auto; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel-solid); color: var(--text); font: 14px/1.4 var(--sans);
  border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 22px 50px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.25);
  scrollbar-width: thin; scrollbar-color: rgba(170,205,255,.25) transparent;
}
.csel-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.csel-group:first-child { padding-top: 4px; }
.csel-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.csel-opt .csel-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.csel-opt .csel-check { flex: none; width: 14px; height: 14px; color: var(--accent); visibility: hidden; }
.csel-opt .csel-check svg { width: 14px; height: 14px; }
.csel-opt[aria-selected=true] { color: var(--accent-3); font-weight: 600; }
.csel-opt[aria-selected=true] .csel-check { visibility: visible; }
.csel-opt.active { background: rgba(120,170,255,.12); }
.csel-opt[aria-disabled=true] { opacity: .45; cursor: default; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---- Cards ---- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.grid-2.split { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.card-lg { padding: 32px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-2.split { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .grid-4 { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.4 var(--sans); background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--border); }
.badge.ok { color: var(--ok); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.badge.err { color: var(--danger); border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }
.badge.accent { color: #ffd98a; border-color: rgba(245,181,68,.35); background: rgba(245,181,68,.12); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

.stat .label { display: block; margin-bottom: 4px; }
.stat .value { font: 700 28px/1.1 var(--display); letter-spacing: -0.02em; }
.stat .sub { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-weight: 600; color: var(--muted); background: rgba(255,255,255,.02); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.wrap-cells td { white-space: normal; min-width: 130px; vertical-align: top; }
.empty { padding: 40px; text-align: center; color: var(--faint); }

/* ---- Code ---- */
pre.code { position: relative; margin: 0; padding: 18px; border-radius: var(--radius); background: #030814; border: 1px solid var(--border); overflow-x: auto; line-height: 1.6; font-size: 13px; }
.code .k { color: #38d9ff; } .code .s { color: #ffd27a; } .code .c { color: #637087; } .code .n { color: #f78c6c; } .code .f { color: #82aaff; }
.copy-btn { position: absolute; top: 10px; right: 10px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); width: max-content; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 999px; font: 600 13px var(--sans); cursor: pointer; }
.tabs button.active { background: rgba(255,255,255,.1); color: var(--text); }

/* ---- Top nav (marketing) ---- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(5,11,24,.72); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 20px/1 var(--display); letter-spacing: -0.02em; color: var(--text) !important; text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wordmark { background: var(--grad-steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .nav-new { color: var(--accent-3); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; padding: 7px; }
.nav-mobile-only, .cta-short { display: none; }
@media (max-width: 1140px) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 960px) {
  .nav .container { gap: 10px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 6px 20px 18px; background: rgba(5,11,24,.97); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-mobile-only { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero-mark { width: 112px; height: 112px; margin: 0 auto 20px; animation: float 6s ease-in-out infinite; }
.hero-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 18px rgba(56,217,255,.35)) drop-shadow(0 0 26px rgba(245,181,68,.3)); }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 22px auto 18px; max-width: 900px; font-weight: 800; }
.hero h1 .steel { background: var(--grad-steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.hero .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.motto { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px auto 0; color: var(--accent-3); font: 500 15px var(--sans); letter-spacing: .06em; }
.motto::before, .motto::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.motto::after { transform: scaleX(-1); }
.footer-tagline { color: var(--accent-3); font-size: 13.5px; letter-spacing: .04em; margin: 12px 0 4px; }
.wave-wrap { position: relative; margin: 56px auto 0; max-width: 980px; height: 150px; }
#hero-wave { width: 100%; height: 100%; }

.section { padding: 88px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.section .kicker { font: 700 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: border-color .25s, transform .25s; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,181,68,.14); color: #ffd98a; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.price-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .price-hero { grid-template-columns: 1fr; } }
.price-big { font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.compare-bar { display: grid; grid-template-columns: 160px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; margin: 10px 0; }
.compare-bar .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.compare-bar .bar span { display: block; height: 100%; border-radius: 999px; background: rgba(255,255,255,.28); }
.compare-bar.us .bar span { background: var(--grad); box-shadow: 0 0 16px rgba(245,181,68,.55); }
.compare-bar.us { font-weight: 700; }

.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.voice-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: border-color .2s, background .2s; }
.voice-chip:hover { border-color: var(--border-strong); background: var(--panel-hover); }
.voice-chip.playing { border-color: var(--accent); background: rgba(245,181,68,.12); }
.voice-chip .play { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.voice-chip.playing .play { background: var(--grad); color: #0b0c12; }
.voice-chip .meta { min-width: 0; }
.voice-chip .name { font-weight: 700; font-size: 14px; }
.voice-chip .desc { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-chip .meta { flex: 1; }
.voice-chip .badge { flex: none; padding: 1px 7px; font-size: 10.5px; }

/* ---- Premium (landing) ---- */
.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 12px; padding: 5px 14px 5px 6px;
  border-radius: 999px; border: 1px solid rgba(245,181,68,.35); background: rgba(245,181,68,.08); color: var(--accent-3);
  font-size: 13.5px; font-weight: 500; text-decoration: none !important; transition: background .2s, border-color .2s;
}
.announce:hover { background: rgba(245,181,68,.14); border-color: rgba(245,181,68,.55); }
.announce .badge { flex: none; }
.announce .arrow { flex: none; transition: transform .2s; }
.announce:hover .arrow { transform: translateX(3px); }
.hero-pills { display: flex; flex-direction: column; align-items: center; }
.premium-band {
  border-radius: 24px; padding: 48px; border: 1px solid rgba(245,181,68,.28);
  background: radial-gradient(70% 90% at 100% 0%, rgba(245,181,68,.16), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(56,217,255,.10), transparent 60%), var(--panel-solid);
}
.premium-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .premium-grid { grid-template-columns: 1fr; } .premium-band { padding: 32px 24px; } }
.ab-card { display: grid; gap: 14px; }
.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab-btn {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.ab-btn:hover { background: var(--panel-hover); }
.ab-btn .play { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.ab-btn.premium { border-color: rgba(245,181,68,.45); }
.ab-btn.premium .play { background: var(--grad); color: #1b1203; }
.ab-btn.playing { border-color: var(--accent); background: rgba(245,181,68,.12); }
.ab-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ab-btn .t { display: block; font-weight: 700; font-size: 14px; }
.ab-btn .s { display: block; font-size: 12px; color: var(--faint); }
.ab-script { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--border); font-size: 14px; color: #c8ccd8; min-height: 48px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(245,181,68,.16); color: var(--accent-3); font: 600 12.5px var(--mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mini-feature { display: flex; gap: 14px; align-items: flex-start; }
.mini-feature .icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,181,68,.14); color: #ffd98a; }
.mini-feature h3 { margin: 0 0 4px; font-size: 15.5px; }
.mini-feature p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .ab-row { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta-band { border-radius: 24px; padding: 56px; text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(245,181,68,.3), transparent 70%), var(--panel-solid); border: 1px solid var(--border-strong); }

.footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 13.5px; margin-top: 40px; }
.footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Legal / docs prose ---- */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 0; }
.prose h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 4px; }
.prose h2 { margin-top: 40px; font-size: 22px; }
.prose h3 { margin-top: 28px; font-size: 17px; }
.prose p, .prose li { color: #c8ccd8; }
.prose code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; }
.prose pre.code code { background: none; padding: 0; }
.prose table { margin: 16px 0; }
/* Long-form tables (legal, docs) wrap instead of running off the page. */
.prose { overflow-wrap: break-word; }
.prose th, .prose td { white-space: normal; vertical-align: top; }
@media (max-width: 640px) { .prose th, .prose td { padding: 9px 8px; } }
.callout { border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); border-radius: var(--radius-sm); padding: 14px 16px; color: #f5deb0; font-size: 14px; }
.callout.info { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.07); color: #bdeef7; }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 48px 0; }
.docs-nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs-nav a { color: var(--muted); padding: 5px 10px; border-radius: 8px; }
.docs-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.docs-nav .group { margin-top: 14px; font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 0 10px; }
.docs-layout .prose { padding: 0; margin: 0; max-width: 860px; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; } }
/* Small screens: the docs index becomes a sticky, horizontally scrolling chip bar under the top nav. */
@media (max-width: 900px) {
  .docs-layout { padding: 16px 0 40px; gap: 18px; }
  .docs-nav {
    position: sticky; top: 64px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap;
    margin: 0 -20px; padding: 10px 20px; background: rgba(5,11,24,.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); scrollbar-width: none;
  }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav .group { display: none; }
  .docs-nav a { flex: none; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .docs-layout .prose [id] { scroll-margin-top: 56px; }
}
.endpoint { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 14px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.3); }
.method { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.method.post { background: rgba(52,211,153,.15); color: var(--ok); }
.method.get { background: rgba(34,211,238,.15); color: var(--accent-2); }
.method.patch { background: rgba(251,191,36,.15); color: var(--warn); }
.method.delete { background: rgba(248,113,113,.15); color: var(--danger); }

/* ---- App shell ---- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); background: rgba(6,13,30,.88); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.sidebar .logo { padding: 6px 10px 18px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.side-link svg { width: 18px; height: 18px; opacity: .85; }
.side-link:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side-link.active { background: rgba(245,181,68,.14); color: #fff; }
.side-link.active svg { color: #ffd98a; opacity: 1; }
.side-spacer { flex: 1; }
.side-balance { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); }
.side-balance .value { font-weight: 800; font-size: 20px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0b0c12; font-weight: 800; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.main { padding: 28px 36px 64px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.mobile-bar { display: none; }
.app-banners { padding: 0 36px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; height: 100dvh; overflow-y: auto; z-index: 40; transform: translateX(-100%); transition: transform .25s, box-shadow .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(5,11,24,.92); backdrop-filter: blur(12px); z-index: 30; }
  .main { padding: 20px 18px 48px; }
  .app-banners { padding: 0 18px; }
}

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.banner.warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); color: #f5deb0; }
.banner.err { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); color: #fecaca; }
.banner.ok { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); color: #bbf7d0; }

/* ---- Toasts & modals ---- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; animation: rise .25s ease; }
.toast.err { border-color: rgba(248,113,113,.5); }
.toast.ok { border-color: rgba(52,211,153,.5); }
.toast .rid { display: block; margin-top: 4px; font: 11.5px var(--mono); color: var(--faint); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

dialog.modal { border: 1px solid var(--border-strong); border-radius: 18px; background: var(--panel-solid); color: var(--text); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-body { padding: 24px; }
.modal-body h2 { margin: 0 0 6px; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }

.secret-box { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 10px; background: #030814; border: 1px dashed var(--accent); font: 13px var(--mono); word-break: break-all; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent-2); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Chart ---- */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); opacity: .85; min-height: 2px; position: relative; transition: opacity .2s; }
.chart .bar:hover { opacity: 1; }
.chart .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #000; border: 1px solid var(--border-strong); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 5; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* ---- Playground ---- */
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
@media (max-width: 1100px) { .pg { grid-template-columns: 1fr; } }
/* Columns stretch to the taller sibling; keep rows packed at the top instead of spreading the extra height over them. */
.pg > .stack { align-content: start; }
.pg > .stack > div:empty { display: none; }
.pg textarea { min-height: 240px; font-size: 15px; }
#prons input { min-width: 0; }
.pg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.player { display: grid; gap: 12px; }
.player audio { width: 100%; }
#pg-wave { width: 100%; height: 72px; }
.transcript { min-height: 240px; max-height: 420px; overflow-y: auto; padding: 4px 2px; font-size: 16px; line-height: 1.65; }
.transcript .seg { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 4px 0; }
.transcript .seg .ts { font: 12px var(--mono); color: var(--faint); padding-top: 4px; }
.transcript .seg.partial .txt { color: var(--muted); font-style: italic; }
.transcript .w { border-radius: 4px; }
.transcript .w.low { text-decoration: underline dotted var(--warn); text-underline-offset: 4px; }
.transcript .turn-end { height: 1px; margin: 6px 0 6px 64px; background: var(--border); }
.transcript.words-view .w { display: inline-flex; flex-direction: column; align-items: center; padding: 0 3px; margin: 1px 0; background: rgba(255,255,255,.04); line-height: 1.3; }
.transcript.words-view .w::after { content: attr(data-t); font: 10px var(--mono); color: var(--faint); }
.transcript .w.vocab { color: var(--accent); }
.pg textarea.small { min-height: 72px; font-size: 13.5px; }
#stt-level { width: 120px; height: 20px; }
.event-log { max-height: 280px; overflow-y: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.event-log .ev-final { color: #bbf7d0; }
.event-log .ev-error { color: #fecaca; }
.event-log .ev-turn { color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone.drag { border-color: var(--accent); background: rgba(245,181,68,.08); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .3; } }

.consent-text { max-height: 320px; overflow-y: auto; padding: 16px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--border); white-space: pre-wrap; font-size: 13.5px; color: #c8ccd8; }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); background: var(--panel-solid); border-left: 1px solid var(--border-strong); z-index: 60; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.drawer .body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer pre { white-space: pre-wrap; word-break: break-word; }

/* ---- Small screens (phones) ---- */
@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 32px); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding: 36px 0 32px; }
  .hero-mark { width: 84px; height: 84px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 40px); margin: 16px auto 14px; }
  .hero p.lead { margin-bottom: 24px; }
  .hero .cta .btn { width: 100%; }
  .pill { font-size: 12px; line-height: 1.45; padding: 6px 12px; }
  .announce { font-size: 12.5px; text-align: left; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .wave-wrap { height: 90px; margin-top: 28px; }
  .motto { font-size: 13px; gap: 10px; }
  .motto::before, .motto::after { width: 32px; }
  .card { padding: 18px; }
  .card-lg { padding: 22px; }
  .feature { padding: 20px; }
  .price-big { font-size: 52px; }
  .compare-bar { grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 52px; gap: 8px; font-size: 13px; }
  .voice-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .voice-chip { padding: 10px; gap: 10px; }
  .voice-chip .play { width: 30px; height: 30px; }
  .cta-band { padding: 36px 20px; border-radius: 18px; }
  .premium-band { padding: 26px 18px; border-radius: 18px; }
  .faq summary { font-size: 15px; gap: 12px; }
  .footer { padding: 32px 0 40px; }
  .footer .cols { flex-direction: column; }
  .footer nav { gap: 10px 16px; }
  .prose { padding: 32px 0; }
  .prose h1 { font-size: 30px; }
  .prose h2 { margin-top: 32px; }
  pre.code { padding: 14px; font-size: 12px; border-radius: 10px; }
  .copy-btn { top: 6px; right: 6px; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; padding: 6px 12px; }
  th, td { padding: 9px 10px; }
  .endpoint { flex-wrap: wrap; font-size: 12.5px; word-break: break-all; }
  .docs-nav { margin: 0 -16px; padding: 10px 16px; }
  /* 16px inputs stop iOS Safari from zooming the page on focus. */
  input[type=text], input[type=email], input[type=number], input[type=url], input[type=search], select, textarea, .csel-btn { font-size: 16px; }
  .modal-body { padding: 20px; }
  .modal-actions { padding: 14px 20px; flex-wrap: wrap; }
  .modal-actions .btn { flex: 1; }
  #toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .main { padding: 16px 14px 40px; }
  .app-banners { padding: 0 14px; }
  .mobile-bar { padding: 10px 14px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 24px; }
  .stat .value { font-size: 24px; }
  .pg textarea { min-height: 180px; }
  .transcript { font-size: 15px; }
  .transcript .seg { grid-template-columns: 42px 1fr; gap: 8px; }
  .transcript .turn-end { margin-left: 50px; }
  .drawer header, .drawer .body { padding: 16px; }
}

/* ==== Mobile variant: app shell (bottom tab bar), card tables, bottom-sheet dialogs ==== */
.tabbar, .mb-balance, .mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-bar .logo { font-size: 18px; }
  .mobile-bar .logo-mark { width: 28px; height: 28px; }
  .mb-balance {
    display: inline-flex; align-items: center; min-width: 44px; justify-content: center; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(245,181,68,.35); background: rgba(245,181,68,.1); color: var(--accent-3) !important;
    font: 700 13px var(--sans); font-variant-numeric: tabular-nums; text-decoration: none !important;
  }
  .mb-balance:empty::before { content: "$"; opacity: .5; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(6,13,30,.95); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 2px; border: 0; border-radius: 12px;
    background: none; color: var(--faint); font: 600 11px/1.2 var(--sans); cursor: pointer; text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  .tab svg { width: 22px; height: 22px; flex: none; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.active { color: var(--accent-3); background: rgba(245,181,68,.08); }
  .tab.active svg { color: var(--accent); }
  .app .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sidebar { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .side-link { padding: 12px; font-size: 15px; }
  /* Phone-sized page headers: title, then actions as full-width buttons. */
  .page-head { align-items: stretch; }
  .page-head > .btn, .page-head > .row { width: 100%; }
  .page-head > .btn { padding: 12px 18px; }
  .page-head > .row > .btn, .page-head > .row > a.btn { flex: 1 1 0; }
  /* Logs filters: a 2-column grid of full-width selects and buttons. */
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filters .csel, .filters .csel.csel-inline, .filters select { width: 100% !important; display: block; }
  /* Playground: one column, ordered for thumbs (text, output, settings, extras). */
  .pg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pg > .stack { display: contents; }
  #tts-pane > .stack:first-child > :nth-child(1) { order: 1; }
  #tts-pane > .stack:first-child > :nth-child(2) { order: 2; }
  #tts-pane > .stack:first-child > :nth-child(3) { order: 3; }
  #tts-pane > .stack:last-child > :nth-child(1) { order: 4; }
  #tts-pane > .stack:last-child > :nth-child(2) { order: 5; }
  #tts-pane > .stack:first-child > :nth-child(4) { order: 6; }
  #stt-pane > .stack:first-child > :nth-child(1) { order: 1; }
  #stt-pane > .stack:first-child > :nth-child(2) { order: 2; }
  #stt-pane > .stack:last-child > :nth-child(1) { order: 3; }
  #stt-pane > .stack:first-child > :nth-child(3) { order: 4; }
  #stt-pane > .stack:last-child > :nth-child(2) { order: 5; }
  #stt-pane > .stack:first-child > :nth-child(4) { order: 6; }
  #stt-pane > .stack:last-child > :nth-child(3) { order: 7; }
  #stt-pane > .stack:last-child > :nth-child(4) { order: 8; }
  #stt-pane > .stack:first-child > :nth-child(5) { order: 9; }
  #stt-pane > .stack:first-child > div:empty { display: none; }
  .pg-foot { flex-direction: column; align-items: stretch; }
  .pg-foot > .row > .btn-primary { flex: 1 1 100%; padding: 13px 18px; font-size: 15px; }
  .pg-foot > .row > .btn { flex: 1 1 auto; }
  .hide-sm { display: none !important; }
}

@media (max-width: 700px) {
  /* Tables become a stack of cards (labels come from stackTables() in app-shell.js). */
  .stack-wrap { border: 0; border-radius: 0; overflow: visible; }
  table.stackable, table.stackable tbody { display: block; }
  table.stackable thead { display: none; }
  table.stackable tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 10px; padding: 14px;
    border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025);
  }
  table.stackable tbody tr:hover { background: rgba(255,255,255,.025); }
  table.stackable td {
    display: block; min-width: 0; padding: 0; border: 0; white-space: normal; text-align: left !important;
    overflow-wrap: anywhere; font-size: 14px;
  }
  table.stackable td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 3px; color: var(--faint);
    font: 600 10.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  }
  table.stackable td:first-child { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
  table.stackable td:first-child::before { display: none; }
  table.stackable td.cell-wide { grid-column: 1 / -1; }
  table.stackable td.cell-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
  table.stackable td.cell-actions:empty, table.stackable td.cell-actions:has(> .faint:only-child) { display: none; }
  table.stackable td.cell-actions .btn { flex: 1 1 auto; }
  .card > .stack-wrap:only-child table.stackable tr:last-child, .card .stack-wrap table.stackable tr:last-child { margin-bottom: 0; }
}

@media (max-width: 640px) {
  /* Dialogs slide up from the bottom like a native sheet. */
  dialog.modal {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0;
    animation: sheet-up .22s ease-out;
  }
  dialog.modal form { display: flex; flex-direction: column; max-height: 92dvh; }
  dialog.modal .modal-body { overflow-y: auto; }
  dialog.modal .modal-body::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 4px; background: var(--border-strong); }
  dialog.modal .modal-actions { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .drawer { width: 100vw; }
  /* Sticky signup bar on marketing pages (site.js). */
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px;
    background: rgba(11,22,48,.95); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    transform: translateY(160%); transition: transform .25s ease; pointer-events: none;
  }
  .mobile-cta.show { transform: none; pointer-events: auto; }
  .mobile-cta strong { display: block; font-size: 14px; }
  .mobile-cta small { display: block; font-size: 12px; color: var(--faint); }
  .mobile-cta .btn { flex: none; white-space: nowrap; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

