:root {
  --bg: #f7f6f3;
  --panel: #ffffff;
  --panel-2: #f2f1ee;
  --line: #e7e4de;
  --text: #14141f;
  --dim: #6b7280;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --good: #059669;
  --gap: #dc2626;
  --hint: #d97706;
  --shadow: 0 1px 2px rgba(17,17,26,.04), 0 8px 24px rgba(17,17,26,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1100px 700px at 78% -12%, #edefff 0%, var(--bg) 52%);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
.screen { display: none; position: absolute; inset: 0; }
.screen.active { display: flex; }
button { cursor: pointer; font: inherit; color: inherit; }
label { display: block; font-size: 13px; color: var(--dim); margin: 14px 0 6px; }
.dim { color: var(--dim); font-size: 12px; }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 11px 13px; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.primary {
  width: 100%; margin-top: 22px; padding: 13px; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; transition: background .15s, transform .05s, box-shadow .15s;
}
.primary:hover { background: #4338ca; box-shadow: 0 6px 18px rgba(79,70,229,.28); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.primary.big { margin-top: 18px; padding: 16px; font-size: 17px; font-weight: 700; border-radius: 13px;
  box-shadow: 0 8px 22px rgba(79,70,229,.32); }
.primary.big:hover { box-shadow: 0 10px 28px rgba(79,70,229,.4); }

/* Big attention-grabbing hero CTA — two-line (action + reassurance), gradient,
   soft pulsing glow so it's the obvious next move. */
.hero-cta { width: 100%; margin-top: 22px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 17px 22px; border: 0; border-radius: 15px; color: #fff;
  background: linear-gradient(135deg, #6d5cff 0%, #4f46e5 55%, #7c3aed 100%);
  box-shadow: 0 10px 30px rgba(79,70,229,.42); transition: transform .08s, box-shadow .2s, filter .2s;
  animation: ctaGlow 2.8s ease-in-out infinite; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79,70,229,.55); filter: brightness(1.05); }
.hero-cta:active { transform: translateY(0); }
.hero-cta .cta-main { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.hero-cta .cta-sub { font-size: 12.5px; font-weight: 500; opacity: .9; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(79,70,229,.42); }
  50% { box-shadow: 0 12px 38px rgba(124,58,237,.6); }
}

/* eyebrow badge above the headline */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 13px; border-radius: 999px; background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.18); color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: .1px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(5,150,105,.5); animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.5); } 50% { box-shadow: 0 0 0 5px rgba(5,150,105,0); } }

/* honest outcome line under the stats */
.proof-line { margin: 16px 2px 4px; font-size: 13.5px; line-height: 1.5; color: var(--text);
  font-weight: 600; }

/* CTA reassurance chips — kill the "is this going to be a hassle?" hesitation. */
.cta-reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--good); }
.cta-reassure.center { color: var(--dim); font-weight: 500; }
.cta-reassure span { white-space: nowrap; }

/* Inline how-it-works right under the CTA (value before any scroll). */
.how-inline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Sign-in demoted to a quiet toggle so the single Start CTA isn't competing
   with a Google button + name/email form (the old signup-wall look). */
.signin-toggle { width: 100%; margin-top: 18px; padding: 10px; background: none; border: 0;
  color: var(--dim); font-size: 13px; text-align: center; cursor: pointer; }
