/* tts.vartalaap.si — developer portal. Circuit Green, as an application: deep green ground, glass panels, white type,
   gold only where value is (primary actions, money). Bricolage Grotesque for titles, Manrope for UI, JetBrains Mono for data. */
:root {
  --ground: #07261A; --ground-deep: #04140E; --ground-lift: #0B3322; --forest: #0F4A30;
  --emerald: #17A35C; --emerald-deep: #0C7A42; --emerald-hi: #22C472; --mint: #6FE3A4;
  --gold: #E8B94A; --gold-deep: #C8942A; --gold-light: #FFD978; --gold-ink: #2B1E06;
  --red: #FF7A6B; --amber: #FFC66B;
  --text-hi: #fff; --text-mid: rgba(255,255,255,.74); --text-lo: rgba(255,255,255,.52); --text-faint: rgba(255,255,255,.3);
  --glass-1: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.11); --line: rgba(255,255,255,.11); --line-hi: rgba(255,255,255,.22);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; --ui: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --deva: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --side-w: 236px; --top-h: 60px;
  /* type scale, ratio 1.25 */
  --fs-xs: 12px; --fs-sm: 13.5px; --fs: 15px; --fs-md: 17px; --fs-lg: 19px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 38px; --fs-4xl: 48px;
}
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--text-hi); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.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, #0B3322 0%, #07261A 50%, #04140E 100%); }
.ground::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 10% 0%, rgba(34,196,114,.16) 0%, rgba(34,196,114,0) 60%),
  radial-gradient(50% 40% at 95% 100%, rgba(232,185,74,.10) 0%, rgba(232,185,74,0) 60%); }

