/*
 * app.css — design tokens and the base shell (P0-07).
 * Tokens come from docs/DESIGN_SYSTEM.md. The brand colour is set on <html> from the one config place,
 * so a single edit recolours the product. P0-08 replaces this file with the compiled Tailwind output;
 * until then it must stay small enough to keep the shell usable.
 */

:root {
    --brand: #0f5132;
    --brand-strong: #0a3b24;
    --brand-soft: #e8f1ec;
    --ink: #1f2937;
    --ink-soft: #5b6675;
    --line: #e3e7ec;
    --surface: #ffffff;
    --page: #f6f8f7;
    --danger: #b42318;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
    --font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--page);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
    padding: 10px 16px; border-radius: 0 0 var(--radius) 0; z-index: 20;
}
.skip-link:focus { left: 0; }

.topbar {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px; position: sticky; top: 0; z-index: 10;
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand strong { font-size: 17px; letter-spacing: -.01em; color: var(--brand); }
.brand span { color: var(--ink-soft); font-size: 13px; }

.topbar .spacer { flex: 1 1 auto; }

.topbar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: var(--ink-soft); font-size: 14px; }
.topbar nav a.active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); padding-bottom: 2px; }
.topbar nav button {
    font: inherit; font-size: 14px; color: var(--ink-soft); background: none;
    border: 0; padding: 0; cursor: pointer;
}
.topbar nav button:hover { color: var(--brand); }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; padding: 24px; align-items: start; }

.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.sidebar h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 6px 8px 10px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { margin-top: 2px; }
.sidebar a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.sidebar a:hover { background: var(--brand-soft); text-decoration: none; }
.sidebar a.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.card + .card { margin-top: 18px; }
.card h1, .card h2 { margin: 0 0 6px; letter-spacing: -.01em; }
.card h1 { font-size: 20px; }
.card h2 { font-size: 16px; }
.card p.lede { color: var(--ink-soft); margin: 0 0 16px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink-soft); font-weight: 600; font-size: 13px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; }

.btn {
    display: inline-block; font: inherit; font-size: 14px; cursor: pointer;
    padding: 9px 16px; border-radius: 8px; border: 1px solid var(--brand);
    background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); }

.footer { padding: 18px 24px 28px; color: var(--ink-soft); font-size: 13px; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--page); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; }
.auth-card h1 { font-size: 19px; margin: 0 0 4px; color: var(--brand); }
.auth-card p.lede { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
/* The product name is a wordmark link, not a heading: the page owns the card's only <h1> (duplicate-h1
   fix, 2026-11-12). Same size and colour as the old <h1> so nothing on the card moves. */
.auth-card a.auth-brand { display: inline-block; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--brand); margin: 0 0 4px; }
.auth-card a.auth-brand:hover { text-decoration: none; color: var(--brand-strong); }
/* The way out of an auth card back into the site (/register/ and /platform/login/ had no links at all). */
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.auth-links a { color: var(--ink-soft); }
.auth-links a:hover { color: var(--brand); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.field input {
    width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }

/* The school site's content column. This was a style="padding: 24px" attribute on <main>, which the
   strict CSP (style-src 'self') refused — the padding never applied and the console carried a
   violation on every school page. */
.school-main { padding: 24px; }

/* The Bangla typography samples on the UI check page (see views/pages/ui-check.php). The sizes used to
   be style attributes, which the strict CSP refused, so the page rendered at the body size. */
.ui-sample-lg { font-size: 26px; line-height: 1.5; }
.ui-sample { font-size: 16px; }

@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .sidebar { order: 2; }
    .topbar { padding: 10px 16px; }
}

