/* A26 (ruled by the PO 2026-09-28): THE ONE WINDOW, every console — built by winOpen() in shared/common.js.
   A header (the title and ✕) and a button row that stay in view, and between them the body, the only part that scrolls:
   the card is capped to the viewport and the header, a pinned band under it and the button row never shrink. At phone width it
   runs the full width. The confirm variant (.win-confirm, no ✕) lies over every window.
   Loaded by all three consoles; the licensing console does not load common.css, so every colour here names its fallback. */
.win-overlay{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,20,36,.6);cursor:pointer}
.win{display:flex;flex-direction:column;width:100%;max-width:640px;max-height:90vh;max-height:90dvh;overflow:hidden;cursor:default;
  background:var(--white,#fff);color:var(--ink,#1d2330);border-radius:12px;box-shadow:0 12px 44px rgba(15,20,36,.4)}
.win:focus{outline:none}
.win-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line,#d9dee8)}
.win-head h2{margin:0;min-width:0;font-size:18px;color:var(--navy,#181E53);overflow-wrap:anywhere}
.win-x{flex:none;background:none;border:1px solid var(--line,#d9dee8);border-radius:8px;padding:4px 10px;font:inherit;font-size:15px;line-height:1.3;color:var(--ink,#1d2330);cursor:pointer}
.win-x:hover{background:var(--navy-tint,#EEF1F8)}
/* the band never takes more than 40% of the screen: beyond that (a phone) it scrolls within itself and the body keeps its room */
.win-band{flex:none;max-height:40vh;max-height:40dvh;overflow:auto;overscroll-behavior:contain;padding:12px 20px;border-bottom:1px solid var(--line,#d9dee8)}
.win-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
.win-foot{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line,#d9dee8)}
.win-lead{margin-right:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.win-lead .ask-lead{font-size:13px;color:var(--muted,#5a6478);margin-right:4px}   /* a line of text before the lead buttons ("No suitable question?") */
.win-overlay.win-confirm{z-index:800}
.win-overlay.win-strict{cursor:default}   /* a backdrop that does nothing shows no pointer (hardening: not mutation-proved) */
/* A27 (1.56a): a question that replaces a browser box (askAct, shared/common.js): its labels, inputs, live count, choices and buttons,
   the same in every console — scoped to the window, so a console's own .btn or label rules do not reach them */
.win .ask-lbl{display:block;font-weight:600;color:var(--navy,#181E53);margin:12px 0 5px}
.win .ask-hint{font-weight:400;color:var(--muted,#5a6478)}
.win .ask-in{display:block;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line,#d9dee8);border-radius:8px;font:inherit;background:var(--white,#fff);color:var(--ink,#1d2330)}
.win textarea.ask-in{min-height:70px;resize:vertical}
.win .ask-count{font-size:12.5px;color:var(--muted,#5a6478);text-align:right;margin-top:4px}
.win .ask-count.bad{color:var(--bad,#c0392b)}
.win .ask-warn{color:var(--bad,#c0392b);font-weight:600}
.win .ask-radio{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line,#d9dee8);border-radius:8px;margin-top:8px;cursor:pointer}
.win .ask-radio input{margin-top:3px}
.win .ask-radio b{color:var(--navy,#181E53)}
.win-foot .btn.ask-no{background:transparent;border:1px solid var(--line,#d9dee8);color:var(--navy,#181E53)}
.win-foot .btn.ask-go{background:var(--blue,#0070C0);border:1px solid var(--blue,#0070C0);color:#fff}
.win-foot .btn.ask-danger{background:var(--white,#fff);border:1px solid var(--bad,#c0392b);color:var(--bad,#c0392b)}
/* a long form's Save / Cancel bar stays in view at the foot of the screen (the school console's exam editor; the licensing console's
   school and administrator forms). --bar-bleed is the card's side padding, which it runs over; a card holding it never clips, since a
   card that scrolled would hold the bar inside itself. That outranks admin.css's .card:has(table) scroll at every width, so a card
   holding the bar keeps any wide table in a scroller of its own (the agreements table's wrapper) */
.editor-actions{position:sticky;bottom:0;z-index:5;background:var(--white,#fff);border-top:1px solid var(--line,#d9dee8);
  margin:20px calc(-1 * var(--bar-bleed,26px)) 0;padding:14px var(--bar-bleed,26px);border-radius:0 0 var(--radius,12px) var(--radius,12px)}
.card:has(.editor-actions){overflow:visible}
@media (max-width:600px){
  .win-overlay{padding:0}
  .win{max-width:none !important;max-height:100vh;max-height:100dvh;border-radius:0}   /* !important: over a caller's width */
  .win-head,.win-band,.win-body,.win-foot{padding-left:14px;padding-right:14px}
}

/* THE FILTER BOX (the PO, 2026-11-05), every console: each filter row's selects and boxes (class="fbox") are one fixed width, about
   three average words, and never shrink, so nothing moves when a choice changes; a narrow window wraps whole boxes, in order.
   One height and one font size too, so a row's boxes line up and the face agrees with the select under it. A closed select's choice is shown on a face laid over its text
   (shared/common.js filterBox), cut with an ellipsis; the face takes no click. Windows' high-contrast mode draws the select's own. */
:root{--fbox-w:12rem;--fbox-fs:15px}   /* each width the smallest that shows "050-Meteorology (15)" whole beside the arrow, at its font size */
@media (max-width:760px){ :root{--fbox-w:12.75rem;--fbox-fs:16px} }   /* 16px: iOS zooms on anything smaller */
input.fbox.fbox-wide{--fbox-w:min(16.5rem,100%)}   /* a search box whose prompt is longer than three words: wide enough to show it whole, never past its row */
select.fbox,input.fbox{flex:none;width:var(--fbox-w) !important;min-width:var(--fbox-w) !important;max-width:var(--fbox-w) !important;box-sizing:border-box;
  height:42px;font-family:inherit;font-size:var(--fbox-fs) !important;padding-left:10px !important}
.fbox-wrap{position:relative;display:inline-block;flex:none;align-self:flex-start;width:var(--fbox-w);vertical-align:middle}
.fbox-text{position:absolute;left:1px;right:26px;top:50%;transform:translateY(-50%);padding-left:9px;box-sizing:border-box;pointer-events:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--fbox-fs);line-height:1.3;color:var(--ink,#1d2330);background:var(--white,#fff)}
select.fbox:disabled+.fbox-text{color:#5a6478;background:#f1f3f7}   /* the greyed box's own grey (common.css select:disabled), not a white panel inside it */
@media (forced-colors:active){ .fbox-text{display:none} }
/* THE FILTER DIVIDER (the PO, 2026-11-05), every console: one line between a filter row and the list or table below it, room above
   and below. It is a wrapper round the tinted group, so the line runs under the tint, not along its rounded edge; its margin is
   !important over each row's own bottom margin. The exam picker needs none: its window band's border is it */
.filter-rule{border-bottom:1px solid var(--line,#d9dee8);padding-bottom:14px;margin-bottom:14px !important}
/* THE FILTER TINT (the PO, 2026-11-05), every console: each group of filters sits on one pale cyan panel, the licensing console's.
   A fixed colour, not a brand one: the groups sit on white cards and windows in every console, and its ink keeps its contrast */
:root{--filter-tint:#E8F3FB}
.filter-box{background:var(--filter-tint);border-radius:8px;padding:10px 12px}
.filter-rule>.filter-box{margin-bottom:0}
