:root {
  --bg: #F4F7FB; --surface: #FFFFFF; --surface-2: #EEF3F8; --line: #DCE5EE;
  --ink: #0B1726; --ink-2: #4A5B6E; --ink-3: #8696A8;
  --brand: #0284C7; --brand-2: #38BDF8; --brand-ink: #FFFFFF; --brand-soft: #E0F2FE;
  --green: #16A34A; --green-soft: #DCFCE7; --yellow: #D97706; --yellow-soft: #FEF3C7; --red: #DC2626; --red-soft: #FEE2E2;
  --mine: #DDF1FD; --shadow: 0 1px 2px rgba(11,23,38,.06), 0 6px 20px rgba(11,23,38,.06);
  --r: 18px; --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1220; --surface: #111C2D; --surface-2: #17243A; --line: #22324A;
    --ink: #E7EEF6; --ink-2: #A6B4C4; --ink-3: #6E7F93;
    --brand: #38BDF8; --brand-2: #7DD3FC; --brand-ink: #04223A; --brand-soft: #0C2B44;
    --green: #4ADE80; --green-soft: #12301F; --yellow: #FBBF24; --yellow-soft: #33280B; --red: #F87171; --red-soft: #3A1517;
    --mine: #0F3150; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
label { display: block; font-size: 13px; color: var(--ink-2); margin: 12px 0 6px; font-weight: 600; }
a { color: var(--brand); }
.hide { display: none !important; }
.splash { height: 100vh; display: grid; place-items: center; }
.splash img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- layout ---------- */
.shell { height: 100dvh; display: flex; flex-direction: column; max-width: 1100px; margin: 0 auto; }
.top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top img { width: 34px; height: 34px; border-radius: 9px; }
.top .title { font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.top .sub { font-size: 12px; color: var(--ink-3); margin-top: -2px; }
.top .grow { flex: 1; min-width: 0; }
.main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { padding: 12px 16px 120px; max-width: 760px; margin: 0 auto; }
.nav { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav button { flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--ink-3); font-weight: 600; position: relative; }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--brand); }
.badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.badge.blue { background: var(--brand); color: var(--brand-ink); }

@media (max-width: 899px) { .shell.in-chat .top { display: none; } }
@media (min-width: 900px) {
  .shell.wide { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto 1fr; max-width: none; }
  .shell.wide .top { grid-column: 1 / -1; }
  .shell.wide .nav { grid-row: 2; grid-column: 1; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); justify-content: flex-start; padding-top: 8px; }
  .shell.wide .nav button { flex: 0 0 76px; }
  .shell.wide .main { grid-row: 2; grid-column: 2; min-height: 0; }
  .shell.wide .nav.hide { display: flex !important; }
}