/* ---------- shell ---------- */
.app { min-height: 100%; }
.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: 18px 14px; border-right: 1px solid var(--line); background: rgba(4,20,14,.55); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; } .brand small { color: var(--text-lo); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-left: auto; }
.nav-group { margin: 6px 0 10px; } .nav-group h6 { margin: 10px 8px 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--text-mid); font-weight: 600; font-size: 14px; }
.nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav a:hover { background: var(--glass-1); color: var(--text-hi); } .nav a.active { background: var(--glass-2); color: var(--text-hi); box-shadow: inset 2px 0 0 var(--mint); }
.nav a .pill { margin-left: auto; font: 600 10px/1 var(--mono); letter-spacing: .1em; padding: 4px 7px; border-radius: 999px; background: rgba(111,227,164,.14); color: var(--mint); }
.side .spacer { flex: 1; }
.account { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-hi), var(--emerald-deep)); font-weight: 800; font-size: 13px; flex: none; }
.account .who { min-width: 0; } .account .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .account .who small { color: var(--text-lo); font-size: 11.5px; }
.account button { margin-left: auto; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(4,20,14,.9), rgba(4,20,14,.6)); backdrop-filter: blur(16px); }
.topbar h1 { margin: 0; font: 600 16px/1 var(--ui); } .topbar .grow { flex: 1; }
.switcher { display: flex; align-items: center; gap: 8px; }
.switcher select { background: var(--glass-1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 30px 6px 12px; font-size: 13px; font-weight: 600; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' 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; }
.switcher .sep { color: var(--text-faint); }
.content { padding: 28px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font: 700 var(--fs-2xl)/1.1 var(--display); letter-spacing: -.02em; } .page-head p { margin: 6px 0 0; color: var(--text-mid); max-width: 62ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- primitives ---------- */
.card { min-width: 0; background: var(--glass-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.card.tight { padding: 16px 18px; } .card h3 { margin: 0 0 6px; font: 700 var(--fs-lg)/1.25 var(--display); } .card h4 { margin: 0 0 8px; font: 700 14px/1.2 var(--ui); color: var(--text-mid); }
.card p { margin: 6px 0 0; color: var(--text-mid); } .card .lead { color: var(--text-hi); }
.grid { display: grid; gap: 16px; } .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: 16px; }
.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(--text-lo); } .small { font-size: 13px; } .tiny { font-size: 12px; } .gold { color: var(--gold-light); } .mint { color: var(--mint); } .red { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; background: var(--glass-2); color: var(--text-hi); }
.btn:hover { background: rgba(255,255,255,.17); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); box-shadow: 0 10px 26px rgba(232,185,74,.28), inset 0 1px 0 rgba(255,255,255,.45); } .btn-solid:hover { box-shadow: 0 14px 34px rgba(232,185,74,.4); background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); }
.btn-green { color: #fff; background: linear-gradient(135deg, var(--emerald-hi), var(--emerald) 60%, var(--emerald-deep)); box-shadow: 0 10px 26px rgba(23,163,92,.3); } .btn-green:hover { background: linear-gradient(135deg, var(--emerald-hi), var(--emerald) 60%, var(--emerald-deep)); box-shadow: 0 14px 34px rgba(23,163,92,.45); }
.btn-ghost { background: transparent; border-color: var(--line-hi); } .btn-ghost:hover { background: var(--glass-1); }
.btn-sm { padding: 6px 12px; font-size: 13px; } .btn-danger { color: var(--red); border-color: rgba(255,122,107,.35); background: rgba(255,122,107,.08); } .btn-danger:hover { background: rgba(255,122,107,.16); }
.btn-icon { padding: 6px; border-radius: 8px; background: transparent; } .btn-icon:hover { background: var(--glass-2); }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-mid); }
.input, select.input, textarea.input { width: 100%; background: rgba(4,20,14,.45); border: 1px solid var(--line-hi); border-radius: var(--r-sm); padding: 10px 12px; color: var(--text-hi); font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(111,227,164,.18); } textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }
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='%23ffffff' stroke-width='2.4' 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 12px center; background-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-mid); cursor: pointer; } .check input { accent-color: var(--emerald-hi); width: 16px; height: 16px; }
.seg { display: inline-flex; background: rgba(4,20,14,.45); border: 1px solid var(--line-hi); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text-mid); cursor: pointer; } .seg button.on { background: var(--glass-2); color: var(--text-hi); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 11.5px/1 var(--mono); letter-spacing: .06em; background: var(--glass-2); color: var(--text-mid); border: 1px solid var(--line); }
.chip.ok { color: var(--mint); border-color: rgba(111,227,164,.35); background: rgba(111,227,164,.1); } .chip.warn { color: var(--amber); border-color: rgba(255,198,107,.35); background: rgba(255,198,107,.1); } .chip.bad { color: var(--red); border-color: rgba(255,122,107,.35); background: rgba(255,122,107,.1); } .chip.gold { color: var(--gold-light); border-color: rgba(232,185,74,.4); background: rgba(232,185,74,.12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-lo); padding: 10px 12px; border-bottom: 1px solid var(--line); } .tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; } .tbl .actions { text-align: right; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-lo); } .empty b { display: block; color: var(--text-mid); font-size: 16px; margin-bottom: 4px; }
pre.code { margin: 0; max-width: 100%; padding-right: 96px; background: rgba(4,20,14,.6); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; overflow: auto; font: 12.5px/1.6 var(--mono); color: #DFF5E8; white-space: pre; tab-size: 2; }
pre.code .k { color: var(--mint); } pre.code .s { color: var(--gold-light); } pre.code .c { color: var(--text-lo); }
.codebox { position: relative; min-width: 0; max-width: 100%; } .codebox .copy { position: absolute; top: 10px; right: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; } .tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 700; font-size: 13.5px; color: var(--text-lo); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs button.on { color: var(--text-hi); border-color: var(--mint); }
.stat { padding: 18px 20px; } .stat .v { font: 700 var(--fs-2xl)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 6px 0 4px; } .stat .v small { font: 600 13px var(--mono); color: var(--text-lo); margin-left: 6px; } .stat .l { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-lo); } .stat .d { color: var(--text-lo); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; } .kv dt { color: var(--text-lo); } .kv dd { margin: 0; font-family: var(--mono); font-size: 13px; }
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(4,20,14,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px, 100%); background: #0A2E1F; border: 1px solid var(--line-hi); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); } .modal h3 { margin: 0 0 4px; font: 700 20px/1.2 var(--display); } .modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; } .toast { background: #0A2E1F; border: 1px solid var(--line-hi); border-left: 3px solid var(--mint); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.4); max-width: 380px; } .toast.err { border-left-color: var(--red); }
.keyreveal { font: 600 14px/1.5 var(--mono); word-break: break-all; background: rgba(4,20,14,.6); border: 1px dashed rgba(232,185,74,.5); border-radius: var(--r-sm); padding: 14px 16px; color: var(--gold-light); }
.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-hi), var(--emerald-deep)); border-radius: 4px 4px 2px 2px; position: relative; opacity: .9; } .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: #0A2E1F; border: 1px solid var(--line-hi); border-radius: 6px; padding: 5px 8px; font: 500 11.5px var(--mono); color: var(--text-hi); z-index: 5; }
.axis { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--text-faint); margin-top: 6px; }
.meter { height: 6px; background: var(--glass-2); border-radius: 999px; overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-hi), var(--mint)); }
.timer { font: 700 var(--fs-4xl)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .timer small { font: 600 14px var(--mono); color: var(--text-lo); margin-left: 6px; }
.events { max-height: 220px; overflow: auto; font: 12px/1.6 var(--mono); color: var(--text-mid); background: rgba(4,20,14,.5); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; } .events div span:first-child { color: var(--text-faint); display: inline-block; width: 64px; }
.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); background: linear-gradient(135deg, var(--emerald-hi), var(--emerald-deep)); } .voice-card .face.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: var(--gold-ink); }
audio { width: 100%; margin-top: 12px; filter: invert(1) hue-rotate(160deg) saturate(.6) brightness(.95); border-radius: 999px; }
.steps { counter-reset: s; display: grid; gap: 14px; } .step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; } .step > * { min-width: 0; } .step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); font: 700 14px var(--mono); color: var(--mint); } .step h4 { margin: 6px 0 4px; color: var(--text-hi); font-size: 15px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .login .card { width: min(440px, 100%); padding: 32px; } .login h2 { margin: 18px 0 4px; font: 700 28px/1.1 var(--display); letter-spacing: -.02em; }
.notice { border: 1px solid rgba(255,198,107,.35); background: rgba(255,198,107,.08); color: var(--amber); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px; } .notice.ok { border-color: rgba(111,227,164,.35); background: rgba(111,227,164,.08); color: var(--mint); }
.menu-btn { display: none; color: var(--text-hi); } .menu-btn svg { stroke: currentColor; fill: none; stroke-width: 2; width: 20px; height: 20px; }
.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: 16px; } .loading i { display: block; height: 96px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--glass-1) 25%, var(--glass-2) 50%, var(--glass-1) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; } .loading i.t { height: 44px; width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hint { color: var(--text-lo); font-size: var(--fs-sm); }
@media (max-width: 1000px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0,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 .2s; } .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(4,20,14,.6); }
  .menu-btn { display: inline-flex; } .content { padding: 18px 16px; } .grid.c2, .grid.c3 { grid-template-columns: 1fr; } .grid.c4 { grid-template-columns: 1fr 1fr; } .topbar { padding: 0 12px; gap: 8px; } .topbar h1, .topbar .chip { display: none; }
  .switcher select { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } .page-head .actions { margin-left: 0; width: 100%; } .page-head .actions .btn { flex: 1; }
  .stat .v { font-size: var(--fs-xl); } .timer { font-size: var(--fs-3xl); } .invite { grid-template-columns: 1fr; } .invite select.input { width: 100%; }
}
