:root {
  --navy:#0f172a;
  --blue:#2563eb;
  --cyan:#38bdf8;
  --purple:#7c3aed;
  --pink:#ec4899;
  --amber:#f59e0b;
  --green:#10b981;
  --ink:#172033;
  --muted:#5b6475;
  --line:#dce4ef;
  --paper:#ffffff;
  --shadow:0 18px 45px rgba(15,23,42,.14);
}
* { box-sizing:border-box; }
html { min-height:100%; background:#eef3fb; }
body { margin:0; min-height:100%; font-family:Arial,Helvetica,sans-serif; color:var(--ink); background:linear-gradient(180deg,#eef5ff,#f7f9fc 50%,#eef3f8); }
button { font:inherit; }
a { color:inherit; }
.page-zoom-shell { transform-origin:top center; transition:transform .16s ease; }
.hero { position:relative; overflow:hidden; color:#fff; background:radial-gradient(circle at 18% 10%,rgba(56,189,248,.35),transparent 26%),radial-gradient(circle at 82% 20%,rgba(236,72,153,.23),transparent 24%),linear-gradient(135deg,#111827 0%,#172554 46%,#312e81 100%); border-bottom:4px solid rgba(56,189,248,.45); }
.hero::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:34px 34px; mask-image:linear-gradient(to bottom,#000,transparent); }
.hero-inner { position:relative; z-index:2; width:min(1500px,calc(100% - 40px)); margin:0 auto; padding:42px 0 36px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:8px 13px; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:rgba(15,23,42,.35); backdrop-filter:blur(8px); font-weight:900; letter-spacing:.02em; }
h1 { margin:18px 0 10px; font-size:clamp(42px,6vw,84px); line-height:.94; letter-spacing:-.055em; }
.gradient-text { background:linear-gradient(90deg,#fff,#7dd3fc 52%,#f9a8d4); -webkit-background-clip:text; background-clip:text; color:transparent; }
.subtitle-list { display:grid; gap:5px; margin:18px 0; padding-left:23px; max-width:720px; color:#dbeafe; font-size:clamp(14px,1.2vw,18px); font-weight:700; }
.hero-badges { display:flex; flex-wrap:wrap; gap:9px; }
.hero-badge { padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.15); font-size:13px; font-weight:900; }
.circuit-node { position:absolute; width:14px; height:14px; border-radius:50%; background:#67e8f9; box-shadow:0 0 0 7px rgba(103,232,249,.1),0 0 28px #22d3ee; opacity:.8; }
.node-a { right:12%; top:22%; }.node-b { right:25%; bottom:18%; background:#f9a8d4; }.node-c { left:7%; bottom:16%; }
.wrap { width:min(1500px,calc(100% - 28px)); margin:0 auto; }
.data-status { display:flex; align-items:center; gap:9px; margin:16px 0 10px; padding:10px 13px; border:1px solid #bfdbfe; border-radius:14px; background:rgba(239,246,255,.95); color:#1e3a8a; font-size:13px; font-weight:800; box-shadow:0 8px 22px rgba(37,99,235,.08); }
.data-status.error { border-color:#fecaca; background:#fff1f2; color:#991b1b; }
.data-status.fallback { border-color:#fde68a; background:#fffbeb; color:#92400e; }
.status-dot { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.13); }
.data-status.error .status-dot { background:#ef4444; box-shadow:0 0 0 5px rgba(239,68,68,.12); }
.data-status.fallback .status-dot { background:#f59e0b; box-shadow:0 0 0 5px rgba(245,158,11,.12); }
.data-status button { margin-left:auto; border:0; border-radius:999px; padding:7px 12px; color:#fff; background:#1d4ed8; font-weight:900; cursor:pointer; }
.controls { margin:14px 0 18px; }
.control-card { padding:16px; border:1px solid #dbe4f0; border-radius:22px; background:rgba(255,255,255,.93); box-shadow:var(--shadow); }
.control-card > label { display:block; margin-bottom:12px; color:#334155; font-size:15px; font-weight:1000; text-transform:uppercase; letter-spacing:.055em; }
.class-buttons { display:grid; gap:12px; }
.year-class-group { display:grid; grid-template-columns:repeat(5,minmax(96px,1fr)); gap:8px; padding:12px; border-radius:18px; border:1px solid #e2e8f0; background:#f8fafc; }
.year-group-header { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.year-group-label { font-weight:1000; color:#0f172a; }
.class-btn { border:1px solid transparent; border-radius:13px; padding:10px 8px; color:#fff; background:linear-gradient(135deg,#334155,#0f172a); font-weight:1000; cursor:pointer; box-shadow:0 7px 16px rgba(15,23,42,.14); transition:transform .12s ease,filter .12s ease,box-shadow .12s ease; }
.class-btn:hover { transform:translateY(-1px); filter:brightness(1.07); }
.class-btn.active { transform:translateY(-2px); outline:3px solid rgba(255,255,255,.95); box-shadow:0 0 0 5px rgba(37,99,235,.45),0 12px 25px rgba(15,23,42,.25); }
.class-btn.year-7,.year-7-pill { background:linear-gradient(135deg,#2563eb,#38bdf8); }.class-btn.year-8,.year-8-pill { background:linear-gradient(135deg,#7c3aed,#a855f7); }.class-btn.year-9,.year-9-pill { background:linear-gradient(135deg,#059669,#34d399); }
.live-ticker { display:none; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; color:#fff; background:#0f172a; font-size:12px; font-weight:800; }
.live-ticker.show { display:inline-flex; }.ticker-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.16); }.ticker-days { font-weight:1000; }
.dashboard { margin-bottom:26px; }
.table-wrap { overflow:auto; border-radius:22px; background:#fff; border:1px solid #dbe4ef; box-shadow:var(--shadow); }
table { width:100%; min-width:1180px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
th,td { vertical-align:top; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
th:last-child,td:last-child { border-right:0; } tr:last-child td { border-bottom:0; }
th { position:sticky; top:0; z-index:3; padding:11px 7px; color:#fff; background:#0f172a; text-align:center; font-size:13px; }
th:first-child,td:first-child { width:128px; }
th:not(:first-child),td:not(:first-child) { width:calc((100% - 128px)/6); }
.active-class-header { background:#020617; }.active-class-name { display:inline-flex; padding:7px 10px; border-radius:999px; color:#fff; font-weight:1000; }
.term-heading { display:grid; gap:5px; justify-items:center; }.term-topic { color:#bfdbfe; font-size:11px; font-weight:700; min-height:14px; }
.term-button-stack { display:flex; width:100%; gap:4px; justify-content:center; }
.ko-btn,.help-btn { display:inline-flex; flex:1; align-items:center; justify-content:center; min-height:24px; padding:5px; border-radius:8px; text-decoration:none; font-size:8.5px; font-weight:1000; line-height:1.05; }
.ko-btn { color:#312e81; background:#ede9fe; border:1px solid #c4b5fd; }.help-btn { color:#075985; background:#e0f2fe; border:1px solid #7dd3fc; }
.ko-btn.blank,.help-btn.blank { opacity:.45; cursor:not-allowed; }
td { padding:7px; background:#fff; }
td:first-child { background:#f8fafc; }.row-label { display:grid; gap:7px; padding:9px 5px; }.row-label-main { font-size:13px; font-weight:1000; }.row-label-sub { color:#64748b; font-size:10px; font-weight:800; }
.card { display:flex; flex-direction:column; gap:6px; min-height:210px; height:100%; }.name { font-size:13px; line-height:1.18; font-weight:1000; overflow-wrap:anywhere; }.desc { color:var(--muted); font-size:11.5px; line-height:1.28; overflow-wrap:anywhere; }.desc a { color:#1d4ed8; font-weight:900; text-decoration:underline; }
.card-bottom { display:grid; gap:7px; align-content:end; min-height:88px; margin-top:auto; }.status-row { display:flex; justify-content:center; align-items:center; gap:4px; min-height:34px; }.status-stack { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:center; }
.status-badge { display:inline-flex; align-items:center; justify-content:center; padding:5px 7px; border-radius:999px; font-size:9.5px; font-weight:1000; }.status-badge.live { color:#065f46; background:#d1fae5; border:1px solid #6ee7b7; }.status-badge.completed { color:#fff; background:#059669; font-size:13px; }.status-badge.not-released { color:#92400e; background:#fef3c7; border:1px solid #fde68a; }.completion-date { padding:3px 6px; border-radius:999px; color:#334155; background:#f1f5f9; font-size:9px; font-weight:900; }
.actions { display:flex; flex-wrap:wrap; gap:6px; min-height:38px; align-items:flex-end; }.btn { display:inline-flex; flex:1; justify-content:center; align-items:center; min-width:70px; padding:9px 7px; border-radius:999px; color:#fff; text-decoration:none; font-size:10px; font-weight:1000; box-shadow:0 8px 18px rgba(15,23,42,.12); }.btn.hw1btn,.btn.answerbtn { background:linear-gradient(135deg,#2563eb,#38bdf8); }.btn.hw2btn { color:#111827; background:linear-gradient(135deg,#f59e0b,#fb923c); }.btn.hw3btn { background:linear-gradient(135deg,#10b981,#34d399); }.btn.revisionbtn { background:linear-gradient(135deg,#1e3a8a,#3b82f6); }.btn.submitbtn { background:linear-gradient(135deg,#7c3aed,#ec4899); }.btn.blank { opacity:.43; cursor:not-allowed; box-shadow:none; }
.hw1 { border-top:5px solid #2563eb; }.hw2 { border-top:5px solid #f59e0b; }.hw3 { border-top:5px solid #10b981; }.enter-scores { border-top:5px solid #7c3aed; }
.revision-pulse,.answer-pulse { animation:pulse 1.2s ease-in-out infinite; } @keyframes pulse { 0%,100% { transform:scale(1); box-shadow:0 0 0 0 rgba(37,99,235,.45); } 50% { transform:scale(1.035); box-shadow:0 0 0 8px rgba(37,99,235,0); } }
.start-card { display:grid; min-height:320px; place-items:center; padding:30px; text-align:center; background:linear-gradient(135deg,#eff6ff,#f5f3ff); }.start-card h2 { margin:0 0 7px; font-size:28px; }.start-card p { margin:0; color:#64748b; font-weight:800; }
.footer { margin:24px 0 32px; text-align:center; color:#64748b; font-size:13px; font-weight:700; }
.zoom-controls { position:fixed; z-index:100; top:16px; right:20px; display:flex; gap:7px; padding:6px; border-radius:999px; background:rgba(15,23,42,.78); box-shadow:0 8px 22px rgba(0,0,0,.25); backdrop-filter:blur(8px); }.zoom-btn { width:36px; height:36px; border:0; border-radius:50%; color:#fff; background:#334155; font-size:22px; font-weight:1000; cursor:pointer; }
@media(max-width:980px) { .wrap { width:min(100% - 14px,1500px); }.hero-inner { width:min(100% - 24px,1500px); }.year-class-group { grid-template-columns:repeat(3,minmax(85px,1fr)); }.year-group-header { grid-column:1/-1; } table { min-width:1050px; } }
@media(max-width:620px) { .year-class-group { grid-template-columns:repeat(2,minmax(75px,1fr)); }.year-group-header { align-items:flex-start; flex-direction:column; }.data-status { align-items:flex-start; flex-wrap:wrap; }.data-status button { margin-left:0; }.hero-inner { padding-top:70px; } }
@media print { .zoom-controls,.data-status,.controls { display:none!important; }.hero { break-after:avoid; }.table-wrap { overflow:visible; box-shadow:none; }.page-zoom-shell { transform:none!important; width:100%!important; margin:0!important; } }