/* ---------- common ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.red { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 12px 0; }
.h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; margin: 22px 4px 8px; }
.muted { color: var(--ink-3); font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.empty img { width: 64px; opacity: .9; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.yellow { background: var(--yellow-soft); color: var(--yellow); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.ext { background: #EDE9FE; color: #6D28D9; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 17px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s; }
.bar.green > i { background: var(--green); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.seg button { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.auth .box { width: 100%; max-width: 420px; }
.auth .brand { text-align: center; margin-bottom: 20px; }
.auth .brand img.mark { width: 84px; height: 84px; display: none; }
.auth .brand h1.mark { display: none; }
.auth .brand img.wordmark { width: min(320px, 85%); height: auto; display: block; margin: 0 auto 6px; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth .brand img.wordmark { display: none; } :root:not([data-theme="light"]) .auth .brand .mark { display: inline-block; } :root:not([data-theme="light"]) .auth .brand h1.mark { display: block; } }
.auth h1 { font-size: 34px; margin: 10px 0 2px; letter-spacing: -.03em; }
.auth .tag { color: var(--ink-2); }
.auth .by { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 20px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 4px; }
.tabs button { flex: 1; padding: 10px 6px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 20px; }

/* ---------- chat list ---------- */
.chat-item { display: flex; gap: 12px; align-items: center; padding: 12px 8px; border-radius: 14px; width: 100%; text-align: left; }
.chat-item:hover { background: var(--surface-2); }
.chat-item .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .last { color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.chat-item .meta { text-align: right; font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.count.red { background: var(--red); color: #fff; animation: beat 1.6s infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.search { margin: 4px 0 8px; }

/* ---------- chat view ---------- */
.chatview { display: flex; flex-direction: column; height: 100%; }
.chathead { display: flex; align-items: center; gap: 6px; padding: 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chathead .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.daysep { align-self: center; font-size: 12px; color: var(--ink-3); background: var(--surface); padding: 3px 10px; border-radius: 99px; margin: 6px 0; }
.msg { max-width: min(86%, 520px); align-self: flex-start; background: var(--surface); border-radius: 18px; border-top-left-radius: 6px; padding: 10px 12px; box-shadow: var(--shadow); position: relative; border-left: 4px solid transparent; }
.msg.mine { align-self: flex-end; background: var(--mine); border-top-left-radius: 18px; border-top-right-radius: 6px; }
.msg.f-red { border-left-color: var(--red); }
.msg.f-yellow { border-left-color: var(--yellow); }
.msg.unheard:not(.mine) { outline: 2px solid var(--brand-2); }
.msg .who { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 4px; display: flex; gap: 4px 6px; align-items: center; flex-wrap: wrap; }
.msg .who .pill, .msg .who > span { white-space: nowrap; }
.msg .txt { white-space: pre-wrap; word-wrap: break-word; }
.msg .tr { font-size: 13px; color: var(--ink-2); margin-top: 6px; white-space: pre-wrap; }
.msg .foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.msg .foot button { color: var(--brand); font-weight: 700; font-size: 12px; }
.msg .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.msg .acts .btn { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.voice { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.play { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.play svg { width: 20px; height: 20px; }
.wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: var(--ink-3); opacity: .45; border-radius: 2px; min-height: 3px; }
.wave i.on { background: var(--brand); opacity: 1; }
.survey-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.survey-opts button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.survey-opts button.on { border-color: var(--brand); background: var(--brand-soft); }

.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + var(--safe-b)); }
.composer .rowc { display: flex; align-items: center; gap: 10px; }
.flags { display: flex; gap: 6px; }
.flags button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; }
.flags button .dot { width: 16px; height: 16px; }
.flags button.on { border-color: var(--ink); }
.flags button:disabled { opacity: .25; }
.mic { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(2,132,199,.35); touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .12s; flex: none; }
.mic svg { width: 34px; height: 34px; }
.mic.rec { background: var(--red); transform: scale(1.12); box-shadow: 0 0 0 10px rgba(220,38,38,.18), 0 0 0 22px rgba(220,38,38,.08); }
.mic-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mic-hint { font-size: 12px; color: var(--ink-3); min-height: 16px; }
.typebox { display: flex; gap: 8px; margin-top: 10px; }
.typebox textarea { min-height: 46px; max-height: 140px; resize: none; }

/* ---------- speak button ---------- */
.fab { position: fixed; right: 18px; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); width: 68px; height: 68px; border-radius: 22px; background: linear-gradient(145deg, #0EA5E9, #0369A1); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(3,105,161,.45); z-index: 20; }
.fab svg { width: 32px; height: 32px; }
.fab small { position: absolute; bottom: -18px; font-size: 11px; font-weight: 800; color: var(--brand); white-space: nowrap; }
@media (min-width: 900px) { .fab { right: max(18px, calc(50vw - 530px)); bottom: 28px; } }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5,12,22,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 620px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); animation: up .2s ease-out; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.speak-mic { margin: 26px auto 10px; width: 120px; height: 120px; }
.speak-mic svg { width: 50px; height: 50px; }
.thinking { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.thinking i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); animation: bounce 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-10px); opacity: .5; } }
.action { background: var(--surface); border-radius: 16px; padding: 14px; margin: 10px 0; box-shadow: var(--shadow); border-left: 5px solid var(--green); }
.action.f-yellow { border-left-color: var(--yellow); } .action.f-red { border-left-color: var(--red); }
.action.hr { border-left-color: #7C3AED; }
.action .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.chip button { color: var(--ink-3); font-weight: 800; }
.action textarea { min-height: 64px; }
.why { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.lock { display: flex; gap: 8px; align-items: flex-start; background: #F3E8FF; color: #5B21B6; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lock { background: #2A1748; color: #DDD6FE; } }

/* ---------- listen ---------- */
.player { position: sticky; top: 0; z-index: 5; background: linear-gradient(145deg, #0EA5E9, #0369A1); color: #fff; border-radius: 22px; padding: 18px; margin: 4px 0 14px; box-shadow: 0 10px 30px rgba(3,105,161,.3); }
.player .big { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #0369A1; display: grid; place-items: center; flex: none; }
.player .big svg { width: 30px; height: 30px; }
.player .now { font-weight: 800; font-size: 18px; }
.player .seg { background: rgba(255,255,255,.18); }
.player .seg button { color: #fff; }
.player .seg button.on { background: #fff; color: #0369A1; }
.player .btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.qitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface); margin: 8px 0; box-shadow: var(--shadow); border-left: 5px solid var(--green); }
.qitem.f-yellow { border-left-color: var(--yellow); } .qitem.f-red { border-left-color: var(--red); }
.qitem.playing { outline: 3px solid var(--brand-2); }
.qitem .t { font-size: 14px; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- dashboard ---------- */
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat .card { margin: 0; text-align: center; padding: 14px 8px; }
.stat b { font-size: 26px; display: block; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.track { padding: 12px 0; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: 0; }
.track .t { font-weight: 600; margin: 4px 0 8px; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.pulse-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 8px; }
.pulse-bars div { flex: 1; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; }
.pulse-bars div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-2); font-weight: 700; }
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.price .card { margin: 0; }
.price .amt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.price ul { padding-left: 18px; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.price .card.pick { outline: 2px solid var(--brand); }

#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.recbar { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.recbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* =====================================================================
   v2: icons, cinematic theme, company branding, player bar, new screens
   ===================================================================== */
:root { --brand-rgb: 34,184,240; --brand2-rgb: 59,91,253; --logo: none; }
svg .d { fill: currentColor; fill-opacity: .22; stroke: none; }
.nav button svg, .icon-btn svg { transition: transform .18s, filter .25s; }
.nav button.on svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .75)); }
.nav button.on svg .d { fill-opacity: .4; }
.icon-btn.glow { color: var(--brand-2); filter: drop-shadow(0 0 8px rgba(var(--brand2-rgb), .7)); }

/* ---------- cinematic (default) ---------- */
:root[data-style="cinematic"] {
  --bg: #04060C; --surface: rgba(255,255,255,.055); --surface-2: rgba(255,255,255,.085); --line: rgba(255,255,255,.10);
  --ink: #EEF4FF; --ink-2: #A9B6CA; --ink-3: #6F7E95;
  --brand-soft: rgba(var(--brand-rgb), .16); --mine: rgba(var(--brand-rgb), .14);
  --green: #34D399; --green-soft: rgba(52,211,153,.14); --yellow: #FBBF24; --yellow-soft: rgba(251,191,36,.14); --red: #FB7185; --red-soft: rgba(251,113,133,.16);
  --shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  color-scheme: dark;
}
[data-style="cinematic"] body {
  background:
    radial-gradient(900px 600px at 0% -10%, rgba(var(--brand-rgb), .26), transparent 60%),
    radial-gradient(900px 650px at 105% 5%, rgba(var(--brand2-rgb), .22), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(var(--brand-rgb), .12), transparent 60%),
    #04060C;
  background-attachment: fixed;
}
[data-style="cinematic"] body::before {
  content: ''; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--brand-rgb), .16) 70deg, transparent 140deg, rgba(var(--brand2-rgb), .14) 220deg, transparent 300deg);
  filter: blur(90px); animation: aurora 38s linear infinite;
}
[data-style="cinematic"] body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 75%);
}
@keyframes aurora { to { transform: rotate(360deg); } }
[data-style="cinematic"] .top, [data-style="cinematic"] .nav, [data-style="cinematic"] .composer, [data-style="cinematic"] .chathead {
  background: rgba(6,10,20,.62); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-color: var(--line);
}
[data-style="cinematic"] .card, [data-style="cinematic"] .msg, [data-style="cinematic"] .qitem, [data-style="cinematic"] .action, [data-style="cinematic"] .sheet .card {
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
[data-style="cinematic"] .msg.mine { background: linear-gradient(135deg, rgba(var(--brand-rgb), .26), rgba(var(--brand2-rgb), .18)); border-color: rgba(var(--brand-rgb), .35); }
[data-style="cinematic"] .msg.f-red { border-left: 4px solid var(--red); box-shadow: var(--shadow), 0 0 26px rgba(251,113,133,.18); }
[data-style="cinematic"] .msg.f-yellow { border-left: 4px solid var(--yellow); }
[data-style="cinematic"] .msg.unheard:not(.mine) { outline: 0; box-shadow: var(--shadow), 0 0 0 1px rgba(var(--brand-rgb), .55), 0 0 22px rgba(var(--brand-rgb), .25); }
[data-style="cinematic"] .msg .who { color: var(--brand); }
[data-style="cinematic"] input, [data-style="cinematic"] select, [data-style="cinematic"] textarea { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--ink); }
[data-style="cinematic"] select option { background: #0B1222; }
[data-style="cinematic"] .btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 8px 26px rgba(var(--brand-rgb), .32), inset 0 1px 0 rgba(255,255,255,.28); }
[data-style="cinematic"] .btn.ghost { background: rgba(255,255,255,.07); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
[data-style="cinematic"] .btn.line { background: transparent; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
[data-style="cinematic"] .btn.red { background: linear-gradient(135deg, #FB7185, #E11D48); color: #fff; box-shadow: 0 8px 26px rgba(225,29,72,.4); }
[data-style="cinematic"] .top .title { background: linear-gradient(90deg, #fff, rgba(var(--brand-rgb), 1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="cinematic"] .nav button.on { color: var(--brand); }
[data-style="cinematic"] .nav button.on::before { content: ''; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px rgba(var(--brand-rgb), .9); }
@media (min-width: 900px) { [data-style="cinematic"] .nav button.on::before { top: 50%; left: 0; width: 3px; height: 30px; margin: -15px 0 0; border-radius: 0 4px 4px 0; } }
[data-style="cinematic"] .count { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 0 12px rgba(var(--brand-rgb), .6); }
[data-style="cinematic"] .pill { background: rgba(255,255,255,.08); }
[data-style="cinematic"] .pill.green { background: var(--green-soft); } [data-style="cinematic"] .pill.yellow { background: var(--yellow-soft); } [data-style="cinematic"] .pill.red { background: var(--red-soft); }
[data-style="cinematic"] .pill.ext { background: rgba(167,139,250,.16); color: #C4B5FD; }
[data-style="cinematic"] .sheet { background: rgba(8,12,24,.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--line); }
[data-style="cinematic"] .scrim { background: rgba(0,0,0,.6); }
[data-style="cinematic"] .tabs, [data-style="cinematic"] .seg { background: rgba(255,255,255,.06); }
[data-style="cinematic"] .tabs button.on, [data-style="cinematic"] .seg button.on { background: linear-gradient(135deg, rgba(var(--brand-rgb), .35), rgba(var(--brand2-rgb), .3)); color: #fff; }
[data-style="cinematic"] .daysep { background: rgba(255,255,255,.06); }
[data-style="cinematic"] .lock { background: rgba(167,139,250,.14); color: #DDD6FE; }
[data-style="cinematic"] .auth { background: transparent; }
[data-style="cinematic"] .auth .brand img.wordmark { display: none; }
[data-style="cinematic"] .auth .brand .mark { display: inline-block; filter: drop-shadow(0 0 30px rgba(var(--brand-rgb), .6)); }
[data-style="cinematic"] .auth .brand h1.mark { display: block; background: linear-gradient(90deg, #fff, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="cinematic"] #toast { background: rgba(16,24,44,.95); color: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
[data-style="cinematic"] .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.4); }

/* the big talk button: rotating light ring */
.mic { position: relative; isolation: isolate; }
[data-style="cinematic"] .mic { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 40px rgba(var(--brand-rgb), .55); }
[data-style="cinematic"] .mic::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, transparent, rgba(var(--brand-rgb), .95), transparent 40%, rgba(var(--brand2-rgb), .9), transparent 75%); animation: aurora 3.5s linear infinite; opacity: .9;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.mic.rec { background: linear-gradient(145deg, #FB7185, #E11D48) !important; }
.mic.rec::before { background: conic-gradient(from 0deg, transparent, #FB7185, transparent 50%, #F43F5E, transparent) !important; animation-duration: 1s !important; }
.mic-sm { width: 46px; height: 46px; } .mic-sm svg { width: 22px; height: 22px; }
.speak-mic { width: 120px; height: 120px; }
[data-style="cinematic"] .fab { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 45%), linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 14px 40px rgba(var(--brand-rgb), .5); }
[data-style="cinematic"] .fab small { color: var(--brand); text-shadow: 0 0 10px rgba(var(--brand-rgb), .8); }
[data-style="cinematic"] .player { background: linear-gradient(135deg, rgba(var(--brand-rgb), .55), rgba(var(--brand2-rgb), .5)); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 20px 50px rgba(var(--brand-rgb), .3), inset 0 1px 0 rgba(255,255,255,.25); }
[data-style="cinematic"] .player .big { color: var(--brand-2); box-shadow: 0 0 30px rgba(255,255,255,.4); }
.play { transition: transform .15s, box-shadow .2s; }
.play.on { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .25), 0 0 20px rgba(var(--brand-rgb), .6); }
[data-style="cinematic"] .play { background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; }
.play.sm { width: 34px; height: 34px; } .play.sm svg { width: 15px; height: 15px; }
.wave { cursor: pointer; }
[data-style="cinematic"] .wave i { background: rgba(255,255,255,.35); }
[data-style="cinematic"] .wave i.on { background: linear-gradient(180deg, var(--brand), var(--brand-2)); box-shadow: 0 0 8px rgba(var(--brand-rgb), .6); opacity: 1; }
.msg.now { box-shadow: var(--shadow), 0 0 0 2px rgba(var(--brand-rgb), .7), 0 0 30px rgba(var(--brand-rgb), .3) !important; }
.tline { display: flex; align-items: flex-start; gap: 10px; }
.tline .txt { padding-top: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(var(--brand-rgb), .14); }
.msg.flat { box-shadow: none !important; background: transparent !important; border: 0 !important; padding: 0; max-width: 100%; outline: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* brand header + logo watermark */
.brandmark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; overflow: hidden; }
.brandmark img { width: 100%; height: 100%; object-fit: contain; }
.brandmark.has-logo { background: rgba(255,255,255,.92); padding: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 22px rgba(var(--brand-rgb), .45); }
[data-style="cinematic"] .brandmark:not(.has-logo) { filter: drop-shadow(0 0 12px rgba(var(--brand-rgb), .7)); }
.chatview { position: relative; }
.chatview::before { content: ''; position: absolute; inset: 70px 0 140px; background: var(--logo) center / min(46%, 260px) no-repeat; opacity: .06; pointer-events: none; filter: saturate(1.2); }

/* opening intro with the company logo */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 14px; background: #03050A; animation: introIn .35s ease-out; }
.intro img { width: 120px; height: 120px; object-fit: contain; border-radius: 26px; animation: logoIn 1.2s cubic-bezier(.2,.9,.2,1) both; filter: drop-shadow(0 0 40px rgba(var(--brand-rgb), .8)); }
.intro-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .45), rgba(var(--brand2-rgb), .15) 45%, transparent 70%); animation: glowIn 1.6s ease-out both; }
.intro-name { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; animation: textIn .9s .45s ease-out both; }
.intro-by { position: relative; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55); animation: textIn .9s .7s ease-out both; }
.intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 1.4s .3s ease-in-out both; }
.intro.out { opacity: 0; transition: opacity .6s; }
@keyframes introIn { from { opacity: 0; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-6deg); filter: blur(12px) drop-shadow(0 0 0 transparent); } }
@keyframes glowIn { from { opacity: 0; transform: scale(.3); } }
@keyframes textIn { from { opacity: 0; transform: translateY(12px); letter-spacing: .2em; } }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* player bar */
.pbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 10px + var(--safe-b)); width: min(560px, calc(100vw - 20px)); z-index: 30;
  border-radius: 20px; padding: 10px 14px 12px; background: rgba(10,16,32,.9); color: #EEF4FF; border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--brand-rgb), .25), 0 0 40px rgba(var(--brand-rgb), .18); animation: up .2s ease-out; }
.in-chat ~ .pbar { bottom: calc(150px + var(--safe-b)); }
@media (min-width: 900px) { .pbar { bottom: 16px; } .in-chat ~ .pbar { bottom: 150px; } }
body.has-pbar .fab { bottom: calc(var(--nav-h) + 160px + var(--safe-b)); }
.pb-top { display: flex; align-items: center; gap: 8px; }
.pb-title { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.pb-title b { overflow: hidden; text-overflow: ellipsis; }
.pb-title span { font-size: 12px; color: rgba(255,255,255,.55); }
.pbar .icon-btn { color: #EEF4FF; width: 40px; height: 40px; }
.pbar .icon-btn:hover { background: rgba(255,255,255,.08); }
.pbar .icon-btn:disabled { opacity: .3; }
.pb-seek { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.pb-seek input[type=range] { flex: 1; padding: 0; border: 0; background: transparent; accent-color: var(--brand); height: 24px; box-shadow: none; }
.pb-ctl { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.pb-play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: 0 0 24px rgba(var(--brand-rgb), .6); }
.pb-play svg { width: 24px; height: 24px; }
.pb-speed { min-width: 44px; height: 32px; border-radius: 10px; font-weight: 800; font-size: 13px; color: #EEF4FF; background: rgba(255,255,255,.08); }

/* tiles (dashboard actions) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 18px; font-weight: 700; font-size: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .2s; }
.tile svg { width: 30px; height: 30px; color: var(--brand); filter: drop-shadow(0 0 8px rgba(var(--brand-rgb), .55)); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px rgba(var(--brand-rgb), .4), 0 0 26px rgba(var(--brand-rgb), .2); }
.tile.em svg { color: var(--red); filter: drop-shadow(0 0 10px rgba(251,113,133,.8)); }
.tile.em { border-color: rgba(251,113,133,.35); }
.ico-tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--brand); background: rgba(var(--brand-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3); }
.ico-tile svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .6)); }
.ico-tile.sm { width: 34px; height: 34px; border-radius: 11px; } .ico-tile.sm svg { width: 18px; height: 18px; }
.ico-tile.em { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(251,113,133,.4); }
.glow-card { box-shadow: var(--shadow), 0 0 0 1px rgba(var(--brand-rgb), .45), 0 0 30px rgba(var(--brand-rgb), .2) !important; }
.avatar.sys { background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; }
.avatar.sys svg { width: 24px; height: 24px; }
.avatar.sys.em { background: linear-gradient(145deg, #FB7185, #E11D48); }

/* emergency */
.em-card { margin: -2px; }
.em-head { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 15px; letter-spacing: .12em; margin-bottom: 6px; }
.em-head svg { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(251,113,133,.9)); animation: beat 1.2s infinite; }
.msg.k-emergency { border: 1px solid rgba(251,113,133,.5) !important; background: linear-gradient(160deg, rgba(251,113,133,.18), rgba(225,29,72,.06)) !important; box-shadow: 0 0 40px rgba(251,113,133,.25) !important; max-width: min(96%, 560px); }
.btn.em-safe { background: linear-gradient(135deg, #34D399, #059669) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(5,150,105,.4) !important; }
.em-mine { margin-top: 10px; display: flex; gap: 6px; align-items: center; font-weight: 700; }
.em-mine.safe { color: var(--green); } .em-mine.help { color: var(--red); }
.em-mine svg { width: 18px; height: 18px; }
.qitem.em { border-left-color: var(--red); box-shadow: var(--shadow), 0 0 30px rgba(251,113,133,.25); }
.em-live { border-color: rgba(251,113,133,.45) !important; box-shadow: var(--shadow), 0 0 30px rgba(251,113,133,.2) !important; }
.em-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.em-counts div { padding: 10px 4px; border-radius: 14px; background: var(--surface-2); }
.em-counts b { display: block; font-size: 24px; color: var(--green); }
.em-counts div:nth-child(3) b { color: var(--ink-2); }
.em-counts .help b { color: var(--red); }
.em-counts span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.em-counts.big b { font-size: 34px; }
.em-sheet h2 { display: flex; align-items: center; gap: 8px; color: var(--red); }
.em-sheet h2 svg, .sheet h2 svg { width: 26px; height: 26px; }

/* shout-outs */
.kudos .kd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kudos .kd-head svg { width: 22px; height: 22px; color: #FBBF24; filter: drop-shadow(0 0 8px rgba(251,191,36,.8)); }
.msg.k-kudos { border: 1px solid rgba(251,191,36,.35) !important; background: linear-gradient(160deg, rgba(251,191,36,.14), rgba(var(--brand-rgb), .06)) !important; }

/* search, ask, know-how, recorder, brand card */
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.searchbox input { padding-left: 38px; margin: 4px 0 8px; }
mark { background: rgba(var(--brand-rgb), .35); color: inherit; border-radius: 4px; padding: 0 2px; }
.ask-card .row input { flex: 1; }
.answer { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .25); }
.answer p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.sop .sop-body { white-space: pre-wrap; margin-top: 6px; max-height: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.recorder { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.side-btns { display: flex; flex-direction: column; gap: 4px; }
.brand-card .logo-drop { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.92); color: #64748B; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 0 30px rgba(var(--brand-rgb), .3); }
.brand-card .logo-drop img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.brand-card .logo-drop svg { width: 30px; height: 30px; }
input[type=color] { height: 46px; padding: 4px; cursor: pointer; }
label.btn { display: inline-flex; color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  [data-style="cinematic"] body::before, [data-style="cinematic"] .mic::before, .em-head svg, .count.red { animation: none !important; }
}
/* v2.1: toasts sit above the player instead of covering its buttons; Speak button clears the player */
#toast { width: max-content; }
body.has-pbar #toast { bottom: calc(var(--nav-h) + 150px + var(--safe-b)); }
body.has-pbar .in-chat ~ #toast, body.has-pbar.chat-open #toast { bottom: calc(290px + var(--safe-b)); }
body.has-pbar .fab { bottom: calc(var(--nav-h) + 168px + var(--safe-b)); }
@media (min-width: 900px) { body.has-pbar #toast { bottom: 160px; } body.has-pbar .fab { bottom: 170px; } }

/* ===================== v3: people, requests, drive mode, new tools ===================== */
.avatar { position: relative; overflow: visible; }
.avatar.ph { background: var(--surface-2) !important; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.avatar .st { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink-3); }
.avatar.sm .st { width: 11px; height: 11px; }
.st-meeting { background: #A855F7 !important; } .st-driving { background: #0EA5E9 !important; } .st-off { background: #64748B !important; }
.pill.st-meeting, .pill.st-driving, .pill.st-off { color: #fff; }
.who img.mini { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: -4px; margin-right: 6px; }
.autoreply { align-self: center; max-width: 86%; margin: 6px auto; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; display: flex; gap: 6px; align-items: center; }

/* request cards */
.rq-card { display: flex; flex-direction: column; gap: 6px; }
.rq-head { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.rq-head .pill { margin-left: auto; text-transform: none; letter-spacing: 0; }
.pill.rq-open { background: var(--yellow-soft); color: var(--yellow); } .pill.rq-onit { background: var(--brand-soft); color: var(--brand); }
.pill.rq-done, .pill.rq-approved { background: var(--green-soft); color: var(--green); } .pill.rq-declined, .pill.rq-unrouted { background: var(--red-soft); color: var(--red); }
.rq-to { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-2); margin: 4px 0; }
.rq-note { font-size: 13px; }
.pick-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; margin: 10px 0; background: linear-gradient(135deg, rgba(var(--brand-rgb, 2,132,199), .16), rgba(var(--brand2-rgb, 56,189,248), .08)); border: 1px solid rgba(var(--brand-rgb, 2,132,199), .35); }
.pick-card .avatar { width: 64px; height: 64px; font-size: 22px; }
.alts { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.alt { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; font-size: 12px; color: var(--ink-2); }
.alt svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--surface-2); }
.warnbox { display: flex; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); font-size: 14px; }
.warnbox svg { color: var(--yellow); flex: none; margin-top: 2px; }
.warnbox .sugg { margin: 6px 0; font-style: italic; color: var(--ink-2); }

/* who's who */
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.who-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.who-card .avatar { width: 64px; height: 64px; font-size: 22px; margin-bottom: 4px; }
.who-card b { font-size: 15px; } .who-card .muted { font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.tags i { font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.tags.big { justify-content: flex-start; } .tags.big i { font-size: 14px; padding: 6px 12px; }
.person-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.person-hero .avatar { width: 108px; height: 108px; font-size: 36px; } .person-hero h2 { margin: 6px 0 0; }
.me-hero .photo-pick { position: relative; cursor: pointer; margin: 0; }
.me-hero .photo-pick .avatar { width: 72px; height: 72px; font-size: 24px; }
.me-hero .cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.seg.wrap { flex-wrap: wrap; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 12px; margin-left: 6px; vertical-align: 2px; }

/* decisions, checklists, incidents, spots, capture */
.dec .txt { font-size: 16px; font-weight: 600; }
.qrow { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.qrow input:first-child { flex: 1 1 200px; } .qrow select { width: auto; } .qrow input[data-min], .qrow input[data-max] { width: 90px; }
.cl-run h2 { font-size: 28px; line-height: 1.2; margin: 8px 0 16px; }
.seg.big button { flex: 1; padding: 18px; font-size: 20px; }
.kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kv span { flex: 0 0 120px; color: var(--ink-3); }
.qrbox { width: 92px; height: 92px; flex: none; border-radius: 12px; background: #fff; padding: 6px; } .qrbox img { width: 100%; height: 100%; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; margin: 8px 0; } .check input { width: auto; }
.capture-live { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 18px; background: var(--red-soft); margin: 10px 0; font-size: 22px; }
.rec-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { opacity: .3; transform: scale(.8); } }
.btn.red { background: var(--red); color: #fff; }
.src { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--brand); font-weight: 600; }
.ai-row { padding: 12px 0; border-bottom: 1px solid var(--line); } .ai-row:last-child { border-bottom: 0; }
.ai-row:not(.on) b { color: var(--ink-3); }
.spot-page { text-align: center; } .spot-page h1 { margin: 6px 0 16px; } .spot-logo { height: 72px; max-width: 70%; object-fit: contain; margin-bottom: 8px; }
.spot-page .card { text-align: left; }
.drive-btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }

/* drive mode: big, dark, nothing to read while driving */
.drive { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 35%, rgba(var(--brand-rgb, 2,132,199), .28), transparent 60%), #050A14; color: #fff; padding: calc(14px + var(--safe-t)) 18px calc(18px + var(--safe-b)); }
.drive-top { display: flex; align-items: center; justify-content: space-between; } .drive-top .icon-btn { color: #fff; }
.drive-tag { display: flex; gap: 8px; align-items: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; opacity: .8; }
.drive-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.drive-orb { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: 0 0 60px rgba(var(--brand-rgb, 2,132,199), .6); transition: transform .3s; }
.drive-orb svg { width: 60px; height: 60px; }
.drive-orb.listening { animation: orb 1s ease-in-out infinite; box-shadow: 0 0 90px rgba(var(--brand-rgb, 2,132,199), .95); }
.drive-orb.playing { animation: orb 2.4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.08); } }
.drive-big { font-size: 34px; font-weight: 800; line-height: 1.15; max-width: 92%; }
.drive-small { font-size: 17px; opacity: .7; max-width: 92%; }
.drive-ctl { display: flex; justify-content: center; gap: 22px; margin-bottom: 16px; }
.drive-ctl button { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.drive-ctl button.big { width: 96px; height: 96px; background: #fff; color: #050A14; }
.drive-ctl svg { width: 34px; height: 34px; }
.drive-talk { height: 76px; border-radius: 22px; font-size: 21px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.12); color: #fff; }
.drive-talk.rec { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .drive-orb, .rec-dot { animation: none !important; } }
@media (max-width: 430px) { #brief { padding: 0 10px; font-size: 0; gap: 0; } #brief svg { width: 18px; height: 18px; } .top .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ===================== TALK: the main screen ===================== */
.talk { display: flex; flex-direction: column; gap: 14px; }
.talk-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 8px 8px; }
.talk-greet { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.talk-sub { font-size: 26px; font-weight: 800; margin: 4px 0 22px; letter-spacing: -.01em; }
.talk-ring { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.talk-ring::before, .talk-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb, 2,132,199), .35); animation: talkwave 3.2s ease-out infinite; }
.talk-ring::after { animation-delay: 1.6s; }
@keyframes talkwave { from { transform: scale(.72); opacity: .9; } to { transform: scale(1.12); opacity: 0; } }
.talk-mic { position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.45), transparent 42%), linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 18px 60px rgba(var(--brand-rgb, 2,132,199), .55), inset 0 -10px 30px rgba(0,0,0,.18); transition: transform .15s; touch-action: none; -webkit-user-select: none; user-select: none; }
.talk-mic svg { width: 66px; height: 66px; }
.talk-mic:active { transform: scale(.96); }
.talk-mic.rec { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.4), transparent 42%), linear-gradient(145deg, #F43F5E, #DC2626); box-shadow: 0 0 0 10px rgba(220,38,38,.18), 0 18px 70px rgba(220,38,38,.6); }
.talk-hero.rec .talk-ring::before, .talk-hero.rec .talk-ring::after { border-color: rgba(220,38,38,.55); animation-duration: 1.4s; }
.talk-hero.busy .talk-mic { opacity: .55; }
.talk-hint { margin-top: 16px; min-height: 22px; font-size: 15px; color: var(--ink-2); }
.talk-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 6px; max-width: 560px; }
.talk-ex .chip-btn { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.talk .typebox { width: 100%; max-width: 560px; margin-top: 8px; }
.talk-cards { display: grid; gap: 10px; }
@media (min-width: 900px) { .talk-cards { grid-template-columns: repeat(3, 1fr); } .talk-ring { width: 240px; height: 240px; } .talk-mic { width: 190px; height: 190px; } }
.talk-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.talk-card b { display: block; font-size: 16px; } .talk-card span { font-size: 13px; color: var(--ink-3); }
.talk-card > svg:first-child { color: var(--brand); flex: none; }
.talk-card.red { border-color: var(--red); background: var(--red-soft); } .talk-card.red > svg:first-child { color: var(--red); }
.nav-talk.on svg { filter: drop-shadow(0 0 8px rgba(var(--brand-rgb, 2,132,199), .8)); }
[data-style="cinematic"] .talk-card { background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
@media (prefers-reduced-motion: reduce) { .talk-ring::before, .talk-ring::after { animation: none; opacity: 0; } }
.talk-ring::before, .talk-ring::after { pointer-events: none; z-index: 0; }
.talk-mic { z-index: 1; }
/* the HeardYa ear is the big "tap and speak" button */
.talk-mic { overflow: visible; padding: 0; background: #0A3A8C; }
.talk-mic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.16); clip-path: circle(43% at 50% 50%); pointer-events: none; transition: transform .2s, filter .2s; }
.talk-mic::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); box-shadow: 0 0 40px rgba(var(--brand-rgb, 2,132,199), .7), inset 0 0 30px rgba(120,220,255,.35); pointer-events: none; }
.talk-badge { position: absolute; right: 6px; bottom: 6px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
.talk-badge svg { width: 24px !important; height: 24px !important; }
.talk-mic.rec { background: #0A3A8C; box-shadow: 0 0 0 10px rgba(220,38,38,.2), 0 18px 70px rgba(220,38,38,.65); }
.talk-mic.rec img { animation: earpulse 1.1s ease-in-out infinite; filter: saturate(1.2) brightness(1.1); }
.talk-mic.rec::after { border-color: rgba(244,63,94,.9); box-shadow: 0 0 50px rgba(244,63,94,.8); }
.talk-mic.rec .talk-badge { background: #DC2626; color: #fff; }
@keyframes earpulse { 50% { transform: scale(1.24); } }
@media (prefers-reduced-motion: reduce) { .talk-mic.rec img { animation: none; } }
/* request preview: name never squeezed by the button */
.rq-to { flex-wrap: wrap; } .rq-to .grow { min-width: 130px; } .rq-to .btn { white-space: nowrap; }
/* network access */
.access-pending { padding: 12px; margin-bottom: 14px; border-radius: 14px; background: var(--yellow-soft); }
.access-pending b { display: flex; align-items: center; gap: 6px; }
.invite-out { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bigcode { font: 800 34px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; margin: 4px 0 10px; color: var(--brand); }
.code-in { font: 700 24px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; text-align: center; }

/* ===================== v4 HUD: cinematic mission-control look (Cinematic style only) ===================== */
@font-face { font-family: 'HY Display'; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HY Display'; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'HY Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HY Mono'; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
[data-style="cinematic"] { --hud: rgba(var(--brand-rgb), .9); --hud-dim: rgba(var(--brand-rgb), .28); --mono: 'HY Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --disp: 'HY Display', ui-sans-serif, system-ui, sans-serif; }
[data-style="cinematic"] body { font-family: var(--disp); letter-spacing: .005em; }
[data-style="cinematic"] h1, [data-style="cinematic"] h2, [data-style="cinematic"] .talk-sub, [data-style="cinematic"] .top .title, [data-style="cinematic"] .drive-big { font-family: var(--disp); letter-spacing: -.015em; }

/* scanlines + vignette over everything (very faint) */
[data-style="cinematic"] .shell::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.45)); }
/* perspective grid floor */
[data-style="cinematic"] .main::before { content: ''; position: fixed; left: -20%; right: -20%; bottom: 0; height: 42vh; pointer-events: none; z-index: 0;
  background: linear-gradient(rgba(var(--brand-rgb), .16) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, rgba(var(--brand-rgb), .16) 1px, transparent 1px) 0 0 / 44px 100%;
  transform: perspective(380px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); opacity: .55; }
[data-style="cinematic"] .main > * { position: relative; z-index: 1; }

/* panels: glass + HUD corner brackets + glowing top hairline */
[data-style="cinematic"] .card, [data-style="cinematic"] .tile, [data-style="cinematic"] .talk-card, [data-style="cinematic"] .who-card, [data-style="cinematic"] .action, [data-style="cinematic"] .pick-card {
  position: relative; border-radius: 12px; border: 1px solid rgba(var(--brand-rgb), .16);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .07), rgba(255,255,255,.02) 40%, rgba(0,0,0,.18)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.35); }
[data-style="cinematic"] .card::before, [data-style="cinematic"] .tile::before, [data-style="cinematic"] .talk-card::before, [data-style="cinematic"] .who-card::before, [data-style="cinematic"] .pick-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(var(--hud), var(--hud)) top left / 14px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) top left / 2px 14px no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / 14px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) top right / 2px 14px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / 14px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / 14px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) bottom right / 2px 14px no-repeat;
  opacity: .7; }
[data-style="cinematic"] .card::after, [data-style="cinematic"] .talk-card::after { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .9), transparent); opacity: .55; }

/* section headers: mono, with a marker and a hairline running out */
[data-style="cinematic"] .h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hud); }
[data-style="cinematic"] .h::before { content: ''; width: 6px; height: 6px; background: var(--hud); box-shadow: 0 0 10px var(--hud); transform: rotate(45deg); flex: none; }
[data-style="cinematic"] .h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hud-dim), transparent); }

