:root {
  /* QA round-4 D: --muted (labels) and --faint (grid headers, counts) brightened for contrast —
     old #6b7280 scraped AA and #9aa0b4 failed it outright, reading "dull" on white cards. */
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #fbfbfe; --border: #dde0ea;
  --ink: #1e2138; --muted: #4b5563; --faint: #6d7389;
  --accent: #4f46e5; --accent-2: #7c3aed;
  --tile-blue-bg: #eaf1ff; --tile-blue: #2563eb;
  --tile-green-bg: #e6f7ef; --tile-green: #0d9f6e;
  --tile-violet-bg: #f1ebfe; --tile-violet: #7c3aed;
  --good: #0d9f6e; --warn: #d97706; --danger: #c02b3c; --track: #e4e8f2;
  --shadow: 0 1px 2px rgba(24,27,45,.04), 0 8px 24px rgba(24,27,45,.06);
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sel-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --gap: 12px; --req-border: #f0a3a3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161f; --surface: #1c1f2b; --surface-2: #20222f; --border: #343850;
    --ink: #e8e9f0; --muted: #aab1c5; --faint: #8c92a8;
    --accent: #7c6cf0; --accent-2: #9a6cf0;
    --tile-blue-bg: #1e2740; --tile-blue: #7aa2ff;
    --tile-green-bg: #163024; --tile-green: #56d7a2;
    --tile-violet-bg: #2a2350; --tile-violet: #b79bff;
    --danger: #e4566a; --track: #31364a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --sel-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --gap: 12px; --req-border: #6e3a44;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #fbfbfe; --border: #dde0ea;
  --ink: #1e2138; --muted: #4b5563; --faint: #6d7389; --accent: #4f46e5; --accent-2: #7c3aed;
  --tile-blue-bg: #eaf1ff; --tile-blue: #2563eb; --tile-green-bg: #e6f7ef; --tile-green: #0d9f6e;
  --tile-violet-bg: #f1ebfe; --tile-violet: #7c3aed; --danger: #c02b3c; --track: #e4e8f2;
  --shadow: 0 1px 2px rgba(24,27,45,.04), 0 8px 24px rgba(24,27,45,.06);
  --sel-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --gap: 12px; --req-border: #f0a3a3;
}
:root[data-theme="dark"] {
  --bg: #14161f; --surface: #1c1f2b; --surface-2: #20222f; --border: #343850;
  --ink: #e8e9f0; --muted: #aab1c5; --faint: #8c92a8; --accent: #7c6cf0; --accent-2: #9a6cf0;
  --tile-blue-bg: #1e2740; --tile-blue: #7aa2ff; --tile-green-bg: #163024; --tile-green: #56d7a2;
  --tile-violet-bg: #2a2350; --tile-violet: #b79bff; --danger: #e4566a; --track: #31364a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --sel-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --gap: 12px; --req-border: #6e3a44;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
       -webkit-font-smoothing: antialiased; line-height: 1.45; }

/* =====================================================================
   Page primitives (global base; per-page scoped .razor.css overrides)
   -----------------------------------------------------------------
   30 pages under Pages/*.razor ship without a scoped .razor.css, so
   Blazor's [b-xxx] scoping never attaches to their markup and these
   design-system classes were previously undefined at runtime. This
   section supplies a GLOBAL fallback for the common vocabulary shared
   across scoped pages, sourced from the most complete/most-recent
   scoped siblings (ReassignSubjectMaster / AssignReval1 /
   EnableRecheckCount / AssignExam / SubjectWise / Evaluation hub).
   Any page WITH a scoped .razor.css keeps rendering from its own
   [b-xxx]-qualified rules, which win on specificity — this section
   cannot regress an already-styled page.
   ===================================================================== */

/* -- page header (cand-head) -- The page title lives in the topbar breadcrumb (last crumb); the head
   row is subtitle + actions only, so it centres on one line. Timetable drill views still use h1. */
