/* My Child Growth Journey - base styles: page frame, type, buttons, forms, dialogs, print.
   Every colour and both fonts come from /theme.css (set in config.yaml), so a change there restyles the whole app.
   Graph styles are in charts.css and page layouts in pages.css. */

:root {
  color-scheme: light;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.7rem, 1.3rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem);
  --page-w: 76rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --logo-h: 3.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kind-spreadsheet: #1baf7a;
  --kind-document: #2a78d6;
  --kind-pdf: #e34948;
  --kind-image: #eda100;
  --kind-video: #6250d6;
  --kind-audio: #e87ba4;
  --kind-text: #898781;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: var(--step-0)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: 0; }
p { margin: 0 0 0.75rem; }
a { color: var(--primary); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 0.5rem; }

/* ------------------------------------------------------------------ frame */
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }

.top { background: var(--surface); }
.top-in { max-width: var(--page-w); margin: 0 auto; padding: 0.8rem var(--gutter); display: flex; align-items: center; gap: 1rem; }
.brand { min-width: 0; flex: 1; }
.brand h1 { font-size: var(--step-2); }
.brand p { margin: 0.1rem 0 0; color: var(--ink-soft); font-size: var(--step--1); overflow-wrap: anywhere; }
.top-tools { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.logo-slot {
  flex: none; display: grid; place-items: center; min-width: var(--logo-h); height: var(--logo-h); padding: 0 0.8rem;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-small); background: var(--surface-soft);
  color: var(--ink-faint); font-size: 0.75rem; font-weight: 700; line-height: 1.15; text-align: center;
}
.logo-slot:hover { border-color: var(--primary); color: var(--primary); }
.logo-slot.has-logo { border: 0; background: transparent; padding: 0; min-width: 0; border-radius: 6px; }
.logo-slot img { display: block; height: auto; max-height: var(--logo-h); max-width: 14rem; width: auto; }
.logo-slot .plus { display: block; font-size: 1.3rem; line-height: 1; }

.navbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.navbar nav { max-width: var(--page-w); margin: 0 auto; padding: 0.5rem var(--gutter); display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: thin; }
.nav-item {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem; border-radius: 999px;
  border: 2px solid transparent; background: transparent; color: var(--ink-soft); font-weight: 800; font-size: 0.95rem;
}
.nav-item .ic { font-size: 1.15em; line-height: 1; }
.nav-item:hover { background: var(--bg-deep); color: var(--ink); }
.nav-item.active { background: var(--sun); color: var(--sun-ink); }