/* tiles: icon in a glowing reactor ring, mono label */
[data-style="cinematic"] .tile { padding-top: 16px; }
[data-style="cinematic"] .tile svg { width: 26px; height: 26px; padding: 10px; box-sizing: content-box; border-radius: 50%; color: var(--brand);
  background: radial-gradient(circle, rgba(var(--brand-rgb), .22), transparent 70%); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .35), 0 0 22px rgba(var(--brand-rgb), .3); filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .7)); }
[data-style="cinematic"] .tile.em svg { color: #FB7185; background: radial-gradient(circle, rgba(251,113,133,.25), transparent 70%); box-shadow: 0 0 0 1px rgba(251,113,133,.5), 0 0 22px rgba(251,113,133,.35); filter: drop-shadow(0 0 6px rgba(251,113,133,.8)); }
[data-style="cinematic"] .tile span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
[data-style="cinematic"] .tile:hover, [data-style="cinematic"] .tile:focus-visible { border-color: rgba(var(--brand-rgb), .5); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .25), 0 0 30px rgba(var(--brand-rgb), .25); }

/* numbers: big glowing mono readouts */
[data-style="cinematic"] .stat .card b, [data-style="cinematic"] .em-counts b, [data-style="cinematic"] .bigcode { font-family: var(--mono); text-shadow: 0 0 18px rgba(var(--brand-rgb), .7); }
[data-style="cinematic"] .stat .card span, [data-style="cinematic"] .em-counts span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
[data-style="cinematic"] .count-pill, [data-style="cinematic"] .badge, [data-style="cinematic"] .count { font-family: var(--mono); }

