/* Versed Teach — same family as Versed Play: dark, lime, pink, Unbounded + Space Grotesk. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0E0D17; --bg2: #16152A; --card: #1E1C33; --card2: #262445; --line: #2E2B4A; --text: #F4F2FF; --muted: #9A97B8; --dim: #5E5B7E;
  --lime: #C6FF3D; --pink: #FF4FA3; --cyan: #3DF2FF; --amber: #FFB020; --violet: #8B7BFF; --green: #3DFF9A; --red: #FF5C5C; --ink: #0E0D17;
  --radius: 18px; --shadow: 0 10px 30px rgba(0,0,0,.35); --pop: 4px 4px 0 var(--pink);
  --ease: cubic-bezier(.16,1,.3,1);
  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text); min-height: 100dvh; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 40% at 80% -10%, rgba(139,123,255,.25), transparent 60%), radial-gradient(50% 35% at 0% 100%, rgba(198,255,61,.12), transparent 60%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cyan); }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.01em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: .5rem 1rem; border-radius: 10px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 14px; font-weight: 700; transition: transform .12s var(--ease), box-shadow .12s, background .15s; user-select: none; white-space: nowrap; border: 2px solid transparent; text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: var(--pop); }
.btn-primary:hover { background: #d6ff6b; }
.btn-dark { background: var(--text); color: var(--ink); border-color: var(--text); box-shadow: var(--pop); }
.btn-coral { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 4px 4px 0 var(--lime); }
.btn-coral:hover { background: #ff6cb3; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-ghost:active { box-shadow: none; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255,92,92,.4); }
.btn-danger:hover { background: rgba(255,92,92,.12); }
.btn-danger:active { box-shadow: none; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .4rem .6rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1; }
.btn-icon:hover { color: var(--text); border-color: var(--violet); }
.btn-icon:disabled { opacity: .3; }

.input { width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg2); outline: none; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15); }
textarea.input { min-height: 8rem; resize: vertical; font-family: var(--body); }
select.input { appearance: none; }
label.field { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin: .9rem 0 .35rem; text-transform: uppercase; letter-spacing: .08em; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }
.cols { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.err { color: var(--red); font-weight: 600; font-size: .9rem; min-height: 1.3em; margin-top: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(198,255,61,.15); color: var(--lime); white-space: nowrap; }
.pill.pink { background: rgba(255,79,163,.18); color: var(--pink); }
.pill.amber { background: rgba(255,176,32,.18); color: var(--amber); }
.pill.violet { background: rgba(139,123,255,.2); color: var(--violet); }
.pill.dim { background: var(--card2); color: var(--muted); }
.pill button { color: inherit; font-size: .9em; opacity: .7; padding: 0 0 0 .2rem; }
.pill button:hover { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; color: var(--text); font-family: var(--display); font-size: .95rem; letter-spacing: .02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1rem; box-shadow: 2px 2px 0 var(--pink); }
.brand .teal { color: var(--lime); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; max-width: 1180px; margin: 0 auto; }
.nav { display: flex; gap: .25rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; padding: .45rem .8rem; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--ink); background: var(--lime); }
.nav .btn-primary.btn-sm { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav a.ext { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: .5rem 1.25rem 2rem; }
.has-strip { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

/* promo strip — small, static, bottom of page; entries live in /strip.json */
.strip-slot { position: fixed; left: 0; right: 0; bottom: 0; height: calc(44px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 0 .75rem; z-index: 50; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.strip-slot .strip-label { flex: none; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.strip-house { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--muted); font-size: .78rem; max-width: 640px; min-width: 0; }
.strip-house img { width: 24px; height: 24px; flex: none; image-rendering: pixelated; object-fit: contain; }
.strip-house .strip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-house .strip-cta { flex: none; color: var(--lime); font-weight: 700; white-space: nowrap; }
.strip-house:hover .strip-text { color: var(--text); }

.toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: 90vw; }

/* page headers */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 1.25rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.page-head h1 span { color: var(--lime); }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.crumb { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .25rem; margin-bottom: 1rem; }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .85rem; padding: .45rem .9rem; border-radius: 9px; }
.tabs a.active { background: var(--card2); color: var(--text); }

/* landing */
.hero { padding: 3rem 0 2rem; max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; }
.hero h1 span { color: var(--lime); }
.hero .lines { display: grid; gap: .5rem; font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero .lines b { color: var(--text); }
.hero .lines li { list-style: none; display: flex; gap: .75rem; align-items: flex-start; }
.hero .lines li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-top: .5em; box-shadow: 2px 2px 0 var(--pink); }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .fine { margin-top: 1.25rem; font-size: .85rem; color: var(--dim); }
.features { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0 2rem; }
.features .card { padding: 1rem 1.1rem; }
.features .card b { display: block; font-family: var(--display); font-size: .85rem; margin-bottom: .3rem; }
.features .card span { color: var(--muted); font-size: .88rem; }

