:root {
  /* EchoVerb: deep navy page, dark indigo cards, white type; brand blue -> violet -> pink accents */
  color-scheme: dark;
  --brand-navy: #221F57; --brand-blue: #4A5EF9; --brand-lavender: #D397F2; --brand-pink: #F1AFD5; --brand-stone: #E7E3E2;
  --brand-grad: linear-gradient(90deg, #4A5EF9 0%, #7C6CF4 50%, #C98BEF 82%, #F1AFD5 100%);
  --bg: #07071A; --bar: #050513; --surface: #11112A; --surface-2: #191935; --surface-3: #232344;
  --ink: #F4F3F8; --ink-deep: #050513; --ink-soft: #1B1B38;   /* --ink = main text colour */
  --edge: #8F9CFF; --edge-dark: #C8CEFF; --edge-light: rgba(124,138,255,0.45); --edge-bright: #ABB5FF; --edge-pale: rgba(124,138,255,0.14); --edge-vivid: #5E70FF;
  --on-accent: #FFFFFF;
  --mist: #07071A; --paper: #0D0D24; --rule: rgba(255,255,255,0.10); --rule-strong: rgba(255,255,255,0.22); --muted: rgba(244,243,248,0.62);
  --ok: #3DDC97; --warn: #F5B83D; --bad: #FF6B6B;
  --ok-tint: rgba(61,220,151,0.12); --warn-tint: rgba(245,184,61,0.13); --bad-tint: rgba(255,107,107,0.13);
  --glow: 0 0 0 1px rgba(124,138,255,0.20), 0 24px 80px -20px rgba(110,80,240,0.40);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: radial-gradient(1100px 520px at 30% -160px, rgba(74,94,249,0.24), transparent 70%), radial-gradient(900px 480px at 85% -120px, rgba(201,139,239,0.16), transparent 70%), var(--bg) no-repeat; }
a { color: var(--edge); }
h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
button, select, textarea, input { font: inherit; color: inherit; }
select, textarea, input[type="text"], input[type="url"], input[type="email"], input[type="number"], input[type="password"], input[type="search"] { border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface-2); color: var(--ink); padding: 8px 10px; width: 100%; }
input::placeholder, textarea::placeholder { color: rgba(244,245,247,0.4); }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--edge); box-shadow: 0 0 0 3px rgba(124,138,255,0.22); }
textarea { font-family: var(--mono); font-size: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; color: var(--ink); }
button { border: 0; border-radius: 8px; padding: 10px 18px; cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .2s, color .15s; }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--brand-grad); color: var(--on-accent); }
button.primary:not(:disabled):hover { filter: brightness(1.12); box-shadow: 0 0 28px 0 rgba(124,108,244,0.50); }
button.secondary { background: var(--surface-2); border: 1px solid var(--rule-strong); color: var(--ink); }
button.secondary:not(:disabled):hover { border-color: rgba(255,255,255,0.4); }
button.ghost { background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 7px 14px; align-self: end; color: var(--ink); }
button.ghost:not(:disabled):hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

