/* Staff panel additions: sign-in tabs, My sign-in, Staff, Roles, Departments, Activity log. Uses the tokens in panel.css. */
/* The super admin rail holds 14 items: tighter spacing so it fits a laptop screen; scrolls only if it still cannot. */
.rail { gap: 14px; padding-top: 20px; padding-bottom: 16px; }
.rail__foot { padding-top: 12px; gap: 8px; }
.rail__brand img { width: 112px; }
.rail__nav { overflow-y: auto; min-height: 0; }
.rail__nav a { padding: 7px 12px; font-size: 14.5px; }
.rail__group { margin: 10px 12px 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-2); }
.rail__foot span small { display: block; color: var(--on-navy-2); font-size: 12px; margin-top: 2px; }
.rail__foot span { color: #fff; }
.rail__foot form { margin: 0; }
.rail__foot button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.rail__foot button .ico { width: 16px; height: 16px; }
.rail__foot a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* sign-in */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 22px 0 20px; border-radius: 12px; background: var(--sand); }
.seg a { display: grid; place-items: center; min-height: 40px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.seg a[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(19,37,60,.08); }
.auth .lead { margin: 10px 0 20px; color: var(--ink-2); }
.auth__alt { margin-top: 14px; text-align: center; }
.code-input { font-size: 22px !important; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-align: center; }

/* facts lists */
.facts { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 6px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.who { margin-bottom: 16px; }

/* My sign-in */
.card + .card, .card + .register, .register + .card, .register + .register { margin-top: 16px; }
.setup__steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 24px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.setup__steps > li { counter-increment: s; padding: 18px; border-radius: var(--r-md); background: var(--ground); }
.setup__steps h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.setup__steps h3::before { content: counter(s); display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; }
.qr { width: 184px; height: 184px; padding: 10px; margin: 6px 0 12px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.secret { font-size: 15px; word-spacing: .2em; overflow-wrap: anywhere; padding: 8px 10px; background: #fff; border-radius: 8px; margin-top: 4px; }
.codes { columns: 2; gap: 24px; padding-left: 1.4em; margin: 16px 0 18px; font-size: 18px; line-height: 1.9; }
.narrow { max-width: 420px; margin-top: 14px; }
.editbox { border-top: 1px solid var(--line); padding: 16px 0 0; margin-top: 16px; }
.editbox summary h3 { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.editbox summary h3::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.editbox[open] summary h3::after { transform: rotate(-135deg); }
.register__foot { display: flex; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
.table--plain tbody tr { cursor: default; }
.table--plain tbody tr:hover { background: none; }

/* Staff */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.actions form { margin: 0; }
.btn.danger { color: var(--red); }
.add-staff { margin-top: 16px; }
.add-staff .filters { margin-top: 12px; }
[data-departments][hidden] { display: none; }

/* Roles */
.matrix th, .matrix td { white-space: normal; }
.matrix thead th { vertical-align: bottom; min-width: 110px; }
.matrix thead th a { color: var(--ink); font-weight: 500; text-decoration: none; }
.matrix thead th a:hover { text-decoration: underline; }
.matrix thead th small { display: block; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.matrix tbody th[scope="row"] { font-weight: 400; text-align: left; padding: 11px 14px 11px 22px; border-bottom: 1px solid var(--line); min-width: 260px; }
.matrix tbody tr { cursor: default; }
.matrix tbody tr:hover { background: none; }
.matrix__group th { background: var(--ground); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 10px 22px; font-weight: 500; }
.matrix__cell { text-align: center; padding: 11px 14px !important; }
.matrix__cell small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 0 !important; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.tick .ico { width: 15px; height: 15px; }
.role-form h2 { margin: 26px 0 12px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 24px; }
.perm-group { border: 0; padding: 0; margin: 0; }
.perm-group legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.perm-group .check { width: 100%; }
.perm-group .badge { font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.perm-group .badge::before { display: none; }
.check:has(input:disabled) { opacity: .65; cursor: not-allowed; }
.danger-zone { margin-top: 14px; }

/* Departments, Activity log */
.cell-input { width: 100%; min-width: 180px; height: 38px; font: 400 15px var(--font); color: var(--ink); background: var(--sand); border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 10px; }
.cell-input--num { width: 70px; min-width: 0; }
.cell-input:focus, .filter-input:focus { background: #fff; border-color: var(--line); outline: none; box-shadow: 0 0 0 3px var(--gold-pale); }
.filter-input { height: 36px; font: 400 14px var(--font); color: var(--ink); background: var(--sand); border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 10px; }
.filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wrap-anywhere { overflow-wrap: anywhere; min-width: 200px; }
.access-note { margin-top: 14px; }

@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .rail__group { display: none; }
  .rail__foot form button span, .rail__foot small { display: none; }
}
@media (max-width: 640px) {
  .codes { columns: 1; }
  .matrix tbody th[scope="row"] { min-width: 200px; }
}
@media print { .rail__foot, .print-hide { display: none !important; } }

/* Student queue (phase 2) */
.queue-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.queue-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; background: var(--sand); }
.queue-tabs a:hover { background: var(--sand-2); }
.queue-tabs a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 500; }
.queue-tabs a[aria-current="page"] .count { background: rgba(255,255,255,.18); color: #fff; }
.queue-tabs a:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: 2px; }
.register__head h2 small { font-size: 13px; font-weight: 400; }
.more__body label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.check--small { padding: 7px 12px; font-size: 14px; }
.table td small { display: block; }
.checks--stack { display: grid; gap: 6px; }
.checks--stack .check { display: flex; }
.check small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.check:has(input[type="radio"]:disabled) { opacity: .65; cursor: not-allowed; }
.decision-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.decision-form fieldset { border: 0; padding: 0; margin: 0; }
.decision-form textarea, .dash__side textarea { width: 100%; }
[data-reason][hidden] { display: none; }
.decline-box { margin-top: 10px; }
.decline-box summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 6px 0; }
.decline-box[open] summary { margin-bottom: 8px; }
.timeline__note { display: block; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.setting-card { margin-top: 16px; }
.setting-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.setting-card__head > div { flex: 1 1 320px; }
.setting-card__head p { margin-top: 6px; max-width: 64ch; }
.setting-card__head form { display: flex; align-items: center; gap: 10px; }
.preview-title { font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
.mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.7 var(--font); background: var(--ground); border-radius: var(--r-sm); padding: 14px 16px; margin: 0; }
.notify-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.notify-row p { margin: 0; flex: 1 1 280px; }
@media (max-width: 640px) { .queue-tabs a { min-height: 36px; padding: 0 11px; font-size: 14px; } }

/* Period reports, All Schools, Report View, dashboard (phase 3) */
.period-card { margin-bottom: 16px; }
.period-card .register__head h2 .badge { font-size: 12px; }
.report-intro p + p { margin-top: 8px; }
.report-intro__privacy { color: var(--red); }
.report-intro__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.report-checks { margin-top: 16px; background: var(--amber-bg); box-shadow: none; }
.report-checks h2 { font-size: 17px; margin-bottom: 8px; }
.report-checks ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.report-checks a { color: var(--ink); }
.report-form { display: grid; gap: 16px; margin-top: 16px; }
.report-section h2 { margin-bottom: 8px; }
.rq { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 28px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.rq:first-of-type { border-top: 0; }
.rq--sub .rq__q { padding-left: 26px; }
.rq--flag { background: linear-gradient(90deg, var(--amber-bg), transparent 70%); margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: var(--r-sm); }
.rq:target { box-shadow: inset 3px 0 0 var(--gold); }
.rq__q label { display: flex; gap: 10px; font-weight: 500; line-height: 1.4; }
.rq__no { flex: none; min-width: 26px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.rq__help { margin: 4px 0 0 36px; font-size: 14px; color: var(--ink-2); }
.rq__a textarea, .rq__a select, .rq__note { width: 100%; font: 400 15px var(--font); color: var(--ink); background: var(--sand); border: 1px solid transparent; border-radius: var(--r-sm); padding: 9px 11px; }
.rq__a textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.rq__num-input { display: inline-flex; align-items: center; gap: 8px; }
.rq__num-input input { width: 140px; height: 40px; font: 500 16px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--sand); border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 11px; }
.rq__a :is(input, textarea, select):focus { background: #fff; border-color: var(--line); outline: none; box-shadow: 0 0 0 3px var(--gold-pale); }
.rq__unit { color: var(--ink-3); font-size: 14px; }
.rq__note { margin-top: 6px; font-size: 14px; padding: 7px 10px; }
.rq__value { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.rq__value--text { font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq__prev { margin: 6px 0 0; font-size: 13px; color: var(--blue); overflow-wrap: anywhere; }
.rq__system { margin: 6px 0 0; font-size: 13px; }
.rq__meta { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.rq__meta .badge { font-size: 11px; padding: 1px 7px; }
.rq__error { margin: 6px 0 0; font-size: 13px; color: var(--red); font-weight: 500; }
.rq__warn { margin: 6px 0 0; font-size: 13px; color: var(--amber); }
.btn--link { padding: 0; border: 0; background: none; color: var(--navy); text-decoration: underline; font: inherit; cursor: pointer; }
.report-actions { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-md); background: #fff; box-shadow: 0 -4px 18px rgba(19,37,60,.08); }
.assign-grid { display: grid; gap: 10px; margin-top: 12px; }
.assign-grid label { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: center; font-size: 14px; }
.assign-grid select { height: 36px; font: 400 14px var(--font); background: var(--sand); border: 0; border-radius: var(--r-sm); padding: 0 8px; }
.figures .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.figures th.num small { display: block; font-weight: 400; color: var(--ink-3); }
.figures td.num small { display: block; font-size: 12px; color: var(--ink-3); }
.figures .up, .figures td.num small.up { color: var(--green); }
.figures .down, .figures td.num small.down { color: var(--red); }
.figures__total td { font-weight: 600; }
.register { margin-bottom: 16px; }
.register__note { padding: 12px 22px 18px; margin: 0; }
.notes-card ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.context th[scope="row"] { white-space: normal; min-width: 220px; max-width: 280px; font-weight: 500; text-align: left; vertical-align: top; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.context td { min-width: 200px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.range-bar { margin: 0 0 20px; }
.range-bar a[aria-current] { pointer-events: none; }
.tile-group { margin-bottom: 18px; }
.tile-group h2 { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.bars { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; }
.bars__row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 12px; align-items: center; }
.bars__head { font-size: 12px; color: var(--ink-3); }
.bars__row span[role="cell"] { display: flex; align-items: center; gap: 8px; }
.bar { display: block; height: 12px; min-width: 2px; border-radius: 3px; }
.bar--a { background: var(--navy); }
.bar--b { background: var(--gold); }
.bars b { font-variant-numeric: tabular-nums; font-weight: 500; }
.period-edit { margin-bottom: 14px; }
.period-edit__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.period-edit__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.period-edit__form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.period-edit__form .cell-input { min-width: 150px; }
.period-edit__form .actions { margin: 0; padding: 0; border: 0; flex-basis: 100%; }
@media (max-width: 860px) {
  .rq { grid-template-columns: 1fr; }
  .rq__help { margin-left: 36px; }
  .rq__a { padding-left: 36px; }
  .assign-grid label { grid-template-columns: 1fr; }
  .bars__row { grid-template-columns: 70px 1fr 1fr; gap: 8px; }
}
@media print {
  .queue-tabs, .report-actions, .range-bar { display: none !important; }
  .table-scroll { overflow: visible !important; }
  .register, .card, .tile { break-inside: avoid; box-shadow: none; }
  .rq { break-inside: avoid; }
}

/* Files (phase 5) */
.files { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.files__folders { display: grid; gap: 2px; background: var(--card); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); }
.files__folders a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.files__folders a:hover { background: var(--sand); }
.files__folders a[aria-current="page"] { background: var(--navy); color: #fff; }
.files__folders b { font-weight: 500; font-size: 13px; opacity: .7; }
.files__main .register__head .back { margin: 0; }
.files__actions { margin: 0; padding: 0; border: 0; align-items: center; }
.upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upload-form .filter-input { min-width: 220px; flex: 1 1 220px; }
.file-pick { position: relative; cursor: pointer; overflow: hidden; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:focus-within { box-shadow: 0 0 0 3px var(--gold-pale); }
@media (max-width: 860px) { .files { grid-template-columns: 1fr; } .files__folders { grid-auto-flow: column; overflow-x: auto; } .files__folders a { white-space: nowrap; } }

/* Settings and report questions (phase 5) */
.settings-group { text-align: left; vertical-align: top; font-weight: 500; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); white-space: normal; min-width: 170px; }
.settings-group .badge { margin-top: 6px; }
.seg--wide { display: flex; flex-wrap: wrap; margin: 0 0 12px; }
.seg--wide a { flex: 1 1 auto; padding: 0 14px; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qitem { border-top: 1px solid var(--line); }
.qitem:first-child { border-top: 0; }
.qitem summary { display: flex; gap: 12px; align-items: baseline; padding: 12px 22px; cursor: pointer; list-style: none; }
.qitem summary::-webkit-details-marker { display: none; }
.qitem summary:hover { background: var(--ground); }
.qitem__no { flex: none; min-width: 26px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qitem__text b { font-weight: 500; }
.qitem__text small { display: block; color: var(--ink-3); margin-top: 2px; }
.qitem--retired .qitem__text b { color: var(--ink-3); }
.qitem__body { padding: 4px 22px 18px 60px; display: grid; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .qitem__body { padding-left: 22px; } }
.access-card { margin-bottom: 14px; }
.access-card h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.access-card ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.access-list dd { color: var(--ink-2); }
.settings-table tbody td:first-child { padding-left: 14px; }

/* Classes */
.hint { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin: -6px 0 18px; max-width: 70ch; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.class-form { max-width: 640px; }
.table--static tbody tr { cursor: default; }
.table--static tbody tr:hover { background: none; }
.pick { width: 44px; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.pick-table label { cursor: pointer; font-weight: 500; }
.archive-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.archive-form .btn--link { padding: 0; min-height: 36px; }
.archive-form--danger .btn--link, .archive-form--danger .btn--link:hover { color: var(--red); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #962f2f; }
.decide__list li > span { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.decide__list li:first-child > span { border-top: 0; padding-top: 0; }

/* Class timeline: one row per class, its bar placed by date across the track */
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.tl-views { margin: 0; }
.tl-nav { display: flex; gap: 6px; }
.tl-next svg { transform: scaleX(-1); }
.tl-bar .filters { margin-left: auto; }
.tl__scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tl__grid { min-width: 620px; }
.tl--month { min-width: 820px; }
.tl__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: stretch; border-top: 1px solid var(--line); }
.tl__head { border-top: 0; }
.tl__label { position: sticky; left: 0; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px 8px 0; min-width: 0; font-size: 14px; line-height: 1.35; background: var(--card); }
.tl__label a, .tl__label > span { font-weight: 500; overflow-wrap: anywhere; }
.tl__label small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }
.tl__dep { background: var(--ground); border-radius: var(--r-sm); border-top: 0; margin-top: 10px; }
.tl__dep + .tl__row { border-top: 0; }
.tl__dep .tl__label { padding-left: 10px; background: var(--ground); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.tl__dep .tl__label b { font-weight: 600; }
.tl__track { position: relative; min-height: 48px; }
.tl__head .tl__track { min-height: 28px; }
.tl__dep .tl__track { min-height: 0; }
.tl__tick { position: absolute; top: 0; bottom: 0; padding-left: 4px; border-left: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 28px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl__tick--strong { color: var(--ink-2); font-weight: 500; }
.tl__tick--today { color: var(--navy); font-weight: 600; }
.tl__tick:empty { border-left-color: rgba(29,54,85,.06); }
.tl--week .tl__row:not(.tl__head):not(.tl__dep) .tl__track { background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%; }
.tl__today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold-deep); }
.tl__bar { position: absolute; top: 10px; bottom: 10px; display: flex; align-items: center; min-width: 24px; padding: 0 8px; box-sizing: border-box; overflow: hidden;
  border-radius: 8px; background: var(--navy); color: var(--on-navy); font-size: 12px; white-space: nowrap; container-type: inline-size; }
.tl__bar b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl__unit { margin-left: 4px; }
.tl__bar--cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl__bar--cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl__bar--archived { background: var(--sand-2); color: var(--ink); }
@container (max-width: 90px) { .tl__unit { display: none; } }
.tl__key { margin: 14px 0 0; }
@media (max-width: 640px) { .tl__row { grid-template-columns: 140px minmax(0, 1fr); } .tl-bar .filters { margin-left: 0; } }
@media print { .tl__scroll { overflow: visible; } .tl__grid { min-width: 0; } .tl__bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.register__foot:has(> span) { justify-content: space-between; align-items: center; gap: 12px; }
.card.editbox { padding: 26px; border-top: 0; margin-top: 16px; }
.card.editbox summary h2 { margin-bottom: 0; }
.dash__side .card + .card { margin-top: 16px; }

/* Student record: questionnaire answers, question above answer (the questions are long). */
.details--qn { grid-template-columns: 1fr; gap: 2px; }
.details--qn dd + dt { margin-top: 12px; }