/* QA round-5 D: compact header band — the grid must show rows above the fold. */
.cand-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cand-head h1 { margin: 0 0 2px; font-size: 20px; font-weight: 700; color: var(--ink); }
.cand-head .sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.cand-head .back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.cand-head .back:hover { color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); }

/* -- card container -- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: var(--gap); }
.card h3, .assign-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* -- toolbar (filters row) -- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.toolbar select, .toolbar input:is([type="date"], [data-osm-date]), .toolbar input[type="number"], .toolbar input[type="text"] {
    border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
    border-radius: 9px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
.toolbar select:focus, .toolbar input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.toolbar .count { margin-left: auto; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.count { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* -- Action-before-filters row (QA feedback A) -- The shared <ActionMenu> sits FIRST, then the page's
   filter dropdowns share the rest of the row. Promoted from AssignExaminer.razor.css (the reference
   layout) so every page can use it: a fixed flex-basis on .action-menu (and .action-spacer, a blank
   stand-in for follow-up rows) keeps every row's dropdown columns starting at the same x position. */
.action-and-filters { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.action-and-filters:last-child { margin-bottom: 0; }
.action-and-filters .action-menu, .action-and-filters .action-spacer { flex: 0 0 88px; }
.action-and-filters .action-toggle { width: 100%; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; }
.action-and-filters .form.cascade, .action-and-filters .toolbar { flex: 1; min-width: 0; margin-bottom: 0; }

/* -- search input (standalone or inside the shared SearchBox) --
   The icon now sits on the RIGHT inside SearchBox (scoped padding-right) — the old
   left-icon indent is gone with the markup that used it. */
.search { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
          border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); cursor: pointer;
              border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.search-btn:hover { background: var(--track); }

/* -- buttons -- */
.btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); cursor: pointer;
       border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; transition: background .12s, border-color .12s;
       display: inline-flex; align-items: center; gap: 5px; }
.btn:hover { background: var(--track); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.btn:disabled { opacity: .55; cursor: default; }

/* -- back button: one distinct treatment app-wide (QA round-4 D) --
   Doubled class beats the 73 scoped .btn[b-xxx] re-declarations on specificity, so the
   accent-tinted look lands everywhere without touching each page's scoped css. */
.btn.back-btn.back-btn { background: color-mix(in srgb, var(--accent) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.btn.back-btn.back-btn:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* -- dropdowns: one baseline so every <select> matches the design system --
   The non-!important props are defaults for un-styled selects; per-page scoped
   rules still override border/background-color/radius. The chevron + appearance
   reset are forced because much legacy per-page CSS sets a `background:` shorthand
   that would otherwise wipe the arrow, leaving a bare native dropdown. Background
   comes from the global control-surface rule below. */
select {
  border: 1px solid var(--border); background-color: var(--surface); color: var(--ink);
  border-radius: 9px; font-size: 13.5px; padding: 8px 12px;
  /* never let a long option (e.g. a full course name) push the control past its column */
  box-sizing: border-box; max-width: 100%;
  -webkit-appearance: none !important; appearance: none !important;
  background-image: var(--sel-chevron) !important; background-repeat: no-repeat !important;
  background-position: right 11px center !important; background-size: 15px !important;
  padding-right: 34px !important; cursor: pointer;
}
select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
select:disabled { opacity: .6; cursor: default; }

/* -- data grid -- */
table.grid, .grid { width: 100%; border-collapse: collapse; }
.grid thead th, .grid th { text-align: left; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .05em;
                 text-transform: uppercase; padding: 6px 12px 10px; border-bottom: 1px solid var(--border); }
.grid tbody td, .grid td { padding: 11px 12px; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--border); vertical-align: middle; }
.grid tbody tr:last-child td { border-bottom: none; }
.grid tbody tr:hover td { background: var(--surface-2); }
.grid .nm, .nm { font-weight: 600; }
.ta-c { text-align: center; }
.table-scroll { overflow-x: auto; }

/* -- grid definition: header band + zebra rows --
   39 pages re-declare `.grid` in their own scoped css, so these must land there too.
   Those scoped rules set padding/colour/borders but never a `background`, so a plain
   global background rule wins by cascade. The one exception is :hover, which scoped
   css DOES set — hence the single targeted !important, so the hover still reads on
   top of a zebra row. Both themes come free via the tokens. */
.grid thead th, .grid th { background: var(--track); }
.grid tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--track) 45%, var(--surface)); }
.grid tbody tr:hover td { background: var(--track) !important; }

