/* AI Mock Interview — light theme design system
   Modern SaaS look: near-white canvas, white cards, soft shadows, indigo accent. */
:root {
  --bg: #f4f5fb;
  --bg-grad-1: #eef0fb;
  --bg-grad-2: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #fafbff;
  --border: #e8e9f3;
  --border-strong: #d7d9ea;
  --text: #191c2b;
  --text-2: #565b73;
  --muted: #8a8fa6;
  --primary: #17925c;
  --primary-600: #0f7a49;
  --primary-soft: #e7f5ec;
  --dark: #10362a;
  --accent: #12b981;
  --accent-soft: #e5f7f0;
  --amber: #f59e0b;
  --amber-soft: #fdf3e1;
  --red: #ef4444;
  --red-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(25, 28, 43, .05);
  --shadow: 0 6px 24px rgba(60, 66, 120, .08);
  --shadow-lg: 0 18px 50px rgba(60, 66, 120, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, #d9f0e4 0%, rgba(217,240,228,0) 55%),
    radial-gradient(900px 600px at -10% 110%, #e2f4ee 0%, rgba(226,244,238,0) 50%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- layout ---------- */
.app-shell { max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #24b473);
  box-shadow: 0 6px 16px rgba(22, 145, 91, .35); color: #fff;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--text-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); box-shadow: var(--shadow-sm);
}
.chip .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip .status-dot.ok { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip .status-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.link-btn { background: none; border: none; color: var(--text-2); cursor: pointer; font: inherit; font-size: .82rem; }
.link-btn:hover { color: var(--primary); }

/* ---------- views ---------- */
.view { display: none; animation: fade .35s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.card + .card { margin-top: 18px; }
.center-narrow { max-width: 440px; margin: 6vh auto 0; }

h1.title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
p.subtitle { color: var(--text-2); margin: 0 0 24px; line-height: 1.55; font-size: .95rem; }
h2.section { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }

/* ---------- forms ---------- */
label.field { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin: 16px 0 7px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff;
}
textarea { resize: vertical; min-height: 96px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: transform .08s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #24b473); color: #fff; box-shadow: 0 8px 20px rgba(22,145,91,.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(22,145,91,.4); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #35c996); color: #fff; box-shadow: 0 8px 20px rgba(18,185,129,.28); }
.btn-danger { background: linear-gradient(135deg, var(--red), #f6685e); color: #fff; box-shadow: 0 8px 20px rgba(239,68,68,.25); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }

.form-msg { font-size: .85rem; margin-top: 14px; min-height: 1.2em; color: var(--text-2); }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--accent); }

.demo-hint {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary-600); font-size: .8rem; line-height: 1.5;
}
.demo-hint b { font-weight: 700; }

/* ---------- choice cards ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: transform .12s, box-shadow .18s, border-color .15s; box-shadow: var(--shadow-sm);
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.choice .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary);
}
.choice.green .icon { background: var(--accent-soft); color: var(--accent); }
.choice.amber .icon { background: var(--amber-soft); color: var(--amber); }
.choice h3 { margin: 0 0 6px; font-size: 1.1rem; }
.choice p { margin: 0; color: var(--text-2); font-size: .87rem; line-height: 1.5; }
.choice .tag { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- resume dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 36px 24px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { color: var(--primary); margin-bottom: 10px; }
.dropzone h3 { margin: 0 0 4px; font-size: 1rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: .82rem; }

.resume-summary { margin-top: 18px; }
.resume-summary .kv { font-size: .9rem; margin-bottom: 8px; }
.resume-summary .kv b { color: var(--text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--text-2); }
.proj { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); margin-top: 10px; }
.proj b { display: block; margin-bottom: 3px; }
.proj .tech { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- checks / pre-flight ---------- */
.check-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.check-row:last-child { border-bottom: none; }
.check-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; color: var(--text-2); }
.check-body { flex: 1; }
.check-body .name { font-weight: 600; font-size: .95rem; }
.check-body .desc { font-size: .82rem; color: var(--muted); }
.check-state { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.check-state.pass { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.check-state.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.check-state.fail { background: var(--red-soft); color: var(--red); border-color: transparent; }
.check-state.checking { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

.preview-pane { display: flex; gap: 20px; align-items: flex-start; margin-top: 4px; }
@media (max-width: 720px) { .preview-pane { flex-direction: column; } }
.cam-preview { width: 220px; height: 165px; border-radius: var(--radius-sm); background: #12131b; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow); transform: scaleX(-1); }
.meter { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.meter > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #4fd6a6); transition: width .08s linear; }

/* ---------- interview room ---------- */
.room-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.room-grid.with-coding { grid-template-columns: minmax(340px, 1fr) 1.25fr; }
@media (max-width: 900px) { .room-grid.with-coding { grid-template-columns: 1fr; } }

.interviewer {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf7f0, #f4fbf7); border: 1px solid var(--border);
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #24b473); color: #fff;
  box-shadow: 0 8px 20px rgba(22,145,91,.35);
}
.avatar.speaking { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,145,91,.4);} 50% { box-shadow: 0 0 0 12px rgba(22,145,91,0);} }
.interviewer .who { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 700; }
.interviewer .q { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin-top: 3px; }

.progress-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; font-size: .8rem; color: var(--muted); }
.progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--primary), #24b473); transition: width .4s; }

.answer-box { margin-top: 4px; }
.mic-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mic-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #24b473); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(22,145,91,.3); transition: transform .1s;
}
.mic-btn.recording { background: linear-gradient(135deg, var(--red), #f6685e); animation: pulse-red 1.1s infinite; }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5);} 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0);} }
.mic-hint { font-size: .82rem; color: var(--muted); }

.floating-cam {
  position: fixed; bottom: 22px; right: 22px; width: 168px; height: 126px; border-radius: 14px;
  object-fit: cover; background: #12131b; box-shadow: var(--shadow-lg); z-index: 50; border: 2px solid #fff;
  transform: scaleX(-1); display: none;
}
.floating-cam.visible { display: block; }
.proctor-badge {
  position: fixed; bottom: 154px; right: 22px; z-index: 51; display: none; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: var(--shadow);
  font-size: .74rem; font-weight: 700; color: var(--red); border: 1px solid var(--border);
}
.proctor-badge.visible { display: inline-flex; }
.proctor-badge .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.transcript { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.t-turn { padding: 10px 0; border-bottom: 1px solid var(--border); }
.t-turn:last-child { border-bottom: none; }
.t-turn .role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.t-turn.you .role { color: var(--primary); }
.t-turn .txt { font-size: .9rem; line-height: 1.45; margin-top: 2px; }

/* ---------- coding ---------- */
.coding-panel { display: flex; flex-direction: column; }
.coding-statement { font-size: .88rem; line-height: 1.55; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.coding-statement b { color: var(--text); }
.editor-toolbar { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.editor-toolbar select { width: auto; padding: 8px 12px; }
#monaco-editor { height: 320px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); }
.run-result { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .85rem; display: none; }
.run-result.visible { display: block; }
.run-result.pass { background: var(--accent-soft); color: #0c7a56; }
.run-result.fail { background: var(--red-soft); color: #b42222; }
.run-result pre { margin: 8px 0 0; font-size: .78rem; white-space: pre-wrap; max-height: 120px; overflow: auto; }

/* ---------- report ---------- */
.score-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.score-ring {
  --p: 0; width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--border) 0);
}
.score-ring .inner { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-sm); }
.score-ring .inner b { font-size: 2rem; font-weight: 800; line-height: 1; }
.score-ring .inner span { font-size: .72rem; color: var(--muted); }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
@media (max-width: 720px) { .report-cols { grid-template-columns: 1fr; } }
.report-list { list-style: none; padding: 0; margin: 8px 0 0; }
.report-list li { padding: 9px 0 9px 26px; position: relative; font-size: .9rem; line-height: 1.45; border-bottom: 1px solid var(--border); }
.report-list li:last-child { border-bottom: none; }
.report-list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; }
.report-list.good li::before { background: var(--accent); }
.report-list.bad li::before { background: var(--amber); }
.report-qa { margin-top: 6px; }
.report-qa .qa { padding: 14px 0; border-bottom: 1px solid var(--border); }
.report-qa .qa:last-child { border-bottom: none; }
.report-qa .q { font-weight: 600; font-size: .92rem; }
.report-qa .a { font-size: .88rem; color: var(--text-2); margin-top: 5px; line-height: 1.5; }
.report-qa .sc { float: right; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

.spacer { height: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .82rem; }
.hidden { display: none !important; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; font-size: .78rem; }
.step { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.step .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); font-weight: 700; font-size: .72rem; }
.step.done .num { background: var(--accent); color: #fff; border-color: transparent; }
.step.current .num { background: var(--primary); color: #fff; border-color: transparent; }
.step.current { color: var(--text); font-weight: 600; }
.step-sep { width: 20px; height: 1px; background: var(--border-strong); }

/* toast */
#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px); z-index: 200;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .3s; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* consent */
.consent-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer;
  font-size: .9rem; line-height: 1.5; transition: border-color .15s; }
.consent-item:hover { border-color: var(--primary); }
.consent-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.consent-item b { color: var(--text); }

/* calibration */
/* sized to the viewport so the whole calibration page (and every dot) fits without scrolling */
#calib-stage { position: relative; height: min(46vh, 420px); min-height: 240px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
#view-calibration .card { max-width: 920px; margin: 0 auto; }
.calib-dot { position: absolute; width: 26px; height: 26px; border-radius: 50%; left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle at 30% 30%, #24b473, var(--primary));
  box-shadow: 0 0 0 8px rgba(22,145,91,.18); transition: left .5s, top .5s; opacity: 0; }
.calib-dot.on { opacity: 1; }
#calib-instruction { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text-2); font-size: .9rem; }

/* fullscreen re-entry overlay */
#fs-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(20,22,34,.78);
  align-items: center; justify-content: center; }
#fs-overlay.visible { display: flex; }
.fs-box { background: #fff; border-radius: var(--radius); padding: 28px 32px; text-align: center; box-shadow: var(--shadow-lg); max-width: 380px; }

/* history table */
#history table { width: 100%; border-collapse: collapse; font-size: .86rem; }
#history th, #history td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); }
#history th { color: var(--muted); font-weight: 600; }
#history .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; background: var(--surface-2); border: 1px solid var(--border); }
#history .pill.completed { background: var(--accent-soft); color: #0c7a56; border-color: transparent; }

/* auth: hide full-name field in sign-in mode */
#view-auth.signin #lbl-fullname, #view-auth.signin #auth-fullname { display: none; }

/* AI status: show only the green dot, pushed to the far right corner */
#ollama-chip { order: 9; background: none; border: none; box-shadow: none; padding: 0; margin-left: 2px; }
#ollama-chip #ollama-label { display: none; }
#ollama-chip .status-dot { width: 13px; height: 13px; }

/* ---------- real-time interview ---------- */
.live-card { margin-top: 16px; padding: 20px; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.live-status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--text-2); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.live-dot.asking { background: var(--primary); animation: blink 1s infinite; }
.live-dot.listening { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse-dot 1.2s infinite; }
.live-dot.answering { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); animation: pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

.countdown { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.countdown svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.countdown .ring-track { fill: none; stroke: var(--border); stroke-width: 4; }
.countdown .ring-prog { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .15s linear, stroke .3s; }
.countdown #countdown-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: var(--text); }

.equalizer { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin: 18px 0; padding: 0 2px; }
.equalizer span { flex: 1; height: 12%; background: linear-gradient(180deg, #24b473, var(--primary)); border-radius: 6px; transition: height .1s ease; min-height: 6px; }

.live-caption { min-height: 46px; font-size: .95rem; line-height: 1.5; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
#typed-fallback { margin-top: 12px; }

/* early-termination banner on the report */
.report-banner { background: var(--red-soft); color: #b42222; border: 1px solid #f3c7c7; border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 16px; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.report-banner b { display: block; font-size: 1rem; margin-bottom: 2px; }

/* "Click me" attention button (1.5× size) */
#clickme { position: fixed; z-index: 130; display: none; padding: 11px 27px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #24b473); color: #fff; font-weight: 700; font-size: 1.2rem;
  border: none; cursor: pointer; box-shadow: var(--shadow-lg); animation: cm-pop .25s ease; white-space: nowrap; }
#clickme.visible { display: block; }
@keyframes cm-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* consent: info rows + single agree checkbox */
.consent-item.info { cursor: default; }
.consent-item.info:hover { border-color: var(--border); }
.consent-item.consent-agree { margin-top: 14px; background: var(--primary-soft); border-color: transparent; font-size: .95rem; }
.consent-item.consent-agree input { width: 20px; height: 20px; }

/* loading overlay with spinner + timer */
#loading-overlay { display: none; position: fixed; inset: 0; z-index: 280; background: rgba(244,246,246,.82);
  backdrop-filter: blur(3px); align-items: center; justify-content: center; }
#loading-overlay.visible { display: flex; }
.loading-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 34px 44px; text-align: center; max-width: 400px; }
.spinner { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  border: 5px solid var(--border); border-top-color: var(--primary); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.loading-sub { font-size: .88rem; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.loading-timer { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 14px; font-variant-numeric: tabular-nums; }

/* dark-green emphasis (reference look) */
.dark-stat { background: var(--dark); color: #eafff4; border: none; }
.dark-stat .muted, .dark-stat span { color: #a7d9c4 !important; }

/* report visualizations */
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.viz-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.viz-tile .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.viz-tile .value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; color: var(--text); }
.viz-tile .value.good { color: var(--primary); }
.bar-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.bar-track > div { height: 100%; background: linear-gradient(90deg, var(--primary), #24b473); }
.qbars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 10px; }
.qbars .qbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qbars .qbar > .fill { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #24b473, var(--primary)); min-height: 3px; }
.qbars .qbar > .n { font-size: .68rem; color: var(--muted); }

/* ---------- home (post-login) ---------- */
.home-greet { text-align: center; margin-top: 8px; }
.home-sub { text-align: center; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; margin-top: 20px; box-shadow: var(--shadow-lg); }
@media (max-width: 720px) { .home-split { grid-template-columns: 1fr; } }
.home-panel { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: #fff; }
.home-panel.blue { background: #1d40be; }
.home-panel.pink { background: #f73872; }
.home-panel h2 { margin: 0 0 12px; font-size: 2.2rem; font-weight: 800; color: #fff; }
.home-panel p { margin: 0 0 28px; font-weight: 600; opacity: .95; }
.home-btn { display: inline-block; padding: 14px 38px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 3px 0 rgba(0,0,0,.25); transition: transform .15s; }
.home-btn:hover { transform: translateY(-2px); }
.home-panel.blue .home-btn { background: #b7c3f3; color: #1d40be; }
.home-panel.pink .home-btn { background: #fbb3c8; color: #f73872; }

/* ---------- embedded resume builder ---------- */
.rb-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rb-root { display: block; min-height: 420px; }

/* hide the page-level scrollbar (scrolling by wheel/touch/keys still works) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
