:root {
  --bg: #0a0d13; --bg-2: #0e121a; --surface: #131823; --surface-2: #181e2b; --border: #222a3a; --border-2: #2c3548;
  --text: #e7eaf1; --muted: #8b94a8; --faint: #5d667a;
  --accent: #3ee6b0; --accent-ink: #06140f; --accent-soft: rgba(62, 230, 176, .12);
  --violet: #8f7dff; --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .12); --bad: #ff5d6c; --bad-soft: rgba(255, 93, 108, .12);
  --live: #ff4d6a; --info-soft: rgba(143, 125, 255, .12);
  --r: 12px; --r-sm: 8px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 15px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.icon { flex: none; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--faint); font-weight: 600; letter-spacing: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: none; background: var(--bg-2); border-inline-end: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 4px 8px 18px; }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.brand.mini { padding: 0; gap: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.small { font-size: 14px; }
.nav-sep { height: 1px; background: var(--border); margin: 10px 6px; }
.side-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 6px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; font-weight: 600; color: var(--accent); flex: none; }
.me-email { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: rgba(10, 13, 19, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); min-height: 56px; }
.top .brand.mini, .top .menu-btn { display: none; }
.top-spacer { flex: 1; }
.main { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.view { display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.page-head p.muted { flex-basis: 100%; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
[dir="rtl"] .back .icon { transform: scaleX(-1); }
.scrim { display: none; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 9px 28px; background: var(--info-soft); color: #cfc7ff; border-bottom: 1px solid rgba(143, 125, 255, .25); font-size: 14px; }
.demo-banner span { flex: 1; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.save-state.saving .icon { animation: spin 1s linear infinite; }
.save-state.saved { color: var(--accent); }
.save-state.error { color: var(--bad); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.conn-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.gallery { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.editor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sticky { position: sticky; top: 74px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 .icon { color: var(--accent); }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.card.danger-card { border-color: rgba(255, 93, 108, .35); }
.card.stat { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; color: var(--text); transition: border-color .15s, transform .15s; }
.card.stat:hover { border-color: var(--border-2); transform: translateY(-1px); }
.stat-head { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.stat-value { font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.stat-value .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.stat-value.ok .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stat-value.bad .dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.stat-value.muted { color: var(--muted); }
.stat-lines { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 13px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 500 14px var(--font); cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: #1f2636; border-color: #36405a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #5cf0c1; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.warn { border-color: var(--warn); color: var(--warn); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; height: 44px; }
.btn.icon-only { padding: 0; width: 36px; }
.danger-text { color: var(--bad) !important; }
.input { width: 100%; height: 40px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-sm); color: var(--text); font: 14.5px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { cursor: pointer; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.mono { font-family: var(--mono); font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 500; }
.hint { color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.row { display: flex; align-items: center; }
.row.gap { gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.align-end { align-items: flex-end; }
.form .row.gap.wrap { align-items: flex-start; }
.grow { flex: 1; }
.center { text-align: center; display: flex; justify-content: center; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 600; }
.warn-text { color: var(--warn); } .bad-text { color: var(--bad); }

.toggle { display: inline-flex; align-items: flex-start; gap: 11px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 38px; height: 22px; border-radius: 11px; background: var(--border-2); position: relative; flex: none; transition: background .18s; margin-top: 1px; }
.toggle .thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c9cfdb; transition: inset-inline-start .18s, background .18s; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .thumb { inset-inline-start: 19px; background: var(--accent-ink); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.toggle.disabled { opacity: .5; cursor: not-allowed; }
.range-wrap { display: flex; align-items: center; gap: 12px; }
.range { flex: 1; accent-color: var(--accent); }
.range-wrap output { min-width: 56px; text-align: end; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.color-wrap { display: flex; gap: 8px; }
.color-wrap input[type=color] { width: 44px; height: 40px; padding: 3px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-sm); cursor: pointer; flex: none; }
.color-wrap .input { direction: ltr; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.live { background: var(--live); color: #fff; border-color: transparent; }
.pill.demo { background: var(--info-soft); color: #b9afff; border-color: transparent; letter-spacing: .04em; }
.pill.test { background: rgba(122, 162, 255, .14); color: #9fbaff; border-color: transparent; letter-spacing: .04em; }
.pill.muted { opacity: .7; }

.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; border: 1px solid transparent; }
.notice span { flex: 1; }
.notice.info { background: var(--info-soft); color: #d2ccff; border-color: rgba(143, 125, 255, .2); }
.notice.warn { background: var(--warn-soft); color: #ffd79c; border-color: rgba(255, 181, 71, .2); }
.notice.error { background: var(--bad-soft); color: #ffb3bb; border-color: rgba(255, 93, 108, .25); }
.notice.ok { background: var(--accent-soft); color: #a5f5da; border-color: rgba(62, 230, 176, .2); }
.notice .icon { margin-top: 2px; }
.empty { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 22px; color: var(--faint); font-size: 14px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters .search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.filters .search .icon { position: absolute; inset-inline-start: 12px; color: var(--faint); }
.filters .search .input { padding-inline-start: 36px; }
.filters select { flex: 0 1 200px; }

/* ---------- activity ---------- */
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act { display: flex; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--border); animation: fadein .25s ease; }
.act:last-child { border-bottom: 0; }
.act-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.act-event .act-ic { color: var(--violet); } .act-mod .act-ic { color: var(--warn); } .act-bot .act-ic { color: var(--accent); } .act-tts .act-ic { color: #7aa2ff; }
.act-main { min-width: 0; flex: 1; }
.act-line { display: flex; gap: 7px; flex-wrap: wrap; align-items: baseline; }
.act-actor { font-weight: 600; font-size: 14px; }
.act-text { color: #cdd3df; word-break: break-word; }
.act-meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; color: var(--faint); font-size: 12px; }
.act-list.big .act { padding: 11px 4px; }
.result { padding: 9px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 8px; font-size: 14px; word-break: break-word; }
.result.ok { border-color: rgba(62, 230, 176, .3); } .result.warn { border-color: rgba(255, 181, 71, .3); }
@keyframes fadein { from { opacity: 0; transform: translateY(-3px); } }

/* ---------- tables ---------- */
.table { display: flex; flex-direction: column; }
.tr { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px 100px 70px 140px; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.tr.th { color: var(--faint); font-size: 12.5px; font-weight: 500; padding-top: 0; }
.tr:last-child { border-bottom: 0; }
.tr.disabled { opacity: .5; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor { padding: 18px; }

/* ---------- TTS queue ---------- */
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.q-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--border); }
.q-item.playing { border-color: rgba(255, 77, 106, .45); }
.q-item.played, .q-item.skipped, .q-item.cleared { opacity: .6; }
.q-main { flex: 1; min-width: 0; word-break: break-word; }
.queue-ctl { padding-bottom: 4px; }

/* ---------- overlays ---------- */
.widget { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.widget-head { display: flex; gap: 12px; align-items: flex-start; }
.widget-head > div { flex: 1; min-width: 0; }
.widget-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--info-soft)); color: var(--accent); flex: none; }
.url-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.url-row .input { flex: 1; min-width: 0; height: 34px; }
.url-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 6px 9px; }
.preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border);
  background: repeating-conic-gradient(#151a25 0% 25%, #10141d 0% 50%) 0 0 / 22px 22px; }
.preview-frame iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; background: transparent; }
.preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.perms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perms li { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.perms li .icon { color: var(--accent); }
.perms li.optional { padding-top: 6px; border-top: 1px dashed var(--border); }
.scopes { display: flex; gap: 6px; flex-wrap: wrap; }
pre.code { margin: 0; padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--mono); font-size: 13px; overflow-x: auto; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); min-height: 100vh; }
.auth-art { background: radial-gradient(900px 500px at 30% 20%, rgba(62, 230, 176, .14), transparent 60%), radial-gradient(700px 500px at 80% 90%, rgba(143, 125, 255, .16), transparent 60%), var(--bg-2); display: grid; place-items: center; border-inline-end: 1px solid var(--border); padding: 40px; }
.auth-art-inner { max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.auth-art h2 { font-size: 34px; }
.auth-art p { color: var(--muted); font-size: 17px; }
.auth-points { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: #cdd3df; }
.auth-points .icon { color: var(--accent); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px clamp(20px, 5vw, 56px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form h1 { font-size: 26px; }
.auth-msg:empty { display: none; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.hint.center { text-align: center; display: block; }

/* ---------- toasts & modal ---------- */
.toasts { position: fixed; bottom: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 14px; max-width: 380px; animation: fadein .2s ease; }
.toast.ok .icon { color: var(--accent); } .toast.error .icon { color: var(--bad); } .toast.warn .icon { color: var(--warn); }
.toast.out { opacity: 0; transition: opacity .3s; }
.modal-back { position: fixed; inset: 0; background: rgba(4, 6, 10, .7); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); padding: 22px; width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.editor-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .tr { grid-template-columns: 110px minmax(0, 1fr) 110px 120px; }
  .tr > :nth-child(4), .tr > :nth-child(5) { display: none; }
}
@media (max-width: 820px) {
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  [dir="rtl"] .side { transform: translateX(100%); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; }
  .top { padding: 8px 16px; }
  .top .brand.mini, .top .menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 48px; }
  .demo-banner { padding: 8px 16px; flex-wrap: wrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .save-state span { display: none; }
}
@media (max-width: 560px) {
  .grid.stats { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 21px; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tr > :nth-child(2), .tr > :nth-child(3) { display: none; }
  .tr.th { display: none; }
  .quick .btn { flex: 1 1 100%; }
  .toasts { inset-inline: 16px; bottom: 16px; }
  .url-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* login */
.kick-btn { height: 48px; font-size: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.stack-sm { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.setup code { white-space: pre; display: block; overflow-x: auto; }

/* TTS voices */
.voice-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 110px auto minmax(110px, 1fr); gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-2); }
.voice-row:has(select) { grid-template-columns: minmax(140px, 1fr) 100px minmax(140px, 1fr) auto; }
.voice-row:has(select) .voice-example { grid-column: 1 / -1; }
.voice-id { display: flex; align-items: center; gap: 10px; align-self: center; }
.voice-id > div { display: flex; flex-direction: column; }
.voice-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--info-soft); color: #b9afff; flex: none; }
.voice-row.male .voice-ic { background: rgba(122, 162, 255, .14); color: #9fbaff; }
.voice-row.female .voice-ic { background: rgba(255, 120, 180, .14); color: #ff9ccc; }
.key-input { font-family: var(--mono); font-size: 18px; text-align: center; font-weight: 600; }
.voice-row .field { flex: none; }
.voice-example { display: flex; align-items: center; gap: 8px; align-self: center; }
@media (max-width: 640px) { .voice-row, .voice-row:has(select) { grid-template-columns: 1fr 1fr; } .voice-id, .voice-example { grid-column: 1 / -1; } }
.voice-row { grid-template-columns: minmax(120px, .8fr) minmax(90px, 1fr) auto; }
.voice-row.custom { position: relative; grid-template-columns: minmax(90px, 1fr) minmax(130px, 1.1fr) auto; gap: 8px; padding-inline-end: 42px; }
.voice-row.custom .voice-id { grid-column: 1 / -1; }
.voice-row.custom > .icon-only { position: absolute; inset-inline-end: 8px; top: 8px; }
.voice-row.custom .voice-id, .voice-row.custom .voice-id strong { min-width: 0; white-space: nowrap; }
.voice-row.custom .field { min-width: 0; }
.voice-row .voice-example { grid-column: 1 / -1; }
.setup-card { padding: 16px; }
.setup-form { display: flex; flex-direction: column; gap: 12px; }
.steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.steps .url-row { margin-top: 6px; }