/* LED progress bars */
[data-style="cinematic"] .bar { height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 6px, transparent 6px 8px); }
[data-style="cinematic"] .bar i { border-radius: 0; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 8px); filter: drop-shadow(0 0 5px rgba(var(--brand-rgb), .9)); }
[data-style="cinematic"] .bar.green i { background: repeating-linear-gradient(90deg, #34D399 0 6px, transparent 6px 8px); filter: drop-shadow(0 0 5px rgba(52,211,153,.9)); }

/* pills and chips: angular, mono */
[data-style="cinematic"] .pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 40%, transparent); }
[data-style="cinematic"] .talk-ex .chip-btn { border-radius: 6px; border-color: rgba(var(--brand-rgb), .25); background: rgba(var(--brand-rgb), .06); }

/* buttons: light sweep on primary */
[data-style="cinematic"] .btn { border-radius: 10px; position: relative; overflow: hidden; letter-spacing: .01em; }
[data-style="cinematic"] .btn:not(.ghost):not(.line)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* header + navigation dock */
[data-style="cinematic"] .top { position: relative; }
[data-style="cinematic"] .top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .8), transparent); }
[data-style="cinematic"] .nav { position: relative; }
[data-style="cinematic"] .nav::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .8), transparent); }
[data-style="cinematic"] .nav button span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
[data-style="cinematic"] .nav button.on svg { filter: drop-shadow(0 0 8px rgba(var(--brand-rgb), .9)); }
[data-style="cinematic"] .nav button.on::after { content: ''; position: absolute; inset: 8px 18%; border-radius: 10px; background: radial-gradient(ellipse at 50% 0%, rgba(var(--brand-rgb), .22), transparent 70%); pointer-events: none; }
[data-style="cinematic"] .nav-talk svg { width: 28px; height: 28px; }

