/* School Planner. --brand and --accent are replaced by the
   school's own colours (theme.ts). */
:root {
	--brand: #1f2a44;
	--brand-ink: #ffffff;
	--accent: #f2c94c;
	--accent-ink: #111111;
	--ink: #17202e;
	--muted: #5b6577;
	--line: #d8dde6;
	--bg: #f5f7fa;
	--card: #ffffff;
	--focus: #2563eb;
	--bad: #a61b1b;
	--bad-bg: #fdecec;
	--ok-bg: #e7f5ec;
	--ok: #17663a;
	--warn-bg: #fff6dc;
	--warn: #7a5600;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ink: #e6eaf2;
		--muted: #a2acbd;
		--line: #2f3848;
		--bg: #0f141c;
		--card: #171e2a;
		--focus: #7aa7ff;
		--bad: #ff9c9c;
		--bad-bg: #3a1717;
		--ok-bg: #143322;
		--ok: #8fe0ae;
		--warn-bg: #3a2f10;
		--warn: #ffd877;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.boot { padding: 32px 16px; color: var(--muted); }
[hidden] { display: none !important; }

button {
	font: inherit;
	font-weight: 600;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
}
/* The edge `lookWarnings` promises a school whose button colour is close to
   white ("They keep a thin edge") — which the stylesheet did not give it until
   2026-11-17, having set the border transparent. The school's own colour at
   low strength: plainly an edge on a white button, and no more than definition
   on a strong one. */
button.primary { background: var(--accent); color: var(--accent-ink); border-color: rgb(var(--hero-rgb, 0 0 0) / 22%); }
button.link { border: none; background: none; padding: 4px; text-decoration: underline; font-weight: 500; }
/* The one control on the planner that takes something away: taking back a
   term's ticks. It is only ever drawn as the second half of a question. */
button.link.danger { color: var(--bad, #b91c1c); font-weight: 700; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 10; border-radius: 8px; }

.waking {
	background: var(--warn-bg);
	color: var(--warn);
	padding: 10px 16px;
	font-weight: 600;
}

.top {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: var(--brand);
	color: var(--brand-ink);
}
.top .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.top .logo { border-radius: 6px; background: #fff; object-fit: contain; }
.top .title { font-weight: 700; font-size: 18px; }
.top .user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top .user .muted { color: inherit; opacity: 0.8; font-size: 14px; }
.top button.link { color: inherit; }
/* The two header actions, "How do I…?" and "Sign out", as filled buttons in
   the school's accent (or white/near-black where the accent would not show on
   the primary: theme.ts, headerButtonColour). */
.top button.headerbutton {
	background: var(--header-button, var(--card));
	color: var(--header-button-ink, var(--ink));
	border: 1px solid rgb(0 0 0 / 14%);
	padding: 6px 14px;
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
}
.top button.headerbutton:hover { filter: brightness(0.95); }

main { padding: 20px 16px 48px; max-width: 900px; }
main:focus { outline: none; }
.message, .signin { padding: 40px 16px; max-width: 640px; }
.signin .choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.signin .env { display: inline-block; background: var(--warn-bg); color: var(--warn); padding: 2px 8px; border-radius: 999px; font-size: 14px; }
.signin .warning { background: var(--warn-bg); color: var(--warn); padding: 10px; border-radius: 8px; }

.pickers { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.pickers label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.pickers select { font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
/* The catch-up list's subject and week pickers sit inside its card, so
   tighter than the screen's own pickers; the count and "Show all" sit at the
   end of the same row. */
.catchupfilters { margin: 0 0 10px; align-items: end; }
.catchupfilters .catchupcount { margin: 0; align-self: center; font-size: 13px; }

.totals { font-weight: 600; }
.note { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 8px; }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 8px; }

.week { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 14px 0; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.tag.assessment { background: var(--warn-bg); color: var(--warn); }
.tag.last { background: var(--ok-bg); color: var(--ok); }
.tag.edited { background: var(--bg); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }

.lessons { list-style: none; margin: 0; padding: 0; }
.lessons > li { border-top: 1px solid var(--line); }
.lessons > li:first-child { border-top: none; }
button.lesson {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	width: 100%;
	text-align: left;
	border: none;
	background: none;
	border-radius: 0;
	padding: 10px 2px;
	font-weight: 500;
}
button.lesson:hover { background: var(--bg); }
/* A lesson's title reads as ordinary text: the badges and buttons in the row
   carry the weight, and a long list of bold titles is hard to scan. An
   assessment's title stays bold, so the week's assessments stand out. */
button.lesson .topic { font-weight: 400; }
button.lesson .topic.assessment { font-weight: 700; }
button.lesson .strands { margin-left: auto; color: var(--muted); font-size: 14px; }
.detail { padding: 0 2px 12px; }
.detail p { margin: 0 0 6px; }
.detail .code { font-size: 13px; }

@media (max-width: 560px) {
	button.lesson .strands { margin-left: 0; width: 100%; }
}

/* The tick: a checkbox beside each lesson, for a class the person may tick. */
.lessons > li { display: flex; align-items: flex-start; gap: 8px; }
.lessons > li > button.lesson { flex: 1; }
.lessons > li.done .topic { color: var(--muted); }
.tick { display: flex; align-items: center; padding: 12px 2px 0 4px; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--brand); cursor: pointer; }
.tick input:disabled { cursor: progress; opacity: 0.6; }
.tick.read { color: var(--ok); font-weight: 700; padding-top: 10px; width: 26px; text-align: center; }
.taught { color: var(--ok); font-size: 13px; font-weight: 600; }
.weekdone { font-size: 13px; font-weight: 600; margin-left: auto; }
.totals .done { color: var(--ok); }
/* The detail sits under the row, past the checkbox column. */
.lessons > li > .detail { display: none; }
.lessons > li { flex-wrap: wrap; }
.lessons > li > .detail { display: block; width: 100%; padding-left: 34px; }

/* ── The look (PlannerLookDesign.md) ──────────────────────────────────────
   Written in roles, not colours: --hero, --accent and --brand come from the
   school's own branding, so St Testschool is blue where Tannaghmore is green
   and neither is written down here. */
:root {
	--r-card: 14px;
	--r-ctl: 8px;
	--hero: #16291f;
	--hero-deep: #0b1a12;
	--hero-ink: #ffffff;
	--hero-accent: #ffffff;
}

body { padding-bottom: 76px; }
@media (min-width: 820px) { body { padding-bottom: 0; } }

.frame { display: block; }
main { max-width: 820px; margin: 0 auto; }

/* The sections: a bar under the thumb on a phone, a rail at desk width. */
.sections {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 20;
	display: flex;
	justify-content: space-around;
	gap: 4px;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
	background: var(--card);
	border-top: 1px solid var(--line);
}
.sections button {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	border: none; background: none; border-radius: var(--r-ctl);
	padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.sections button .ico { font-size: 18px; line-height: 1; }
.sections button.on { color: var(--brand, var(--ink)); background: var(--bg); }

/* Desktop is the planner's home (PlannerLookDesign.md, decision 3): a teacher
   sits at a computer, so the width is there to be used and a mouse does not
   need thumb-sized rows. The phone layout above still works; it just stops
   deciding things. */
@media (min-width: 820px) {
	/* The rail sits against the left edge of the window rather than inside a
	   centred 1400px column: on a wide screen the column left a band of empty
	   page to the rail's left, so the menu floated in the middle of nowhere.
	   The content still keeps its own gutter on the right. */
	.frame { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; max-width: none; margin: 0; padding: 0 24px 0 0; }
	.sections {
		position: sticky; top: 16px; bottom: auto;
		flex-direction: column; justify-content: flex-start; align-items: stretch;
		border-top: none; border-right: 1px solid var(--line); background: none;
		padding: 16px 8px;
		/* Full height rather than `fit-content`: the rail used to stop under its
		   last button and leave the page running on beside it, so the menu read
		   as a card that had been left short rather than as the side of the
		   screen. `100vh` less the 16px it is held off the top and the same
		   again at the bottom. */
		height: calc(100vh - 32px);
		/* A short window, or a school with every section, must still reach the
		   last one. */
		overflow-y: auto;
	}
	.sections button { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 10px 12px; font-size: 15px; }
	main { margin: 0; max-width: none; padding: 20px 0 48px; }

	/* The hero reads across rather than down: who and where on the left, how
	   long and how far through on the right. */
	.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 28px; align-items: start; padding: 24px 28px; }
	.hero h1 { font-size: 34px; }
	.hero .when, .hero h1, .hero .chips, .hero .sentence, .hero .catchup { grid-column: 1; }
	.hero .countdown { grid-column: 2; grid-row: 1 / span 3; justify-self: end; text-align: right; margin: 0; }
	.hero .countdown strong { display: block; font-size: 44px; line-height: 1; }
	.strip { grid-column: 1 / -1; margin-top: 4px; }

	/* This week and the catch-up list sit beside each other: a teacher can see
	   what is due and what is behind without scrolling between them. */
	.today .columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
	.today .card { margin: 0; }

	/* A mouse is precise, so rows are tighter and more of the year shows. */
	.lesson.plain { padding: 7px 2px; }
	.lessons > li > button.lesson { padding: 7px 2px; }
	.tick { padding-top: 8px; }
	.tick input { width: 18px; height: 18px; }

	/* The year: weeks side by side rather than one tall stack. */
	.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
	.week { margin: 0; }
}

@media (min-width: 1200px) {
	.today .columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hero h1 { font-size: 38px; }
}

/* The hero: one deep block of the school's own colour. */
.hero {
	background: linear-gradient(145deg, var(--hero), var(--hero-deep));
	color: var(--hero-ink);
	border-radius: var(--r-card);
	padding: 20px;
	margin: 0 0 16px;
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 10px; }
.hero .accented { color: var(--hero-accent, #fff); }
.hero .when { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; opacity: 0.85; margin: 0; }
.hero .sentence { margin: 10px 0 0; opacity: 0.9; }
.hero .catchup { margin: 8px 0 0; font-weight: 700; color: var(--hero-accent, #fff); }
.hero .countdown { margin: 12px 0 0; font-size: 15px; opacity: 0.95; }
.hero .countdown strong { font-size: 30px; font-weight: 800; color: var(--hero-accent, #fff); margin-right: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.chip {
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600;
}
.chip.solid { background: var(--hero-accent, #fff); color: var(--accent-ink, #111); border-color: transparent; }

/* The year as three bands of the school's own weeks. */
.strip { display: flex; gap: 10px; margin-top: 16px; }
.band { flex: 1; min-width: 0; }
.band .marks { display: flex; gap: 2px; }
.band .mark { flex: 1; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.band .mark.gone { background: var(--hero-accent, #fff); opacity: 0.5; }
.band .mark.now { background: var(--hero-accent, #fff); opacity: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); border-radius: 4px; }
.bandname { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }

/* Cards, for everything that is not the hero. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 0 0 14px; }
.card > h2 { margin-bottom: 10px; }
.today .pickers { margin-top: 0; }
.lesson.plain { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 2px; }
.lesson.plain .subject, .lesson.plain .muted { color: var(--muted); font-size: 13px; }
/* The subject and the week read as one quiet line under the topic. */
.lesson.plain .subject + .muted { margin-left: 0; }
/* The curriculum week a lesson belongs to, as a badge beside the subject's:
   a different colour for each week (weekbadge.ts), shaded from a light top to
   a deeper bottom with a fine edge of the same hue, so it reads apart from the
   flat pastel subject badges. A small pill with no shadow, so it never looks
   like the raised Push back button in the same row. The label is near-black
   and clears 4.5:1 at both ends of every week's shading; the badge carries its
   own colours, so dark mode leaves it as it is. */
.lesson.plain .weekbadge, .termweek > h2 .weekbadge {
	display: inline-block;
	padding: 0 9px;
	border-radius: 999px;
	border: 1px solid var(--week-to, #fbbf24);
	background: linear-gradient(180deg, var(--week-from, #fde68a), var(--week-to, #fbbf24));
	color: var(--week-ink, #422006);
	font-weight: 700;
	font-size: 12px;
	line-height: 18px;
}
/* The subject as a coloured badge (subjectbadge.ts): one hue per subject, the
   same in every school. Dark mode swaps the pair, the ink as the fill. */
.lesson.plain .subject.badge {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--badge-tint, var(--bg));
	color: var(--badge-ink, var(--muted));
	font-weight: 600;
	font-size: 12px;
	line-height: 18px;
}
.week, button.lesson { border-radius: var(--r-card); }
.pickers select, button, input, select { border-radius: var(--r-ctl); }

/* One lesson (PlannerDesign.md, step 6). A long read, so the measure stays
   narrow and every part of the plan is its own card. */
button.lesson.plain { background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.lesson.plain:hover .topic { text-decoration: underline; }
.lesson-screen button.back { margin-bottom: 8px; }
.lesson-screen h1 { margin-top: 4px; }
.lesson-screen .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.lesson-screen .tags:empty { display: none; }
.lesson-screen .objectives { font-size: 17px; margin: 10px 0 4px; }
.lesson-screen .strands { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.lesson-screen .card p, .lesson-screen .card li { max-width: 62ch; }
.lesson-screen .card h3 { font-size: 15px; margin: 14px 0 6px; }
.lesson-screen .card h3:first-of-type { margin-top: 0; }
.lesson-screen .versions + .versions { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.lesson-screen .record { margin: 0; padding-left: 18px; }
.lesson-screen .words { display: flex; flex-wrap: wrap; gap: 6px; }
.lesson-screen .word { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 14px; }
/* The timed plan: minutes on the left, what to say and what the pupils do beside it. */
.lesson-screen .timings { list-style: none; margin: 0; padding: 0; }
.lesson-screen .timings > li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lesson-screen .timings > li:first-child { border-top: none; padding-top: 0; }
.lesson-screen .minutes { grid-row: span 2; font-weight: 700; font-size: 14px; color: var(--muted); }
.lesson-screen .says, .lesson-screen .does { grid-column: 2; }
.lesson-screen .does { font-size: 14px; }
.lesson-screen .activity + .activity { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.lesson-screen .material { list-style: none; margin: 0; padding: 0; }
.lesson-screen .material > li { padding: 8px 0; border-top: 1px solid var(--line); }
.lesson-screen .material > li:first-child { border-top: none; }
.lesson-screen .source { display: block; font-size: 13px; }
.lesson-screen .source.ok { color: var(--ok); }
.lesson-screen .source.warn { color: var(--warn); }
.lesson-screen .source.bad { color: var(--bad); }
.lesson-screen .source.muted { color: var(--muted); }
@media (max-width: 560px) {
	.lesson-screen .timings > li { grid-template-columns: 1fr; }
	.lesson-screen .minutes { grid-row: auto; }
	.lesson-screen .says, .lesson-screen .does { grid-column: 1; }
}

/* A term the curriculum does not fit (SchoolYearDesign.md, decision 3). A
   dropped week stays on the screen and stays openable: it is removed from what
   is due, not from what exists. */
.note.warn { background: var(--warn-bg); color: var(--warn); }
.tag.dropped { background: var(--bad-bg); color: var(--bad); }
.tag.doubled, .tag.catch-up { background: var(--warn-bg); color: var(--warn); }
.week.dropped { border-style: dashed; }
.week.dropped > h2 { color: var(--muted); }
.week.dropped .topic { color: var(--muted); }
.week.catch-up { border-style: dashed; }

/* Reordering, for a Co-ordinator (PlannerDesign.md step 7). The weeks offered
   are the lesson's own term's, so INF-010 is in the screen and not only in the
   refusal. */
.reorder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; margin: 14px 0; }
.reorder-bar .muted { font-size: 14px; flex: 1 1 260px; }
.reorder-bar .saved { color: var(--ok); font-weight: 600; font-size: 14px; }
.reorder-bar .form-error { padding: 4px 8px; font-size: 14px; }
.move select { font: inherit; padding: 4px 6px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin-top: 8px; }
.tag.moving { background: var(--warn-bg); color: var(--warn); text-transform: none; letter-spacing: 0; }

/* Pushing a lesson back a week, for one class (INF-004). */
.push { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-top: 10px; }
.push .muted { font-size: 13px; }
/* The planner's actions as buttons rather than underlined links. Filled in the
   school's hero colour, which clears 4.5:1 against white for every school
   (theme.ts, heroColour), so the white label always reads; the quieter ones
   (undo, put back, week to week) are the same colour as an outline. */
.action {
	padding: 6px 14px;
	font-size: 14px;
	background: var(--hero, var(--brand));
	color: var(--hero-ink, #ffffff);
	border: 1px solid var(--hero, var(--brand));
	box-shadow: 0 1px 2px rgb(var(--hero-rgb, 0 0 0) / 25%);
	text-decoration: none;
}
.action.outline { background: var(--card); color: var(--hero, var(--brand)); box-shadow: none; }
.action.small { padding: 3px 10px; font-size: 13px; }
.action:disabled { opacity: 0.5; cursor: default; }
/* Buttons that sit side by side outside a flex row still need a gap. */
.action + .action { margin-left: 8px; }
.editrow > .action + .action, .selbar > .action + .action, .editrow.actions > .action + .action { margin-left: 0; }
a.action { display: inline-block; border-radius: var(--r-ctl); font-weight: 600; }
/* The one action that takes something away, as the second half of a
   question. --card as the label keeps it readable in dark mode too, where
   --bad turns pale. */
.action.danger { background: var(--bad); border-color: var(--bad); color: var(--card); box-shadow: none; }
.note.undo button.action, .loose h3 button.action, .loose li button.action, p.muted button.action { margin-left: 8px; }
/* "Push back" and its "Undo" on each lesson row: small buttons in the
   school's hero colour, which clears 4.5:1 against white whatever the school
   (theme.ts, heroColour), so the white label always reads. Undo is the same
   colour drawn as an outline, so the two never look like the same action. */
.push button.pushbutton {
	padding: 4px 12px;
	font-size: 13px;
	background: var(--hero, var(--brand));
	color: var(--hero-ink, #ffffff);
	border: 1px solid var(--hero, var(--brand));
	box-shadow: 0 1px 2px rgb(var(--hero-rgb, 0 0 0) / 25%);
}
.push button.pushbutton.undo {
	background: var(--card);
	color: var(--hero, var(--brand));
	box-shadow: none;
}
.push button.pushbutton:disabled { opacity: 0.55; cursor: default; }
.tag.moved { background: var(--warn-bg); color: var(--warn); text-transform: none; letter-spacing: 0; font-weight: 600; }
/* A lesson the term no longer has a slot for. Louder than "moved": it is not
   going to be taught unless somebody finds it a week. */
.tag.carried { background: var(--bad-bg); color: var(--bad); text-transform: none; letter-spacing: 0; font-weight: 700; }

/* Progress: how far a class has got (parity item 3). Rings and bars, drawn
   from counts the API does, so the screen only draws. */
.progress-screen .year-total { display: flex; align-items: center; gap: 18px; }
.progress-screen .year-total h2 { margin: 0 0 4px; }
.progress-screen .year-total p { margin: 0; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { display: block; }
.ring .track { fill: none; stroke: var(--meter-soft, var(--line)); stroke-width: 8; }
.ring .fill { fill: none; stroke: var(--meter, var(--brand)); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 0.3s; }
.ring .figure { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.progress-screen .rows { list-style: none; margin: 0; padding: 0; }
.progress-screen .rows > li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 3fr) auto; align-items: center; gap: 12px; padding: 6px 0; }
.progress-screen .rows .label { font-weight: 600; font-size: 14px; }
.progress-screen .rows .figure { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* A meter takes `--meter`, never `--accent`: a school whose accent is white
   drew these in white on a near-white track until 2026-11-17 (theme.ts,
   `meterColour`). The fallbacks are for the signed-out page, which has no
   school and therefore no tokens. */
.bar { display: block; height: 10px; background: var(--meter-soft, var(--bg)); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar .filled { display: block; height: 100%; background: var(--meter, var(--brand)); border-radius: 999px; }
/* One card per subject, the prototype's pivot: a teacher's question is "how is
   Numeracy doing", and answering it used to mean reading one row of each of
   three stacked tables (ProgressScreenDesign.md, decision 2). Desktop first —
   four across where there is room, because at 1440 px a single column of
   strand rows wastes half the screen. */
.subjectcards { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media screen and (min-width: 820px) { .subjectcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (min-width: 1280px) { .subjectcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.subjectcard h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.subjectcard h3 .figure { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.subjectcard .rows { margin-top: 10px; }
/* A long strand list scrolls inside its card rather than making every card as
   tall as the worst one. */
.subjectcard .rows { max-height: 320px; overflow-y: auto; }
.subjectcard.empty { opacity: 0.7; }
/* The one judgement on the screen. A subject with nothing due yet says
   nothing at all, so this element is simply absent rather than reassuring. */
.standing { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ok); }
.standing.behind { color: var(--bad); }
.subjectcard.behind { border-color: var(--bad); }
/* Assessments: the task beside the class, the task sticky. Below 1100px it
   stacks, and the task is not sticky — a sticky block a third of a phone
   screen tall is a tax, not a help (AssessmentsScreenDesign.md, decision 2). */
.assesscols { display: grid; gap: 16px; align-items: start; }
@media screen and (min-width: 1100px) { .assesscols { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); } }
@media screen and (min-width: 1100px) {
	.assesscols .taskcol { position: sticky; top: 12px; }
	/* A task with eight objectives is taller than the viewport, and sticky
	   would then mean "cannot be scrolled to the bottom of". */
	.assesscols .taskcol { max-height: calc(100vh - 24px); overflow-y: auto; }
}
.weektabs button .done { color: var(--ok); font-weight: 700; }
.weektabs button.on .done { color: inherit; }

.sectionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
h1 .headfigure { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.strand-block + .strand-block { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.strand-block h3 { font-size: 15px; margin: 0 0 6px; }
@media (max-width: 560px) { .progress-screen .rows > li { grid-template-columns: 1fr auto; } .progress-screen .bar { grid-column: 1 / -1; } }

/* Recording what happened: the tier, the note, the evaluation and how the
   pupils got on (parity item 4). */
.record-form { display: grid; gap: 12px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.record-form .field { display: grid; gap: 4px; }
.record-form .label { font-weight: 600; font-size: 14px; }
.record-form textarea { font: inherit; padding: 8px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; max-width: 62ch; }
.record-form .tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.record-form .check { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.record-form .rag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.record-form .count { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.record-form .count input { width: 64px; font: inherit; padding: 6px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.record-form .count.green { color: var(--ok); }
.record-form .count.amber { color: var(--warn); }
.record-form .count.red { color: var(--bad); }
.record-form .saved { color: var(--ok); font-weight: 600; font-size: 14px; }

/* The resource shelf: adding a link to a lesson (parity item 5). */
.add-link { display: grid; gap: 10px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; max-width: 62ch; }
.add-link .field { display: grid; gap: 4px; }
.add-link .label { font-weight: 600; font-size: 14px; }
.add-link input { font: inherit; padding: 8px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.lesson-screen .material button.remove { margin-left: 8px; color: var(--bad); border-color: var(--bad); }

/* The curriculum map: a year group's whole year as a grid (parity item 6). */
.map-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
table.map { border-collapse: collapse; font-size: 13px; }
table.map th, table.map td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
/* The header is a band in the school's own colour, which is what turns a grid
   of numbers into a table you can read along — the prototype's
   `background:#02381e;color:#ffde00` (CurriculumMapScreenDesign.md, decision
   1). `--hero`, not the raw primary, so a school with a pale colour gets a
   readable band for free; `--hero-accent` is already the token that decides
   whether a school's accent can carry emphasis on a dark surface. */
table.map thead th { position: sticky; background: var(--hero, var(--card)); color: var(--hero-ink, var(--muted)); padding: 6px 4px; font-size: 12px; min-width: 30px; }
table.map thead tr.termband th { top: 0; text-align: left; padding: 5px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--hero-accent, #ffffff); }
table.map thead tr.termband th.alt { background: var(--hero-deep, var(--card)); }
table.map thead tr.termband th .muted { color: inherit; opacity: 0.72; font-weight: 500; }
/* The week row sits below the term row, so its sticky offset is that row's
   height. The term row holds one short line and does not wrap at any width
   where 38 columns are drawn. */
table.map thead tr.weekband th { top: 29px; }
table.map thead th.even { background: rgb(var(--hero-rgb, 0 0 0) / 86%); }
/* Where the terms meet, and the week we are in. */
table.map th.termstart, table.map td.termstart { border-left: 2px solid var(--hero, var(--line)); }
table.map thead th.now { background: var(--hero-accent, var(--accent)); color: var(--hero, var(--ink)); font-weight: 700; }
table.map td.now { background: rgb(var(--hero-rgb, 0 0 0) / 6%); }
table.map th[scope='row'] { position: sticky; left: 0; background: var(--card); text-align: left; padding: 6px 10px; min-width: 150px; font-weight: 700; z-index: 1; }
/* The two frozen edges read as one frame rather than as two accidents. */
table.map th.corner { background: var(--hero-deep, var(--card)); border-right: 2px solid var(--hero, var(--line)); }
/* No `width: 100%` here. The first draft of decision 3 took the white below
   the grid for white beside it and tried to let the columns share "spare"
   width; measured, the table is 5851px in a 1126px scroller. There is no
   spare width — the grid overflows fivefold, and the term picker and the term
   rules above are how it is navigated. */
table.map th[scope='row'] .strands { display: block; font-weight: 400; font-size: 11px; }
table.map th.corner { left: 0; z-index: 2; }
table.map td { min-width: 30px; max-width: 150px; vertical-align: top; }
table.map td.empty { background: var(--bg); }
table.map td.assessment { box-shadow: inset 0 3px 0 var(--warn); }
table.map button.cell { display: block; width: 100%; background: none; border: 0; font: inherit; font-size: 12px; color: inherit; text-align: left; padding: 6px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.map button.cell:hover { background: var(--bg); text-decoration: underline; }
.map-screen .key { font-size: 13px; margin-top: 8px; }

/* Stepping to another week on Today: the prototype's own arrows, kept small
   so the week you are in is still what the card is about. */
.weekbrowse { font-size: 13px; gap: 10px; }

/* Half-term by half-term: six cards, two across where there is room. */
.halves { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 760px) { .halves { grid-template-columns: repeat(2, 1fr); } }
section.half { border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; background: var(--card); }
section.half.done { border-color: var(--ok, var(--ink)); border-width: 2px; }
section.half h3 { margin: 0 0 4px; font-size: 15px; }
section.half p { margin: 4px 0; font-size: 14px; }
section.half ul { margin: 2px 0 6px; padding-left: 18px; font-size: 14px; }
section.half ul.lessonlist { padding-left: 0; }
section.half ul.lessonlist li { margin-bottom: 2px; }
section.half ul.lessonlist button.link { font-size: 13px; text-align: left; }
section.half .chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* Strands down, year groups across: a coverage grid, shaded by how much is
   in each cell. The prototype's own shading floor keeps "one" from reading
   as "none". */
table.coverage { border-collapse: collapse; font-size: 13px; }
table.coverage th, table.coverage td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.coverage thead th { background: var(--card); padding: 6px 10px; font-size: 12px; color: var(--muted); }
/* Named `keystage`, not `stage`: `.stage` is the slides screen's full-screen
   stage and sets `display: grid`, which takes a table cell out of table
   layout entirely — the colspans stopped meaning anything and the three
   bands stacked on top of each other. Caught in a browser; nothing else
   would have shown it. */
table.coverage thead th.keystage { background: var(--bg); font-weight: 700; color: var(--ink); }
table.coverage th[scope='row'] { background: var(--card); text-align: left; padding: 8px 10px; min-width: 150px; font-weight: 700; }
table.coverage td { background: var(--accent-soft, var(--ink)); min-width: 74px; text-align: center; padding: 0; }
table.coverage td.empty { background: var(--bg); }
table.coverage button.cell { display: block; width: 100%; background: none; border: 0; font: inherit; color: var(--bg); padding: 8px 6px; cursor: pointer; }
table.coverage button.cell b { display: block; font-size: 15px; }
table.coverage button.cell .muted { color: inherit; opacity: 0.85; font-size: 11px; }

/* Choosing several lessons at once. The bar sits with the controls rather
   than floating: on a phone a fixed bar covers the lessons being chosen. */
.selbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--ink); color: var(--bg); border-radius: var(--r-card); padding: 8px 12px; margin: 8px 0; }
.selbar .count { font-weight: 700; font-size: 14px; }
.selbar button.link { color: inherit; }
ul.lessons li.choosing { cursor: pointer; }
ul.lessons li.chosen { background: var(--bg); box-shadow: inset 3px 0 0 var(--ink); }

/* What a lesson shows an inspector: framework lines, each with its evidence. */
ul.isefev { list-style: none; margin: 8px 0 0; padding: 0; }
ul.isefev > li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
ul.isefev > li > ul { margin: 4px 0 0; padding-left: 18px; }
ul.isefev .practice { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
ul.isefev .question { margin: 4px 0 0; font-size: 12px; font-style: italic; }

/* The three versions of a lesson, side by side where there is room. */
.card.versions .tierlist { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 900px) { .card.versions .tierlist { grid-template-columns: repeat(3, 1fr); } }
.card.versions section.tier { border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; background: var(--bg); }
.card.versions section.tier h3 { margin: 0 0 4px; font-size: 15px; }
.card.versions section.tier h4 { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.card.versions section.tier p { margin: 0; font-size: 14px; }
.card.versions section.tier ul { margin: 0; padding-left: 18px; font-size: 14px; }
.card.versions section.tier .ladder { font-size: 12px; font-style: italic; }
/* Support reads coolest and Extension warmest, so the three are told apart at a glance. */
.card.versions section.tier.s { border-left: 3px solid var(--accent, var(--ink)); }
.card.versions section.tier.c { border-left: 3px solid var(--ink); }
.card.versions section.tier.e { border-left: 3px solid var(--warn); }

/* The alternative-activities prompt: a block of text to copy, not to read. */
.card.alternatives ol.steps { margin: 8px 0; padding-left: 20px; font-size: 14px; }
.card.alternatives ol.steps li { margin-bottom: 3px; }
.card.alternatives textarea.prompt { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px; resize: vertical; }

/* The long-term overview: one subject, every year group, banded into units
   (the prototype's `longX2`). Three wide cells rather than 38 narrow ones, so
   it wants the opposite of the week grid's sizing. */
table.overview { border-collapse: collapse; font-size: 13px; width: 100%; }
table.overview th, table.overview td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
table.overview thead th { background: var(--card); padding: 8px 10px; font-size: 12px; color: var(--muted); text-align: left; }
table.overview th[scope='row'] { background: var(--card); text-align: left; padding: 8px 10px; min-width: 150px; font-weight: 700; }
table.overview th[scope='row'] .strands { display: block; font-weight: 400; font-size: 11px; }
table.overview td { padding: 4px; min-width: 200px; }
table.overview td.empty { background: var(--bg); }
table.overview td .muted { font-size: 11px; }
ul.bandlist { list-style: none; margin: 0; padding: 0; }
ul.bandlist li + li { margin-top: 2px; }
table.overview button.cell { display: block; width: 100%; background: none; border: 0; font: inherit; font-size: 12px; color: inherit; text-align: left; padding: 5px 6px; cursor: pointer; border-radius: var(--r-ctl); }
table.overview button.cell b { display: block; font-weight: 600; }
table.overview button.cell:hover { background: var(--bg); }
table.overview button.cell:hover b { text-decoration: underline; }
/* The software a unit uses, and the strands it covers: what the prototype's
   long-term overview prints under each unit's name. */
table.overview button.cell em { display: block; font-style: normal; color: var(--muted); }
table.overview .bandstrands { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
table.overview .bandstrands .tag { font-size: 10px; padding: 0 4px; }
/* The year as one table, the prototype's "\u21c4 View" (Year screen). */
.layout-pick { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 2px; align-self: end; }
.layout-pick button { background: none; border: 0; padding: 6px 12px; font: inherit; color: var(--muted); cursor: pointer; border-radius: calc(var(--r-ctl) - 2px); }
.layout-pick button.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
label.searchfield input { min-width: 15rem; }
table.plantable { border-collapse: collapse; width: 100%; font-size: 13px; }
table.plantable th, table.plantable td { text-align: left; padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.plantable thead th { border-top: 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.plantable tbody tr.done { background: var(--ok-bg, #eef7f1); }
table.plantable button.link { text-align: left; }

/* The help pointing at the control it is about (the prototype's hlShow): a
   ring that fades out, so it reads as "here" and not as an error. */
.hl { animation: hl 5.2s ease-out 1; border-radius: var(--r-ctl); }
@keyframes hl {
	0%, 70% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 7px color-mix(in srgb, var(--brand) 35%, transparent); }
	100% { box-shadow: 0 0 0 3px transparent, 0 0 0 7px transparent; }
}
@media (prefers-reduced-motion: reduce) {
	.hl { animation: none; box-shadow: 0 0 0 3px var(--brand); }
}

/* The pupil-name warning, beside the boxes it is about (DAT-007). */
.noname { font-size: 12px; margin: 0 0 6px; }

/* A term's plans as one Word file, from the year (the prototype's dlWord). */
.packword { align-self: end; }

/* Putting a starter link on a lesson from the shelf (the prototype's shUse). */
.usepanel { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
.usepanel label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }

/* Moving a lesson a week from the lesson itself: the prototype's stepLesson. */
.stepweek { align-items: center; gap: 8px; margin: 0 0 10px; }

/* A year group this subject has not reached yet, said rather than left out. */
table.overview tr.soon td { text-align: center; color: var(--muted); }

/* Today for a Co-ordinator: the school's week, not one class's
   (PlannerLookDesign.md, decision 5). No tick anywhere on it. */
.which-today { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 2px; width: fit-content; margin: 0 0 14px; }
.which-today button { background: none; border: 0; padding: 6px 14px; font: inherit; color: var(--muted); cursor: pointer; border-radius: calc(var(--r-ctl) - 2px); }
.which-today button.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.school-week .classes { list-style: none; margin: 0; padding: 0; }
.school-week .classes > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 2px; border-top: 1px solid var(--line); }
.school-week .classes > li:first-child { border-top: none; }
.school-week .classes .who { min-width: 160px; }
.school-week .classes .how { color: var(--muted); font-size: 14px; }
.school-week .classes > li.on-track .how { color: var(--ok); }

/* Assessments: the class record for an assessment week (parity item 8). */
.weektabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.weektabs button {
	font: inherit; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line);
	background: var(--card); color: var(--ink); cursor: pointer;
}
/* Which week is open has to be plain in every school's colours, and a
   school's accent may be white (St Testschool's is), so the chosen tab is
   drawn in the page's own ink rather than in the brand's accent. */
.weektabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.weektabs.subjects button { font-weight: 500; }

.assess .task { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 0 0 14px; }
.assess .task h2 { margin: 0 0 6px; }
.assess .task p { margin: 0 0 8px; }
.assess .paper { margin: 0 0 14px; }

.record { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.recordhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.recordhead h3, .loose h3 { margin: 0; }
.pupils { list-style: none; margin: 12px 0 0; padding: 0; }
/* A pupil a row: the name, the level, and what was seen. Wide enough to read
   down the names, which is how a teacher marks a class. */
.pupil { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pupil:first-child { border-top: 0; }
.pupil .who { font-weight: 700; min-width: 5.5rem; }
.pupil select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.pupil input { font: inherit; flex: 1 1 14rem; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--ink); }
.pupil input:disabled { opacity: 0.55; }
.pupil.done .who::after { content: ' ✓'; color: var(--ok); }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.counts .chip { border-color: var(--line); color: var(--muted); }
.loose { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.loose ul { list-style: none; margin: 8px 0 0; padding: 0; }
.loose li { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 4px 0; }

/* An assessment paper: the pupil's copy and the teacher's. It is a document,
   so it reads as one — a measured column, plain rules to write on, and tables
   that survive being printed. */
.papernav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.papernav .weektabs { margin: 0; }
.paperlink { margin: 0 0 14px; }
.paperlink .weektabs { margin: 8px 0 0; }

.paper { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; max-width: 46rem; }
.paper h3.parthead { margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.paper ul, .paper ol { margin: 0 0 8px; padding-left: 1.4em; }
.paperhead { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.paperhead h2 { margin: 0 0 4px; }
.namebar { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; font-size: 14px; }
.teachermark { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; margin: 0 0 6px; }

/* A rule to write an answer on. */
.rule { display: inline-block; min-width: 6rem; border-bottom: 1px solid var(--ink); height: 1.1em; vertical-align: baseline; margin: 0 4px; }
.rule.wide { min-width: 13rem; }
.callout { background: var(--ok-bg); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.callout h3 { margin: 0 0 6px; font-size: 15px; }
.question { margin: 0 0 14px; }
.qtext { margin: 0 0 4px; }
.marks { font-weight: 700; font-size: 13px; margin-left: 6px; }
.qpart { margin: 8px 0 8px 18px; }
.answer { margin: 4px 0; }
.options { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0; }
.planbox { border: 1px solid var(--line); border-radius: 6px; min-height: 64px; padding: 6px 8px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.writinglines > div { border-bottom: 1px solid var(--line); height: 1.9em; }
.mental { columns: 2; margin: 8px 0; padding: 0; list-style: none; }
.passage { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.passagetitle { font-weight: 700; margin: 0 0 6px; }
.passageline { margin: 0 0 4px; }
.total { text-align: right; font-weight: 700; margin-top: 16px; }
.smallprint { font-size: 13px; margin-top: 16px; max-width: 46rem; }

.papertable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.papertable th, .papertable td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.papertable th { background: var(--bg); }
.papertable .score { white-space: nowrap; }
.papertable .score.stacked { display: flex; flex-direction: column; gap: 2px; }
.muted.block { display: block; font-size: 13px; }
.assessimg { display: block; margin: 6px 0; }
.assessimg img { max-width: 100%; height: auto; }

/* Printed, the thing being printed is the only thing on the page: no app
   around it, no cards, and a question or a step never split across two
   sheets (parity item 10). */
@media print {
	.noprint, .top, .sections, .pickers, .editrow, .editor { display: none !important; }
	.paper, .lesson-screen .card { border: 0; padding: 0; max-width: none; background: none; }
	.frame, main { margin: 0; padding: 0; }
	body { background: #fff; color: #000; }
	.question, .step, .pupil, tr { break-inside: avoid; }
	h1, h2, h3 { break-after: avoid; }
	/* The curriculum map's header band is a solid block of the school's colour
	   on screen. A year grid printed for a staff meeting would cost a cartridge
	   of toner, so on paper it is ruled rather than filled. */
	table.map thead th, table.map thead tr.termband th, table.map thead tr.termband th.alt, table.map th.corner {
		background: #fff !important;
		color: #000 !important;
		border-bottom: 1px solid #000;
	}
	table.map thead tr.termband th .muted { color: #000 !important; }
	table.map thead th.now { font-weight: 700; }
	/* A card edged in red says nothing in grey scale, and the words beside it
	   already say it. */
	.subjectcard.behind { border-color: #000; }
	.assesscols .taskcol { position: static; max-height: none; overflow: visible; }
}

/* The lesson editor: a school's own words over a shared lesson (DEC-008). */
.editrow { margin: 0 0 14px; }
/* A row of buttons wraps with a gap; the Shelf's form panel is a div and keeps its own layout. */
p.editrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* A row of action buttons above a screen's content: the main action first,
   in the school's colour, then the plain ones. Wraps on a narrow window. */
.editrow.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor .field, .cover .field { display: grid; gap: 4px; margin: 0 0 14px; }
.editor label, .cover .field label { font-weight: 600; font-size: 14px; }
.editor input[type="text"], .editor textarea, .cover textarea {
	font: inherit; width: 100%; padding: 8px 10px; border-radius: var(--r-ctl);
	border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.editor textarea, .cover textarea { resize: vertical; }
.editor h3 { margin: 20px 0 8px; }
.editor .step { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 10px; }
.editor .step label { display: grid; gap: 4px; }
.editor .step .minutes input { font: inherit; width: 6rem; padding: 6px 8px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.editactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* Lesson slides, on the board at the front of a classroom (parity item 11).
   Everything here is sized to be read from the back of the room, so the type
   is set in viewport units rather than pixels and the slide fills the screen. */
.show {
	position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
	background: var(--bg); color: var(--ink);
}
.showtop { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.showcount { margin-right: auto; font-weight: 700; }
.showtop button, .showbar button { font: inherit; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); cursor: pointer; }
.showtop button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.showtop button:disabled, .showbar button:disabled { opacity: 0.45; cursor: default; }

.stage { flex: 1; display: grid; place-items: center; padding: 3vh 5vw; min-height: 0; outline: none; }
.slide { width: 100%; max-width: 60rem; }
.slide h1 { font-size: clamp(32px, 6vw, 76px); line-height: 1.08; margin: 0 0 16px; }
.slide h2 { font-size: clamp(26px, 4vw, 48px); margin: 0 0 18px; }
.slide h3 { font-size: clamp(18px, 2.2vw, 28px); margin: 18px 0 8px; }
.slide p.big { font-size: clamp(22px, 3.4vw, 42px); line-height: 1.3; margin: 0; }
.slide ul { font-size: clamp(18px, 2.4vw, 30px); line-height: 1.5; margin: 0; padding-left: 1.2em; }
.slide .kicker { font-size: clamp(14px, 1.8vw, 22px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.slide .school { font-size: clamp(16px, 2vw, 24px); color: var(--muted); margin: 18px 0 0; }
.slide.step h2 em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 0.6em; }
.slide .words { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.slide .words span { font-size: clamp(18px, 2.6vw, 34px); font-weight: 700; padding: 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.slide .two { display: grid; gap: 20px; grid-template-columns: 1fr; font-size: clamp(16px, 2.2vw, 26px); }
.slide .ticks { list-style: none; padding: 0; }
.slide .ticks li::before { content: '☐ '; }
.slide .saving { font-size: clamp(16px, 2vw, 26px); color: var(--muted); margin-top: 20px; }

.shownotes { border-top: 1px solid var(--line); background: var(--card); padding: 12px 16px; max-height: 28vh; overflow: auto; }
.shownotes h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.shownotes p { margin: 0; }

.showbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.dots { display: flex; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.dots button.on { background: var(--ink); border-color: var(--ink); }

@media (min-width: 760px) {
	.slide .two { grid-template-columns: 1fr 1fr; }
}
@media print { .show { display: none !important; } }

/* A trip or event, and the cover pack: a week's lessons to tick. */
.trip .tripweek, .cover .tripweek { list-style: none; margin: 12px 0 0; padding: 0; }
.trip .tripweek li, .cover .tripweek li { border-top: 1px solid var(--line); }
.trip .tripweek li:first-child, .cover .tripweek li:first-child { border-top: 0; }
.trip .tripweek label, .cover .tripweek label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; cursor: pointer; font-weight: 400; }
.trip .tripweek li.done label, .cover .tripweek li.done label { color: var(--muted); }
.trip .tripweek li.done label { cursor: default; }
.trip .tripweek input, .cover .tripweek input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* The school's year moved recently (SchoolYearDesign.md, step 4). It sits in
   the hero, where a teacher is already reading what week it is. */
.hero .moved {
	margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-weight: 600;
	background: rgba(255, 255, 255, 0.16);
}

/* The ISEF page: the framework for reference, and what the school can show
   against it. A document to read and print, not a screen to work in. */
.isef { max-width: 56rem; }
.isef .card { margin-bottom: 18px; }
.isef h2.parthead { margin: 26px 0 10px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.isefitem { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 8px; background: var(--card); }
.isefitem summary { font-weight: 600; cursor: pointer; }
.isefitem h3 { margin: 12px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.isefitem ul { margin: 0; padding-left: 1.3em; }
.isefitem li { margin: 0 0 4px; }
@media print {
	.isefitem { break-inside: avoid; }
	.isefitem[open] summary { font-weight: 700; }
}

/* The cross-curricular skills a lesson draws on (parity item 17). Chips, so
   they read as tags rather than as a claim about the lesson. */
.skills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.skills .chip { border-color: var(--line); color: var(--muted); }
.skills .note-inline { font-size: 13px; flex: 1 1 18rem; min-width: 0; }

/* The progress report (parity item 14): the same numbers, laid out to print
   for somebody who will not click anything. */
.report { max-width: 50rem; }
.report .big { font-size: 18px; line-height: 1.5; margin: 16px 0; }
.figures { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.figures > div { flex: 1 1 10rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.figures b { display: block; font-size: 30px; line-height: 1.1; }
.figures b small { font-size: 16px; font-weight: 600; color: var(--muted); }
.figures span { font-size: 13px; color: var(--muted); }
.reportcomments { font: inherit; width: 100%; padding: 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; }
@media print {
	.report { max-width: none; }
	.figures > div, .reportcomments { border: 1px solid #999; }
	.papertable, .figures > div { break-inside: avoid; }
}

/* "How do I…?" (parity item 16). A panel over the app, because a person
   opening it is in the middle of something and goes back to it. */
.help-open { font-size: 14px; }
.helppanel {
	position: fixed; z-index: 90; inset: auto 0 0 0; max-height: 76vh; overflow: auto;
	background: var(--card); border-top: 2px solid var(--line); padding: 16px 20px 28px;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.helptop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.helptop h2 { margin: 0; }
.helptop button { font: inherit; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--ink); cursor: pointer; }
.helppanel .field { margin: 12px 0 4px; }
.helppanel input[type="search"] { font: inherit; width: 100%; max-width: 32rem; padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.helplist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.helplist > li { border-top: 1px solid var(--line); padding-top: 12px; }
.helplist h3 { margin: 0 0 6px; font-size: 16px; }
.helplist ol { margin: 0 0 6px; padding-left: 1.3em; }
.helplist li li { margin: 0 0 2px; }
@media (min-width: 760px) {
	.helppanel { inset: auto 0 0 auto; width: min(34rem, 50vw); max-height: 82vh; border-left: 2px solid var(--line); border-top: 0; }
	.helplist { grid-template-columns: 1fr; }
}
@media print { .helppanel, .help-open { display: none !important; } }

/* SEN adaptations on a lesson: whole-group, naming nobody. */
.adaptations ul { margin: 10px 0; padding-left: 1.3em; }
.adaptations li { margin: 0 0 6px; }
.adaptchoice { list-style: none; padding: 0; display: grid; gap: 6px; }
.adaptchoice label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.adaptchoice input { width: 18px; height: 18px; flex: none; }

/* The starter library on the year: links every school gets. */
.library { border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; margin: 20px 0; background: var(--card); }
.library summary { font-weight: 600; cursor: pointer; }
.library ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.library li { border-top: 1px solid var(--line); padding-top: 8px; }
.library li:first-child { border-top: 0; padding-top: 0; }
.library .block { display: block; font-size: 13px; }

/* An undo beside what a bulk action just did, and the next week off. */
.note.undo { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.hero .breakahead { margin: 6px 0 0; font-size: 14px; opacity: 0.9; }

/* The shelf: everything on the school's lessons, in one place. */
.shelf-screen .field { margin: 14px 0; }
.shelf-screen input[type="search"] { font: inherit; width: 100%; max-width: 32rem; padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.shelflist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.shelflist li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
/* Two columns once there is room, so a long starter library is half as long
   to scroll. A card whose "Put this on a lesson" form is open takes the whole
   row, since the form's pickers need the width. */
@media screen and (min-width: 1100px) {
	.shelflist { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.shelflist li:has(.usepanel) { grid-column: 1 / -1; }
}
.shelflist .tag { margin-left: 8px; }
.shelf-screen h2.parthead { margin: 28px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }

/* A report comment, written without a child's name. */
.reportcomment .commenttext { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; line-height: 1.6; margin: 14px 0 6px; }
.reportcomment .field input { font: inherit; width: 100%; max-width: 32rem; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }

/* ── Depth (PlannerLookDesign.md, the design system) ──────────────────────
   The shapes of decisions 1 and 2 were built first and left flat: one border,
   one radius, no shadow. Beside the prototype that reads as a different
   product even where the layout matches, because most of what a person calls
   "the look" is depth — a page that is tinted rather than grey, a rail that
   sits above the page, cards that lift under the pointer, a control that
   looks pressable.

   None of it is Tannaghmore's green. Every colour below is the school's own,
   taken from `--brand-rgb`, `--hero-rgb` and `--accent-rgb` at low alpha, so
   St Testschool gets the same depth in blue. Each rule is `@media screen`:
   printed, the page is still white with black text and no shadows.
   Prefers-reduced-motion turns the movement off at the end. */

@media screen {
	/* The page: two soft washes of the school's colours rather than one flat
	   grey, fixed so they do not slide under the content as it scrolls. */
	body {
		background:
			radial-gradient(1100px 560px at 88% -8%, var(--wash-2, transparent) 0, transparent 60%),
			radial-gradient(900px 560px at 0% 0%, var(--wash, transparent) 0, transparent 55%),
			var(--bg) fixed;
	}

	/* The header keeps the school's colour and gains an edge, so the page
	   below it starts somewhere rather than simply changing colour. */
	.top { box-shadow: 0 1px 0 rgb(0 0 0 / 12%), 0 6px 18px rgb(var(--hero-rgb, 0 0 0) / 14%); }

	/* The hero: one deep block, with the accent glowing out of the top corner
	   and a ring cut off by the edge. The ring is the prototype's; it is what
	   stops a large flat rectangle reading as a placeholder. */
	.hero {
		position: relative;
		overflow: hidden;
		border-radius: 22px;
		background:
			radial-gradient(420px 220px at 92% 8%, rgb(var(--accent-rgb, 255 255 255) / 26%), transparent 70%),
			linear-gradient(145deg, var(--hero), var(--hero-deep));
		box-shadow: 0 18px 40px rgb(var(--hero-rgb, 0 0 0) / 26%);
	}
	.hero::after {
		content: "";
		position: absolute;
		right: -46px;
		top: -46px;
		width: 184px;
		height: 184px;
		border-radius: 50%;
		border: 26px solid rgb(var(--accent-rgb, 255 255 255) / 13%);
		pointer-events: none;
	}
	.hero > * { position: relative; z-index: 1; }

	/* Cards sit on the page rather than being drawn on it. The border stays:
	   it is what holds them together in dark mode and in high contrast. */
	.card, .week, .map-scroll, section.half, .reorder-bar, .shelflist li {
		box-shadow: 0 1px 2px rgb(var(--hero-rgb, 0 0 0) / 5%), 0 10px 26px rgb(var(--hero-rgb, 0 0 0) / 7%);
	}
	.week { transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.28s, border-color 0.28s; }
	.week:hover {
		transform: translateY(-3px);
		box-shadow: 0 2px 4px rgb(var(--hero-rgb, 0 0 0) / 6%), 0 18px 36px rgb(var(--hero-rgb, 0 0 0) / 13%);
		border-color: rgb(var(--brand-rgb, 0 0 0) / 35%);
	}

	/* Controls: the thing a person acts on is raised, and answers the press.
	   `button.primary` carries the school's accent, so the gradient is made
	   from the accent itself rather than from a second stored colour. */
	button {
		border-radius: 10px;
		transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, background 0.2s;
	}
	button:hover { filter: brightness(1.04); }
	button:active { transform: scale(0.97); }
	button.primary {
		background: linear-gradient(180deg, rgb(var(--accent-rgb, 0 0 0) / 88%), var(--accent));
		box-shadow: 0 2px 6px rgb(var(--accent-rgb, 0 0 0) / 38%);
	}
	button.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgb(var(--accent-rgb, 0 0 0) / 34%); }
	button.link:hover, button.link:active { filter: none; transform: none; }

	input, select, textarea { transition: border-color 0.2s, box-shadow 0.2s; }
	input:focus-visible, select:focus-visible, textarea:focus-visible {
		border-color: var(--brand);
		box-shadow: 0 0 0 4px rgb(var(--brand-rgb, 0 0 0) / 16%);
	}

	/* Tables are cards too: the map and the coverage grid are the two screens
	   a co-ordinator looks at longest. */
	table.map thead th, table.coverage thead th { backdrop-filter: saturate(1.2); }
	table.map th[scope='row'], table.coverage th[scope='row'] { background: var(--card); }
	table.map button.cell, table.coverage button.cell { transition: background 0.2s; }
}

/* The rail at desk width: the prototype's floating block, which is why the
   sections read as a place rather than as a list of links. It carries the
   hero's colours, so a school with a pale primary gets the same dark rail the
   hero already proves is readable. */
@media screen and (min-width: 820px) {
	.frame { padding-top: 16px; }
	.sections {
		top: 16px;
		border-right: none;
		/* Square on the side that meets the window's edge, rounded on the side
		   that faces the page. */
		border-radius: 0 22px 22px 0;
		padding: 14px 10px;
		gap: 2px;
		background: linear-gradient(185deg, var(--rail, var(--hero)) 0%, var(--rail-deep, var(--hero-deep)) 100%);
		box-shadow: 0 20px 44px rgb(var(--hero-rgb, 0 0 0) / 28%), inset 0 1px 0 rgb(255 255 255 / 9%);
		color: #fff;
	}
	.sections button {
		color: rgb(255 255 255 / 76%);
		border-radius: 14px;
		transition: background 0.22s, color 0.22s, transform 0.22s;
	}
	.sections button:hover { color: #fff; background: rgb(255 255 255 / 10%); }
	.sections button:active { transform: scale(0.96); }
	/* The one lit section. The accent is only safe to write on when it has a
	   hue of its own; `--hero-accent` is already that test, answered at sign-in
	   and white when the school's accent cannot carry it. */
	.sections button.on {
		background: var(--hero-accent, #fff);
		color: var(--hero, #111);
		box-shadow: 0 8px 20px rgb(var(--accent-rgb, 0 0 0) / 36%);
	}
	.sections button .ico { opacity: 0.95; }
}

/* Dark mode: the washes would be two pale clouds on a dark page, and the
   shadows would be invisible. The shapes stay; the depth is carried by the
   surface colours the tokens already set. */
@media screen and (prefers-color-scheme: dark) {
	.action.outline { color: var(--hero-accent, #ffffff); border-color: var(--hero-accent, #ffffff); }
	.lesson.plain .subject.badge { background: var(--badge-ink, var(--bg)); color: var(--badge-tint, var(--muted)); }
	/* The hero is dark by design, so on a dark card Undo's outline and label
	   take the accent that is kept visible on dark instead. */
	.push button.pushbutton.undo { color: var(--hero-accent, #ffffff); border-color: var(--hero-accent, #ffffff); }
	body { background: var(--bg); }
	.card, .week, .map-scroll, section.half, .reorder-bar, .shelflist li { box-shadow: none; }
	.hero { box-shadow: none; }
	/* `--meter` is the colour that can be seen on a *light* card, and on a dark
	   one it is the wrong way round: a near-white track shouted louder than the
	   fill, so an empty bar drew more attention than a full one. The colour that
	   shows on a dark surface is the one `heroAccent` already works out, and the
	   track goes to a hint of the page rather than a block of it. */
	.bar { background: rgb(255 255 255 / 12%); border-color: transparent; }
	.bar .filled { background: var(--hero-accent, #ffffff); }
	.ring .track { stroke: rgb(255 255 255 / 12%); }
	.ring .fill { stroke: var(--hero-accent, #ffffff); }
}

/* Movement is the first thing to go for anyone who asks for less of it. */
@media (prefers-reduced-motion: reduce) {
	.week, button, input, select, textarea, .sections button, table.map button.cell, table.coverage button.cell {
		transition-duration: 0.01ms !important;
	}
	.week:hover, button.primary:hover, button:active, .sections button:active { transform: none !important; }
}

/* A "?" beside a button that opens a short note about it (HelpTip.tsx), in
   place of a line of grey text that was always on screen. */
/* The note opens under the whole row, from its left edge, so it never runs
   off the right of a narrow screen when the "?" sits far along the row. */
.helptip { display: inline-flex; align-items: center; }
p.editrow:has(.helptip) { position: relative; }
/* Two editrows side by side on one line (The year's take-back and choose
   buttons). The note then opens under the whole line, not one half of it. */
.editgroup { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 12px 0; }
.editgroup > p.editrow { position: static; margin: 0; }
.editgroup:empty { display: none; }
.helpbutton {
	width: 30px; height: 30px; border-radius: 999px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	font: inherit; font-size: 16px; font-weight: 800; line-height: 1;
	background: var(--card); color: var(--hero, var(--brand));
	border: 2px solid var(--hero, var(--brand)); cursor: pointer;
}
.helpbutton:hover, .helpbutton[aria-expanded='true'] { background: var(--hero, var(--brand)); color: var(--card); }
.helpbutton:focus-visible { outline: 3px solid var(--hero, var(--brand)); outline-offset: 2px; }
.helpbubble {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
	width: max-content; max-width: min(460px, 100%);
	background: var(--card); color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
	padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
	.helpbutton { color: var(--hero-accent, #fff); border-color: var(--hero-accent, #fff); }
	.helpbutton:hover, .helpbutton[aria-expanded='true'] { background: var(--hero-accent, #fff); color: var(--card); }
	.helpbutton:focus-visible { outline-color: var(--hero-accent, #fff); }
}

/* This term: one class's term, every subject, week by week (Term.tsx). The
   hero's bar is drawn in the hero's own colours, as the year strip is. */
.term .hero .bar { grid-column: 1; margin-top: 12px; background: rgba(255, 255, 255, 0.16); border-color: transparent; }
.term .hero .bar .filled { background: var(--hero-accent, #fff); }
.term .pickers { align-items: end; }
.term .pickers .which-today { margin: 0; }
.termweek > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.termweek.now { border: 2px solid var(--hero); }
.termweeks { display: grid; gap: 14px; }
.termweeks > .card { margin: 0; }
@media screen and (min-width: 1100px) {
	.termweeks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (prefers-color-scheme: dark) {
	.termweek.now { border-color: var(--hero-accent, #fff); }
}