/* A wide grid must scroll inside its own card — the page body must never scroll
   sideways. Scoped to cards that actually hold a grid, so cards with popups are
   left alone. Saves wrapping ~40 grids in .table-scroll by hand. */
.card:has(table.grid) { overflow-x: auto; }

/* -- assigned-data views: visibly distinct from the main grid (QA round-4 D) --
   Pages add `assigned` on the card wrapping an "Assigned …" grid; the accent spine +
   tinted header band separate it from the main list at a glance. The descendant
   selectors out-rank the scoped .grid re-declarations, so no per-page css changes. */
.card.assigned { border-left: 4px solid var(--accent); }
.card.assigned .grid thead th, .card.assigned .grid th {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.card.assigned > .toolbar h3, .card.assigned h3 { color: var(--accent); }

/* -- page-head search slot (QA round-4 F): the grid search lives beside Help, as legacy did --
   Flex here (not per page): pages without a scoped rule left the label and Help button on the
   text baseline, so the Help icon rode high beside the input (QA round-5 alignment fix). */
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .search-box .search, .head-actions > .search { width: 230px; }

/* Icon-only Help: a square hit-target the same height as the search pill, so the pair
   reads as one aligned control group. */
.btn.help { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; flex: none; }

/* -- icon row-actions (replaces repeated "Edit"/"Deactivate" text links) --
   Icon-only, but each keeps a visually-hidden label so screen readers (and the
   DOM/tests) still see the action name. */
.row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
            padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent;
            color: var(--muted); cursor: pointer; text-decoration: none;
            transition: background .12s, color .12s, border-color .12s; }
