:root { --oc-list-line: var(--th-line); --oc-list-line-soft: var(--th-line); --oc-control-line: var(--th-control-border); --oc-card-surface: var(--th-surface); --oc-tab-muted: var(--th-text-muted); --oc-tab-hover: var(--th-text); --oc-tab-active: var(--th-mariner); --oc-tab-underline: var(--th-mariner); }
.shell-skip { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 100; background: var(--th-surface); padding: 8px 16px; }
.shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { border-radius: 18px; }
.sidebar__nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-module { display: flex; align-items: center; gap: 10px; min-block-size: var(--control-h); padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13px; }
.nav-module .i { flex: none; inline-size: 18px; block-size: 18px; }
.nav-module:hover { color: inherit; background: var(--Mariner-700); text-decoration: none; }
.nav-module[aria-current="page"] { color: inherit; background: var(--Mariner-800); font-weight: 600; }
.nav-module:focus-visible { outline-color: var(--th-focus-ring-inverse); }
.module-tabs.tabs { display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; white-space: nowrap; margin-block-end: 18px; border-block-end: 1px solid var(--oc-list-line); scrollbar-width: thin; mask-image: linear-gradient(to right, black calc(100% - var(--oc-fade-edge)), transparent); }
html[dir="rtl"] .module-tabs.tabs { mask-image: linear-gradient(to left, black calc(100% - var(--oc-fade-edge)), transparent); }
.module-tabs .tab { flex: none; padding: 10px 16px; margin-block-end: -1px; border-block-end: 2px solid transparent; color: var(--oc-tab-muted); font-size: 13px; font-weight: 500; }
.module-tabs .tab:hover { color: var(--oc-tab-hover); }
.module-tabs .tab.active { color: var(--oc-tab-active); border-block-end-color: var(--oc-tab-underline); }
.module-tabs .tab.active::after { display: none; }
/* A TAB OF SEVERAL LISTS (Files & videos) shows them as the prototype's segmented control under the
   strip, and Publishing requests' two sections sit the same way at the end of its head: no second row
   of tabs. Each choice is 34px in the control's 3px frame, so the control keeps the 40px of the rest. */
:is(.module-subtabs, .list-v2__sections).seg { flex-wrap: wrap; max-inline-size: 100%; margin: 0; list-style: none; }
.module-subtabs.seg { margin-block: -6px 18px; }
:is(.module-subtabs, .list-v2__sections).seg a { display: inline-flex; align-items: center; min-block-size: calc(var(--control-h) - 6px); }
.list-v2__card { padding: 20px; border: 1px solid var(--oc-list-line); border-radius: 14px; background: var(--oc-card-surface); }
.list-v2__head { margin-block-end: 18px; }
.list-v2__head .page-head__title h1 { display: inline; }
.list-v2__count { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--Tolopea-50); color: var(--th-text-muted); font: 500 12.5px var(--font-latin); vertical-align: middle; }
.list-v2__card .dt { border-radius: 14px; border-color: var(--oc-list-line); background: var(--th-surface); overflow: hidden; }
.list-v2__card .list-v2__tabs { margin: 0; padding-inline: 12px; border-block-end: 1px solid var(--oc-list-line); }
.list-v2__card .list-v2__tabs .tab[aria-selected="true"] { color: var(--oc-tab-active); }
.list-v2__card .list-v2__tabs .tab[aria-selected="true"]::after { background: var(--oc-tab-underline); block-size: 2px; }
.list-v2__card .dt__toolbar { padding: 12px 14px; gap: 8px; }
.list-v2__card .dt__search .input { block-size: var(--control-h); border: 1px solid var(--oc-control-line); border-radius: 6px; font-size: 13px; }
.list-v2__card .dt__toolbar .dt__add > .btn--sm { block-size: var(--control-h); min-block-size: var(--control-h); min-height: var(--control-h); font-size: 12px; }
.list-v2__card .dt__size { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; white-space: nowrap; font-size: 12px; }
.list-v2__card .dt__size .select { block-size: var(--control-h); min-block-size: var(--control-h); inline-size: auto; padding-block: 2px; font-size: 12px; }
/* THE TOOLBAR BELOW 1200px (#1872): two rows, not three or four. The first is the search, which takes
   the room left, "Add filter" and rows per page; the second is the filter chips, saved views and
   columns. At 1200px and up it stays one row. Every control keeps its 40px. */
