:root {
  --bg: #0f1724;
  --panel: #162033;
  --panel-2: #1c2a42;
  --line: #2a3b58;
  --text: #e8eef8;
  --muted: #93a4c0;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --good: #22c55e;
  --bad: #f43f5e;
  --warn: #f59e0b;
  --chip: #243552;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }

.app { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
.sitebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #10192b; position: sticky; top: 0; z-index: 5; }
.sitebar .brand { font-weight: 750; margin-right: 12px; }
.sitebar button { background: transparent; color: var(--muted); border: 0; border-radius: 8px; padding: 8px 12px; }
.sitebar button.on { background: var(--panel-2); color: var(--text); }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.docard { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--text); }
.docard:hover { border-color: var(--accent); }
.docard h2 { margin: 8px 0; font-size: 18px; }
.docard p { margin: 0; color: var(--muted); line-height: 1.45; }
.week { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.map { width: 100%; height: auto; margin: 8px 0 18px; }
.map .box { fill: #1c2a42; stroke: #2a3b58; }
.map .box.hot { stroke: #3b82f6; }
.map .h { fill: #e8eef8; font-size: 15px; font-weight: 700; }
.map .p { fill: #93a4c0; font-size: 13px; }
.map .arrow { stroke: #60a5fa; stroke-width: 2; fill: none; }
.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 10px 0; line-height: 1.55; }
.callout { margin-top: 16px; padding: 14px; border-radius: 12px; background: #2a2110; border: 1px solid #a16207; color: #fde68a; }
.guide h2 { margin-top: 22px; font-size: 18px; }
.weekblock { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 14px; }
.banner { background: #122033; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: #c9d7ee; margin-top: 12px; }

.hero, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.kicker { color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
h1 { margin: 8px 0 12px; font-size: 32px; }
.lede { color: var(--muted); line-height: 1.55; max-width: 70ch; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 140px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sets-title { margin: 28px 0 0; font-size: 16px; }
.count { color: var(--muted); font-weight: 500; }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; background: var(--accent); color: white; font-weight: 650; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.warn { background: #b45309; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.meta { color: var(--muted); font-size: 14px; }
.progress { height: 8px; background: #223049; border-radius: 99px; overflow: hidden; margin: 8px 0 18px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #22d3ee); }

.layout { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.stem { font-size: 17px; line-height: 1.6; }
.kind { display: inline-block; margin-bottom: 10px; background: var(--chip); color: var(--accent-2); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.opt { display: flex; gap: 10px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.opt:hover { border-color: #3d5a86; }
.opt.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt.correct { border-color: var(--good); background: #12291c; }
.opt.wrong { border-color: var(--bad); background: #2a1218; }
.verdict { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-weight: 750; font-size: 18px; }
.verdict.ok { background: #12291c; color: var(--good); border: 1px solid #166534; }
.verdict.no { background: #2a1218; color: var(--bad); border: 1px solid #9f1239; }
.verdict.mid { background: #2a2110; color: var(--warn); border: 1px solid #a16207; }
.tag { font-style: normal; font-size: 12px; font-weight: 750; margin-left: 6px; }
.tag.ok { color: var(--good); }
.tag.no { color: var(--bad); }
.opt input { margin-top: 3px; }
.qimg { width: 100%; border-radius: 10px; margin-top: 14px; border: 1px solid var(--line); background: #0b1220; }
.slot { margin-top: 14px; }
.slot label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.slot select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.navbtn { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.navbtn.current { outline: 2px solid var(--accent); }
.navbtn.answered { background: #1d3a63; }
.navbtn.flagged { background: #5b3a12; }
.navbtn.ok { background: #14532d; }
.navbtn.no { background: #7f1d1d; }

.side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; height: fit-content; }
.side h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.expl { margin-top: 16px; padding: 14px; border-radius: 12px; background: #122033; border: 1px solid var(--line); color: #c9d7ee; line-height: 1.55; }

.score { font-size: 56px; margin: 8px 0; }
.pass { color: var(--good); }
.fail { color: var(--bad); }
.list { margin-top: 18px; display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.item button { background: none; border: 0; color: var(--accent-2); }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 22px; }
.exam-card { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); }
.exam-card h2 { margin: 8px 0 6px; font-size: 20px; }
.exam-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.exam-card:hover { border-color: var(--accent); }
.btn.senior { border-color: #7c5c2b; }
.scenario { margin: 0 0 16px; background: #121c2e; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.scenario summary { cursor: pointer; font-weight: 700; color: var(--accent-2); }
.scenario-body { margin-top: 10px; color: #c9d7ee; line-height: 1.55; font-size: 14px; }