.pill { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.pill.practice { background: var(--sun-soft); color: var(--warn-ink); border: 2px solid var(--sun); }

.page { max-width: var(--page-w); margin: 0 auto; padding: 1.5rem var(--gutter) 3rem; width: 100%; }
.page.is-busy { opacity: 0.55; transition: opacity 0.15s; pointer-events: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h2 { font-size: var(--step-3); }
.page-head .intro { margin: 0.35rem 0 0; color: var(--ink-soft); max-width: 62ch; font-size: var(--step-1); }
.page-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.foot { padding: 1.5rem var(--gutter) 2rem; border-top: 1px solid var(--line); text-align: center; color: var(--ink-soft); font-size: var(--step--1); background: var(--surface); }
.foot p { margin: 0; }
.foot-note { margin-top: 0.2rem !important; color: var(--ink-faint); }

.print-head { display: none; }

#toasts { position: fixed; z-index: 90; left: 50%; bottom: 1rem; transform: translateX(-50%); display: grid; gap: 0.5rem; width: min(30rem, 92vw); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius-small); font-weight: 700; pointer-events: auto; transition: opacity 0.3s; }
.toast.ok { background: var(--good-ink); }
.toast.bad { background: var(--bad-ink); }
.toast.leaving { opacity: 0; }

/* ------------------------------------------------------------------ buttons, chips, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.45rem 1.1rem;
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 0.92rem; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--primary-ink); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn.sun:hover { background: var(--sun); border-color: var(--sun-ink); color: var(--sun-ink); }
.btn.danger { background: var(--bad-ink); border-color: var(--bad-ink); color: #fff; }
.btn.danger:hover { background: var(--bad-ink); color: #fff; filter: brightness(0.92); }
.btn.quiet { background: transparent; }
.btn.small { min-height: 2.2rem; padding: 0.2rem 0.85rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--line-strong); color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; font-weight: 700; }
.link:hover { color: var(--primary-deep); }
.icon-btn { border: 0; background: transparent; color: var(--ink-soft); width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.05rem; line-height: 1; }
.icon-btn:hover { background: var(--bg-deep); color: var(--ink); }

.chip {
  --chip: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.65rem; border-radius: 999px; background: var(--bg-deep);
  font-size: 0.8rem; font-weight: 800; line-height: 1.5; border: 0; color: var(--ink); white-space: nowrap;
}
.chip .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--chip); flex: none; }
.chip.soft { background: var(--surface-soft); border: 1px solid var(--line); }
.chip.clickable:hover { background: var(--primary-soft); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .dot, .chip.on .dot { box-shadow: 0 0 0 2px #fff; }

.segmented { display: inline-flex; border: 2px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--surface); }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 0.2rem 0.8rem; font-weight: 800; font-size: 0.82rem; color: var(--ink-soft); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.segmented button:not([aria-pressed="true"]):hover { background: var(--bg-deep); color: var(--ink); }

.tabs { display: flex; gap: 0.2rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button { flex: none; border: 0; background: none; padding: 0.55rem 1rem; font-weight: 800; color: var(--ink-soft); border-bottom: 4px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.tabs button:hover { color: var(--ink); background: var(--bg-deep); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }

/* ------------------------------------------------------------------ forms */
.input, select.input, textarea.input, .field input[type="text"], .field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="search"], .field input[type="password"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input:not([type]), .field select, .field textarea {
  width: 100%; padding: 0.55rem 0.75rem; border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); min-height: 2.6rem;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field { margin: 0 0 1rem; min-width: 0; }
.field > label, .field > .lbl { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 0.3rem; }
.field .req { color: var(--bad-ink); }
.field .help { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.field .error { margin: 0.3rem 0 0; color: var(--bad-ink); font-weight: 700; font-size: 0.85rem; }
.field-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 700; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--primary); }
.option-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.option-grid label { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border: 2px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: 0.88rem; background: var(--surface); }
.option-grid label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.option-grid input { accent-color: var(--sun); }
.field-note { color: var(--ink-soft); font-size: 0.82rem; margin: 0.35rem 0 0; }
.form-error { color: var(--bad-ink); font-weight: 700; margin: 0.5rem 0 0; }

.notice { margin: 0 0 1rem; padding: 0.65rem 0.95rem; background: var(--primary-soft); border-left: 5px solid var(--primary); border-radius: 4px var(--radius-small) var(--radius-small) 4px; font-size: var(--step--1); }
.notice strong { font-weight: 800; }
.notice.warn { background: var(--sun-soft); border-left-color: var(--sun); }
.notice.bad { background: #fde8e6; border-left-color: var(--bad); }
.notice.good { background: #e3f6e3; border-left-color: var(--good); }
.notice ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

.loading { color: var(--ink-soft); padding: 2rem 0; }

.empty-state { text-align: center; padding: 2.5rem 1rem; max-width: 34rem; margin: 0 auto; }
.empty-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.empty-state h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.empty-state p { color: var(--ink-soft); }
.empty-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; min-width: 0; }
.panel > h3, .panel-head h3 { font-size: var(--step-1); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.panel-head .sub, .sub { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }

/* tables */
.table-scroll { overflow-x: auto; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface-soft); color: var(--ink-soft); font-weight: 800; font-size: 0.8rem; position: sticky; top: 0; }
.data-table tbody th { font-weight: 700; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--surface-soft); }
.data-table tr.clickable { cursor: pointer; }

/* ------------------------------------------------------------------ dialogs */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(37, 35, 75, 0.32); }
dialog::backdrop { background: rgba(37, 35, 75, 0.42); }
dialog.modal { border-radius: var(--radius); width: min(36rem, 94vw); max-height: 90vh; }
dialog.modal.wide { width: min(58rem, 96vw); }
dialog.sheet { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(30rem, 100vw); border-radius: 0; }
.dlg { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.dlg header { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.dlg header h2 { margin: 0; font-size: var(--step-2); flex: 1; }
.dlg .body { padding: 1.2rem 1.4rem; overflow-y: auto; flex: 1; }
.dlg footer { padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }

.set-group { margin: 0 0 1.5rem; }
.set-group h3 { margin: 0 0 0.6rem; font-size: var(--step-1); }
.setting { margin-bottom: 0.9rem; }
.setting label.lbl { display: block; font-weight: 800; margin-bottom: 0.25rem; font-size: var(--step--1); }
.setting input[type="text"], .setting input[type="number"], .setting select { width: 100%; padding: 0.5rem 0.6rem; border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); }
.setting .tog { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 700; }
.setting .tog input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.privacy { padding: 0.65rem 0.85rem; border-radius: var(--radius-small); background: var(--primary-soft); font-size: var(--step--1); margin: 0 0 1rem; }
.privacy.cloud { background: var(--sun-soft); }
.test-result { margin-top: 0.5rem; font-size: var(--step--1); }
.test-result.ok { color: var(--good-ink); font-weight: 800; }
.test-result.bad { color: var(--bad-ink); font-weight: 800; }

/* ------------------------------------------------------------------ the student's picture, menus, sign-in */
.spic {
  --av: var(--primary);
  flex: none; position: relative; display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; overflow: hidden;
  background: var(--primary-soft); color: var(--ink); border: 3px solid var(--av); font: 700 1rem/1 var(--font-heading);
}
.spic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spic.small { width: 1.9rem; height: 1.9rem; border-width: 2px; font-size: 0.72rem; }
.spic.chip { width: 3.3rem; height: 3.3rem; font-size: 1.1rem; }
.spic.big { width: 6rem; height: 6rem; border-width: 4px; font-size: 1.9rem; }
.spic.huge { width: 9rem; height: 9rem; border-width: 5px; font-size: 2.8rem; }
.spic.dashed { border: 2px dashed var(--line-strong); background: var(--surface-soft); color: var(--ink-faint); }
.spic .ini { line-height: 1; }

.menu-anchor { position: relative; }
.student-chip {
  display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.2rem 0.85rem 0.2rem 0.25rem; border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface-soft); text-align: left; max-width: 18rem;
}
.student-chip:hover:not(:disabled) { border-color: var(--primary); background: var(--surface); }
.student-chip:disabled { cursor: default; }
.student-chip .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.student-chip .who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.student-chip .who small { color: var(--ink-soft); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-chip .caret { color: var(--ink-soft); font-size: 0.8rem; }
.student-chip.no-student .who strong { color: var(--primary-deep); }

.menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 60; min-width: 15rem; max-width: 20rem; padding: 0.35rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-small); box-shadow: 0 14px 40px rgba(37, 35, 75, 0.2);
}
.menu button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.7rem; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 700; font-size: 0.92rem; }
.menu button:hover, .menu button:focus-visible { background: var(--primary-soft); outline: none; }
.menu button.current { background: var(--sun-soft); }
.menu .mi { width: 1.4rem; text-align: center; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0; }
.menu-heading { margin: 0.2rem 0.7rem 0.3rem; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }

.logo-slot.fixed { cursor: default; }
.logo-slot.fixed:hover { border-color: var(--line-strong); color: var(--ink-faint); }
.logo-slot.has-logo.fixed:hover { color: inherit; }

.page-auth { max-width: 62rem; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 1.5rem 0 1rem; }
.auth-hero .hero-line { font: 700 var(--step-3)/1.15 var(--font-heading); margin: 0 0 1.5rem; color: var(--ink); }
.band-path { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.4rem; counter-reset: none; }
.band-path li { --c: var(--primary); display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.8rem 0.25rem 0.5rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--c); font-weight: 800; font-size: 0.88rem; }
.band-path li::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c); flex: none; }
.band-path li + li::after { display: none; }
.auth-card { padding: 1.6rem 1.7rem 1.8rem; }
.auth-form h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.auth-form .field { margin-bottom: 0.9rem; }
.btn.wide { width: 100%; min-height: 2.9rem; margin-top: 0.5rem; }
.pass-box { position: relative; }
.pass-box input { padding-right: 4.2rem !important; }
.show-pass { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 0.82rem; }
.login-roles { display: grid; gap: 0.9rem; margin: 0.2rem 0 1rem; }
.login-role small { display: block; margin-top: 0.3rem; font-size: 0.82rem; }
.role-pick { border: 0; padding: 0; margin: 0 0 1rem; }
.role-pick legend { font-weight: 800; font-size: 0.88rem; margin-bottom: 0.4rem; padding: 0; }
.role-pick > .role-card { display: flex; font-size: inherit; font-weight: inherit; margin-bottom: 0.4rem; }
.role-card { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.85rem; margin-bottom: 0.4rem; border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); cursor: pointer; }
.role-card input { margin-top: 0.3rem; accent-color: var(--primary); }
.role-card strong { display: block; }
.role-card small { color: var(--ink-soft); font-size: 0.82rem; }
.role-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
fieldset.field > legend { font-weight: 800; font-size: 0.88rem; margin-bottom: 0.3rem; padding: 0; }
dialog.modal.narrow { width: min(28rem, 94vw); }