@media (max-width: 1199.98px) {
  .list-v2__card .dt__toolbar > .dt__form { flex: 1 1 0; flex-wrap: nowrap; }
  .list-v2__card .dt__form > .dt__search { flex: 1 1 160px; inline-size: auto; min-inline-size: 0; }
  .list-v2__card .dt__toolbar > .dt__size { order: 1; }
  .list-v2__card .dt__toolbar > .dt__tools { order: 2; flex: 1 1 100%; }
}
.list-v2__card .tbl { border: 0; }
.list-v2__card .tbl th { position: sticky; inset-block-start: 0; z-index: 1; background: var(--th-surface); border-block-end: 1px solid var(--oc-list-line); }
.list-v2__card .tbl td { block-size: 44px; border-block-end: 1px solid var(--oc-list-line-soft); }
[data-list-page="students"] .tbl td { padding-block: var(--oc-student-cell-pad); }
.list-v2__card .dt__foot { border-block-start: 1px solid var(--oc-list-line); font-size: 12.5px; }
.list-v2__loading { padding: 20px; color: var(--th-text-muted); }
.list-v2__skeleton { display: block; block-size: 24px; margin-block-start: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--Tolopea-50), white, var(--Tolopea-50)); background-size: 200% 100%; animation: list-skeleton 1.4s ease-in-out infinite; }
@keyframes list-skeleton { to { background-position: -200% 0; } }
.list-v2__card .dt__error, .list-v2__error { padding: 28px; text-align: center; }
.list-v2__card .input, .list-v2__card .select, .list-v2__card .textarea { border: 1px solid var(--oc-control-line); }
.drawer-form { inline-size: min(480px, 100vw); }
.drawer-form.drawer--lg { inline-size: min(720px, 100vw); }
.drawer-form :is(.input, .select, .textarea), .page :is(.input, .select, .textarea) { border: 1px solid var(--oc-control-line); }
.drawer-form .drawer__body > * { max-inline-size: 100%; }
.record-head { border-radius: 14px; }
.record-rail.card { border-radius: 14px; background: var(--oc-card-surface); }
@media (max-width: 600px) { .list-v2__card { padding: var(--oc-mobile-card-pad); } .list-v2__head .page-head__title { min-inline-size: 0; flex-basis: 100%; } .list-v2__card .dt__search { inline-size: min(var(--oc-mobile-search-max), calc(100vw - var(--oc-mobile-search-gutter))); min-inline-size: 0; } }
.shell-skip:focus { inset-block-start: 8px; }
.shell-crumbs { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; min-inline-size: 0; }
.shell-crumbs li { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.shell-crumbs li + li::before { content: "/"; opacity: .6; padding-inline-end: 6px; }
.shell-search { position: relative; margin: 0; inline-size: 260px; }
.shell-search input { font: inherit; color: inherit; border: 0; background: none; padding: 0; min-inline-size: 0; inline-size: 100%; }
.shell-search .kbd { flex: none; }
.shell .oc-g { inline-size: 18px; block-size: 18px; flex: none; }
.sidebar__brand .logo-lockup { object-fit: contain; }
.shell-search-link { display: none; text-decoration: none; }
.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }
/* THE SIDEBAR'S TWO LAYOUTS (#1866), one breakpoint, so a narrower screen never gets more sidebar:
   - wide, 900px and up (1440, 1024, 900): the full 248px sidebar beside the page, always open;
   - narrow, below 900px (390 included): the sidebar is a drawer, closed on every page load, that
     the topbar's toggle opens over a backdrop; the page takes the whole width.
   The grid's single column is what gives the page that width: the 248px track above would
   otherwise stay, and with the sidebar taken out of the flow the page fell into it (216px at 390).
   shell.js closes the drawer when the same query, (max-width: 899.98px), stops matching. */
