/*
  Edu Kata pilot. Design rules from the blueprint:
  - Atkinson Hyperlegible, 16px body, nothing below 13px, line height 1.5, sentence case, no italics.
  - Sand page, white cards, dark ink. No dark navy and no large dark blocks.
  - Colour is reserved for the four levels, and every level also has a letter and a length or height.
  - Shapes carry the labels: square below pass, ring below target, triangles dropped and improved,
    bar behind, diamond borderline.
  - Buttons and links are at least 44px tall.
  The typeface is self-hosted: put the font files in public/fonts (see README). Until then the
  stack falls back to Verdana, which is also a wide, open face.
*/
:root{--page:#F7F5F0;--paper:#FFFFFF;--sand:#FAF6EE;--ink:#1B2333;--muted:#4A5468;--hair:#E7E2D6;--navy:#244C80;--teacher:#2F63A3;--sky:#EEF3FA;--soft:#FFFFFF;--line:#D6DEE9;--e:#D55E00;--d:#E69F00;--s:#009E73;--m:#6A3D9A}
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--ink);font-family:'Atkinson Hyperlegible',ui-rounded,'SF Pro Rounded',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.5;letter-spacing:0}
a{color:var(--teacher);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--navy)}
h1{margin:0 0 6px;font-size:36px;line-height:1.15;font-weight:700;letter-spacing:-0.02em}
h2{margin:0 0 2px;font-size:24px;font-weight:650;letter-spacing:-0.01em}
h3{margin:0 0 8px;font-size:19px;font-weight:650;letter-spacing:-0.01em}
p{margin:0 0 12px}
em,i{font-style:normal}
:focus-visible{outline:3px solid var(--teacher);outline-offset:2px}
input::placeholder,textarea::placeholder{color:var(--muted)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.muted{color:var(--muted)}
.small{font-size:15px}
.tiny{font-size:13px}
.b{font-weight:700}
.right{text-align:right}
.center{text-align:center}
.nowrap{white-space:nowrap}

/* Header band */
.band{background:#FFFFFF;border-bottom:1px solid var(--hair)}
.band header{max-width:1240px;margin:0 auto;padding:16px 40px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.band a{color:var(--ink)}.band a:hover{color:var(--teacher)}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:700;text-decoration:none}
.logo{display:inline-flex;align-items:flex-end;gap:3px;height:22px}
.logo i{display:block;width:5px;border-radius:2px;background:var(--teacher)}
.logo i:nth-child(1){height:7px}.logo i:nth-child(2){height:12px}.logo i:nth-child(3){height:17px}.logo i:nth-child(4){height:22px}
.ask{flex:999 1 200px;min-width:0;display:flex;gap:8px;margin:0;position:relative}
.asklist{position:absolute;top:52px;left:0;right:0;min-width:min(440px,calc(100vw - 32px));z-index:20;margin:0;padding:6px;list-style:none;max-height:min(70vh,560px);overflow-y:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(27,35,51,.12)}
.asklist li{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;padding:8px 14px;border:2px solid transparent;border-radius:10px;cursor:pointer}
.asklist li .muted{font-size:14px;white-space:nowrap}
.asklist li:hover,.asklist li[aria-selected="true"]{background:var(--sky);border-color:var(--teacher)}
.ask input{flex:1;min-width:0;height:46px;padding:0 16px;font:inherit;color:var(--ink);background:var(--page);border:1px solid var(--hair);border-radius:999px}
.ask button{height:46px;padding:0 22px;font:inherit;font-weight:600;color:#FFFFFF;background:var(--teacher);border:0;border-radius:999px;cursor:pointer}
.band .hlink{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.band .hbtn{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;font-weight:600;text-decoration:none;border:1px solid var(--line);border-radius:999px;background:var(--sky);color:var(--navy)}
.who{display:inline-flex;align-items:center;gap:14px;margin:0;font-size:15px;color:var(--muted)}
.linkbtn{font:inherit;font-size:15px;color:var(--teacher);background:none;border:0;padding:0;min-height:44px;text-decoration:underline;cursor:pointer}
.wrap{max-width:1240px;margin:0 auto;padding:18px 40px 64px}
.narrow{max-width:560px}
.crumbs{margin:0 0 12px;font-size:15px}
.back{margin:0 0 6px}
.back a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;text-decoration:none}
.back a::before{content:"\2190";font-size:18px}
.back a:hover{text-decoration:underline}
.backbar{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.flash{margin:0 0 16px;padding:12px 16px;border-radius:14px;background:var(--sky);border:1px solid var(--teacher);font-weight:700}
.error{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:#FFFFFF;border:2.5px solid var(--ink);font-weight:700}
.error::before{content:"";display:inline-block;width:10px;height:10px;margin-right:10px;background:var(--ink)}

/* Cards and layout */
.card{background:var(--paper);border:1px solid var(--hair);border-radius:24px;padding:26px 30px;margin-bottom:24px}
.card.blue{background:var(--sky);border:1px solid var(--line)}
.card.blue h2{color:var(--navy)}
.cols{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.cols>*{flex:1 1 360px;min-width:0}
.cols>.wide{flex:1.35 1 520px}
.stack{display:flex;flex-direction:column;gap:24px}
.stack>.card{margin-bottom:0}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;margin-bottom:8px}
.grid2>.card{margin-bottom:0;padding:18px 22px}
.grid2 h2{font-size:20px;margin-bottom:8px}
.kv{display:flex;justify-content:space-between;gap:16px;padding:5px 0}
.headrow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:20px}
.actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:6px}
/* position:relative so visually hidden labels inside a wide table stay inside its scroll box */
.scroll{overflow-x:auto;position:relative}

/* Buttons */
[hidden]{display:none !important}
.act{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;font:inherit;font-weight:600;text-decoration:none;border-radius:999px;border:1px solid transparent;color:var(--navy);background:var(--sky);cursor:pointer}
.act:hover{background:var(--soft);border-color:var(--teacher);color:var(--navy)}
.act.main{background:var(--teacher);color:#FFFFFF}
.act.main:hover{background:var(--navy);border-color:var(--navy);color:#FFFFFF}
.act.slim{min-height:44px;padding:0 16px;font-size:15px}

/* Shapes: used on filters, trend arrows and the skill profile. Each sits beside its words. */
.ic{display:inline-block;flex:none}
.ic-dropped{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid currentColor}
.ic-target{width:11px;height:11px;border:2.5px solid currentColor;border-radius:50%}
.ic-behind{width:11px;height:4px;background:currentColor;border-radius:1px}
.ic-improved{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:8px solid currentColor}
.ic-pass{width:9px;height:9px;background:currentColor}
.ic-borderline{width:10px;height:10px;border:2px solid currentColor;transform:rotate(45deg)}
.ic-all{display:none}

/* Trends: an arrow shape and a word for up, the same and down; grades in a row; reasons as text */
.band .hidebtn{margin:0}
.band .hidebtn .hlink{font:inherit;font-weight:600;background:none;border:0;padding:0 4px;color:var(--navy);cursor:pointer;text-decoration:underline}
.band .hidebtn .hlink[aria-pressed="true"]{text-decoration:none;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--sky)}

/* Target flags (Bushra, 17 November 2026): the flag's height on its pole and its words carry the meaning;
   colour adds urgency. Red two or more under target, amber one under, green on target, blue above. */
.flag{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;white-space:nowrap;vertical-align:middle}
.flagic{flex:none}
.flag-below{color:#8A1C1C}
.flag-close{color:#6B4100}
.flag-on{color:#23560F}
.flag-above{color:var(--teacher)}
.hidden-grade{font-size:15px;color:var(--muted)}
.dir{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:700;white-space:nowrap}
.dir-up{color:var(--teacher)}
.dir-same .ic-behind{width:10px;height:3px}
.grades{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.grades .g{font-size:15px;color:var(--muted)}
.grades .g.now{font-size:18px;font-weight:700;color:var(--ink)}
.why{margin:4px 0 0;font-size:15px;line-height:1.45}
.why li{margin:0}
ul.why{padding-left:20px}
/* One meaning per colour on every screen (Bushra, 19 November 2026): red is "needs you", blue is "improved",
   green is "at the pass line to 9". The words always sit beside the figure, so nothing rests on colour alone. */
.c-need{color:#8A1C1C}
.c-up{color:var(--teacher)}
.c-ok{color:#23560F}
.disc.need{background:#8A1C1C;border-color:#8A1C1C;color:#FFFFFF}
.disc.up{background:var(--sky);border-color:var(--teacher);color:var(--teacher)}
.disc.ok{background:#FFFFFF;border-color:#23560F;color:#23560F}
/* "Need you" sections are red-tinted and "improved" ones blue-tinted; the heading and count always say which. */
.card.need{background:#FBF1F0;border:1px solid #E6C4C0}
.card.need h2{color:#8A1C1C}
.card.need .num{background:#8A1C1C}
.card.blue .num{background:var(--teacher)}
.classnav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.tabs + .classnav{margin-top:14px;padding-top:14px;border-top:1px solid var(--hair)}
.chartbox{margin:6px 0 4px}
.chart{display:block}
.chart text{font-size:14px;fill:var(--muted)}
.chart .grid{stroke:var(--hair);stroke-width:1.5}
.chart .ln-class{fill:none;stroke:var(--teacher);stroke-width:3.5;stroke-linejoin:round}
.chart .pt-class{fill:var(--teacher)}
.chart .ln-student{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-dasharray:7 5}
.chart .pt-student{fill:#FFFFFF;stroke:var(--ink);stroke-width:2.5}
.k-class{display:inline-block;width:26px;height:12px;background:linear-gradient(var(--teacher),var(--teacher)) center/26px 3.5px no-repeat;position:relative}
.k-class::after{content:"";position:absolute;left:8px;top:1px;width:10px;height:10px;border-radius:50%;background:var(--teacher)}
.k-student{display:inline-block;width:26px;height:12px;border-top:2.5px dashed var(--ink);margin-top:12px;position:relative}
.k-student::after{content:"";position:absolute;left:8px;top:-8px;width:9px;height:9px;border:2.5px solid var(--ink);background:#FFFFFF}
.areas{display:grid;grid-template-columns:repeat(auto-fill,minmax(480px,1fr));gap:20px}
.areas .card{margin-bottom:0;min-width:0}
@media (max-width:720px){.areas{grid-template-columns:minmax(0,1fr)}}
.keys{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-bottom:14px}
.key{display:inline-flex;align-items:center;gap:8px;font-size:15px}
.key .lv{width:44px}

/* Levels: letter badges, rising blocks, cells and meters */
.badge{display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;font-size:19px;font-weight:700;color:var(--ink)}
.badge-e{background:#FFFFFF;border:3px solid var(--e)}.badge-d{background:var(--d)}.badge-s{background:var(--s)}.badge-m{background:var(--m);color:#FFFFFF}
.badge-n{background:var(--sand);border:1.5px solid var(--hair);color:var(--muted);font-weight:400}
.pips{display:flex;flex-wrap:wrap;align-items:flex-end;gap:3px}
.pip{display:block;width:12px;border-radius:3px}
.pip-e{background:#FFFFFF;border:2.5px solid var(--e);height:10px}.pip-d{background:var(--d);height:14px}.pip-s{background:var(--s);height:18px}.pip-m{background:var(--m);height:23px}
.lv{position:relative;height:36px;padding-bottom:7px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:15px;font-weight:700;color:var(--ink)}
.lv::after{content:"";position:absolute;left:7px;bottom:5px;height:4px;border-radius:2px}
.lv-e{background:#FFFFFF;box-shadow:inset 0 0 0 2.5px var(--e)}.lv-e::after{width:calc((100% - 14px) * 0.25);background:var(--e)}
.lv-d{background:rgba(230,159,0,0.26)}.lv-d::after{width:calc((100% - 14px) * 0.5);background:var(--d)}
.lv-s{background:rgba(0,158,115,0.16)}.lv-s::after{width:calc((100% - 14px) * 0.75);background:var(--s)}
.lv-m{background:rgba(106,61,154,0.16)}.lv-m::after{width:calc(100% - 14px);background:var(--m)}
.lv-n{padding-bottom:0;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--hair);font-weight:400;background:var(--sand)}.lv-n::after{display:none}
.meter{display:flex;gap:4px}
.meter i{display:block;width:38px;height:14px;border-radius:4px;background:var(--hair)}
.meter.e i:nth-child(-n+1){background:#FFFFFF;border:2.5px solid var(--e)}
.meter.d i:nth-child(-n+2){background:var(--d)}
.meter.s i:nth-child(-n+3){background:var(--s)}
.meter.m i:nth-child(-n+4){background:var(--m)}

/* One-minute brief */
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 18px;font-size:16px;font-weight:600;color:var(--ink);text-decoration:none;border-radius:999px;background:var(--paper);border:1px solid var(--hair)}
.tab:hover{border-color:var(--teacher);color:var(--ink)}
.tab.on{background:var(--ink);border-color:var(--ink);color:#FFFFFF}
.tab .n{min-width:24px;height:24px;padding:0 6px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;color:#FFFFFF;background:var(--ink)}
.tab.on .n{background:#FFFFFF;color:var(--ink)}
.hero{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:30px 0 26px}
.hero h1{font-size:42px;margin-bottom:12px}
.unit{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--sky);border:1px solid var(--line);color:var(--navy);font-weight:600}
.unitline{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.discs{display:flex;gap:22px}
.discs>div{text-align:center;font-size:15px;font-weight:700}
.disc{width:92px;height:92px;margin:0 auto 6px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700;background:var(--paper);border:2px solid var(--teacher)}
.disc.solid{background:var(--teacher);color:#FFFFFF}
.disc.tint{background:var(--sky);color:var(--teacher)}
.item{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--hair)}
.item:last-of-type{border-bottom:0}
.num{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;background:var(--teacher);color:#FFFFFF}
.name{font-size:22px;font-weight:700}
.praise{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.praise:last-of-type{border-bottom:0}
.praise .grow{flex:1;min-width:0}
.fromto{display:flex;align-items:center;gap:6px;font-weight:700}

/* Whole class */
.fb{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 16px;font:inherit;font-size:15px;font-weight:700;color:var(--ink);background:var(--paper);border:2px solid var(--hair);border-radius:999px;cursor:pointer;text-decoration:none}
.fb:hover{border-color:var(--teacher);color:var(--ink)}
.fb.on{color:#FFFFFF;background:var(--teacher);border-color:var(--teacher)}
.fb .n{font-size:17px}
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0}
.sep{width:1px;align-self:stretch;background:var(--hair);margin:0 4px}
.row{display:grid;column-gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--hair)}
.row.head{align-items:end;border-top:0;padding:0 0 8px;font-size:13px;font-weight:700;line-height:1.3}
.row .who-name{font-weight:700}

/* Student profile and evidence */
.studenthead{background:var(--sky);border:1px solid var(--line);border-radius:24px;padding:24px 28px;margin-bottom:24px}
.idrow{display:flex;flex-wrap:wrap;gap:20px;align-items:center}
.avatar{flex:none;width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;background:var(--teacher);color:#FFFFFF}
.tracks{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:20px}
.track{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}
.gc{height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;background:#FFFFFF;color:var(--muted);border:1.5px solid #C9D6E6}
.gc.ok{background:#C9DCF2;color:var(--ink)}
.gc.work{background:var(--teacher);border-color:var(--teacher);color:#FFFFFF}
.gc.target{border:3px dashed var(--ink)}
/* A projected grade: a dotted box and the word "Projected", never the look of a teacher's grade. */
.proj{display:flex;gap:12px;align-items:flex-start;margin-top:12px}
.projbox{flex:none;width:44px;height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;background:#FFFFFF;color:var(--ink);border:3px dotted var(--muted)}
.fact{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.towork{display:block;margin-top:4px}
.sk{display:grid;grid-template-columns:44px minmax(150px,1.3fr) 176px 110px minmax(120px,1fr) 100px;column-gap:14px;align-items:center;padding:10px 0;border-top:1px solid var(--hair)}
.sk a{font-weight:700}
.how{display:inline-block;white-space:nowrap;padding:3px 10px;border-radius:999px;background:var(--sand);border:1px solid var(--hair);font-size:14px;font-weight:700}
.hist{display:grid;grid-template-columns:90px minmax(180px,1.5fr) minmax(140px,1fr) minmax(150px,auto) minmax(160px,auto);column-gap:14px;align-items:center;padding:10px 0;border-top:1px solid var(--hair)}
.ladder{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.lad{padding:16px 18px;border-radius:14px;border:2px solid var(--hair);background:var(--paper)}
.lad.now{border-color:var(--ink);border-width:3px}
.lad.next{border-style:dashed;border-color:var(--teacher);background:var(--sky)}
.lad .t{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:8px}
.quote{margin:10px 0 0;padding:12px 16px;border-radius:12px;background:var(--sand);font-size:17px}
.piece{padding:14px 0;border-top:1px solid var(--hair)}
.piece .top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.subrow{display:grid;grid-template-columns:44px minmax(180px,1fr) minmax(200px,2fr) 110px;column-gap:14px;align-items:center;padding:10px 0;border-top:1px solid var(--hair)}

/* Plan with data and add an assessment */
.stephead{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px}
.step{flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;background:var(--teacher);color:#FFFFFF}
.skill{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(300px,1.5fr) 160px 110px;column-gap:18px;align-items:center;width:100%;padding:14px 18px;margin-bottom:10px;color:var(--ink);background:var(--paper);border:2px solid var(--hair);border-radius:14px;cursor:pointer}
.skill:hover{border-color:var(--teacher)}
.skill:has(input:checked){border-color:var(--teacher);background:var(--sky)}
.skill .tag{visibility:hidden;display:inline-block;padding:3px 10px;border-radius:999px;font-size:14px;font-weight:700;color:#FFFFFF;background:var(--teacher)}
.skill:has(input:checked) .tag{visibility:visible}
.skill:has(input:focus-visible){outline:3px solid var(--teacher);outline-offset:2px}
.groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.grp{padding:18px 20px;border:2px solid var(--hair);border-radius:16px;background:var(--sand)}
.grp .t{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700}
.grp .m{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:8px 0;border-top:1px solid var(--hair)}
.grp details summary{margin-top:10px;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;font-size:15px;font-weight:700;color:var(--teacher);background:var(--paper);border:2px solid var(--teacher);border-radius:10px;cursor:pointer;list-style:none}
.grp details summary::-webkit-details-marker{display:none}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-weight:700;color:var(--ink);background:var(--paper);border:2px solid var(--hair);border-radius:999px;cursor:pointer;text-decoration:none}
.chip:hover{border-color:var(--teacher);color:var(--ink)}
.chip.on,.chip:has(input:checked){background:var(--teacher);border-color:var(--teacher);color:#FFFFFF}
.chip:has(input:focus-visible){outline:3px solid var(--teacher);outline-offset:2px}
.chip .tick{display:none;width:10px;height:6px;border-left:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(-45deg);margin-top:-3px}
.chip:has(input:checked) .tick{display:inline-block}
.lbl{display:block;margin-bottom:6px;font-size:15px;font-weight:700}
.fld{display:block;width:100%;min-height:48px;padding:0 14px;font:inherit;color:var(--ink);background:var(--sand);border:1.5px solid var(--hair);border-radius:10px}
textarea.fld{padding:12px 14px;line-height:1.5}
input[type=file].fld{padding:10px 14px}
select.fld{appearance:auto}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px}
.field{margin-bottom:16px}
.inline{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.inline>.grow{flex:1 1 240px}
.routes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.route{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:20px;color:var(--ink);background:var(--paper);border:2px solid var(--hair);border-radius:16px;cursor:pointer}
.route:hover{border-color:var(--teacher)}
.route:has(input:checked){border-color:var(--teacher);background:var(--sky);box-shadow:inset 0 0 0 2px var(--teacher)}
.route:has(input:focus-visible){outline:3px solid var(--teacher);outline-offset:2px}
.route.off{cursor:default;background:var(--sand);border-style:dashed}
.route.off:hover{border-color:var(--hair)}
.route .ttl{font-size:19px;font-weight:700}
.route .pick{display:none;font-size:14px;font-weight:700;color:var(--teacher)}
.route:has(input:checked) .pick{display:block}
.soon{font-size:14px;font-weight:700;padding:3px 10px;border-radius:999px;border:1.5px dashed var(--ink);background:var(--paper)}
.note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:var(--sky);margin-top:16px}
.note b{flex:none;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--teacher);color:#FFFFFF;font-size:15px}
.seg{display:inline-flex;gap:4px}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.seg span{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9px;font-size:17px;font-weight:700;border:2px solid var(--hair);background:var(--paper)}
.seg input:focus-visible+span{outline:3px solid var(--teacher);outline-offset:2px}
.seg input:checked+.on-e{background:#FFFFFF;border:4px solid var(--e)}
.seg input:checked+.on-d{background:var(--d);border-color:var(--d)}
.seg input:checked+.on-s{background:var(--s);border-color:var(--s)}
.seg input:checked+.on-m{background:var(--m);border-color:var(--m);color:#FFFFFF}
.seg input:checked+.on-n{border-color:var(--ink);border-style:dashed}
.rem{display:flex;gap:10px;align-items:center;padding:6px 0}
.rem::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--teacher)}
.rem form{margin-left:auto}

/* Tables */
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:13px;font-weight:700;line-height:1.3;padding:0 12px 8px 0;vertical-align:bottom;border-bottom:2px solid var(--ink)}
td{padding:12px 12px 12px 0;border-bottom:1px solid var(--hair);vertical-align:top}
table.entry td{vertical-align:middle;padding:8px 12px 8px 0}
table.entry .fld{width:76px;min-height:44px;text-align:center}
tr.click:hover{background:var(--sky)}

/* Department */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));border-top:2px solid var(--ink);border-bottom:1px solid var(--hair);margin:24px 0 36px}
.tile{padding:18px 20px 20px 0;border-right:1px solid var(--hair)}
.tile+.tile{padding-left:20px}
.tile:last-child{border-right:0}
.tile .big{font-size:36px;font-weight:700;line-height:1.2}
.tile.good{background:var(--sky);color:var(--navy);padding-left:20px}
.tile.need{background:#FBF1F0;padding-left:20px}
.tile.ok{background:#F0F7EC;padding-left:20px}
td.cell-need{background:#FBF1F0}
.tile .t{font-size:17px;font-weight:700}
.bar{height:8px;border-radius:4px;background:var(--page);margin-top:6px;max-width:120px;overflow:hidden}
.bar i{display:block;height:100%;border-radius:4px;background:var(--ink)}
.dist{display:flex;gap:3px;height:14px;min-width:180px;max-width:220px}
.dist i,.dist a{display:block;height:100%;border-radius:3px;min-width:6px}
.dist .de{background:#FFFFFF;border:2.5px solid var(--e)}.dist .dd{background:var(--d)}.dist .ds{background:var(--s)}.dist .dm{background:var(--m)}
.sw{display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-2px;margin-right:6px}
.sw.de{background:#FFFFFF;border:2.5px solid var(--e)}.sw.dd{background:var(--d)}.sw.ds{background:var(--s)}.sw.dm{background:var(--m)}
.cname{font-size:22px;font-weight:700}
.upn{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:700;color:var(--teacher)}
.copybox{width:100%;min-height:48px;padding:0 14px;font:inherit;font-size:15px;background:var(--sand);border:2px dashed var(--teacher);border-radius:10px}

@media (max-width:720px){
  .band header,.wrap{padding-left:16px;padding-right:16px}
  h1,.hero h1{font-size:30px}
  .discs{gap:12px}.disc{width:72px;height:72px;font-size:24px}
  .tile,.tile+.tile{padding:14px 0;border-right:0;border-bottom:1px solid var(--hair)}
  .tile.good,.tile.need,.tile.ok{padding:14px}
}
@media print{.band,.actions,.filters{display:none}body{background:#FFFFFF}.card{box-shadow:none;border:1px solid var(--hair)}}

details.inl{display:inline-block}details.inl>summary{list-style:none;display:inline-flex;align-items:center}details.inl>summary::-webkit-details-marker{display:none}

/* Getting started: a step is marked by a shape and the words Done or To do, never colour alone */
.todo{list-style:none;margin:14px 0 18px;padding:0}
.todo li{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-top:1px solid var(--line)}
.mark{flex:none;width:24px;height:24px;margin-top:1px;border:2px solid var(--muted);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--paper)}
.mark.done{border-radius:6px;background:var(--teacher);border-color:var(--teacher)}
.mark.done::after{content:"";width:11px;height:6px;border-left:3px solid #FFFFFF;border-bottom:3px solid #FFFFFF;transform:rotate(-45deg);margin-top:-3px}
.stepstate{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:var(--sky);border:1px solid var(--line)}

/* Support session: a bar on every screen, light on purpose (no dark blocks) */
.supportbar{background:var(--sand);border-bottom:2px solid var(--ink)}
.supportbar>div{max-width:1240px;margin:0 auto;padding:10px 40px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px}
.supportbar form{margin:0}
.code{display:inline-block;padding:10px 18px;font-size:28px;font-weight:700;letter-spacing:0.08em;background:var(--sand);border:2px dashed var(--teacher);border-radius:10px}

/* Foot of every screen: the privacy notice and the terms */
.foot{max-width:1240px;margin:0 auto;padding:8px 40px 36px;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:15px}
@media print{.foot,.supportbar{display:none}}
@media (max-width:720px){.foot,.supportbar>div{padding-left:16px;padding-right:16px}}
/* Reporting a problem. The button floats over the page, so the foot of the page leaves room for it. */
.fabs{position:fixed;right:24px;bottom:24px;z-index:20;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:calc(100vw - 32px)}
.reportfab{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;font-weight:700;text-decoration:none;color:var(--navy);background:var(--paper);border:1.5px solid var(--teacher);border-radius:999px;box-shadow:0 4px 14px rgba(27,35,51,.18)}
.reportfab:hover{background:var(--sky);color:var(--navy)}
body:has(.fabs) .foot{padding-bottom:96px}
@media print{.fabs{display:none}}
@media (max-width:720px){.fabs{right:16px;bottom:16px}.reportfab{min-height:44px;padding:0 16px;font-size:15px}}
.notice{margin:4px 0 20px;padding:16px 20px;background:var(--sky);border:1px solid var(--line);border-radius:12px}
.notice h2{font-size:19px;color:var(--navy);margin-bottom:6px}
.notice p:last-child{margin-bottom:0}
.facts{display:grid;grid-template-columns:minmax(140px,max-content) 1fr;gap:8px 20px;margin:0 0 16px}
.facts dt{font-weight:700}
.facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.frames{margin:0;padding:12px 14px;background:var(--sand);border:1px solid var(--hair);border-radius:10px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.shot{display:block;max-width:100%;height:auto;border:1px solid var(--hair);border-radius:10px}
@media (max-width:720px){.facts{grid-template-columns:1fr;gap:2px}.facts dd{margin-bottom:10px}}

/* The markbook on the whole class screen (Bushra, 19 November 2026). A result's words and flag shape carry its meaning; the tint only adds to it. */
.markbook th a{font-weight:700}
.markbook th[scope=row] a.who-name{font-size:17px;line-height:1.4}
.markbook td,.markbook th[scope=row]{padding:10px 12px 10px 0;vertical-align:top}
.markbook th[scope=row]{border-bottom:1px solid var(--hair);font-weight:400;text-align:left}
.markbook td.mb{padding:0;position:relative;background:#F1EEE7}
.markbook a.mbl{display:block;min-height:44px;box-sizing:border-box;padding:8px 26px 8px 10px;color:var(--ink);text-decoration:none}
.markbook a.mbl:hover{text-decoration:underline}
.mbmark{display:block;font-size:16px;font-weight:500}
.mbgrade{display:block;font-size:13px}
.mbsym{position:absolute;top:4px;right:6px;font-size:13px;line-height:1}
.markbook td.mb-below{background:#FBF1F0}
.markbook td.mb-on{background:#FBF3DF}
.markbook td.mb-above{background:#F0F7EC}
.markbook td.mb-none{color:var(--muted)}
/* Below, on and above target: a shape, the words (on hover and for screen readers) and a tint, so colour is never the only signal. */
.cmp{display:inline-block;font-size:16px;font-weight:700;white-space:nowrap;padding:2px 8px;border-radius:6px}
.cmp-below{color:#8A1C1C;background:#FBE4E1}
.cmp-on{color:#6B4100;background:#FBEBC4}
.cmp-above{color:#23560F;background:#DDEFD3}
/* Level bars on class insights: the same segments as the classes table on the department screen, with the letter and count inside each. */
.dist.wide{height:44px;min-width:0;max-width:none;margin:34px 0 12px}
.dist a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:44px;min-width:2.75rem;padding:0 4px;white-space:nowrap;line-height:1;border-radius:3px;font-size:16px;font-weight:700;color:var(--ink);text-decoration:none;position:relative}
.lvbar p{margin-top:10px}
.dist a.dm{color:#FFFFFF}
.dist a:hover{text-decoration:underline}
.dist a.here{outline:3px solid var(--ink);outline-offset:2px}
.dist .arrow{position:absolute;top:-24px;left:50%;transform:translateX(-50%);font-size:18px;line-height:1;color:var(--ink)}
.here-words{margin:0 0 6px}
.bflag{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#8A1C1C;white-space:nowrap}
.pip-n{background:var(--paper);border:2px dashed var(--muted);height:8px}

/* Class analysis of one assessment: a part, its average, and a spread of students across three mark bands. Each band has a count and words, so the fill is only a hint. */
.apart{padding:12px 14px;margin:0 0 14px;border:1px solid var(--hair);border-radius:10px}
.apart h3{margin:0 0 6px;font-size:18px}
.apart.weak{border:2px dashed var(--ink);background:var(--sand)}
.weakmark{font-size:14px;font-weight:700}
.spread{display:flex;gap:4px;margin:10px 0 2px;flex-wrap:wrap}
.spread a.seg{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:44px;padding:0 10px;border:1.5px solid var(--ink);border-radius:6px;background:var(--sky);color:var(--ink);text-decoration:none;font-size:16px;white-space:nowrap}
.spread a.seg:nth-child(1){background:#FBF1F0}
.spread a.seg:nth-child(3){background:#F0F7EC}
.spread a.seg:hover{text-decoration:underline}
.spread a.seg.on{outline:3px solid var(--ink);outline-offset:2px}
tr.chosen{background:var(--sky)}
ul.plain{list-style:none;margin:0;padding:0}

/* Student reports (Bushra, 24 November 2026). The report is one A4 page that speaks to the student; printing (or saving as PDF from the print window) leaves only the report, one page per student. */
.sheet{background:var(--paper);border:1px solid var(--hair);border-radius:24px;padding:26px 30px;margin-bottom:24px}
.sheet h2{font-size:24px;color:var(--navy);margin-bottom:10px}
.sheet h3{font-size:19px;color:var(--navy);margin:18px 0 6px}
.sheet section p{margin:0 0 8px}
.sheethead .facts{margin-bottom:4px}
.sheettable{width:100%;border-collapse:collapse}
.sheettable th,.sheettable td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
.lvrow{display:inline-flex;align-items:center;gap:8px;margin-right:14px}
.lvrow .meter i{width:22px;height:12px}
.workon{margin:0 0 10px}
.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
ul.ticks{list-style:none;margin:0;padding:0}
ul.ticks li{display:flex;gap:10px;align-items:flex-start;margin-bottom:6px}
ul.ticks .box{flex:none;width:20px;height:20px;margin-top:3px;border:2px solid var(--ink);border-radius:4px}
.levelkey{display:flex;flex-wrap:wrap;align-items:center;gap:8px 4px;margin-top:18px;padding-top:12px;border-top:1px solid var(--hair)}
.levelkey .b{margin-right:10px}
.tipbox{margin:8px 0 18px;padding:12px 16px;background:var(--sky);border:1px solid var(--line);border-radius:12px}
.tipbox p{margin:0 0 8px}
.rstatus{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.rnav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:0 0 18px}
.formrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:14px}
@media print{
  @page{size:A4;margin:12mm}
  body:has(.sheet){font-size:10.5pt;line-height:1.35}
  body:has(.sheet) main.wrap{padding:0;margin:0;max-width:none}
  body:has(.sheet) main>:not(.sheet){display:none}
  .noprint{display:none}
  .sheet{border:0;border-radius:0;padding:0;margin:0;break-after:page;page-break-after:always;break-inside:avoid-page}
  .sheet:last-of-type{break-after:auto;page-break-after:auto}
  .sheet h2{font-size:16pt;margin-bottom:6px}
  .sheet h3{font-size:12.5pt;margin:10px 0 4px}
  .sheettable th,.sheettable td{padding:3px 6px}
  .sheet .badge{width:22px;height:22px;font-size:11pt;border-radius:6px}
  .sheet .meter i{width:16px;height:9px}
}
