/* =====================================================================
   Interview Practice - dark charcoal & gold theme
   ===================================================================== */
:root {
    --bg: #0c0c0e;
    --panel-a: #1d1d21;
    --panel-b: #141417;
    --panel-solid: #18181b;
    --inset: #101013;
    --line: rgba(255, 255, 255, .06);
    --line-strong: rgba(255, 255, 255, .1);
    --text: #efe9e1;
    --text-soft: #c9c2b8;
    --muted: #8b867f;

    --gold: #e9a23b;
    --gold-light: #f7cf86;
    --gold-deep: #b9711f;
    --gold-grad: linear-gradient(180deg, #f8d48d 0%, #e9a23b 55%, #c47a24 100%);
    --gold-grad-h: linear-gradient(90deg, #c47a24, #e9a23b 55%, #f8d48d);
    --gold-soft: rgba(233, 162, 59, .12);
    --gold-glow: 0 0 24px rgba(233, 162, 59, .35);

    --orange: #e57a35;
    --coral: #e8604f;
    --coral-soft: rgba(232, 96, 79, .13);

    --radius: 22px;
    --radius-sm: 12px;
    --shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(233, 162, 59, .10), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(233, 162, 59, .07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.05rem; color: var(--text); }
a { color: var(--gold); }
p { color: var(--text-soft); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.spacer { flex: 1; }
.mt { margin-top: 18px; }
[hidden] { display: none !important; }

.gold-text {
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}

::selection { background: rgba(233, 162, 59, .35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2f; border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- Shell: icon rail + main ---------- */
.shell { display: flex; min-height: 100vh; }

.rail {
    position: sticky; top: 0; height: 100vh; flex: none; width: 76px;
    display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 22px 0;
    background: linear-gradient(180deg, #17171a, #0f0f11);
    border-right: 1px solid var(--line); overflow: hidden;
}
.rail-logo {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--gold-grad); color: #1a1206; box-shadow: var(--gold-glow);
}
.rail-nav { display: flex; flex-direction: column; gap: 14px; }
.rail-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    color: var(--muted); background: transparent; border: 1px solid transparent; transition: .2s;
}
a.rail-btn:hover { color: var(--gold-light); background: var(--gold-soft); }
.rail-btn.active {
    color: #1a1206; background: var(--gold-grad); box-shadow: var(--gold-glow);
}
.rail-glow {
    margin-top: auto; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 162, 59, .35), transparent 65%);
    transform: translateY(50%);
}

.main { flex: 1; min-width: 0; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px; border-bottom: 1px solid var(--line);
    background: rgba(12, 12, 14, .6); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 20;
}
.brand { color: var(--text); text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; letter-spacing: .01em; }
.brand b { color: var(--gold); font-weight: 700; margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-note { color: var(--muted); font-size: .85rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.container { max-width: 1060px; margin: 0 auto; padding: 32px 28px 72px; }

/* ---------- Panels ---------- */
.card {
    position: relative;
    background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card, .grid-2 > div > .card { margin-bottom: 20px; }
.grid-2.tight { gap: 28px; }

.step {
    display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
    border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: .8rem;
    border: 1px solid rgba(233, 162, 59, .35);
}

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; }
.alert-error { background: var(--coral-soft); border-color: rgba(232, 96, 79, .4); color: #ffb3a8; }
.alert-warning { background: var(--gold-soft); border-color: rgba(233, 162, 59, .4); color: var(--gold-light); text-align: left; }
.alert-success { background: var(--gold-soft); border-color: rgba(233, 162, 59, .4); color: var(--gold-light); }

/* ---------- Steps ---------- */
.steps {
    display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; flex-wrap: wrap;
}
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.steps li + li::before { content: ''; width: 34px; height: 1px; background: var(--line-strong); margin-right: 4px; }
.steps li span {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: #1f1f23; border: 1px solid var(--line-strong); color: var(--muted); font-size: .78rem; font-weight: 700;
}
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active span { background: var(--gold-grad); color: #1a1206; border-color: transparent; box-shadow: var(--gold-glow); }
.steps li.done { color: var(--text-soft); }
.steps li.done span { background: var(--gold-soft); color: var(--gold); border-color: rgba(233, 162, 59, .35); }

/* ---------- Hero ---------- */
.hero {
    display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center;
    padding: 36px 40px; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 162, 59, .14), transparent 65%); pointer-events: none;
}
.hero h1 { font-size: 2.3rem; margin-bottom: 12px; }
.hero p { max-width: 560px; margin: 0; }
.hero-stats { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats div {
    padding: 10px 16px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line);
    display: flex; flex-direction: column; min-width: 110px;
}
.hero-stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; color: var(--gold-light); }
.hero-stats span { font-size: .75rem; color: var(--muted); }

.hero-dial { position: relative; width: 230px; height: 230px; justify-self: center; }
.dial-ticks {
    position: absolute; inset: 0; border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 1deg, transparent 1deg 7.5deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
}
.dial-ring {
    position: absolute; inset: 20px; border-radius: 50%;
    background: conic-gradient(from 210deg, transparent 0 10%, #c47a24 10%, #f8d48d 70%, transparent 70%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    filter: drop-shadow(0 0 10px rgba(233, 162, 59, .6));
    animation: spin 14s linear infinite;
}
.dial-core {
    position: absolute; inset: 44px; border-radius: 50%; display: grid; place-items: center;
    color: var(--gold-light);
    background: radial-gradient(circle at 35% 30%, #3a3026, #17150f 70%);
    border: 1px solid rgba(233, 162, 59, .3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .7), 0 0 40px rgba(233, 162, 59, .18);
}
.dial-dot {
    position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
    background: var(--gold-light); box-shadow: 0 0 14px var(--gold);
    animation: orbit 6s linear infinite;
}
@keyframes orbit { from { transform: rotate(0deg) translateX(95px); } to { transform: rotate(360deg) translateX(95px); } }

/* ---------- Forms ---------- */
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 30px 16px; border: 1.5px dashed rgba(233, 162, 59, .3); border-radius: 16px;
    background: var(--inset); cursor: pointer; transition: .2s; text-align: center;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(233, 162, 59, .06); box-shadow: inset 0 0 30px rgba(233, 162, 59, .08); }
.dropzone.has-file { border-style: solid; border-color: var(--gold); background: rgba(233, 162, 59, .08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--gold-soft); color: var(--gold-light); border: 1px solid rgba(233, 162, 59, .3); margin-bottom: 4px;
}
.dz-text { font-weight: 600; word-break: break-all; }
.dz-hint { color: var(--muted); font-size: .8rem; }

.paste { margin-top: 14px; }
.paste summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.paste summary:hover { color: var(--gold-light); }

textarea {
    width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px;
    font: inherit; resize: vertical; background: var(--inset); color: var(--text);
}
textarea::placeholder { color: #5f5b56; }
textarea:focus { outline: none; border-color: rgba(233, 162, 59, .6); box-shadow: 0 0 0 3px rgba(233, 162, 59, .12); }

.field-label {
    display: block; font-weight: 600; font-size: .72rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
}

.settings-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin: 18px 0 26px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
    display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line-strong);
    border-radius: 14px; cursor: pointer; transition: .2s; background: var(--inset);
}
.segmented label small { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.segmented label:hover { border-color: rgba(233, 162, 59, .4); }
.segmented input:checked + label {
    border-color: var(--gold); background: linear-gradient(160deg, rgba(233, 162, 59, .18), rgba(233, 162, 59, .04));
    box-shadow: 0 0 20px rgba(233, 162, 59, .15);
}
.segmented input:checked + label strong { color: var(--gold-light); }
.segmented input:focus-visible + label { box-shadow: 0 0 0 3px rgba(233, 162, 59, .25); }
.segmented.compact { grid-template-columns: repeat(3, auto); }
.segmented.compact label { padding: 9px 18px; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-track {
    flex: none; position: relative; width: 52px; height: 28px; border-radius: 999px;
    background: #2a2a2f; border: 1px solid var(--line-strong); transition: .25s;
}
.toggle-thumb {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #8b867f; transition: .25s;
}
.toggle input:checked + .toggle-track { background: var(--gold-grad-h); border-color: transparent; box-shadow: var(--gold-glow); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(24px); background: #1a1206; }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px rgba(233, 162, 59, .25); }
.toggle-text { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: #1f1f23; color: var(--text);
    font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; transition: .2s;
}
.btn:hover:not(:disabled) { border-color: rgba(233, 162, 59, .5); color: var(--gold-light); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--gold-grad); border-color: transparent; color: #1a1206; box-shadow: 0 6px 20px rgba(233, 162, 59, .25); }
.btn-primary:hover:not(:disabled) { color: #1a1206; filter: brightness(1.08); box-shadow: 0 8px 28px rgba(233, 162, 59, .4); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
    background: rgba(255, 255, 255, .06); color: var(--text-soft); border: 1px solid var(--line);
}
.badge-light { background: rgba(247, 207, 134, .1); color: var(--gold-light); border-color: rgba(247, 207, 134, .25); }
.badge-medium { background: rgba(233, 162, 59, .14); color: var(--gold); border-color: rgba(233, 162, 59, .3); }
.badge-hard { background: var(--coral-soft); color: #ff9a8b; border-color: rgba(232, 96, 79, .35); }

.score-pill {
    margin-left: auto; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem;
    background: var(--gold-soft); color: var(--gold-light); white-space: nowrap; border: 1px solid rgba(233, 162, 59, .3);
    font-family: 'Space Grotesk', sans-serif;
}
.score-pill.hi { background: var(--gold-soft); color: var(--gold-light); }
.score-pill.mid { background: rgba(229, 122, 53, .14); color: #f5a06a; border-color: rgba(229, 122, 53, .35); }
.score-pill.lo { background: var(--coral-soft); color: #ff9a8b; border-color: rgba(232, 96, 79, .35); }
.score-pill.subtle { background: rgba(255, 255, 255, .05); color: var(--text-soft); border-color: var(--line); font-weight: 600; }

/* ---------- Recent ---------- */
.recent { list-style: none; padding: 0; margin: 0; }
.recent li + li { border-top: 1px solid var(--line); }
.recent a { display: flex; align-items: center; gap: 10px; padding: 14px 4px; color: var(--text); text-decoration: none; flex-wrap: wrap; }
.recent a:hover { color: var(--gold-light); }
.recent-scores { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.recent-scores .score-pill { margin-left: 0; }

/* ---------- Page header ---------- */
.interview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-soft); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.timer {
    font-family: 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600;
    color: var(--gold-light); padding: 6px 18px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line);
}

.progress { height: 6px; background: #222226; border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 0; background: var(--gold-grad-h); box-shadow: var(--gold-glow); transition: width .5s; }

/* ---------- Interview ---------- */
.intro { text-align: center; padding: 44px 32px; }
.intro p { max-width: 600px; margin: 0 auto 14px; }
.intro .btn { margin-top: 12px; }

.stage.voice { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.interviewer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 22px; }
.interviewer .eyebrow { margin-bottom: 4px; }
.interviewer .avatar { margin: 10px 0 4px; }
.interviewer p { margin: 6px 0 0; }
.q-counter {
    display: flex; align-items: baseline; gap: 4px; padding: 8px 22px; border-radius: 999px;
    background: var(--inset); border: 1px solid var(--line);
}
.q-counter strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--gold-light); line-height: 1; }
.q-counter span { color: var(--muted); font-size: .9rem; }
.badge:empty { display: none; }

/* ---------- Live call ---------- */
.voice-tips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.voice-tips span {
    padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--gold-light);
    background: var(--gold-soft); border: 1px solid rgba(233, 162, 59, .3);
}
.stage.voice .interviewer { position: sticky; top: 90px; }
.avatar.thinking { border-color: rgba(233, 162, 59, .6); animation: think 1.6s ease-in-out infinite; }
@keyframes think { 50% { box-shadow: inset 0 0 26px rgba(0, 0, 0, .7), 0 0 26px rgba(233, 162, 59, .35); } }
.wave.thinking { opacity: 1; }
.wave.thinking i { height: 6px; width: 6px; border-radius: 50%; animation: dots 1.2s ease-in-out infinite; }
@keyframes dots { 50% { opacity: .25; transform: translateY(-3px); } }

.call-controls { display: flex; gap: 14px; margin-top: 4px; }
.icon-btn {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    background: #232327; color: var(--gold-light); border: 1px solid var(--line-strong); transition: .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--gold); box-shadow: var(--gold-glow); }
.icon-btn.off { background: var(--gold-grad); color: #1a1206; border-color: transparent; }
.icon-btn.danger { background: linear-gradient(180deg, #ef7a68, #c0442f); color: #fff; border-color: transparent; }
.icon-btn.danger:hover:not(:disabled) { box-shadow: 0 0 22px rgba(232, 96, 79, .5); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }

.call-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.call-main > .card { margin-bottom: 0; }
.question-card.compact { padding: 20px 24px; }
.question-card.compact .q-text { margin: 0; font-size: 1.15rem; }

.conversation { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.feed {
    height: 380px; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px;
    scroll-behavior: smooth;
}
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; animation: rise .25s ease-out; }
.msg p { margin: 0; padding: 12px 16px; border-radius: 18px; line-height: 1.5; }
.msg-name { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 6px; }
.msg.ai { align-self: flex-start; }
.msg.ai p { background: #232327; border: 1px solid var(--line); color: var(--text); border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me p {
    background: linear-gradient(160deg, rgba(233, 162, 59, .22), rgba(233, 162, 59, .08));
    border: 1px solid rgba(233, 162, 59, .35); color: var(--text); border-top-right-radius: 6px;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.reply-row { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.reply-row input {
    flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--inset); color: var(--text); font: inherit;
}
.reply-row input::placeholder { color: #5f5b56; }
.reply-row input:focus { outline: none; border-color: rgba(233, 162, 59, .6); }

/* ---------- Results extras ---------- */
.follow-up .fu-question { color: var(--gold-light); font-style: italic; margin-bottom: 8px !important; }
.section-sub { margin: -8px 0 16px; }
.qa.rec summary .score-pill { font-family: inherit; }
.avatar {
    position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%;
    color: var(--gold-light);
    background: radial-gradient(circle at 35% 30%, #3a3026, #17150f 70%);
    border: 1px solid rgba(233, 162, 59, .35);
    box-shadow: inset 0 0 26px rgba(0, 0, 0, .7), 0 0 30px rgba(233, 162, 59, .12);
    transition: .3s;
}
.avatar svg { width: 48%; height: 48%; }
.avatar::before {
    content: ''; position: absolute; inset: -12px; border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 255, 255, .2) 0 1deg, transparent 1deg 9deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
}
.avatar.big { width: 130px; height: 130px; margin: 0 auto 22px; }
.avatar.speaking { box-shadow: inset 0 0 26px rgba(0, 0, 0, .7), 0 0 0 4px rgba(233, 162, 59, .35), 0 0 50px rgba(233, 162, 59, .45); animation: pulse 1.3s infinite; }
.avatar.listening { border-color: var(--gold-light); box-shadow: inset 0 0 26px rgba(0, 0, 0, .7), 0 0 0 4px rgba(247, 207, 134, .2), 0 0 36px rgba(247, 207, 134, .3); }
@keyframes pulse { 50% { box-shadow: inset 0 0 26px rgba(0, 0, 0, .7), 0 0 0 10px rgba(233, 162, 59, .1), 0 0 60px rgba(233, 162, 59, .5); } }

.status { font-weight: 600; color: var(--text-soft); letter-spacing: .02em; }

.wave { display: flex; gap: 5px; height: 26px; align-items: center; opacity: 0; transition: .2s; }
.wave i { display: block; width: 4px; height: 6px; border-radius: 2px; background: var(--gold-grad); }
.wave.speaking, .wave.listening { opacity: 1; }
.wave.speaking i, .wave.listening i { animation: bar 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s !important; }
.wave i:nth-child(3) { animation-delay: .3s !important; }
.wave i:nth-child(4) { animation-delay: .45s !important; }
.wave i:nth-child(5) { animation-delay: .6s !important; }
@keyframes bar { 50% { height: 24px; } }

.question-card .q-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.q-number { font-weight: 700; color: var(--gold); font-size: .85rem; letter-spacing: .04em; font-family: 'Space Grotesk', sans-serif; }
.q-text { font-size: 1.3rem; font-weight: 600; margin: 0 0 24px; color: var(--text); line-height: 1.45; }
.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

kbd {
    padding: 1px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px;
    background: #1f1f23; color: var(--text-soft); font-size: .78rem;
}

/* ---------- Overlay ---------- */
.overlay {
    position: fixed; inset: 0; display: grid; place-items: center;
    background: rgba(8, 8, 10, .82); backdrop-filter: blur(6px); z-index: 50;
}
.overlay-box { text-align: center; font-weight: 600; }
.overlay-box p { color: var(--text); }
.overlay-box .muted { color: var(--muted); }
.spinner {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 25%, #c47a24, #f8d48d);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    filter: drop-shadow(0 0 10px rgba(233, 162, 59, .6));
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Score rings (dials) ---------- */
.score-ring {
    --deg: calc(var(--score) * 3.6deg);
    --ring-a: #c47a24; --ring-b: #f8d48d;
    position: relative; flex: none; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--ring-a) 0deg, var(--ring-b) var(--deg), #26262b var(--deg));
    box-shadow: 0 0 34px rgba(233, 162, 59, .2);
}
.score-ring::before {
    content: ''; position: absolute; inset: -13px; border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 255, 255, .2) 0 1deg, transparent 1deg 7.5deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
}
.score-ring.hi { --ring-a: #c47a24; --ring-b: #f8d48d; }
.score-ring.mid { --ring-a: #b8541f; --ring-b: #f0a35e; box-shadow: 0 0 30px rgba(229, 122, 53, .2); }
.score-ring.lo { --ring-a: #a33a2c; --ring-b: #f07a68; box-shadow: 0 0 30px rgba(232, 96, 79, .2); }
.score-inner {
    width: 128px; height: 128px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2620, #131215 70%);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .8);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-inner strong { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; line-height: 1; color: var(--text); }
.score-inner span { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.score-ring.sm { width: 118px; height: 118px; }
.score-ring.sm::before { inset: -11px; }
.score-ring.sm .score-inner { width: 92px; height: 92px; }
.score-ring.sm .score-inner strong { font-size: 2rem; }

/* ---------- Resume report ---------- */
.score-card { display: flex; align-items: center; gap: 30px; padding: 30px; }
.score-card p { margin: 10px 0 0; }

.verdict-chip { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1px solid; }
.verdict-chip.hi { background: var(--gold-soft); color: var(--gold-light); border-color: rgba(233, 162, 59, .35); }
.verdict-chip.mid { background: rgba(229, 122, 53, .14); color: #f5a06a; border-color: rgba(229, 122, 53, .35); }
.verdict-chip.lo { background: var(--coral-soft); color: #ff9a8b; border-color: rgba(232, 96, 79, .35); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: .83rem; font-weight: 500; border: 1px solid; }
.chip.good { background: var(--gold-soft); color: var(--gold-light); border-color: rgba(233, 162, 59, .3); }
.chip.bad { background: var(--coral-soft); color: #ffaa9d; border-color: rgba(232, 96, 79, .3); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist strong { display: block; font-size: .92rem; font-weight: 600; }
.checklist small { color: var(--muted); }
.check-icon {
    flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .72rem;
}
.checklist .ok .check-icon { background: var(--gold-grad); color: #1a1206; box-shadow: 0 0 12px rgba(233, 162, 59, .35); }
.checklist .fail .check-icon { background: var(--coral-soft); color: #ff9a8b; border: 1px solid rgba(232, 96, 79, .4); }

h2.good { color: var(--gold-light); }
h2.warn { color: #f5a06a; }
.bullets { margin: 0; padding-left: 0; list-style: none; }
.bullets li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--text-soft); }
.bullets li::before {
    content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.bullets li.muted::before { display: none; }

.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(233, 162, 59, .14), rgba(233, 162, 59, .02) 60%), linear-gradient(160deg, var(--panel-a), var(--panel-b));
    border-color: rgba(233, 162, 59, .25);
}
.cta p { margin: 4px 0 0; }
.change-settings { margin-top: 12px; }
.change-settings summary { cursor: pointer; color: var(--gold); font-size: .88rem; font-weight: 500; }
.inline-settings { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Results ---------- */
.dash-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-row > .card, .stat-row > .card, .stage.voice > .card { margin-bottom: 0; }
.stat-row { margin-bottom: 20px; }
.summary { display: flex; align-items: center; gap: 34px; padding: 32px; }
.verdict { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.summary-text p { margin: 0; }

.chart-card { display: flex; flex-direction: column; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; min-height: 170px; padding-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; min-width: 0; height: 100%; }
.bar-value { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; color: var(--gold-light); }
.bar-track {
    position: relative; flex: 1; width: 100%; max-width: 26px; min-height: 120px; border-radius: 999px;
    background: linear-gradient(180deg, #232327, #1a1a1d); border: 1px solid var(--line);
    display: flex; align-items: flex-end; overflow: hidden;
}
.bar {
    width: 100%; border-radius: 999px; background: var(--gold-grad); box-shadow: 0 0 16px rgba(233, 162, 59, .45);
    min-height: 4px; transition: height .8s;
}
.bar.lo { background: linear-gradient(180deg, #f59a8a, #c0442f); box-shadow: 0 0 14px rgba(232, 96, 79, .4); }
.bar-col:hover .bar { filter: brightness(1.15); }
.bar-label { font-size: .74rem; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); padding: 20px 22px; }
a.stat:hover { border-color: rgba(233, 162, 59, .35); }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; line-height: 1.1; }
.stat-value small { font-size: .9rem; color: var(--muted); margin-left: 2px; }
.stat-bar { height: 6px; border-radius: 999px; background: #26262b; overflow: hidden; margin-top: 4px; }
.stat-bar span { display: block; height: 100%; background: var(--gold-grad-h); box-shadow: var(--gold-glow); border-radius: 999px; }
.stat-note { font-size: .8rem; color: var(--gold); }

.section-title { margin: 14px 0 16px; font-size: 1.2rem; }

.qa { padding: 0; }
.qa summary {
    display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa[open] { border-color: rgba(233, 162, 59, .25); }
.qa-question { font-weight: 600; }
.qa-body { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.qa-block { margin-top: 18px; }
.qa-block p { margin: 0; }
.answer { padding: 14px 16px; background: var(--inset); border: 1px solid var(--line); border-radius: 14px; }
.ideal p {
    padding: 14px 16px; border-radius: 14px; color: var(--text);
    background: linear-gradient(120deg, rgba(233, 162, 59, .12), rgba(233, 162, 59, .03));
    border: 1px solid rgba(233, 162, 59, .25);
}

/* ---------- Accounts: trial banner, login pop-up, forms, profile ---------- */
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn.active { border-color: rgba(233, 162, 59, .5); color: var(--gold-light); }
.inline-form { display: inline; margin: 0; }

.trial-banner {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px; margin-bottom: 20px;
    border: 1px solid rgba(233, 162, 59, .3); border-radius: var(--radius-sm); background: var(--gold-soft);
}
.trial-banner p { margin: 2px 0 0; }
.trial-banner .btn { margin-left: auto; flex-shrink: 0; }
.trial-count { font-family: 'Space Grotesk', sans-serif; color: var(--muted); white-space: nowrap; }
.trial-count strong { font-size: 1.6rem; color: var(--gold-light); }

.modal {
    position: relative; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 28px; border: 1px solid rgba(233, 162, 59, .3); border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: var(--shadow), var(--gold-glow);
}
.modal h2 { margin: 6px 0 10px; }
.modal-close {
    position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--muted);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--gold-light); }
.cred-hint { list-style: none; padding: 12px 14px; margin: 14px 0 10px; border-radius: var(--radius-sm); background: var(--inset); border: 1px solid var(--line); }
.cred-hint li { font-size: .88rem; word-break: break-word; }
.cred-hint li + li { margin-top: 10px; }
.cred-hint .field-label { margin-bottom: 2px; }

.auth-card { max-width: 460px; margin: 20px auto; }
.auth-card.wide { max-width: 620px; }
.auth-form { margin-top: 18px; }
.form-field { margin-bottom: 16px; }
.form-field .field-label { margin-bottom: 6px; }
.form-field input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font: inherit; background: var(--inset); color: var(--text);
}
.form-field input:focus { outline: none; border-color: rgba(233, 162, 59, .6); box-shadow: 0 0 0 3px rgba(233, 162, 59, .12); }
.field-error { color: #ffb3a8; font-size: .85rem; margin: 6px 0 0; }
.help { margin-top: 6px; }
.help ul { margin: 4px 0 0; padding-left: 18px; }

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.details dd { margin: 0; word-break: break-word; }

/* ---------- Home: info button and user guide ---------- */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hero-top .eyebrow { margin-bottom: 0; }
.info-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(233, 162, 59, .35); background: var(--gold-soft); color: var(--gold-light);
    font: inherit; font-size: .8rem; font-weight: 600;
}
.info-btn:hover { border-color: var(--gold); box-shadow: var(--gold-glow); }
.hero .privacy-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .85rem; color: var(--gold-light); }
.privacy-note svg { flex-shrink: 0; }
.modal.guide { width: min(680px, calc(100vw - 32px)); text-align: left; }
.guide h3 { font-size: 1rem; margin: 20px 0 6px; color: var(--gold-light); }
.guide ul { margin: 0; padding-left: 20px; }
.guide li { margin: 6px 0; font-size: .9rem; line-height: 1.55; color: var(--text-soft); }
.guide li strong { color: var(--text); }
.guide code { white-space: nowrap; font-size: .82rem; padding: 1px 6px; border-radius: 6px; background: var(--inset); color: var(--gold-light); }
.guide-privacy {
    display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--gold-soft); border: 1px solid rgba(233, 162, 59, .35); color: var(--gold-light);
}
.guide-privacy svg { flex-shrink: 0; margin-top: 2px; }
.guide-privacy strong { color: var(--text); }
.guide-privacy p { margin: 4px 0 0; font-size: .88rem; color: var(--text-soft); line-height: 1.55; }

/* ---------- Access waiting for admin approval ---------- */
.access-banner {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 20px;
    border: 1px solid rgba(232, 96, 79, .4); border-radius: var(--radius-sm); background: var(--coral-soft); color: #ffb3a8;
}
.access-banner svg { flex-shrink: 0; }
.access-banner div { flex: 1; min-width: 0; }
.access-banner strong { color: var(--text); }
.access-banner p { margin: 2px 0 0; font-size: .88rem; }
.setup.locked { opacity: .45; pointer-events: none; }
.setup.locked #start-btn { pointer-events: none; }
.access-pill {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 700;
    border: 1px solid; cursor: pointer; white-space: nowrap;
}
.access-pill.on { background: var(--gold-soft); color: var(--gold-light); border-color: rgba(233, 162, 59, .4); }
.access-pill.off { background: var(--coral-soft); color: #ff9a8b; border-color: rgba(232, 96, 79, .4); }
span.access-pill { cursor: default; }
button.access-pill:hover { filter: brightness(1.2); }
.access-usage { display: block; margin-top: 4px; white-space: nowrap; }

/* ---------- ATS resume prompt (report page) ---------- */
.prompt-card { border-color: rgba(233, 162, 59, .3); }
.prompt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.prompt-head > div { flex: 1; min-width: 240px; }
.prompt-head h2 { margin: 6px 0 8px; }
.prompt-head p { margin: 0; max-width: 640px; }
.prompt-head .btn { flex-shrink: 0; }
.btn.copied { filter: none; background: var(--gold-soft); color: var(--gold-light); border-color: rgba(233, 162, 59, .5); box-shadow: none; }
.prompt-steps { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 18px 0 4px; padding-left: 18px; color: var(--text-soft); font-size: .88rem; }
.prompt-steps li::marker { color: var(--gold); font-weight: 700; }
.prompt-box { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .8rem; line-height: 1.5; color: var(--text-soft); }

/* ---------- Admin dashboard ---------- */
.stat-row.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search-row input {
    flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    font: inherit; background: var(--inset); color: var(--text);
}
.search-row input:focus { outline: none; border-color: rgba(233, 162, 59, .6); box-shadow: 0 0 0 3px rgba(233, 162, 59, .12); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
    text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
    font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.data-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .badge { margin-left: 6px; }
.data-table .score-pill { margin-left: 0; }
.nowrap { white-space: nowrap; }
.cell-sub { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.actions-col { white-space: nowrap; text-align: right; position: sticky; right: 0; background: var(--panel-solid); }
.actions-col .btn + .inline-form { margin-left: 6px; }
.btn-danger:hover:not(:disabled) { border-color: rgba(232, 96, 79, .6); color: #ff9a8b; }
.form-field input[type=checkbox] { width: auto; margin-right: 8px; accent-color: var(--gold); }

.tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.tab {
    padding: 10px 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ---------- Admin usage chart ---------- */
/* Series colours validated for the dark surface (dataviz palette check): free = gold, logged in = blue */
:root { --viz-free: #b8741a; --viz-member: #3987e5; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.period-picker { display: inline-flex; gap: 6px; }
.period {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft);
    text-decoration: none; font-size: .85rem; font-weight: 600;
}
.period:hover { border-color: rgba(233, 162, 59, .4); }
.period.active { background: var(--gold-soft); border-color: rgba(233, 162, 59, .5); color: var(--gold-light); }

.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-row > .card { margin-bottom: 0; }
.muted-note { color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.swatch.free { background: var(--viz-free); }
.swatch.member { background: var(--viz-member); }
.legend { display: flex; gap: 14px; font-size: .82rem; color: var(--text-soft); }

.usage-row { grid-template-columns: 1.6fr 1fr; }
.u-plot { display: flex; gap: 8px; margin-top: 18px; }
.u-axis {
    display: flex; flex-direction: column; justify-content: space-between; height: 220px;
    font-size: .72rem; color: var(--muted); text-align: right; min-width: 18px; font-variant-numeric: tabular-nums;
}
.u-chart {
    flex: 1; display: flex; align-items: stretch; gap: 2px; height: 220px; min-width: 0;
    border-bottom: 1px solid var(--line-strong);
    background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 50%;
}
.u-chart.period-90 { gap: 1px; }
.u-col {
    position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; gap: 2px;
    border-radius: 4px 4px 0 0; outline: none; cursor: default;
}
.u-col:hover, .u-col:focus-visible { background: rgba(255, 255, 255, .04); }
.u-seg { display: block; min-height: 2px; }
.u-seg.free { background: var(--viz-free); }
.u-seg.member { background: var(--viz-member); }
.u-col .u-seg:last-of-type { border-radius: 4px 4px 0 0; }
.u-tip {
    display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5;
    padding: 10px 12px; border-radius: 10px; background: #26262b; border: 1px solid var(--line-strong);
    box-shadow: var(--shadow); font-size: .78rem; white-space: nowrap; color: var(--text);
    flex-direction: column; gap: 3px; pointer-events: none;
}
.u-tip b { margin-left: 8px; float: right; }
.u-tip-total { border-top: 1px solid var(--line-strong); padding-top: 3px; margin-top: 2px; color: var(--text-soft); }
.u-col:hover .u-tip, .u-col:focus-visible .u-tip { display: flex; }
.u-col:first-child .u-tip, .u-col:nth-child(2) .u-tip { left: 0; transform: none; }
.u-col:last-child .u-tip, .u-col:nth-last-child(2) .u-tip { left: auto; right: 0; transform: none; }
.u-xlabels { display: flex; gap: 2px; margin: 6px 0 0 26px; font-size: .7rem; color: var(--muted); }
.u-xlabels.period-90 { gap: 1px; }
.u-xlabels span { flex: 1; min-width: 0; white-space: nowrap; overflow: visible; }
.empty-chart { margin: 40px 0; text-align: center; }
.table-view { margin-top: 16px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.table-view summary:hover { color: var(--gold-light); }

.split-bar { display: flex; gap: 2px; height: 14px; margin-top: 16px; border-radius: 4px; overflow: hidden; }
.split-bar .free { background: var(--viz-free); }
.split-bar .member { background: var(--viz-member); }
.split-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .85rem; color: var(--text-soft); }
.mini-stats { margin: 10px 0 12px; }
.mini-stats div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mini-stats dt { color: var(--text-soft); }
.mini-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dash-row, .hero, .stage.voice { grid-template-columns: 1fr; }
    .hero-dial { width: 190px; height: 190px; }
    @keyframes orbit { from { transform: rotate(0deg) translateX(78px); } to { transform: rotate(360deg) translateX(78px); } }
    .stat-row { grid-template-columns: 1fr; }
    .stat-row.admin-stats, .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .usage-row > .card { min-width: 0; }
}
@media (max-width: 760px) {
    .shell { flex-direction: column; }
    .rail {
        position: sticky; top: 0; z-index: 30; width: 100%; height: auto; flex-direction: row;
        padding: 10px 16px; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line);
    }
    .rail-nav { flex-direction: row; gap: 8px; }
    .rail-glow { display: none; }
    .topbar { position: static; padding: 14px 16px; }
    .grid-2, .settings-row, .details { grid-template-columns: 1fr; }
    .trial-banner { flex-wrap: wrap; }
    .topbar-note, .live-dot { display: none; }
    .topbar { flex-wrap: wrap; gap: 10px; }
    .topbar-right { flex-wrap: wrap; }
    .segmented { grid-template-columns: 1fr; }
    .segmented.compact { grid-template-columns: repeat(3, 1fr); }
    .summary, .score-card { flex-direction: column; text-align: center; }
    .container { padding: 22px 16px 56px; }
    .hero { padding: 26px 22px; }
    .hero h1 { font-size: 1.8rem; }
    .steps li + li::before { width: 12px; }
}

/* ---------- Admin settings ---------- */
.settings-form .form-field input { max-width: 160px; }
.settings-notes { margin-top: 18px; font-size: .88rem; color: var(--text-soft); }
