/* ================= v6: minimal & clean. Light is the default; dark only when the user picks it (top-bar toggle).
   Final visual layer: flat surfaces, thin borders, one accent colour, no gradients or decorative illustrations. ================= */
:root,:root[data-theme=light]{--bg:#f6f6f8;--surface:#fff;--ink:#18181f;--muted:#646473;--line:#e8e8ee;--brand:#5b47d6;--brand-2:#7a68e3;--brand-soft:#f1effc;--accent:#d9912a;
--navy:#fff;--navy-2:#f6f6f8;--radius:14px;--shadow:0 1px 2px rgba(17,17,26,.04);--focus:#5b47d6;
--green:#1d8a63;--green-bg:#e8f6ef;--yellow:#8a5a00;--yellow-bg:#fdf3df;--orange:#b4540c;--orange-bg:#fdeee0;--red:#b3303d;--red-bg:#fdebed;--unrated:#55556a;--unrated-bg:#f0f0f4;
--green-ink:#17694b;--yellow-ink:#6f4f00;--orange-ink:#9a4308;--red-ink:#a02222;color-scheme:light}
:root[data-theme=dark]{--bg:#111116;--surface:#18181f;--ink:#ececf2;--muted:#a3a3b2;--line:#2a2a35;--brand:#a99bff;--brand-2:#8f80f2;--brand-soft:#24213a;--accent:#e7a94b;
--navy:#18181f;--navy-2:#111116;--shadow:none;--focus:#a99bff;
--green:#5fd2a6;--green-bg:#15302a;--yellow:#efc65a;--yellow-bg:#332b12;--orange:#f3a05a;--orange-bg:#35261a;--red:#f58a93;--red-bg:#3a1f26;--unrated:#a3a3b2;--unrated-bg:#22222c;
--green-ink:var(--green);--yellow-ink:var(--yellow);--orange-ink:var(--orange);--red-ink:var(--red);color-scheme:dark}
body,:root[data-theme=dark] body{background:var(--bg)}
h1{font-size:1.6rem;font-weight:700;letter-spacing:0}h2{font-weight:700}.card>h2{font-weight:700;font-size:1.1rem}
/* shell: flat sidebar with a hairline, no floating panel */
.side{background:var(--surface);box-shadow:none;border:0;border-inline-end:1px solid var(--line)}
@media (min-width:901px){.shell{grid-template-columns:240px minmax(0,1fr)}.side{margin:0;height:100vh;border-radius:0;box-shadow:none;padding:20px 14px;position:sticky;top:0}.main{padding:20px 32px 56px}}
.side-deco{display:none}
.wordmark{font-size:1.45rem}.wordmark small{font-size:.7rem}.side .brand{padding:4px 8px 16px}
.nav a,.nav summary{padding:9px 12px;border-radius:10px;font-size:.95rem;font-weight:500}
.nav a[aria-current=page]{background:var(--brand-soft);color:var(--brand);font-weight:700}
.top{margin-bottom:20px}
.search-in{min-height:42px;border-radius:10px;box-shadow:none;background:var(--surface)}
.icon-btn,.bell{width:40px;height:40px;min-height:40px;box-shadow:none;border-radius:10px}
.usermenu summary{box-shadow:none;border-radius:10px;padding:2px 10px 2px 4px}.avatar{width:32px;height:32px}
/* surfaces */
.card,.kpi{border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);background:var(--surface)}
.card{padding:20px}
button,.btn{border-radius:10px;box-shadow:none}.hero-btn{border-radius:10px;box-shadow:none;padding:10px 22px;font-size:1rem}
input,select,textarea{border-radius:10px}
.demo-banner{background:var(--surface);border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:10px}
/* student home: quiet hero, no illustration, neutral stat tiles */
.hero-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:1fr;min-height:0;padding:22px 26px}
:root[data-theme=dark] .hero-card{background:var(--surface)}
.hero-art{display:none}.hero-txt{padding:0}.hero-txt h1{font-size:1.6rem}.hero-txt p{font-size:1rem;margin-bottom:14px}
.course-hero{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
@media (max-width:760px){.course-hero{grid-template-columns:1fr}}
.rstats .rstat[class*=tone-],:root[data-theme=dark] .rstats .rstat[class*=tone-]{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}
.rstat b{font-size:1.75rem;font-weight:700}.rstat-ico{width:38px;height:38px}
.rstats .tone-lav .rstat-ico{background:#f1effc}.rstats .tone-mint .rstat-ico{background:#e8f6ef}.rstats .tone-sky .rstat-ico{background:#eaf1fd}.rstats .tone-sand .rstat-ico{background:#fdf3df}
:root[data-theme=dark] .rstats .rstat-ico{background:var(--brand-soft)}
.rico{border-radius:10px;width:36px;height:36px}
.bubble{border-radius:12px}.chip{border-radius:8px}
.game-strip{background:var(--surface);box-shadow:var(--shadow);border-radius:var(--radius)}:root[data-theme=dark] .game-strip{background:var(--surface)}
.ws-tabs{box-shadow:none;border-radius:12px}.ws-tabs a{border-radius:8px;padding:8px 12px}
.card.attn{background:var(--yellow-bg);border-color:transparent}
.dropzone{border-radius:12px;background:var(--bg);border-color:var(--line);color:var(--muted)}.dropzone:hover,.dropzone.over{border-color:var(--brand);background:var(--brand-soft)}
.tnode,.qcard,.pw,.countdown,.opt,.bdg,.mini-course,.join-box{border-radius:12px}
.bdg{background:var(--surface)}
.xpbar>i{background:var(--accent)}
.badge-pop{border-width:1px;border-color:var(--line);border-radius:12px}
.login-wrap,:root[data-theme=dark] .login-wrap{background:var(--bg)}
.login{border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);background:var(--surface)}
.login .illus{display:none}
/* university setup */
.steps{display:flex;flex-direction:column;gap:14px}
.step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px;align-items:start}
.step-n{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);font-weight:700;color:var(--muted);background:var(--surface)}
.step.done .step-n{background:var(--green);border-color:var(--green);color:#fff}.step.now .step-n{border-color:var(--brand);color:var(--brand)}
.step .card{margin:0}.step-h{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.step-h h2{margin:0;font-size:1.05rem}
.step:not(.open) .step-body{display:none}
.kv{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}
