/* EOC OS styles. Moved out of index.html on 2026-10-01; loaded by
   <link rel="stylesheet" href="styles.css?v=N">. Bump that ?v= when this changes. */
  :root {
    --navy:#1E2D5A; --blue:#2E6DAD; --ice:#C8DCF5; --white:#FFFFFF;
    --offwhite:#F0F4FA; --gray-light:#E4EAF2; --gray-mid:#8A9BB5;
    --gray-dark:#3C4A5E; --gold:#C9922A; --green:#1E7A4A;
    --red:#B03030; --text:#1A2235; --text-muted:#5A6B82;
    --border:#CBD5E4; --font:'Segoe UI',system-ui,sans-serif;
    --font-mono:'Consolas','Courier New',monospace;
    /* Agency Branding — text-on-accent tokens. Everywhere --navy or --blue
       is used as a background, the text color reads --on-navy/--on-blue (or
       the ...-muted variant) instead of a hardcoded white/--ice, so a light
       accent color automatically gets dark text and a dark one gets light
       text. JS recomputes these three whenever the accent color changes. */
    --on-navy:#FFFFFF; --on-navy-muted:#C8DCF5; --on-blue:#FFFFFF;
    /* Headings/stat numbers (page titles, dashboard figures, card titles,
       section labels) have always borrowed --navy as a foreground text
       color — safe in light mode, since --navy is dark and the page behind
       it is light. --navy is also, separately, used as a BACKGROUND for the
       header/nav chrome, which needs to stay dark in both themes. Those two
       roles can't share one variable once the theme goes dark: --heading
       splits them apart, tracking whatever reads correctly as *foreground
       text on the page*, independent of what --navy is doing as chrome. */
    --heading:#1E2D5A;
    /* Practice Mode — these were plain hardcoded hex values scattered
       through the rules below (card/modal surfaces, table zebra/hover
       tints, status pill backgrounds, the incident bar's own darker navy).
       Pulling them into named tokens here means the practice-mode override
       block further down can re-tune every one of them for a dark ground
       instead of leaving a patchwork of light-theme colors "leaking"
       through — see that block for the reasoning on this specifically not
       being a plain black/white inversion. */
    --surface:#FFFFFF;
    --incident-bar-bg:#162244; --incident-bar-border:#2a3f6e; --add-inc-border:#3a5080;
    --btn-gray-bg:#5E6D80;
    --table-hover-bg:#EEF3FB; --table-zebra-bg:#F7FAFF;
    --pill-green-bg:#D4EDDA; --pill-green-text:#1A5C30;
    --pill-blue-bg:#D1E7F7; --pill-blue-text:#1A4A7A;
    --pill-gold-bg:#FDF0D5; --pill-gold-text:#7A4A00;
    --pill-red-bg:#FDDEDE; --pill-red-text:#7A1A1A;
    --pill-gray-bg:#E8ECF2; --pill-gray-text:#4A5A70;
    --overdue-bg:#FFF8F8;
    --bp-box-bg:#EEF6FF;
  }
  /* Practice Mode — a real dark theme, not a black/white inversion. Pure
     white-on-black reads as a fault state (a printer negative) more than a
     deliberate choice, and it's genuinely harder on the eyes over the long
     stretch a full training walkthrough runs — so this is a dark charcoal
     ground with soft off-white text, same instinct as a code editor's dark
     mode, plus the status colors (red/green/gold) re-tuned just enough to
     keep reading correctly as bad/good/caution against a dark surface
     instead of a light one. This sits on `body`, not `:root` — Agency
     Branding writes its custom --navy/--blue/--on-navy/etc. as an inline
     style on the <html> element (see applyBrandingToPage() in app.js), and
     a rule that explicitly targets `body` wins over an inherited value for
     everything inside it regardless of the ancestor's specificity — so
     Practice Mode's palette can't be papered over by any agency's own
     branding colors, exactly as intended. The theme change itself is the
     persistent, peripheral-vision-visible signal that this is a simulated
     exercise — no separate banner needed, since it covers every tab and
     every page for as long as Practice Mode is active. */
  body.practice-mode {
    --navy:#2A2E38; --blue:#5B9BD5; --ice:#3D5268; --white:#33363E;
    --offwhite:#24262B; --gray-light:#3C4049; --gray-mid:#8B93A3;
    --gray-dark:#C8CCD4; --gold:#E0A94E; --green:#4CAF7D;
    --red:#E0736C; --text:#ECEEF1; --text-muted:#A6ADBA;
    --border:#454A54;
    --on-navy:#F2F4F7; --on-navy-muted:#C7D0DC; --on-blue:#FFFFFF;
    --heading:#ECEEF1;
    --surface:#2E313A;
    --incident-bar-bg:#1E212A; --incident-bar-border:#343A46; --add-inc-border:#454B57;
    --btn-gray-bg:#5B6270;
    --table-hover-bg:#363B45; --table-zebra-bg:#2A2E36;
    --pill-green-bg:#24402E; --pill-green-text:#7FD9A3;
    --pill-blue-bg:#203A50; --pill-blue-text:#8EC2EF;
    --pill-gold-bg:#40331A; --pill-gold-text:#E6B85C;
    --pill-red-bg:#402221; --pill-red-text:#F0938D;
    --pill-gray-bg:#363A42; --pill-gray-text:#B7BFCB;
    --overdue-bg:#33201F;
    --bp-box-bg:#223142;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  body{font-family:var(--font);font-size:13px;color:var(--text);background:var(--offwhite);height:100vh;overflow:hidden;display:flex;flex-direction:column;}
  #header{background:var(--navy);height:48px;display:flex;align-items:center;padding:0 16px;gap:16px;flex-shrink:0;border-bottom:2px solid var(--gold);}
  /* Degraded Connectivity / Read-Only Mode — PRD 6.3. Deliberately reuses
     the same gold-warning language as .bp-box / .warn-box elsewhere in the
     app rather than red, which this app reserves for destructive/error
     states — this is a caution about data freshness, not a failure. */
  #degraded-banner{display:flex;align-items:center;justify-content:center;gap:4px;background:var(--pill-gold-bg);color:var(--pill-gold-text);font-size:12px;font-weight:600;padding:6px 16px;flex-shrink:0;border-bottom:2px solid var(--gold);text-align:center;}
  #header .logo{font-size:18px;font-weight:700;color:var(--on-navy);letter-spacing:1px;}
  #header .tagline{font-size:10px;color:var(--on-navy-muted);font-style:italic;flex:1;}
  .badge-role{background:var(--blue);color:var(--on-blue);padding:3px 8px;border-radius:3px;font-size:10px;font-weight:700;text-transform:uppercase;}
  .header-user{color:var(--on-navy);font-size:12px;}
  /* Exercise clock (Practice Mode, 2026-11-12; js/exercise-clock.js): centered
     in the header, left of the user's name. It takes the tagline's room. */
  .exercise-clock{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.1;}
  .exercise-clock[hidden]{display:none;}
  body:has(#exercise-clock:not([hidden])) #header .tagline{display:none;}
  /* The exercise time takes the place of the elapsed-time clock. */
  body.exercise-clock-on #duration-clock{display:none;}
  /* Room for it: the agency name gives way (ellipsis), and on narrower
     desktops Observation / Practice Mode become icon buttons. */
  body:has(#exercise-clock:not([hidden])) #header .logo{flex:0 1 auto;min-width:60px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  body:has(#exercise-clock:not([hidden])) #header{gap:10px;}
  body:has(#exercise-clock:not([hidden])) .header-user{white-space:nowrap;}
  .ex-now{color:var(--gold);font-size:12px;font-weight:700;white-space:nowrap;}
  .ex-now.ex-off{color:var(--on-navy-muted);font-weight:400;font-size:11px;}
  .ex-controls{display:inline-flex;align-items:center;gap:4px;}
  .ex-controls input{padding:1px 3px;font-size:11px;border-radius:3px;border:1px solid var(--on-navy-muted);background:var(--surface);color:var(--text);height:20px;}
  .ex-controls input[type=date]{width:112px;}
  .ex-controls input[type=time]{width:72px;}
  .ex-controls .btn-xs{padding:1px 8px;min-height:0;height:20px;font-size:11px;}
  .ex-controls .ex-undo{color:var(--on-navy-muted);font-size:10px;white-space:nowrap;}
  @media screen and (min-width:761px) and (max-width:1240px){
    body:has(#exercise-clock:not([hidden])) .obs-trigger,body:has(#exercise-clock:not([hidden])) .practice-toggle{font-size:0;padding:0;width:32px;height:28px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
    body:has(#exercise-clock:not([hidden])) .obs-trigger .ico,body:has(#exercise-clock:not([hidden])) .practice-toggle .ico{margin:0;}
  }
  .nav-exercise-clock{display:none;}
  .header-logout{color:var(--on-navy-muted);font-size:11px;cursor:pointer;text-decoration:underline;}
  /* Practice Mode toggle — a session-scope control (which universe is this
     whole session in), grouped with the other session-scope controls
     (role, branding, logout) rather than living in the Incident bar (which
     is about which Incident tab is open, a different concern). Its own
     look stays subtle in live mode — the real "impossible to miss" signal
     is the dark theme the whole app switches to once active, not this
     button. */
  .practice-toggle{padding:2px 8px;border-radius:10px;font-size:10px;font-weight:600;cursor:pointer;border:1px solid var(--on-navy-muted);color:var(--on-navy-muted);white-space:nowrap;}
  .practice-toggle:hover{background:rgba(255,255,255,0.1);}
  /* 2026-09-30 — Observations: header button, entry box, list. */
  .obs-trigger{padding:2px 9px;border-radius:10px;font-size:10px;font-weight:700;cursor:pointer;border:1px solid var(--gold);color:var(--on-navy);white-space:nowrap;}
  .obs-trigger:hover,.obs-trigger:focus{background:var(--gold);color:#1B1D22;}
  .obs-intro{background:var(--bp-box-bg);border-left:3px solid var(--blue);padding:8px 10px;margin:0 0 12px;font-size:12px;color:var(--text);border-radius:0 3px 3px 0;line-height:1.5;}
  .obs-choices{display:flex;gap:6px;flex-wrap:wrap;}
  .obs-choices label{display:flex;align-items:center;gap:5px;font-size:12px;border:1px solid var(--border);border-radius:14px;padding:4px 10px;cursor:pointer;font-weight:400;}
  .obs-choices label:has(input:checked){border-color:var(--blue);background:var(--pill-blue-bg);color:var(--pill-blue-text);font-weight:600;}
  .obs-anon{display:flex;gap:8px;align-items:flex-start;font-size:12px;cursor:pointer;margin-top:4px;}
  .obs-anon input{margin-top:2px;}
  .obs-note{font-size:11px;color:var(--text-muted);line-height:1.45;}
  tr.obs-hidden td{opacity:.6;}
  .obs-hidden-note{font-size:10px;color:var(--red);margin-top:4px;font-style:italic;white-space:normal;}
  body.practice-mode .practice-toggle{background:var(--gold);border-color:var(--gold);color:#1B1D22;font-weight:700;}
  #incident-bar{background:var(--incident-bar-bg);height:30px;display:flex;align-items:center;padding:0 16px;gap:2px;flex-shrink:0;border-bottom:1px solid var(--incident-bar-border);}
  /* Round 6 — Incident Bar Mark. Unlike #header, this bar's background
     (--incident-bar-bg) is never touched by Agency Branding — it's always
     this fixed dark navy/near-black, regardless of an agency's chosen
     accent color — so it's the one safe spot for a permanent EOCOS mark
     that can never clash with a customer's own branding. margin-left:auto
     pins it to the true right edge of the bar rather than just trailing
     the last incident tab, so it holds its position whether zero incidents
     or a full row of them are open. */
  .inc-mark{height:20px;width:20px;object-fit:contain;margin-left:auto;flex-shrink:0;}
  #incident-bar .inc-label{font-size:10px;color:var(--gray-mid);margin-right:8px;text-transform:uppercase;letter-spacing:0.5px;flex-shrink:0;}
  /* Round 6 — Incident Bar Overflow. Enough concurrent Incidents, or a few
     with long enough names, used to have nowhere to go: tabs had no
     nowrap/ellipsis/scroll handling at all, so they'd wrap inside the
     bar's fixed 30px height and visually overlap everything around them.
     .inc-scroll (wrapping the tabs AND the "+ Add Incident" button
     together) is now the one flexible, scrollable region between the
     fixed-width "Incidents:" label and the shield mark pinned at the far
     right — it grows to fill whatever space is left and scrolls
     horizontally (mouse wheel, trackpad swipe, or the scrollbar itself)
     once its contents no longer fit. Crucially, "+ Add Incident" lives
     INSIDE this scrolling wrapper, right after the tabs, not as a sibling
     after it — an earlier version put the flex-grow directly on
     #incident-tabs with the button outside it, which stretched the empty
     space into the tabs box and shoved the button all the way down next
     to the shield mark instead of leaving it sitting right after the last
     tab where it belongs. Each tab is separately capped at 200px with an
     ellipsis (full name still available via the title tooltip on hover),
     so a single absurdly long Incident name can't hog the whole visible
     strip before you even see the next tab. */
  .inc-scroll{display:flex;align-items:center;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.25) transparent;}
  .inc-scroll::-webkit-scrollbar{height:4px;}
  .inc-scroll::-webkit-scrollbar-track{background:transparent;}
  .inc-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.25);border-radius:2px;}
  #incident-tabs{display:flex;flex-shrink:0;}
  .inc-tab{padding:0 12px;height:22px;display:flex;align-items:center;font-size:11px;color:var(--on-navy-muted);border-radius:3px;cursor:pointer;gap:6px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;}
  .inc-tab:hover{background:rgba(255,255,255,0.08);}
  .inc-tab.active{background:var(--blue);color:var(--on-blue);font-weight:600;}
  .inc-tab .inc-dot{width:6px;height:6px;border-radius:50%;background:var(--green);}
  .inc-tab.closed .inc-dot{background:var(--gray-mid);}
  .add-inc{margin-left:6px;padding:0 8px;height:22px;display:flex;align-items:center;font-size:11px;color:var(--gray-mid);border:1px dashed var(--add-inc-border);border-radius:3px;cursor:pointer;flex-shrink:0;}
  .add-inc:hover{color:var(--on-navy-muted);border-color:var(--blue);}
  /* 2026-10-16 -- grouped left-hand navigation (after the UTRGV call: a row of
     17 tabs is too much for occasional users to remember). Sections carry a
     header in the agency color with a count, like the COOP Departments list;
     each screen shows a one-line description unless the user picks Compact.
     Colors come from --navy / --on-navy, so Agency Branding and Practice Mode
     apply as before. */
  #app-body{flex:1;display:flex;min-height:0;}
  #nav{width:250px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);overflow-y:auto;padding:10px 0 16px;display:flex;flex-direction:column;gap:10px;}
  .nav-search{margin:0 10px;}
  .nav-search input{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:3px;padding:6px 8px;font-size:12px;font-family:var(--font);color:var(--text);background:var(--surface);}
  .nav-section{margin:0 10px;}
  .nav-section-head{background:var(--navy);color:var(--on-navy);padding:6px 10px;border-radius:4px 4px 0 0;font-size:10.5px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;}
  .nav-section-items{border:1px solid var(--border);border-top:none;border-radius:0 0 4px 4px;overflow:hidden;}
  .nav-tab{display:block;width:100%;text-align:left;border:none;border-bottom:1px solid var(--gray-light);background:var(--surface);padding:7px 10px;cursor:pointer;font-family:var(--font);color:var(--text);box-sizing:border-box;}
  .nav-tab:last-child{border-bottom:none;}
  .nav-tab .nav-label{display:block;font-size:12.5px;font-weight:600;color:var(--heading);}
  .nav-tab .nav-desc{display:block;font-size:10.5px;color:var(--text-muted);margin-top:1px;line-height:1.35;}
  #nav.compact .nav-desc{display:none;}
  .nav-tab:hover{background:var(--table-hover-bg);}
  .nav-tab.active{background:var(--table-hover-bg);box-shadow:inset 3px 0 0 var(--navy);}
  .nav-tab.active .nav-label{color:var(--heading);}
  .nav-footer{margin:0 10px;display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--text-muted);}
  .nav-footer button{background:none;border:none;padding:2px 0;color:var(--blue);font-family:var(--font);font-size:11px;cursor:pointer;text-align:left;}
  /* Under 760px the navigation is a slide-in menu: see "Phone layout" at the end. */
  #main{flex:1;overflow:hidden;display:flex;flex-direction:column;}
  .page{display:none;flex:1;overflow:hidden;flex-direction:column;}
  .page.active{display:flex;}
  .page-header{background:var(--surface);border-bottom:1px solid var(--border);padding:10px 16px;display:flex;align-items:center;gap:12px;flex-shrink:0;}
  .page-header h2{font-size:16px;font-weight:700;color:var(--heading);flex:1;}
  .page-meta{font-size:11px;color:var(--text-muted);}
  .multi-hint{font-size:11px;color:var(--text-muted);margin-top:2px;}
  .btn{padding:5px 12px;border-radius:3px;border:none;cursor:pointer;font-size:12px;font-family:var(--font);font-weight:500;display:inline-flex;align-items:center;gap:5px;}
  .btn:hover{opacity:0.85;}
  .btn:disabled{opacity:0.5;cursor:not-allowed;}
  .btn-primary{background:var(--blue);color:var(--on-blue);}
  .btn-ghost{background:transparent;color:var(--blue);border:1px solid var(--blue);}
.btn-ghost-on-navy{background:transparent;color:var(--on-navy);border:1px solid var(--on-navy);}
  .btn-gold{background:var(--gold);color:var(--navy);}
  .btn-green{background:var(--green);color:#fff;}
  .btn-gray{background:var(--btn-gray-bg);color:#fff;}
  .btn-red{background:var(--red);color:#fff;}
  .btn-sm{padding:3px 8px;font-size:11px;}
  .btn-xs{padding:2px 6px;font-size:10px;}
  .data-table-wrap{flex:1;overflow:auto;}
  table.data-table{width:100%;border-collapse:collapse;font-size:12px;}
  table.data-table th{background:var(--navy);color:var(--on-navy-muted);padding:7px 10px;text-align:left;font-weight:600;font-size:11px;position:sticky;top:0;z-index:2;white-space:nowrap;}
  table.data-table td{padding:6px 10px;border-bottom:1px solid var(--gray-light);vertical-align:middle;}
  table.data-table tr:hover td{background:var(--table-hover-bg);}
  table.data-table tr:nth-child(even) td{background:var(--table-zebra-bg);}
  .pill{display:inline-block;padding:2px 8px;border-radius:10px;font-size:10px;font-weight:600;white-space:nowrap;}
  .pill-green{background:var(--pill-green-bg);color:var(--pill-green-text);}
  .pill-blue{background:var(--pill-blue-bg);color:var(--pill-blue-text);}
  .pill-gold{background:var(--pill-gold-bg);color:var(--pill-gold-text);}
  .pill-red{background:var(--pill-red-bg);color:var(--pill-red-text);}
  .pill-gray{background:var(--pill-gray-bg);color:var(--pill-gray-text);}
  .dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px;flex-shrink:0;}
  .dash-card{background:var(--surface);border-radius:4px;border:1px solid var(--border);padding:14px 16px;border-top:3px solid var(--blue);}
  .dash-card.gold{border-top-color:var(--gold);}
  .dash-card.green{border-top-color:var(--green);}
  .dash-card.red{border-top-color:var(--red);}
  /* Round 3 — Executive Rollup's three Response Relationship groupings
     (Home Jurisdiction / Mutual Aid Rendered / Mutual Aid Received) read as
     one continuous flow with only a thin .form-section rule between them.
     Wrapping each in its own card, using the same top-accent-border
     language as the stat tiles above, gives the eye a real break between
     categories instead of just a change in heading text. */
  .rollup-section{background:var(--surface);border:1px solid var(--border);border-radius:4px;border-top:4px solid var(--blue);padding:1px 16px 16px;margin-bottom:16px;}
  .rollup-section.gold{border-top-color:var(--gold);}
  .rollup-section.green{border-top-color:var(--green);}
  .rollup-section.red{border-top-color:var(--red);}
  .rollup-section .form-section{border-bottom:none;margin-top:12px;margin-bottom:8px;}
  .dash-card .dash-num{font-size:32px;font-weight:700;color:var(--heading);line-height:1;}
  .dash-card .dash-label{font-size:11px;color:var(--text-muted);margin-top:4px;text-transform:uppercase;letter-spacing:0.5px;}
  .whiteboard-section{padding:16px;flex:1;overflow-y:auto;}
  .card-grid{display:flex;flex-wrap:wrap;gap:8px;}
  .cs-columns{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}
  /* 2026-10-15 -- Home: EOC Director + Command Staff share one collapsible panel. */
  .home-panel{background:var(--surface);border:1px solid var(--border);border-radius:4px;}
  .home-panel-head{background:var(--navy);color:var(--on-navy);padding:6px 10px 6px 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-radius:3px 3px 0 0;}
  .home-panel.collapsed .home-panel-head{border-radius:3px;}
  .home-collapse{background:transparent;border:none;color:var(--on-navy);font-family:var(--font);font-size:12px;font-weight:700;text-transform:uppercase;cursor:pointer;padding:4px 8px;border-radius:3px;display:inline-flex;align-items:center;gap:6px;}
  .home-collapse:hover{background:rgba(255,255,255,0.1);}
  .home-caret{display:inline-block;transition:transform .15s;}
  .home-panel.collapsed .home-caret{transform:rotate(-90deg);}
  .home-panel.collapsed #home-leadership-body{display:none;}
  .home-leadership-summary{font-size:11px;color:var(--on-navy-muted);}
  .op-card.director-card{border-left-color:var(--gold);}
  .op-card.director-card .card-title{text-transform:uppercase;font-size:10px;letter-spacing:0.5px;color:var(--gold);}
  .op-card.director-card .card-loc{font-size:13px;font-weight:600;color:var(--heading);}
  /* 2026-10-16 -- Home quick actions + whiteboards that scroll inside. */
  .quick-actions{margin:16px 16px 0;overflow:hidden;}
  .home-panel-title{margin:0;background:var(--navy);color:var(--on-navy);padding:8px 14px;font-size:12px;font-weight:700;letter-spacing:0.5px;text-transform:uppercase;}
  /* 2026-11-25 -- Home: Battle Rhythm card (battle-rhythm.js). */
  .br-panel{margin:16px 16px 0;overflow:hidden;}
  .br-panel.br-panel-rollup{margin:0 0 16px;}
  .br-head{background:var(--navy);color:var(--on-navy);display:flex;align-items:center;gap:8px;padding:6px 10px 6px 14px;}
  .br-title{margin:0;flex:1;font-size:12px;font-weight:700;letter-spacing:0.5px;text-transform:uppercase;display:inline-flex;align-items:center;gap:6px;}
  .br-schedule-btn{background:transparent;border:1px solid rgba(255,255,255,0.5);color:inherit;border-radius:3px;font-size:11px;padding:3px 10px;cursor:pointer;font-family:var(--font);}
  .br-schedule-btn:hover{background:rgba(255,255,255,0.1);}
  .br-schedule-btn[hidden]{display:none;}
  .br-inc{margin-left:4px;font-size:10px;}
  .br-group{font-size:12px;color:var(--heading);margin:12px 0 6px;text-transform:uppercase;letter-spacing:.3px;}
  .br-group:first-child{margin-top:0;}
  .br-body{padding:8px 14px;display:flex;flex-direction:column;gap:6px;font-size:13px;}
  .br-row{display:flex;gap:12px;align-items:baseline;min-width:0;}
  .br-label{flex:0 0 140px;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.3px;}
  .br-val{flex:1;min-width:0;overflow-wrap:anywhere;}
  .br-next-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}
  .br-next-list li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;}
  .br-when{flex:0 0 auto;white-space:nowrap;}
  .br-in{font-size:11px;color:var(--text-muted);}
  .br-what{min-width:0;overflow-wrap:anywhere;}
  .br-list{display:flex;flex-direction:column;gap:8px;}
  .br-item{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;border:1px solid var(--border);border-radius:4px;padding:8px 10px;font-size:12.5px;}
  .br-item-main{min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere;}
  .br-item-when{color:var(--heading);font-weight:600;}
  .br-item-actions{display:flex;gap:4px;flex:0 0 auto;}
  .br-form-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.3px;}
  .br-form-label.required::after{content:' *';color:var(--red);}
  .br-days{display:flex;flex-wrap:wrap;gap:6px 12px;}
  .form-group label.br-day{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:400;text-transform:none;letter-spacing:0;color:var(--text);cursor:pointer;}
  .br-times{display:flex;flex-direction:column;gap:4px;}
  .br-time-row{display:flex;gap:6px;align-items:center;}
  .form-group .br-time{max-width:150px;}
  #br-add-time{align-self:flex-start;margin-top:4px;}
  .br-shift-hours{display:flex;flex-direction:column;gap:6px;}
  .br-shift-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;}
  .br-shift-name{min-width:90px;font-weight:600;color:var(--heading);}
  .br-shift-row select{border:1px solid var(--border);border-radius:3px;padding:4px 6px;font-family:var(--font);font-size:12px;color:var(--text);background:var(--surface);}
  .br-shift-hint{font-size:11px;color:var(--text-muted);font-style:italic;}
  @media (max-width:760px){ .br-panel{margin:10px 10px 0;} .br-row{flex-direction:column;gap:2px;} .br-label{flex:none;} .br-item{flex-direction:column;} }
  .quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;}
  .quick-tile{text-align:left;background:var(--table-zebra-bg);border:1px solid var(--border);border-radius:6px;padding:12px 14px;cursor:pointer;font-family:var(--font);color:var(--text);display:flex;flex-direction:column;gap:4px;min-height:64px;}
  .quick-tile:hover{border-color:var(--blue);box-shadow:0 2px 8px rgba(0,0,0,0.08);}
  .quick-tile .qt-label{font-size:13.5px;font-weight:700;color:var(--heading);display:flex;justify-content:space-between;gap:6px;}
  .quick-tile .qt-label::after{content:"\203A";color:var(--blue);font-size:18px;line-height:1;}
  .quick-tile .qt-hint{font-size:11px;color:var(--text-muted);}
  .quick-more{padding:0 14px 12px;font-size:12px;text-align:right;} .quick-more:empty{display:none;}
  @media (max-width:1100px){ .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
  .dash-card.clickable{cursor:pointer;}
  .dash-card.clickable:hover{box-shadow:0 2px 8px rgba(0,0,0,0.12);}
  .wb-row{display:flex;flex-wrap:wrap;gap:12px;padding:0 16px 16px;}
  .wb-panel{flex:1 1 380px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:4px;}
  .wb-head{background:var(--navy);color:var(--on-navy);padding:8px 14px;font-size:12px;font-weight:700;text-transform:uppercase;display:flex;gap:6px;align-items:center;}
  .wb-count{font-weight:400;color:var(--on-navy-muted);text-transform:none;}
  .wb-scroll{max-height:460px;}
  .wx-collapse{background:transparent;border:1px solid rgba(255,255,255,.5);color:inherit;border-radius:3px;font-size:11px;padding:2px 8px;cursor:pointer;font-family:var(--font);}
  .wx-card.wx-collapsed .wx-body{display:none;}
  /* 2026-10-16 -- Arrival check-in. */
  .checkin-rosters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;}
  .checkin-roster{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:7px 12px;cursor:pointer;font-family:var(--font);color:var(--text);}
  .checkin-roster.selected{border-color:var(--navy);box-shadow:inset 0 -3px 0 var(--navy);}
  .checkin-roster .cr-name{font-weight:600;font-size:12.5px;color:var(--heading);}
  .checkin-roster .cr-count{font-size:11px;color:var(--text-muted);}
  .ck-summary{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:10px 14px;margin-bottom:10px;}
  .ck-big{font-size:15px;color:var(--heading);}
  .ck-big strong{font-size:24px;}
  .ck-sub{font-size:12px;color:var(--text-muted);}
  .ck-bar{height:8px;background:var(--gray-light);border-radius:4px;overflow:hidden;margin-top:6px;}
  .ck-bar div{height:100%;background:var(--green);}
  .ck-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px;}
  .ck-search{flex:1 1 300px;min-width:220px;font-size:15px;padding:9px 12px;border:2px solid var(--blue);border-radius:4px;font-family:var(--font);color:var(--text);background:var(--surface);}
  .ck-filters{display:flex;gap:2px;background:var(--gray-light);padding:3px;border-radius:5px;}
  .ck-filters button{border:none;background:transparent;padding:6px 10px;border-radius:3px;font-family:var(--font);font-size:12px;cursor:pointer;color:var(--text);}
  .ck-filters button.selected{background:var(--surface);font-weight:600;color:var(--heading);}
  .ck-n{color:var(--text-muted);font-weight:400;}
  .ck-layout{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}
  .ck-table{flex:999 1 560px;min-width:0;overflow-x:auto;}
  .ck-btn{min-height:36px;min-width:96px;line-height:1.2;}
  .ck-by{font-size:10px;color:var(--text-muted);}
  tr.ck-arrived td{background:var(--pill-green-bg);}
  .ck-star{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:3px 9px;font-size:11px;cursor:pointer;color:var(--text-muted);font-family:var(--font);}
  .ck-star.on{border-color:var(--gold);color:var(--pill-gold-text);background:var(--pill-gold-bg);font-weight:600;}
  .ck-missing{flex:1 1 280px;background:var(--surface);border:1px solid var(--border);border-radius:4px;overflow:hidden;}
  .ck-missing-title{background:var(--navy);color:var(--on-navy);padding:8px 12px;font-size:12px;font-weight:700;text-transform:uppercase;}
  .ck-group{padding:9px 12px;border-bottom:1px solid var(--gray-light);}
  .ck-group-head{font-weight:700;color:var(--heading);display:flex;justify-content:space-between;gap:8px;}
  .ck-group-head span{font-weight:600;color:var(--red);font-size:11px;}
  .ck-group-names{font-size:12px;margin-top:3px;}
  .ck-group-sups{font-size:11.5px;margin-top:4px;color:var(--text);}
  .ck-none{color:var(--text-muted);font-style:italic;}
  /* 2026-10-16 COOP Plans */
  .coop-coordinator{font-size:13px;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
  .coop-layout{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}
  .coop-depts{flex:1 1 240px;max-width:320px;background:var(--surface);border:1px solid var(--border);border-radius:4px;overflow:hidden;}
  .coop-dept{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;background:none;border:none;border-bottom:1px solid var(--gray-light);padding:9px 12px;cursor:pointer;font-family:var(--font);color:var(--text);min-height:44px;}
  .coop-dept:hover{background:var(--gray-light);}
  .coop-dept.selected{background:var(--pill-blue-bg);box-shadow:inset 3px 0 0 var(--navy);}
  .coop-dept.archived{opacity:.7;}
  .coop-dept-name{font-weight:700;color:var(--heading);font-size:13px;}
  .coop-dept-meta{font-size:11px;color:var(--text-muted);}
  .coop-plan{flex:999 1 520px;min-width:0;}
  .coop-plan-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:12px 14px;margin-bottom:12px;}
  .coop-plan-head h3{margin:0 0 4px;color:var(--heading);font-size:17px;}
  .coop-plan-meta{font-size:12px;color:var(--text);line-height:1.6;}
  .coop-plan-actions{display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap;}
  .coop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;}
  .coop-card{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:10px 12px;min-width:0;}
  .coop-card:first-child{grid-column:1/-1;}
  .coop-card h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--heading);}
  .coop-fn-table{width:100%;}
  .coop-ul,.coop-ol{margin:0;padding-left:20px;font-size:12.5px;line-height:1.6;}
  .coop-ul{list-style:none;padding-left:0;}
  .coop-deleg{font-size:12px;margin-top:8px;}
  .coop-modal{width:880px;}
  .coop-edit-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:12.5px;font-weight:600;color:var(--heading);margin-bottom:8px;}
  .coop-steps{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px;}
  .coop-step{border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:5px 10px;font-size:12px;cursor:pointer;font-family:var(--font);color:var(--text);min-height:32px;}
  .coop-step.current{border-color:var(--navy);background:var(--navy);color:var(--on-navy);font-weight:600;}
  .coop-step.done:not(.current) .coop-step-mark{color:var(--pill-green-text);font-weight:700;}
  .coop-step-title{font-weight:700;color:var(--heading);font-size:14px;}
  .coop-step-help{font-size:12px;color:var(--text-muted);margin:2px 0 10px;}
  .coop-edit-table input,.coop-edit-table select{width:100%;min-width:90px;padding:5px 6px;border:1px solid var(--border);border-radius:3px;font-family:var(--font);background:var(--surface);color:var(--text);}
  .coop-row-btns{white-space:nowrap;}
  .coop-view-switch{align-self:flex-start;}
  .coop-view-switch button.selected{background:var(--surface);font-weight:600;color:var(--heading);}
  .coop-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:12px;}
  .coop-tile{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:10px 12px;}
  .coop-tile-value{font-size:24px;font-weight:700;color:var(--heading);}
  .coop-tile-label{font-size:11.5px;color:var(--text-muted);}
  .coop-tile.good .coop-tile-value{color:var(--pill-green-text);}
  .coop-tile.warn{border-color:var(--gold);} .coop-tile.warn .coop-tile-value{color:var(--pill-gold-text);}
  .coop-tile.bad{border-color:var(--red);} .coop-tile.bad .coop-tile-value{color:var(--red);}
  .coop-activate-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12.5px;margin-bottom:12px;}
  .coop-activate-bar select{padding:6px 8px;border:1px solid var(--border);border-radius:3px;font-family:var(--font);background:var(--surface);color:var(--text);}
  .coop-board-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:12px;}
  .coop-board-card{background:var(--surface);border:1px solid var(--border);border-top:4px solid var(--green);border-radius:4px;padding:12px 14px;min-width:0;}
  .coop-board-card.soon{border-top-color:var(--gold);}
  .coop-board-card.over{border-top-color:var(--red);}
  .coop-board-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;}
  .coop-board-head h3{margin:0;font-size:16px;color:var(--heading);}
  .coop-phases{display:flex;flex-wrap:wrap;gap:3px;margin:10px 0 6px;}
  .coop-ph{font-size:10.5px;padding:3px 7px;border-radius:10px;background:var(--gray-light);color:var(--text-muted);}
  .coop-ph.past{background:var(--pill-green-bg);color:var(--pill-green-text);}
  .coop-ph.now{background:var(--navy);color:var(--on-navy);font-weight:700;}
  .coop-phase-btns{display:flex;gap:6px;margin-bottom:8px;}
  .coop-phase-alert{background:var(--pill-gold-bg);color:var(--pill-gold-text);}
  .coop-phase-transit{background:var(--pill-red-bg);color:var(--pill-red-text);}
  .coop-phase-operational{background:var(--pill-blue-bg);color:var(--pill-blue-text);}
  .coop-phase-reconstitution{background:var(--pill-gray-bg);color:var(--pill-gray-text);}
  .coop-phase-returned{background:var(--pill-green-bg);color:var(--pill-green-text);}
  .coop-board-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;font-size:12.5px;margin-bottom:8px;}
  .coop-fact-label{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);margin-bottom:2px;}
  .coop-board-facts select,.coop-board-fns select{padding:5px 6px;border:1px solid var(--border);border-radius:3px;font-family:var(--font);background:var(--surface);color:var(--text);max-width:100%;min-height:32px;}
  .coop-succession-note{font-size:11.5px;color:var(--pill-gold-text);margin-top:2px;}
  .coop-board-fns{width:100%;}
  .coop-clock{font-size:11.5px;color:var(--text-muted);}
  tr.coop-fn-soon .coop-clock{color:var(--pill-gold-text);font-weight:700;}
  tr.coop-fn-over .coop-clock{color:var(--red);font-weight:700;}
  .coop-last-update{font-size:12px;margin-top:8px;border-top:1px solid var(--gray-light);padding-top:8px;}
  .wx-map.wx-map-active{outline:2px solid var(--gold);outline-offset:-2px;}
  .wx-map-hint{position:absolute;left:8px;bottom:8px;z-index:500;background:rgba(30,45,90,0.8);color:#fff;font-size:10px;padding:3px 7px;border-radius:3px;pointer-events:none;}
  .cs-column{display:flex;flex-direction:column;gap:6px;}
  .op-card{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:10px 12px;min-width:190px;max-width:230px;border-left:4px solid var(--blue);cursor:pointer;}
  .op-card:hover{box-shadow:0 2px 8px rgba(0,0,0,0.12);}
  .op-card.overdue{border-left-color:var(--red);background:var(--overdue-bg);}
  .op-card.cleared{border-left-color:var(--green);opacity:0.75;}
  .op-card .card-title{font-size:12px;font-weight:600;color:var(--heading);}
  .op-card .card-loc{font-size:11px;color:var(--text-muted);margin-top:2px;}
  .op-card .card-ref{font-size:10px;color:var(--blue);margin-top:4px;font-family:var(--font-mono);}
  .op-card .card-people{font-size:10px;color:var(--text-muted);margin-top:4px;}
  .modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:100;align-items:center;justify-content:center;}
  .modal-overlay.open{display:flex;}
  .modal{background:var(--surface);border-radius:4px;width:560px;max-width:95vw;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 8px 32px rgba(0,0,0,0.25);}
  .modal.wide{width:760px;}
  .modal.narrow{width:420px;}
  .modal.aar{width:1100px;}
  /* Round 4 — After-Action Report printing. Everything except the open AAR
     viewer is hidden; the viewer itself is reflowed to a plain printable
     page rather than a fixed-height modal dialog. */
  @media print{
    body *{visibility:hidden;}
    #modal-aar-view, #modal-aar-view *{visibility:visible;}
    #modal-aar-view{position:absolute;inset:0;display:block;background:none;}
    #modal-aar-view .modal{width:100%;max-width:100%;max-height:none;box-shadow:none;border-radius:0;}
    #modal-aar-view .modal-body{overflow:visible;}
    .no-print{display:none!important;}
  }
  /* 2026-09-26 — ICS 214 print view. Same visibility trick as the AAR
     print rule above, scoped by a body class so it only applies while the
     214 view is open. Plain black-on-white regardless of theme, since it's
     a paper form. */
  #ics214-view{position:fixed;inset:0;z-index:3000;background:#fff;color:#000;overflow:auto;display:none;}
  #ics214-view.open{display:block;}
  #ics214-view .ics214-toolbar{position:sticky;top:0;background:#f3f4f6;border-bottom:1px solid #ccc;padding:8px 16px;display:flex;gap:8px;align-items:center;}
  #ics214-view .ics214-page{max-width:8in;margin:16px auto;font-family:Arial,Helvetica,sans-serif;font-size:11px;}
  #ics214-view table{width:100%;border-collapse:collapse;}
  #ics214-view td,#ics214-view th{border:1px solid #000;padding:4px 6px;vertical-align:top;text-align:left;}
  #ics214-view th{background:#e5e7eb;font-weight:700;}
  #ics214-view .ics214-title{font-size:14px;font-weight:700;text-align:center;}
  #ics214-view .lbl{font-weight:700;margin-right:4px;}
  #ics214-view .fill{display:inline-block;min-width:80px;border-bottom:1px dotted #666;outline:none;}
  #ics214-view .fill:empty::before{content:'\00a0';}
  #ics214-view .sys{color:#333;}
  #ics214-view .src{font-size:9px;color:#555;white-space:nowrap;}
  #ics214-view .ics214-notes{font-size:10px;color:#444;margin-top:6px;}
  /* 2026-10-21 -- ICS Forms screen + the extra forms in the same print view. */
  #ics214-view .ics-form-note:empty{display:none;}
  #ics214-view .ics-form-note{max-width:8in;margin:12px auto 0;background:#fff8e1;border-left:3px solid #c9922a;padding:8px 10px;font-size:12px;color:#5c4400;}
  #ics214-view .icsf-small td,#ics214-view .icsf-small th{font-size:9.5px;padding:3px 4px;}
  #ics214-view .icsf-page-break{margin-top:28px;break-before:page;page-break-before:always;}
  .icsf-period{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:12px;}
  .icsf-period .form-group{min-width:260px;}
  .icsf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;}
  .icsf-card{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:12px 14px;}
  .icsf-head{display:flex;justify-content:space-between;align-items:center;gap:8px;}
  .icsf-head h3{margin:0;font-size:14px;color:var(--heading);}
  .icsf-purpose{margin:6px 0;font-size:12px;color:var(--text-muted);}
  .icsf-card details summary{cursor:pointer;font-size:12px;color:var(--blue);}
  .icsf-lists{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:11.5px;margin-top:6px;}
  .icsf-lists ul{margin:4px 0 0 16px;padding:0;}
  @media (max-width:700px){ .icsf-lists{grid-template-columns:1fr;} }
  @media print{
    @page{size:letter portrait;margin:0.4in;}
    body.printing-214 #ics214-view, body.printing-214 #ics214-view *{visibility:visible;}
    body.printing-214 #ics214-view{position:absolute;inset:0;overflow:visible;}
    body.printing-214 #ics214-view .ics214-page{margin:0;max-width:none;}
    #ics214-view .fill{border-bottom:none;}
    #ics214-view th{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  }
  /* 2026-09-30 — Past Activity "Print this day". #history-print is a
     body-level container filled by printHistoryDay(); only visible in
     print, and only while body.printing-history is set. The app body is a
     100vh overflow-hidden flex column, so it's reset to normal flow here
     or only one page would print. Light colors are forced whatever the
     theme. */
  #history-print{display:none;}
  @media print{
    body.printing-history{height:auto!important;overflow:visible!important;display:block!important;background:#fff!important;}
    body.printing-history > *:not(#history-print){display:none!important;}
    body.printing-history #history-print, body.printing-history #history-print *{visibility:visible;}
    body.printing-history #history-print{display:block;color:#000;background:#fff;font-size:11px;
      --surface:#fff; --border:#999; --heading:#000; --text:#000; --text-muted:#222; --blue:#1E2D5A; --gray-light:#bbb;
      --pill-blue-bg:#fff; --pill-blue-text:#000; --pill-gray-bg:#fff; --pill-gray-text:#000;
      --table-zebra-bg:#fff; --table-hover-bg:#fff;}
    #history-print .hp-head{border-bottom:2px solid #000;padding-bottom:6px;margin-bottom:8px;}
    #history-print .hp-title{font-size:15px;font-weight:700;}
    #history-print .hp-meta{font-size:9px;color:#444;margin-top:2px;}
    #history-print .form-section{break-after:avoid;page-break-after:avoid;}
    #history-print .card-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
    #history-print .op-card{box-sizing:border-box;min-width:0;max-width:none!important;padding:6px 8px;break-inside:avoid;page-break-inside:avoid;border-left-color:#000;}
    #history-print .data-table-wrap{overflow:visible;max-height:none;}
    #history-print tr{break-inside:avoid;page-break-inside:avoid;}
    #history-print .pill{border:1px solid #666;}
    #history-print .empty-state{padding:4px 0!important;text-align:left;}
  }
  /* 2026-09-26 — Weather panel (Operations Dashboard + Executive Rollup). */
  .wx-card{background:var(--surface, white);border:1px solid var(--border);border-radius:4px;}
  .wx-head{background:var(--navy);color:var(--on-navy);padding:8px 14px;font-size:12px;font-weight:700;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;}
  .wx-head .wx-sub{font-weight:400;text-transform:none;opacity:.85;}
  .wx-body{display:flex;gap:0;min-height:120px;}
  .wx-alerts{width:340px;max-width:40%;border-right:1px solid var(--border);overflow-y:auto;max-height:380px;padding:8px;}
  /* position/z-index/isolation give the map its own stacking context.
     Without it, Leaflet's internal panes (z-index 400–1000) sit above
     .modal-overlay (z-index 100) and cover any dialog opened over the
     dashboard -- reported 2026-09-26 with the Operational Period box. */
  .wx-map{flex:1;height:380px;min-width:0;position:relative;z-index:0;isolation:isolate;}
  .wx-empty{padding:16px;font-size:12px;color:var(--text-muted);}
  .wx-alert{border-left:4px solid var(--gold);background:var(--offwhite);padding:6px 8px;margin-bottom:6px;font-size:11px;cursor:pointer;border-radius:0 3px 3px 0;}
  .wx-alert.sev-Extreme{border-left-color:#7f1d1d;} .wx-alert.sev-Severe{border-left-color:#dc2626;} .wx-alert.sev-Moderate{border-left-color:#d97706;} .wx-alert.sev-Minor{border-left-color:#2563eb;}
  .wx-alert .wx-ev{font-weight:700;font-size:12px;}
  .wx-alert .wx-detail{display:none;white-space:pre-wrap;margin-top:6px;}
  .wx-alert.open .wx-detail{display:block;}
  .wx-toggles{display:flex;gap:6px;align-items:center;font-weight:400;text-transform:none;}
  .wx-toggles label{display:flex;align-items:center;gap:3px;cursor:pointer;}
  .wx-toggles input{width:auto;margin:0;}
  .wx-frame-label{position:absolute;top:8px;right:8px;z-index:1000;background:rgba(30,45,90,.88);color:#fff;font-size:11px;font-weight:600;padding:3px 8px;border-radius:3px;pointer-events:none;}
  /* Stacked: the map needs flex:none, or flex:1 makes its height 0 in a column (2026-10-23, found on Vaughn's iPhone). */
  @media (max-width:760px){ .wx-body{flex-direction:column;} .wx-alerts{width:auto;max-width:none;border-right:none;border-bottom:1px solid var(--border);max-height:200px;} .wx-map{flex:none;height:300px;} }
  .modal-header{background:var(--navy);color:var(--on-navy);padding:12px 16px;border-radius:4px 4px 0 0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
  .modal-header h3{font-size:14px;font-weight:600;}
  .modal-close{background:none;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0 4px;}
  .modal-body{padding:16px;overflow-y:auto;flex:1;}
  .modal-footer{padding:10px 16px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;flex-shrink:0;background:var(--offwhite);border-radius:0 0 4px 4px;}
  /* 2026-11-13 -- a record's detail can carry many actions (Personnel: 8 with
     Invite to My Work); they wrap onto a second row instead of spilling out
     of the dialog, and each label stays on one line. */
  .modal-footer .btn{white-space:nowrap;}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .form-group{display:flex;flex-direction:column;gap:3px;min-width:0;}
  .form-group.span2{grid-column:span 2;}
  .form-group label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.3px;}
  .form-group label.required::after{content:' *';color:var(--red);}
  .form-group input,.form-group select,.form-group textarea{border:1px solid var(--border);border-radius:3px;padding:5px 8px;font-size:12px;font-family:var(--font);color:var(--text);background:var(--surface);outline:none;width:100%;min-width:0;box-sizing:border-box;}
  .form-group textarea{resize:vertical;min-height:60px;}
  .form-group input:disabled,.form-group select:disabled,.form-group textarea:disabled{opacity:0.5;cursor:not-allowed;}
  /* The width:100% above is meant for text/select/textarea fields (it's
     what fixed the oversized Purchase-form dropdown); radio and checkbox
     inputs need to stay their natural small size, or the actual clickable
     circle/box stretches to fill the row and shoves its label text far to
     the right — exactly what happened to the Assignment/Mission
     Whiteboard-vs-table-only radio choices. */
  .form-group input[type=radio],.form-group input[type=checkbox]{width:auto;flex:0 0 auto;border:none;padding:0;}
  .form-section{font-size:11px;font-weight:700;color:var(--heading);text-transform:uppercase;letter-spacing:0.5px;margin:12px 0 6px;padding-bottom:4px;border-bottom:1px solid var(--border);}
  .bp-box{background:var(--bp-box-bg);border-left:3px solid var(--blue);padding:8px 10px;margin:8px 0;font-size:11px;color:var(--gray-dark);font-style:italic;border-radius:0 3px 3px 0;}
  .bp-box strong{color:var(--blue);font-style:normal;}
  /* Raised after testing: Personnel/Operations Asset stack 3-4 Best
     Practice notes that read as "oppressive" before you've typed a single
     field, and Communications carries one note long enough to have the
     same effect on its own. A .bp-group collapses its .bp-notes behind a
     one-line pill, auto-expanded the first time a browser opens it
     (initBpGroups(), tracked in localStorage) and collapsible/expandable
     by hand afterward via the pill itself. */
  .bp-group{margin:8px 0;}
  .bp-toggle{display:flex;align-items:center;gap:6px;width:100%;background:var(--bp-box-bg);border:none;border-left:3px solid var(--blue);border-radius:3px;padding:6px 10px;font-size:11px;color:var(--blue);font-weight:600;cursor:pointer;text-align:left;}
  .bp-toggle:hover{filter:brightness(0.96);}
  .bp-toggle .bp-caret{margin-left:auto;transition:transform .15s;}
  .bp-group.expanded .bp-toggle{border-radius:3px 3px 0 0;}
  .bp-group.expanded .bp-toggle .bp-caret{transform:rotate(90deg);}
  .bp-group .bp-notes{display:none;}
  .bp-group.expanded .bp-notes{display:block;}
  .bp-group .bp-notes .bp-box{margin:0;border-radius:0;}
  .bp-group .bp-notes .bp-box:last-child{border-radius:0 0 3px 3px;}
  /* Round 8 follow-up — drag-and-drop onto the Bulk Roster Import file
     picker. Wraps the existing toolbar rather than replacing it, so the
     "Choose File" click-to-browse path keeps working exactly as before;
     this just adds a second, faster way to hand over the same file. */
  .upload-dropzone{border:2px dashed var(--border);border-radius:4px;padding:6px 10px;transition:border-color .15s,background-color .15s;}
  .upload-dropzone.drag-over{border-color:var(--blue);background:var(--bp-box-bg);}
  .upload-dropzone-hint{font-size:10px;color:var(--gray-dark);font-style:italic;padding:2px 0 6px;}
  .warn-box{background:var(--pill-gold-bg);border-left:3px solid var(--gold);padding:8px 10px;margin:8px 0;font-size:11px;color:var(--pill-gold-text);border-radius:0 3px 3px 0;}
  .detail-row{display:flex;padding:5px 0;border-bottom:1px solid var(--gray-light);font-size:12px;gap:8px;}
  .detail-label{font-weight:600;color:var(--text-muted);font-size:11px;min-width:150px;text-transform:uppercase;letter-spacing:0.3px;}
  .detail-value{color:var(--text);flex:1;}
  .empty-state{text-align:center;padding:48px 24px;color:var(--text-muted);}
  .empty-state .empty-icon{font-size:32px;margin-bottom:8px;}
  /* 2026-10-21 -- line icons (js/icons.js) replace emoji everywhere. They
     draw in currentColor, so each takes the color of the text beside it. */
  .ico{display:inline-block;vertical-align:-3px;flex:none;margin-right:6px;}
  .ico-only{margin-right:0;}
  .nav-label .ico{color:var(--blue);opacity:0.9;margin-right:7px;}
  .nav-tab.active .nav-label .ico{opacity:1;}
  .empty-state .empty-icon .ico{margin:0;color:var(--text-muted);}
  /* 2026-10-21 -- the EOC OS shield (option C), full color in every state:
     the heading says whether an Activation is open; the logo doesn't. */
  .no-activation-icon{margin-bottom:6px;}
  .no-activation-logo{width:76px;height:auto;display:block;}
  .btn .ico{vertical-align:-3px;}
  .toolbar{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;flex-wrap:wrap;}
  .toolbar .spacer{flex:1;}
  .search-input{border:1px solid var(--border);border-radius:3px;padding:4px 8px;font-size:12px;width:200px;outline:none;}
  .tag-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:10px;font-size:11px;border:1px solid var(--border);background:var(--offwhite);cursor:pointer;user-select:none;}
  .tag-chip.selected{background:var(--blue);color:var(--on-blue);border-color:var(--blue);}
  .tag-options{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border:1px solid var(--border);border-radius:3px;background:var(--surface);max-height:110px;overflow-y:auto;}
  /* Round 3 punch list — click-to-filter chip bars atop Personnel/Assets;
     unlike .tag-options (a bordered picker box inside a form), this sits
     directly in the page toolbar so it reads as a filter, not a field. */
  .chip-filter-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;}
  #no-activation{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--text-muted);font-size:14px;}
  #login-screen{position:fixed;inset:0;background:var(--navy);display:flex;align-items:center;justify-content:center;z-index:200;}
  #login-screen.hidden{display:none;}
  /* 2026-09-27 -- accept-invite page: same full-screen card as login. */
  #invite-screen{position:fixed;inset:0;background:var(--navy);display:flex;align-items:center;justify-content:center;z-index:201;}
  #invite-screen.hidden{display:none;}
  .invite-summary{font-size:13px;line-height:1.5;margin-bottom:14px;}
  .invite-summary strong{color:var(--navy);}
  .invite-link-box{display:flex;gap:6px;align-items:center;margin:6px 0 12px;padding:8px;border:1px solid var(--border);border-radius:3px;background:var(--surface);font-size:12px;}
  .invite-link-box input{flex:1;font-family:var(--font-mono);font-size:11px;padding:4px 6px;border:1px solid var(--border);border-radius:3px;}
  .login-box{background:var(--surface);border-radius:6px;padding:32px;width:360px;box-shadow:0 12px 40px rgba(0,0,0,0.35);}
  /* Round 6 — Login Branding. The login screen always renders in the
     default light theme (Practice Mode's dark theme is only ever applied
     post-login, inside boot()), so a flat-white-background logo asset is
     safe here with no dark-mode edge-box risk. Replaces the plain "EOC OS"
     <h1> that used to open this card; the .tagline line below is kept as
     real text (not baked into the image) on purpose — see the design
     discussion this round: legible/selectable/screen-reader-visible at any
     size, and free to say exactly this phrase with no extra baked-in URL. */
  .login-logo{width:132px;height:132px;object-fit:contain;margin:0 auto 10px;display:block;}
  .login-box .tagline{color:var(--text-muted);font-size:11px;font-style:italic;margin-bottom:20px;text-align:center;}
  .login-box .form-group{margin-bottom:12px;}
  .login-error{color:var(--red);font-size:12px;margin-top:8px;min-height:16px;}
  .demo-creds{margin-top:16px;padding-top:12px;border-top:1px solid var(--border);font-size:10px;color:var(--text-muted);line-height:1.6;}
  .hidden-indicator{font-size:10px;color:var(--text-muted);font-style:italic;cursor:pointer;margin-left:8px;text-decoration:underline dotted;}
  .chip-x{opacity:0.55;font-weight:700;padding:0 1px;border-radius:50%;}
  .chip-x:hover{opacity:1;color:var(--red);}
  th.sortable{cursor:pointer;user-select:none;}
  th.sortable:hover{color:var(--gold);}
  th.sortable span{font-size:9px;margin-left:2px;}
  .select-with-add{display:flex;gap:6px;align-items:center;}
  .select-with-add select{flex:1;}
  .site-rows{display:flex;flex-direction:column;gap:8px;}
  .site-row input{margin-top:4px;width:100%;}
  .site-row + .site-row{padding-top:8px;border-top:1px dashed var(--border, #d7dce5);}
  .site-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
  .site-remove{flex:none;}
  .radio-group{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:400;text-transform:none;}
  .radio-group label{display:flex;align-items:center;gap:6px;font-weight:400;}
  .wb-title{font-size:12px;font-weight:700;color:var(--heading);text-transform:uppercase;letter-spacing:0.4px;border-bottom:2px solid var(--gold);padding-bottom:4px;margin:12px 0 8px;}
  /* Round 8 follow-up — toasts used to be individually position:fixed at the
     exact same spot, so two shown back to back (a routine confirmation plus
     a warning, say — exactly what an upload with a kind-mismatch produces)
     landed directly on top of each other rather than stacking, and a
     warning could be the one silently buried underneath. Now they live in
     one fixed-position container and stack normally as flex children. */
  #toast-container{position:fixed;bottom:20px;right:20px;z-index:300;display:flex;flex-direction:column;gap:8px;max-width:360px;}
  .toast{position:relative;background:var(--navy);color:var(--on-navy);padding:10px 16px;border-radius:4px;font-size:12px;box-shadow:0 4px 16px rgba(0,0,0,0.3);}
  .toast.error{background:var(--red);padding-right:30px;}
  .toast-close{position:absolute;top:6px;right:9px;cursor:pointer;font-weight:700;font-size:14px;line-height:1;opacity:0.85;}
  .toast-close:hover{opacity:1;}
  .clock{font-family:var(--font-mono);color:var(--gold);font-size:11px;}
  .facility-status-Operational{color:var(--green);font-weight:600;}

  input.input-invalid{border-color:var(--red) !important;box-shadow:0 0 0 1px var(--red);}
  /* ── Phone layout (2026-10-23) ─────────────────────────────────────────
     Same app, narrower screen. Under 760px: compact header with a menu
     button, navigation slides in over the page (js/mobile.js), every data
     table shows each row as a card (cells labelled by js/mobile.js), forms
     go to one column, dialogs fill the screen, inputs are 16px so iPhones
     don't zoom in on every field, and tap targets are at least 40px. Also
     applies to a phone turned sideways (short touch screen, any width):
     the desktop layout there left no room to scroll. Must match PHONE_QUERY
     in js/mobile.js. Nothing here changes the desktop layout. */
  .nav-toggle,#nav-backdrop,.nav-mobile-user{display:none;}
  @media screen and (max-width:760px), screen and (max-height:500px) and (pointer:coarse){
    #header{height:48px;padding:0 8px 0 4px;gap:8px;}
    .nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:none;border:none;color:var(--on-navy);cursor:pointer;flex-shrink:0;border-radius:4px;}
    .nav-toggle .ico{width:22px;height:22px;margin:0;}
    .nav-toggle:focus-visible{outline:2px solid var(--gold);}
    #header .tagline,#header .header-user,#header .badge-role,#header .header-logout,#sync-indicator,#branding-trigger{display:none !important;}
    #header .logo{flex:1;min-width:0;font-size:15px;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    #agency-logo-display img{max-height:30px;}
    #duration-clock{font-size:10px;white-space:nowrap;}
    .exercise-clock{flex:0 1 auto;}
    .exercise-clock .ex-controls{display:none;}
    .ex-now{font-size:10px;white-space:normal;line-height:1.15;text-align:center;}
    .nav-exercise-clock:not([hidden]){display:block;padding:10px 12px;background:var(--navy);border-top:1px solid var(--on-navy-muted);}
    .nav-exercise-clock .ex-nav-title{color:var(--gold);font-family:var(--font-mono);font-size:12px;font-weight:700;margin-bottom:6px;}
    .nav-exercise-clock .ex-controls{display:flex;flex-wrap:wrap;gap:6px;}
    .nav-exercise-clock .ex-lbl{flex:1 1 100%;}
    .nav-exercise-clock input{flex:1 1 40%;}
    .obs-trigger,.practice-toggle{font-size:0;padding:0;width:36px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;flex-shrink:0;}
    .obs-trigger .ico,.practice-toggle .ico{width:18px;height:18px;margin:0;}

    #nav{position:fixed;top:0;left:0;bottom:0;width:min(86vw,330px);z-index:95;transform:translateX(-102%);transition:transform .2s ease;box-shadow:4px 0 24px rgba(0,0,0,.25);border-right:none;padding-top:0;}
    body.nav-open #nav{transform:none;}
    body.nav-open #nav-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:94;}
    .nav-mobile-user{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;background:var(--navy);color:var(--on-navy);}
    .nav-mobile-name{flex:1 1 100%;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .nav-mobile-user .btn{color:var(--on-navy);border:1px solid var(--on-navy-muted);}
    .nav-tab{padding:10px 12px;min-height:44px;}
    .nav-search input{padding:9px 10px;}

    /* The whole screen scrolls as one on a phone (page title, notes and
       toolbar scroll away), instead of a small inner scroll box under a
       header block that can fill a third of the screen. */
    .page.active{overflow-y:auto;-webkit-overflow-scrolling:touch;}
    .page > *{flex-shrink:0;}
    .page .page-scroll,.page .data-table-wrap{flex:none !important;overflow:visible !important;}
    /* 2026-11-25 (Vaughn, Administration on a phone): a table box with a
       height cap (u-maxh-*) no longer scrolls on a phone (line above), so
       its cards spilled out of the cap and drew over the sections below.
       The cap goes too: the page scrolls as one. */
    .page .data-table-wrap{max-height:none !important;}
    #incident-bar{padding:0 8px;}
    #incident-bar .inc-label{display:none;}
    .page-header{flex-wrap:wrap;padding:8px 12px;gap:8px;}
    .page-header h2{flex:1 1 100%;font-size:15px;}
    .toolbar{padding:8px 12px;}
    .toolbar input[type=search],.toolbar input[type=text],.toolbar select{flex:1 1 160px;min-width:0;max-width:100%;}
    .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;}
    .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px;}
    .wb-row{padding:0 12px 12px;}
    .wb-panel{min-width:0;flex:1 1 100%;}
    .form-grid{grid-template-columns:minmax(0,1fr);}
    .card-grid > *{flex:1 1 100%;width:auto !important;max-width:100%;}
    .icsf-grid{grid-template-columns:minmax(0,1fr);}
    .form-grid > *{grid-column:auto !important;}

    input,select,textarea{font-size:16px !important;}
    .btn{min-height:40px;padding:8px 14px;font-size:13px;}
    .btn-sm{min-height:36px;padding:6px 10px;font-size:12px;}
    .btn-xs{min-height:32px;}

    .modal-overlay.open{align-items:stretch;}
    .modal,.modal.wide,.modal.narrow,.modal.aar{width:100%;max-width:100%;max-height:none;height:100%;border-radius:0;}
    .modal-header{border-radius:0;padding:10px 12px;}
    .modal-close{min-width:40px;min-height:40px;font-size:22px;}
    .modal-body{padding:12px;}
    .modal-footer{border-radius:0;flex-wrap:wrap;padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
    .modal-footer .btn{flex:1 1 auto;justify-content:center;}

    /* Tables as cards: one card per row, "Column: value" lines. */
    table.data-table,table.data-table tbody{display:block;width:100%;}
    table.data-table thead{display:none;}
    table.data-table tr{display:block;margin:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);overflow:hidden;}
    table.data-table tr:nth-child(even) td,table.data-table tr:hover td{background:transparent;}
    table.data-table td{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:7px 10px;border-bottom:1px solid var(--gray-light);text-align:right;white-space:normal !important;word-break:break-word;min-width:0;}
    table.data-table td:last-child{border-bottom:none;}
    table.data-table td::before{content:attr(data-label);flex:0 0 38%;text-align:left;font-weight:600;font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;padding-top:2px;}
    table.data-table td[data-label=""]{display:block;text-align:left;}
    table.data-table td[data-label=""]::before{display:none;}
    table.data-table td:first-child{background:var(--table-hover-bg) !important;font-weight:600;}
    table.data-table td > *{max-width:100%;}
    table.data-table td .pill{white-space:normal;text-align:left;}
    table.data-table td.cell-empty{display:none;}
  }
  @media screen and (max-width:480px){
    #duration-clock{display:none;}
  }

/* ── Field Team Member: My Work (2026-11-04, js/field.js) ── */
#field-app.hidden{display:none;}
#field-app{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--offwhite);}
body.field-mode #header, body.field-mode #degraded-banner, body.field-mode #incident-bar, body.field-mode #app-body{display:none !important;}
.field-top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;background:var(--navy);color:var(--on-navy);}
.field-top .btn{color:inherit;border-color:rgba(255,255,255,.5);}
.field-who{display:flex;flex-direction:column;line-height:1.25;min-width:0;}
.field-who strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.field-who span{font-size:12px;opacity:.9;}
.field-role{font-size:11px !important;opacity:.75 !important;}
#field-body{max-width:640px;margin:0 auto;padding:12px 16px 40px;display:flex;flex-direction:column;gap:12px;}
.field-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 16px;}
.field-card h2.field-title{font-size:19px;margin:2px 0 4px;color:var(--heading);}
.field-card h3{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin:14px 0 6px;}
.field-kind{font-size:12px;font-weight:600;color:var(--text-muted);}
.field-meta{font-size:13px;color:var(--text-muted);}
.field-notes{margin-top:8px;font-size:14px;white-space:pre-wrap;}
.field-site{border:1px solid var(--border);border-radius:6px;padding:10px;margin-bottom:8px;}
.field-site-done{border-color:#2f855a;background:rgba(47,133,90,.07);}
.field-site-on_scene{border-color:#b7791f;background:rgba(183,121,31,.07);}
.field-site-name{font-size:15px;font-weight:600;display:flex;align-items:center;gap:6px;}
.field-site-status{font-size:12px;color:var(--text-muted);margin-top:2px;}
.field-site-btns{display:flex;gap:8px;margin-top:8px;}
.field-site-btns .btn{flex:1;min-height:44px;font-size:15px;justify-content:center;}
.field-team{list-style:none;margin:0;padding:0;}
.field-team li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border);font-size:14px;}
.field-team li:last-child{border-bottom:none;}
.field-team .btn{min-height:40px;}
.field-assets{font-size:14px;}
#field-body textarea{width:100%;font-size:16px;padding:8px;border:1px solid var(--border);border-radius:6px;box-sizing:border-box;font-family:inherit;}
.field-send{width:100%;min-height:46px;margin-top:6px;font-size:16px;justify-content:center;}
.field-updates{list-style:none;margin:0;padding:0;font-size:14px;}
.field-updates li{padding:6px 0;border-bottom:1px solid var(--border);white-space:pre-wrap;}
.field-upd-time{display:block;font-size:11px;color:var(--text-muted);}
.field-empty{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:18px 16px;font-size:14px;}
.field-empty h2{font-size:18px;margin:0 0 6px;}
.field-banner{background:#fff4e5;border:1px solid #b7791f;border-radius:6px;padding:8px 10px;font-size:13px;}
.field-stamp{text-align:center;font-size:12px;color:var(--text-muted);}
.btn-link{background:none;border:none;color:var(--blue);text-decoration:underline;cursor:pointer;font-size:inherit;padding:0;}
.field-wx{padding:0;overflow:hidden;}
.site-status-pill{display:inline-block;font-size:10px;font-weight:700;border-radius:3px;padding:1px 5px;margin-left:6px;vertical-align:middle;}
.site-status-pill.done{background:#2f855a;color:#fff;}
.site-status-pill.on_scene{background:#b7791f;color:#fff;}
.field-acct-icon{color:var(--blue);margin-left:4px;vertical-align:middle;display:inline-flex;}
.field-acct-pending{color:var(--text-muted);opacity:.7;}
.field-team a{text-decoration:none;}

/* ── Utilities (2026-11-18) ────────────────────────────────────────────────
   One declaration per class, replacing every style="" attribute so the
   security policy can forbid inline styles (style-src 'self'). Naming:
   u-<property>-<value>, e.g. u-mt-4 = margin-top:4px, u-c-text-muted =
   color:var(--text-muted), u-p-0_16_16 = padding:0 16px 16px.
   :where() gives them no specificity and !important makes them win over
   ordinary rules -- exactly how an inline style behaved -- while any other
   !important rule (the phone layout's, say) still wins, as it did over an
   inline style. Show and hide with the hidden attribute (el.hidden), not
   style.display. Prefer a named component class for anything reused. */
[hidden]{display:none !important;}
:where(.u-ai-center){align-items:center !important;}
:where(.u-bd-1_solid_border){border:1px solid var(--border) !important;}
:where(.u-bd-2_solid_e0a94e){border:2px solid #E0A94E !important;}
:where(.u-bd-none){border:none !important;}
:where(.u-bg-3a2e14){background:#3A2E14 !important;}
:where(.u-bg-none){background:none !important;}
:where(.u-bg-white){background:white !important;}
:where(.u-border-color-gold){border-color:var(--gold) !important;}
:where(.u-border-color-gray-mid){border-color:var(--gray-mid) !important;}
:where(.u-border-color-red){border-color:var(--red) !important;}
:where(.u-border-color-rgba255255255p5){border-color:rgba(255,255,255,.5) !important;}
:where(.u-border-left-color-green){border-left-color:var(--green) !important;}
:where(.u-c-555){color:#555 !important;}
:where(.u-c-blue){color:var(--blue) !important;}
:where(.u-c-e6b85c){color:#E6B85C !important;}
:where(.u-c-fddede){color:#FDDEDE !important;}
:where(.u-c-heading){color:var(--heading) !important;}
:where(.u-c-inherit){color:inherit !important;}
:where(.u-c-on-navy-muted){color:var(--on-navy-muted) !important;}
:where(.u-c-pill-gold-text){color:var(--pill-gold-text) !important;}
:where(.u-c-red){color:var(--red) !important;}
:where(.u-c-text){color:var(--text) !important;}
:where(.u-c-text-muted){color:var(--text-muted) !important;}
:where(.u-cur-default){cursor:default !important;}
:where(.u-cur-pointer){cursor:pointer !important;}
:where(.u-d-block){display:block !important;}
:where(.u-d-flex){display:flex !important;}
:where(.u-d-inline){display:inline !important;}
:where(.u-fd-column){flex-direction:column !important;}
:where(.u-ff-font-mono){font-family:var(--font-mono) !important;}
:where(.u-fit-contain){object-fit:contain !important;}
:where(.u-flex-1){flex:1 !important;}
:where(.u-flex-basis-100pct){flex-basis:100% !important;}
:where(.u-flex-none){flex:none !important;}
:where(.u-fs-10){font-size:10px !important;}
:where(.u-fs-11){font-size:11px !important;}
:where(.u-fs-12){font-size:12px !important;}
:where(.u-fs-14){font-size:14px !important;}
:where(.u-fs-15){font-size:15px !important;}
:where(.u-fs-16){font-size:16px !important;}
:where(.u-fs-20){font-size:20px !important;}
:where(.u-fst-normal){font-style:normal !important;}
:where(.u-fw-400){font-weight:400 !important;}
:where(.u-fw-600){font-weight:600 !important;}
:where(.u-fw-700){font-weight:700 !important;}
:where(.u-fw-normal){font-weight:normal !important;}
:where(.u-fwrap-wrap){flex-wrap:wrap !important;}
:where(.u-gap-12){gap:12px !important;}
:where(.u-gap-4){gap:4px !important;}
:where(.u-gap-6){gap:6px !important;}
:where(.u-gap-8){gap:8px !important;}
:where(.u-grid-template-columns-repeat31fr){grid-template-columns:repeat(3,1fr) !important;}
:where(.u-grid-template-columns-repeat41fr){grid-template-columns:repeat(4,1fr) !important;}
:where(.u-h-100){height:100px !important;}
:where(.u-h-26){height:26px !important;}
:where(.u-h-32){height:32px !important;}
:where(.u-h-80){height:80px !important;}
:where(.u-jc-center){justify-content:center !important;}
:where(.u-left-n9999){left:-9999px !important;}
:where(.u-lh-1p5){line-height:1.5 !important;}
:where(.u-lh-1p6){line-height:1.6 !important;}
:where(.u-lh-1p7){line-height:1.7 !important;}
:where(.u-ls-0p3){letter-spacing:0.3px !important;}
:where(.u-ls-0p5){letter-spacing:0.5px !important;}
:where(.u-m-0){margin:0 !important;}
:where(.u-m-0_0_4_18){margin:0 0 4px 18px !important;}
:where(.u-m-0_0_6){margin:0 0 6px !important;}
:where(.u-m-10_0_4){margin:10px 0 4px !important;}
:where(.u-m-10_16_0){margin:10px 16px 0 !important;}
:where(.u-m-12_0){margin:12px 0 !important;}
:where(.u-m-14_0){margin:14px 0 !important;}
:where(.u-m-14_0_4){margin:14px 0 4px !important;}
:where(.u-m-2_4_2_0){margin:2px 4px 2px 0 !important;}
:where(.u-m-4_0_0_16){margin:4px 0 0 16px !important;}
:where(.u-m-4_0_10){margin:4px 0 10px !important;}
:where(.u-m-4_0_20){margin:4px 0 20px !important;}
:where(.u-m-6_0_0_18){margin:6px 0 0 18px !important;}
:where(.u-m-6_0_12){margin:6px 0 12px !important;}
:where(.u-m-6_0_2){margin:6px 0 2px !important;}
:where(.u-m-6_0_4){margin:6px 0 4px !important;}
:where(.u-maxh-160){max-height:160px !important;}
:where(.u-maxh-200){max-height:200px !important;}
:where(.u-maxh-260){max-height:260px !important;}
:where(.u-maxh-280){max-height:280px !important;}
:where(.u-maxh-40){max-height:40px !important;}
:where(.u-maxh-none){max-height:none !important;}
:where(.u-maxw-110){max-width:110px !important;}
:where(.u-maxw-160){max-width:160px !important;}
:where(.u-maxw-180){max-width:180px !important;}
:where(.u-maxw-200){max-width:200px !important;}
:where(.u-maxw-220){max-width:220px !important;}
:where(.u-maxw-260){max-width:260px !important;}
:where(.u-maxw-420){max-width:420px !important;}
:where(.u-maxw-none){max-width:none !important;}
:where(.u-mb-10){margin-bottom:10px !important;}
:where(.u-mb-12){margin-bottom:12px !important;}
:where(.u-mb-16){margin-bottom:16px !important;}
:where(.u-mb-20){margin-bottom:20px !important;}
:where(.u-mb-4){margin-bottom:4px !important;}
:where(.u-mb-6){margin-bottom:6px !important;}
:where(.u-mb-8){margin-bottom:8px !important;}
:where(.u-minh-110){min-height:110px !important;}
:where(.u-minh-50){min-height:50px !important;}
:where(.u-minh-60){min-height:60px !important;}
:where(.u-minh-90){min-height:90px !important;}
:where(.u-minw-100){min-width:100px !important;}
:where(.u-minw-110){min-width:110px !important;}
:where(.u-minw-120){min-width:120px !important;}
:where(.u-minw-140){min-width:140px !important;}
:where(.u-minw-150){min-width:150px !important;}
:where(.u-minw-160){min-width:160px !important;}
:where(.u-minw-180){min-width:180px !important;}
:where(.u-minw-200){min-width:200px !important;}
:where(.u-minw-220){min-width:220px !important;}
:where(.u-minw-260){min-width:260px !important;}
:where(.u-minw-30){min-width:30px !important;}
:where(.u-minw-40){min-width:40px !important;}
:where(.u-minw-400){min-width:400px !important;}
:where(.u-minw-420){min-width:420px !important;}
:where(.u-minw-50){min-width:50px !important;}
:where(.u-minw-60){min-width:60px !important;}
:where(.u-minw-70){min-width:70px !important;}
:where(.u-minw-80){min-width:80px !important;}
:where(.u-minw-90){min-width:90px !important;}
:where(.u-ml-4){margin-left:4px !important;}
:where(.u-ml-auto){margin-left:auto !important;}
:where(.u-mr-10){margin-right:10px !important;}
:where(.u-mr-2){margin-right:2px !important;}
:where(.u-mt-0){margin-top:0 !important;}
:where(.u-mt-10){margin-top:10px !important;}
:where(.u-mt-12){margin-top:12px !important;}
:where(.u-mt-14){margin-top:14px !important;}
:where(.u-mt-16){margin-top:16px !important;}
:where(.u-mt-2){margin-top:2px !important;}
:where(.u-mt-20){margin-top:20px !important;}
:where(.u-mt-4){margin-top:4px !important;}
:where(.u-mt-6){margin-top:6px !important;}
:where(.u-mt-8){margin-top:8px !important;}
:where(.u-mt-n1){margin-top:-1px !important;}
:where(.u-op-0p5){opacity:0.5 !important;}
:where(.u-op-0p55){opacity:0.55 !important;}
:where(.u-op-0p75){opacity:0.75 !important;}
:where(.u-ovy-auto){overflow-y:auto !important;}
:where(.u-p-0){padding:0 !important;}
:where(.u-p-0_0_12){padding:0 0 12px !important;}
:where(.u-p-0_0_16){padding:0 0 16px !important;}
:where(.u-p-0_16_16){padding:0 16px 16px !important;}
:where(.u-p-10){padding:10px !important;}
:where(.u-p-10_12){padding:10px 12px !important;}
:where(.u-p-12){padding:12px !important;}
:where(.u-p-12_0){padding:12px 0 !important;}
:where(.u-p-12_16_24){padding:12px 16px 24px !important;}
:where(.u-p-16){padding:16px !important;}
:where(.u-p-2){padding:2px !important;}
:where(.u-p-4){padding:4px !important;}
:where(.u-p-5_8){padding:5px 8px !important;}
:where(.u-p-6_8){padding:6px 8px !important;}
:where(.u-p-8_0){padding:8px 0 !important;}
:where(.u-p-8_0_0){padding:8px 0 0 !important;}
:where(.u-p-8_12){padding:8px 12px !important;}
:where(.u-pl-16){padding-left:16px !important;}
:where(.u-pos-absolute){position:absolute !important;}
:where(.u-pt-4){padding-top:4px !important;}
:where(.u-pt-6){padding-top:6px !important;}
:where(.u-rad-3){border-radius:3px !important;}
:where(.u-rad-4){border-radius:4px !important;}
:where(.u-ta-center){text-align:center !important;}
:where(.u-tt-none){text-transform:none !important;}
:where(.u-tt-uppercase){text-transform:uppercase !important;}
:where(.u-w-100){width:100px !important;}
:where(.u-w-100pct){width:100% !important;}
:where(.u-w-110){width:110px !important;}
:where(.u-w-190){width:190px !important;}
:where(.u-w-22pct){width:22% !important;}
:where(.u-w-28){width:28px !important;}
:where(.u-w-32){width:32px !important;}
:where(.u-w-38pct){width:38% !important;}
:where(.u-w-40pct){width:40% !important;}
:where(.u-w-44){width:44px !important;}
:where(.u-w-45pct){width:45% !important;}
:where(.u-w-48){width:48px !important;}
:where(.u-w-auto){width:auto !important;}
:where(.u-ws-nowrap){white-space:nowrap !important;}
:where(.u-ws-pre-wrap){white-space:pre-wrap !important;}