.top { background: var(--bar); border-bottom: 1px solid var(--rule); color: #fff; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { height: 32px; width: 32px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.wordmark .tld { font-weight: 500; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-left: 8px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.2); }
.top-right { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; }
.tag { border: 1px solid var(--edge-light); color: var(--edge-bright); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.08em; }
.health { color: rgba(255,255,255,0.65); }
.health.ok { color: var(--edge-bright); }
.health.bad { color: #FFB4A9; }

main { max-width: 1500px; margin: 0 auto; padding: 20px 24px 60px; display: grid; gap: 18px; }
.setup { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 20px 22px; box-shadow: var(--glow); display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr 1.2fr auto; gap: 12px; align-items: end; }
.glossary summary { cursor: pointer; font-weight: 600; }
.glossary .hint { font-weight: 400; color: var(--muted); margin-left: 8px; }
.glossary textarea { margin-top: 8px; }
.controls { display: flex; align-items: center; gap: 12px; }
.status { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.channel { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; }
.channel > header { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--rule); }
.channel .lang { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: 1; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--muted); }
.pill.live { border-color: rgba(61,220,151,0.5); color: var(--ok); background: var(--ok-tint); }
.pill.wait { border-color: rgba(245,184,61,0.5); color: var(--warn); background: var(--warn-tint); }
.pill.bad { border-color: rgba(255,107,107,0.5); color: var(--bad); background: var(--bad-tint); }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.io label.check { grid-column: 1 / -1; }
.stream { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.stream .empty { color: var(--muted); font-style: italic; }
.utt { border-left: 3px solid var(--edge-pale); padding-left: 12px; }
.utt .src { color: var(--ink); }
.utt .dst { color: var(--edge-dark); font-weight: 500; }
.utt .dst:empty::before { content: 'translating…'; color: var(--muted); font-weight: 400; font-style: italic; }
.utt.spoken { border-left-color: var(--edge-light); }
.utt .t { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 8px; }
.interim { color: var(--muted); font-style: italic; }
.err { color: var(--bad); font-family: var(--mono); font-size: 12px; }
.meter { display: flex; justify-content: space-between; padding: 8px 18px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; color: var(--muted); }

.cost { display: flex; gap: 22px; align-items: baseline; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 0 6px; }
.cost .label { letter-spacing: 0.1em; color: var(--edge); }
.cost #costEst { color: var(--ink); font-weight: 500; }
.how details { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 18px; }
.how summary { cursor: pointer; font-weight: 600; }
.how ol { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr; }
  .io { grid-template-columns: 1fr; }
  .cost { flex-wrap: wrap; gap: 10px 18px; }
}

.modes { display: flex; gap: 8px; }
.mode { background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink); font-weight: 600; padding: 8px 16px; }
.mode .hint { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.mode.active { background: #fff; color: #0B0B0F; border-color: #fff; }
.mode.active .hint { color: rgba(11,11,15,0.6); }
body[data-mode="bot"] .local-only { display: none !important; }
body[data-mode="local"] .bot-only { display: none !important; }
.botbar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; align-items: end; }
.botbar input { border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface-2); padding: 7px 9px; width: 100%; }
.participants { display: flex; gap: 6px; flex-wrap: wrap; }
.participants .p { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); cursor: pointer; }
.participants .p.me { background: var(--edge-pale); border-color: var(--edge-light); color: var(--edge-dark); }
.participants .p.me::after { content: " · you"; }
.participants .p:not(.me):hover::after { content: " · that's me?"; color: var(--muted); }
p.hint { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .botbar { grid-template-columns: 1fr; } }

.rehearse { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; display: grid; gap: 10px; }
.rehearse summary { cursor: pointer; font-weight: 600; }
.rehearse summary .hint { font-weight: 400; color: var(--muted); margin-left: 8px; }
.sayrow { display: flex; gap: 8px; }
.sayrow input { flex: 1; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface-2); padding: 8px 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .preset { font-weight: 400; font-size: 12px; padding: 5px 10px; background: var(--surface); }