.icon-btn:hover { background: var(--surface); border-color: var(--border); color: var(--accent); }
.icon-btn.danger { color: #c02b3c; border-color: rgba(192,43,60,.25); }
.icon-btn.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.icon-btn.danger:hover { color: #c02b3c; border-color: rgba(192,43,60,.25); background: rgba(192,43,60,.08); }
.icon-btn.good:hover { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent);
                       background: var(--tile-green-bg); }
.icon-btn:disabled { opacity: .45; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip-path: inset(50%); white-space: nowrap; border: 0; }
.row-check, .row-pick { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* -- pager -- */
.pager { display: flex; align-items: center; gap: 12px; padding: 14px 2px 2px; }
.pager .count, .pager .pageinfo { color: var(--muted); font-size: 13px; }

/* -- misc text/layout helpers -- */
.pad { padding: 22px 6px; }
.sub { color: var(--muted); font-size: 13px; }
.note { color: var(--muted); font-size: 13px; }

/* -- banner -- */
.banner { border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; font-weight: 500; }
.banner.ok { background: var(--tile-green-bg); color: var(--good); border: 1px solid transparent; }
.banner.err { background: rgba(192,43,60,.08); color: #c02b3c; border: 1px solid rgba(192,43,60,.2); }
.banner.info { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.banner.warn { background: rgba(216,150,20,.10); color: #9a6b00; border: 1px solid rgba(216,150,20,.25); }

/* -- assign panel (schedule/reassign forms) -- */
.assign-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.assign-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px;
         font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.group-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
              color: var(--faint); margin-bottom: 10px; }

/* -- status card (KPI strip) -- */
.status-card { display: flex; gap: 32px; }
.status-card .stat, .stat { display: flex; flex-direction: column; }
.stat .lbl { color: var(--muted); font-size: 12px; }
.stat .val { font-size: 22px; font-weight: 700; }

/* Schedule end-date bars: total count, selected count and the update trigger on one line
   (Update Evaluation End Schedule, Subject Wise Evaluation Edit Schedule, bulk edit). */
.status-card.update-bar { align-items: center; gap: 16px; flex-wrap: wrap; }
.status-card.update-bar .count.selected { color: var(--muted); font-weight: 600; }
.status-card.update-bar .open-update { margin-left: auto; }

/* -- hub tile links (menu hub pages) -- */
.hub-grid { columns: 340px; column-gap: 20px; }
.hub-grid > .card.group { break-inside: avoid; margin-bottom: 20px; width: 100%; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
             border: 1px solid transparent; text-decoration: none; color: var(--ink);
             transition: background .14s, border-color .14s; }
.link-card:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.link-card.soon { cursor: default; opacity: .55; }
.link-card.soon:hover { background: none; border-color: transparent; }
.link-card.soon .ic { filter: grayscale(35%); }
.ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
      color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.14); }
.ic.info  { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.ic.green { background: linear-gradient(135deg, #34d399, #059669); }
.ic.blue  { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.ic.red   { background: linear-gradient(135deg, #f87171, #dc2626); }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.txt b { font-size: 14px; font-weight: 620; }
.txt small { color: var(--faint); font-size: 12px; }
.arrow { color: var(--faint); display: inline-flex; }
.link-card:hover .arrow { color: var(--accent); }
.pill { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2);
        border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }

/* =====================================================================
   QA polish 2026-08-07 (spec §4.6) — global, cannot regress scoped pages
   ===================================================================== */

/* -- required-field marker: used 194x, previously styled in only 35 scoped files -- */
.req { color: #dc2626; font-weight: 700; margin-left: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .req { color: #f87171; } }
:root[data-theme="dark"] .req { color: #f87171; }

/* -- every value-entry control sits on a surface background (QA point 6) -- */
input, select, textarea { background: var(--surface); color: var(--ink); }

/* -- required inputs: ePravesh dashed treatment. Inert until markup carries `required`;
      applied deliberately to the Task-11 modal forms, NOT swept across all pages. -- */
input:required, select:required, textarea:required { border: 1px dashed var(--req-border); }
input:required:focus, select:required:focus, textarea:required:focus { border-style: solid; }

/* Answer-sheet magnifier lens (osm-booklet-viewer.js enableMagnifier). It is appended to <body> so it can
   follow the cursor over a scrolling page without being clipped by any container, which puts it outside every
   component's scoped stylesheet — hence a global rule. Port of legacy BookletVerification.aspx's #magnifier. */
.bk-magnifier {
    position: fixed;
    z-index: 60;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
    border: 2px solid var(--border, #444);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.bk-magnifier canvas { display: block; }

/* -- searchable select (QA round-3 A; round-6 C: search lives in the field itself) -- */
.osm-sel-panel { position: fixed; z-index: 120; display: flex; flex-direction: column;
                 background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
                 box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; }
/* The filter overlays the closed select's exact rect (left/top/size + radius/font set inline
   from the field's computed style by osm-select.js), so it reads as the field in edit mode —
   not a second box inside the dropdown frame. */
.osm-sel-filter { position: fixed; z-index: 121; margin: 0; box-sizing: border-box;
                  border: 1px solid var(--accent); background: var(--surface); color: var(--ink);
                  border-radius: 9px; padding: 8px 12px; font-size: 13.5px; font-family: inherit; }
.osm-sel-filter:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.osm-sel-filter::placeholder { color: var(--muted); opacity: .8; }
.osm-sel-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
/* QA round-8 C: a long option must not be what decides the panel's width - osm-select.js caps that
   to the room on screen, and the text ellipsises inside the cap (the full text is still the title). */
.osm-sel-opt { padding: 7px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--ink);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osm-sel-opt:hover { background: var(--surface-2); }
.osm-sel-opt.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
/* keyboard cursor (arrow keys / hover) — wins over .sel so the target of Enter is unambiguous */
.osm-sel-opt.hl { background: var(--accent); color: #fff; }
.osm-sel-empty { padding: 7px 10px; font-size: 12.5px; color: var(--faint); }

/* -- date fields: DD/MM/YYYY text + calendar with a Today footer (QA iv, js/osm-date.js) --
   The field is upgraded from type=date to type=text in the browser, so it gets the calendar glyph
   the native control used to draw. !important: page rules use the `background` shorthand. */
input[data-osm-date] {
    --cal-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
    background-image: var(--cal-glyph) !important; background-repeat: no-repeat !important;
    background-position: right 9px center !important; background-size: 16px !important;
    padding-right: 32px !important; cursor: pointer; font-variant-numeric: tabular-nums; }
input[data-osm-date]:disabled, input[data-osm-date]:read-only { cursor: default; }
.osm-cal { position: fixed; z-index: 130; width: 260px; box-sizing: border-box; padding: 8px;
           background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 10px;
           box-shadow: 0 10px 30px rgba(0,0,0,.18); font-family: var(--sans); font-size: 13px; user-select: none; }
.osm-cal button { font: inherit; color: inherit; background: none; border: 0; border-radius: 7px; cursor: pointer; }
.osm-cal button:disabled { cursor: default; opacity: .35; }
.osm-cal-head { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.osm-cal-title { flex: 1; text-align: center; font-weight: 600; }
.osm-cal-nav { width: 28px; height: 28px; font-size: 16px !important; line-height: 1; color: var(--muted) !important; }
.osm-cal-nav:hover, .osm-cal-day:not(:disabled):hover { background: var(--surface-2); }
.osm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.osm-cal-dow { padding: 4px 0; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.osm-cal-day { height: 30px; padding: 0; font-variant-numeric: tabular-nums; }
.osm-cal-day.other { color: var(--faint) !important; }
.osm-cal-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.osm-cal-day.sel { background: var(--accent) !important; color: #fff !important; font-weight: 600; }
.osm-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px;
                margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.osm-cal-today { padding: 5px 6px; color: var(--accent) !important; font-weight: 600; text-align: left; }
.osm-cal-clear { padding: 5px 8px; color: var(--muted) !important; }
.osm-cal-today:not(:disabled):hover, .osm-cal-clear:hover { background: var(--surface-2); }

/* Examiner-autocomplete keyboard cursor (js/osm-autocomplete.js, QA round-7 A). Global rather than
   per-page scoped css because the class is toggled by delegated JS on every assignment page's
   .ac-list; same accent treatment as .osm-sel-opt.hl so keyboard highlights read the same
   everywhere. The child spans inherit the inverted color explicitly — the pages' scoped rules set
   their own colors at higher specificity otherwise. */
.ac-list .ac-item.kb-active,
.ac-list .ac-item.kb-active .ac-item-name,
.ac-list .ac-item.kb-active .ac-item-email { background: var(--accent); color: #fff; }

/* WATI support widget (js/wati-chat.js). The vendor stylesheet paints its button, CTA bubble and
   chat panel at `z-index: 16000160 !important`, which would float all three over every overlay this
   app has -- the bubble lands bottom-right, exactly where a dialog's Save/Cancel buttons sit, and it
   would even cover the session-expiry prompt. Giving the widget's root a stacking context of its own
   confines those !important values inside it, so the whole widget layers as a single element at 30:
   above page content, below the menus (40/50), modals (60/61), select panels (120/121) and the
   session dialog (1000/1001). `position: relative` does not disturb the fixed positioning of the
   children -- only transform/filter/contain would. */
#whatsapp-chat-widget { position: relative; z-index: 30; }