/* ---------------------------------------------------------------- print */
@media print {
    .topbar, .sidebar, .footer, .no-print { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .shell { display: block; padding: 0; }
    .card { border: 0; box-shadow: none; padding: 0; }
    a { color: #000; text-decoration: none; }
}
/* ================================================================ P0-08 component kit
 * Every class here is used by views/pages/ui-kit.php and by the real screens as they land. Tokens stay
 * in :root above; this section adds no new colour, only states built from the existing ones. The 360px
 * column is the target of the responsive rules at the bottom, not an afterthought.
 */

/* ---------------------------------------------------------------- icons */
.icon-sprite { display: none; }

.icon {
    width: 18px; height: 18px; flex: 0 0 auto;
    vertical-align: -3px; stroke-width: 2;
}
.icon-sm { width: 15px; height: 15px; vertical-align: -2px; }
.icon-lg { width: 22px; height: 22px; vertical-align: -5px; }
.icon-xl { width: 34px; height: 34px; stroke-width: 1.6; vertical-align: middle; }

/* An icon and its label sit on one line and stay centred when the label wraps. */
.with-icon { display: inline-flex; align-items: center; gap: 7px; }
.sidebar a.with-icon { display: flex; }
.sidebar a.with-icon .icon { color: var(--ink-soft); }
.sidebar a.active.with-icon .icon { color: var(--brand-strong); }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
    padding: 9px 16px; border-radius: 8px; border: 1px solid var(--brand);
    background: var(--brand); color: #fff; text-decoration: none;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
/* The push card hides the Enable control with the `hidden` attribute once the browser is subscribed; an
   author `display` rule outranks the UA stylesheet's `[hidden]`, so the attribute needs this explicit rule. */
.btn[hidden] { display: none; }
.btn .icon { width: 16px; height: 16px; }

.btn.secondary { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn.secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }

.btn.ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }

.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #8f1c13; border-color: #8f1c13; }

.btn.danger-outline { background: var(--surface); color: var(--danger); border-color: #f0c2bd; }
.btn.danger-outline:hover { background: #fdf2f1; border-color: var(--danger); }

.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- form fields */
.field { margin-bottom: 14px; }
.field label, .field .label {
    display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; font-weight: 500;
}
.field .req { color: var(--danger); margin-left: 2px; }

.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="date"], .field input[type="tel"],
.field input[type="search"], .field input[type="time"], .field select, .field textarea,
input.input, select.input, textarea.input {
    width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
input.input:focus, select.input:focus, textarea.input:focus {
    outline: 2px solid var(--brand-soft); border-color: var(--brand);
}
.field input[readonly], .field input[disabled], .field select[disabled] {
    background: #f4f6f8; color: var(--ink-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3af; }

.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.field .error { font-size: 12.5px; color: var(--danger); margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand); }

/* A switch is a checkbox with a styled track; the input stays focusable and in the tab order. */
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
    width: 38px; height: 22px; border-radius: 999px; background: #cfd6dd; position: relative;
    transition: background-color .14s ease;
}
.switch .track::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.25);
    transition: transform .14s ease;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand-soft); outline-offset: 2px; }

/* ---------------------------------------------------------------- cards, stats, sections */
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head .grow { flex: 1 1 auto; min-width: 0; }
.card-head h2, .card-head h1 { margin: 0; }
.card-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13.5px; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; color: var(--ink); }
.stat .delta { font-size: 13px; margin-top: 4px; color: var(--ink-soft); }
.stat .delta.up { color: #1d7a44; }
.stat .delta.down { color: var(--danger); }

.section-title {
    font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft);
    margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.data thead th {
    position: sticky; top: 0; z-index: 1; background: #fafbfb; color: var(--ink-soft);
    font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
}
table.data tbody tr:hover { background: #fafbfb; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable::after { content: "\2195"; font-size: 10px; margin-left: 5px; color: #b6bec8; }
table.data th.sortable[aria-sort="ascending"]::after { content: "\2191"; color: var(--brand); }
table.data th.sortable[aria-sort="descending"]::after { content: "\2193"; color: var(--brand); }
table.data.compact th, table.data.compact td { padding: 6px 9px; }

.table-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.table-toolbar .search { flex: 1 1 220px; min-width: 0; }
.table-toolbar .search input { width: 100%; }
.table-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft);
}