.signin-toggle b { color: var(--accent); font-weight: 700; }
.signin-toggle:hover { color: var(--text); }
#signin-block { margin-top: 6px; }
.secondary {
  width: 100%; margin-top: 12px; padding: 11px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--text); font-weight: 600; font-size: 14px; transition: .15s;
}
.secondary:hover { border-color: var(--accent); background: #faf9ff; }
.danger { background: #fef2f2; color: var(--gap); border: 1px solid #fecaca; border-radius: 8px; padding: 7px 14px; font-weight: 600; }
.danger:hover { background: #fee2e2; }

/* ── save-report nudge (guests) ── */
.rep-save { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 22px 0 4px; padding: 18px 20px; border: 1px solid #dcd9ff; border-radius: 14px;
  background: linear-gradient(90deg, #f3f2ff, #faf9ff); }
.rep-save .rs-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.rep-save .google-btn { width: auto; margin: 0; white-space: nowrap; }

/* ── report: progress, email capture, actions ── */
.rep-progress { margin: 12px 0 2px; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; border: 1px solid #dcd9ff;
  background: linear-gradient(90deg, #f3f2ff, #faf9ff); }
.rep-progress .up { color: var(--good); }
.rep-progress .down { color: var(--hint); }
.rep-email { margin: 20px 0 4px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.rep-email .re-head { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.rep-email .re-row { display: flex; gap: 10px; }
.rep-email .re-row input { flex: 1; }
.rep-email .re-row .primary { width: auto; margin: 0; white-space: nowrap; padding: 11px 18px; }
.rep-email .dim { margin-top: 8px; }
.rep-actions { display: flex; gap: 12px; margin-top: 24px; }
.rep-actions .primary, .rep-actions .secondary { margin-top: 0; }

/* ── report hard-gate (guests) ── */
.rep-gate { margin: 18px 0 4px; padding: 30px 26px; text-align: center;
  border: 1px solid #dcd9ff; border-radius: 18px;
  background: linear-gradient(160deg, #f3f2ff, #ffffff); box-shadow: var(--shadow); }
.rep-gate .rg-emoji { font-size: 40px; line-height: 1; }
.rep-gate .rg-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 10px 0 6px; }
.rep-gate .rg-sub { color: var(--dim); font-size: 14.5px; line-height: 1.55; max-width: 440px; margin: 0 auto 18px; }
.rep-gate .rg-row { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.rep-gate .rg-row input { flex: 1; }
.rep-gate .rg-row .primary { width: auto; margin: 0; white-space: nowrap; padding: 12px 20px; }
.rep-gate #rg-note { margin-top: 10px; }
.rep-gate .rg-alt { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rep-gate .rg-alt .google-btn { width: auto; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--dim); font-size: 13px; text-decoration: underline; padding: 4px; }
.linkbtn:hover { color: var(--accent); }

/* ── login ── */
/* Center content when it fits, but stay fully scrollable when it doesn't.
   Using margin:auto on the child (instead of align/justify-center) avoids the
   flexbox bug where the top of overflowing content gets clipped & unreachable. */
#screen-login, #screen-picker, #screen-report {
  overflow-y: auto; overflow-x: hidden;
  padding: 24px 16px; -webkit-overflow-scrolling: touch;
}
#screen-login > *, #screen-picker > *, #screen-report > * { margin: auto; }

/* ── landing: full-width marketing layout (top nav + wide 2-col hero) ── */
#screen-login.active { flex-direction: column; padding: 0; align-items: stretch; }
#screen-login > * { margin: 0; }            /* override the shared margin:auto for login */
.lp-nav { display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 15px max(clamp(20px, 5vw, 48px), calc((100% - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10; }
.lp-nav .brand-row { margin: 0; }
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-link { color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.lp-nav-link:hover { color: var(--accent); }
.nav-signin { background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 20px; font-weight: 700; font-size: 14px; transition: background .15s, box-shadow .15s; }
.nav-signin:hover { background: #4338ca; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
/* Two-column hero: pitch on the left, live product demo + proof on the right.
   Centered container (margin-inline:auto needs id specificity to beat the
   #screen-login > * { margin:0 } reset above). */
#screen-login > .login-wrap { margin-left: auto; margin-right: auto; }
.login-wrap { width: 100%; max-width: 1200px; padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 48px) 52px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
/* Left column reads as a hero, not a form card (no border/shadow on desktop). */
.login-wrap .card { width: auto; max-width: 100%; background: transparent; border: 0;
  box-shadow: none; padding: 0; border-radius: 0; }
.login-wrap .card h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -1px; }
.login-wrap .card .sub { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.58; margin-bottom: 4px; }
.proof { margin-top: 0; }
.proof .demo { margin-bottom: 16px; }

.card { width: 400px; max-width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 30px; box-shadow: var(--shadow); }
.brand { font-size: 12px; letter-spacing: .5px; color: var(--dim); text-transform: uppercase; }
.brand span { color: var(--accent); }
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-row .logo { width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); border-radius: 9px; color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.brand-row .wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.brand-row .wordmark b { color: var(--accent); font-weight: 800; }
h1 { margin: 4px 0 8px; font-size: 27px; line-height: 1.18; letter-spacing: -.6px; font-weight: 800; }
.sub { color: var(--dim); font-size: 14.5px; line-height: 1.5; margin: 0 0 6px; }
.note, .warn { margin-top: 12px; font-size: 13px; color: var(--dim); }
.warn { color: var(--hint); }
.trust-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.trust-foot svg { flex: 0 0 auto; }
.trust-foot a { color: var(--dim); text-decoration: none; border-bottom: 1px dotted var(--line); }
.trust-foot a:hover { color: var(--accent); }
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f2430; border: 1px solid var(--line); border-radius: 11px; padding: 12px; font-weight: 600;
  font-size: 15px; margin-top: 8px; transition: .15s; }
.google-btn:hover { background: #faf9f7; border-color: #d8d5ce; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; margin: 20px 0 6px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* headline highlight for the voice-first differentiator */
h1 .hl { color: var(--accent); position: relative; white-space: nowrap; }
h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: rgba(79,70,229,.16); border-radius: 4px; z-index: -1; }

/* secondary "build your own loop" option — a real button, not a faint link, so
   users clearly see there's a second, more powerful path (custom company loop). */
.linklike { width: 100%; margin-top: 12px; padding: 12px 14px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--accent); border-radius: 12px;
  color: var(--accent); font-size: 14px; font-weight: 700; text-align: center;
  text-decoration: none; transition: background .15s, transform .12s, box-shadow .2s; }
.linklike:hover { background: rgba(79,70,229,.06); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,.14); }

/* company-panels trust strip */
.logos { margin-top: 24px; }
.logos-label { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: #4b5563; font-weight: 700; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.clogo { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700;
  color: #3c4250; letter-spacing: -.2px; padding: 7px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); transition: transform .12s, box-shadow .2s; }
.clogo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17,17,26,.1); }
.clogo svg { display: block; flex: 0 0 auto; }
.clogo .cw { font-weight: 800; letter-spacing: -.3px; }
.clogo .cw.amazon { color: #131a22; position: relative; padding-bottom: 3px; }
.clogo .cw.amazon::after { content: ''; position: absolute; left: 0; right: 2px; bottom: 0; height: 5px;
  border-bottom: 2px solid #ff9900; border-radius: 0 0 6px 6px; }
.clogo .cw.netflix { color: #e50914; letter-spacing: .5px; font-size: 12.5px; }

/* ── live-preview demo (shows the product before they click) ── */
.demo { background: #0e1020; border: 1px solid #23263b; border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 10px 30px rgba(14,16,32,.18); overflow: hidden; min-height: 340px; }
.demo-head { display: flex; align-items: center; gap: 11px; }
.demo-orb { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 32% 30%, #8b7bf6, #4c1d95); box-shadow: 0 0 0 0 rgba(139,123,246,.55); }
.demo-orb.talking { animation: demoPulse 1.1s ease-in-out infinite; }
@keyframes demoPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(139,123,246,.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(139,123,246,0); transform: scale(1.06); } }
.demo-who { flex: 1; min-width: 0; }
.demo-name { color: #e7eefc; font-size: 13px; font-weight: 700; }
.demo-status { color: #8b98b0; font-size: 11.5px; }
.demo-live { color: #34d399; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.demo-transcript { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.demo-line { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.45;
  opacity: 0; transform: translateY(6px); animation: demoIn .35s ease forwards; }
.demo-line.iv { align-self: flex-start; background: #1b2036; color: #dfe6f5; border-bottom-left-radius: 4px; }
.demo-line.you { align-self: flex-end; background: #3730a3; color: #eef0ff; border-bottom-right-radius: 4px; }
.demo-line .who { display: block; font-size: 10px; font-weight: 700; opacity: .65; margin-bottom: 2px; }
@keyframes demoIn { to { opacity: 1; transform: none; } }
.demo-score { margin-top: 6px; padding: 14px; border-radius: 13px; background: linear-gradient(160deg, #171a2e, #0e1020);
  border: 1px solid #23263b; animation: demoIn .4s ease forwards; }
.ds-top { display: flex; align-items: baseline; justify-content: space-between; }
.ds-label { color: #e7eefc; font-size: 13px; font-weight: 700; }
.ds-overall { color: #8b98b0; font-size: 13px; }
.ds-overall b { color: #fff; font-size: 24px; font-weight: 800; }
.ds-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ds-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.ds-row > span { color: #8b98b0; font-size: 11.5px; }
.ds-bar { height: 7px; border-radius: 5px; background: #23263b; overflow: hidden; }
.ds-bar i { display: block; height: 100%; border-radius: 5px; background: #34d399; width: 0; transition: width .9s ease; }
.ds-tag { margin-top: 12px; color: #6b7280; font-size: 11px; text-align: center; }

/* ── landing social proof ── */
.login-wrap { }
.stats { display: flex; gap: 10px; }
.stat { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 18px; font-weight: 800; color: var(--text); }
.stat span { font-size: 11px; color: var(--dim); }
.how { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.how-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); }
.how-step .hn { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; }
.testimonials { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; box-shadow: var(--shadow); }
.tcard .stars { color: #f5b301; font-size: 13px; letter-spacing: 1px; }
.tcard p { margin: 6px 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.tcard .tby { font-size: 12px; color: var(--dim); font-weight: 600; }

/* ── picker ── */
.picker-wrap { width: 860px; max-width: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px 30px;
  box-shadow: var(--shadow); }
.picker-head { margin-bottom: 6px; }
.picker-head h2 { margin: 0 0 2px; font-size: 24px; letter-spacing: -.4px; font-weight: 800; }
/* setup checklist — shows what's required to start & what's already done */
.setup-steps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sstep { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px;
  border: 1px solid var(--line); }
.sstep.done { color: var(--good); background: #ecfdf5; border-color: #bbf7d0; }
.sstep.todo { color: var(--dim); background: var(--panel-2); }
/* signed-in progress strip */
.progress-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); font-size: 13px; }
/* CRITICAL: display:flex above overrides the `hidden` attribute, so these bars
   render EMPTY for guests. Force-collapse when hidden (same class-vs-[hidden] fix
   as .modal). This was the "two empty gray bars" on the picker. */
.progress-strip[hidden], .wallet-strip[hidden] { display: none !important; }
.progress-strip .ps-count { font-weight: 700; }
.progress-strip .ps-best { color: var(--good); font-weight: 600; }
.progress-strip .ps-recent { color: var(--dim); display: flex; align-items: center; gap: 6px; }
.progress-strip .ps-dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--text); }
/* sticky mobile action bar (hidden on desktop) */
.mobile-cta { display: none; }
.step { margin-top: 30px; }
/* Prominent numbered step header — makes it obvious WHERE to pick things. */
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6d5cff, #4f46e5); box-shadow: 0 4px 12px rgba(79,70,229,.32); }
.step-tt { min-width: 0; }
.step-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--text); line-height: 1.2; }
.step-title .dim { font-weight: 500; font-size: 13px; }
.step-sub { font-size: 13px; color: var(--dim); margin-top: 1px; }
/* legacy label kept for any leftover uses */
.step-label { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; font-weight: 700; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { text-align: left; background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 15px 17px; color: var(--text); transition: .15s; }
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.mode-title { font-weight: 600; font-size: 14.5px; }
.mode-lock { float: right; font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-radius: 20px;
  padding: 2px 8px; margin-left: 6px; }
.mode-desc { color: var(--dim); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.company {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 15px; text-align: left; transition: .15s; position: relative;
  color: var(--text);
}
.company:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.company.selected { border-color: var(--sel, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel) 25%, transparent); }
.company .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.company .clogo-badge { display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; }
.company .clogo-badge svg { display: block; }
.company .clogo-initial { display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; color: #fff; font-weight: 800; font-size: 15px; }
.company .cname { font-weight: 700; font-size: 15px; margin-top: 8px; color: var(--text); }
.company .cint { color: var(--dim); font-size: 12px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--panel); border: 1.5px solid var(--line); color: var(--text);
  border-radius: 20px; padding: 8px 14px; font-size: 13px; transition: .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.row { display: flex; gap: 12px; }
.field { flex: 1; }
.field[hidden] { display: none; }
.comm-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comm-btn { text-align: left; background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; color: var(--text); transition: .15s; }
.comm-btn:hover { border-color: var(--accent); }
.comm-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.comm-title { font-weight: 600; font-size: 14px; }
.comm-desc { color: var(--dim); font-size: 12px; margin-top: 3px; }
.comm-hint { margin-top: 8px; font-size: 12.5px; }
.comm-hint b { color: var(--accent); }
.primary { margin-top: 20px; }

/* ── rounds picker + loop preview + resume ── */
.round-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.round-card { text-align: left; background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 15px; color: var(--text); transition: .15s; }
.round-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.round-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.round-card .rc-top { display: flex; align-items: center; gap: 8px; }
.round-card .rc-icon { font-size: 16px; }
.round-card .rc-name { font-weight: 700; font-size: 14px; flex: 1; }
.round-card .rc-min { font-size: 11px; color: var(--dim); font-weight: 600; }
.round-card .rc-desc { color: var(--dim); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.loop-preview { margin-top: 12px; padding: 12px 14px; border: 1px solid #dcd9ff;
  border-radius: 12px; background: linear-gradient(90deg, #f3f2ff, #faf9ff); }
.loop-preview .lp-label { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.loop-preview .lp-rounds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.loop-preview .lp-round { font-size: 12.5px; font-weight: 600; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; }
.loop-preview .lp-arrow { color: var(--dim); font-size: 12px; }

/* build-your-own custom loop */
.round-card .rc-add { font-size: 11px; color: var(--accent); font-weight: 800; }
.custom-seq { margin-top: 14px; padding: 14px 16px; border: 1px solid #dcd9ff;
  border-radius: 12px; background: linear-gradient(90deg, #f3f2ff, #faf9ff); }
.custom-seq .cs-label { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.custom-seq .cs-rounds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.custom-seq .cs-round { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 10px; }
.custom-seq .cs-num { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }
.custom-seq .cs-x { border: 0; background: none; color: var(--gap); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.custom-seq .cs-arrow { color: var(--dim); font-size: 12px; }
.custom-seq .cs-empty { color: var(--dim); font-size: 13px; }
.custom-seq .cs-clear { margin-top: 10px; background: none; border: 0; color: var(--dim);
  font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.resume-box { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.5; }
.resume-upload { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.upload-btn { display: inline-block; background: var(--panel-2); border: 1px dashed var(--line);
  border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
/* code run output + run button */
.run-btn { background: #0f9d58; color: #fff; border: 0; border-radius: 8px; padding: 7px 16px;
  font-weight: 700; font-size: 13px; cursor: pointer; }
.run-btn:hover { background: #0b8043; }
.run-btn:disabled { opacity: .6; cursor: default; }
.run-output { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.run-output .ro-head { font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--dim); background: var(--panel-2); padding: 6px 12px; font-weight: 700; }
.run-output pre { margin: 0; padding: 12px; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-height: 200px; overflow: auto;
  background: #0d1117; color: #d6e2ff; }
/* token pill */
.token-pill { background: linear-gradient(90deg, #f59e0b, #f5b301); color: #3a2a00;
  border: 0; border-radius: 20px; padding: 5px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.token-pill:hover { filter: brightness(1.05); }

/* in-room boost menu (spend tokens) */
.token-wrap { position: relative; display: inline-flex; }
.assist-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 300px; max-width: 84vw; background: #0f1524; border: 1px solid #263149;
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5); padding: 10px; }
.assist-menu[hidden] { display: none; }
.am-head { font-size: 12px; font-weight: 700; color: #9fb0d6; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 4px 8px; }
.am-list { display: flex; flex-direction: column; gap: 6px; }
.am-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  text-align: left; background: #131b2e; border: 1px solid #22304d; border-radius: 9px;
  padding: 8px 10px; cursor: pointer; color: #e7eefc; }
.am-item:hover { border-color: #3a63d0; background: #16203a; }
.am-item .am-name { font-weight: 700; font-size: 13px; grid-column: 1; }
.am-item .am-desc { grid-column: 1; font-size: 11px; color: #8ea0c7; line-height: 1.25; }
.am-item .am-cost { grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-weight: 800; font-size: 13px; color: #f5b301; white-space: nowrap; }
.am-item.broke { opacity: .5; cursor: not-allowed; }
.am-item.broke:hover { border-color: #22304d; background: #131b2e; }
.am-foot { font-size: 11px; color: #8ea0c7; padding: 8px 4px 2px; border-top: 1px solid #1c2740; margin-top: 8px; }
.am-foot #am-bal { color: #f5b301; font-weight: 800; }

/* wallet strip + modal */
.wallet-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px;
  padding: 10px 14px; border: 1px solid #ffe0a3; border-radius: 12px; background: #fffaf0; font-size: 13px; }
.wallet-strip .ws-bal b { font-size: 15px; }
.wallet-strip .ws-streak { color: #b45309; }
.wallet-strip .ws-open { margin-left: auto; background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,26,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 460px; max-width: 96vw; background: var(--panel);
  border-radius: 18px; padding: 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 24px; color: var(--dim); cursor: pointer; line-height: 1; }
/* login gate modal */
.lg-card { width: 400px; text-align: center; }
.lg-emoji { font-size: 34px; }
.lg-title { margin: 8px 0 6px; font-size: 20px; font-weight: 800; }
.lg-msg { color: var(--dim); font-size: 14px; line-height: 1.55; margin: 0 auto 18px; max-width: 340px; }
.lg-google { width: 100%; }
.qg-pay { width: 100%; margin-top: 4px; }
.qg-chat { width: 100%; margin-top: 10px; }
.lg-note { color: var(--dim); font-size: 12px; margin-top: 10px; }
.wm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wm-bal { font-size: 24px; font-weight: 800; }
.wm-intro { font-size: 13px; margin: 4px 0 16px; }
.wm-sec { margin-top: 18px; }
.wm-sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); font-weight: 700; margin-bottom: 10px; }
.wm-buy { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.buy-card { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel-2);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px; font-size: 20px; font-weight: 800; color: var(--text); cursor: pointer; }
.buy-card span { font-size: 11px; font-weight: 500; color: var(--dim); }
.buy-card:hover { border-color: var(--accent); }
.buy-card.soon { opacity: .55; cursor: not-allowed; }
.buy-card.soon:hover { border-color: var(--line); }
.wm-costs { list-style: none; margin: 0; padding: 0; }
.wm-costs li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.wm-costs .wm-cost { font-weight: 700; color: #b45309; }
.wm-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill { background: #eef2ff; border: 1px solid #dcd9ff; color: var(--accent); border-radius: 20px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.wm-leaderboard { margin: 0; padding-left: 22px; }
.wm-leaderboard li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.wm-leaderboard .lb-score { font-weight: 700; color: var(--good); }

/* account bar + profile */
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.btn-home { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text);
  cursor: pointer; transition: border-color .12s, background .12s, transform .1s; }
.btn-home:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-1px); }
.account-btn { display: flex; align-items: center; gap: 8px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px 4px 4px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text); }
.account-btn:hover { border-color: var(--accent); }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; background-position: center; }
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 20px; font-weight: 800; background-position: center; flex: 0 0 auto; }
.pf-name { font-size: 18px; font-weight: 800; }
.pf-guest-note { background: #f3f2ff; border: 1px solid #dcd9ff; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.pf-stats { display: flex; gap: 10px; margin: 4px 0 16px; }
.pf-stat { flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.pf-stat b { display: block; font-size: 18px; font-weight: 800; }
.pf-stat span { font-size: 11px; color: var(--dim); }
.pf-sec { margin-top: 16px; }
.pf-sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); font-weight: 700; margin-bottom: 10px; }
.pf-trend { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pf-trend-note { font-size: 12.5px; margin-top: 8px; line-height: 1.5; }
.trust-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.trust-link:hover { text-decoration: underline; }
/* leave-a-testimonial (report) */
.rep-testi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; margin-top: 14px; box-shadow: var(--shadow); }
.rt-title { font-weight: 700; font-size: 14.5px; }
.rt-sub { font-size: 12.5px; margin: 3px 0 10px; }
.rt-quote { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; resize: vertical; }
.rt-row { display: flex; gap: 8px; margin-top: 8px; }
.rt-role { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; }
.rt-thanks { font-size: 14px; font-weight: 600; color: var(--good); }

/* post-interview feedback form */
.rep-feedback { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin-top: 22px; box-shadow: var(--shadow); }
.rf-title { font-weight: 800; font-size: 17px; }
.rf-sub { font-size: 12.5px; margin: 3px 0 4px; }
.rf-q { margin-top: 16px; }
.rf-q > label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.rf-stars { display: inline-flex; gap: 4px; }
.rf-star { background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1;
  color: #d7d3cc; padding: 0 2px; transition: color .12s, transform .1s; }
.rf-star:hover { transform: scale(1.12); }
.rf-star.on { color: #f5b301; }
.rf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-choice { border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: #374151; transition: border-color .12s, background .12s, transform .1s; }
.rf-choice:hover { transform: translateY(-1px); border-color: var(--accent); }
.rf-choice.on { border-color: var(--accent); background: rgba(79,70,229,.08); color: var(--accent); }
.rf-msg { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.rf-send { width: auto; margin-top: 16px; padding: 11px 22px; }
.rf-note { margin-top: 10px; }
.rf-thanks { font-size: 15px; font-weight: 700; color: var(--good); }

.pf-history { display: flex; flex-direction: column; gap: 2px; }
.pf-hist-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pf-hist-score { font-weight: 800; color: var(--good); }
#pf-signout { margin-top: 18px; }

/* ── room ── */
#screen-room { flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(8px); }
.topbar .who { font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.timer { font-variant-numeric: tabular-nums; color: var(--dim); }
.timer.low { color: var(--gap); font-weight: 700; }
.phases { display: flex; gap: 6px; flex-wrap: wrap; }
.phase { font-size: 11px; padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line); color: var(--dim); }
.phase.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.phase.done { color: var(--good); border-color: #a7f3d0; }

.room-body { flex: 1; display: flex; min-height: 0; }
.interviewer { width: 320px; border-right: 1px solid var(--line); padding: 18px;
  display: flex; flex-direction: column; align-items: center; min-height: 0; }
.orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; font-weight: 700; background: radial-gradient(circle at 30% 30%, #6366f1, #4c1d95);
  box-shadow: 0 0 0 0 rgba(139,92,246,.5); transition: .2s; }
.orb.speaking { animation: pulse 1s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(139,92,246,.55)} 70%{box-shadow:0 0 0 22px rgba(139,92,246,0)} 100%{box-shadow:0 0 0 0 rgba(139,92,246,0)} }
.iv-name { margin-top: 12px; font-weight: 600; }
.iv-status { color: var(--dim); font-size: 12px; margin-bottom: 12px; }
.reconnect { background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 16px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.transcript { flex: 1; width: 100%; overflow-y: auto; font-size: 13px; line-height: 1.5; }
.t-line { margin: 6px 0; padding: 9px 11px; border-radius: 10px; background: #f4f4f6; }
.t-line.candidate { background: #eef0ff; }
.t-line .r { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); }
.chat-bar { display: flex; gap: 8px; width: 100%; margin-top: 10px; }
.chat-bar input { flex: 1; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; }
.chat-bar input:focus { border-color: var(--accent); }
.chat-send { background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 16px; font-weight: 600; }

.workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.tab { background: transparent; border: 0; color: var(--dim); padding: 9px 16px; border-radius: 8px 8px 0 0; font-weight: 600; }
.tab.active { color: var(--accent); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }
.tab.hidden-tab { display: none; }
.pane { display: none; flex: 1; min-height: 0; padding: 16px; overflow: auto; }
.pane.active { display: flex; flex-direction: column; }
.pane[data-pane="board"] { padding: 0; }
.empty { color: var(--dim); margin: auto; text-align: center; max-width: 340px; }
.ptag { display: inline-block; font-size: 11px; letter-spacing: .5px; background: var(--accent);
  color: #fff; padding: 3px 9px; border-radius: 20px; }

.code-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.code-head select { width: auto; }
#code { flex: 1; resize: none; min-height: 120px; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.5; background: #fafafb; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
/* stdin box under the editor — where the candidate types the program's input */
.stdin-wrap { margin-top: 10px; flex: 0 0 auto; }
.stdin-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--dim); margin-bottom: 5px; }
.stdin-box { width: 100%; box-sizing: border-box; height: 64px; resize: vertical;
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45;
  background: #fafafb; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

/* Primary room layout: problem statement on the LEFT, work area (code editor
   or whiteboard) on the RIGHT, with a draggable divider. This IS the
   workspace — there is no separate "Prompt" tab. */
.split { display: flex; flex: 1; min-height: 0; width: 100%; }
.split-prob { flex: 0 0 40%; min-width: 0; overflow: auto; padding: 16px; border-right: 1px solid var(--line); }
.split-prob .sp-tag { display: inline-block; font-size: 11px; letter-spacing: .5px;
  background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 20px; }
.split-prob .sp-title { font-weight: 700; font-size: 17px; margin: 12px 0; }
.split-prob .sp-statement { white-space: pre-wrap; line-height: 1.65; color: #374151; font-size: 14px; }
.split-prob .sp-empty { color: var(--dim); font-size: 14px; line-height: 1.55; }
.split-gutter { flex: 0 0 8px; cursor: col-resize; background: var(--line);
  align-self: stretch; position: relative; }
.split-gutter::after { content: "⋮"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: var(--dim); font-size: 14px; }
.split-gutter:hover { background: var(--accent); }
.split-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* Spoken-only rounds: no editor/whiteboard — problem panel goes full width. */
.split.no-work .split-gutter, .split.no-work .split-main { display: none; }
.split.no-work .split-prob { flex: 1; border-right: 0; }
body.dragging-split { cursor: col-resize; user-select: none; }

.board-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 12px 12px 0; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.tbtn { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; }
#board { flex: 1; width: 100%; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: #12172a; touch-action: none; }

/* ── report ── */
.report-wrap { width: 760px; max-width: 100%; padding: 8px 0 24px; }
.report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.report-head .logo { width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--accent); border-radius: 8px; color: #fff; }
.report-head h2 { margin: 0; font-size: 23px; letter-spacing: -.4px; font-weight: 800; }
/* section separators so feedback groups read as distinct blocks */
.sec-label { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--dim);
  font-weight: 700; margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; }
.sec-label::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); }
.rep-top { display: flex; gap: 18px; margin: 16px 0; align-items: stretch; }
.rep-top .rep-overall { align-self: flex-start; position: sticky; top: 12px; }
.rep-overall { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; text-align: center; min-width: 140px; display: flex; flex-direction: column; justify-content: center; }
#rep-overall-num { font-size: 42px; font-weight: 800; line-height: 1; }
.rep-overall .dim { margin-top: 2px; }
.reco { margin-top: 10px; font-size: 11.5px; padding: 4px 10px; border-radius: 20px; display: inline-block; text-transform: capitalize; font-weight: 600; }
.rep-scores { flex: 1; display: grid; grid-template-columns: 1fr; gap: 14px; align-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.score-row .lbl { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; font-weight: 600; }
.score-row .lbl span:last-child { font-weight: 800; }
.score-note { font-size: 12.5px; color: var(--dim); line-height: 1.45; margin-top: 6px; }
.bar { height: 7px; background: var(--panel-2); border-radius: 20px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.rep-cols { display: flex; gap: 18px; margin: 14px 0; }
.rep-cols > div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rep-cols h4 { margin: 0 0 6px; font-size: 13px; }
.rep-cols ul { margin: 4px 0 0; padding-left: 16px; line-height: 1.55; font-size: 13.5px; }
.readiness { display: flex; align-items: center; gap: 20px; margin: 14px 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.readiness .rd-left { flex: 1; }
.rd-title { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); }
.rd-verdict { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.rd-gauge { min-width: 180px; }
.rd-num { text-align: right; font-weight: 800; font-size: 26px; }
.rd-num .rd-pct { font-size: 15px; color: var(--dim); }
.rd-gauge .bar { height: 9px; margin-top: 6px; }
.coverage { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.cov-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cov-item:last-child { border-bottom: 0; }
.cov-res { flex: 0 0 auto; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.cov-res.strong, .cov-res.solid { background: #ecfdf5; color: var(--good); }
.cov-res.partial { background: #fffbeb; color: var(--hint); }
.cov-res.shaky, .cov-res.missed { background: #fef2f2; color: var(--gap); }
.cov-area { font-weight: 600; flex: 0 0 auto; }
.cov-detail { flex: 1; }
.next-steps { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 34px; margin: 0; line-height: 1.6; font-size: 13.5px; }
.rep-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 17px; line-height: 1.6; margin-bottom: 16px; font-size: 14px; }
h4 { font-size: 14px; margin: 16px 0 8px; }
.timeline { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.tl-item { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }

/* delivery & communication analytics */
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.dm { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.dm-val { font-size: 24px; font-weight: 800; line-height: 1; }
.dm-label { font-size: 12px; font-weight: 600; margin-top: 6px; }
.dm-sub { font-size: 11px; color: var(--dim); margin-top: 2px; }
.dm.good .dm-val { color: var(--good); }
.dm.ok .dm-val { color: var(--hint); }
.dm.bad .dm-val { color: var(--gap); }
.delivery-note { font-size: 13px; line-height: 1.55; padding: 0 2px; }

/* session replay (transcript) */.replay-toggle { float: right; background: transparent; border: 1px solid var(--line);
  color: var(--accent); border-radius: 8px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.replay { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; max-height: 420px; overflow-y: auto; }
.replay[hidden] { display: none; }
.rp-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rp-line:last-child { border-bottom: 0; }
.rp-role { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); font-weight: 700; margin-bottom: 2px; }
.rp-line.you .rp-role { color: var(--accent); }
.rp-txt { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }

/* study mode */
.study-pack { display: flex; flex-direction: column; gap: 10px; }
.study-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); }
.study-title { font-weight: 700; font-size: 14.5px; }
.study-concept { font-size: 13px; color: #374151; margin-top: 6px; line-height: 1.5; }
.study-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.study-tag { font-size: 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; color: var(--dim); }
.study-toggle { margin-top: 10px; background: transparent; border: 1px solid var(--line); color: var(--accent); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.study-sol { margin-top: 10px; background: #fafafb; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-x: auto; }
.study-sol[hidden] { display: none; }
.tl-item:last-child { border-bottom: 0; }
.tl-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 6px; flex: 0 0 auto; font-weight: 700; }
.tl-kind.good { background: #ecfdf5; color: var(--good); }
.tl-kind.gap, .tl-kind.bug { background: #fef2f2; color: var(--gap); }
.tl-kind.hint, .tl-kind.hints { background: #fffbeb; color: var(--hint); }
.tl-kind.pause, .tl-kind.highlight { background: var(--panel-2); color: var(--dim); }
#btn-again { margin-top: 24px; }
.rep-overall, .rep-scores, .readiness, .rep-cols > div,
.coverage, .next-steps, .rep-summary, .timeline { box-shadow: var(--shadow); }

@media (max-width: 820px) {
  /* Landing: collapse the 2-col hero into a single centered column. */
  .login-wrap { grid-template-columns: 1fr; gap: 26px; padding: 22px 18px 36px; justify-items: center; }
  .login-wrap .card { max-width: 520px; text-align: left; }
  .login-wrap .card h1 { font-size: 30px; }
  .proof { position: static; width: 100%; max-width: 520px; }
  .lp-nav-link { display: none; }               /* keep the nav clean on phones — Sign in stays */
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: 1fr; }
  .rep-top { flex-direction: column; }
  .rep-scores { grid-template-columns: 1fr 1fr; }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .rep-cols { flex-direction: column; }
  .interviewer { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .room-body { flex-direction: column; }
  /* Stack the split vertically on phones — side-by-side is too cramped. */
  .split { flex-direction: column; }
  .split-prob { flex: 0 0 auto; max-height: 32vh; padding-right: 0; padding-bottom: 8px; }
  .split-gutter { display: none; }
  /* Sticky Start bar so the button is always reachable without scrolling. */
  #screen-picker { padding-bottom: 96px; }
  #btn-start { display: none; }
  #screen-picker.active .mobile-cta {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(17,17,26,.08);
  }
  .mobile-cta .cta-hint { flex: 1; font-size: 13px; font-weight: 600; color: var(--dim); line-height: 1.25; }
  .mobile-cta .cta-hint.ready { color: var(--good); }
  .mobile-cta .primary { width: auto; margin: 0; padding: 12px 20px; white-space: nowrap; flex: 0 0 auto; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  #screen-login, #screen-picker, #screen-report { padding: 16px 12px; }
  .card { padding: 26px 20px; border-radius: 18px; }
  .picker-wrap { padding: 22px 18px 20px; border-radius: 18px; }
  h1 { font-size: 23px; }
  .picker-head h2 { font-size: 21px; }
  .mode-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .round-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .comm-toggle { grid-template-columns: 1fr; }
  .rep-scores { grid-template-columns: 1fr; }
  .readiness { flex-direction: column; align-items: stretch; gap: 12px; }
  .rd-gauge { min-width: 0; }
  .rd-num { text-align: left; }
  .rep-save { flex-direction: column; align-items: stretch; }
  .rep-save .google-btn { width: 100%; }
  .rep-email .re-row { flex-direction: column; }
  .rep-email .re-row .primary { width: 100%; }
  .rep-actions { flex-direction: column; }
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
  .phases { order: 3; width: 100%; }
}
