/* Scaled for Preps: the B2B layer over Scaled's "Instrument" system (docs/scaled-for-preps/DESIGN-PLAN.md).
   Light is the reference theme, on warm paper; the vivid emerald of Scaled becomes the colour of data in dark mode,
   and actions use a deep green that carries white text (5.9:1). Sand is for scores only, coral for what needs work.
   Loaded after Scaled's styles, in the app (app.html) and on the public pages. No inline style anywhere (CSP). */
:root {
  --bg: #F6F5F0;      --bg-2: #EEECE5;      --surface: #FFFFFF;   --surface-2: #F3F2EC;  --surface-3: #E7E5DD;
  --line: #DCDAD2;    --line-2: #C7C4BA;    --field: #7E8682;
  --ink: #14181A;     --ink-2: #4A5250;     --ink-3: #626A67;
  --accent: #0A7350;  --accent-hi: #085E42; --accent-ink: #FFFFFF; --accent-text: #0A7350; --accent-soft: #E3F1EA; --accent-line: #9CCBB4;
  --data: #139A6A;    --sand: #8A5410;      --sand-soft: #F4EBDA;
  --warn: #B23C0B;    --warn-soft: #FBEAE1;
  --focus: #0A7350;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1312; --bg-2: #131817; --surface: #161B19; --surface-2: #1B211F; --surface-3: #232B28; --line: #2A332F; --line-2: #37433D; --field: #66746D;
    --ink: #ECEFEC; --ink-2: #A9B4AE; --ink-3: #8C9892;
    --accent: #2EE59D; --accent-hi: #5CEDB5; --accent-ink: #04140D; --accent-text: #2EE59D; --accent-soft: #12271E; --accent-line: #1F6B4C;
    --data: #2EE59D; --sand: #E6D3AE; --sand-soft: #2A2519; --warn: #FF8F66; --warn-soft: #33201A; --focus: #2EE59D; --glow: 0 0 0 0 transparent;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1312; --bg-2: #131817; --surface: #161B19; --surface-2: #1B211F; --surface-3: #232B28; --line: #2A332F; --line-2: #37433D; --field: #66746D;
  --ink: #ECEFEC; --ink-2: #A9B4AE; --ink-3: #8C9892;
  --accent: #2EE59D; --accent-hi: #5CEDB5; --accent-ink: #04140D; --accent-text: #2EE59D; --accent-soft: #12271E; --accent-line: #1F6B4C;
  --data: #2EE59D; --sand: #E6D3AE; --sand-soft: #2A2519; --warn: #FF8F66; --warn-soft: #33201A; --focus: #2EE59D; --glow: 0 0 0 0 transparent;
}
@font-face { font-family: "Source Serif 4"; src: url("/fonts/SourceSerif4-Variable.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

/* type: calmer than Scaled's poster headings; table headers in plain sentence case */
h1, .h1 { font-weight: var(--w-semi); letter-spacing: -0.02em; }
h2, .h2 { font-weight: var(--w-semi); letter-spacing: -0.015em; }
.table th { font: var(--w-semi) var(--t-sm) / 1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.badge { font: var(--w-semi) 12px / 1 var(--f-sans); letter-spacing: 0; text-transform: none; }
.d-block { display: block; }
.r { text-align: right; }
.grow { flex: 1; }
.bar > i { background: var(--data); }
.bar.warn > i { background: var(--warn); }

/* the organisation in the top bar */
/* the logo follows the palette (deep green in light, Scaled's emerald in dark), in the app and on the site */
.logo svg > rect { fill: var(--accent); }
.logo svg > g { fill: var(--accent-ink); }
.org-chip { display: inline-flex; align-items: center; gap: var(--s2); max-width: 220px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
.org-chip span { overflow: hidden; text-overflow: ellipsis; }
.org-chip img { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
@media (max-width: 560px) { .org-chip { max-width: 120px; } .appbar .logo span { display: none; } }

/* staff pages: the bar, the sections, the bands */
.staffbar .appbar-in { min-height: 56px; }
.staff-nav { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.staff-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--ink-2); font-size: var(--t-md); font-weight: var(--w-medium); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.staff-nav a:hover { color: var(--ink); }
.staff-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.acct-menu { position: relative; }
.acct-menu summary { list-style: none; gap: var(--s2); }
.acct-menu summary::-webkit-details-marker { display: none; }
.acct-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); z-index: var(--z-menu); display: grid; gap: 2px; }
.acct-menu .menu a, .acct-menu .menu button { display: flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s3); border: 0; background: none; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--t-md); text-align: left; }
.acct-menu .menu a:hover, .acct-menu .menu button:hover { background: var(--surface-2); }
.demo-band, .paused-band { border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.demo-band { background: var(--sand-soft); color: var(--ink); }
.demo-band .wrap, .paused-band .wrap { padding-block: var(--s2); }
.paused-band { background: var(--warn-soft); color: var(--ink); }

/* staff pages: layout */
.coach-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.panel { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.kpi-row { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.kpi { display: grid; gap: 2px; padding: var(--s4) var(--s5); border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .k { font-size: var(--t-sm); color: var(--ink-2); }
.kpi .v { font: var(--w-semi) var(--t-3xl) / 1.1 var(--f-mono); letter-spacing: -0.03em; }
.kpi .s { font-size: var(--t-sm); color: var(--ink-3); }
.warn-t { color: var(--warn); }
.pos { color: var(--accent-text); }

/* needs attention */
.attn { display: grid; gap: var(--s2); }
.attn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.attn-item { display: grid; gap: 2px; justify-items: start; padding: var(--s3) var(--s4); border: 0; border-right: 1px solid var(--line); background: none; text-align: left; min-height: 64px; }
.attn-item:last-child { border-right: 0; }
.attn-item b { font: var(--w-semi) var(--t-2xl) / 1.1 var(--f-mono); }
.attn-item span { font-size: var(--t-sm); color: var(--ink-2); }
.attn-item:hover { background: var(--surface-2); }
.attn-item.is-on { background: var(--warn-soft); box-shadow: inset 0 -2px var(--warn); }

/* weak spots: one line per question type */
.tbars { display: grid; gap: var(--s2); padding: 0; margin: 0; list-style: none; }
.tbars li { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 44px 96px; align-items: center; gap: var(--s3); font-size: var(--t-md); }
.tbars .bar { height: 8px; }
.tbars .num { text-align: right; font-weight: var(--w-semi); }
@media (max-width: 560px) { .tbars li { grid-template-columns: 1fr 44px; } .tbars .bar { grid-column: 1 / -1; grid-row: 2; } .tbars li > .small { display: none; } }

/* the roster: the student line and its 26-mock strip */
.roster th[scope="row"] { font: inherit; font-weight: var(--w-semi); color: var(--ink); text-transform: none; letter-spacing: 0; background: none; border-bottom: 1px solid var(--line); vertical-align: top; padding: var(--s3) var(--s4); white-space: normal; min-width: 180px; }
.roster td { vertical-align: top; }
.roster a { color: var(--ink); text-decoration: none; }
.roster a:hover { text-decoration: underline; }
.strip { display: inline-grid; grid-template-columns: repeat(13, 7px); gap: 2px; }
.strip i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--surface-3); }
.strip i.on { background: var(--data); opacity: .55; }
.strip i.best { background: var(--data); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.flag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--w-medium); background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.flag-essay { background: var(--sand-soft); color: var(--sand); }
.flag-never { background: var(--surface-3); color: var(--ink-2); }
.filters .input, .filters .select { min-height: 40px; width: auto; }
.filters .input { width: 220px; max-width: 100%; }
@media (max-width: 760px) { .hide-sm { display: none; } .roster th[scope="row"] { min-width: 140px; } }

/* student page */
.score-chart { width: 100%; height: auto; max-height: 140px; }
.score-chart .ln { stroke: var(--data); stroke-width: 2.5; }
.score-chart .pt { fill: var(--surface); stroke: var(--data); stroke-width: 2; }
.score-chart .lb { font: 600 11px var(--f-mono); fill: var(--ink-2); }
.plain-list { display: grid; gap: var(--s3); padding: 0; margin: 0; list-style: none; }
.plain-list > li + li { border-top: 1px solid var(--line); padding-top: var(--s3); }
.essay-item .essay-text { max-height: 260px; overflow: auto; padding: var(--s3); margin-block: var(--s2); background: var(--surface-2); border-radius: var(--r); font-family: var(--f-text); font-size: var(--t-base); line-height: 1.6; }
.essay-form .input.num { width: 80px; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); padding: var(--s4); background: var(--surface-2); border-radius: var(--r); margin: 0; }
.cred dt { color: var(--ink-2); }
.cred dd { margin: 0; word-break: break-all; }
.big-code { font-size: 40px; font-weight: var(--w-semi); letter-spacing: .08em; text-align: center; padding: var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r); }
.link-box { padding: var(--s3); background: var(--surface-2); border-radius: var(--r); word-break: break-all; font-size: var(--t-sm); }
.code-input { text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-xl); text-align: center; }
.code { letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-check { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--t-sm); cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.hw-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px var(--s3); max-height: 240px; overflow: auto; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r); }
.logo-prev, .join-logo { border-radius: var(--r-sm); object-fit: contain; background: var(--surface-2); }
.set-form { max-width: 560px; }
.inv-form .select { width: auto; }
.empty-state { padding: var(--s10) var(--s5); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-state p { margin-inline: auto; max-width: 46ch; }

/* the student's homework */
.hw-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-soft); }
.hw-list { display: grid; gap: var(--s3); padding: 0; margin: 0; list-style: none; }
.hw-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* print: the student report ("Print or save as PDF") */
.print-only { display: none; }
@media print {
  .appbar, .staff-nav, .demo-band, .paused-band, .no-print, .tabbar, .toasts, .skip { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
  .panel, .kpi-row, .table-wrap { border-color: #bbb; break-inside: avoid; }
  .page { padding: 0; }
}

/* ===================================================================== the public site */
.pub main { display: block; }
.pub .pub-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.lang-link { display: inline-grid; place-items: center; min-width: var(--hit-sm); height: var(--hit-sm); padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2); font: var(--w-semi) var(--t-sm) / 1 var(--f-sans); text-decoration: none; }
.lang-link:hover { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 1080px) { .pub .pub-nav { display: none; } .pub .site-menu { display: block; } }
@media (max-width: 560px) { .pub .site-acts .btn-ghost, .pub .lang-link { display: none; } }
.pub-hero { padding-block: var(--s12) var(--s10); }
.pub-hero .wrap { display: grid; gap: var(--s8) var(--s10); grid-template-columns: minmax(0, 1fr) 220px; }
.pub-hero-copy { display: grid; gap: var(--s5); align-content: start; max-width: 46em; }
.pub-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; }
.pub-hero-shot { grid-column: 1 / -1; }
.margin-note { align-self: start; padding-left: var(--s4); border-left: 2px solid var(--line-2); max-width: 46em; }
.pub-hero .margin-note { margin-top: var(--s3); }
@media (max-width: 900px) { .pub-hero .wrap { grid-template-columns: 1fr; } .pub-hero .margin-note { margin-top: 0; } }
.pub-ctas { gap: var(--s3); }
.pub-head { padding-block: var(--s12) var(--s6); }
.pub-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.pub-head .lede { margin-top: var(--s4); }
.narrow-l > * { max-width: 820px; }                 /* same left edge as the full-width sections below */
.pub-sec { padding-block: var(--s10); border-top: 1px solid var(--line); }
.pub-sec h2 { margin-bottom: var(--s5); }
.pub-sec .stack-sm h2 { margin-bottom: 0; }
/* product captures: the light or the dark one follows the theme */
.shot { margin: 0; display: grid; gap: var(--s2); }
.shot img, .shot-item img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.shot figcaption { font-size: var(--t-sm); color: var(--ink-2); }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-dark { display: block; } :root:not([data-theme="light"]) .shot-light:not(.shot-any) { display: none; } }
:root[data-theme="dark"] .shot-dark { display: block; }
:root[data-theme="dark"] .shot-light:not(.shot-any) { display: none; }
.demo-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: var(--r-pill); background: var(--sand-soft); color: var(--sand); font: var(--w-semi) 11px / 1 var(--f-sans); letter-spacing: .04em; text-transform: uppercase; }
.shots { display: grid; gap: var(--s8) var(--s6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-item { margin: 0; display: grid; gap: var(--s3); align-content: start; }
.shot-item figcaption { display: grid; gap: var(--s1); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.compare-table td { vertical-align: top; white-space: normal !important; padding-block: var(--s4); }
.compare-table td:first-child { color: var(--ink-2); width: 45%; }
.compare-table td:last-child { font-weight: var(--w-medium); }
.timeline { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: var(--s4); padding: var(--s3) 0 var(--s3) var(--s5); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline .when { font-weight: var(--w-semi); color: var(--ink); }
.timeline-l li { grid-template-columns: 220px 1fr; }
@media (max-width: 640px) { .timeline li, .timeline-l li { grid-template-columns: 1fr; gap: var(--s1); } }
.pack-table th[scope="row"] { font: var(--w-semi) var(--t-base) / 1.3 var(--f-sans); color: var(--ink); background: none; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); padding: var(--s4); }
.pack-table td { padding-block: var(--s4); white-space: normal !important; }
.pack-table tr:last-child th { border-bottom: 0; }
.pack-table td.num { font-family: var(--f-mono); font-weight: var(--w-semi); }
.pack-table td.r { white-space: nowrap !important; }
.feature-list { display: grid; gap: var(--s5) var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0; }
.feature-list dt { font-weight: var(--w-semi); }
.feature-list dd { margin: var(--s1) 0 0; color: var(--ink-2); }
.doc-rows { display: grid; margin: 0; border-top: 1px solid var(--line); }
.doc-rows > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.doc-rows dt { font-weight: var(--w-semi); }
.doc-rows dd { margin: 0; font-family: var(--f-text); font-size: 17px; line-height: 1.6; max-width: 62ch; }
@media (max-width: 760px) { .doc-rows > div { grid-template-columns: 1fr; gap: var(--s2); } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: var(--s4) var(--s8) var(--s4) 0; font-weight: var(--w-semi); list-style: none; position: relative; min-height: var(--hit); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: var(--s4); font: var(--w-semi) 20px / 1 var(--f-mono); color: var(--ink-3); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 var(--s5); font-family: var(--f-text); font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.pub-cta-line { margin-top: var(--s8); }
.pub-two { gap: var(--s8); }
.pub-cta-box { align-content: start; }
.split-demo { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.demo-grid { display: grid; gap: var(--s8); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.form-two { gap: var(--s4); }
.seg-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-doc h2 { font-size: var(--t-lg); margin: var(--s6) 0 var(--s2); }
.legal-doc p, .legal-doc li { font-family: var(--f-text); font-size: 17px; line-height: 1.6; max-width: 66ch; }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc p + p { margin-top: var(--s3); }

/* fieldsets: no browser frame (demo form, homework form) */
.pub fieldset, .coach fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pub legend, .coach legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t-sm); font-weight: var(--w-medium); color: var(--ink); }
.demo-grid .timeline li { grid-template-columns: 28px 1fr; }

/* ===================================================================== an organisation's brand (js/preps/brand.js) */
html[data-brand-color] { --accent: var(--b-accent-l); --accent-hi: var(--b-accent-hi-l); --accent-ink: var(--b-ink-l); --accent-text: var(--b-accent-l); --accent-soft: var(--b-soft-l); --accent-line: var(--b-line-l); --data: var(--b-data-l); --focus: var(--b-accent-l); }
@media (prefers-color-scheme: dark) {
  html[data-brand-color]:not([data-theme="light"]) { --accent: var(--b-accent-d); --accent-hi: var(--b-accent-hi-d); --accent-ink: var(--b-ink-d); --accent-text: var(--b-accent-d); --accent-soft: var(--b-soft-d); --accent-line: var(--b-line-d); --data: var(--b-data-d); --focus: var(--b-accent-d); }
}
html[data-brand-color][data-theme="dark"] { --accent: var(--b-accent-d); --accent-hi: var(--b-accent-hi-d); --accent-ink: var(--b-ink-d); --accent-text: var(--b-accent-d); --accent-soft: var(--b-soft-d); --accent-line: var(--b-line-d); --data: var(--b-data-d); --focus: var(--b-accent-d); }
html[data-brand-color] .exam { --x-next: var(--b-accent-l); }
/* the organisation's logo in place of ours; its name is the brand name; the chip would repeat it */
html[data-org-logo] .logo > svg { display: none; }
html[data-org-logo] .logo::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 7px; background: var(--surface) var(--org-logo) center / contain no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
html[data-branded] .appbar .org-chip { display: none; }
html[data-branded] .logo span { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { html[data-branded] .appbar .logo span { display: inline; max-width: 150px; font-size: 16px; } }
.powered { font-size: var(--t-xs); color: var(--ink-3); }
.powered a { color: inherit; }

/* the organisation's own page (/p/…) */
.prep-home { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background:
  linear-gradient(var(--accent), var(--accent)) top / 100% 4px no-repeat, var(--bg); }
.prep-home-in { display: grid; gap: var(--s10); grid-template-columns: minmax(0, 1.2fr) minmax(300px, 400px); align-items: center; padding-block: var(--s16); }
.prep-id { display: grid; gap: var(--s4); justify-items: start; max-width: 34em; }
.prep-logo { width: 88px; height: 88px; border-radius: 18px; object-fit: contain; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); padding: 8px; }
.prep-mono { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); font: var(--w-semi) 40px / 1 var(--f-sans); }
.prep-id h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.prep-welcome { font-family: var(--f-text); font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.prep-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: 0; margin: var(--s2) 0 0; list-style: none; font-size: var(--t-sm); color: var(--ink-2); }
.prep-facts li { display: inline-flex; align-items: center; gap: var(--s2); }
.prep-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prep-acts { display: grid; gap: var(--s4); }
.prep-card { display: grid; gap: var(--s4); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.prep-card-staff { padding: var(--s5) var(--s6); background: transparent; box-shadow: none; }
.prep-code { display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.prep-code label { font-size: var(--t-sm); color: var(--ink-2); }
.prep-code .row { flex-wrap: nowrap; }
.prep-code .code-input { font-size: var(--t-base); letter-spacing: .1em; min-width: 0; flex: 1; }
.prep-foot { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding-block: var(--s5); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .prep-home-in { grid-template-columns: 1fr; gap: var(--s8); padding-block: var(--s10); } }
.menu-powered { display: block; padding: var(--s2) var(--s3) 0; border-top: 1px solid var(--line); margin-top: var(--s1); }

/* brand settings: colour fields and the live preview (its colours set on the element itself, through CSSOM) */
.color-input { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.hex-input { width: 110px; text-transform: lowercase; }
.slug-input { width: 220px; }
.set-two { align-items: start; }
.brand-preview { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #F6F5F0; color: #14181A; box-shadow: inset 0 3px var(--b-accent-l, #0A7350); }
.bp-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-bottom: 1px solid #DCDAD2; background: #fff; }
.bp-bar img { border-radius: 4px; object-fit: contain; }
.bp-mono { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--b-accent-l, #0A7350); color: #fff; font: 600 12px / 1 var(--f-sans); }
.bp-name { font-size: var(--t-sm); }
.bp-body { display: grid; gap: var(--s3); justify-items: start; padding: var(--s5) var(--s4); }
.bp-welcome { font-family: var(--f-text); font-size: var(--t-base); color: #4A5250; }
.bp-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 var(--s4); border-radius: var(--r-sm); background: var(--b-accent-l, #0A7350); color: #fff; font-weight: var(--w-semi); font-size: var(--t-sm); }
.bp-link { color: var(--b-accent-l, #0A7350); font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 3px; }
.bp-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.bp-bars i { width: 8px; border-radius: 2px; background: var(--b-data-l, #139A6A); }
.bp-bars i:nth-child(1) { height: 9px; } .bp-bars i:nth-child(2) { height: 15px; } .bp-bars i:nth-child(3) { height: 22px; }
.steps-list { display: grid; gap: var(--s2); margin: var(--s3) 0 0; padding-left: 1.2em; line-height: 1.55; }
/* file fields (logos, student lists): the button looks like ours */
input[type="file"].input { height: auto; min-height: 44px; padding: 6px; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
input[type="file"].input::file-selector-button { height: 32px; margin-right: var(--s3); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font: var(--w-semi) var(--t-sm) / 1 var(--f-sans); cursor: pointer; }
input[type="file"].input::file-selector-button:hover { border-color: var(--field); }

@media (max-width: 760px) {
  .staff-nav { flex-wrap: wrap; overflow: visible; gap: 0 var(--s1); }
  .staff-nav a { min-height: 40px; padding: 0 var(--s2); }
  .kpi { padding: var(--s3); }
  .kpi .v { font-size: var(--t-2xl); }
}

.table td.num, .table td:first-child.num { white-space: nowrap; }
@media (max-width: 760px) { .filters { width: 100%; } .filters .input, .filters .select { flex: 1 1 100%; width: 100%; } }