.pagination { display: flex; align-items: center; gap: 4px; }
.pagination a, .pagination span {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--ink);
}
.pagination a:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- badges and alerts */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 500; }
.badge.ok { background: #e6f4ec; color: #1d7a44; }
.badge.warn { background: #fdf3e3; color: #92620d; }
.badge.danger { background: #fdeceb; color: #9b1c14; }
.badge.info { background: #e9f0fb; color: #1b4f9c; }
.badge.muted { background: #eef1f4; color: var(--ink-soft); }

.alert {
    display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
    border: 1px solid var(--line); background: #fafbfb; font-size: 14px;
}
.alert + .alert { margin-top: 10px; }
.alert .icon { margin-top: 1px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert.ok { border-color: #bde3cd; background: #f2faf5; color: #14532d; }
.alert.warn { border-color: #f2dcb3; background: #fffbf2; color: #7a4f0a; }
.alert.danger { border-color: #f3c6c1; background: #fef6f5; color: #8f1c13; }
.alert.info { border-color: #c6d8f2; background: #f5f9ff; color: #17427e; }

/* ---------------------------------------------------------------- empty state */
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.empty-state .icon { color: #b6bec8; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 5px; font-size: 15px; color: var(--ink); }
.empty-state p { margin: 0 auto 14px; font-size: 13.5px; max-width: 380px; }

/* ---------------------------------------------------------------- modal (built by ui.js) */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 60; background: rgba(16, 24, 40, .45);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    overflow-y: auto;
}
.modal {
    width: 100%; max-width: 460px; background: var(--surface); border-radius: 14px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, .22); overflow: hidden;
    max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal header { padding: 18px 20px 0; }
.modal header h2 { margin: 0; font-size: 16.5px; }
.modal[data-kind="error"] header h2 { color: var(--danger); }
.modal[data-kind="success"] header h2 { color: #14532d; }
.modal .body { padding: 10px 20px 4px; color: var(--ink-soft); font-size: 15px; overflow-y: auto; }
.modal .body p { margin: 0 0 8px; line-height: 1.5; overflow-wrap: anywhere; }
.modal .body p:last-child { margin-bottom: 0; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 18px; }
/* A dialog is a thumb target too: 40px minimum, at every width. */
.modal footer .btn { min-height: 40px; min-width: 88px; }

/* ---------------------------------------------------------------- toasts (built by ui.js) */
.toast-stack {
    position: fixed; z-index: 70; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px;
    max-width: min(360px, calc(100vw - 36px));
}
.toast {
    display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 10px;
    background: #1f2937; color: #fff; font-size: 14px; box-shadow: 0 10px 24px rgba(16,24,40,.22);
    overflow-wrap: anywhere;
}
.toast.ok { background: #14532d; }
.toast.danger { background: #8f1c13; }
.toast.warn { background: #7a4f0a; }
.toast.info { background: #1f2937; }
.toast-close {
    flex: 0 0 auto; min-height: 40px; min-width: 40px; margin: -8px -6px -8px 4px;
    background: transparent; border: 0; color: inherit; font: inherit; font-size: 12px;
    text-decoration: underline; cursor: pointer; border-radius: 8px;
}
.toast-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* ---------------------------------------------------------------- inline form message and field errors
   The banner forms.js creates for a 422 (or for a screen that asks for `data-form-message`), and the note it
   puts under one input. Both are drawn with textContent, so these are the only colours involved. */
.form-message {
    display: block; margin: 0 0 14px; padding: 11px 13px; border-radius: var(--radius);
    border: 1px solid var(--line); background: #fafbfb; font-size: 14px; line-height: 1.45;
}
.form-message[hidden] { display: none; }
.form-message[data-kind="error"] { border-color: #f3c6c1; background: #fef6f5; color: #8f1c13; }
.form-message[data-kind="success"] { border-color: #bde3cd; background: #f2faf5; color: #14532d; }
.form-message[data-kind="warning"] { border-color: #f2dcb3; background: #fffbf2; color: #7a4f0a; }
.form-message[data-kind="info"] { border-color: #c6d8f2; background: #f5f9ff; color: #17427e; }

.field-error { margin: 5px 0 0; font-size: 12.5px; color: #8f1c13; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: #d94a3d; background: #fffafa;
}

/* ---------------------------------------------------------------- tabs (underline, not pills) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button {
    font: inherit; font-size: 14px; color: var(--ink-soft); background: none; border: 0;
    padding: 9px 12px 10px; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover, .tabs button:hover { color: var(--brand); text-decoration: none; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] {
    color: var(--brand); border-bottom-color: var(--brand); font-weight: 600;
}

/* ---------------------------------------------------------------- helper layout */
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }

/* Language sample block: shows the same component in Bangla and English side by side. */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.lang-panel { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; background: #fcfdfc; }
.lang-panel > h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* 360px width is a hard requirement: verify every component at that width. */
@media (max-width: 480px) {
    .card { padding: 16px; }
    .card-head { flex-wrap: wrap; }
    .btn-group .btn { flex: 1 1 auto; }
    .table-toolbar { padding: 9px 10px; }
    .toast-stack { right: 10px; left: 10px; bottom: 10px; max-width: none; }
    .stat .value { font-size: 22px; }
    /* A dialog has to fit a 360px screen without a horizontal scrollbar, and its one action has to be
       reachable with a thumb. The footer button spans the width at this size. */
    .modal-backdrop { padding: 12px; align-items: flex-start; }
    .modal { max-height: calc(100vh - 24px); margin: auto 0; }
    .modal header { padding: 15px 15px 0; }
    .modal .body { padding: 9px 15px 4px; }
    .modal footer { padding: 14px 15px 15px; }
    .modal footer .btn { flex: 1 1 auto; }
}

/* At 360px the table scrolls inside its own container; tightening the cells keeps a full row
   readable without a page-level horizontal scrollbar. */
@media (max-width: 480px) {
    table.data { font-size: 13px; }
    table.data th, table.data td { padding: 7px 8px; }
    table.data thead th { font-size: 11.5px; letter-spacing: .02em; }
    .table-wrap { max-height: none; }
    .badge { font-size: 11.5px; padding: 2px 7px; }
}

/*
 * P3-01: the gate scanner and the gate pass card.
 *
 * The scanner is a phone-first screen, so its layout is one column at every width and its targets are
 * thumb-sized. The toggle is a pair of radio labels rather than a button group: a radio group is what a
 * screen reader announces correctly and what a fat thumb hits without aiming.
 */
.gate-scanner-body { background: var(--page); }

.gate-scanner {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gate-scanner-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.gate-scanner-head h1 { margin: 0; font-size: 19px; }
.gate-scanner-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13.5px; }

.gate-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.gate-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

.gate-toggle-option {
    display: flex; align-items: center; justify-content: center;
    min-height: 62px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfb;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    user-select: none;
}

.gate-toggle-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gate-toggle-option.gate-toggle-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.gate-toggle-option:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

.gate-camera-button { min-height: 54px; font-size: 16px; }
.gate-camera { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.gate-camera video { width: 100%; max-height: 320px; border-radius: var(--radius); background: #000; object-fit: cover; }

.gate-token-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.gate-token-form input { font-size: 16px; letter-spacing: .02em; }

.gate-answer {
    border-radius: var(--radius);
    border: 2px solid var(--line);
    background: var(--surface);
    padding: 16px;
    box-shadow: var(--shadow);
}

.gate-answer-main { display: flex; gap: 14px; align-items: center; }
.gate-answer-main img { border-radius: 8px; object-fit: cover; background: var(--brand-soft); }
.gate-answer-headline { font-size: 22px; font-weight: 700; line-height: 1.2; }
.gate-answer-person { font-size: 17px; margin-top: 2px; }
.gate-answer-detail { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.gate-answer-meta { font-size: 13px; margin-top: 6px; }

.gate-answer-ok { border-color: #1c7a4a; background: #f2faf5; }
.gate-answer-ok .gate-answer-headline { color: #14603a; }
.gate-answer-duplicate { border-color: #a86b12; background: #fdf8ee; }
.gate-answer-duplicate .gate-answer-headline { color: #8a5606; }
.gate-answer-refused { border-color: var(--danger); background: #fdf3f2; }
.gate-answer-refused .gate-answer-headline { color: var(--danger); }

.gate-queue .card-head { display: flex; align-items: flex-start; gap: 12px; }
.gate-queue h2 { margin: 0; font-size: 15px; }
.gate-queue p { margin: 4px 0 10px; font-size: 13px; color: var(--ink-soft); }

/* The gate pass on screen: the symbol beside the code, so an operator can read either one. */
.gate-card-pass { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 10px 0 14px; }
.gate-card-qr svg { display: block; width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 6px; }
.gate-card-token { flex: 1 1 260px; min-width: 200px; }
.gate-card-token .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.gate-card-token code { display: block; margin-top: 4px; font-size: 13.5px; word-break: break-all; background: var(--brand-soft); padding: 8px 10px; border-radius: 6px; }
.gate-card-token p { margin: 8px 0 0; font-size: 13px; }

/* ---------------------------------------------------------------- attendance devices (P3-02) */

/* A shared secret is read once and copied by hand into a terminal: monospace, selectable, and it wraps so a
   43 character value does not push the card wider than a 360px phone. */
.device-secret { margin: 6px 0 0; padding: 9px 11px; border-radius: 6px; background: var(--brand-soft);
    font-size: 13px; word-break: break-all; user-select: all; }
.device-secret code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* The signed payload the simulator produced. It scrolls inside its own box rather than stretching the page. */
.device-payload { margin: 6px 0 0; max-height: 240px; overflow: auto; padding: 9px 11px; border-radius: 6px;
    background: #fafbfb; border: 1px solid var(--line); font-size: 12px; white-space: pre-wrap;
    word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------------------------------------------------------------- OMR sheets and the scan overlay (P3-05) */

/* A sheet id and a layout code are read aloud and typed at a scanner, so they are set in a mono face. */
.omr-code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; letter-spacing: .04em; }

/* The scan with the bubble grid the reader used drawn over it. The image keeps its own aspect ratio, and the
   overlay is stretched over exactly the same box, so a circle lands on the bubble it was measured at. */
.omr-scan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #ffffff; }
.omr-scan-image { display: block; width: 100%; height: auto; }
.omr-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.omr-overlay circle { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.omr-overlay circle.omr-overlay-marked { stroke: #1d7a44; fill: rgba(29, 122, 68, .16); }
.omr-overlay circle.omr-overlay-blank { stroke: #9aa3af; }
.omr-overlay circle.omr-overlay-ambiguous { stroke: #92620d; fill: rgba(146, 98, 13, .18); }

/* ---------------------------------------------------------------- live bus location (P3-07) */

/* The office track. There is no map tile: the route's own stop coordinates are drawn as a line in a 100 x 100
   viewBox and stretched to the card, so a school with one route and a school with twelve look the same.
   `vector-effect: non-scaling-stroke` on the line keeps the stroke 2px whatever the box is stretched to. */
.track-svg { display: block; width: 100%; height: 210px; margin: 4px 0 14px; border: 1px solid var(--line);
    border-radius: var(--radius); background: #fbfcfc; }
.track-vehicle { stroke: #ffffff; stroke-width: 1.5; }

/* The driver page: one column, thumb-sized targets, no sidebar. Same reasoning as the gate scanner - a person
   holding a phone in a moving bus has three taps of screen and no room for a menu. */
.drive-body { background: var(--page); }
.drive-shell { display: block; max-width: 560px; margin: 0 auto; padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); }
.drive-head { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 14px; }
.drive-head h1 { margin: 0; font-size: 19px; line-height: 1.2; }
.drive-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.drive-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px; margin: 0 0 14px; }
.drive-card .card-head { display: flex; align-items: flex-start; gap: 10px; }
.drive-card .card-head h2 { margin: 0; font-size: 15px; }
.drive-card .card-head p { margin: 4px 0 10px; font-size: 13px; color: var(--ink-soft); }
.drive-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 4px 0 14px; }
.drive-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.drive-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; word-break: break-word; }
.drive-big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    min-height: 76px; padding: 14px; border: 0; border-radius: var(--radius); background: var(--brand);
    color: #ffffff; font-size: 18px; font-weight: 600; font-family: inherit; cursor: pointer;
    touch-action: manipulation; }
.drive-big:hover { background: var(--brand-strong); }
.drive-big:disabled { opacity: .55; cursor: default; }
.drive-big-stop { background: var(--danger); }
.drive-big-stop:hover { background: #8f1c13; }
.drive-big .icon { stroke: currentColor; }
.drive-help { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.drive-help li { margin: 0 0 6px; }
@media (max-width: 380px) {
    .drive-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- language control
 * The shared switch (views/partials/lang-switch.php): two options, the current one marked, so the control
 * says which language is being read instead of only naming the other one. A signed-in user posts it, a guest
 * follows a link, so both an <a> and a <button> have to look identical. 44px tall on touch, 26px on desktop.
 */
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px; padding: 2px;
    background: var(--page); border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch .lang-option {
    font: inherit; font-size: 12.5px; line-height: 1.2; padding: 5px 10px;
    border: 0; border-radius: 999px; background: none; color: var(--ink-soft);
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.lang-switch .lang-option:hover { color: var(--brand-strong); text-decoration: none; }
.lang-switch .lang-option.is-current {
    background: var(--surface); color: var(--brand-strong); font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.lang-switch button.lang-option { appearance: none; -webkit-appearance: none; }
.lang-switch a.lang-option { display: inline-block; }
/* Inside the top bar the control keeps the bar's rhythm; the label is the group's aria-label, not a word on
   screen, so nothing competes with the portal badge next to it. */
.topbar .lang-switch { border-color: var(--line); background: var(--surface); }
/* The auth card puts the control on the same row as the wordmark. */
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.auth-top a.auth-brand { margin: 0; }
@media (max-width: 480px) {
    /* A touch target first: the padding grows so the control is comfortable under a thumb on a 360px screen. */
    .lang-switch .lang-option { padding: 9px 12px; font-size: 13px; }
    .auth-top { flex-wrap: wrap; }
}

/* ================================================================ list-screen classes (UI audit A-L)
 * These names are used by views/pages/*.php and had no rule anywhere in the bundle, so those screens fell
 * back to browser defaults: an unstyled filter row, a <code> block that could not wrap, key/value lists
 * with no spacing. Every rule below is an alias of a component defined above — no new colour, radius,
 * shadow or font — so the screens join the existing system instead of starting a second one.
 */

/* The row of filters above a list. Holds labelled .field blocks (calendar, chat) and bare controls
   (admissions), so both line up on their bottom edge and wrap instead of overflowing a phone. */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 0 0 14px; }
.filter-bar .field { flex: 1 1 200px; min-width: 0; margin-bottom: 0; }
.filter-bar > input, .filter-bar > select, .filter-bar .filters > input, .filter-bar .filters > select {
    /* A control that is not inside a .field is still a control: the same box as one, or it collapses to
       the width of the option text and 19px tall. */
    flex: 1 1 180px; min-width: 120px; font: inherit; font-size: 14px; padding: 10px 12px;
    color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.filter-bar > input:focus, .filter-bar > select:focus,
.filter-bar .filters > input:focus, .filter-bar .filters > select:focus {
    outline: 2px solid var(--brand-soft); border-color: var(--brand);
}
.filter-bar .filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; width: 100%; }
/* The same row under its other two names. */
.filters, .filter-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.filters > input, .filters > select, .filter-row > input, .filter-row > select {
    flex: 1 1 180px; min-width: 120px; font: inherit; font-size: 14px; padding: 10px 12px;
    color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.filters > .field, .filter-row > .field { flex: 1 1 200px; min-width: 0; margin-bottom: 0; }

/* A control typed into a table cell (a voucher line, a mark): it gets the same surface a form field has,
   otherwise it renders 19px tall and cannot be hit with a thumb. */
table.data select, table.data input[type="text"], table.data input[type="number"],
table.data input[type="date"], table.data input[type="search"], table.data textarea {
    font: inherit; font-size: 14px; padding: 7px 9px; color: var(--ink); max-width: 100%;
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
table.data select:focus, table.data input:focus, table.data textarea:focus {
    outline: 2px solid var(--brand-soft); border-color: var(--brand);
}

/* The same field grid as .field-row, under the name three screens use. */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

/* A page heading whose page has no card around it (the admissions queue, the merit list, the test marks). */
.card-title { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }

/* A copy-paste block: the embed URL and iframe snippet. It wraps rather than pushing the card wider. */
.code-block {
    display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.5; background: #fafbfb; border: 1px solid var(--line);
    border-radius: 8px; padding: 9px 11px; word-break: break-all; white-space: pre-wrap;
}

/* Key/value lists (the admission review panel, the fee overview settings). */
.definition-list, .meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px; margin: 0 0 14px; padding: 0;
}
.definition-list > div, .meta > div { min-width: 0; }
.definition-list dt, .meta dt {
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.definition-list dd, .meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; word-break: break-word; }

/* A row of action buttons and a row of checkboxes: the .btn-group/.row flex rhythm. */
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* The action cell of a list table: the buttons stay together and stay inside the cell. */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
table.data td.row-actions { text-align: right; }

/* A .btn-group pager: the page the reader is on looks different from the others. */
.pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* The month grid: fixed columns, so one long holiday name cannot widen a day and squeeze the rest. */
table.data.calendar-grid { table-layout: fixed; }
table.data.calendar-grid td { height: 76px; vertical-align: top; font-size: 13px; }
table.data.calendar-grid td .num { font-weight: 600; margin-right: 4px; }

/* ---------------------------------------------------------------- the month, day by day
 * One tile per school day. A full-width tile per day is a thirty-screen scroll on a phone, so the grid is
 * two-up there and wider as the viewport grows: the day number and the status still fit a 132px tile, and
 * the month is readable in one flick. No colour, radius or font changes — only the tile size.
 */
.day-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.day-grid .stat { padding: 10px 12px; }
.day-grid .stat .label { font-size: 12px; }
.day-grid .stat .value { font-size: 14px; margin-top: 4px; }
.day-grid .stat .delta { font-size: 12px; margin-top: 3px; }
@media (min-width: 768px) {
    .day-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* A number typed into a table cell (mark entry, test scores): right-aligned like the column it sits in. */
.num-input, .mark-input {
    width: 92px; font: inherit; font-size: 14px; padding: 5px 8px; text-align: right; color: var(--ink);
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.num-input:focus, .mark-input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.mark-form { display: flex; gap: 6px; align-items: center; }
/* A form that sits beside a button or inside a table cell. */
.inline { display: inline; }

/* The certificate page's statistics, which name the label and the value directly instead of using
   .stat .label/.value. Same sizes as .stat so the two cannot drift. */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 14px; }
.stat-row .stat-label {
    display: block; font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em;
}
.stat-row .stat-value { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }

/* The per-row checkbox on the promotion screen. */
.promote-row { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------------------------------------------------------------- touch targets (<= 1024px)
 * A mouse hits a 30px button; a thumb does not. The base kit was drawn at desktop density, so the
 * interactive rows grow at the widths where a touch screen is the likely device (a phone, and a tablet
 * held in two hands). Nothing moves: only the padding and the minimum height change, which is why no
 * screen needs its own media query.
 */
@media (max-width: 1024px) {
    .sidebar a { min-height: 40px; }
    .sidebar a.with-icon { align-items: center; }
    .topbar nav a, .topbar nav button { min-height: 40px; display: inline-flex; align-items: center; }
    /* An icon-only link (the bell) needs a square target, not the width of its glyph. */
    .topbar .bell { min-width: 40px; justify-content: center; }
    .pagination a, .pagination span { min-width: 44px; height: 44px; }
    /* A button is a thumb target: the small variant keeps its padding and gains the height. */
    .btn, .btn-sm { min-height: 40px; }
    .btn-sm { padding: 9px 13px; }
    .check { min-height: 40px; }
    .check input[type="checkbox"], .check input[type="radio"] { width: 20px; height: 20px; }
    /* A control inside a table cell is still a thumb target on a phone. */
    table.data select, table.data input[type="text"], table.data input[type="number"],
    table.data input[type="date"], table.data input[type="search"], table.data textarea { min-height: 40px; }
    /* The language switcher's two options: the same 40px row as every other tap target. */
    .lang-switch .lang-option { min-height: 40px; display: inline-flex; align-items: center; }
    /* The auth card's own links: the wordmark, "Forgot your password?" and the register link are 20-25px
       tall as drawn, which is a mouse target. On a touch screen they take the same 40px row as a button. */
    .auth-card a.auth-brand { min-height: 40px; display: inline-flex; align-items: center; }
    .auth-links a, .auth-card .row a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------- a phone in the hand (<= 768px) */
@media (max-width: 768px) {
    .tabs a, .tabs button { padding: 11px 13px 12px; }
    .field .req { margin-left: 3px; }
    /* A wide table scrolls inside its own pane at every width, so the page itself never does. */
    .table-wrap { max-height: none; }
    table.data th, table.data td { padding: 8px 10px; }
    /* The action cell of a stacked row keeps its buttons on one line. */
    .row-actions { justify-content: flex-start; }
    table.data td.row-actions { text-align: left; }
}

/* A phone in portrait: one column of filters, full-width controls, and no control under 40px. */
@media (max-width: 480px) {
    .filter-bar, .filters, .filter-row { gap: 8px; }
    .filter-bar .field, .filter-bar .filters > input, .filter-bar .filters > select { flex: 1 1 100%; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .definition-list, .meta { grid-template-columns: minmax(0, 1fr); }
    .actions-row .btn { flex: 1 1 auto; }
    table.data.calendar-grid td { height: 64px; }
}


/* ================================================================ stacked rows on a phone (UI audit M-Z)
 * A list table marked `data-stack` stops being a grid below 768px: each row becomes a card and every
 * value shows its column heading beside it (public/assets/js/app.js copies the heading from <thead>
 * into data-label, so the label is the translated one and the template holds no second copy of it).
 * A row of seven columns is readable at 360px and the page never scrolls sideways. A matrix — the
 * timetable, a mark-entry grid — is deliberately never marked: its shape is its meaning, and it keeps
 * the .table-wrap scroll pane instead.
 */
@media (max-width: 768px) {
    /* The scroll pane and the card border would double up: the pane steps aside and the rows carry
       their own frame. */
    .table-wrap.is-stacked { border: 0; border-radius: 0; overflow: visible; max-height: none; background: none; }
    table.data[data-stack] { display: block; background: none; }
    table.data[data-stack] thead { display: none; }
    table.data[data-stack] tbody { display: block; }
    table.data[data-stack] tbody tr {
        display: block; margin: 0 0 10px; padding: 3px 0; background: var(--surface);
        border: 1px solid var(--line); border-radius: var(--radius);
    }
    table.data[data-stack] tbody tr:hover { background: var(--surface); }
    table.data[data-stack] tbody tr:last-child { margin-bottom: 0; }
    table.data[data-stack] tbody td {
        display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
        padding: 7px 12px; border-bottom: 0; text-align: right;
    }
    /* The heading, taken from the column it belongs to. */
    table.data[data-stack] tbody td::before {
        content: attr(data-label); flex: 1 1 45%; text-align: left; font-size: 12.5px;
        text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 600;
    }
    /* A number keeps the right edge it has in the column view. */
    table.data[data-stack] tbody td.num { font-variant-numeric: tabular-nums; }
    /* The action cell owns the bottom of the card: the buttons start at the left with no label, because
       "Actions" beside a row of buttons says nothing a thumb needs. */
    table.data[data-stack] tbody td.row-actions { display: block; text-align: left; padding-top: 9px; }
    table.data[data-stack] tbody td.row-actions::before { content: none; }
    table.data[data-stack] tbody td.row-actions > :first-child { display: block; }
    /* A cell that holds a whole message (the empty state, a form) spans the card. */
    table.data[data-stack] tbody td[colspan] { display: block; text-align: center; }
    table.data[data-stack] tbody td[colspan]::before { content: none; }
    /* A cell holding only a form (a per-row button in a setup list) reaches the card edges. */
    table.data[data-stack] tbody td > form.inline { display: inline; }
    table.data[data-stack] tbody td .empty-state { padding: 24px 10px; }
}

/* ---------------------------------------------------------------- a printable block on a screen
 * Four screens show a sheet (a route list, a stock report, a library label list) inside the portal rather
 * than in the print layout: the class names come from print.css, so on screen they styled nothing and the
 * block read as loose text. They are aliases of the shared type scale, so the sheet reads like a document
 * preview while the print sheet is unchanged.
 */
.print-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
    margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
    font-size: 16px; font-weight: 600; color: var(--ink);
}
.print-sub { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.exam-sheet-meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px;
    margin: 0 0 12px;
}
.exam-sheet-meta > div { min-width: 0; }
.exam-sheet-meta span {
    display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.exam-sheet-meta strong { display: block; font-size: 14px; font-weight: 600; word-break: break-word; }

/*
 * The push card's verification block (P2-16). These two rules were inline `style` attributes on
 * /account/notifications/; the policy is `style-src 'self'` with no 'unsafe-inline', so the browser refused
 * them and logged a CSP violation on the very screen that asks a person to trust push. A static class costs
 * nothing and keeps the policy strict.
 */
.push-verify-field { margin-top: 8px; }
.push-verify-help { margin: 8px 0; }
