/* Superday: calm "study desk" look. Paper background, navy ink, flat controls. */
:root {
  --bg: #f7f6f2; --fg: #161a26; --muted: #666b7a; --line: #e3e1da; --soft: #efeee8; --card: #ffffff;
  --primary: #1e40af; --primary-h: #1a3794; --primary-soft: #e8edfb; --ink: #14254f;
  --good: #15803d; --good-bg: #e7f6ec; --good-line: #9fd8b2;
  --bad: #c2410c; --bad-bg: #fdf0e8; --bad-line: #f3c09f;
  --gold: #e0a526; --fire: #ea7a12; --heart: #e0364f; --coin: #c98e09;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 2px 8px rgba(20, 30, 60, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --fg: #e8eaf0; --muted: #9298a8; --line: #262b36; --soft: #181c25; --card: #151922;
    --primary: #7c9cff; --primary-h: #93adff; --primary-soft: #1c2541; --ink: #0b1430;
    --good: #4ade80; --good-bg: #10261a; --good-line: #1f5134; --bad: #fb923c; --bad-bg: #2a1910; --bad-line: #5a3216;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --fg: #e8eaf0; --muted: #9298a8; --line: #262b36; --soft: #181c25; --card: #151922;
  --primary: #7c9cff; --primary-h: #93adff; --primary-soft: #1c2541; --ink: #0b1430;
  --good: #4ade80; --good-bg: #10261a; --good-line: #1f5134; --bad: #fb923c; --bad-bg: #2a1910; --bad-line: #5a3216;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.55; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; } .left { text-align: left; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stack { display: grid; gap: 10px; width: 100%; max-width: 360px; } .stack.narrow { max-width: 300px; margin: 0 auto; }

/* ---------- Buttons: flat, sentence case ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 12px 20px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 15px; transition: background .12s, border-color .12s; user-select: none; }
:root[data-theme="dark"] .btn, .btn { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost):not(.text):not(.clear) { color: #0b1430; } }
.btn:hover { background: var(--primary-h); }
.btn:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.bad { background: var(--bad); }
.btn.text { background: none; color: var(--primary); padding: 8px 10px; border: 0; }
.btn.text:hover { text-decoration: underline; }
.btn.text.danger { color: var(--bad); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn .ico { width: 17px; height: 17px; }

/* ---------- Track badges (initials) ---------- */
.tbadge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; flex-shrink: 0; }
.tbadge.sm { width: 34px; height: 28px; border-radius: 8px; font-size: 12px; }
.tbadge.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 19px; }
.badge-pro { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--gold); color: #2b1d00; border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr) 320px; min-height: 100vh; max-width: 1240px; margin: 0 auto; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; }
.brand { font-weight: 800; font-size: 20px; color: var(--fg); letter-spacing: -.02em; padding: 0 10px 18px; display: flex; align-items: center; gap: 10px; }
.brand .ico { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--ink); color: var(--gold); stroke-width: 2.6; }
.brand.big { font-size: 26px; padding: 0; } .brand.big .ico { width: 40px; height: 40px; padding: 8px; border-radius: 11px; }
.navbtn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-weight: 600; font-size: 15px; color: var(--muted); text-align: left; position: relative; }
.navbtn:hover { background: var(--soft); color: var(--fg); }
.navbtn.on { color: var(--fg); background: var(--card); box-shadow: var(--shadow); }
.navbtn.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.navbtn.on .ico { color: var(--primary); }
.dotnew { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: auto; }
.main { min-width: 0; padding: 0 28px 120px; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); }