/* ── app shell ── */
.nav { display: flex; gap: 4px; }
.nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.who { color: rgba(255,255,255,0.65); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.small { padding: 6px 10px; font-size: 12px; }
.top .ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.top button.primary, .top .primary { padding: 7px 14px; }
.view { display: none; }
body[data-view="login"] #view-login, body[data-view="meeting"] #view-meeting, body[data-view="history"] #view-history, body[data-view="settings"] #view-settings, body[data-view="usage"] #view-usage, body[data-view="admin"] #view-admin { display: grid; gap: 18px; }
body[data-view="login"] .signed-in-only, body[data-view="loading"] .signed-in-only { display: none !important; }
.hidden { display: none !important; }
.login { justify-items: center; padding-top: 40px; }
.login-card { max-width: 560px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 36px 40px; display: grid; gap: 18px; box-shadow: var(--glow); }
.login-card h1 { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.lede { color: var(--muted); margin: 0; font-size: 15px; }
.login-form { display: grid; gap: 10px; }
.login-form input { border: 1px solid var(--rule); border-radius: 8px; padding: 9px 11px; width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px; display: grid; gap: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.table td { padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tr:hover td { background: var(--surface-2); }
.table .link { color: var(--edge); cursor: pointer; }
.transcript { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.transcript .line { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.transcript .who { color: var(--muted); font-family: var(--mono); font-size: 11px; max-width: none; white-space: normal; }
.transcript .dst { color: var(--edge-dark); font-weight: 500; }
.settings .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings input[type="text"], .settings input[type="number"] { border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan { border: 1px solid var(--rule); background: var(--surface-2); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.plan.current { border-color: var(--edge); box-shadow: var(--glow); }
.plan .name { font-weight: 600; }
.plan .price { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.plan .note { color: var(--muted); font-size: 12px; }
.warn { background: var(--warn-tint); border: 1px solid rgba(245,184,61,0.35); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
@media (max-width: 900px) { .settings .grid2, .stats, .plans { grid-template-columns: 1fr 1fr; } .nav { display: none; } }

.banner { background: var(--edge-pale); border: 1px solid var(--edge-light); color: var(--edge-dark); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.banner a { font-weight: 600; }
.participants .p.blocked { background: var(--bad-tint); border-color: rgba(255,107,107,0.4); color: var(--bad); text-decoration: line-through; }
.participants .p.blocked::after { content: " · not interpreted on the free plan"; text-decoration: none; display: inline-block; margin-left: 4px; }
.mode:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── plans & billing ── */
.plan .cta { margin-top: 6px; }
.plan .cta button { width: 100%; }
.plan .badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--edge); }
/* ── setup wizard ── */
.wizard { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.wiz-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 26px 30px; display: grid; gap: 16px; box-shadow: var(--glow); }
.wiz-head { display: flex; justify-content: space-between; align-items: center; }
.wiz-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--edge); }
.wiz-dots { display: flex; gap: 6px; }
.wiz-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--rule); }
.wiz-dots span.on { background: var(--edge); }
.wiz-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.wiz-body { display: grid; gap: 12px; }
.wiz-body p { margin: 0; color: var(--muted); }
.wiz-body input[type="text"], .wiz-body input[type="url"] { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; width: 100%; }
.wiz-body .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiz-foot { display: flex; align-items: center; gap: 8px; }
.wiz-foot .grow { flex: 1; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice label { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; color: var(--ink); flex-direction: row; align-items: center; gap: 8px; }
.choice label:has(input:checked) { border-color: var(--edge); background: var(--edge-pale); }
.tip { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.sample { display: flex; align-items: center; gap: 10px; }
.sample .said { font-size: 13px; color: var(--edge-dark); }
@media (max-width: 600px) { .wiz-body .row2, .choice { grid-template-columns: 1fr; } }

.jobs { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.jobs .check.disabled { opacity: 0.5; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; }
.results { display: grid; gap: 6px; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: var(--paper); max-height: 320px; overflow-y: auto; }
.results .hit { cursor: pointer; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.results .hit:hover { color: var(--edge); }
.results .hit .where { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.results mark { background: var(--edge-pale); color: var(--edge-dark); padding: 0 2px; border-radius: 3px; }
.tag-row { display: flex; gap: 4px; flex-wrap: wrap; }
.tagx { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--muted); }
.tagx.rec { border-color: rgba(255,107,107,0.45); color: var(--bad); }
.tagx.notes { border-color: var(--edge-light); color: var(--edge-dark); }
.panel-head .grow { flex: 1; }
.meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.meeting-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.meeting-main { display: grid; gap: 14px; }
.meeting-main video { width: 100%; border-radius: 10px; background: #000; }
.notes { display: grid; gap: 10px; }
.notes h3 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--edge); margin: 8px 0 0; font-weight: 700; }
.notes p { margin: 0; }
.notes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.notes .ai { display: inline-block; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.notes .waiting { color: var(--muted); font-style: italic; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tab { background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: var(--ink); }
.tab:hover { border-color: rgba(255,255,255,0.4); }
.tab.active { background: #fff; color: #0B0B0F; border-color: #fff; }
.transcript .line.seek { cursor: pointer; }
.transcript .line.seek:hover { background: var(--surface-2); }
.transcript .line.flash { background: var(--edge-pale); }
.transcript .t { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.paid-set { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; display: grid; gap: 10px; }
.paid-set legend { font-weight: 600; padding: 0 6px; }
.paid-set input[type="text"] { border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; width: 100%; }
@media (max-width: 1000px) { .meeting-grid { grid-template-columns: 1fr; } }

/* ── Fathom-style meetings area ── */
.topsearch { flex: 1; max-width: 460px; margin: 0 24px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 8px 16px; color: rgba(255,255,255,0.6); }
.topsearch:focus-within { border-color: rgba(255,255,255,0.35); }
.topsearch svg { width: 16px; height: 16px; flex: none; }
.topsearch input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 14px; outline: none; padding: 0; box-shadow: none; }
.topsearch input::placeholder { color: rgba(255,255,255,0.5); }
.upgrade { background: var(--edge-vivid); color: var(--on-accent); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 8px; text-decoration: none; }
.meetings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.meetings-main { min-width: 0; display: grid; gap: 14px; }
.subtabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.subtab { background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 7px 16px; font-weight: 600; color: var(--ink); }
.subtab:hover { border-color: rgba(255,255,255,0.4); }
.subtab.active { background: #fff; color: #0B0B0F; border-color: #fff; }
.subtabs .grow { flex: 1; }
.day-group h3 { font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; margin: 18px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; text-align: left; padding: 8px; display: grid; gap: 4px; color: var(--ink); }
.card:hover { transform: translateY(-3px); border-color: rgba(143,156,255,0.40); box-shadow: var(--glow); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, rgba(140,90,255,0.55), transparent 55%), linear-gradient(135deg, #0A2F8F 0%, #121A4A 45%, #08080B 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.thumb .tile { background: rgba(255,255,255,0.05); border-radius: 6px; display: grid; place-items: center; }
.thumb .tile span { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #0B0B0F; }
.thumb .mark { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .mark svg { width: 44px; height: 44px; opacity: 0.9; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.thumb .flags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.thumb .flags b { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fff; }
.thumb .flags b.rec { background: #B3261E; }
.thumb .state { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: rgba(255,255,255,0.8); font-family: var(--mono); }
.card .info { padding: 8px 6px 6px; display: grid; gap: 2px; }
.card .title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.danger { color: var(--bad); border-color: rgba(255,107,107,0.45); }
.ask { position: sticky; top: 78px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; display: grid; grid-template-rows: auto 1fr auto auto; height: calc(100vh - 120px); min-height: 420px; overflow: hidden; }
.ask-head { padding: 12px 14px; border-bottom: 1px solid var(--rule); display: flex; gap: 8px; align-items: baseline; }
.ask-kicker { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--edge); font-weight: 800; }
.ask-scope { font-size: 12px; color: var(--muted); }
.ask-log { overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.ask-log .q { align-self: flex-end; background: var(--surface-3); color: #fff; padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: 13px; max-width: 90%; }
.ask-log .a { font-size: 13px; line-height: 1.55; }
.ask-log .a ul { margin: 4px 0; padding-left: 18px; }
.ask-log .a .cite { display: inline-block; font-family: var(--mono); font-size: 10px; background: var(--edge-pale); color: var(--edge-dark); padding: 0 6px; border-radius: 999px; cursor: pointer; margin: 0 2px; vertical-align: 1px; }
.ask-log .thinking { color: var(--muted); font-style: italic; font-size: 13px; }
.ask-suggest { display: grid; gap: 6px; padding: 0 14px 10px; justify-items: end; }
.ask-suggest button { background: transparent; border: 1px solid var(--rule-strong); color: var(--ink); font-weight: 600; font-size: 12px; padding: 7px 14px; border-radius: 999px; }
.ask-suggest button:hover { border-color: var(--edge); color: var(--edge); }
.ask-form { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--rule); }
.ask-form textarea { flex: 1; resize: none; border: 1px solid var(--rule-strong); border-radius: 12px; padding: 8px 10px; font-family: var(--sans); font-size: 13px; }
.ask-form button { width: 40px; padding: 0; border-radius: 10px; font-size: 18px; }
@media (max-width: 1100px) { .meetings-layout { grid-template-columns: 1fr; } .ask { position: static; height: 480px; } .topsearch { display: none; } }
.ask-log .a p { margin: 0 0 6px; }

.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #2F2F2F; color: #fff; border: 1px solid #5E5E5E; border-radius: 8px; font-weight: 600; padding: 10px 16px; width: 100%; }
.ms-btn svg { width: 18px; height: 18px; }
.ms-btn:hover { background: #3A3A3A; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.sub-h { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--edge); margin: 8px 0 0; font-weight: 700; }
.sso-steps { display: grid; gap: 8px; font-size: 13px; }
.sso-steps .ok { color: var(--ok); font-weight: 600; }
.badge-entra { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(120,160,255,0.5); color: #A9C4FF; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.storage-form { display: grid; gap: 12px; }
.storage-form input[type="text"], .storage-form input[type="password"] { border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; width: 100%; }
.choice.two { grid-template-columns: 1fr 1fr; }
.steps { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; }
.steps pre { background: var(--ink-deep); border: 1px solid var(--rule); color: #D7E9F5; font-family: var(--mono); font-size: 11px; padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 6px 0 0; white-space: pre; }
body:not(.is-owner) .owner-only { display: none; }
@media (max-width: 900px) { .grid3, .choice.two { grid-template-columns: 1fr; } }

.invite-banner { background: var(--edge-pale); border: 1px solid var(--edge-light); color: var(--edge-dark); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.code-input { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-family: var(--mono); }
.invite-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.invite-row input { border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; }
.invite-out { display: flex; gap: 8px; }
.invite-out input { flex: 1; border: 1px solid var(--edge-light); background: var(--edge-pale); border-radius: 8px; padding: 7px 9px; font-family: var(--mono); font-size: 12px; }
#invList .inv { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.licences { display: flex; justify-content: space-between; align-items: end; gap: 16px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.lic-change { display: flex; gap: 8px; align-items: end; }
.lic-change input { width: 90px; border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; }
.badge-wait { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(245,184,61,0.45); color: var(--warn); }
.plan .qty { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.plan .qty input { width: 64px; border: 1px solid var(--rule); border-radius: 6px; padding: 4px 6px; }
@media (max-width: 900px) { .invite-row { grid-template-columns: 1fr; } .licences { flex-direction: column; align-items: stretch; } }

.up-row { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 13px; }
.up-row .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.up-row .t { font-weight: 600; }
.up-row .meta { font-size: 11px; color: var(--muted); }
.up-row select { padding: 4px 6px; font-size: 12px; width: auto; }
.up-row .st { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.st.joined { color: var(--ok); } .st.failed { color: var(--bad); } .st.skipped, .st.cancelled { color: var(--muted); }
.tagx.ext { border-color: rgba(245,184,61,0.45); color: var(--warn); }
.cal-rules { display: grid; gap: 8px; }
.cal-rules select { width: auto; }
@media (max-width: 700px) { .up-row { grid-template-columns: 1fr; } }

/* "What should the bot do in this meeting?": asked every time (app dialog + emailed link page) */
dialog.askdlg { border: 1px solid var(--rule); border-radius: 20px; padding: 0; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); box-shadow: var(--glow); color: var(--ink); }
dialog.askdlg::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.askbox { display: grid; gap: 14px; padding: 24px; background: var(--surface); }
.askbox h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.askbox .sub { color: var(--muted); font-size: 13px; margin: -8px 0 0; }
.askbox .opts { display: grid; gap: 8px; }
.askbox .opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 12px; cursor: pointer; flex-direction: initial; font-size: 14px; font-weight: 400; color: var(--ink); }
.askbox .opt:has(input:checked) { border-color: var(--edge); background: var(--edge-pale); }
.askbox .opt input { margin-top: 3px; }
.askbox .opt b { font-weight: 600; }
.askbox .opt small { grid-column: 2; color: var(--muted); font-size: 12px; }
.askbox .opt.disabled { opacity: 0.5; cursor: default; }
.askbox .langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.askbox .langs label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.askbox .langs select { padding: 9px; font-size: 14px; }
.askbox .langs.hidden { display: none; }
.askbox .note { font-size: 12px; color: var(--muted); min-height: 1em; }
.askbox .note.err { color: var(--bad); }
.askbox .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.up-row .plan { font-size: 12px; color: var(--ink-soft); }
.up-row .awaiting { color: var(--warn); font-weight: 600; }
.up-row .confirmed { color: var(--ok); }
@media (max-width: 480px) { .askbox .langs { grid-template-columns: 1fr; } .askbox .actions button { flex: 1; } }
/* Share dialog */
.askbox.share h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--edge); margin: 6px 0; }
.share-field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.share-field input, .share-link input { font-size: 14px; }
.share-inc { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; }
.share-list { display: grid; gap: 6px; border-top: 1px solid var(--rule); padding-top: 10px; }
.share-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.share-public { border-top: 1px solid var(--rule); padding-top: 10px; display: grid; gap: 8px; }
.share-link { display: flex; gap: 8px; } .share-link input { flex: 1; min-width: 0; }

/* form controls pick up the accent */
input[type="checkbox"], input[type="radio"] { accent-color: var(--edge-vivid); width: 16px; height: 16px; }
::selection { background: rgba(124,108,244,0.40); }
a { color: var(--edge); }

/* header: one line, like a product nav */
.top { gap: 18px; padding: 12px 24px; }
.brand, .wordmark, .product, .nav a, .top button, .who { white-space: nowrap; }
.nav { gap: 2px; flex: none; }
.topsearch { min-width: 220px; }
.top-right { flex: none; }
@media (max-width: 1700px) { .health { display: none; } }
@media (max-width: 1250px) { .product { display: none; } .who { max-width: 160px; } }
/* values typed into fields are regular weight (labels wrap their inputs) */
label input, label select, label textarea, input, select, textarea { font-weight: 400; font-size: 14px; }
textarea { font-size: 13px; }
.top-right { font-family: var(--sans); font-size: 13px; }

/* meeting card: a frame from the recording */
.thumb.has-frame { display: block; padding: 0; background: #000; }
.thumb .frame { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.has-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 35%, transparent 65%, rgba(0,0,0,0.45)); pointer-events: none; }
.thumb.has-frame .flags, .thumb.has-frame .dur, .thumb.has-frame .state { z-index: 1; }

/* traffic light in the live view: when it's safe to talk */
.lightpill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); font-weight: 700; font-size: 13px; }
.lightpill i { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.3); }
.lightpill[data-state="green"] { color: var(--ok); border-color: rgba(61,220,151,0.5); } .lightpill[data-state="green"] i { background: #2EE59D; box-shadow: 0 0 12px #2EE59D; }
.lightpill[data-state="amber"] { color: var(--warn); border-color: rgba(245,184,61,0.5); } .lightpill[data-state="amber"] i { background: #FFB020; box-shadow: 0 0 12px #FFB020; }
.lightpill[data-state="red"] { color: var(--bad); border-color: rgba(255,107,107,0.5); } .lightpill[data-state="red"] i { background: #FF4D4D; box-shadow: 0 0 12px #FF4D4D; }
.lightpill[data-state="paused"] { color: var(--muted); }
#pauseInterp.on { background: var(--warn-tint); border-color: rgba(245,184,61,0.6); color: var(--warn); }
.participants .plang { margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px dashed var(--rule-strong); background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.participants .plang.fixed { border-style: solid; color: var(--edge-dark); border-color: var(--edge-light); }

/* Leading Edge admin console */
.adm-scroll { overflow-x: auto; }
.adm-table tbody tr { cursor: pointer; }
.adm-table td small { color: var(--muted); display: block; font-size: 11px; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.adm-box { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; background: var(--surface-2); align-content: start; }
.adm-box h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--edge); }
.adm-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.adm-row label { flex: 1; min-width: 110px; }
.adm-danger { border-color: rgba(255,107,107,0.35); }
.adm-danger h3 { color: var(--bad); }
.adm-audit { display: grid; gap: 6px; font-size: 13px; }
.adm-audit .a { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.adm-audit .a .w { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.adm-link { display: flex; gap: 8px; } .adm-link input { flex: 1; font-family: var(--mono); font-size: 12px; }

/* meeting coach: the live agenda, the agenda in the notes, and the upcoming-meeting line */
.live-agenda { margin: 10px 0 4px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.live-agenda.complete { border-color: rgba(61,220,151,0.45); background: var(--ok-tint); }
.live-agenda .la-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.live-agenda .la-head .ok { color: var(--ok); } .live-agenda .la-head .warn { color: var(--warn); }
.live-agenda ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-agenda li label { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; display: inline-flex; }
.live-agenda li label input { width: auto; }
.live-agenda li.done label span { color: var(--muted); text-decoration: line-through; }
.live-agenda li small { display: block; margin: 2px 0 0 24px; color: var(--muted); font-size: 12px; }
.live-agenda li .tagx { margin-left: 6px; }
.agenda-notes { list-style: none; padding: 0; }
.agenda-notes li { margin: 4px 0; } .agenda-notes .mk { display: inline-block; width: 18px; color: var(--muted); }
.agenda-notes li.done .mk { color: var(--ok); }
.timeback { color: var(--ok); font-weight: 600; }
.coachline { color: var(--muted); }

/* Team card: the annual prices under the monthly ones */
.plan .price .hint { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.thumb .flags b.recd { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85); }

/* clean transcript: small talk folded, interjections marked when shown */
.transcript details.fold { margin: 6px 0; border: 1px dashed var(--rule-strong); border-radius: 10px; padding: 6px 10px; }
.transcript details.fold summary { cursor: pointer; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.transcript details.fold[open] summary { margin-bottom: 6px; }
.transcript .line.bc { opacity: 0.55; }
.tabs .all-lines { margin-left: auto; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.tabs .all-lines input { width: auto; }

/* links to the Terms, Privacy Policy, DPA and sub-processors */
.site-legal { text-align: center; font-size: 12px; color: var(--muted); padding: 22px 16px 28px; }
.site-legal a, .legal-links a { color: var(--muted); text-decoration: underline; }

/* EchoVerb sign-in: gradient words and the tagline */
.login h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: -4px 0 14px; }
