/* HHS English house style: aubergine #301344, purple #5B3F8C, lavender wash, Verdana, bold key words, amber only for Challenge. */

:root{color-scheme:light dark;
--aub:#301344;--purple:light-dark(#5b3f8c,#c4ace8);--wash:light-dark(#f3eff8,#140a1d);
--card:light-dark(#ffffff,#22172f);--ink:light-dark(#241433,#efe8f7);--soft:light-dark(#574a68,#b9accb);
--chip:light-dark(#e4dcf3,#3a2b4f);--line:light-dark(#ddd3ea,#3a2c4d);--amber:light-dark(#fbe3a6,#4a3a12);--amberInk:light-dark(#241433,#fbe3a6);
--good:light-dark(#17703f,#7bd8a0);--goodBg:light-dark(#e3f4ea,#173a26);--bad:light-dark(#a3241f,#ff9a92);--badBg:light-dark(#fbe7e5,#40201e);
--mid:light-dark(#8a5a00,#f2c46d);--midBg:light-dark(#fff3d6,#3a2e10)}
*{box-sizing:border-box}
/* always keep room for the scrollbar, so pages don't jump sideways when they grow taller (e.g. after answering a question) */
html{scrollbar-gutter:stable}
body{margin:0;font-family:Verdana,Geneva,"DejaVu Sans",sans-serif;background:var(--wash);color:var(--ink);font-size:15px;line-height:1.5;overflow-x:clip}
.banner{background:var(--aub);color:#fff;padding:14px max(3vw,16px)}
.bwrap{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.logo{width:140px;height:auto;display:block;flex:none}
.titles{border-left:2px solid #5b3f8c;padding-left:20px;flex:1 1 260px}
.gw{font-size:13px;color:#d9cdea;margin:0 0 2px}
.ttl{margin:0;font-size:22px;font-weight:bold;line-height:1.2}
.ttl a{color:#fff;text-decoration:none}
.badge{display:inline-block;background:#fbe3a6;color:#301344;font-weight:bold;font-size:12px;padding:2px 8px;border-radius:10px;margin-left:8px;vertical-align:middle}
#nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:14px}
#nav a,#nav button{color:#fff;text-decoration:none;background:rgba(255,255,255,.12);border:0;border-radius:8px;padding:7px 12px;font:inherit;font-weight:bold;cursor:pointer;margin:0;min-height:36px}
#nav a.on{background:rgba(255,255,255,.3)}
#nav .who{opacity:.9;padding:0 6px;line-height:1.25}
#nav .who small{display:block;font-size:12px;color:#d9cdea}
main{max-width:1100px;margin:0 auto;padding:20px max(3vw,16px) 40px}
.hidden{display:none!important}
.previewbar{background:var(--chip);border:2px solid var(--purple);border-radius:10px;padding:10px 14px;font-size:15px;margin:0 0 14px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #fbe3a6;outline-offset:2px}
#printArea{display:none}
@media (max-width:600px){.titles{border-left:0;padding-left:0}.logo{width:120px}}
@media print{
  @page{size:A4;margin:10mm}
  body{background:#fff;color:#000}
  header,main{display:none!important}
  #printArea{display:grid!important;grid-template-columns:1fr 1fr;gap:0}
  .slip{border:1px dashed #000;height:54mm;padding:5mm 6mm;font-size:11pt;line-height:1.45;color:#000;break-inside:avoid;page-break-inside:avoid;font-family:Verdana,Geneva,sans-serif}
  .slip .t{font-weight:bold;font-size:12pt;border-bottom:1px solid #000;margin-bottom:2mm;padding-bottom:1mm}
  .slip .mono{font-family:Consolas,"Courier New",monospace;font-weight:bold;font-size:13pt}
  .slip .s{font-size:9pt}
}
/* assignments (pupil cards and the bar above an assigned task) */
.acards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.acard{background:var(--card);border-radius:16px;padding:18px 20px;border:1px solid var(--line);border-top:6px solid #5b3f8c;display:flex;flex-direction:column;gap:8px}
.acard.done{border-top-color:var(--good)}
.acard h3{margin:0;font-size:19px;line-height:1.3;color:var(--ink)}
.acard p{margin:0;font-size:14px}
.atop{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.atag{background:var(--chip);border-radius:999px;padding:3px 12px;font-size:13px;font-weight:bold}
.atag.you{background:var(--aub);color:#fff}
.adue{font-size:14px;font-weight:bold;color:var(--soft)}
.adue.late{color:var(--bad)}.adue.soon{color:var(--purple)}.adue.ok{color:var(--good)}
.alist{margin:0;padding-left:22px;font-size:15px;display:grid;gap:6px}
.alist a{color:var(--purple);font-weight:bold}
.ast{display:inline-block;font-size:12px;font-weight:bold;border-radius:999px;padding:1px 8px;background:var(--chip);color:var(--soft);white-space:nowrap}
.ast.ok{background:var(--goodBg);color:var(--good)}
.ast.part{background:var(--wash);color:var(--purple);border:1px solid var(--line)}
.aprog{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--soft)}
.aprog .track{flex:1;height:10px;border-radius:99px;background:var(--chip);overflow:hidden}
.aprog .track div{height:100%;background:#5b3f8c;border-radius:99px}
.acard.done .aprog .track div{background:var(--good)}
.abtn{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:12px;background:#5b3f8c;color:#fff!important;text-decoration:none;font-weight:bold;font-size:15px}
.abtn.ghost{background:var(--chip);color:var(--ink)!important}
.adone{margin-top:14px}.adone summary{cursor:pointer;padding:6px 0}.adone .acards{margin-top:10px}
.asgbar{background:var(--card);border:2px solid #5b3f8c;border-radius:14px;padding:12px 16px;margin:0 0 16px;font-size:15px;display:grid;gap:6px}
.asgbar .soft2{color:var(--soft);font-size:14px}
.asgbar .arow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.atag.ti{background:#5b3f8c;color:#fff}
.acard.ti{border-top-color:var(--aub)}
.ast.late{background:light-dark(#fbe7e5,#40201e);color:var(--bad)}
/* ===== build 5c layout ===== */
/* slimmer header everywhere */
.banner{padding:8px max(3vw,16px)}
.logo{width:104px}
.titles{padding-left:14px}
.gw{font-size:12px;margin:0}
.ttl{font-size:19px}
/* staff: one slim line */
body.staff .logo{width:78px}
body.staff .gw{display:none}
body.staff .ttl{font-size:16px}
body.staff .titles{flex:0 1 auto;border-left-width:1px}
body.staff .bwrap{gap:8px 16px}
body.staff #nav{flex:1 1 520px;justify-content:flex-end;gap:4px}
body.staff #nav a,body.staff #nav button{padding:5px 10px;min-height:32px;font-size:13px}
body.staff #nav .who{font-size:13px}
body.staff #nav .who small{display:none}
/* pupils: big header on the homepage only */
body.pupil:not(.home) .banner{display:none}
body.pupil.home #nav{margin-left:auto}
body.pupil main{padding-bottom:110px}
#strip .swrap{position:sticky;top:0;z-index:20;background:var(--aub);color:#fff;display:flex;align-items:center;gap:10px;padding:6px max(3vw,12px);min-height:48px}
#strip{position:sticky;top:0;z-index:20}
.sback{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;color:#fff;flex:none}
.sback:hover,.sback:focus-visible{background:rgba(255,255,255,.15)}
.sback svg,.smenu svg,#tabbar svg,.mpanel svg,.mehead svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stitle{flex:1;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smenu{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:10px;padding:0 12px;min-height:40px;font:inherit;font-weight:bold;cursor:pointer}
.mpanel{position:absolute;right:max(3vw,12px);top:52px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:6px;min-width:220px;display:grid;z-index:30}
.mpanel a,.mpanel button,.mpanel .msoon{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--ink);text-decoration:none;font:inherit;font-weight:bold;background:none;border:0;text-align:left;cursor:pointer;min-height:44px}
.mpanel a:hover,.mpanel button:hover{background:var(--chip)}
.mpanel .msoon{color:var(--soft);cursor:default;font-weight:normal}
.mpanel .msoon small{margin-left:auto;font-size:12px}
.mpanel button{color:var(--bad);border-top:1px solid var(--line);border-radius:0 0 10px 10px}
#tabbar{display:none}
body.pupil #tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(0,0,0,.06);padding:4px max(2vw,6px) calc(4px + env(safe-area-inset-bottom))}
#tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;border-radius:12px;color:var(--soft);text-decoration:none;font-size:12px;font-weight:bold;max-width:200px;margin:0 auto}
#tabbar a.on{color:var(--purple);background:var(--chip)}
#tabbar a:hover{color:var(--purple)}
/* pupils don't need the in-page back pills: the strip has a back arrow */
body.pupil .crumbs,body.pupil .aic .thead .back{display:none}
.mehead{display:flex;align-items:center;gap:14px}
.mehead>div{min-width:0;overflow-wrap:anywhere}
.mehead .av{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#5b3f8c;color:#fff}
.mehead .av svg{width:28px;height:28px}
@media print{#strip,#tabbar{display:none!important}}
/* ===== build 13: staff layout ===== */
body.staff.tabs #tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(0,0,0,.06);padding:4px max(2vw,6px) calc(4px + env(safe-area-inset-bottom))}
body.staff.tabs:not(.home) .banner{display:none}
body.staff.tabs main{padding-bottom:110px}
body.staff.tabs #nav{flex:0 1 auto;margin-left:auto;justify-content:flex-end;gap:10px;flex-wrap:nowrap}
body.staff.tabs #nav .who{text-align:right}
body.staff.tabs #nav .who small{display:block;font-size:12px}
body.staff #nav .mebtn{padding:0;width:40px;height:40px;min-height:0;border-radius:50%;background:#5b3f8c}
#tabbar a{position:relative}
.tbadge{position:absolute;top:3px;left:calc(50% + 6px);min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#F2B441;color:#301344;font-style:normal;font-size:12px;font-weight:bold;display:flex;align-items:center;justify-content:center;line-height:1}
.tbadge.in{position:static;margin-left:auto}
.swho{font-size:13px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:38%}
.ccards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.ccard{display:grid;gap:6px;padding:16px 18px;border-radius:16px;border:2px solid var(--line);border-top:6px solid #5b3f8c;background:var(--card);color:var(--ink);text-decoration:none}
.ccard:hover{border-color:var(--purple)}
.ccard .k{font-size:13px;color:var(--soft);font-weight:bold}
.ccard b{font-size:19px}
.ccard .cst{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px}
.ccard .cst em{font-style:normal;font-weight:bold;color:var(--purple)}
.ccard .go{font-size:14px;color:var(--soft)}
.dcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.dcard{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:grid;gap:10px}
.dcard h3{margin:0}
.dcard .stats{margin:0}
.talert.st{font-size:16px}
.talert.st a{color:#fff;text-decoration:underline}
.talert.st>span:last-child{display:grid;gap:2px}
.melinks{display:grid;gap:4px}
.melink{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--ink);text-decoration:none;min-height:52px}
.melink:hover{background:var(--chip)}
.melink svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--purple);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.melink>span{display:grid}
.melink small{color:var(--soft);font-size:13px}
.ctop{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ctabs{display:flex;gap:4px;overflow-x:auto;margin:0 0 16px;border-bottom:2px solid var(--line)}
.ctabs a{padding:10px 14px;font-weight:bold;text-decoration:none;color:var(--soft);border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.ctabs a.on{color:var(--purple);border-bottom-color:var(--purple)}
.workbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 16px}
.seg{display:inline-flex;border:2px solid var(--purple);border-radius:999px;overflow:hidden}
.seg a,.seg button{padding:0 16px;min-height:40px;display:flex;align-items:center;text-decoration:none;color:var(--purple);background:transparent;border:0;margin:0;font:inherit;font-weight:bold;cursor:pointer;border-radius:0}
.seg a.on,.seg button[aria-pressed="true"]{background:var(--purple);color:var(--card)}
.setwork{position:relative}
.setwork summary{list-style:none;cursor:pointer}
.setwork summary::-webkit-details-marker{display:none}
.setwork .mpanel.sw{position:absolute;left:0;right:auto;top:50px;min-width:280px}
.setwork .mpanel.sw a{display:grid;gap:0}
.setwork .mpanel.sw small{font-weight:normal;color:var(--soft);font-size:13px}
.ovrows{display:grid;gap:8px}
.ovrow{border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:var(--card)}
.ovrow summary{cursor:pointer}
.ovchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ovchips span{background:var(--chip);border-radius:999px;padding:2px 10px;font-size:13px}
.ovchips span.warnc{background:var(--midBg);color:var(--mid);font-weight:bold}
.ovbody{margin-top:10px;font-size:14px}
.ovbody ul{margin:4px 0;padding-left:20px}
@media (max-width:600px){.seg a,.seg button{padding:0 12px;font-size:14px}.swho{display:none}}
.secbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.secbar button{margin:0;min-height:40px;padding:0 16px;border-radius:999px;border:2px solid var(--purple);background:transparent;color:var(--purple);font-weight:bold}.secbar button[aria-pressed="true"]{background:var(--purple);color:var(--card)}
h3.sech{margin:18px 0 8px}
.aic .u4b *{box-sizing:border-box}
.aic .u4b .pill{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:2px solid var(--line);background:var(--card);text-decoration:none;font-weight:700;font-size:15px;color:var(--purple);cursor:pointer;font-family:inherit}
.aic .u4b .pill:hover{border-color:var(--purple)}
.aic .u4b .card{background:var(--card);border-radius:16px;padding:22px;box-shadow:0 2px 0 var(--line);display:flex;flex-direction:column;gap:12px}
.aic .u4b .card h2{margin:0;font-size:24px;color:var(--purple)}
.aic .u4b .card .d{margin:0;color:var(--soft)}
.aic .u4b .qbox{font-size:18px}
.aic .u4b .stem{background:var(--chip);border-left:0;border-radius:12px;padding:14px 18px;margin:0;font-size:17px}
.aic .u4b .opts{display:grid;gap:10px}
.aic .u4b .opt{min-height:48px;padding:12px 16px;border-radius:12px;border:2px solid var(--line);background:var(--card);text-align:left;font-family:inherit;font-size:16px;cursor:pointer;color:var(--ink)}
.aic .u4b .opt:hover:not(:disabled){border-color:var(--purple)}
.aic .u4b .opt.ok{background:var(--goodBg);border-color:var(--good)}
.aic .u4b .opt.no{background:var(--badBg);border-color:var(--bad)}
.aic .u4b .opt:disabled{cursor:default}
.aic .u4b .fb{border-radius:12px;padding:12px 16px;font-size:15px}
.aic .u4b .fb.ok{background:var(--goodBg)}
.aic .u4b .fb.no{background:var(--badBg)}
/* glossary words: dotted underline; tap to show the definition box */
.aic .gloss{display:inline;font:inherit;color:inherit;background:none;border:0;border-radius:4px;padding:0 1px;margin:0;min-height:0;cursor:pointer;text-decoration:underline dotted var(--purple);text-decoration-thickness:2px;text-underline-offset:4px}
.aic .gloss[aria-expanded="true"]{background:var(--chip)}
/* synonym ladders: words to tap (pool), the numbered ladder, and the amber Challenge label */
.aic .u4b .wpool{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.aic .u4b .wpool button{min-height:44px;padding:0 18px;margin:0;border-radius:999px;border:2px solid var(--purple);background:var(--card);color:var(--purple);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.aic .u4b .ladder{list-style:none;margin:14px 0;padding:0;display:grid;gap:8px;max-width:480px}
.aic .u4b .ladder li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center}
.aic .u4b .ladder .rn{width:34px;height:34px;border-radius:50%;background:var(--chip);color:var(--purple);font-weight:700;display:flex;align-items:center;justify-content:center}
.aic .u4b .ladder .rung{min-height:48px;padding:10px 16px;margin:0;border-radius:12px;border:2px dashed var(--line);background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:16px;font-weight:700;cursor:pointer;opacity:1}
.aic .u4b .ladder .rung.full{border-style:solid;border-color:var(--purple);background:var(--card)}
.aic .u4b .ladder .rung.ok{border-style:solid;border-color:var(--good);background:var(--goodBg)}
.aic .u4b .ladder .rung.no{border-style:solid;border-color:var(--bad);background:var(--badBg)}
.aic .u4b .ladder .rung:disabled{cursor:default;color:var(--ink)}
.aic .u4b .ladder .ph{color:var(--soft);font-weight:normal;font-size:14px}
.aic .u4b .chal{display:inline-block;margin-left:6px;padding:2px 10px;border-radius:999px;background:var(--amber);color:var(--amberInk);font-size:13px;font-weight:700;vertical-align:middle}
.aic .glossdef{margin:10px 0 0;padding:10px 14px;border-left:4px solid var(--purple);border-radius:8px;background:var(--card);color:var(--ink);font-size:15px;font-weight:normal;line-height:1.45}
.aic .u4b .bar{height:10px;background:var(--chip);border-radius:99px;overflow:hidden}
.aic .u4b .bar i{display:block;height:100%;background:var(--purple)}
.aic .u4b .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.aic .u4b .btn{min-height:44px;padding:0 20px;margin:0;border-radius:999px;border:0;background:var(--purple);color:var(--card);font-weight:700;font-family:inherit;font-size:15px;cursor:pointer}
.aic .u4b .btn:hover{background:var(--aub)}
.aic .u4b .btn.sec{background:var(--card);color:var(--purple);border:2px solid var(--line)}
.aic .u4b label{font-weight:700;font-size:15px;display:block;margin-bottom:4px}
.aic .u4b .hint{font-weight:400;color:var(--soft);font-size:14px}
.aic .u4b input[type=text],.aic .u4b textarea,.aic .u4b select{width:100%;font-family:inherit;font-size:16px;padding:10px 12px;border:2px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
.aic .u4b textarea{min-height:90px;resize:vertical}
.aic .u4b textarea.big{min-height:360px;line-height:1.7}
.aic .u4b .f2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.aic .u4b .timer{font-size:40px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.aic .u4b .phase{display:flex;gap:6px;flex-wrap:wrap}
.aic .u4b .phase span{padding:6px 12px;border-radius:999px;background:var(--chip);font-size:14px;font-weight:700}
.aic .u4b .phase span.on{background:var(--purple);color:var(--card)}
.aic .u4b .wc{font-weight:700}
.aic .u4b .wc.lo{color:var(--mid)}
.aic .u4b .wc.ok{color:var(--good)}
.aic .u4b .wc.hi{color:var(--mid)}
.aic .u4b .check label{font-weight:400;display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.aic .u4b .check input{width:20px;height:20px;margin-top:2px}
.aic .u4b table{border-collapse:collapse;width:100%;font-size:14px}
.aic .u4b th,.aic .u4b td{border:1px solid var(--line);padding:8px;vertical-align:top;text-align:left}
.aic .u4b th{background:var(--chip)}
.aic .u4b .bandpick td:first-child{white-space:nowrap}
.aic .u4b .model p{margin:0 0 10px}
.aic .u4b .note{font-size:14px;color:var(--soft)}
.aic .u4b{display:flex;flex-direction:column;gap:16px}.aic .u4b .lastw{margin-top:6px}.aic .u4b .lastw summary{cursor:pointer}.aic .u4b details>summary.pill{list-style:none}

/* build 9: EnglishHQ logo in the header; pupil "Me" menu */
.ehq{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;flex:none}
.ehqmark{display:block;flex:none}
.ehqmark.big{width:48px;height:48px}
.ehqword{font-family:Sora,"Segoe UI",Arial,sans-serif;font-weight:bold;font-size:24px;letter-spacing:-.02em;line-height:1;display:flex;align-items:center;gap:5px;white-space:nowrap}
.ehqword b{background:#fff;color:#5A2160;border-radius:7px;padding:3px 6px 4px;font-weight:800;font-size:.85em;letter-spacing:0}
.bsep{width:1px;align-self:stretch;min-height:36px;background:#5b3f8c;flex:none}
body.staff .ehqmark.big{width:40px;height:40px}
body.staff .ehqword{font-size:19px}
.mewrap{position:relative}
.mebtn,#nav .mebtn{width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.6);background:#5b3f8c;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;margin:0}
.mebtn:hover,.mebtn[aria-expanded="true"]{background:#fff;color:#301344}
.mebtn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mepanel{right:0;top:52px}
.mepanel .mehd{padding:8px 12px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.mepanel .mehd small{display:block;color:var(--soft);font-size:13px}
#nav .mepanel{flex-direction:column;display:grid}
#nav .mepanel.hidden{display:none}
#nav .mepanel a,#nav .mepanel button{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--ink);background:none;border:0;font:inherit;font-weight:bold;text-decoration:none;min-height:44px;width:100%;margin:0;text-align:left;cursor:pointer}
#nav .mepanel a:hover,#nav .mepanel button:hover{background:var(--chip);color:var(--ink)}
#nav .mepanel .mehd b{color:var(--ink)}
@media (max-width:600px){
  .ehqmark.big,body.staff .ehqmark.big{width:38px;height:38px}
  .ehq{gap:7px}.ehqword{font-size:17px}
  .bsep{min-height:28px}
}
@media (max-width:360px){.ehqword{font-size:15px}}


/* build 11: home page, Stats, saved questions, language filter */
.talert{display:flex;align-items:center;gap:14px;background:#5A2160;color:#fff;border-radius:16px;padding:14px 18px;text-decoration:none;font-size:17px;box-shadow:0 2px 0 #301344}
.talert:hover{background:#301344;color:#fff}
.talert u{text-decoration:underline;font-weight:bold}
.talert .env{position:relative;flex:none;width:44px;height:44px;border-radius:12px;background:#fff;color:#5A2160;display:flex;align-items:center;justify-content:center}
.talert .env svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.talert .env i{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;border-radius:11px;background:#F2B441;color:#301344;font-style:normal;font-weight:bold;font-size:13px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.qstart{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.qstart h2,.qstart p{margin:0}
.navrow{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap}
.mini{display:flex;flex-direction:row;align-items:center;gap:6px;text-decoration:none;color:#fff;font-weight:bold;margin-right:8px}
.mini span{display:inline-flex;align-items:center;gap:4px;background:rgba(255,255,255,.14);border-radius:999px;padding:5px 10px;font-size:15px}
.mini em{font-style:normal}
.capnote{background:var(--chip);border:2px solid var(--line);border-radius:12px;padding:10px 14px;margin:0 0 14px;font-size:15px}
.mini b{font-weight:bold}
.mini span.bump{animation:minibump .6s ease}
@keyframes minibump{0%{transform:scale(1)}35%{transform:scale(1.25);background:rgba(242,180,65,.55)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.mini span.bump{animation:none}}
#strip .mini{margin-right:0;flex:none}
@media (max-width:480px){#strip .smenu span{display:none}#strip .smenu{padding:0 10px}#strip .mini span{padding:4px 8px;font-size:14px}#strip .mini{gap:4px}#strip .swrap{gap:6px}}
@media (max-width:360px){#strip .mini span{padding:3px 6px;font-size:13px}}
.statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.stat{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:4px}
.stat>span{font-weight:bold;font-size:14px}.stat em{font-style:normal}
.stat b{font-size:30px;line-height:1.1}.stat b i{font-style:normal;font-size:16px}
.stat small{color:var(--soft);font-size:13px;line-height:1.4}
.stat.acc.g{background:var(--goodBg);border-color:var(--good)}.stat.acc.g b{color:var(--good)}
.stat.acc.a{background:var(--midBg);border-color:var(--mid)}.stat.acc.a b{color:var(--mid)}
.stat.acc.r{background:var(--badBg);border-color:var(--bad)}.stat.acc.r b{color:var(--bad)}
.stat>span{color:var(--ink)}
.posbar{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.posbar span{font-weight:bold}.posbar b{font-size:30px;color:var(--purple)}.posbar small{color:var(--soft)}
.savebar{margin:10px 0 0}
.savq{font:inherit;font-size:14px;font-weight:bold;cursor:pointer;border-radius:999px;min-height:40px;padding:0 16px;border:2px dashed var(--purple);background:transparent;color:var(--purple);margin:0}
.savq.on{border-style:solid;background:var(--chip)}
.sqlist{display:grid;gap:12px}
.sq{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:8px}
.sq p{margin:0}.sqs{background:var(--chip);border-radius:10px;padding:8px 12px}
.sqo{display:grid;gap:8px}
.sqopt{font:inherit;text-align:left;min-height:44px;padding:8px 14px;border-radius:12px;border:2px solid var(--line);background:var(--card);cursor:pointer;margin:0;color:inherit}
.sqopt.right{background:var(--goodBg);border-color:var(--good)}.sqopt.wrong{background:var(--badBg);border-color:var(--bad)}.sqopt.dim{opacity:.6}
.sq .fb{margin:0}.sq .row input{flex:1 1 160px}
.langbad{border-color:var(--bad)!important;box-shadow:0 0 0 3px var(--badBg)!important}
#nav .mini{padding:0;min-height:0;border:0;background:none}
@media (max-width:600px){#nav .mini span{padding:4px 7px;font-size:13px}#nav .mini{margin-right:4px;gap:4px}.talert{font-size:15px}}
@media (max-width:430px){body.pupil.home .bwrap{gap:7px}body.pupil.home .ehqword{font-size:14px}body.pupil.home .ehqmark.big{width:32px;height:32px}body.pupil.home img.logo{height:34px;width:auto}#nav .mebtn{width:40px;height:40px}#nav .mini span{padding:3px 6px;font-size:12px}}
@media (max-width:360px){body.pupil.home .bsep{display:none}body.pupil.home img.logo{height:28px}body.pupil.home .ehqword{font-size:13px}body.pupil.home .ehqmark.big{width:28px;height:28px}#nav .mini{margin-right:2px}#nav .mini span{padding:2px 5px}}


/* build 12: tidier home page, dates page, dark mode */
.homegrid{display:grid;gap:30px}
.homegrid>section{margin:0}
.homegrid>section.empty{display:none}
.homegrid .shead{margin:0 0 12px}
.homegrid .cdrow{gap:14px}
:where(.hub) .pill.line{border:2px solid var(--purple);color:var(--purple);min-height:40px}
:where(.hub) .pill.line:hover{background:var(--chip)}
.qsgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.qsbtn{display:grid;gap:4px;padding:16px 18px;border-radius:16px;border:2px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none}
.qsbtn:hover{border-color:var(--purple)}
.qsgrid.qs2{grid-template-columns:1fr 1fr;gap:12px}
.qs2 .qsbtn{min-width:0;grid-template-rows:auto 1fr auto;align-content:stretch}
.qsbtn .qd{font-size:14px;color:var(--soft);line-height:1.4;font-weight:normal}
.sugrow{display:flex;margin-top:14px}
.d5q{margin:0;padding:12px 14px;border-radius:12px}
@media (max-width:420px){.qsgrid.qs2{gap:10px}.qs2 .qsbtn{padding:14px 12px}.qs2 .qsbtn b{font-size:17px}.qs2 .qsbtn .qd{font-size:13px}}
.lookback{margin-top:8px}
.lookback>summary{cursor:pointer;font-weight:bold;color:var(--purple);padding:12px 4px;list-style-position:inside}
.lookback[open]>summary{margin-bottom:10px}
.tifb{display:grid;gap:10px}.tifb p{margin:4px 0 0}
.acard.fbk{border-color:var(--purple)}
.tglist{margin:6px 0 0;padding-left:20px;display:grid;gap:8px}
.tgnext{font-size:14px;margin-top:2px}
.aiout{margin-top:10px;padding:12px 14px;border-radius:12px;border:1px dashed var(--purple);background:var(--wash);display:grid;gap:8px}
.aitext{white-space:pre-wrap;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 12px}.tisup{margin-top:8px;padding:8px 12px;border-radius:10px;background:var(--wash);font-size:14px}
.tisup ul,.tisup ol{margin:4px 0 0;padding-left:20px}
.spprev li.hit{font-weight:bold}
.pextra{margin-top:10px;border:1px dashed var(--line);border-radius:10px;padding:6px 10px}
.pextra summary{cursor:pointer;font-weight:bold;color:var(--purple)}
.tsrows{display:grid;gap:6px}
.tsrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;border-bottom:1px solid var(--line);padding:4px 0}
.tsrow select{max-width:230px;margin:0}
.timc{margin:10px 0 6px}
.tick{margin-top:8px}.ckl{display:flex!important;align-items:flex-start;gap:8px;margin:4px 0;font-weight:normal}
.ckl input{margin-top:4px}
.ckres{font-size:14px}
.spick{margin:10px 0;display:grid;gap:8px}
.spick p{margin:0}
.sps{line-height:2.1;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.spx{display:inline;font:inherit;line-height:1.7;text-align:left;color:var(--ink);background:none;border:0;border-bottom:2px dotted var(--line);border-radius:4px;padding:1px 2px;margin:0;cursor:pointer;min-height:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.spx:hover{background:var(--chip)}
.spx[aria-pressed="true"]{background:light-dark(#e4dcf3,#4a3866);border-bottom-color:var(--purple)}
.spx:disabled{cursor:default}
.spx.ok{background:var(--goodBg);border-bottom:2px solid var(--good)}
.spx.miss{background:var(--midBg);border-bottom:2px dashed var(--mid)}
.spx.wrong{background:var(--badBg);border-bottom:2px solid var(--bad)}
.spx.plain{border-bottom-color:transparent}
.spwhy{margin:6px 0 0;padding-left:18px;font-size:14px;display:grid;gap:4px}
.spwhy li.ok b{color:var(--good)}.spwhy li.miss b{color:var(--mid)}.spwhy li.wrong b{color:var(--bad)}.qsbtn.fix{border-color:var(--purple);background:light-dark(#f7f2fd,#2a1c3b)}
.qsbtn.fix.off{border-style:dashed;border-color:var(--line);background:var(--card);opacity:.85}
.qsbtn.fix.off .go{color:var(--soft)}
.fixq{display:grid;gap:12px}.fixq p{margin:0}
.fixq .sqp{font-size:17px}
:where(.hub) .fb{padding:10px 14px;border-radius:10px;margin:0}
:where(.hub) .fb.ok{background:var(--goodBg);border-left:5px solid var(--good)}
:where(.hub) .fb.no{background:var(--badBg);border-left:5px solid var(--bad)}
:where(.hub) .fb.mid{background:var(--midBg);border-left:5px solid var(--mid)}
:where(.hub) .fb.info{background:var(--wash);border-left:5px solid #5b3f8c}
.fixq #fxWords{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.fixend .row{gap:10px;align-items:center}
.qsbtn .k{font-size:13px;color:var(--soft);font-weight:bold}
.qsbtn b{font-size:19px}
.qsbtn .go{color:var(--purple);font-weight:bold;margin-top:4px}
.cdt .cdrev{display:inline-block;margin-top:6px;font-size:14px;font-weight:bold;color:var(--purple);text-decoration:underline}
.cd.hot .cdt .cdrev{color:#fff}
.dlist{display:grid;gap:12px}
.drow{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:var(--card);border:2px solid var(--line);border-radius:14px;padding:14px 18px}
.drow .cdt{flex:1 1 200px;display:grid;gap:2px}.drow .cdt span{color:var(--soft);font-size:14px}
.drow .cdn{min-width:64px;text-align:center;display:grid}.drow .cdn b{font-size:28px;line-height:1}.drow .cdn span{font-size:13px}
.drow.hot{background:var(--aub);border-color:var(--aub);color:#fff}.drow.hot .cdt span{color:#e8dcf5}
.drow .cdrev{font-weight:bold;color:var(--purple)}.drow.hot .cdrev{color:#fff}

/* build 7 */
.taskfoot{max-width:1180px;margin:18px auto 0;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.taskfoot button{font:inherit;font-weight:bold;cursor:pointer;border-radius:999px;min-height:40px;padding:0 16px;border:2px solid var(--line);background:var(--card);color:var(--purple)}
.taskfoot button[data-foot=ask]{background:var(--purple);border-color:var(--purple);color:var(--card)}
.taskfoot .linkb{font-size:14px;border:0;background:none;text-decoration:underline;padding:0;min-height:0}
.footcard button{margin:8px 8px 0 0}
.footcard button.ghost{background:var(--card);color:var(--purple)}
.footcard button:not(.ghost){background:var(--purple);border-color:var(--purple);color:var(--card)}
.taskfoot #footForm{flex:1 1 100%}
.footcard{background:var(--card);border:2px solid var(--line);border-radius:14px;padding:14px 16px;margin-top:4px}
.footcard h3{margin:0 0 6px}.footcard textarea{width:100%;min-height:90px}
.msgs{display:grid;gap:10px}
.mcard{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--card)}
.mcard.open{border-color:var(--purple);border-width:2px}
.mcard p{margin:6px 0}.mcard .reply{background:var(--chip);border-radius:10px;padding:8px 10px}
.mcard textarea{width:100%;min-height:70px;margin:6px 0}
#nav .count{display:inline-block;min-width:20px;padding:0 6px;border-radius:10px;background:#fbe3a6;color:#301344;font-size:12px;text-align:center}
.edcard{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0;display:grid;gap:8px}
.edcard label{display:grid;gap:4px;font-weight:bold;font-size:14px}
.edcard textarea,.edcard select{width:100%;font-weight:normal}
.fixed{display:inline-block;background:var(--chip);color:var(--purple);border-radius:8px;padding:0 6px;font-size:12px}
h4{margin:14px 0 6px}

/* build 6: guest mode, leaderboards, points, strengths */
.guestbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:var(--chip);border:2px solid var(--purple);border-radius:12px;padding:10px 14px;margin:0 0 16px;font-size:15px}
.guestbar.task{margin:0 0 14px}
.guestbar button{margin:0}
.guestcard{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.guestcard h2{margin:0 0 4px}.guestcard p{margin:0}
.guestcard button{margin:0;min-height:48px;padding:0 22px}body.guest #nav .who small{display:block}
.lbt{width:100%;border-collapse:collapse}
.lbt th,.lbt td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left}
.lbt .num{text-align:right}
.lbt tr.me td{background:var(--chip)}
.lbt .you{display:inline-block;background:var(--purple);color:var(--card);border-radius:10px;padding:1px 8px;font-size:12px;font-weight:bold;margin-left:6px}
.lbt button{margin:0 4px 0 0}
.lbhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.lbhead h2{margin:0}
.seg2{display:inline-flex;border:2px solid var(--purple);border-radius:999px;overflow:hidden}
.seg2 button{margin:0;border:0;border-radius:0;background:transparent;color:var(--purple);min-height:40px;padding:0 16px;font-weight:bold}
.seg2 button[aria-pressed="true"]{background:var(--purple);color:var(--card)}
.lbme{margin:12px 0 0;font-size:15px}
.card h2 svg,.lbme svg,.pill svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-4px}
.mpanel a svg{width:22px;height:22px}
.up{color:var(--good);font-weight:bold}.down{color:var(--bad);font-weight:bold}
:where(.hub) .wt b .unit{font-style:normal;font-size:16px;color:inherit;font-weight:bold}
:where(.hub) .wt .tlink{display:block;margin-top:8px;font-size:13px;font-weight:bold;color:var(--purple)}
.pills{display:inline-flex;flex-wrap:wrap;gap:8px}
.sd{margin-top:6px}
.sdbox{border-radius:12px;padding:12px 14px;border:1px solid var(--line)}
.sdbox h3{margin:0 0 8px}
.sdbox.good{background:light-dark(#eef7f0,#16261b);border-color:light-dark(#b9dcc2,#2e5a3a)}
.sdbox.dev{background:light-dark(#f3eef9,#21172d);border-color:light-dark(#cdbde3,#4a3a5e)}
.sdl{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sdl li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.sdl li small{display:block;color:var(--soft);font-size:13px}
.sdl .pill{font-size:13px}
.sug{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sugc{display:grid;gap:2px;padding:14px 16px;border:2px solid var(--line);border-radius:14px;text-decoration:none;color:inherit;background:var(--card)}
.sugc.first{border-color:var(--purple);background:var(--chip)}
.sugc span{color:var(--soft);font-size:14px}.sugc .go{color:var(--purple);font-weight:bold}
.sw{display:flex;align-items:center;gap:10px;font-weight:bold;cursor:pointer;margin-top:6px}
.sw input{width:22px;height:22px;margin:0}

body.staff .bwrap{max-width:1280px;flex-wrap:nowrap}
body.staff .titles{white-space:nowrap}
body.staff #nav{flex-wrap:nowrap;flex:0 1 auto;margin-left:auto}
body.staff #nav a,body.staff #nav button{padding:5px 8px;white-space:nowrap}
@media (max-width:1500px){body.staff .bwrap{flex-wrap:wrap}body.staff #nav{flex-wrap:wrap;margin-left:0}}
@media (max-width:600px){
  .bwrap{flex-wrap:nowrap;gap:10px}
  .logo{width:72px}
  .gw{display:none}
  .titles{flex:1 1 auto;padding-left:10px;border-left:1px solid #5b3f8c}
  .ttl{font-size:15px}
  .badge{margin-left:5px;font-size:10px}
  body.pupil.home #nav .who{font-size:12px;text-align:right;padding:0}
  body.pupil.home #nav .who small{font-size:11px}
  body.staff .bwrap{flex-wrap:wrap}
}

/* ----- hub pages ----- */
:where(.hub) .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:18px}
:where(.hub) .narrow{max-width:560px;margin-left:auto;margin-right:auto}
:where(.hub) .grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
:where(.hub) h2{font-size:18px;margin:0 0 10px;color:var(--purple)}
:where(.hub) h3{font-size:16px;margin:16px 0 8px}
:where(.hub) label{display:block;font-weight:bold;margin:10px 0 4px;font-size:14px}
:where(.hub) label.inl{display:flex;gap:10px;align-items:center;font-weight:normal;font-size:15px;margin:8px 0}
:where(.hub) input,:where(.hub) textarea,:where(.hub) select{width:100%;font:inherit;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--wash);color:var(--ink)}
:where(.hub) textarea{min-height:180px}
:where(.hub) input[type=checkbox],:where(.hub) input[type=radio]{width:auto;transform:scale(1.2);accent-color:#5b3f8c;flex:none}
:where(.hub) button{font:inherit;font-weight:bold;border:0;border-radius:8px;padding:9px 16px;margin:10px 8px 0 0;cursor:pointer;background:var(--purple);color:light-dark(#fff,#1b0f27)}
:where(.hub) button.ghost{background:var(--chip);color:var(--ink)}
:where(.hub) button.danger{background:var(--bad);color:light-dark(#fff,#1b0f27)}
:where(.hub) button.small{padding:5px 10px;font-size:13px;margin:2px 4px 2px 0}
:where(.hub) button:disabled{opacity:.5;cursor:default}
:where(.hub) .links{margin-top:12px;font-size:14px}
:where(.hub) a{color:var(--purple);font-weight:bold}
:where(.hub) .msg{margin-top:10px;font-size:14px;padding:8px 12px;border-radius:8px;display:none}
:where(.hub) .msg.show{display:block}
:where(.hub) .msg.good{background:light-dark(#e1f3e8,#10301f);color:var(--good)}
:where(.hub) .msg.bad{background:light-dark(#fae3e1,#3a1513);color:var(--bad)}
:where(.hub) .note{background:var(--chip);border-radius:8px;padding:10px 14px;font-size:14px;margin:10px 0}
:where(.hub) .warn{background:var(--chip);border:2px solid var(--purple);border-radius:10px;padding:10px 14px;font-size:14px;margin:0 0 16px}
:where(.hub) table{width:100%;border-collapse:collapse;font-size:14px}
:where(.hub) th,:where(.hub) td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:middle}
:where(.hub) th{color:var(--soft);font-size:13px}
:where(.hub) td .sub{display:block;font-size:13px;color:var(--soft);font-weight:normal}
:where(.hub) .scrollx{overflow-x:auto}
:where(.hub) .scrollx table{min-width:560px}
:where(.hub) details summary{cursor:pointer;padding:6px 0}
:where(.hub) .mono{font-family:Consolas,"Courier New",monospace;font-weight:bold}
:where(.hub) .soft{color:var(--soft)}
:where(.hub) .row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
:where(.hub) .row>div{flex:1 1 180px}
:where(.hub) .bar{height:12px;background:var(--chip);border-radius:6px;overflow:hidden;margin:10px 0}
:where(.hub) .bar>div{height:100%;background:var(--purple);width:0}
:where(.hub) .fs{border:0;margin:10px 0 0;padding:0}
:where(.hub) .fs legend{font-weight:bold;font-size:14px;margin-bottom:4px}
:where(.hub) #kdClassWrap,:where(.hub) #kdYearWrap{margin:0 0 6px 28px}
:where(.hub) .kdgrid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px;align-items:start}
:where(.hub) .utile,:where(.hub) .sectile,:where(.hub) .ttile,:where(.hub) .pillb,:where(.hub) .pill{font-weight:normal}
:where(.hub) .pillb,:where(.hub) .pill{font-weight:bold}
:where(.hub) th{white-space:nowrap}
:where(.hub) h2.big{font-size:24px;margin:0;color:var(--purple)}
:where(.hub) .shead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px;margin:26px 0 12px}
:where(.hub) .shead p{margin:0;font-size:14px;color:var(--soft)}
:where(.hub) .pill{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;text-decoration:none;font-size:15px}
:where(.hub) .pill.dark{background:var(--aub);color:#fff}
:where(.hub) .cdrow{display:flex;flex-wrap:wrap;gap:12px}
:where(.hub) .cd{flex:1 1 240px;display:flex;align-items:center;gap:14px;background:var(--card);border:2px solid var(--line);border-radius:14px;padding:14px 18px}
:where(.hub) .cd.empty{color:var(--soft)}
:where(.hub) .cd.empty p{margin:0;font-size:15px}
:where(.hub) .cd.hot{background:var(--aub);border-color:var(--aub);color:#fff}
:where(.hub) .cdn{flex:none;min-width:64px;text-align:center}
:where(.hub) .cdn b{display:block;font-size:32px;line-height:1}
:where(.hub) .cdn span{font-size:13px;font-weight:bold}
:where(.hub) .cdt b{display:block;font-size:16px;line-height:1.3}
:where(.hub) .cdt span{font-size:14px;color:var(--soft)}
:where(.hub) .cd.hot .cdt span{color:#e4dcf3}
:where(.hub) .weektiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
:where(.hub) .wt{background:var(--card);border-radius:14px;padding:18px 20px;border:1px solid var(--line)}
:where(.hub) .wt span{display:block;font-size:14px;color:var(--soft)}
:where(.hub) .wt b{display:block;font-size:30px;color:var(--purple);margin:4px 0 2px}
:where(.hub) .wt small{font-size:13px;color:var(--soft);display:inline-flex;gap:6px;align-items:center}
:where(.hub) .wt.dark{background:var(--aub);border-color:var(--aub)}
:where(.hub) .wt.dark span,:where(.hub) .wt.dark small{color:#e4dcf3}
:where(.hub) .wt.dark b{color:#fff}
:where(.hub) .wt.soon{background:light-dark(#ebe5f2,#1c1226);border:2px dashed light-dark(#c9bddb,#4a3a5e)}
:where(.hub) .wt.soon b{color:var(--soft)}
:where(.hub) .utiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
:where(.hub) .utile{display:flex;flex-direction:column;gap:6px;min-height:170px;padding:20px;border-radius:16px;text-decoration:none;background:var(--card);color:var(--ink);border:2px solid var(--line)}
:where(.hub) .utile .un{font-size:14px;font-weight:bold}
:where(.hub) .utile .uname{font-size:20px;font-weight:bold;line-height:1.25}
:where(.hub) .utile .uk{font-size:14px}
:where(.hub) .utile .us{margin-top:auto;font-size:14px;font-weight:bold}
:where(.hub) .utile.ready{background:#5b3f8c;border-color:#5b3f8c;color:#fff}
:where(.hub) .utile.ready .un,:where(.hub) .utile.ready .uk,:where(.hub) .utile.ready .us{color:#e4dcf3}
:where(.hub) .utile.ready:hover,:where(.hub) .utile.ready:focus-visible{background:var(--aub);border-color:var(--aub)}
:where(.hub) .utile.locked,:where(.hub) .sectile.locked,:where(.hub) .ttile.locked{background:light-dark(#ebe5f2,#1c1226);border:2px dashed light-dark(#c9bddb,#4a3a5e);color:var(--soft)}
:where(.hub) .utile.locked .uname,:where(.hub) .sectile.locked .st,:where(.hub) .ttile.locked b{color:light-dark(#3d2f50,#d8cce8)}
:where(.hub) a.utile.locked:hover,:where(.hub) a.sectile.locked:hover{border-color:var(--purple)}
:where(.hub) .lockchip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:light-dark(#ddd3ea,#3a2b4f);color:light-dark(#301344,#efe8f7);font-size:14px;font-weight:bold}
:where(.hub) .prev{font-size:13px;color:var(--purple);text-decoration:underline}
:where(.hub) .crumbs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
:where(.hub) .pillb{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:2px solid var(--line);background:var(--card);text-decoration:none;font-size:15px}
:where(.hub) .hero{background:var(--aub);color:#fff;border-radius:18px;padding:26px 28px;margin-bottom:20px}
:where(.hub) .hero .k{margin:0;font-size:15px;font-weight:bold;color:#d9cdea}
:where(.hub) .hero h1{margin:4px 0 8px;font-size:32px;line-height:1.2}
:where(.hub) .hero p{margin:0;font-size:16px;line-height:1.5;color:#f3eff8;max-width:760px}
:where(.hub) .chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
:where(.hub) .chips span{padding:6px 14px;border-radius:999px;background:#5b3f8c;font-size:14px;font-weight:bold}
:where(.hub) .chips span.w{background:#fff;color:#301344}
:where(.hub) .sectiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-top:12px}
:where(.hub) .sectile{display:flex;flex-direction:column;gap:10px;min-height:240px;padding:24px;border-radius:18px;background:var(--card);border:2px solid var(--line);color:var(--ink);text-decoration:none}
:where(.hub) a.sectile:not(.locked):hover{border-color:#5b3f8c}
:where(.hub) .chips2{display:flex;flex-wrap:wrap;gap:8px}
:where(.hub) .chips2 span{padding:4px 12px;border-radius:999px;background:var(--chip);font-size:14px;font-weight:bold}
:where(.hub) .chips2 span.t{background:#5b3f8c;color:#fff}
:where(.hub) .sectile.locked .chips2 span.t{background:#574a68}
:where(.hub) .sectile .st{font-size:24px;font-weight:bold;color:var(--purple);line-height:1.25}
:where(.hub) .sectile .sd{font-size:15px;line-height:1.5;color:var(--soft)}
:where(.hub) .sectile .sg{font-size:14px;color:var(--soft);font-weight:normal}
:where(.hub) .sectile .sf{margin-top:auto;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;font-size:15px;font-weight:bold}
:where(.hub) .sectile .go{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--aub);color:#fff}
:where(.hub) .grp h2{font-size:22px;margin:0 0 4px}
:where(.hub) .grp>p{margin:0 0 12px;font-size:15px}
:where(.hub) .ttiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
:where(.hub) .ttile{display:flex;flex-direction:column;gap:6px;min-height:150px;padding:16px 18px;border-radius:14px;border:2px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none}
:where(.hub) a.ttile:hover,:where(.hub) a.ttile:focus-visible{border-color:#5b3f8c}
:where(.hub) .ttile .ic{width:40px;height:40px;border-radius:12px;background:#5b3f8c;display:grid;place-items:center}
:where(.hub) .ttile .ic svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:where(.hub) .ttile b{font-size:17px;color:var(--purple);line-height:1.3}
:where(.hub) .ttile .d{font-size:14px;color:var(--soft);line-height:1.4}
:where(.hub) .ttile .pg{margin-top:auto;align-self:flex-start;font-size:13px;font-weight:bold;color:var(--soft);background:var(--chip);border-radius:999px;padding:3px 10px}
:where(.hub) .ttile .pg.on{background:light-dark(#e3f4ea,#173a26);color:var(--good)}
:where(.hub) .ttile.locked .lockchip{margin-top:auto}
@media (max-width:800px){:where(.hub) .kdgrid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){:where(.hub) .grid2{grid-template-columns:1fr}
:where(.hub) .hero h1{font-size:26px}}
:where(.hub) .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:6px 0 12px}
:where(.hub) .stats div{background:var(--wash);border-radius:10px;padding:10px 14px;font-size:13px;color:var(--soft)}
:where(.hub) .stats b{display:block;font-size:24px;color:var(--purple)}
:where(.hub) .ragc{display:inline-block;min-width:46px;text-align:center;border-radius:999px;padding:2px 8px;font-weight:bold;font-size:13px}
:where(.hub) .ragc.g,:where(.hub) .tc.g{background:light-dark(#d8f0e1,#173a26);color:light-dark(#0f5a31,#9be3b8)}
:where(.hub) .ragc.a,:where(.hub) .tc.a{background:light-dark(#fbe3a6,#4a3a12);color:light-dark(#5c3c00,#f7d98f)}
:where(.hub) .ragc.r,:where(.hub) .tc.r{background:light-dark(#f8d7d4,#40201e);color:light-dark(#8a1c17,#ffb3ab)}
:where(.hub) .flag{display:inline-block;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:bold;white-space:nowrap}
:where(.hub) .flag.r{background:light-dark(#f8d7d4,#40201e);color:light-dark(#8a1c17,#ffb3ab)}
:where(.hub) .flag.a{background:light-dark(#fbe3a6,#4a3a12);color:light-dark(#5c3c00,#f7d98f)}
:where(.hub) .legend{font-size:13px;color:var(--soft);margin:6px 0 12px;line-height:1.9}
:where(.hub) .dash table{min-width:980px}
:where(.hub) .dash th,:where(.hub) .dash td{padding:6px 5px}
:where(.hub) .dash .stick{position:sticky;left:0;background:var(--card);z-index:1;min-width:150px;box-shadow:1px 0 0 var(--line)}
:where(.hub) .dash th.tk{font-size:12px;text-align:center;line-height:1.2}
:where(.hub) .tc{text-align:center;line-height:1.15;border-left:2px solid var(--card)}
:where(.hub) .tc b{display:block;font-size:14px}
:where(.hub) .tc small{font-size:11px}
:where(.hub) td.num{text-align:right}
:where(.hub) .nowrap{white-space:nowrap}
:where(.hub) tr.sel td{background:var(--chip)}
:where(.hub) tr.sel td.tc.g,:where(.hub) tr.sel td.tc.a,:where(.hub) tr.sel td.tc.r{filter:brightness(.97)}
:where(.hub) tr.tot td{border-top:2px solid var(--purple)}
:where(.hub) .sortb{background:none;color:var(--soft);padding:0;margin:0;font-size:13px;font-weight:bold;border-radius:0;text-align:inherit}
:where(.hub) .linkb{background:none;color:var(--purple);padding:2px 0;margin:0;text-align:left;text-decoration:underline;border-radius:0}
:where(.hub) .plan{white-space:pre-wrap;background:var(--wash);border-radius:10px;padding:14px 16px;font-size:14px;line-height:1.55;max-height:480px;overflow:auto}
:where(.hub) .note button.ghost{background:var(--card)}
:where(.hub) .trow{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;background:var(--wash);border-radius:10px;padding:10px 12px;margin:0 0 10px}
:where(.hub) .trow .tsel{flex:0 1 260px}
:where(.hub) .trow .tnarrow{flex:1 1 300px;display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
:where(.hub) .trow .tnarrow .nl{flex:1 1 150px}
:where(.hub) .nl{margin:0;font-size:13px}
:where(.hub) .nl select{margin-top:4px;background:var(--card)}
:where(.hub) .ptick{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:0 12px;margin:6px 0 0 28px}
:where(.hub) #naPupils{margin-bottom:6px}
:where(.hub) .asgt th.tk{white-space:normal;min-width:120px;vertical-align:bottom}
:where(.hub) .uchecks{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 14px}
:where(.hub) .puedit{background:var(--wash);border:2px solid var(--purple);border-radius:12px;padding:14px 16px;margin-top:14px}
:where(.hub) .subnav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
:where(.hub) .subnav a{padding:8px 14px;border-radius:999px;background:var(--card);border:2px solid var(--line);text-decoration:none;font-size:14px}
:where(.hub) .subnav a.on{background:var(--purple);border-color:var(--purple);color:light-dark(#fff,#1b0f27)}
:where(.hub) a.small-a{display:inline-block;font-size:13px;padding:5px 10px;margin:2px 4px 2px 0;border-radius:8px;background:var(--chip);color:var(--ink);text-decoration:none}
:where(.hub) .tiprev{background:var(--wash);border-radius:12px;padding:14px 16px;font-size:14px}
:where(.hub) .tiprev h4{margin:14px 0 6px;color:var(--purple)}
:where(.hub) .tiprev ol{padding-left:20px;margin:0;display:grid;gap:10px}
:where(.hub) .tihead{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:16px}
:where(.hub) .tiao{background:var(--aub);color:#fff;border-radius:999px;padding:2px 10px;font-size:13px;font-weight:bold}
:where(.hub) .tiq{background:var(--card);border-left:4px solid #5b3f8c;border-radius:6px;padding:8px 12px;margin:0 0 6px;font-weight:bold;color:var(--purple)}
:where(.hub) .timodel{background:light-dark(#efeaf7,#2a1d3a);border-radius:8px;padding:8px 12px;margin-top:6px;font-size:14px;line-height:1.55;white-space:pre-wrap}
:where(.hub) .timodel.big{font-size:16px;padding:14px 16px}
:where(.hub) .errs{color:var(--bad);font-size:14px;padding-left:20px}
:where(.hub) details.upd{border-top:1px solid var(--line);padding:8px 0}
:where(.hub) details.upd summary{cursor:pointer}
:where(.hub) .prow{background:var(--wash);border-radius:10px;padding:10px 12px;margin:0 0 10px}
:where(.hub) .prow textarea,:where(.hub) .prow input{background:var(--card)}
:where(.hub) .tisub{border:2px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0}
:where(.hub) .draft{white-space:pre-wrap;background:var(--wash);border-radius:10px;padding:10px 14px;margin:8px 0;font-size:15px;line-height:1.55}
:where(.hub) .draft.old{opacity:.8}
:where(.hub) .decide{background:var(--chip);border-radius:10px;padding:10px 12px;margin-top:8px}
:where(.hub) .decide textarea{background:var(--card)}
:where(.hub) .fbk{font-size:14px;margin:6px 0}
:where(.hub) .pans{font-size:14px;padding-left:20px;display:grid;gap:8px}
:where(.hub) .tiok{background:var(--goodBg);border:2px solid var(--good)}
:where(.hub) .tinot{background:light-dark(#fbe7e5,#40201e);border:2px solid var(--bad)}
:where(.hub) .tiprog{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--soft);margin-bottom:10px}
:where(.hub) .tiprog .track{flex:1;height:10px;border-radius:99px;background:var(--chip);overflow:hidden}
:where(.hub) .tiprog .track div{height:100%;width:0;background:#5b3f8c;border-radius:99px}
:where(.hub) .tipr{padding-left:22px;display:grid;gap:22px;margin:0}
:where(.hub) .tipr .qt{font-size:16px;margin-bottom:6px}
:where(.hub) .tipr textarea{min-height:90px;margin-bottom:6px}
:where(.hub) .tipr .hint{font-size:14px;color:var(--soft);margin:4px 0}
:where(.hub) .link{background:none!important;color:var(--purple)!important;padding:0!important;margin:0 0 4px!important;text-decoration:underline;font-size:14px}
:where(.hub) .rate{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px;font-size:14px;color:var(--soft)}
:where(.hub) .rate .rb{background:var(--card);color:var(--ink);border:2px solid var(--line)}
:where(.hub) .rate .rb.on[data-r="2"]{background:var(--good);border-color:var(--good);color:#fff}
:where(.hub) .rate .rb.on[data-r="1"]{background:var(--midBg);border-color:var(--mid);color:var(--ink)}
:where(.hub) .rate .rb.on[data-r="0"]{background:var(--bad);border-color:var(--bad);color:#fff}
:where(.hub) .opts.starters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
:where(.hub) .opts.starters button{text-align:left}
:where(.hub) .decide button.ghost{background:var(--card);border:2px solid var(--line)}
/* ----- Unit 4 tasks (from the An Inspector Calls site) ----- */
:where(.aic){font-size:18px;line-height:1.4}
:root{color-scheme:light dark;
--aub:#301344;--purple:light-dark(#5b3f8c,#c4ace8);--wash:light-dark(#f3eff8,#140a1d);--card:light-dark(#ffffff,#22172f);
--ink:light-dark(#241433,#efe8f7);--soft:light-dark(#574a68,#b9accb);--chip:light-dark(#e4dcf3,#3a2b4f);--line:light-dark(#ddd3ea,#3a2c4d);
--amber:light-dark(#fbe3a6,#4a3a12);--amberInk:light-dark(#241433,#fbe3a6);
--good:light-dark(#17703f,#7bd8a0);--goodBg:light-dark(#e3f4ea,#173a26);--bad:light-dark(#a3241f,#ff9a92);--badBg:light-dark(#fbe7e5,#40201e);--mid:light-dark(#8a5a00,#f2c46d);--midBg:light-dark(#fdf1d8,#3d3015)}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
:where(.aic) *{box-sizing:border-box;min-width:0}
:where(.aic){margin:0;background:var(--wash);color:var(--ink);font:18px/1.4 Verdana,"DejaVu Sans",Geneva,sans-serif;overflow-x:clip}
:where(.aic) select,:where(.aic) button,:where(.aic) textarea,:where(.aic) input{font:inherit;color:inherit}
:where(.aic) a{color:var(--purple)}
:where(.aic) .card{background:var(--card);border-radius:16px;padding:clamp(18px,3.2vw,32px);box-shadow:0 2px 0 var(--line),0 12px 30px rgba(48,19,68,.08)}
:where(.aic) .thead{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 16px}
:where(.aic) .back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 10px;border-radius:999px;background:var(--card);border:2px solid var(--line);color:var(--purple);font-weight:700;font-size:15px;text-decoration:none}
:where(.aic) .thead h2{font-size:clamp(22px,3vw,30px);margin:0;color:var(--purple);line-height:1.15}
:where(.aic) .intro{margin:0 0 16px;color:var(--soft);max-width:70ch}
:where(.aic) h3{font-size:20px;color:var(--purple);margin:0 0 12px}
:where(.aic) .sec{margin-top:22px}
:where(.aic) .muted{color:var(--soft);font-size:15px}
:where(.aic) .bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px;padding:14px 18px}
:where(.aic) .bar label{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--soft);flex:1 1 170px}
:where(.aic) select,:where(.aic) input[type=text]{min-height:46px;border-radius:10px;border:2px solid var(--line);padding:0 12px;background:var(--card);color:var(--ink);font-size:16px;width:100%}
:where(.aic) textarea{width:100%;min-height:96px;margin-top:10px;border-radius:10px;border:2px solid var(--line);background:var(--card);color:var(--ink);padding:10px 12px;font-size:17px;line-height:1.4;resize:vertical}
:where(.aic) .btn{min-height:48px;border-radius:12px;border:0;padding:0 22px;font-weight:700;font-size:17px;cursor:pointer}
:where(.aic) .btn-p{background:#5b3f8c;color:#fff}
:where(.aic) .btn-o{background:transparent;color:var(--purple);border:2px solid var(--purple)}
:where(.aic) .btn:disabled{opacity:.5;cursor:default}
:where(.aic) .seg{display:inline-flex;background:var(--chip);border-radius:999px;padding:4px;flex-wrap:wrap}
:where(.aic) .seg button{border:0;background:transparent;color:var(--ink);min-height:42px;padding:0 16px;border-radius:999px;cursor:pointer;font-size:15px;font-weight:700}
:where(.aic) .seg button[aria-pressed=true]{background:#5b3f8c;color:#fff}
:where(.aic) .tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
:where(.aic) .tag{background:var(--chip);border-radius:999px;padding:4px 12px;font-size:14px;font-weight:700}
:where(.aic) .quote{color:var(--purple);font-weight:700;font-size:clamp(22px,3vw,30px);line-height:1.25;margin:0}
:where(.aic) .qtext{font-size:clamp(19px,2.4vw,24px);font-weight:700;line-height:1.3;margin:0}
:where(.aic) ol.qs{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:26px;counter-reset:q}
:where(.aic) ol.qs>li{counter-increment:q;display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 14px}
:where(.aic) ol.qs>li::before{content:counter(q);width:40px;height:40px;border-radius:50%;background:#5b3f8c;color:#fff;font-weight:700;display:grid;place-items:center}
:where(.aic) .qt{font-size:clamp(18px,2vw,20px);line-height:1.35;padding-top:6px}
:where(.aic) .hint{margin:6px 0 0;font-size:15px;color:var(--soft)}
:where(.aic) .opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
:where(.aic) .opts button{min-height:44px;padding:0 14px;border-radius:10px;border:2px solid var(--line);background:var(--chip);color:var(--ink);cursor:pointer;font-size:16px}
:where(.aic) .choices{display:grid;gap:8px;margin-top:12px}
:where(.aic) .choices button,:where(.aic) .choices label.ck{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;text-align:left;min-height:52px;padding:10px 14px;border-radius:12px;border:2px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;font-size:16px;line-height:1.4}
:where(.aic) .choices .l{width:30px;height:30px;border-radius:50%;background:var(--chip);display:grid;place-items:center;font-weight:700;font-size:15px}
:where(.aic) .choices button:hover:not(:disabled),:where(.aic) .opts button:hover:not(:disabled),:where(.aic) .choices label.ck:hover{border-color:#5b3f8c}
:where(.aic) .choices label.ck input{width:24px;height:24px;margin:3px;accent-color:#5b3f8c}
:where(.aic) .choices label.ck.on{border-color:#5b3f8c;background:var(--wash)}
:where(.aic) .right{background:var(--goodBg)!important;border-color:var(--good)!important}
:where(.aic) .opts .right{background:var(--good)!important;color:#fff}
:where(.aic) .wrong{background:var(--badBg)!important;border-color:var(--bad)!important}
:where(.aic) .opts .wrong{background:var(--bad)!important;color:#fff}
:where(.aic) .right .l{background:var(--good);color:#fff}
:where(.aic) .wrong .l{background:var(--bad);color:#fff}
:where(.aic) button:disabled{cursor:default}
:where(.aic) .dim{opacity:.55}
:where(.aic) .fb{margin:10px 0 0;padding:10px 14px;border-radius:10px;font-size:16px}
:where(.aic) .fb.ok{background:var(--goodBg);border-left:5px solid var(--good)}
:where(.aic) .fb.no{background:var(--badBg);border-left:5px solid var(--bad)}
:where(.aic) .fb.info{background:var(--wash);border-left:5px solid #5b3f8c}
:where(.aic) .fb.mid{background:var(--midBg);border-left:5px solid var(--mid)}
:where(.aic) .ctx{display:block;margin-top:6px;font-size:14px;font-weight:700;color:var(--purple)}
:where(.aic) .show{margin-top:8px;background:transparent;border:2px solid var(--purple);color:var(--purple);min-height:44px;border-radius:10px;padding:0 14px;font-weight:700;cursor:pointer;font-size:16px}
:where(.aic) .rate{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:15px;color:var(--soft)}
:where(.aic) .rate button{min-height:44px;padding:0 14px;border-radius:10px;border:2px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;font-size:15px;font-weight:700}
:where(.aic) .rate button.on[data-r="2"]{background:var(--good);border-color:var(--good);color:#fff}
:where(.aic) .rate button.on[data-r="1"]{background:var(--midBg);border-color:var(--mid)}
:where(.aic) .rate button.on[data-r="0"]{background:var(--bad);border-color:var(--bad);color:#fff}
:where(.aic) .result{margin-top:22px;border-radius:12px;padding:16px 18px;background:var(--aub);color:#fff;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
:where(.aic) .result b{font-size:22px}
:where(.aic) .result .btn{background:#fff;color:var(--aub)}
:where(.aic) .challenge{margin-top:18px;background:var(--amber);color:var(--amberInk);border-radius:12px;padding:16px 18px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px}
:where(.aic) .challenge svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:where(.aic) .challenge p{margin:2px 0 0;font-size:17px}
:where(.aic) .prog{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-size:15px;color:var(--soft)}
:where(.aic) .prog .track{flex:1;height:10px;border-radius:99px;background:var(--chip);overflow:hidden}
:where(.aic) .prog .fill{height:100%;background:#5b3f8c;border-radius:99px}
:where(.aic) .bars{display:grid;gap:12px}
:where(.aic) .barrow{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr) 54px;gap:12px;align-items:center;font-size:16px}
:where(.aic) .track{height:16px;border-radius:99px;background:var(--chip);overflow:hidden}
:where(.aic) .fill{height:100%;border-radius:99px;background:#5b3f8c}
:where(.aic) .fill.low{background:var(--bad)}
:where(.aic) .pct{text-align:right;font-weight:700;white-space:nowrap}
:where(.aic) .link{background:none;border:0;color:var(--purple);font-weight:700;cursor:pointer;font-size:15px;text-decoration:underline;min-height:44px;padding:0}
:where(.aic) .cloze{font-size:clamp(21px,2.8vw,28px);font-weight:700;color:var(--purple);line-height:1.6;margin:0}
:where(.aic) .cloze input{display:inline-block;width:auto;min-width:9ch;max-width:100%;font:inherit;font-size:.85em;color:var(--ink);background:var(--wash);border:0;border-bottom:3px solid #5b3f8c;border-radius:6px 6px 0 0;padding:0 8px;min-height:44px;vertical-align:baseline}
:where(.aic) .cloze input.ok{border-color:var(--good);background:var(--goodBg)}
:where(.aic) .cloze input.no{border-color:var(--bad);background:var(--badBg)}
:where(.aic) .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
:where(.aic) .extract{background:var(--wash);border-radius:12px;padding:16px 18px;margin:0 0 18px;font-size:17px;line-height:1.55}
:where(.aic) .extract p{margin:0 0 10px;display:grid;grid-template-columns:minmax(0,130px) minmax(0,1fr);gap:12px}
:where(.aic) .extract p:last-child{margin:0}
:where(.aic) .extract p b{color:var(--purple)}
:where(.aic) .extract p.sd{display:block}
:where(.aic) .mk{font-size:14px;font-weight:700;color:var(--soft);white-space:nowrap}
:where(.aic) .gapline{font-size:18px;line-height:2.2}
:where(.aic) .gapline select{display:inline-block;width:auto;min-width:9em;margin:0 4px}
:where(.aic) .score{display:inline-block;background:var(--chip);border-radius:999px;padding:6px 14px;font-weight:700;font-size:15px}
:where(.aic) .pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}
:where(.aic) .pick button{text-align:left;min-height:56px;padding:12px 16px;border-radius:12px;border:2px solid var(--line);background:var(--card);cursor:pointer;font-size:16px;font-weight:700;color:var(--purple)}
:where(.aic) .pick button:hover{border-color:#5b3f8c}
:where(.aic) .pick button small{display:block;font-weight:400;color:var(--soft);font-size:14px;margin-top:2px}
:where(.aic) .pick button.done{border-color:var(--good)}
:where(.aic) .para{font-size:18px;line-height:1.6}
:where(.aic) .para button{display:inline;text-align:left;background:transparent;border:0;border-bottom:2px dashed var(--line);padding:2px 2px;margin:0 2px;cursor:pointer;color:var(--ink);font-size:inherit;line-height:inherit;border-radius:4px}
:where(.aic) .para button:hover{background:var(--wash);border-color:#5b3f8c}
:where(.aic) .para button.found{background:var(--goodBg);border-bottom:2px solid var(--good)}
:where(.aic) .para button.fine{background:var(--wash);border-bottom:2px solid var(--line);color:var(--soft)}
:where(.aic) .para button.missed{background:var(--badBg);border-bottom:2px solid var(--bad)}
:where(.aic) .order{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:o}
:where(.aic) .order li{counter-increment:o;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--card);border:2px solid var(--line);border-radius:12px;padding:10px 12px}
:where(.aic) .order li::before{content:counter(o);width:34px;height:34px;border-radius:50%;background:var(--chip);display:grid;place-items:center;font-weight:700}
:where(.aic) .order li.right::before{background:var(--good);color:#fff}
:where(.aic) .order li.wrong::before{background:var(--bad);color:#fff}
:where(.aic) .order .mv{display:flex;gap:6px}
:where(.aic) .order .mv button{width:44px;height:44px;border-radius:10px;border:2px solid var(--line);background:var(--chip);cursor:pointer;font-weight:700;font-size:18px}
:where(.aic) .order small{display:block;color:var(--soft);font-size:14px;margin-top:2px}
:where(.aic) .flash{min-height:260px;display:grid;place-items:center;text-align:center;cursor:pointer;border:2px solid var(--line);user-select:none}
:where(.aic) .flash .term{font-size:clamp(28px,4vw,40px);font-weight:700;color:var(--purple)}
:where(.aic) .flash .def{font-size:20px;max-width:46ch}
:where(.aic) .flash .ex{font-size:16px;color:var(--soft);margin-top:12px}
:where(.aic) .pstep{margin-top:20px}
:where(.aic) .pstep h3{display:flex;gap:10px;align-items:center}
:where(.aic) .pstep h3 span{width:34px;height:34px;border-radius:50%;background:#5b3f8c;color:#fff;display:grid;place-items:center;font-size:16px;flex:none}
:where(.aic) .qcard{border:2px solid var(--line);border-radius:12px;padding:14px;margin-top:12px}
:where(.aic) .qcard .quote{font-size:19px}
:where(.aic) .qcard select,:where(.aic) .qcard input{margin-top:8px}
:where(.aic) .check{display:grid;gap:8px;margin-top:8px}
:where(.aic) .check label{display:flex;gap:10px;align-items:flex-start;font-size:16px;min-height:32px}
:where(.aic) .check input{width:22px;height:22px;accent-color:#5b3f8c;flex:none;margin-top:2px}
:where(.aic) .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
:where(.aic) .acts span{padding:4px 12px;border-radius:999px;font-size:14px;font-weight:700;background:var(--chip)}
:where(.aic) .acts span.on{background:var(--good);color:#fff}
:where(.aic) button:focus-visible,:where(.aic) select:focus-visible,:where(.aic) textarea:focus-visible,:where(.aic) input:focus-visible,:where(.aic) a:focus-visible{outline:3px solid #fbe3a6;outline-offset:2px}
:where(.aic) .hide{display:none!important}
:where(.aic) .in{animation:in .3s ease}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){:where(.aic) .in{animation:none}}
@media(max-width:600px){:where(.aic) .bar .btn{width:100%}
:where(.aic) ol.qs>li{grid-template-columns:34px minmax(0,1fr);gap:0 10px}
:where(.aic) ol.qs>li::before{width:34px;height:34px}
:where(.aic) .barrow{grid-template-columns:minmax(0,1fr) 54px}
:where(.aic) .barrow .track{grid-column:1/-1;grid-row:2}
:where(.aic) .extract p{grid-template-columns:minmax(0,1fr);gap:2px}
:where(.aic) .order li{grid-template-columns:34px minmax(0,1fr)}
:where(.aic) .order .mv{grid-column:2}}

/* ===== Class page (build 40): class code card, "Show on the board", and tucked-away sections ===== */
details.more{margin:10px 0}
details.more>summary{cursor:pointer;color:var(--purple);font-weight:bold;padding:4px 0}
details.more[open]>summary{margin-bottom:8px}
.codecard .ccode{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}
.codecard .bigcode{font-size:34px;font-weight:bold;letter-spacing:.06em;color:var(--purple);line-height:1.2;margin:2px 0}
.codecard .ccbtns{display:flex;flex-wrap:wrap;gap:8px}
.codecard .ccbtns button{margin:0}
.codeboard{position:fixed;inset:0;z-index:100;background:#5a2160;color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px}
.codeboard .cbt{font-size:clamp(20px,3vw,36px);margin:0 0 10px}
.codeboard .cbcode{font-size:clamp(52px,13vw,170px);font-weight:bold;letter-spacing:.06em;line-height:1.1;margin:0 0 20px}
.codeboard .cbs{font-size:clamp(16px,2.2vw,28px);line-height:1.5;margin:0 0 24px}
.codeboard button{background:#fff;color:#5a2160;border:0;border-radius:10px;padding:10px 26px;font:inherit;font-weight:bold;cursor:pointer}

/* ===== Log-in page, Microsoft connect page and school picker: full-screen split design (aubergine panel | white panel) ===== */
body.auth .banner,body.auth #strip,body.auth #tabbar{display:none}
body.auth main{max-width:none;margin:0;padding:0}
html:has(body.auth){background:var(--card)}   /* the scrollbar's reserved strip matches the white panel */
.authwrap{--brand:light-dark(#5a2160,#c4ace8);--onbrand:light-dark(#ffffff,#1b0f27);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.authside{background:#5a2160;color:#fff;display:flex;flex-direction:column;padding:clamp(28px,5vw,72px)}
.authlogo{display:flex;align-items:center;gap:14px}
.authlogo .ehqmark{width:72px;height:72px}
.authlogo .ehqword{font-size:40px}
.authtag{margin:auto 0;padding:48px 0}
.authtag h1{margin:0 0 18px;color:#fff;font-size:clamp(32px,4.2vw,58px);line-height:1.08;letter-spacing:-.02em}
.authtag p{margin:0;color:#e3d6f0;font-size:clamp(17px,1.8vw,24px)}
.authschool{display:flex;align-items:center;gap:16px;border-top:1px solid rgba(255,255,255,.25);padding-top:24px;font-size:15px;line-height:1.5}
.authschool img{width:72px;height:auto;flex:none}
.authmain{background:var(--card);display:flex;align-items:center;justify-content:center;padding:clamp(28px,5vw,72px) max(4vw,20px)}
.authbox{width:100%;max-width:460px}
.authkicker{margin:0 0 6px;color:var(--brand);font-size:14px;font-weight:bold;letter-spacing:.12em;text-transform:uppercase}
.authbox h2{margin:0 0 24px;color:var(--brand);font-size:clamp(30px,3.2vw,42px);line-height:1.1}
.authbtn{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:64px;margin:0;padding:10px 18px;border:0;border-radius:12px;background:var(--brand);color:var(--onbrand);font:inherit;font-size:18px;font-weight:bold;text-align:left;cursor:pointer}
.authbtn:hover{filter:brightness(1.1)}
.authbtn svg{flex:none;background:#fff;border-radius:4px;padding:3px;width:26px;height:26px}
.authrule{border:0;border-top:1px solid var(--line);margin:28px 0 18px}
.authmore{margin:0 0 12px}
.authmore summary{cursor:pointer;color:var(--purple);font-weight:bold;text-decoration:underline;list-style:none;padding:4px 0}
.authmore summary::-webkit-details-marker{display:none}
.authmore[open] summary{margin-bottom:6px}
.authbox form button:not(.linkb){width:100%;min-height:48px;margin:14px 0 0;background:var(--brand);color:var(--onbrand)}
.authbox .links{font-size:14px}
.authlinks{margin:6px 0 0;color:var(--soft)}
.authbox .linkb{display:inline;background:none;border:0;padding:0;margin:0;color:var(--purple);font:inherit;font-weight:bold;text-decoration:underline;cursor:pointer;min-height:0}
.authbuild{margin:28px 0 0;color:var(--soft);font-size:12px}
@media (max-width:760px){
  .authwrap{grid-template-columns:minmax(0,1fr);min-height:0}
  .authside{padding:20px 20px 18px}
  .authlogo .ehqmark{width:44px;height:44px}
  .authlogo .ehqword{font-size:26px}
  .authtag{margin:18px 0 0;padding:0}
  .authtag h1{font-size:20px;margin-bottom:4px}
  .authtag p{font-size:14px}
  .authschool{margin-top:16px;padding-top:14px;font-size:13px;gap:12px}
  .authschool img{width:48px}
  .authmain{align-items:flex-start;padding:26px 20px 40px}
}
