/* tts.vartaloop.ai — developer portal
   System (2026-10-17): a deep-green shell (sidebar) around a paper panel. One UI family (Manrope) at six sizes, Bricolage only for
   display numbers and page titles, JetBrains Mono only for keys/ids/code. Hierarchy from spacing and weight; one accent (emerald);
   gold only where money is. Motion explains state: page enter, nav indicator, counting stats, live waveform, breathing dots.
   Respects prefers-reduced-motion. */
:root {
  --green-900: #090b10; --green-800: #0e1117; --green-700: #151a22; --green-600: #1c2430;
  --emerald: #0b7fa8; --emerald-600: #1668cc; --emerald-400: #2fe6e0; --mint: #5ce8e2;
  --gold: #f2890f; --gold-700: #a85a1c; --gold-100: #FFF3D6; --red: #B3261E; --red-100: #FDECEA; --amber: #8A5A00; --amber-100: #FFF3D6;
  --paper: #f7f7f4; --paper-2: #efefea; --surface: #FFFFFF; --ink: #0b0d12; --ink-2: #3b414c; --ink-3: #6e7480; --ink-4: #9aa0aa;
  --rule: #e7e7e3; --rule-2: #d9d9d4; --focus: rgba(11,127,168,.22);
  --display: "Bricolage Grotesque", "Manrope", sans-serif; --ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --deva: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --fs-1: 12px; --fs-2: 13px; --fs-3: 14px; --fs-4: 16px; --fs-5: 20px; --fs-6: 26px; --fs-7: 34px; --fs-8: 56px;
  --r-1: 8px; --r-2: 10px; --r-3: 14px; --r-4: 18px;
  --side-w: 240px; --top-h: 56px; --content-max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1); --t-fast: 140ms; --t-base: 220ms; --t-slow: 420ms;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--green-800); color: var(--ink); font: 400 var(--fs-3)/1.5 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; } button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }
.hi { font-family: var(--deva); } .mono { font-family: var(--mono); font-size: .92em; }
.ground { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--green-700), var(--green-800) 55%, var(--green-900)); }
.ground::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 10% 0%, rgba(47,230,224,.16), transparent 60%), radial-gradient(50% 40% at 95% 100%, rgba(242,137,15,.10), transparent 60%); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 16px; background: linear-gradient(180deg, var(--green-800), var(--green-900)); color: rgba(255,255,255,.72); border-right: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: #fff; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: auto; height: 30px; } .brand small { margin-left: auto; font: 600 10px/1 var(--mono); letter-spacing: .14em; color: rgba(255,255,255,.4); }
.nav { position: relative; display: grid; gap: 2px; }
.nav-group { display: grid; gap: 2px; margin-bottom: 10px; } .nav-group h6 { margin: 8px 10px 4px; font: 600 11px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.32); }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-1); color: rgba(255,255,255,.72); font-weight: 500; font-size: 13.5px; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; } .nav a:active { transform: translateX(1px); }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; } .nav a.active::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); box-shadow: 0 0 12px rgba(92,232,226,.6); animation: rise var(--t-base) var(--ease) both; }
.nav a .pill { margin-left: auto; font: 600 10.5px/1 var(--ui); padding: 4px 7px; border-radius: 999px; background: rgba(92,232,226,.14); color: var(--mint); }
.nav a .pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); vertical-align: 1px; animation: breathe 2.4s ease-in-out infinite; }
.side .spacer { flex: 1; }
.account { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600)); color: #fff; font: 700 12px/1 var(--ui); flex: none; }
.account .who { min-width: 0; } .account .who b { display: block; color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .account .who small { color: rgba(255,255,255,.45); font-size: 11.5px; }
.account .btn-icon { margin-left: auto; color: rgba(255,255,255,.6); } .account .btn-icon:hover { color: #fff; background: rgba(255,255,255,.08); }

.main { min-width: 0; background: var(--paper); display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 32px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.topbar h1 { margin: 0; font: 600 var(--fs-3)/1 var(--ui); color: var(--ink-2); } .topbar .grow { flex: 1; }
.switcher { display: flex; align-items: center; gap: 6px; }
.switcher select { height: 32px; max-width: 240px; padding: 0 28px 0 10px; border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7F77' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; font-size: 13px; font-weight: 600; color: var(--ink); appearance: none; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.switcher select:hover { border-color: var(--rule-2); } .switcher .sep { color: var(--ink-4); }
.content { flex: 1; width: 100%; max-width: var(--content-max); padding: 32px; }
.content.enter > * { animation: rise var(--t-slow) var(--ease) both; } .content.enter > *:nth-child(2) { animation-delay: 40ms; } .content.enter > *:nth-child(3) { animation-delay: 80ms; } .content.enter > *:nth-child(4) { animation-delay: 120ms; }
.content.enter .grid > * { animation: rise var(--t-slow) var(--ease) both; } .content.enter .grid > *:nth-child(2) { animation-delay: 60ms; } .content.enter .grid > *:nth-child(3) { animation-delay: 120ms; } .content.enter .grid > *:nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font: 700 var(--fs-6)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.page-head p { margin: 6px 0 0; color: var(--ink-3); max-width: 64ch; font-size: var(--fs-3); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- primitives ---------- */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 24px; transition: border-color var(--t-fast), box-shadow var(--t-base); }
.card.tight { padding: 18px 20px; }
.card h3 { margin: 0 0 4px; font: 700 var(--fs-4)/1.3 var(--ui); color: var(--ink); } .card h4 { margin: 0 0 6px; font: 600 var(--fs-3)/1.3 var(--ui); color: var(--ink); }
.card p { margin: 6px 0 0; color: var(--ink-3); font-size: var(--fs-3); } .card .lead { color: var(--ink-2); }
.grid { display: grid; gap: 20px; } .grid > *, .stack > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.c3 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stack { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.muted { color: var(--ink-3); } .small { font-size: var(--fs-2); } .tiny { font-size: var(--fs-1); } .gold { color: var(--gold-700); } .mint { color: var(--emerald); } .red { color: var(--red); } .hint { color: var(--ink-3); font-size: var(--fs-2); }
.l { font: 600 var(--fs-2)/1.2 var(--ui); color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--fs-2); cursor: pointer; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast), color var(--t-fast); }
.btn:hover { background: var(--paper-2); border-color: #cfcfca; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid, .btn-green { color: #fff; border-color: transparent; background: linear-gradient(180deg, #13A05A, var(--emerald-600)); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(22,104,204,.6); }
.btn-solid:hover, .btn-green:hover { background: linear-gradient(180deg, #17AE62, #0E8A4B); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(22,104,204,.7); transform: translateY(-1px); border-color: transparent; }
.btn-ghost { background: transparent; } .btn-ghost:hover { background: var(--paper-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: var(--fs-1); border-radius: var(--r-1); } .btn-sm svg { width: 13px; height: 13px; }
.btn-danger { color: var(--red); border-color: rgba(179,38,30,.25); background: var(--surface); } .btn-danger:hover { background: var(--red-100); border-color: rgba(179,38,30,.35); }
.btn-icon { height: 30px; width: 30px; padding: 0; border-radius: var(--r-1); border-color: transparent; background: transparent; } .btn-icon:hover { background: var(--paper-2); border-color: transparent; }
label.field { display: grid; gap: 6px; font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; height: 38px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-2); padding: 0 12px; color: var(--ink); font-weight: 500; font-size: var(--fs-3); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input::placeholder { color: var(--ink-4); } .input:hover { border-color: #cfcfca; } .input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--focus); }
textarea.input { height: auto; min-height: 130px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
select.input { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7F77' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--fs-2); color: var(--ink-2); cursor: pointer; } .check input { accent-color: var(--emerald); width: 15px; height: 15px; }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 3px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-weight: 600; font-size: var(--fs-2); color: var(--ink-3); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11,13,18,.12), 0 0 0 1px var(--rule); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11.5px/1 var(--ui); background: var(--paper-2); color: var(--ink-2); border: 1px solid transparent; white-space: nowrap; }
.chip.ok { color: var(--emerald-600); background: #e3f6fa; } .chip.warn { color: var(--amber); background: var(--amber-100); } .chip.bad { color: var(--red); background: var(--red-100); } .chip.gold { color: var(--gold-700); background: var(--gold-100); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: breathe 2.4s ease-in-out infinite; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.tbl th { text-align: left; font: 600 var(--fs-1)/1 var(--ui); color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--rule); background: #fbfbf9; white-space: nowrap; }
.tbl td { padding: 0 16px; height: 46px; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink-2); white-space: nowrap; } .tbl td[style*="max-width"] { white-space: normal; } .tbl td b { color: var(--ink); font-weight: 600; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast); } .tbl tbody tr:hover td { background: #fafaf8; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .tbl .actions { text-align: right; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: var(--fs-2); } .empty b { display: block; color: var(--ink); font-size: var(--fs-3); margin-bottom: 4px; }
pre.code { margin: 0; max-width: 100%; padding: 16px 18px; background: #0C1020; border: 1px solid #0C1020; border-radius: var(--r-2); overflow: auto; font: 12.5px/1.65 var(--mono); color: #E6E8F0; white-space: pre; tab-size: 2; }
pre.code .k { color: var(--mint); } pre.code .s { color: #ffc24a; } pre.code .c { color: rgba(255,255,255,.45); }
.codebox { min-width: 0; max-width: 100%; border-radius: 12px; overflow: hidden; background: #0C1020; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -30px rgba(4,8,24,.8); }
.codehead { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 16px; background: #0A0E1C; border-bottom: 1px solid rgba(255,255,255,.07); }
.codehead .lights { display: inline-flex; gap: 7px; } .codehead .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; } .codehead .lights i:nth-child(1) { background: #FF5F57; } .codehead .lights i:nth-child(2) { background: #FEBC2E; } .codehead .lights i:nth-child(3) { background: #28C840; }
.codehead .fname { font: 500 12.5px/1 var(--mono); color: rgba(255,255,255,.55); } .codehead .copy { margin-left: auto; height: 28px; padding: 0 12px; border-radius: 7px; background: rgba(255,255,255,.08); border-color: transparent; color: rgba(255,255,255,.9); font-weight: 600; } .codehead .copy:hover { background: rgba(255,255,255,.16); }
.codebox pre.code { border: 0; border-radius: 0; padding: 20px 22px 22px; background: #0C1020; color: #E6E8F0; font-size: 13px; line-height: 1.7; }
.codebox pre.code .k { color: #a8f0ec; } .codebox pre.code .s { color: #ffc24a; }
.content[data-theme="light"] pre.code, .content[data-theme="light"] .events { background: #0C1020; border-color: #0C1020; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; } .tabs button { position: relative; border: 0; background: transparent; height: 36px; padding: 0 12px; font-weight: 600; font-size: var(--fs-2); color: var(--ink-3); cursor: pointer; transition: color var(--t-fast); }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--emerald); transform: scaleX(0); transition: transform var(--t-base) var(--ease); } .tabs button.on { color: var(--ink); } .tabs button.on::after { transform: scaleX(1); }
.stat { padding: 20px 22px; } .stat .l { font: 600 var(--fs-2)/1.2 var(--ui); color: var(--ink-3); }
.stat .v { font: 700 var(--fs-7)/1.05 var(--display); letter-spacing: -.02em; margin: 8px 0 4px; color: var(--ink); font-variant-numeric: tabular-nums; } .stat .v small { font: 600 var(--fs-2) var(--ui); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.stat .d { color: var(--ink-3); font-size: var(--fs-1); }
.kv { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; font-size: var(--fs-2); } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(9,11,16,.5); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade var(--t-base) both; }
.modal { width: min(540px, 100%); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-4); padding: 24px; box-shadow: 0 30px 80px -20px rgba(9,11,16,.5); animation: pop var(--t-slow) var(--ease) both; }
.modal h3 { margin: 0 0 4px; font: 700 var(--fs-5)/1.2 var(--display); letter-spacing: -.01em; } .modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; border-radius: var(--r-2); padding: 10px 14px; font-size: var(--fs-2); font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); max-width: 380px; animation: rise var(--t-slow) var(--ease) both; border-left: 3px solid var(--emerald-400); } .toast.err { border-left-color: #FF7A6B; }
.keyreveal { font: 600 var(--fs-3)/1.5 var(--mono); word-break: break-all; background: #0C1020; border: 1px dashed rgba(242,137,15,.6); border-radius: var(--r-2); padding: 14px 16px; color: #ffc24a; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--emerald-400), var(--emerald-600)); border-radius: 4px 4px 2px 2px; position: relative; opacity: .9; transform-origin: bottom; animation: grow var(--t-slow) var(--ease) both; transition: opacity var(--t-fast); }
.bars .b:hover { opacity: 1; } .bars .b[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; border-radius: 6px; padding: 5px 8px; font: 500 11.5px var(--ui); z-index: 5; }
@keyframes grow { from { transform: scaleY(0); } }
.axis { display: flex; justify-content: space-between; font: 500 var(--fs-1) var(--ui); color: var(--ink-4); margin-top: 6px; }
.meter { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--emerald-400)); transition: width var(--t-slow) var(--ease); }
.ttfa { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-top: 12px; } .ttfa .cell { padding: 14px 16px; border-radius: var(--r-2); border: 1px solid var(--rule); background: var(--paper); min-width: 0; }
.ttfa .cell.primary { background: #e3f6fa; border-color: #bcecf2; } .ttfa .cell .l { color: var(--ink-3); } .ttfa .cell.primary .l { color: var(--emerald-600); }
.ttfa .num { font: 700 var(--fs-8)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); margin: 8px 0 6px; } .ttfa .cell:not(.primary) .num { font-size: var(--fs-7); color: var(--ink-2); }
.ttfa .num small { font: 600 var(--fs-2) var(--ui); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; } .ttfa .d { color: var(--ink-3); font-size: var(--fs-1); line-height: 1.4; }
@media (max-width: 780px) { .ttfa { grid-template-columns: 1fr; } .ttfa .num { font-size: var(--fs-7); } }
.events { max-height: 220px; overflow: auto; font: 12px/1.7 var(--mono); color: rgba(255,255,255,.78); background: #0C1020; border: 1px solid #0C1020; border-radius: var(--r-2); padding: 10px 12px; }
.events div { animation: rise var(--t-base) var(--ease) both; } .events div span:first-child { color: rgba(255,255,255,.38); display: inline-block; width: 64px; }
.events:empty { min-height: 44px; } .events:empty::before { content: "events appear here when you press Speak"; color: rgba(255,255,255,.35); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; } .wave i { display: block; width: 3px; height: 6px; border-radius: 2px; background: var(--emerald-400); opacity: .35; transition: opacity var(--t-base); }
.wave.on i { opacity: 1; animation: wave 1.1s ease-in-out infinite; } .wave.on i:nth-child(2n) { animation-delay: .15s; } .wave.on i:nth-child(3n) { animation-delay: .3s; } .wave.on i:nth-child(5n) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.voice-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.voice-card .face { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font: 800 24px var(--display); color: #fff; background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600)); position: relative; }
.voice-card .face::after { content: ""; position: absolute; inset: -4px; border-radius: 22px; padding: 2px; background: conic-gradient(from 0deg, var(--emerald-400), transparent 40%, var(--gold) 70%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; opacity: .7; }
.voice-card .face.gold { background: linear-gradient(135deg, #ffc24a, #ff8a1f); color: #2b1400; }
@keyframes spin { to { transform: rotate(360deg); } }
audio { width: 100%; margin-top: 12px; border-radius: 999px; }
.steps { counter-reset: s; display: grid; gap: 14px; } .step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; } .step > * { min-width: 0; }
.step::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e3f6fa; color: var(--emerald-600); font: 700 13px var(--ui); }
.step h4 { margin: 5px 0 3px; font-size: var(--fs-3); }
.notice { border: 1px solid #ffe0b0; background: var(--amber-100); color: var(--amber); border-radius: var(--r-2); padding: 10px 14px; font-size: var(--fs-2); } .notice.ok { border-color: #bcecf2; background: #e3f6fa; color: var(--emerald-600); }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; } .invite select.input { width: auto; }
.loading { display: grid; gap: 20px; } .loading i { display: block; height: 96px; border-radius: var(--r-3); background: linear-gradient(90deg, #efefea 25%, #e7e7e3 50%, #efefea 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; } .loading i.t { height: 44px; width: 40%; }

/* ---------- login (full green, the brand moment) ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; color: #fff; }
.login .aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.login .aurora i { position: absolute; border-radius: 50%; animation: drift 14s ease-in-out infinite alternate; }
.login .aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 5%; top: 10%; background: rgba(47,230,224,.55); } .login .aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 5%; top: 30%; background: rgba(242,137,15,.35); animation-delay: -5s; } .login .aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 35%; bottom: 0; background: rgba(92,232,226,.3); animation-delay: -9s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, -4vh) scale(1.12); } }
.login .card { position: relative; z-index: 1; width: min(420px, 100%); padding: 32px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(20px); color: #fff; animation: pop var(--t-slow) var(--ease) both; }
.login .card h2 { margin: 18px 0 4px; font: 700 var(--fs-6)/1.1 var(--display); letter-spacing: -.02em; color: #fff; } .login .card p, .login .card .muted { color: rgba(255,255,255,.7); } .login .card h4 { color: rgba(255,255,255,.6); }
.login label.field { color: rgba(255,255,255,.75); } .login .input { background: rgba(9,11,16,.45); border-color: rgba(255,255,255,.2); color: #fff; } .login .input::placeholder { color: rgba(255,255,255,.4); } .login .input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(92,232,226,.2); }
.login .btn-solid { color: #2b1400; background: linear-gradient(135deg, #ffc24a, #ffb23e 60%, #ff8a1f); box-shadow: 0 10px 26px rgba(255,178,62,.28); } .login .btn-solid:hover { box-shadow: 0 14px 34px rgba(255,178,62,.4); background: linear-gradient(135deg, #ffc24a, #ffb23e 60%, #ff8a1f); }
.login .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: transparent; } .login .btn-ghost:hover { background: rgba(255,255,255,.08); }
.login .notice { background: rgba(255,198,107,.1); border-color: rgba(255,198,107,.35); color: #FFC66B; } .login .notice.ok { background: rgba(92,232,226,.1); border-color: rgba(92,232,226,.35); color: var(--mint); }
.login .brandmark { width: auto; height: 132px; animation: floaty 5s ease-in-out infinite; } @keyframes floaty { 50% { transform: translateY(-4px); } }

.menu-btn { display: none; color: var(--ink-2); } .menu-btn svg { stroke: currentColor; fill: none; stroke-width: 2; width: 20px; height: 20px; }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .grid.c2 { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; z-index: 40; left: 0; top: 0; width: var(--side-w); transform: translateX(-100%); transition: transform var(--t-base) var(--ease); } .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(9,11,16,.55); }
  .menu-btn { display: inline-flex; } .content { padding: 20px 16px; } .grid.c3 { grid-template-columns: 1fr; } .grid.c4 { grid-template-columns: 1fr 1fr; gap: 12px; } .topbar { padding: 0 12px; gap: 8px; } .topbar h1, .topbar .chip { display: none; }
  .switcher select { max-width: 150px; } .page-head .actions { margin-left: 0; width: 100%; } .page-head .actions .btn { flex: 1; } .page-head h2 { font-size: var(--fs-5); }
  .stat { padding: 16px; } .stat .v { font-size: var(--fs-5); } .invite { grid-template-columns: 1fr; } .invite select.input { width: 100%; }
  .card { padding: 18px; border-radius: 12px; }
}

/* ---------- timeline, waveform, chunk highlighting ---------- */
.timeline { margin-top: 16px; } .tl { width: 100%; height: 64px; display: block; overflow: visible; }
.tl-track { fill: var(--paper-2); } .tl-wait { fill: #ffe0b0; } .tl-stream { fill: var(--emerald-400); animation: grow-x var(--t-slow) var(--ease) both; transform-origin: left; }
.tl-tick { stroke: #fff; stroke-width: 1.5; } .tl-dot { fill: var(--ink); stroke: #fff; stroke-width: 2; } .tl-dot.hi { fill: var(--emerald); }
.tl-label { font: 600 10px var(--ui); fill: var(--ink-3); } .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; } .sw.wait { background: #ffe0b0; } .sw.stream { background: var(--emerald-400); }
@keyframes grow-x { from { transform: scaleX(0); } }
.waveform { margin-top: 14px; } .wf { width: 100%; height: 56px; display: block; background: var(--paper-2); border-radius: var(--r-1); } .wf-bars rect { fill: var(--emerald-600); opacity: .7; } .wf-played { fill: rgba(47,230,224,.18); } .wf-head { stroke: var(--ink); stroke-width: 1.5; }
.chunk { border-radius: 4px; padding: 1px 2px; transition: background var(--t-base), color var(--t-base); } .chunk.active { background: #e3f6fa; color: var(--ink); box-shadow: 0 0 0 2px #e3f6fa; } .chunk.done { color: var(--ink-3); }
/* ---------- checklist ---------- */
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; } .checks li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--r-1); transition: background var(--t-fast); } .checks li:hover { background: var(--paper); }
.checks li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-2); display: grid; place-items: center; } .checks li i svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.checks li.done i { background: var(--emerald); border-color: var(--emerald); } .checks li b { display: block; font-size: var(--fs-3); } .checks li small { color: var(--ink-3); font-size: var(--fs-1); } .checks li.done b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule-2); }
.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--emerald) calc(var(--p) * 360deg), var(--paper-2) 0); position: relative; transition: background var(--t-slow); } .ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); } .ring b { position: relative; font: 700 12px var(--ui); color: var(--ink); }
/* ---------- command palette ---------- */
.kbd-hint kbd, .pal-in kbd { font: 600 10.5px var(--ui); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink-3); }
.palette { position: fixed; inset: 0; z-index: 70; background: rgba(9,11,16,.45); backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding-top: 14vh; animation: fade var(--t-fast) both; }
.pal { width: min(560px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); box-shadow: 0 30px 80px -20px rgba(9,11,16,.5); overflow: hidden; animation: pop var(--t-base) var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); } .pal-in svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 2; } .pal-in .input { border: 0; height: 36px; padding: 0; box-shadow: none; font-size: var(--fs-4); }
.pal ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; } .pal li { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: var(--r-1); cursor: pointer; } .pal li.on { background: var(--paper-2); } .pal li b { font-size: var(--fs-3); } .pal li small { color: var(--ink-3); font-size: var(--fs-1); }
@media (max-width: 780px) { .kbd-hint { display: none; } }

/* ---------- billing (2026-10-20): plan cards, block gauge, saved card, invoice ---------- */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.current { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--focus); }
.plan.best { background: linear-gradient(180deg, #FFFDF6, var(--surface)); }
.plan-tag { position: absolute; top: -10px; right: 18px; font: 700 10.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--gold); color: #1F1600; box-shadow: 0 4px 12px -6px rgba(242,137,15,.8); }
.plan-price { margin: 10px 0 6px; font-variant-numeric: tabular-nums; } .plan-price b { font: 700 var(--fs-7)/1 var(--display); letter-spacing: -.02em; color: var(--ink); } .plan-price small { color: var(--ink-3); font-size: var(--fs-2); }
.plan-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; } .plan-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-2); color: var(--ink-2); }
.plan-feats svg { width: 15px; height: 15px; flex: none; margin-top: 2px; stroke: var(--emerald); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gauge { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 10px 0 8px; } .gauge i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #ffb23e); transition: width var(--t-slow) var(--ease); }
.cardface { width: 52px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green-700), var(--emerald)); box-shadow: 0 6px 16px -8px rgba(11,127,168,.7); } .cardface svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; }
.invoice { max-width: 860px; padding: 36px 40px; } .invoice h2 { font: 700 var(--fs-6)/1.1 var(--display); letter-spacing: -.02em; }
.totals { display: grid; gap: 6px; justify-content: end; margin-top: 18px; min-width: 260px; margin-left: auto; width: 280px; } .totals > div { display: flex; justify-content: space-between; gap: 24px; font-size: var(--fs-3); color: var(--ink-2); } .totals .grand { border-top: 1px solid var(--rule); padding-top: 8px; font-size: var(--fs-4); color: var(--ink); } .totals .grand b { font-family: var(--display); font-size: var(--fs-5); }
@media print { .side, .topbar, .no-print, .toasts { display: none !important; } .shell { display: block; } .main { background: #fff; } .content { padding: 0; max-width: none; } .invoice { border: 0; box-shadow: none; padding: 0; } body { background: #fff; } }

/* ---------- sign-in / sign-up (2026-10-21: password + Google, sign-up fields) ---------- */
.login .card.auth { width: min(480px, 100%); padding: 32px 32px 26px; }
.login .card.auth h2 { margin-top: 16px; }
.login .lede { margin: 0 0 18px; line-height: 1.5; }
.login .auth-seg { display: flex; width: 100%; margin: 0 0 16px; background: rgba(9,11,16,.45); border-color: rgba(255,255,255,.14); }
.login .auth-seg button { flex: 1; height: 34px; color: rgba(255,255,255,.65); }
.login .auth-seg button.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.btn.wide { width: 100%; justify-content: center; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn-google { width: 100%; justify-content: center; gap: 10px; height: 42px; background: #fff; color: #1F2A24; border: 1px solid #fff; font-weight: 600; }
.btn-google:hover { background: #f3f3ef; }
.btn-google .g svg { width: 18px; height: 18px; display: block; }
.login .or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: rgba(255,255,255,.5); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; }
.login .or::before, .login .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.login .offer { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; margin: -4px 0 16px; padding: 10px 14px; border-radius: var(--r-2); background: linear-gradient(135deg, rgba(255,178,62,.18), rgba(255,178,62,.06)); border: 1px solid rgba(255,178,62,.35); font-size: var(--fs-2); color: rgba(255,255,255,.8); }
.login .offer b { color: #ffc24a; } .login .offer.over { filter: grayscale(.6); opacity: .8; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%), linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.login select.input option { color: #0B1410; }
.login label.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-2); color: rgba(255,255,255,.72); line-height: 1.45; }
.login label.check input { margin-top: 3px; accent-color: #ffb23e; }
.linkish { border: 0; background: none; padding: 0; color: var(--mint); font: inherit; font-size: var(--fs-1); font-weight: 600; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.login .msg:not(:empty) { margin-top: 12px; }
.login .foot { margin: 18px 0 0; text-align: center; }
.login details.dev { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-2); color: rgba(255,255,255,.6); }
.login details.dev summary { cursor: pointer; }
.verify-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 0; padding: 10px 24px; background: #FFF6DE; border-bottom: 1px solid #ffe0b0; color: #6B4E0E; font-size: var(--fs-2); }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } .login .card.auth { padding: 24px 18px; } }
.card.stat.alert { border-color: #F2C9A0; background: #FFF6EC; } .warn { color: #A4511A; }
.topup .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.topup-sum { font-size: var(--fs-3); color: var(--ink-2); }
.login .auth-seg button { white-space: nowrap; padding: 0 8px; }

/* playground pace slider (speed 0.5–2.0) */
.speed-ctl .speed-range { width: 160px; accent-color: var(--emerald); cursor: pointer; }
.speed-ctl .speed-val { min-width: 3.4em; text-align: right; font-size: var(--fs-2); color: var(--ink); }
.speed-ctl .speed-reset { height: 26px; padding: 0 9px; font-size: var(--fs-2); }
@media (max-width: 640px) { .speed-ctl .speed-range { width: 120px; } }
.tbl.signups tr.internal td { color: var(--ink-3); }
.tbl.signups tr.active td:nth-child(11), .tbl.signups tr.active td:nth-child(12) { font-weight: 700; color: var(--ink); }
.card .script-note { margin: 8px 0 0; color: var(--red); font-size: var(--fs-2); font-weight: 600; }