.stars { display: inline-flex; gap: 0.05rem; letter-spacing: 0; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line-strong); font-size: 1.05em; }
.stars i.on { color: var(--warn); }
.star-input { display: inline-flex; flex-wrap: wrap; gap: 0.1rem; }
.star-input button { border: 0; background: none; padding: 0 0.1rem; min-width: 2.1rem; min-height: 2.2rem; font-size: 1.7rem; line-height: 1; color: var(--line-strong); border-radius: 8px; }
.star-input button.on { color: var(--warn); }
.star-input button:hover { background: var(--sun-soft); }

.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 62rem) {
  .auth-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .auth-hero .hero-line { font-size: var(--step-2); margin-bottom: 1rem; }
}
@media (max-width: 40rem) {
  :root { --logo-h: 2.8rem; }
  .top-in { flex-wrap: wrap; }
  .brand { flex: 1 1 8rem; }
  .brand h1 { font-size: var(--step-1); }
  .top-tools { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .student-chip { max-width: 70%; }
  .page { padding-top: 1.1rem; }
  .page-head .intro { font-size: var(--step-0); }
  .dlg header, .dlg .body, .dlg footer { padding-left: 1rem; padding-right: 1rem; }
  .menu { max-width: calc(100vw - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ print: one clean page, no buttons */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; display: block; font-size: 11pt; }
  .stripe, .navbar, .top-tools .menu-anchor + .menu-anchor, .skip-link, .page-tools, .btn, .viz-tools, .segmented, .tabs, #toasts, .menu, dialog, .no-print { display: none !important; }
  .top { border-bottom: 2px solid var(--ink); }
  .top-in { padding: 0 0 6mm; }
  .student-chip { border: 0; background: none; }
  .student-chip .caret { display: none; }
  .print-head { display: flex; justify-content: space-between; padding: 2mm 0 4mm; font-size: 10pt; color: var(--ink-soft); }
  .page { max-width: none; padding: 0; }
  .panel, .viz { break-inside: avoid; }
  .viz-table { display: none !important; }
  .viz-body[hidden] { display: block !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .foot { border: 0; padding-top: 4mm; background: none; }
  .page.is-busy { opacity: 1; }
}