/* Talk: HUD ring around the ear */
.talk-viz { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; z-index: 0; }
.hud-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; z-index: 0; animation: hudspin 40s linear infinite; }
.hud-ring circle { fill: none; }
.hud-ring .hr-ticks { stroke: rgba(var(--brand-rgb, 56,189,248), .55); stroke-width: 6; stroke-dasharray: 1.2 8.75; }
.hud-ring .hr-arc { stroke: rgba(var(--brand-rgb, 56,189,248), .9); stroke-width: 2; stroke-dasharray: 90 40 30 40 140 60; filter: drop-shadow(0 0 6px rgba(var(--brand-rgb, 56,189,248), .9)); animation: hudspin 14s linear infinite reverse; transform-origin: 120px 120px; }
.hud-ring .hr-thin { stroke: rgba(255,255,255,.12); stroke-width: 1; }
@keyframes hudspin { to { transform: rotate(360deg); } }
.talk-hero.rec .hud-ring .hr-ticks { stroke: rgba(244,63,94,.6); } .talk-hero.rec .hud-ring .hr-arc { stroke: #F43F5E; filter: drop-shadow(0 0 8px #F43F5E); animation-duration: 3s; }
.talk-hero.rec .talk-ring::before, .talk-hero.rec .talk-ring::after { opacity: 0; }
[data-style="cinematic"] .talk-greet { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--hud); }
[data-style="cinematic"] .talk-hint { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .hud-ring, .hud-ring .hr-arc { animation: none; } [data-style="cinematic"] .btn::after { animation: none; display: none; } }
.typebox .btn svg { width: 22px; height: 22px; flex: none; }
.track.row .grow { min-width: 0; }
/* automatic drive mode */
.drive-pass { align-self: center; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,.2); }
.talk-card.on > svg:first-child { color: var(--green); filter: drop-shadow(0 0 6px rgba(52,211,153,.7)); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: livepulse 2s infinite; flex: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* voice-only flow: the line that says what HeardYa is listening for */
.vflow{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:10px;border-radius:12px;background:rgba(var(--brand-rgb,56,189,248),.12);border:1px solid rgba(var(--brand-rgb,56,189,248),.35);font-weight:600;font-size:15px}
.vflow .live-dot{flex:none}

/* =====================================================================
   v5 "Studio": calm, modern, professional. One refined typeface, solid
   surfaces, no scanlines / grids / glow / HUD brackets. Applies to both
   styles (dark = "cinematic" key, light = "clean").
   ===================================================================== */
@font-face { font-family: 'HY Sans'; src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HY Sans'; src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HY Sans'; src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'HY Sans'; src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'HY Sans'; src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root { --font: 'HY Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; --mono: var(--font); --disp: var(--font); }
html, body, [data-style] body, button, input, select, textarea { font-family: var(--font) !important; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.005em; font-feature-settings: "ss01", "cv11"; }
h1, h2, .talk-sub, .top .title, .drive-big { letter-spacing: -.025em !important; }

/* dark style: deep graphite, solid panels */
:root[data-style="cinematic"] {
  --bg: #0B0E14; --surface: #131821; --surface-2: #1A202B; --line: rgba(255,255,255,.07);
  --ink: #F2F5F9; --ink-2: #A3ADBB; --ink-3: #6B7686;
  --brand-soft: rgba(var(--brand-rgb), .12); --mine: rgba(var(--brand-rgb), .12);
  --shadow: 0 1px 2px rgba(0,0,0,.35); --hud: var(--ink-3); --hud-dim: var(--line);
}
[data-style="cinematic"] body { background: var(--bg) !important; }
[data-style="cinematic"] body::before, [data-style="cinematic"] body::after,
[data-style="cinematic"] .shell::after, [data-style="cinematic"] .main::before { display: none !important; content: none !important; }
[data-style="cinematic"] .top, [data-style="cinematic"] .nav, [data-style="cinematic"] .composer, [data-style="cinematic"] .chathead { background: rgba(11,14,20,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
[data-style="cinematic"] .top::after, [data-style="cinematic"] .nav::before { display: none; }
[data-style="cinematic"] .top .title { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
[data-style="cinematic"] .auth .brand h1.mark { background: none; color: var(--ink); }

/* panels: flat, quiet borders */
[data-style] .card, [data-style] .tile, [data-style] .talk-card, [data-style] .who-card, [data-style] .action, [data-style] .pick-card, [data-style] .qitem, [data-style] .sheet .card {
  background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
[data-style] .card::before, [data-style] .card::after, [data-style] .tile::before, [data-style] .talk-card::before, [data-style] .talk-card::after, [data-style] .who-card::before, [data-style] .pick-card::before { display: none !important; }
[data-style="cinematic"] .msg { background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-style="cinematic"] .msg.mine { background: rgba(var(--brand-rgb), .14); border-color: rgba(var(--brand-rgb), .22); }
[data-style="cinematic"] .msg.unheard:not(.mine) { box-shadow: inset 3px 0 0 var(--brand); }
[data-style="cinematic"] .msg.f-red { box-shadow: none; }
.msg.now { box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .6) !important; }
[data-style="cinematic"] .sheet { background: #12161E; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-style="cinematic"] #toast { background: #1A202B; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
[data-style="cinematic"] .avatar { box-shadow: none; }

/* section headings: sentence case, quiet */
[data-style] .h { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin: 26px 4px 10px; }
[data-style] .h::before, [data-style] .h::after { display: none; }

/* buttons: solid, no sweep, no glow */
[data-style] .btn { border-radius: 12px; font-weight: 600; letter-spacing: 0; box-shadow: none !important; }
[data-style] .btn::after { display: none !important; animation: none !important; }
[data-style="cinematic"] .btn { background: var(--brand); }
[data-style="cinematic"] .btn.ghost { background: var(--surface-2); }
[data-style="cinematic"] .btn.red { background: #E11D48; }
[data-style="cinematic"] .tabs button.on, [data-style="cinematic"] .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
[data-style] .pill { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; border: 0; border-radius: 99px; }
[data-style] .count, [data-style] .badge { box-shadow: none; }
[data-style="cinematic"] .count { background: var(--brand); }

/* navigation: sentence case, no glow */
[data-style] .nav button span { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.nav button.on svg, [data-style] .nav button.on svg { filter: none; transform: none; }
[data-style] .nav button.on::before, [data-style] .nav button.on::after { display: none; }
.icon-btn.glow { filter: none; }

/* dashboard tiles: simple icon + label */
[data-style] .tiles { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
[data-style] .tile { padding: 16px 8px 14px; gap: 10px; }
[data-style] .tile svg { width: 24px; height: 24px; padding: 0; background: none; box-shadow: none; filter: none; border-radius: 0; color: var(--ink-2); }
[data-style] .tile span { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
[data-style] .tile:hover { transform: none; border-color: rgba(var(--brand-rgb), .4) !important; box-shadow: var(--shadow) !important; }
[data-style] .tile.em svg { color: var(--red); background: none; box-shadow: none; filter: none; }
.stat .card b, .em-counts b, .bigcode { text-shadow: none !important; }
.stat .card span, .em-counts span { letter-spacing: 0 !important; text-transform: none !important; font-size: 12px !important; }
[data-style] .bar { border-radius: 99px; background: var(--surface-2); }
[data-style] .bar i { border-radius: 99px; background: var(--brand); filter: none; }
[data-style] .bar.green i { background: var(--green); }

/* player, mic, play buttons: solid colour */
[data-style="cinematic"] .player { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
[data-style="cinematic"] .player .big { background: var(--brand); color: #fff; box-shadow: none; }
[data-style="cinematic"] .player .seg { background: rgba(255,255,255,.06); }
[data-style="cinematic"] .player .seg button { color: var(--ink-2); }
[data-style="cinematic"] .player .seg button.on { background: var(--surface); color: var(--ink); }
[data-style="cinematic"] .player .btn.ghost { background: rgba(255,255,255,.06); color: var(--ink); }
[data-style="cinematic"] .mic, [data-style="cinematic"] .play { background: var(--brand); box-shadow: none; }
[data-style="cinematic"] .mic::before { display: none; }
.play.on { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .2); }
[data-style="cinematic"] .wave i.on { background: var(--brand); box-shadow: none; }

/* Talk screen: one clear action */
.fab { display: none !important; }
.hud-ring { display: none; }
[data-style] .talk-greet { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.talk-sub { font-size: 28px; font-weight: 700; margin: 4px 0 30px; }
[data-style] .talk-hint { font-size: 14px; letter-spacing: 0; color: var(--ink-3); margin-top: 22px; }
.talk-ring::before, .talk-ring::after { border-width: 1px; border-color: rgba(var(--brand-rgb), .25); }
.talk-mic::after { border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 60px rgba(var(--brand-rgb), .28); }
.talk-badge { width: 40px; height: 40px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.talk-badge svg { width: 20px !important; height: 20px !important; }
.talk .linkbtn { margin-top: 10px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.talk-cards { gap: 8px; }
.talk-card { padding: 14px 16px; gap: 14px; }
.talk-card b { font-size: 15px; font-weight: 600; }
.talk-card span { font-size: 13px; }
.talk-card > svg:first-child { color: var(--ink-2); }
.talk-card.red > svg:first-child { color: var(--red); }
.talk-card.on > svg:first-child { color: var(--green); filter: none; }
.talk-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.talk-opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.talk-opt svg { width: 16px; height: 16px; }
.talk-opt.on { color: var(--ink); border-color: rgba(52,211,153,.4); }
.talk-opt.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (min-width: 900px) { .talk-cards { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 0 auto; width: 100%; } }

/* drive mode: calm */
.drive { background: #0B0E14; }
.drive-tag { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 15px; }
.drive-big { font-weight: 700; }
.drive-orb { background: var(--brand); box-shadow: 0 0 0 0 transparent; }
.drive-orb.listening { box-shadow: 0 0 0 14px rgba(var(--brand-rgb, 2,132,199), .18); }
.talk-cards > :only-child { grid-column: 1 / -1; }
.paybox { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); }
.price .card { display: flex; flex-direction: column; }
.price .card ul { flex: 1; margin-bottom: 14px; }
.muted.small { font-size: 12.5px; margin-top: 10px; }

/* v5: insights, import, activity log */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.kpi small { font-size: 12px; color: var(--ink-3); }
.kpi.good b, .num.good { color: var(--green); } .kpi.mid b, .num.mid { color: var(--yellow); } .kpi.low b, .num.low { color: var(--red); }
.num { font-size: 15px; min-width: 44px; text-align: right; }
.seg.mini button { padding: 5px 10px; font-size: 12px; }
.h.row { display: flex !important; align-items: center; }
.ann-more:not(:empty) { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ann-teams .row { padding: 3px 0; font-size: 14px; }
ul.plain { margin: 6px 0 12px; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
a.btn { text-decoration: none; }

/* v6: sign-in security and offline */
#netbar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(66px + env(safe-area-inset-top)); z-index: 60; padding: 7px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; max-width: 92vw; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#netbar.off { background: #3A2A12; color: #FBBF24; border: 1px solid rgba(251,191,36,.35); }
#netbar.sync { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.sso { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sso .or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.sso .or::before, .sso .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
ol.steps { padding-left: 20px; margin: 0 0 12px; line-height: 1.55; font-size: 14.5px; } ol.steps li { margin-bottom: 8px; }
.ts-qr { margin: 10px 0; text-align: center; } .ts-qr img { background: #fff; padding: 8px; border-radius: 12px; }
.ts-key { letter-spacing: .08em; word-break: break-all; }
.ts-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ts-codes code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; text-align: center; font-size: 15px; letter-spacing: .06em; }