/* class list */
.class-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.class-card { display: flex; flex-direction: column; gap: .5rem; }
.class-card a.title { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.class-card a.title:hover { color: var(--lime); }
.class-card .meta { color: var(--muted); font-size: .85rem; }
.class-card .tools { display: flex; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.class-card .tools .sp { flex: 1; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty b { display: block; color: var(--text); font-family: var(--display); margin-bottom: .5rem; }

/* grid */
.grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-height: calc(100dvh - 240px); }
table.grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-variant-numeric: tabular-nums; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; text-align: center; white-space: nowrap; }
table.grid thead th { position: sticky; top: 0; background: var(--card2); z-index: 3; font-size: .8rem; font-weight: 700; padding: .5rem .5rem; vertical-align: bottom; }
table.grid thead th.corner { left: 0; z-index: 4; text-align: left; }
table.grid tbody th { position: sticky; left: 0; background: var(--card); z-index: 2; text-align: left; padding: 0 .75rem; font-weight: 700; min-width: 160px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.grid tbody th a { color: var(--text); text-decoration: none; }
table.grid tbody th a:hover { color: var(--lime); }
table.grid tbody th .flg { display: inline-block; margin-left: .35rem; font-size: .65rem; color: var(--pink); vertical-align: middle; }
table.grid tbody th .flg.up { color: var(--green); }
table.grid tbody th .flg.custom { color: var(--violet); }
table.grid tfoot th, table.grid tfoot td { position: sticky; bottom: 0; background: var(--card2); z-index: 2; font-size: .8rem; color: var(--muted); padding: .45rem .5rem; border-bottom: 0; }
table.grid tfoot th { left: 0; z-index: 3; text-align: left; }
table.grid th.a { min-width: 96px; }
table.grid th.a button { color: var(--text); font-weight: 700; padding: .15rem .35rem; border-radius: 8px; display: block; width: 100%; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid th.a button:hover { background: rgba(198,255,61,.12); color: var(--lime); }
table.grid th.a small { display: block; color: var(--dim); font-weight: 600; font-size: .68rem; }
table.grid th.add button { color: var(--lime); font-weight: 800; padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
table.grid th.add button:hover { background: rgba(198,255,61,.12); }
table.grid td.cell { width: 96px; }
table.grid td.cell input { width: 100%; height: 40px; text-align: center; background: transparent; border: 0; outline: none; padding: 0 .4rem; color: var(--text); font-weight: 600; }
table.grid td.cell input:focus { background: rgba(198,255,61,.12); box-shadow: inset 0 0 0 2px var(--lime); }
table.grid td.cell input.over { color: var(--amber); }
table.grid td.cell input::placeholder { color: var(--line); }
table.grid td.avg { font-weight: 800; padding: 0 .75rem; min-width: 84px; font-family: var(--display); font-size: .85rem; }
table.grid td.avg.green, .band.green { color: var(--green); }
table.grid td.avg.amber, .band.amber { color: var(--amber); }
table.grid td.avg.pink, .band.pink { color: var(--pink); }
table.grid td.avg.none, .band.none { color: var(--dim); font-weight: 500; }
table.grid th.avg-h { min-width: 84px; }
.grid-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; font-size: .8rem; color: var(--dim); }
.legend { display: inline-flex; gap: .8rem; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }

/* overview */
.ov { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ov .card h2 { font-size: .95rem; font-weight: 800; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.ov .card h2 .n { margin-left: auto; font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.ov ul { list-style: none; display: grid; gap: .4rem; }
.ov li { display: flex; align-items: center; gap: .6rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .9rem; }
.ov li a { color: var(--text); text-decoration: none; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov li a:hover { color: var(--lime); }
.ov li .d { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov .none { color: var(--dim); font-size: .88rem; }
.ov .slip h2 { color: var(--pink); } .ov .impr h2 { color: var(--green); } .ov .miss h2 { color: var(--amber); }

/* student */
.stu { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 800px) { .stu { grid-template-columns: 1fr; } }
.stu h2 { font-size: .95rem; font-weight: 800; margin-bottom: .75rem; }
.bigpct { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.spark { width: 100%; height: 110px; display: block; }
.spark .l { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark .a { fill: url(#sg); }
.spark .g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.spark .p { fill: var(--lime); }
.spark .p.last { fill: var(--pink); }
.spark .t { fill: var(--dim); font-size: 9px; font-family: var(--body); }
.scores { list-style: none; display: grid; gap: .35rem; }
.scores li { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .9rem; }
.scores li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.scores li .nm small { display: block; color: var(--dim); font-weight: 500; font-size: .75rem; }
.scores li .sc { font-variant-numeric: tabular-nums; color: var(--muted); }
.scores li .pc { font-weight: 800; font-family: var(--display); font-size: .8rem; min-width: 3.5rem; text-align: right; }
.flags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.flags .pill.off { background: var(--card2); color: var(--muted); cursor: pointer; }
.flags .pill.off:hover { color: var(--text); }
.flags .pill.on { cursor: pointer; }
.notes { list-style: none; display: grid; gap: .5rem; margin-top: .75rem; }
.notes li { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes li time { display: flex; justify-content: space-between; gap: .5rem; color: var(--dim); font-size: .72rem; margin-bottom: .25rem; }
.notes li time button { color: var(--dim); font-size: .75rem; }
.notes li time button:hover { color: var(--red); }

/* settings */
.set { display: grid; gap: 1rem; max-width: 720px; }
.set h2 { font-size: .95rem; font-weight: 800; margin-bottom: .25rem; }
.set .desc { color: var(--muted); font-size: .88rem; margin-bottom: .75rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.set input[type=number] { max-width: 120px; }
.danger { border-color: rgba(255,92,92,.35); }

/* dialogs */
.dlg { margin: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow); }
.dlg.wide { width: min(760px, calc(100vw - 2rem)); }
.dlg::backdrop { background: rgba(5,4,12,.7); backdrop-filter: blur(3px); }
.dlg form, .dlg .body { padding: 1.25rem; }
.dlg h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.dlg .desc { color: var(--muted); font-size: .9rem; }
.dlg .foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.dlg .foot .left { margin-right: auto; }
.dlg label.field:first-of-type { margin-top: 1rem; }
.dlg .file { display: block; margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.dlg input[type=file] { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.prev { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: .75rem; }
.prev table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.prev th, .prev td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prev th { position: sticky; top: 0; background: var(--card2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prev td.num { text-align: right; font-variant-numeric: tabular-nums; }
.prev .new { color: var(--lime); font-weight: 700; }
.prev .skip { color: var(--dim); }
.check { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); }

@media (max-width: 640px) {
  .topbar { padding: .75rem 1rem; }
  /* Four things in the bar no longer fit on a 375 px phone, so the nav drops under the brand
     rather than pushing the whole page sideways. */
  .topbar { flex-wrap: wrap; row-gap: .35rem; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .wrap { padding: .25rem .75rem 2rem; }
  .nav a { padding: .4rem .6rem; font-size: .85rem; }
  .nav a.ext { display: none; }
  .hero { padding: 1.5rem 0 1rem; }
  table.grid tbody th { min-width: 120px; max-width: 150px; font-size: .85rem; }
  table.grid td.cell { width: 72px; }
  .grid-wrap { max-height: none; }
  .strip-house .strip-cta { display: none; }
}

/* print — one class grid on A4 */
@page { size: landscape; margin: 12mm; } /* orientation only, so A4 and Letter both work */
@media print {
  html, body { background: #fff !important; color: #000 !important; background-image: none !important; }
  .topbar, .nav, .actions, .tabs, .strip-slot, .grid-foot, .skip, .toast, .crumb, .no-print, .fab, .banner, .site-foot, .dlg { display: none !important; }
  .has-strip { padding-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
  .page-head { margin: 0 0 6mm; }
  .page-head h1 { color: #000; font-size: 16pt; }
  .page-head h1 span { color: #000; }
  .page-head .sub { color: #444; }
  .grid-wrap { overflow: visible; border: 0; border-radius: 0; background: none; max-height: none; }
  table.grid { width: 100%; font-size: 9pt; border: 1px solid #000; }
  table.grid th, table.grid td { border: 1px solid #000 !important; position: static !important; background: #fff !important; color: #000 !important; padding: 2pt 4pt; }
  table.grid thead th { background: #eee !important; }
  table.grid th.add, table.grid th.a button small { display: none; }
  table.grid th.a button { color: #000; padding: 0; }
  table.grid td.cell input { height: auto; color: #000; font-weight: 500; }
  table.grid td.avg { font-family: var(--body); color: #000 !important; }
  table.grid td.avg.pink { font-weight: 800; text-decoration: underline; }
  table.grid tbody th .flg { display: none; }
}


/* ---------- round 2: mark, pixel decoration, footer ---------- */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.brand .logo { width: 30px; height: 30px; display: block; flex: none; border-radius: 0; background: none; box-shadow: none; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(2px 2px 0 var(--pink)); }
.ico svg, .btn svg, .pill .ico svg { width: 18px; height: 18px; vertical-align: -4px; }
.btn-icon.ico { padding: .35rem .45rem; }
.btn-icon.ico svg { width: 16px; height: 16px; vertical-align: -3px; }
.site-foot { max-width: 1180px; margin: 2rem auto 0; padding: 1rem 1.25rem 1.5rem; color: var(--dim); font-size: .8rem; text-align: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot span { color: var(--text); }
.foot-deco { display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; margin-bottom: .6rem; opacity: .9; }
.foot-deco img { image-rendering: pixelated; height: 34px; width: auto; }
.hero { position: relative; }
.hero-desk { position: absolute; right: -180px; top: 2rem; width: 222px; height: auto; opacity: .95; pointer-events: none; }
@media (max-width: 1100px) { .hero-desk { position: static; display: block; width: 150px; margin-bottom: .5rem; } }
.features .card img { display: block; height: 30px; width: auto; margin-bottom: .6rem; }
.empty img { display: block; margin: 0 auto .75rem; height: auto; width: 68px; }
.tabs a .n { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--card2); color: var(--muted); font-size: .72rem; margin-left: .25rem; }
.tabs a.active .n { background: var(--lime); color: var(--ink); }

/* topbar account */
.account { display: inline-flex; align-items: center; margin-left: .25rem; }
.acct-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .55rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .82rem; max-width: 220px; }
.acct-btn:hover { border-color: var(--violet); }
.acct-btn svg { width: 16px; height: 16px; flex: none; }
.acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--green); } .dot.busy { background: var(--amber); } .dot.bad { background: var(--red); } .dot.off { background: var(--dim); }
.acct-menu h2 { overflow-wrap: anywhere; }
.sync-line { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; margin: .35rem 0 .9rem; }
.menu-list { display: grid; gap: .5rem; }
.menu-list .btn { justify-content: flex-start; }

/* banner */
.banner { max-width: 1180px; margin: .25rem auto .5rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, rgba(198,255,61,.12), rgba(139,123,255,.12)); font-size: .88rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner[hidden] { display: none; }
.banner b { color: var(--lime); }
.banner.sample { background: linear-gradient(90deg, rgba(255,79,163,.16), rgba(139,123,255,.12)); border-color: rgba(255,79,163,.4); }
.banner.sample b { color: var(--pink); }
.banner-act { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .banner { margin: .25rem .75rem .5rem; } }

/* sign in / sign up */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px); gap: 2rem; align-items: start; padding: 2rem 0 1rem; }
.auth-wrap.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-intro h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.auth-intro h1 span { color: var(--lime); }
.auth-intro .lines { display: grid; gap: .5rem; font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }
.auth-intro .lines b { color: var(--text); }
.auth-intro .lines li { list-style: none; display: flex; gap: .75rem; align-items: flex-start; }
.auth-intro .lines li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-top: .5em; box-shadow: 2px 2px 0 var(--pink); }
.auth-intro .desk { display: block; width: 166px; height: auto; margin-bottom: 1rem; }
.auth-card { padding: 1.5rem; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.15rem; font-weight: 800; }
.auth-card .desc { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.auth-card label.field:first-of-type { margin-top: 1rem; }
.auth-card .btn-block { margin-top: .75rem; }
.auth-card .check { align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.auth-card .check input { flex: none; margin-top: .15rem; }
.auth-alt { margin-top: 1rem; font-size: .85rem; color: var(--muted); text-align: center; }
.auth-card .social-wrap { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.auth-card .social-wrap .btn-block { margin-top: 0; }
.auth-card .social-wrap .btn-block[hidden] { display: none; } /* .btn's inline-flex would beat the hidden attribute */
.auth-card .social-wrap .auth-or { margin-top: .5rem; }
.gmark, .amark { flex: none; }
.social-note { margin-top: 0; text-align: center; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1rem; } .auth-intro .desk { width: 120px; } }

/* notes */
.notes-card { margin-bottom: 1rem; border-color: rgba(198,255,61,.35); }
.notes-card h2 { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 800; color: var(--lime); }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.notes-head h2 { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 0; }
.notes-head h2 svg { width: 18px; height: 18px; flex: none; }
.search { position: relative; display: block; flex: 1 1 200px; max-width: 360px; }
.search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; display: inline-flex; }
.search .input { padding: .55rem .9rem .55rem 2.3rem; border-radius: 12px; }
.notes li.none { background: none; border: 0; padding: .25rem 0; color: var(--dim); font-size: .88rem; }
.notes li time a { color: var(--text); text-decoration: none; font-weight: 700; }
.notes li time a:hover { color: var(--lime); }
.notes.big li { font-size: .95rem; padding: .75rem 1rem; }
.notes.big li time { font-size: .78rem; margin-bottom: .4rem; }
.notes.big li time .pill { font-size: .66rem; padding: .1rem .5rem; vertical-align: 1px; }
.notes-page { max-width: 820px; }
.notes-tools { display: flex; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex-wrap: wrap; }
.notes-page .notes { margin-top: 0; margin-bottom: .75rem; }
table.grid tbody th { display: flex; align-items: center; gap: .35rem; height: 40px; border-right: 1px solid var(--line); }
table.grid tbody th .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid tbody th .flg svg { width: 10px; height: 10px; vertical-align: 0; }
table.grid tbody th .qn { flex: none; display: inline-flex; align-items: center; gap: .15rem; color: var(--dim); padding: .2rem .3rem; border-radius: 8px; font-size: .7rem; font-weight: 700; opacity: .55; }
table.grid tbody th .qn svg { width: 15px; height: 15px; }
table.grid tbody th .qn.has, table.grid tbody th:hover .qn, table.grid tbody th .qn:focus-visible { opacity: 1; }
table.grid tbody th .qn.has { color: var(--lime); }
table.grid tbody th .qn:hover { background: rgba(198,255,61,.14); color: var(--lime); }
@media print { table.grid tbody th { display: table-cell; } table.grid tbody th .qn { display: none; } }

/* privacy page */
.prose { max-width: 760px; font-size: .98rem; }
.prose h2 { font-size: 1.05rem; font-weight: 800; margin: 1.75rem 0 .6rem; color: var(--lime); }
.prose p, .prose ul { color: var(--muted); margin-bottom: .75rem; line-height: 1.55; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose b { color: var(--text); }


/* ---------- round 3: quick note, contacts, accommodations, print record ---------- */
.fab { position: fixed; right: 16px; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: .35rem; padding: .8rem 1.1rem .8rem .9rem; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-family: var(--display); font-size: .85rem; box-shadow: 4px 4px 0 var(--pink), 0 10px 30px rgba(0,0,0,.45); border: 2px solid var(--lime); }
.fab svg { width: 20px; height: 20px; }
.fab:hover { background: #d6ff6b; }
.fab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
@media (min-width: 900px) { .fab { right: max(16px, calc((100vw - 1180px) / 2 + 16px)); } }

.qn-pick .search { max-width: none; margin-top: .75rem; }
.qn-lbl { font-size: .72rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin: .9rem 0 .35rem; }
.qn-recent { display: flex; gap: .4rem; flex-wrap: wrap; }
.qn-recent .pill { cursor: pointer; font-size: .82rem; padding: .35rem .75rem; color: var(--text); background: var(--card2); border: 1px solid var(--line); }
.qn-recent .pill:hover { border-color: var(--lime); color: var(--lime); }
.qn-list { display: grid; gap: .25rem; max-height: min(44dvh, 320px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .3rem; background: var(--bg2); }
.qn-list button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: .6rem .75rem; border-radius: 9px; font-weight: 600; color: var(--text); font-size: .95rem; }
.qn-list button:hover, .qn-list button:focus-visible { background: rgba(198,255,61,.14); color: var(--lime); }
.qn-list button small { color: var(--dim); font-size: .75rem; font-weight: 700; }
.qn-line .input { margin-top: .9rem; font-size: 1.05rem; }
.qn-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .75rem; }
.tag { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; line-height: 1.2; }
.tag.off { background: var(--card2); color: var(--muted); border-color: var(--line); cursor: pointer; }
.tag.off:hover { color: var(--text); border-color: var(--violet); }
.tag.behaviour { background: rgba(255,176,32,.18); color: var(--amber); }
.tag.effort { background: rgba(61,242,255,.16); color: var(--cyan); }
.tag.wellbeing { background: rgba(139,123,255,.22); color: var(--violet); }
.tag.parent { background: rgba(255,79,163,.18); color: var(--pink); }
.tag.accommodation { background: rgba(61,255,154,.16); color: var(--green); }
.tag.praise { background: rgba(198,255,61,.18); color: var(--lime); }
.tag.off.behaviour, .tag.off.effort, .tag.off.wellbeing, .tag.off.parent, .tag.off.accommodation, .tag.off.praise { background: var(--card2); color: var(--muted); }
.notes li .tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.notes li .tags .tag { font-size: .66rem; padding: .15rem .5rem; }

.tabs a .n.due { background: rgba(255,79,163,.25); color: var(--pink); }
.tabs a.active .n.due { background: var(--pink); color: #fff; }
.ov .due h2 { color: var(--pink); }
.ov li .d.over { color: var(--pink); font-weight: 700; }

/* parent contacts */
.contacts { list-style: none; display: grid; gap: .5rem; }
.contacts li { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; }
.contacts li.none { background: none; border: 0; padding: .25rem 0; color: var(--dim); font-size: .88rem; }
.contacts li.done { opacity: .7; }
.contacts .c-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.contacts .c-head .ico { display: inline-flex; color: var(--lime); }
.contacts .c-head .ico svg { width: 16px; height: 16px; }
.contacts .c-head b { color: var(--text); }
.contacts .c-head .sp { flex: 1; }
.contacts .c-head button, .contacts .c-fu button { color: var(--dim); font-size: .78rem; font-weight: 700; }
.contacts .c-head button:hover, .contacts .c-fu button:hover { color: var(--lime); }
.contacts p { margin-top: .35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.contacts .c-fu { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; font-size: .8rem; color: var(--amber); font-weight: 700; }
.contacts .c-fu svg { width: 15px; height: 15px; }
.contacts .c-fu.over { color: var(--pink); }
.contacts .c-fu button { margin-left: auto; }
.contacts li.done .c-fu { color: var(--dim); }
.flags .pill button { display: inline-flex; padding: 0 0 0 .3rem; }
.flags .pill button svg { width: 12px; height: 12px; }
.flags .pill.off svg { width: 12px; height: 12px; }

/* accommodations tick sheet */
.acc-tools { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.acc-day { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.acc-day .input { width: auto; padding: .45rem .7rem; border-radius: 10px; font-weight: 700; }
.acc-day .btn-icon.ico { display: inline-flex; padding: .5rem; text-decoration: none; }
.acc-hint { color: var(--muted); font-size: .88rem; margin-bottom: .75rem; }
.acc-hint b { color: var(--text); }
.acc-sheet { display: grid; gap: .5rem; }
.acc-row { display: grid; grid-template-columns: minmax(140px, 200px) 1fr auto; gap: .6rem 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; }
.acc-row.done { border-color: rgba(198,255,61,.35); }
.acc-row .nm { color: var(--text); text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .nm:hover { color: var(--lime); }
.acc-cells { display: flex; gap: .4rem; flex-wrap: wrap; }
.acc-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: .82rem; font-weight: 700; }
.acc-chip small { font-weight: 600; color: var(--dim); font-size: .7rem; }
.acc-chip svg { width: 14px; height: 14px; }
.acc-chip:hover { border-color: var(--violet); color: var(--text); }
.acc-chip.p { background: rgba(198,255,61,.14); border-color: rgba(198,255,61,.5); color: var(--lime); }
.acc-chip.p small { color: var(--lime); opacity: .8; }
.acc-chip.n { background: rgba(139,123,255,.16); border-color: rgba(139,123,255,.5); color: var(--violet); }
.acc-chip.n small { color: var(--violet); }
.acc-chip.a { background: rgba(255,79,163,.14); border-color: rgba(255,79,163,.5); color: var(--pink); }
.acc-chip.a small { color: var(--pink); }
.acc-quick { display: flex; gap: .4rem; }
.acc-quick .btn svg { width: 16px; height: 16px; }
.acc-week table.grid th.a { min-width: 64px; font-size: .72rem; line-height: 1.2; }
.acc-week table.grid th.a.cur { color: var(--lime); }
.acc-week table.grid tbody th { display: table-cell; height: auto; padding: .35rem .75rem; }
.acc-week table.grid td.wk button { width: 100%; height: 40px; color: var(--dim); font-weight: 700; font-size: .78rem; }
.acc-week table.grid td.wk button svg { width: 18px; height: 18px; vertical-align: middle; }
.acc-week table.grid td.wk.p button { color: var(--lime); }
.acc-week table.grid td.wk.a button { color: var(--pink); }
.acc-week table.grid td.wk.n button { color: var(--violet); }
.acc-week table.grid td.wk.mixed button { color: var(--amber); }
.acc-week table.grid td.wk button:hover { background: rgba(198,255,61,.12); }
@media (max-width: 640px) {
  .acc-row { grid-template-columns: 1fr; gap: .5rem; }
  .tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; padding: .45rem .7rem; }
  .acc-quick .btn { flex: 1; justify-content: center; }
  .fab { right: 12px; }
  .page-head .actions .btn-sm { padding: .45rem .7rem; font-size: .8rem; }
}

/* goals: the block, the one-tap capture row and the hand-drawn progress chart */
.goals { display: grid; gap: .9rem; }
.goals.arch { margin-top: 1rem; }
.none-goals { color: var(--muted); font-size: .9rem; }
.goal { border: 1px solid var(--line); border-radius: 16px; padding: .9rem; background: var(--bg2); }
.goal.met { border-color: rgba(61,255,154,.4); }
.goal.arch { opacity: .72; }
.goal-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; flex-wrap: wrap; }
.goal h3 { font-family: var(--display); font-size: 1rem; font-weight: 800; }
.goal-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.goal-meta .gm { color: var(--muted); }
.goal-acts { display: flex; gap: .35rem; flex: none; }
.goal-note { font-size: .82rem; color: var(--muted); margin-top: .5rem; white-space: pre-wrap; }
.goal-prog { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: .8rem; }
.goal-read { display: grid; gap: .5rem; align-content: start; }

/* the ten-second row: everything here is a thumb-sized target */
.tap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .6rem; margin-top: .7rem; }
.tap-big { flex: 1 1 130px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--bg2); color: var(--text); font-weight: 800; }
.tap-big:hover { border-color: var(--violet); }
.tap-big:active { transform: translate(1px, 1px); }
.tap-big b { font-size: .8rem; letter-spacing: .02em; }
.tap-big span { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.tap-big.lime { border-color: rgba(198,255,61,.55); color: var(--lime); }
.tap-big.num { flex: 1 1 44px; font-family: var(--display); font-size: 1.45rem; }
.tap-big.wide { flex: 1 1 40%; font-family: var(--display); font-size: 1.25rem; }
.tap-chip { min-height: 46px; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-weight: 800; }
.tap-chip:hover { border-color: var(--lime); color: var(--lime); }
.tap-num { flex: 0 1 110px; width: auto; max-width: 120px; text-align: center; font-weight: 700; }
.tap-save { min-height: 56px; flex: 1 1 110px; }
.tap-reset { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--dim); display: inline-flex; align-items: center; justify-content: center; }
.tap-reset:hover { color: var(--pink); border-color: rgba(255,79,163,.5); }
.tap-reset svg { width: 16px; height: 16px; }
.tap-hint { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.tap-hint b { color: var(--text); }
.tap-hint i { font-style: normal; font-weight: 700; color: var(--text); }

.gchart { width: 100%; height: auto; display: block; }
.gchart .axis { stroke: var(--line); stroke-width: 1; }
.gchart .l { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gchart .p { fill: var(--lime); }
.gchart .p.last { fill: var(--pink); }
.gchart .base { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 3; }
.gchart .targ { stroke: var(--pink); stroke-width: 1.25; stroke-dasharray: 5 3; }
.gchart .tdate { stroke: rgba(255,79,163,.35); stroke-width: 1; stroke-dasharray: 2 4; }
.gchart text { font-family: var(--body); font-size: 9px; fill: var(--dim); }
.gchart text.targ { fill: var(--pink); }
.gchart-none { color: var(--dim); font-size: .85rem; padding: 1rem 0; }
.say { font-weight: 700; font-size: .9rem; border-radius: 12px; padding: .55rem .75rem; background: var(--card2); color: var(--text); }
.say.ontrack { background: rgba(198,255,61,.14); color: var(--lime); }
.say.met { background: rgba(61,255,154,.14); color: var(--green); }
.say.behind { background: rgba(255,79,163,.14); color: var(--pink); }
.say.unknown { color: var(--muted); }
.last5 { list-style: none; display: grid; font-size: .82rem; color: var(--muted); }
.last5 li { display: flex; gap: .45rem; align-items: baseline; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.last5 li b { color: var(--text); white-space: nowrap; }
.last5 li button { margin: -.3rem -.35rem -.3rem auto; padding: .3rem .35rem; color: var(--dim); line-height: 1; }
.last5 li button:hover { color: var(--pink); }
.last5 li button svg { width: 14px; height: 14px; }
.last5 li.none { color: var(--dim); border-bottom: 0; }
.svc-card .tap-hint { color: var(--muted); }
@media (max-width: 700px) { .goal-prog { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .goal-acts { width: 100%; }
  .goal-acts .btn { flex: 1; justify-content: center; }
  .tap-save { flex-basis: 100%; }
}

/* print one student's record: hidden on screen, the only thing on paper */
.print-record { display: none; }
@media print {
  body.printing-record #view, body.printing-record #banner, body.printing-record .site-foot { display: none !important; }
  body.printing-record .print-record { display: block; color: #000; font-family: var(--body); font-size: 10.5pt; line-height: 1.4; }
  .print-record header { border-bottom: 2px solid #000; padding-bottom: 3mm; margin-bottom: 5mm; }
  .print-record h1 { font-size: 18pt; font-weight: 800; color: #000; }
  .print-record header p { color: #333; font-size: 9.5pt; margin-top: 1mm; }
  .print-record h2 { font-size: 12pt; font-weight: 800; color: #000; margin: 6mm 0 2mm; break-after: avoid; }
  .print-record h2 small { font-weight: 600; color: #666; font-size: 9pt; margin-left: .4em; }
  .print-record table { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 2mm; }
  .print-record th, .print-record td { border: 1px solid #000; padding: 1.5mm 2.5mm; text-align: left; vertical-align: top; }
  .print-record thead th { background: #eee; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; }
  .print-record tfoot th { background: #f6f6f6; }
  .print-record .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .print-record tr { break-inside: avoid; }
  .print-record .trend { display: flex; gap: 6mm; align-items: center; margin: 2mm 0; break-inside: avoid; }
  .print-record .spark { width: 70mm; height: 20mm; flex: none; }
  .print-record .spark .l { fill: none; stroke: #000; stroke-width: 1.5; stroke-linejoin: round; }
  .print-record .spark circle { fill: #000; }
  .print-record .spark .g { stroke: #999; stroke-width: .75; stroke-dasharray: 2 2; }
  .print-record .pn { list-style: none; padding: 0; }
  .print-record .pn li { padding: 1.5mm 0; border-bottom: 1px solid #ddd; white-space: pre-wrap; break-inside: avoid; }
  .print-record .pn time { display: block; font-size: 8.5pt; color: #555; }
  .print-record .pn i { color: #555; font-style: normal; font-size: 8.5pt; }
  .print-record .none { color: #666; font-style: italic; }
  .print-record .small { font-size: 9pt; color: #333; }
  .print-record .pg-goal { break-inside: avoid; margin-bottom: 4mm; }
  .print-record .pg-goal h3 { font-size: 11pt; font-weight: 800; color: #000; margin: 4mm 0 1.5mm; break-after: avoid; }
  .print-record .beh-tbl { font-size: 8pt; }
  .print-record .beh-tbl th, .print-record .beh-tbl td { padding: 1mm 1.5mm; }
  /* Cover page: the first thing a review meeting sees. */
  .print-record .pr-cover { break-after: page; padding-top: 14mm; }
  .print-record .pr-kicker { font-size: 9pt; text-transform: uppercase; letter-spacing: .18em; color: #555; }
  .print-record .pr-cover h1 { font-size: 30pt; line-height: 1.1; margin: 2mm 0 1mm; }
  .print-record .pr-sub { font-size: 12pt; color: #333; margin-bottom: 9mm; }
  .print-record .pr-meta { width: 100%; margin-bottom: 9mm; }
  .print-record .pr-meta th { width: 38mm; background: #f6f6f6; font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; }
  .print-record .pr-meta td { font-size: 11pt; }
  .print-record .pr-contents { margin-top: 0; }
  .print-record .pr-toc { margin: 0 0 6mm 5mm; padding: 0; font-size: 10.5pt; }
  .print-record .pr-toc li { padding: .6mm 0; }
  .print-record .pr-counts { font-size: 10pt; color: #333; margin-bottom: 6mm; }
  .print-record .pr-fine { font-size: 9pt; color: #555; border-top: 1px solid #999; padding-top: 3mm; }
  /* Repeated on every printed page; the page number itself comes from the @page margin box. */
  .print-record .pr-run { position: fixed; bottom: -12mm; left: 0; right: 0; display: flex; justify-content: space-between; gap: 6mm; font-size: 8pt; color: #666; border-top: 1px solid #ddd; padding-top: 1.5mm; }
  .print-record footer { margin-top: 8mm; padding-top: 2mm; border-top: 1px solid #999; font-size: 8pt; color: #666; }
}

/* ---------- AI drafts: a sheet of editable text, never a record ---------- */
.draft-body .draft-pick { gap: .5rem; margin-top: 1rem; }
.draft-body .draft-pick .btn { flex: 1 1 12rem; min-height: 52px; }
.draft-wait, .draft-err { font-size: .9rem; margin-top: 1rem; }
.draft-wait { color: var(--muted); }
.draft-err { color: var(--pink); }
.draft-one { margin-top: 1rem; }
.draft-one .qn-lbl { margin-top: 0; }
.draft-text { font-family: inherit; font-size: .95rem; line-height: 1.55; resize: vertical; }
.draft-acts { gap: .4rem; margin-top: .5rem; }
.draft-acts .btn { min-height: 44px; }
.draft-left { margin-top: .8rem; }
.draft-say { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.draft-row { gap: .5rem; margin-top: .5rem; }
.draft-row .small { flex: 1 1 12rem; }
@media (max-width: 520px) {
  .draft-body .draft-pick .btn, .draft-acts .btn { flex: 1 1 100%; }
}

/* Roster import preview */
.ri-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: .5rem; }
table.ri { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.ri th, table.ri td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
table.ri thead th { position: sticky; top: 0; background: var(--card); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.ri tr:last-child td { border-bottom: 0; }
table.ri tr.ri-new td:last-child { color: var(--lime); }
table.ri tr.ri-in-class td:last-child, table.ri tr.ri-repeat td:last-child, table.ri tr.ri-blank td:last-child { color: var(--dim); }
table.ri tr.ri-in-class td, table.ri tr.ri-repeat td, table.ri tr.ri-blank td { opacity: .65; }

/* Behaviour log (ABC) */
.beh-counts { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .1rem 0 .7rem; }
.beh-counts b { color: var(--lime); }
.beh-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.beh-list li { border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 12px; padding: .55rem .7rem; background: rgba(255,255,255,.02); }
.beh-list li.i2 { border-left-color: var(--amber); }
.beh-list li.i3 { border-left-color: var(--pink); }
.b-head { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .84rem; }
.b-head .sp { flex: 1; }
.b-head button { background: none; border: 0; color: var(--dim); font: inherit; cursor: pointer; padding: 0 .2rem; }
.b-head button:hover { color: var(--lime); text-decoration: underline; }
.b-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.b-int { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--violet); }
.b-int.i2 { color: var(--amber); }
.b-int.i3 { color: var(--pink); }
.b-abc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .35rem; font-size: .88rem; }
.b-abc i { display: block; font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.b-note { margin-top: .35rem; font-size: .86rem; color: var(--muted); }
@media (max-width: 640px) { .b-abc { grid-template-columns: 1fr; gap: .25rem; } }
/* Chip rows in the behaviour sheet */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .1rem 0 .6rem; }
.chips .pill { min-height: 40px; }
.chips .chip-other { flex: 1 1 10rem; min-width: 8rem; min-height: 40px; }
.b-int-row { display: flex; gap: .35rem; }
.b-int-row .tap-chip { flex: 1; min-height: 46px; }
.b-int-row .tap-chip.on { border-color: var(--lime); color: var(--lime); }

/* Goal bank */
.gb .gb-areas { margin: .6rem 0 .5rem; }
.gb-list { max-height: 48vh; overflow: auto; display: grid; gap: .4rem; padding-right: .2rem; }
.gb-item { display: block; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; color: var(--text); font: inherit; cursor: pointer; }
.gb-item:hover, .gb-item:focus-visible { border-color: var(--lime); }
.gb-item b { display: block; font-weight: 600; }
.gb-meta { display: block; font-size: .78rem; color: var(--lime); margin-top: .2rem; }
.gb-note { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }


/* One student's record rendered as a page in its own right (the /r/<token> share view and
   anything else that shows the document on screen rather than on paper). */
.doc-page { background: #fff; color: #111; }

/* Dates coming up (goal reviews and meetings) */
.due-list { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .35rem; }
.due-list li { font-size: .84rem; border-left: 3px solid var(--violet); padding: .2rem 0 .2rem .55rem; }
.due-list li b { color: var(--lime); }
.due-list li span { display: block; color: var(--muted); }

/* Share links */
.sh-h { font-family: var(--display); font-size: .95rem; margin: 1rem 0 .4rem; }
.sh-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.sh-list li { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; background: var(--card2); }
.sh-url { width: 100%; font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sh-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.sh-row .small { flex: 1; min-width: 9rem; }

/* The bottom credit strip is retired. No ads ever ran in it, both artists make credit optional
   (exclusiveOlive: "appreciated, not necessary"; ToffeeCraft: no attribution clause), and it was the
   worst layout shift on the suite (CLS 0.697 on body.has-strip). Hidden here rather than deleted
   from every page; credits now live in the site footers. */
.strip-slot { display: none !important; }
.has-strip { padding-bottom: 0 !important; }