.stats { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; padding: 6px 8px; border-radius: 10px; background: none; border: 0; }
.stat:hover { background: var(--soft); }
.trackbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 4px 8px 4px 4px; box-shadow: var(--shadow); }
.trackbtn:hover { border-color: var(--primary); }
.trackbtn .tlabel { display: grid; text-align: left; font-weight: 700; font-size: 14px; line-height: 1.1; }
.trackbtn .tlabel small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rail .stats { gap: 2px; } .rail .stat { padding: 6px 5px; } .rail { padding: 20px 18px; }
.trackbtn > .ico { width: 16px; height: 16px; color: var(--muted); }
.stat .em { font-size: 18px; line-height: 1; }
.stat.fire { color: var(--fire); } .stat.fire.cold { color: var(--muted); } .stat.fire.cold .em { filter: grayscale(1); opacity: .6; }
.stat.coin { color: var(--coin); } .stat.heart { color: var(--heart); }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); box-shadow: var(--shadow); }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.meter { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--primary)); transition: width .5s ease; }
.meter.thin { height: 5px; }
.topbar, .tabbar { display: none; }
.foot { font-size: 12px; color: var(--muted); padding: 4px; }

/* ---------- Learn: syllabus ---------- */
.page { padding-top: 28px; max-width: 660px; margin: 0 auto; }
.page.reader { max-width: 720px; }
.page.wide { max-width: 700px; }
.page > h1 { font-size: 28px; margin-bottom: 4px; }
.page > .sub { color: var(--muted); margin: 0 0 20px; }
.sec { margin: 26px 0 10px; font-size: 17px; }
.course-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.course-head h1 { font-size: 24px; margin-bottom: 8px; }
.course-head .meter { max-width: 320px; margin-bottom: 4px; }
.course-head small { font-size: 13px; }
/* Winding trail: chapter banners, then lesson nodes joined by a curved line */
.chap { margin-bottom: 8px; }
.chap-card { display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; padding: 18px 18px 16px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #0b1430)); }
.chap.locked .chap-card { background: var(--soft); color: var(--fg); border: 1px solid var(--line); }
.chap-card .kicker { color: rgba(255, 255, 255, .8); } .chap.locked .chap-card .kicker { color: var(--muted); }
.chap-card h2 { font-size: 20px; } .chap-card p { margin: 2px 0 10px; opacity: .85; font-size: 14px; }
.chap-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .18); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.chap.locked .chap-num { background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.chap-num .ico { stroke-width: 3; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.light { background: #fff; color: #14254f; } .btn.light:hover { background: #eef1f8; }
.btn.clear { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); } .btn.clear:hover { background: rgba(255, 255, 255, .24); }
:root .chap.locked .chap-card .btn.light { background: var(--card); color: var(--fg); border-color: var(--line); }
.trail { position: relative; margin: 0 auto 18px; }
.trail > svg { position: absolute; inset: 0; overflow: visible; }
.trail > svg path { fill: none; stroke-width: 5; stroke-linecap: round; }
.t-done { stroke: var(--c); } .t-todo { stroke: var(--line); stroke-dasharray: 2 12; }
.pnode { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; padding: 0; background: none; z-index: 2; }
.pnode .face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 20px; font-weight: 800; font-size: 20px; transform: rotate(45deg); transition: transform .15s; }
.pnode .face { background: var(--card); border: 3px solid var(--line); color: var(--muted); }
.pnode .face > svg { transform: rotate(-45deg); width: 24px; height: 24px; }
.pnode .face > i { font-style: normal; transform: rotate(-45deg); }
.pnode.done .face { background: var(--c); border-color: var(--c); color: #fff; } .pnode.done .face svg { stroke-width: 3; }
.pnode.current .face { background: var(--card); border: 4px solid var(--c); color: var(--c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 18%, transparent); animation: glow 2s ease-in-out infinite; }
.pnode.test .face { border-radius: 24px; } .pnode.test.done .face { background: var(--gold); border-color: var(--gold); }
.pnode:not(.locked):hover .face { transform: rotate(45deg) scale(1.06); }
.pnode.locked .face { background: var(--soft); }
.pnode .pips { position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.pnode .pips b { width: 10px; height: 4px; border-radius: 2px; background: var(--line); }
.pnode .pips b.on { background: var(--c); } .pnode.done .pips b { background: var(--c); }
.pnode.open .face { background: var(--card); border: 3px dashed color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--c); }
.plabel.open b { color: var(--fg); }
.btn.pro-go { background: var(--ink); color: #fff; } .btn.pro-go .ico { color: var(--gold); }
@keyframes glow { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--c) 10%, transparent); } }
.pnode .face { font-variant-numeric: tabular-nums; }
.pnode .here { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; animation: nudge 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes nudge { 50% { transform: translate(-50%, -4px); } }
.plabel { position: absolute; transform: translateY(-50%); font-size: 14px; line-height: 1.3; z-index: 1; pointer-events: none; }
.plabel.l { text-align: right; } .plabel small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.plabel b { font-weight: 600; } .plabel.locked b { color: var(--muted); font-weight: 500; } .plabel.current b { color: var(--c); font-weight: 700; }
.ppop { position: absolute; z-index: 10; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 12px 32px rgba(15, 25, 50, .16); display: grid; gap: 4px; animation: rise .15s ease-out; }
.ppop::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax) - 7px); width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.ppop h3 { font-size: 17px; } .ppop p { margin: 0 0 8px; } .ppop .btn.text { margin-top: 2px; }
.ppop.current .btn:not(.text) { background: var(--c); }