@media (max-width: 899.98px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar-toggle { display: inline-grid; flex: none; }
    .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 82; inline-size: min(280px, calc(100vw - 48px)); block-size: 100vh; border-radius: 0; visibility: hidden; transform: translateX(-100%); transition: transform var(--th-dur-fast), visibility var(--th-dur-fast); }
    html[dir="rtl"] .sidebar { transform: translateX(100%); }
    .sidebar.is-open, html[dir="rtl"] .sidebar.is-open { visibility: visible; transform: translateX(0); }
    .sidebar__nav { max-block-size: none; }
    .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 81; border: 0; background: var(--th-tolopea); opacity: .35; cursor: pointer; }
}
@media (max-width: 899.98px) {
    .shell-search { display: none; }
    .shell-search-link { display: inline-grid; }
}
.login__content { inline-size: min(380px, 100%); }
.login__language { margin-block: 24px 0; font-size: 14px; }
.login__language form { display: inline; margin: 0; }
.login__again { margin: 12px 0 0; font-size: 14px; }
.login__code { text-align: center; font-size: 20px; letter-spacing: .3em; direction: ltr; }
.login__submit { inline-size: 100%; }
.login__content h1 { margin-block-end: 8px; }
.login .field__error.field-validation-error { display: block; }
.sidebar .ident > .oc-g:last-child { margin-inline-start: auto; }
.dt { min-inline-size: 0; }
.dt .tbl { margin: 0; }
.dt .tbl :is(th, td) { line-height: 24px; }
.dt .oc-cell-main { display: flex; align-items: center; gap: 10px; }
.dt .oc-avatar--sm { inline-size: 32px; block-size: 32px; }
/* LIST WRAPPING (#1867). An identifier, a code, a date or an amount in a list sits in a
   <bdi dir="ltr"> and is one value: "STU-" over "14033" reads as two. A person's name and the line
   under it stay whole too, so a row is one name and one sub-line high (44-63px); when that is wider
   than the card, the table scrolls inside it rather than every row growing. */
.tbl td bdi[dir="ltr"] { white-space: nowrap; }
.dt .oc-cell-main > div { white-space: nowrap; }
/* ONE LINE (#1870): free text in a list — a question, an answer — is one line of at most 20rem, cut
   with an ellipsis; the row's own page shows it whole (ColumnDefinition.OneLine). */
