:root {
  --bg: #0b1220;
  --panel: #121d30;
  --panel-2: #17253c;
  --text: #eef4ff;
  --muted: #91a2bd;
  --line: rgba(185, 204, 232, .13);
  --brand: #55b6ff;
  --brand-2: #8c7dff;
  --green: #43d39e;
  --yellow: #ffc766;
  --red: #ff7186;
  --shadow: 0 18px 60px rgba(0, 0, 0, .26);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #162947 0, var(--bg) 42%); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: rgba(18, 29, 48, .88); box-shadow: var(--shadow); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 26px; margin-bottom: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; letter-spacing: -.04em; }
h2 { font-size: 22px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.field { display: grid; gap: 8px; margin: 16px 0; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: #0d1728; padding: 13px 14px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(85, 182, 255, .12); }
.primary, .secondary, .danger { border: 0; border-radius: 13px; padding: 12px 16px; color: #06101d; font-weight: 750; }
.primary { background: linear-gradient(135deg, var(--brand), #73c8ff); width: 100%; }
.secondary { color: var(--text); background: #203252; }
.danger { color: #fff; background: #6e2b42; }
.hint { margin: 14px 0 0; padding: 12px; border-radius: 13px; color: var(--muted); background: rgba(85, 182, 255, .08); font-size: 12px; line-height: 1.6; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { padding: 25px 16px; border-right: 1px solid var(--line); background: rgba(9, 18, 32, .68); position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 11px; padding: 0 12px 26px; }
.logo .brand-mark { width: 38px; height: 38px; border-radius: 12px; margin: 0; font-size: 19px; }
.logo strong { font-size: 18px; }
.nav { display: grid; gap: 6px; }
.nav button { text-align: left; border: 0; border-radius: 13px; padding: 13px 14px; color: var(--muted); background: transparent; font-weight: 650; }
.nav button:hover, .nav button.active { color: var(--text); background: linear-gradient(90deg, rgba(85, 182, 255, .17), rgba(140, 125, 255, .10)); }
.nav button.active { box-shadow: inset 3px 0 var(--brand); }
.sidebar-foot { position: absolute; bottom: 22px; left: 16px; right: 16px; }
.main { min-width: 0; padding: 28px clamp(18px, 4vw, 56px) 52px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 38px); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 12px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #071221; font-weight: 800; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(155deg, rgba(23,37,60,.92), rgba(14,25,43,.86)); padding: 21px; box-shadow: 0 12px 34px rgba(0,0,0,.12); }
.card.flat { background: rgba(18, 29, 48, .68); }
.card h3 { margin-bottom: 8px; }
.kicker { color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.big-number { font-size: 39px; letter-spacing: -.05em; font-weight: 850; margin: 8px 0 2px; }
.progress-track { height: 8px; border-radius: 99px; background: #243551; overflow: hidden; margin: 14px 0 7px; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.action-row button { width: auto; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 175px; background: linear-gradient(120deg, #1b4270, #26315c 54%, #342c6c); overflow: hidden; position: relative; }
.hero:after { content: ""; position: absolute; width: 270px; height: 270px; right: -55px; top: -90px; border-radius: 50%; border: 34px solid rgba(255,255,255,.08); }
.hero-content { position: relative; z-index: 1; }
.hero h2 { max-width: 580px; font-size: clamp(22px, 3vw, 31px); margin-bottom: 8px; }
.countdown { position: relative; z-index: 1; text-align: right; }
.countdown strong { display: block; font-size: 50px; letter-spacing: -.06em; }
.stat-label { color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.07); font-size: 11px; }
.tag.green { color: var(--green); background: rgba(67,211,158,.11); }
.tag.yellow { color: var(--yellow); background: rgba(255,199,102,.12); }
.tag.red { color: var(--red); background: rgba(255,113,134,.11); }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,18,33,.35); }
.list-item strong { display: block; margin-bottom: 4px; }
.list-item .meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
button.icon { padding: 8px 11px; width: auto; }
.question-card { max-width: 920px; margin: 0 auto; }
.question-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.question-number { color: var(--brand); font-weight: 800; }
.question-stem { font-size: clamp(18px, 2vw, 25px); line-height: 1.55; margin: 18px 0 20px; }
.options { display: grid; gap: 10px; }
.option { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(255,255,255,.045); padding: 14px; line-height: 1.5; }
.option:hover { border-color: var(--brand); background: rgba(85,182,255,.10); }
.option.selected { border-color: var(--brand); background: rgba(85,182,255,.18); }
.option.correct { border-color: var(--green); background: rgba(67,211,158,.16); }
.option.wrong { border-color: var(--red); background: rgba(255,113,134,.14); }
.option .key { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 8px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.09); font-weight: 800; }
.explanation { margin-top: 18px; padding: 17px; border-radius: 15px; background: rgba(85,182,255,.08); line-height: 1.72; }
.explanation strong { color: var(--brand); }
.explanation ul { padding-left: 20px; margin-bottom: 0; }
.textarea { min-height: 150px; resize: vertical; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: 115px 1fr 44px; align-items: center; gap: 10px; margin: 13px 0; font-size: 13px; }
.bar { height: 9px; border-radius: 99px; background: #253552; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.check-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: 0; }
.check-item input { width: 18px; height: 18px; accent-color: var(--brand); }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 75px 1fr; gap: 15px; }
.timeline-date { color: var(--brand); font-size: 12px; font-weight: 800; padding-top: 3px; }
.timeline-body { padding-bottom: 14px; border-left: 1px solid var(--line); padding-left: 15px; position: relative; }
.timeline-body:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: absolute; left: -4px; top: 5px; box-shadow: 0 0 0 4px rgba(85,182,255,.12); }
.footer-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .logo { padding: 0 4px 13px; }
  .nav { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .nav button { white-space: nowrap; padding: 10px 12px; }
  .sidebar-foot { display: none; }
  .main { padding: 21px 15px 38px; }
  .topbar { align-items: flex-start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { display: block; }
  .countdown { text-align: left; margin-top: 18px; }
}
@media (max-width: 520px) {
  .top-actions .pill { display: none; }
  .card { padding: 17px; border-radius: 17px; }
  .question-stem { font-size: 18px; }
  .bar-row { grid-template-columns: 84px 1fr 35px; }
}
.answer-sheet { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,18,33,.32); }
.answer-sheet > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sheet-number { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.04); }
.sheet-number.done { color: #06101d; border-color: var(--green); background: rgba(67,211,158,.65); }
.sheet-number.current { color: #06101d; border-color: var(--brand); background: var(--brand); }