/* ---------- Guide ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-c { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 12px 6px 6px; font-weight: 800; font-size: 13px; color: var(--c); }
.chip-c::first-letter { color: inherit; }
.chip-c span { color: var(--fg); font-weight: 600; }
.chip-c { position: relative; }
.chip-c.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.gch { margin-bottom: 22px; } .gch h2 { font-size: 18px; margin-bottom: 8px; }
.glist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.glist li + li { border-top: 1px solid var(--line); }
.glist button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: none; border: 0; text-align: left; font-weight: 600; }
.glist button:hover { background: var(--soft); }
.glist .n { color: var(--muted); font-size: 13px; font-weight: 700; width: 30px; font-variant-numeric: tabular-nums; }
.glist .ico { color: var(--muted); width: 18px; }
.reader h1 { font-size: 28px; margin: 4px 0 16px; }
.reader .back { margin: -6px 0 14px -10px; }
.read { font-size: 17.5px; line-height: 1.7; }
.read .rh { font-size: 19px; margin: 26px 0 10px; }
.callout { border-radius: 12px; padding: 13px 16px; margin: 0 0 16px; font-size: 16.5px; border: 1px solid; }
.callout b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.callout.tip { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); } .callout.tip b { color: var(--primary); }
.callout.warn { background: var(--bad-bg); border-color: var(--bad-line); } .callout.warn b { color: var(--bad); }
.rsteps { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.read .rsteps li, .rsteps li { counter-increment: s; position: relative; padding-left: 36px; }
.read .rsteps li::before, .rsteps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--gold); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.read p { margin: 0 0 14px; }
.read ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.read li { position: relative; padding-left: 20px; }
.read li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); }
.ex { font-size: 16.5px !important; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--card)); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 0 0 16px; font-size: 15.5px; }
.ex b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--coin); margin-bottom: 2px; }
.tryit { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; } .tryit small { display: block; }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Rail ---------- */
.goal-days { display: flex; justify-content: space-between; margin-top: 12px; }
.goal-days span { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.goal-days i { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.goal-days i .ico { width: 14px; height: 14px; stroke-width: 3; }
.goal-days i.on { background: var(--fire); } .goal-days i.ice { background: #60a5fa; }
.goal-days span.today { color: var(--fg); }
.pro-card { border: 0; color: #e8ecf8; background: var(--ink); box-shadow: none; }
.pro-card h3 { margin: 10px 0 4px; color: #fff; } .pro-card p { color: #b9c3e0; }
.pro-card .btn { background: var(--gold); color: #2b1d00; } .pro-card .btn:hover { background: #ebb43f; }
.pro-card.hero { text-align: center; padding: 28px 22px; } .pro-card.hero h1 { font-size: 26px; color: #fff; margin: 10px 0 6px; } .pro-card.hero p { margin: 0; }

/* ---------- Lists and tiles ---------- */
.list { display: grid; gap: 10px; }
.tile { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); box-shadow: var(--shadow); }
.tile:not(:disabled):hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.tile:disabled { opacity: .55; cursor: default; }
.tile h3 { font-size: 16px; } .tile p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tile.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.tic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; font-size: 18px; }

/* ---------- Leagues ---------- */
.ladder { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.ladder span { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.ladder span.past { color: var(--fg); }
.ladder span.on { background: var(--c); border-color: var(--c); color: #fff; font-weight: 700; }
.lb { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row .rk { width: 24px; text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-row .av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--fg); font-weight: 700; flex-shrink: 0; }
.lb-row.you { background: var(--primary-soft); } .lb-row.you .av { background: var(--primary); color: #fff; }
.lb-row.up .rk { color: var(--good); } .lb-row.down .rk { color: var(--bad); }
.zone { padding: 5px 16px; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
.zone.up { color: var(--good); background: var(--good-bg); } .zone.down { color: var(--bad); background: var(--bad-bg); }
.note { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Profile ---------- */
.avatar { width: 68px; height: 68px; border-radius: 18px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 28px; font-weight: 800; flex-shrink: 0; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.sg b { display: block; font-size: 20px; font-weight: 700; } .sg small { color: var(--muted); font-weight: 500; }
.ach { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ach:last-child { border-bottom: 0; }
.ach .medal { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--soft); flex-shrink: 0; filter: grayscale(1); opacity: .6; }
.ach .medal.l1, .ach .medal.l2, .ach .medal.l3, .ach .medal.l4 { filter: none; opacity: 1; background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 14px; }
.seg button.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- Lesson ---------- */
.lesson { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.lesson-head { max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; gap: 14px; }
.lh-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.lesson-head .meter > i { background: var(--good); }
.xbtn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }
.xbtn:hover { color: var(--fg); }
.lives { font-size: 13px; font-weight: 700; color: var(--bad); white-space: nowrap; }
.lesson-body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 28px 20px; }
.q { width: 100%; max-width: 640px; }
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 34px; }
.q .kind { color: var(--muted); font-weight: 600; font-size: 14px; }
.again-tag { color: var(--bad); }
.learn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.learn:hover { border-color: var(--primary); } .learn .ico { width: 15px; height: 15px; }
.q h2 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.read-first h1 { font-size: 26px; margin: 4px 0 16px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--card); font-weight: 500; font-size: 16px; box-shadow: var(--shadow); }
.opt:not(:disabled):hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.opt .k { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--soft); display: grid; place-items: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.opt.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); } .opt.sel .k { background: var(--primary); color: #fff; }
.opt.right { border-color: var(--good-line); background: var(--good-bg); box-shadow: 0 0 0 1px var(--good); } .opt.right .k { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad-line); background: var(--bad-bg); box-shadow: 0 0 0 1px var(--bad); } .opt.wrong .k { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; color: var(--fg); }
.opts.tf .opt { font-size: 17px; padding: 18px; }
.numin { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--card); max-width: 340px; }
.numin input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 22px; font-weight: 700; color: var(--fg); padding: 8px 0; }
.numin:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.numin .u { color: var(--muted); font-weight: 700; }
.hint { color: var(--muted); font-size: 14px; margin-top: 10px; }
.matchgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.matchgrid .col { display: grid; gap: 10px; align-content: start; }
.mt { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); font-weight: 500; font-size: 15px; min-height: 56px; text-align: center; box-shadow: var(--shadow); }
.mt.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); color: var(--primary); }
.mt.ok { color: var(--muted); background: var(--soft); box-shadow: none; cursor: default; text-decoration: line-through; text-decoration-color: var(--good); }
.mt.flash { border-color: var(--bad); background: var(--bad-bg); animation: shake .3s; }
.mt.okflash { border-color: var(--good); background: var(--good-bg); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.answer-line { min-height: 60px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-bottom: 16px; }
.bank { display: flex; flex-direction: column; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--card); font-weight: 500; text-align: left; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.chip .n { color: var(--primary); font-weight: 800; }
.chip.ghosted { visibility: hidden; }
.explain { margin-top: 18px; border-radius: 12px; padding: 14px 16px; border: 1px solid; animation: rise .18s ease-out; }
.explain.ok { background: var(--good-bg); border-color: var(--good-line); } .explain.no { background: var(--bad-bg); border-color: var(--bad-line); }
.explain .vh { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.explain.ok .vh { color: var(--good); } .explain.no .vh { color: var(--bad); } .explain .vh .ico { stroke-width: 3; }
.explain p { margin: 0 0 6px; font-size: 15px; }
.explain .lbl { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.explain .btn.text { padding: 6px 0; margin-top: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.lesson-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--card); }
.lesson-foot .in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lesson-foot .btn { min-width: 150px; }

/* ---------- Result screens ---------- */
.center-screen { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; gap: 10px; }
.center-screen h1 { font-size: 28px; }
.ring { position: relative; width: 150px; height: 150px; margin-bottom: 8px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; } .ring .trk { stroke: var(--soft); } .ring .val { stroke: var(--good); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring > div { position: absolute; inset: 0; display: grid; place-content: center; } .ring b { font-size: 32px; font-weight: 800; line-height: 1; } .ring small { color: var(--muted); font-size: 13px; }
.sumrows { width: 100%; max-width: 340px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-top: 8px; text-align: left; }
.sumrows div { display: flex; justify-content: space-between; padding: 11px 16px; } .sumrows div + div { border-top: 1px solid var(--line); }
.sumrows span { color: var(--muted); } .sumrows b { font-variant-numeric: tabular-nums; }
.hero-num { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.03em; } .hero-num.fire { color: var(--fire); }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(12, 16, 28, .5); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 18px; padding: 26px 22px 18px; width: 100%; max-width: 420px; text-align: center; display: grid; gap: 12px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--line); }
.modal h2 { font-size: 22px; } .modal p { margin: 0; color: var(--muted); }
.modal .badge-pro { justify-self: center; }
.modal.sheet { text-align: left; max-width: 580px; } .modal.sheet .read p { color: var(--fg); } .modal.sheet .kicker { margin: 0; }
.modal.checkout { max-width: 560px; }
.modal.checkout #checkout { min-height: 120px; text-align: left; }
.hearts-row { font-size: 26px; letter-spacing: 3px; }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- Onboarding ---------- */
.onb { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; gap: 20px; text-align: center; }
.onb h1 { font-size: 28px; }
.onb .hero { font-size: 38px; font-weight: 800; max-width: 600px; line-height: 1.15; letter-spacing: -.025em; }
.onb .hero em { font-style: normal; color: var(--primary); }
.onb .lede { color: var(--muted); max-width: 480px; margin: 0; font-size: 18px; }
.onb .kicker { margin: 0 0 -10px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lbl-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 5px 12px 5px 5px; font-weight: 600; font-size: 14px; }
.lbl-badge .tbadge { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.onb .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; width: 100%; max-width: 820px; }
.course-card { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); box-shadow: var(--shadow); }
.course-card:hover { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.course-card h3 { font-size: 16px; } .course-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.goal-list { display: grid; gap: 10px; width: 100%; max-width: 440px; }

.gate h1 { max-width: 520px; }
.gate-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gate-stats > span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 12px; font-size: 14px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: left; background: var(--card); position: relative; box-shadow: var(--shadow); }
.plan.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan b { font-size: 22px; font-weight: 800; display: block; } .plan small { color: var(--muted); }
.plan .save { position: absolute; top: -10px; right: 12px; background: var(--good); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 22px; }
.compare td, .compare th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.compare td:first-child, .compare th:first-child { text-align: left; }

/* ---------- Narrow screens ---------- */
.topstats-inline { display: none; }
@media (max-width: 1100px) { .app { grid-template-columns: 210px minmax(0, 1fr); } .rail { display: none; } .topstats-inline { display: flex; margin-bottom: 14px; } }
@media (max-width: 760px) {
  .app { display: block; }
  .side { display: none; }
  .main { padding: 0 16px 100px; }
  .page { padding-top: 18px; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px; justify-content: space-between; align-items: center; gap: 8px; }
  .topbar .brand { padding: 0; font-size: 0; } .topbar .brand .ico { width: 30px; height: 30px; }
  .topbar .stats { gap: 2px; }
  .topbar .trackbtn .tlabel { display: none; } .topbar .trackbtn { gap: 4px; padding-right: 6px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar button .ico { width: 22px; height: 22px; }
  .tabbar button.on { color: var(--primary); }
  .topstats-inline { display: none !important; }
  .course-head { gap: 12px; } .course-head h1 { font-size: 20px; } .course-head .tbadge.lg { width: 46px; height: 46px; font-size: 16px; }
  .plabel { font-size: 13px; } .chap-card { padding: 16px 14px 14px; }
  .q h2 { font-size: 19px; }
  .opts.two { grid-template-columns: 1fr; }
  .lesson-body { padding: 20px 16px; }
  .lesson-foot .in { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .lesson-foot .in > span:empty { display: none; }
  .lesson-foot .btn { width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .onb .hero { font-size: 29px; }
  .reader h1, .read-first h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Streak flame */
.flame { width: 120px; height: 150px; margin: 0 auto -18px; position: relative; }
.flame.sm { width: 84px; height: 105px; margin-bottom: -10px; }
.flame svg { width: 100%; height: 100%; overflow: visible; }
.flame .fl-body { transform-origin: 60px 140px; animation: fl-rise .9s cubic-bezier(.2, .9, .3, 1.2) both, fl-flicker 1.6s ease-in-out .9s infinite; filter: drop-shadow(0 0 18px rgba(255, 140, 30, .55)); }
.flame .fl-inner { transform-origin: 60px 132px; animation: fl-inner 1.1s ease-in-out .9s infinite; }
.flame .ember { opacity: 0; animation: fl-ember 2.4s ease-out infinite; }
.flame .e0 { animation-delay: .9s; } .flame .e1 { animation-delay: 1.5s; } .flame .e2 { animation-delay: 1.2s; } .flame .e3 { animation-delay: 2s; }
.flame + .hero-num { animation: fl-num .5s ease-out .5s both; }
@keyframes fl-rise { 0% { transform: translateY(40px) scale(.2, .1); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes fl-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(1.03, .97) skewX(-2deg); } 50% { transform: scale(.98, 1.04) skewX(1.5deg); } 75% { transform: scale(1.02, .99) skewX(-1deg); } }
@keyframes fl-inner { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92, 1.08); } }
@keyframes fl-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -110px); } }
@keyframes fl-num { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flame .fl-body, .flame .fl-inner, .flame .ember, .flame + .hero-num { animation: none; } .flame .ember { display: none; } }

/* AI mock interview */
.iv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.iv-head h1 { font-size: 22px; margin: 0; }
.iv-head .kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.iv-setup { display: grid; gap: 16px; margin-top: 8px; }
.iv-opt { display: grid; gap: 8px; } .iv-opt small { font-size: 13px; }
.iv-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.iv-chat { display: grid; gap: 10px; margin: 6px 0 14px; }
.ivb { max-width: 88%; border-radius: 16px; padding: 10px 14px; border: 1px solid var(--line); background: var(--card); }
.ivb small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ivb p { margin: 0; white-space: pre-wrap; }
.ivb.ai { justify-self: start; border-bottom-left-radius: 4px; }
.ivb.me { justify-self: end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); border-bottom-right-radius: 4px; }
.ivb .linkish { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }
.ivb.typing p { display: flex; gap: 5px; padding: 6px 0; }
.ivb.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: iv-dot 1s infinite ease-in-out; }
.ivb.typing i:nth-child(2) { animation-delay: .15s; } .ivb.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes iv-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.iv-compose { display: grid; gap: 10px; }
.iv-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg, var(--card)); color: var(--fg); font: inherit; resize: vertical; }
.iv-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.iv-rec { display: flex; align-items: center; gap: 14px; }
.iv-rec .kicker { color: var(--bad); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.iv-live { margin: 4px 0 0; max-height: 160px; overflow: auto; }
.iv-mic { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--bad); color: #fff; flex: none; cursor: pointer; }
.iv-mic .ico { width: 24px; height: 24px; }
.iv-mic.on { animation: iv-pulse 1.4s infinite; }
@keyframes iv-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.note.bad { border-style: solid; border-color: var(--bad-line); background: var(--bad-bg); color: var(--fg); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.iv-wait { padding: 36px 18px; }
.spinner { width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--primary); animation: iv-spin .9s linear infinite; }
@keyframes iv-spin { to { transform: rotate(360deg); } }
.iv-done { display: grid; gap: 8px; }
.iv-top { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.iv-top p { margin: 6px 0 2px; }
.iv-big { font-size: 56px; font-weight: 800; line-height: 1; color: var(--primary); }
.iv-big small { font-size: 18px; color: var(--muted); }
.pill.good { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.pill.warn { background: color-mix(in srgb, var(--gold) 16%, var(--card)); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.iv-bar { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; padding: 4px 0; }
.iv-bar b { text-align: right; }
.iv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.iv-stats > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card); display: grid; gap: 2px; }
.iv-stats b { font-size: 24px; } .iv-stats small { color: var(--muted); font-size: 12.5px; }
.iv-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.iv-q { display: grid; gap: 6px; } .iv-q p { margin: 0; }
.iv-qh { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.iv-tx { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.iv-tx summary { font-weight: 700; cursor: pointer; } .iv-tx p { font-size: 14px; }
.iv-score { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--primary-soft); color: var(--primary); flex: none; }
@media (max-width: 520px) { .iv-stats { grid-template-columns: 1fr; } .iv-bar { grid-template-columns: 96px 1fr 24px; } .ivb { max-width: 95%; } }

/* ---------- Interview: video-call stage, the interviewer character, HireVue practice ---------- */
.iv-stage { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; margin: 4px 0 14px; }
.iv-stage.two { grid-template-columns: 1fr 1fr; }
.iv-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--primary-soft); display: grid; place-items: center; }
.iv-stage:not(.two) .iv-tile { aspect-ratio: auto; height: 240px; }
.iv-tile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #0b1430; }
.iv-tag { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; background: rgba(11, 20, 48, .72); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.iv-tag span { opacity: .85; }
.iv-camtoggle { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.iv-camtoggle .ico { width: 16px; height: 16px; }
.iv-av svg { height: 92%; width: auto; max-width: 100%; }
.iv-av.talking { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--primary) 55%, transparent); }
.iv-av.listening { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--good, #16a34a) 60%, transparent); }
.av-skin { fill: #e9b98f; } .av-hair { fill: #3a2a21; } .av-suit { fill: #1e3a8a; } .av-shirt { fill: #fff; } .av-tie { fill: #c9962b; }
.av-eyes ellipse { fill: #1f2937; } .av-brow { fill: none; stroke: #3a2a21; stroke-width: 3; stroke-linecap: round; }
.av-glasses rect, .av-glasses path { fill: none; stroke: #1f2937; stroke-width: 2.4; } .av-nose { fill: none; stroke: #c48b62; stroke-width: 2.4; stroke-linecap: round; }
.av-mouth { fill: #6b2836; transform-box: fill-box; transform-origin: center; transform: scale(calc(.8 + var(--m, 0) * .3), calc(var(--m, 0) * 1.15)); }
.av-smile { fill: none; stroke: #6b2836; stroke-width: 2.6; stroke-linecap: round; opacity: calc(1 - var(--m, 0) * 4); }
.av-eyes { transform-box: fill-box; transform-origin: center; animation: av-blink 5s infinite; }
.av-look, .av-head { transition: transform .4s ease; transform-box: fill-box; }
.av-head { transform-origin: 50% 100%; }
.iv-av.thinking .av-look { transform: translate(4px, -4px); }
.iv-av.listening .av-head { transform: rotate(-3deg); }
.iv-av.talking .av-head { animation: av-bob 2.6s ease-in-out infinite; }
@keyframes av-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes av-bob { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(1.5deg) translateY(-1px); } 70% { transform: rotate(-1deg) translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .av-eyes, .iv-av.talking .av-head { animation: none; } }

.hv-stage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; margin-top: 6px; }
.hv-cam { aspect-ratio: 4 / 3; background: #0b1430; }
.hv-cam.live { box-shadow: 0 0 0 3px var(--bad); }
.hv-nocam { color: #cbd5e1; font-weight: 600; }
.hv-rec { background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; border-radius: 6px; padding: 2px 7px; }
.hv-cam > .hv-rec { position: absolute; left: 12px; top: 12px; animation: iv-blink 1.2s infinite; }
@keyframes iv-blink { 50% { opacity: .35; } }
.hv-clock { position: absolute; right: 12px; top: 12px; background: rgba(11, 20, 48, .75); color: #fff; border-radius: 12px; padding: 6px 12px; text-align: right; }
.hv-clock small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hv-clock b { font-size: 22px; font-variant-numeric: tabular-nums; }
.hv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .18); }
.hv-bar i { display: block; height: 100%; background: var(--primary); transition: width .2s linear; }
.hv-cam.live .hv-bar i { background: var(--bad); }
.hv-q { display: grid; gap: 10px; }
.hv-q .kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hv-q > p:not(.muted) { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.hv-live { font-size: 14px; color: var(--muted); }
.hv-review { display: grid; gap: 12px; margin-top: 12px; }
.hv-play, .hv-clips video { width: 100%; max-height: 360px; border-radius: 14px; background: #0b1430; }
.hv-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hv-clips .card { display: grid; gap: 6px; } .hv-clips p { margin: 0; }
@media (max-width: 720px) {
  .hv-stage { grid-template-columns: 1fr; }
  .iv-stage.two { grid-template-columns: 1fr 1fr; }
  .iv-stage:not(.two) .iv-tile { height: 200px; }
}

/* HireVue feature: nav tag and hero on the Interview tab */
.navtag { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-radius: 6px; padding: 2px 6px; }
.topbar .navtag, nav.bottom .navtag { display: none; }
.hv-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; margin: 6px 0 22px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); background: linear-gradient(135deg, var(--primary-soft), var(--card) 70%); }
.hv-hero h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.25; }
.hv-hero p { margin: 0 0 10px; }
.hv-hero .btn { display: inline-flex; gap: 8px; align-items: center; }
.hv-hero .btn .ico { width: 18px; height: 18px; }
.hv-new { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bad); }
.hv-points { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.hv-mock { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #24345e; box-shadow: 0 0 0 3px var(--bad); }
.hv-mock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-mock > .hv-rec { position: absolute; left: 10px; top: 10px; animation: iv-blink 1.2s infinite; }
@media (max-width: 720px) { .hv-hero { grid-template-columns: 1fr; } .hv-hero-art { display: none; } }
