:root {
  --bg: #0d0e11;
  --bg-2: #15171c;
  --panel: #1a1d23;
  --panel-2: #22262e;
  --line: #2c313a;
  --text: #f2f2ef;
  --muted: #9aa0aa;
  --accent: #ff4b3e;      /* on-air red */
  --accent-2: #ffb547;    /* warm amber */
  --ok: #3ddc97;
  --warn: #ffb547;
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { 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-2); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--panel-2); padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: background .15s, transform .05s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #2b3039; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #ff5f53; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
input[type=text]:focus, select:focus { border-color: var(--accent-2); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--text); font-size: 17px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,75,62,.18); }

/* ---------- Home ---------- */
.home { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.home header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; color: #d6d8dc; }
.features li b { color: var(--text); }
.features .ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; color: var(--accent-2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -.01em; }
.links { display: grid; gap: 12px; margin-top: 8px; }
.linkrow { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.linkrow small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.linkrow .row { display: flex; gap: 8px; align-items: center; }
.linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #e6e6e2; }
.studios { margin-top: 48px; }
.studios h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.studio-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.studio-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.studio-item b { display: block; }
.studio-item small { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }

/* ---------- Studio ---------- */
.studio-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.topbar { flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .room-name { font-weight: 600; color: #d8d9dc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.rec-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,75,62,.14); color: #ff8a80; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.rec-badge .blink { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.greenroom { flex: 1; overflow: auto; display: grid; place-items: center; padding: 24px; }
.gr-card { width: min(980px, 100%); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.gr-card h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.02em; }
.gr-card .sub { color: var(--muted); margin: 0 0 20px; }
.preview { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.meter { height: 6px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--accent-2) 70%, var(--accent)); transition: width .06s linear; }
.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 14px; }
.toggle input { margin-top: 4px; accent-color: var(--accent); }
.toggle small { display: block; color: var(--muted); font-size: 12px; }
.err { background: rgba(255,75,62,.12); border: 1px solid rgba(255,75,62,.35); color: #ffb3ad; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

.studio { flex: 1; display: grid; grid-template-columns: 1fr 340px; grid-template-rows: 1fr auto; min-height: 0; }
.studio.panel-closed { grid-template-columns: 1fr 0; }
.studio.panel-closed .panel { display: none; }
.stage { position: relative; min-height: 0; padding: 16px; display: flex; }
.grid { flex: 1; display: grid; gap: 12px; align-content: center; justify-content: center; min-height: 0; }
.tile { position: relative; background: #050506; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .12s; }
.tile.speaking { outline-color: var(--ok); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.me video.mirror { transform: scaleX(-1); }
.tile .avatar { position: absolute; inset: 0; display: grid; place-items: center; background: #121418; }
.tile .avatar span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700; background: var(--panel-2); color: var(--accent-2); }
.tile .label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; max-width: calc(100% - 20px); }
.tile .label .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .label .host { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--accent-2); }
.tile .label .mic-off { color: var(--accent); display: none; }
.tile.muted .label .mic-off { display: inline-flex; }
.tile .status { position: absolute; right: 10px; top: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.tile .status:empty { display: none; }
.tile .upbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.tile .upbar i { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .4s; }

.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); z-index: 5; font-size: 140px; font-weight: 800; color: #fff; letter-spacing: -.05em; }

.panel { border-left: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; grid-row: 1 / 3; grid-column: 2; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 8px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabpane { flex: 1; overflow: auto; padding: 14px; min-height: 0; }
.tabpane.chat { display: flex; flex-direction: column; padding: 0; }
.messages { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg b { font-size: 13px; }
.msg time { color: var(--muted); font-size: 11px; margin-left: 6px; }
.msg p { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; color: #dcdde0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

.person { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--panel); margin-bottom: 8px; }
.person .av { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; color: var(--accent-2); flex: none; }
.person .info { flex: 1; min-width: 0; }
.person .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.person .info small { color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.pill.ok { background: rgba(61,220,151,.14); color: var(--ok); }
.pill.warn { background: rgba(255,181,71,.14); color: var(--warn); }
.pill.rec { background: rgba(255,75,62,.16); color: #ff8a80; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.section-title:first-child { margin-top: 0; }

.take { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.take-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.take-head b { font-size: 15px; }
.track { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.track .t-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .t-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.track a { color: var(--accent-2); text-decoration: none; font-weight: 500; }
.export-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.export-box .step { color: var(--muted); }
.export-box .step.done { color: var(--ok); }
.export-box .step.error { color: var(--accent); }

.controls { grid-column: 1; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 16px 16px; flex-wrap: wrap; }
.ctrl { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; transition: background .15s; position: relative; }
.ctrl:hover { background: #2d323b; }
.ctrl.off { background: #3a1f1d; border-color: #5a2a26; color: #ff8a80; }
.ctrl.on { background: #1f3a2f; border-color: #2a5a45; color: var(--ok); }
.ctrl svg { width: 22px; height: 22px; }
.ctrl[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: #000; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.rec-btn { height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.rec-btn .sq { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.rec-btn.recording { background: #fff; color: var(--accent); }
.rec-btn.recording .sq { border-radius: 2px; background: var(--accent); }
.leave { background: #3a1f1d; border-color: #5a2a26; color: #ff8a80; width: auto; padding: 0 18px; border-radius: 999px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #000; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

.left-screen { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; }

@media (max-width: 860px) {
  .hero, .gr-card { grid-template-columns: 1fr; }
  .studio, .studio.panel-closed { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .studio:not(.panel-closed) .panel { position: fixed; inset: 56px 0 84px 0; z-index: 20; border-left: 0; }
  .controls { grid-row: 2; }
  .ctrl { width: 46px; height: 46px; }
  .rec-btn { height: 46px; padding: 0 16px; }
  .countdown { font-size: 90px; }
}

/* ---------- Shared bits ---------- */
.mirror { transform: scaleX(-1); }
.bar { height: 8px; background: var(--bg-2); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; border-radius: 6px; }
.bar.big { height: 12px; margin: 24px 0 8px; }
.row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.mode-pick { display: grid; gap: 10px; margin-bottom: 16px; }
.mode-pick label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 12px; cursor: pointer; }
.mode-pick label:has(input:checked) { border-color: var(--accent); background: rgba(255,75,62,.07); }
.mode-pick input { margin-top: 4px; accent-color: var(--accent); }
.mode-pick small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Host: questions page ---------- */
.qa-host { max-width: 1040px; margin: 0 auto; padding: 18px 20px 80px; }
.qa-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.title-input { width: 100%; background: transparent; border: 0; border-bottom: 1px dashed var(--line); font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; padding: 4px 0; outline: none; }
.title-input:focus { border-bottom-color: var(--accent-2); }
.qa-section { margin-bottom: 20px; }
.two { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.q-card { border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.q-head { display: flex; gap: 12px; align-items: flex-start; }
.q-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin-top: 4px; }
.q-text { flex: 1; resize: vertical; min-height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; outline: none; }
.q-text:focus { border-color: var(--accent-2); }
.q-tools { display: flex; gap: 2px; }
.q-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.q-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.q-col video { width: 100%; max-height: 300px; background: #000; border-radius: 10px; display: block; }
.q-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.empty-box { min-height: 140px; border: 1px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 14px; text-align: center; }
.export-item { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.export-item video { width: 220px; max-height: 260px; background: #000; border-radius: 10px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.modal .preview video { object-fit: contain; transform: none; }
.modal .preview video.mirror { transform: scaleX(-1); }
.rec-timer { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); color: #ff8a80; font-weight: 700; padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .two, .q-body { grid-template-columns: 1fr; } .export-item { flex-direction: column; align-items: flex-start; } }

/* ---------- Guest: phone answer page ---------- */
body.guest { min-height: 100vh; }
.g-screen { min-height: 100vh; min-height: 100dvh; }
.g-wrap { max-width: 520px; margin: 0 auto; padding: 24px 18px calc(32px + env(safe-area-inset-bottom)); }
.g-center { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.g-kicker { color: var(--accent-2); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.g-h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.g-lead { color: #c9cbd0; font-size: 17px; margin: 0 0 20px; }
.g-tip { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.g-big { width: 100%; padding: 16px; font-size: 17px; border-radius: 14px; margin-top: 10px; }
.g-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.g-progress .bar { flex: 1; margin: 0; }
.g-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.g-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-weight: 700; font-size: 14px; }
.g-row.done .g-dot { background: rgba(61,220,151,.16); color: var(--ok); }
.g-row-text { flex: 1; min-width: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-row-go { color: var(--accent-2); font-size: 13px; font-weight: 600; }
.g-back { background: none; border: 0; color: var(--muted); padding: 0; margin-bottom: 18px; cursor: pointer; font-size: 15px; }
.g-qvideo { background: #000; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.g-qvideo video { width: 100%; max-height: 60vh; display: block; }
.g-qtext { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 18px; }
.g-check { width: 76px; height: 76px; border-radius: 50%; background: rgba(61,220,151,.15); color: var(--ok); font-size: 38px; display: grid; place-items: center; margin: 0 auto 20px; }

.g-cam { position: fixed; inset: 0; background: #000; overflow: hidden; }
.g-cam video { width: 100%; height: 100%; object-fit: cover; }
.g-guide { position: absolute; left: 50%; top: 42%; width: 58vw; max-width: 300px; aspect-ratio: 3/4; transform: translate(-50%, -50%); border: 2px dashed rgba(255,255,255,.35); border-radius: 50%; pointer-events: none; }
.g-cam[data-state="recording"] .g-guide { display: none; }
.g-prompter { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); background: rgba(0,0,0,.55); backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 14px; font-size: 19px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.g-prompter small { display: block; color: var(--accent-2); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.g-prompter.small { font-size: 14px; }
.g-prompter.small span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.g-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 140px; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.g-cam-bar { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; }
.g-round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 22px; cursor: pointer; }
.g-shutter { width: 82px; height: 82px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-shutter span { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); transition: all .2s; }
.g-shutter.on span { width: 30px; height: 30px; border-radius: 6px; }
.g-timer { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(120px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.6); color: #ff8a80; font-weight: 700; padding: 5px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Guest: extra pieces (guide, test, details, messages, queue) ---------- */
body.guest.bn { font-family: "Hind Siliguri", var(--font); }
body.guest.bn .g-h1, body.guest.bn .g-qtext { letter-spacing: 0; line-height: 1.35; }
textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; outline: none; resize: vertical; }
textarea:focus { border-color: var(--accent-2); }
.g-topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: rgba(13,14,17,.9); backdrop-filter: blur(8px); max-width: 520px; margin: 0 auto; }
.brand-logo img { height: 30px; max-width: 170px; object-fit: contain; display: block; }
.g-lang { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; font-family: "Hind Siliguri", var(--font); }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.g-chip { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #d6d8dc; margin: 0 0 14px; }
.g-chips .g-chip { margin: 0; }
.g-note { background: rgba(255,181,71,.09); border: 1px solid rgba(255,181,71,.35); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; display: grid; gap: 8px; }
.g-note.host { background: rgba(255,75,62,.08); border-color: rgba(255,75,62,.35); }
.g-note p { margin: 0; white-space: pre-wrap; }
.g-note .btn { justify-self: start; }
.g-msgs { display: grid; gap: 8px; margin: 0 0 16px; }
.g-msg { border-radius: 12px; padding: 10px 12px; font-size: 15px; white-space: pre-wrap; }
.g-msg small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.g-msg.host { background: rgba(255,75,62,.1); border: 1px solid rgba(255,75,62,.3); }
.g-msg.guest { background: var(--panel); border: 1px solid var(--line); margin-left: 28px; }
.g-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.g-link { background: none; border: 0; color: var(--accent-2); padding: 4px 0; font-size: 15px; cursor: pointer; text-align: left; font-family: inherit; }
.g-steps { display: grid; gap: 10px; margin: 0 0 16px; }
.g-step { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.g-step > span { font-size: 26px; line-height: 1; margin-top: 2px; }
.g-step b { font-size: 16px; }
.g-step p { margin: 2px 0 0; color: #c2c5cb; font-size: 14px; }
.g-checks { position: absolute; left: 12px; right: 12px; top: calc(110px + env(safe-area-inset-top)); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none; }
.g-checks span { background: rgba(255,181,71,.92); color: #1b1205; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.g-meter { position: absolute; left: 50%; transform: translateX(-50%); width: min(60vw, 260px); height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); bottom: calc(214px + env(safe-area-inset-bottom)); overflow: hidden; }
.g-meter i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .1s; }
.g-meter i.hot { background: var(--accent); }
.g-results { display: grid; gap: 6px; margin: 0 0 12px; }
.g-res { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 15px; }
.g-res.ok { border-color: rgba(61,220,151,.4); color: #b8f1d6; }
.g-res.bad { border-color: rgba(255,181,71,.5); color: #ffd79a; }
.g-flabel { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.g-photo { display: flex; align-items: center; gap: 12px; }
.g-photo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.g-consent { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0 8px; font-size: 15px; cursor: pointer; }
.g-consent input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin-top: 1px; }
.g-hint { color: #c9cbd0; background: var(--panel); border-left: 3px solid var(--accent-2); border-radius: 0 10px 10px 0; padding: 8px 12px; margin: -6px 0 14px; font-size: 15px; }
.g-badge { display: inline-block; background: var(--accent-2); color: #1b1205; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.g-row.redo { border-color: rgba(255,75,62,.5); }
.g-row.redo .g-dot { background: rgba(255,75,62,.18); color: #ff8a80; }
.g-row.wait .g-dot { background: rgba(255,181,71,.16); }
.g-row.redo .g-row-go { color: #ff8a80; }
.g-prompter em { display: block; font-style: normal; font-weight: 500; font-size: 14px; color: #d6d8dc; margin-top: 4px; }
.g-prompter.small em { display: none; }
.g-timer { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.g-timer small { color: #d6d8dc; font-weight: 500; font-size: 12px; }
.g-timer.in b { color: var(--ok); }
.g-timer.over b { color: var(--warn); }
.modal textarea { margin-top: 4px; }

/* ---------- Host: extra pieces ---------- */
input[type=date], input[type=number], input[type=email] { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; color-scheme: dark; }
input[type=color] { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 3px; cursor: pointer; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flabel { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.status-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.status-strip a.pill { text-decoration: none; }
.qa-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: 4px; overflow-x: auto; background: rgba(13,14,17,.92); backdrop-filter: blur(8px); padding: 8px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.qa-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.qa-nav a:hover { background: var(--panel-2); color: var(--text); }
.nav-badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.qa-section { scroll-margin-top: 64px; }
.guest-details { margin-top: 14px; }
.gd-card { display: flex; gap: 14px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gd-card img, .gd-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); display: grid; place-items: center; font-size: 28px; }
.q-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.q-sub { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.q-sub select { width: auto; }
.q-hint { font-size: 14px; }
.q-card.follow { margin-left: 28px; border-left: 3px solid var(--accent-2); }
.q-follow { font-size: 12px; color: var(--accent-2); font-weight: 600; margin: -4px 0 8px; }
.redo-box { margin-top: 8px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.35); border-radius: 10px; padding: 8px 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h-msgs { display: grid; gap: 8px; margin-bottom: 12px; max-height: 420px; overflow-y: auto; }
.h-msg { border-radius: 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); max-width: 80%; }
.h-msg > div { white-space: pre-wrap; }
.h-msg small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.h-msg.host { margin-left: auto; background: rgba(255,75,62,.08); border-color: rgba(255,75,62,.3); }
.h-msg.unread { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.h-msg audio { margin-top: 6px; width: 100%; max-width: 320px; }
.reply { display: flex; gap: 8px; }
.reply input { flex: 1; }
.clean-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: #c9cbd0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.series-list { display: grid; gap: 6px; }
.series-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.series-item:hover { border-color: var(--accent-2); }
.logo-prev { height: 34px; max-width: 120px; object-fit: contain; background: #fff1; border-radius: 6px; padding: 2px; }
.bank-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.bank-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 760px) { .three, .q-sub { grid-template-columns: 1fr; } .q-card.follow { margin-left: 10px; } .h-msg { max-width: 100%; } .reply { flex-wrap: wrap; } }

/* ---------- Templates, drag, voice prompts, welcome, QR, device picker ---------- */
.q-drag { cursor: grab; color: var(--muted); font-size: 20px; line-height: 1; padding: 8px 2px 0; user-select: none; }
.q-drag:active { cursor: grabbing; }
.q-card.dragging { opacity: .45; }
.q-card.drop-before { box-shadow: 0 -3px 0 var(--accent-2); }
.q-card.drop-after { box-shadow: 0 3px 0 var(--accent-2); }
.q-opt { white-space: nowrap; }
.q-sub > input[type=text] { min-width: 0; }
.wt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.wt-grid video { width: 100%; max-height: 220px; background: #000; border-radius: 10px; display: block; }
.wt-grid audio, .q-col audio { width: 100%; }
.aud-prompt { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; font-weight: 600; margin-bottom: 8px; }
.qr-box canvas { width: 100%; max-width: 300px; height: auto; border-radius: 12px; }
.rec-audio-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; background: var(--bg-2); }
.preview { position: relative; }
.g-qaudio { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.g-qaudio span { font-size: 30px; }
.g-qaudio audio { flex: 1; min-width: 0; }
#h-welcome { margin: 4px 0 16px; }
#h-welcome .g-qaudio { margin: 0; }
.g-badge.soft { background: var(--panel-2); color: #d6d8dc; }
.g-row.skip { opacity: .7; }
.btn.ghost.g-big { background: transparent; }
.g-dev { position: absolute; right: calc(16.67% - 22px); bottom: calc(100px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; cursor: pointer; z-index: 3; }
.g-cam[data-state="recording"] .g-dev, .g-cam[data-state="counting"] .g-dev { display: none; }
@media (max-width: 760px) { .wt-grid { grid-template-columns: 1fr; } .q-sub { grid-template-columns: 1fr; } }