.tbl .oc-one-line { max-inline-size: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .oc-one-line > *, .tbl .oc-one-line .flex-column > * { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; }
/* A cut line keeps its own direction (#1878): the line is dir="auto", so an English title in an Arabic
   table is cut at its end ("Writing for Hea…") and an Arabic one at its own end, and the column keeps
   its alignment whatever the line's direction. */
.tbl .oc-one-line { text-align: match-parent; }
/* An amount, a count or a rate is one value: its digits and its currency never split (#1867). */
.tbl td.text-end { white-space: nowrap; }
/* A badge sits at the top of its line rather than raising it (a version and its badge were a 25px
   line, a 64px row), and one in a sub-line is that line's 18px (#1867). */
.dt .tbl td .badge { vertical-align: top; }
.dt .tbl td small.d-block .badge { line-height: 18px; }
/* The sales ledger and the agreements list fit their card at 1440 (#1867, #1875). The agreements'
   headers may take two lines, as the ledger's do (reports.css); both tables' cells sit 8px apart;
   a name is cut at a width the row can hold, its title giving it whole. The ledger's item and
   teacher are cut at 7rem and 6rem: at 8rem and 7rem its thirteen columns were 1096px in 1084 (#1485). */
[data-list-page="agreements"] .tbl th { white-space: normal; }
[data-list-page="fin-sales"] .tbl :is(th, td), [data-list-page="agreements"] .tbl :is(th, td) { padding-inline: 8px; }
[data-list-page="fin-sales"] .fin-sales__item .oc-one-line { max-inline-size: 7rem; }
[data-list-page="fin-sales"] .fin-sales__teacher .oc-one-line { max-inline-size: 6rem; }
/* The orders list fits its card at 1440 (#1867): once its codes and dates stopped wrapping it was
   1109px in 1084, its state cut at the card's edge. Its headers may take two lines, so a column is as
   wide as its figures and not as «الإجمالي شامل الضريبة». */
[data-list-page="orders"] .tbl th { white-space: normal; }
/* A totals row draws its 2px rule inside itself (#1867): as a collapsed border it gave the last row
   above it half its width, 63.5px, measured 64 on the sales ledger. The settlement list has one; the
   ledger's sums are tiles above it now (#1485). */
.dt .tbl tfoot td { border-block-start: 0; box-shadow: inset 0 2px 0 var(--Tolopea-200); }
[data-list-page="agreements"] .oc-one-line { max-inline-size: 10rem; }
/* Publishing requests is a line and a sub-line per row at 1440 and 1024 (#1885): its course, teacher
   and term are one line each, cut at 11rem; the version's own page shows them whole. Its cells sit
   10px apart: at 12rem and 12px its seven columns were 1097px in 1084 at 1440 AR, the Actions
   header cut at the card's edge (#1892). The empty row keeps its own 0, so its message stays the
   card's width. */
[data-list-page="versions"] .oc-one-line { max-inline-size: 11rem; }
[data-list-page="versions"] .tbl tr:not(.oc-empty-row) > :is(th, td) { padding-inline: 10px; }
/* The learners list fits its card at 1440 (#1885): at 12px apart its ten columns were 4px too wide. */
[data-list-page="students"] .tbl :is(th, td) { padding-inline: 10px; }
/* On a phone its four columns sit 8px apart (#1905): at 10px they were 6px wider than the card in EN. */
@media (max-width: 600px) { [data-list-page="students"] .tbl :is(th, td) { padding-inline: 8px; } }
/* The import form keeps its rail beside it down to 1200, then the rail drops under it as the prototype's other
   rails do (#1905): beside it at 390 the form was 22px wide and its step titles were not drawn. */
.oc-import-grid { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1200px) { .oc-import-grid { grid-template-columns: minmax(0, 1fr); } }
/* The tickets table and the deliveries list fit their card at 1440 with every column, Actions in view
   (#1905): a header may take two lines, and the cells sit 8px (tickets) and 10px (deliveries) apart.
   At 12px with one-line headers the tickets table was 70px too wide in EN and deliveries 98px. */
[data-list-page="tickets"] .tbl th, [data-list-page="deliveries"] .tbl th { white-space: normal; }
[data-list-page="tickets"] .tbl tr:not(.oc-empty-row) > :is(th, td) { padding-inline: 8px; }
[data-list-page="deliveries"] .tbl tr:not(.oc-empty-row) > :is(th, td) { padding-inline: 10px; }
/* The row's name column gives way last: a short title keeps its words on one line. */
.dt .tbl td > .fw-medium, .dt .tbl td > [data-row-link] > .fw-medium { min-inline-size: 9rem; }
/* Status tabs fade at the end edge like the module tabs; shell.js scrolls the current one into view. */
.list-v2__card .list-v2__tabs { flex-wrap: nowrap; mask-image: linear-gradient(to right, black calc(100% - var(--oc-fade-edge)), transparent); }
html[dir="rtl"] .list-v2__card .list-v2__tabs { mask-image: linear-gradient(to left, black calc(100% - var(--oc-fade-edge)), transparent); }
.list-v2__tabs > li { flex: none; }
/* AN AREA OF THREE TABS OR FEWER, ON A PHONE (#1881): the tabs share the row and a name may take two
   lines, so every tab is in view (Privacy's third was cut at 390). Four or more keep the strip above:
   it scrolls, fades at its end and brings the current tab into view (#1867). */
@media (max-width: 600px) {
    .module-tabs.tabs:not(:has(> .tab:nth-child(4))) { mask-image: none; }
    .module-tabs.tabs:not(:has(> .tab:nth-child(4))) > .tab { flex: 1 1 0; min-inline-size: 0; justify-content: center; padding-inline: 8px; white-space: normal; text-align: center; }
}
/* An empty list's message stays in the visible card (#1867): the row spans every column, and when the
   headers alone are wider than the card the message was centred in the part scrolled out of sight. */
.dt__body:has(> .dt__wrap .oc-empty-row) { container-type: inline-size; }
.oc-empty-row > td { padding-inline: 0; }
.oc-empty-row .empty { position: sticky; inset-inline-start: 0; inline-size: 100cqi; }
/* THE COMPACT EMPTY ROW (#1871), for a table declared CompactEmpty() — a queue whose tabs are mostly
   empty: the icon and the title on one line, 63px like a two-line row, at every width. One shared
   rule; no page restyles its empty row (the Refunds-only rule drew 77px, its 48px icon still shown). */
.oc-empty-row--compact > td { padding-block: 0; }
.oc-empty-row--compact .empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 62px; padding: 10px 12px; }
.oc-empty-row--compact .empty .i { flex: none; inline-size: 24px; block-size: 24px; margin: 0; }
.oc-empty-row--compact .empty h2 { margin: 0; font-size: 14px; line-height: 24px; }
.oc-empty-row--compact .empty p { display: none; }
.dt__search > .oc-g { position: absolute; inset-inline-start: 12px; inset-block-start: 11px; color: var(--th-text-muted); }
.dt__search .input { padding-inline-start: 38px; }
.tabs { list-style: none; padding-inline-start: 0; }
.dt__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-inline-size: 0; margin: 0; }
.dt__search { inline-size: 300px; }
.dt__add { position: relative; }
.dt__add > summary { list-style: none; }
.dt__add > summary::-webkit-details-marker { display: none; }
.dt__panel { position: absolute; z-index: 70; inset-block-start: calc(100% + 6px); inset-inline-start: 0; inline-size: 320px; max-inline-size: calc(100vw - 32px); padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--th-surface); border: 1px solid var(--Tolopea-200); border-radius: var(--th-radius-md); box-shadow: var(--th-shadow-md); }
.dt__field .field__label { display: block; margin-block-end: 4px; }
.dt__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; }
.dt__bulk:has(> [data-bulk-bar][hidden]) { display: none; }
.dt:has(> .dt__bulk > [data-bulk-bar]:not([hidden])) > .dt__toolbar { display: none; }
.dt__bulk { padding: 8px 16px; border-block-end: 1px solid var(--Tolopea-100); background: var(--th-tolopea); color: var(--th-pampas); }
.dt__bulkbar { margin: 0; }
.dt__bulk :is(.btn--ghost, .btn--secondary) { color: var(--th-pampas); background: transparent; border-color: transparent; }
.dt__bulk :is(.btn--ghost, .btn--secondary):hover { background: var(--Tolopea-800); }
.dt__foot { flex-wrap: wrap; }
.dt__page { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.dt:not(:has(.dt__toolbar)):not(:has(> nav)) .tbl > thead > tr:first-child > th:first-child { border-start-start-radius: var(--th-radius-lg); }
.dt:not(:has(.dt__toolbar)):not(:has(> nav)) .tbl > thead > tr:first-child > th:last-child { border-start-end-radius: var(--th-radius-lg); }
.input-group > :is(.input, .select, .textarea) { flex: 1; min-inline-size: 0; inline-size: 1%; }
.input[type="file"] { padding-block: 6px; }
.btn.btn--sm { min-height: var(--control-h); }
.token a { display: inline-grid; place-items: center; inline-size: var(--control-h); block-size: var(--control-h); border-radius: 50%; color: inherit; }
.drawer.offcanvas { inline-size: min(480px, 100vw); }
.drawer .drawer__head { padding: 18px 24px; }
.drawer .drawer__body { padding: 20px 24px; }
.drawer .drawer__foot { padding: 14px 24px; }
.drawer .drawer__foot a:last-child { margin-inline-start: auto; }
.toasts .toast { opacity: 1; inline-size: auto; }
.toasts .toast p { margin: 0; }
.toasts form { margin: 0; }
@media (max-width: 600px) {
    .toasts { inset-inline: 16px; align-items: stretch; }
    .toasts .toast { min-inline-size: 0; max-inline-size: 100%; }
}

.undo-toasts { inset-block-end: 96px; }

.logo-lockup { background: url("/brand/assets/Logos/primary-pampas.svg") center / cover no-repeat; }

[hidden] { display: none !important; }

.offcanvas-backdrop { z-index: 80; background: var(--th-tolopea); }
.offcanvas-backdrop.show { opacity: .35; }
.drawer.offcanvas { z-index: 81; }

.btn.btn-sm { block-size: var(--control-h); min-block-size: var(--control-h); padding-inline: 10px; font-size: 13px; border-radius: var(--th-radius-sm); }
.btn-primary, .btn-success { background: var(--th-mariner); color: var(--th-on-mariner); border-color: transparent; }
.btn-primary:hover, .btn-success:hover { background: var(--Mariner-700); color: var(--th-on-mariner); }
.btn-secondary, .btn-light, .btn-soft-secondary, .btn-outline-secondary, .btn-soft-primary, .btn-outline-primary { background: var(--th-surface); color: var(--th-mariner); border-color: var(--Mariner-300); }
.btn-secondary:hover, .btn-light:hover, .btn-soft-secondary:hover, .btn-outline-secondary:hover, .btn-soft-primary:hover, .btn-outline-primary:hover { background: var(--Mariner-50); border-color: var(--th-mariner); }
.btn-danger, .btn-soft-danger, .btn-outline-danger { background: var(--th-tolopea); color: var(--th-pampas); border-color: transparent; }
.btn-warning { background: var(--th-pear); color: var(--th-on-pear); }
.btn-link { background: none; color: var(--th-link); border-color: transparent; }
.control-overlay--offcanvas .drawer { display: flex; }
.offcanvas:not(.show) { visibility: hidden; pointer-events: none; }
.offcanvas.show { visibility: visible; }

.btn-ghost-secondary, .btn-ghost-primary, .btn-ghost-dark { background: transparent; color: var(--th-text); border-color: transparent; }
.btn-ghost-secondary:hover, .btn-ghost-primary:hover, .btn-ghost-dark:hover { background: var(--Tolopea-50); color: var(--th-text); }
.topbar [data-needs-you-menu] { inline-size: 320px; }
.topbar [data-needs-you-menu] .dropdown-item { white-space: normal; overflow-wrap: anywhere; }
/* Build payouts (#1900): the As of date is a 40px field beside its button, not a bare input and a
   button each the card's whole width. */
.payouts-build { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.payouts-build .field { margin-block-end: 0; inline-size: 14rem; max-inline-size: 100%; }
/* The inbox's filter pills and its composer's Reply / Internal note tabs are controls (#1900): 40px,
   44px under a touch pointer. They were 26-32px. */
.queue-nav :is(a, button), .composer .seg button { align-items: center; min-block-size: var(--control-h); }
@media (pointer: coarse) { .queue-nav :is(a, button), .composer .seg button { min-block-size: 44px; } }
/* A card's title on a phone (#1903): it takes the whole line and what sits beside it (a description,
   badges, a link) goes under it, as the list page's head does. At 390 the title was squeezed to three
   lines beside its description (Build payouts). */
@media (max-width: 600px) {
    .card__head { flex-wrap: wrap; row-gap: 4px; }
    .card__head > :is(h2, h3) { flex-basis: 100%; min-inline-size: 0; }
}
/* Wider, the title keeps 12rem and what sits beside it shrinks into the rest (#1905): "Totals agree
   every way" was four lines at 1024 beside its description, and so were steps of the agreement edit. */
@media (min-width: 601px) {
    .card__head > :is(h2, h3) { min-inline-size: min(100%, 12rem); }
}

/* THE GROUND (grid background, spec of 31 Oct): one fixed layer behind the whole console, the same square
   grid and two glows as the student app. The page ground token stays the base; cards, tables, inputs,
   menus, modals and the sticky topbar keep their own opaque surfaces on top. The glows use PHYSICAL
   positions on purpose: the lime one is top-right in Arabic and in English alike. The lime glow is only a
   faint tint (Mohammad, 2 Nov 2026: "the heavy yellow"), the same value as the web's thaheen-ui.css: Pear at
   35% saturation (#a7ae57), light 4% (was 30%), dark 2% (was 16%). */
:root { --ground-base: var(--th-surface-alt); --ground-grid: rgba(20, 33, 61, .14); --ground-glow-lime: rgba(167, 174, 87, .04); --ground-glow-blue: rgba(91, 141, 239, .12); }
[data-theme="night"], [data-bs-theme="dark"] { --ground-base: var(--th-ground-night); --ground-grid: rgba(255, 255, 255, .08); --ground-glow-lime: rgba(167, 174, 87, .02); --ground-glow-blue: rgba(91, 141, 239, .25); }
/* No lime halo behind the audit pages (Mohammad's design note; review of 51aca060; #1937): it showed as a green
   haze beside the audit card. Only the audit lists (data-list-page "audit", "audit-sessions", "audit-never-signed-in")
   drop it; the grid and the blue glow stay, and every other page keeps its ground. It lives here, not in
   pages/audit-log.css, because that sheet styles only inside an audit list and carries no lime (AuditLogFiltersTests). */
body:has([data-list-page^="audit"]) { --ground-glow-lime: transparent; }
/* LIGHTER SHADOWS, console only (Mohammad's design note of 1 Nov 2026, #1925 plan §8: "lighter shadows
   everywhere"). The brand file tokens.css is not edited, so the website and the apps keep theirs; this
   sheet loads after it (_HeadTheme.cshtml), so the same selectors win here. Neutral ink, lower alpha and a
   smaller spread; --th-shadow-sm is already soft and stays. */
:root, [data-theme="daylight"] { --th-shadow-md: 0 4px 12px rgba(10, 0, 69, .08); --th-shadow-lg: 0 10px 28px rgba(10, 0, 69, .12); }
[data-theme="night"], [data-bs-theme="dark"] { --th-shadow-md: 0 4px 12px rgba(0, 0, 0, .28); --th-shadow-lg: 0 10px 28px rgba(0, 0, 0, .36); }
html:root:root body { background: var(--ground-base); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: transparent;
  background-image:
    linear-gradient(to right, var(--ground-grid) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--ground-grid) 0 1px, transparent 1px),
    radial-gradient(circle 38vmin at 85% 8%, var(--ground-glow-lime), transparent),
    radial-gradient(circle 40vmin at 10% 60%, var(--ground-glow-blue), transparent);
  background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-position: 50% 50%, 50% 50%, 0 0, 0 0;
}
@supports (background-position: round(down, 50%, 1px)) {
  body::before { background-position: round(down, 50%, 1px) round(down, 50%, 1px), round(down, 50%, 1px) round(down, 50%, 1px), 0 0, 0 0; }
}
@media print { body::before { display: none; } }
