/* HOPC Mobile - Hatzolah of Passaic/Clifton. Tokens from HOPC Brand Guide, Section 10. Light mode only. */
/* SAFE AREA / SHELL - SINGLE SOURCE OF TRUTH (v19, owner 2026-11-02: "fix it permanently and stop breaking it").
   Insets are decided in ONE place: public/js/shell.js measures what the iOS web view already insets and sets only
   --safe-t / --safe-b; the "Safe area: ONE model" block below is the only CSS that defines them. Everything else
   (header .hdr, bottom .bar / .sheet / .foot / .toast, .ptr-ind, .login .top) only CONSUMES var(--safe-t) /
   var(--safe-b), once each, and must never add env(safe-area-inset-*) or a page taller than the screen itself.
   Before changing any of it run `npm run layout-guard` (iPhone 390x844 + 430x932: header height, bottom band,
   elementFromPoint tap parity); scripts/deploy.sh refuses to publish when it fails. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-latin-800-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --navy: #19285A; --navy-900: #101A3D; --blue: #1A1FB0; --blue-600: #2B34D6; --red: #E01F26; --red-600: #C21118; --star: #1964A5;
  --paper: #F4F5F8; --mist: #E6E8F0; --ink: #26304F; --slate-600: #565D75; --slate-400: #8A90A6; --white: #FFFFFF;
  --success: #1F8A5B; --warning: #E08A1E; --info: #1964A5;
  --success-bg: #E7F3ED; --warning-bg: #FCF1E3; --danger-bg: #FCE8E9; --info-bg: #E6EEF6; --blue-bg: #E8E9F7;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-sm: 6px; --r-in: 10px; --r-card: 16px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(25,40,90,.08); --sh-md: 0 4px 14px rgba(25,40,90,.12); --sh-lg: 0 12px 32px rgba(25,40,90,.18);
  --ease: cubic-bezier(.4,0,.2,1); --t1: 120ms; --t2: 220ms;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --bar-h: 88px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.num, .qty { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 16px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; }

/* ---------- Header: navy, shield on a white tile, diagonal corner cut ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--white); padding: calc(var(--safe-t) + 12px) var(--s4) 12px;
  display: flex; align-items: center; gap: var(--s3); min-height: 64px; overflow: hidden; }
/* App shell (index.html, <html class="app">). v4 (owner 2026-11-01 iPhone, after b7760b0: a 34pt navy bar behind the
   home indicator that was not there before today). Back to the DOCUMENT scrolling, as before today, with the header
   fixed on top:
   - Why: the HOPC Mobile iOS app's WKWebView (capacitor.config.json ios.contentInset "automatic") insets the page by
     the status bar and the home indicator; what shows in those insets is the scrolled DOCUMENT, and past the document
     the native navy background (ios.backgroundColor). While only an inner box (#scroll) scrolled, the document was
     exactly one screen tall and never moved, so the bottom strip was always navy (fixed boxes pulled down into it and a
     taller html under overflow:hidden were both clipped there - b7760b0 did not help on the phone). With the document
     scrolling, the page content runs under the home indicator again, like before today.
   - The header is position: fixed (it never scrolls, never stretches). v5 (owner 2026-11-01 screen recording): the
     app's WKWebView DOES rubber-band (Capacitor's bounces = false is not what the phone does) and WebKit moves fixed
     boxes with the bounce, so js/ptr.js cancels every gesture that could only bounce the page (top + pulling down: its
     own pull-to-refresh spinner instead, only #scroll slides; bottom + pushing up: nothing), the header / bottom bar
     ignore drags (touch-action: none), overscroll-behavior: none on the root, and in the app a fling that coasts into
     an edge has the header shifted back by the overscroll (pinChrome). The body is padded by its height (--hdr-h).
   - #scroll is now a plain wrapper. It only becomes the scroller while a field has focus on a touch screen
     (html.fld, js/shell.js): v3's keyboard handling (the window is held at 0 so iOS cannot push the header up under
     the clock; the body ends at the keyboard), with the scroll position carried over both ways.
   /privacy and /terms (no .app) keep their own sticky header. */
html.app body { --hdr-h: calc(var(--safe-t) + 116px); padding-top: var(--hdr-h); }
html.app body.nohdr { padding-top: 0; }
/* The original logo bar on every screen (owner 2026-11-01: "almost the same height as it was before, just don't make it
   extend when people pull down"): logo card, HOPC MOBILE + the screen name (Home: who is signed in + Account), padded by
   the safe area. No Back here: Back is the first row of the white content (#backrow). Fixed height, fixed position.
   The navy box-shadow above it covers the status-bar strip while the document scrolls under it in the iOS app (the
   app shows the scrolled page there); in a browser it is above the top of the screen and never seen. */
html.app .hdr { position: fixed; top: 0; left: 0; right: 0; padding-top: calc(var(--safe-t) + 16px); padding-bottom: 16px; min-height: calc(var(--safe-t) + 116px);
  height: calc(var(--safe-t) + 116px); box-shadow: 0 -100px 0 0 var(--navy), 0 -160px 0 0 var(--navy), 0 -220px 0 0 var(--navy), 0 -280px 0 0 var(--navy),
  0 -340px 0 0 var(--navy), 0 -400px 0 0 var(--navy), 0 -460px 0 0 var(--navy), 0 -520px 0 0 var(--navy), 0 -580px 0 0 var(--navy), 0 -640px 0 0 var(--navy); }
/* v6 (owner 2026-11-02 iPhone recording of live v5): if the page ever rubber-bands anyway, the navy above the header
   reaches ~640px up (stacked shadows, 60px steps so the 64px desktop bar has no gaps either; no spread, so nothing
   spills sideways over the side nav), so the area opened above it is navy, never the white page background. */
html.app .scroll { display: block; }
/* v5: nothing to scroll on the fixed chrome, so a drag there never starts a pan (js/ptr.js also cancels it). */
html.app { overscroll-behavior: none; }
html.app .hdr, html.app .bar { touch-action: none; }
/* Pull-to-refresh moves only the content (js/ptr.js slide): following the finger, then easing back. */
html.app .scroll.ptr-pull { will-change: transform; }
html.app .scroll.ptr-back { transition: transform .24s var(--ease); }
/* ---------- Safe area: ONE model (v19, owner 2026-11-02 8:01 PM iPhone: header ~2x tall, navy strip at the bottom,
   taps landing ~1 header-band LOWER than the finger) ----------
   Two variables carry the safe area, each applied exactly once: --safe-t (header padding-top, the status-bar band is
   the header's own navy) and --safe-b (bottom bar / sheets / footer padding-bottom). Browsers / Android: env().
   iOS app (js/shell.js): the current binary's WKWebView (capacitor.config.json ios.contentInset "automatic") may
   already inset the page natively; shell.js measures that with the document exactly one screen tall (nothing
   overflows the root, so the measurement is honest) and sets --safe-t / --safe-b to the part NOT yet applied
   (html.ios-inset). v21: "measured" = screen height - the fixed layout viewport (a fixed top:0/bottom:0 box), never
   window.innerHeight, which in the automatic web view keeps the top inset in (header doubled to 62 + 62 + 116pt on the
   owner's 10:57 PM screenshot). Nothing else in the CSS adds or subtracts an inset. A native inset leaves the home-indicator
   strip to the web view's own background (ios.backgroundColor, navy) - only the native fix (contentInset "never")
   changes that; the web page must not grow past the screen to paint it (that is what broke v6, see html.pin). */
html.ios-app { --safe-t: max(env(safe-area-inset-top, 0px), 20px); }
/* v20 pressed look (owner 2026-11-02 8:40 PM: the pressed look showed ~60-100pt below the finger while the tap itself
   opened the right thing). In the iOS app WebKit sets :active from an offset touch hit-test, so every X:active rule is
   written "html:not(.ios-app) X:active, X.is-pressed": in the app the look is js/press.js's .is-pressed flash on the
   control the click lands on. No tap highlight anywhere (body, inherited). */
html.ios-app * { -webkit-tap-highlight-color: transparent; }
/* v20 (owner 2026-11-02 8:58 PM: a long / hard press on a card or button popped the iOS link preview "open in Safari").
   The cards and buttons are <a href> links; in the app shells (html.native-app from js/shell.js, html.ios-app) no
   callout, link preview, text selection or drag on links, buttons and tiles. Fields stay selectable and editable. */
html.native-app :is(a, button, [role=button], [role=link], [data-href], [data-go], .action, .wcard, .tile, .chip, .btn, .iconbtn, .menu-row, img, svg),
html.ios-app :is(a, button, [role=button], [role=link], [data-href], [data-go], .action, .wcard, .tile, .chip, .btn, .iconbtn, .menu-row, img, svg) {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
html.native-app :is(input, textarea, select, [contenteditable]), html.ios-app :is(input, textarea, select, [contenteditable]) {
  -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
/* Photos, item photos, and logos: a long press must not offer Save or Download.
   The native-shell rule above does not cover a browser, and iOS still shows the menu
   unless the callout, drag, and selection are off on the image itself. */
img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
/* A field has focus on a touch screen (js/shell.js, html.fld) - the keyboard is (about to be) up. iOS (the app's
   WKWebView and Safari) scrolls the whole viewport to show the field, which slid the fixed header up under the status
   bar. So for as long as the field has focus the document does not scroll: the body is a fixed column under the
   header, #scroll scrolls (shell.js moves the scroll position into it and back), the window is held at 0, and with
   the keyboard up (html.kb-open, --kb = its height) the body and sheets end at the keyboard. */
html.app.fld, html.app.fld body { height: 100%; overflow: hidden; }
html.app.fld body { position: fixed; inset: 0; min-height: 0; display: flex; flex-direction: column; }
html.app.fld .scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
html.app.fld.kb-open body { bottom: var(--kb, 0px); }
html.kb-open .sheet { bottom: var(--kb, 0px); max-height: calc(92dvh - var(--kb, 0px)); }
/* Sticky bars inside the content (Call Analytics tabs) stop under the fixed header; in html.fld at the top of #scroll. */
html.app .hp-tabs { top: var(--hdr-h); }
html.app.fld .hp-tabs { top: 0; }
/* Pinned shell, iOS app only (html.pin, js/shell.js): the document is exactly the screen and NEVER scrolls; #scroll
   (between the fixed header and the bottom) is the only scroller, with overscroll-behavior-y: contain so a bounce stays
   inside it and the header cannot travel (v6). v19 root fix: v6 made the root min-height: calc(100dvh + --nb) so it
   was taller than the inset web view (100dvh is the large viewport, plus the 34pt strip). A root that overflows is a
   root WKWebView can scroll and offset: WebKit then (a) reports innerHeight as the full screen, so js/shell.js saw "no
   native inset" and padded the header by env() a second time (62 + 62 + 116 pt), dropped --nb (navy strip back), and
   (b) draws the position: fixed body/header at one offset while hit-testing them at another - taps landed ~one
   header band lower (the 'Clifton' tap pressed the red RMA button). Root and body are now exactly the layout
   viewport with nothing to scroll (as in v3, the last state with the right header and correct taps). */
html.app.pin, html.app.pin body { height: 100%; overflow: hidden; }
html.app.pin body { position: fixed; inset: 0; min-height: 0; display: flex; flex-direction: column; }
html.app.pin .scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
html.app.pin .scroll::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: calc(100% + 1px); pointer-events: none; visibility: hidden; }
html.app.pin .hp-tabs { top: 0; }
html.app.pin .sheet { overscroll-behavior-y: contain; }
/* Owner 2026-11-02 (iPhone): the logo tile filled almost the whole header. ~71% of the old 84px tile (60px: a 42px
   shield, same 25% clear space); the header keeps its fixed 116px + safe area and centres the tile with the text. */
html.app .hdr .tile { padding: 9px; border-radius: 11px; align-self: center; }
html.app .hdr .tile img { height: 42px; }
html.app .hdr .brand { flex: 1 1 auto; }
html.app .hdr .brand h1 { flex: none; }
html.app .hdr .brand span { line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.app .hdr .who { white-space: nowrap; }
@media (max-width: 379.98px) { html.app .hdr .brand span { display: none; } }
/* Back: the first row of the white content area, under the header (scrolls with the screen). */
.backrow { padding: var(--s3) var(--s4) 0; }
.backrow[hidden] { display: none; }
.backrow + main .screen > .pad { padding-top: var(--s3); }
.backbtn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 16px 0 8px; border-radius: var(--r-pill); border: 1.5px solid var(--mist);
  background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; box-shadow: var(--sh-sm); transition: transform var(--t1) var(--ease), background var(--t1) var(--ease); }
html:not(.ios-app) .backbtn:active, .backbtn.is-pressed { transform: scale(.97); background: var(--blue-bg); }
@media (hover: hover) { .backbtn:hover { background: var(--blue-bg); } }
/* v20 header (owner 2026-11-02 8:47 PM: "get rid of the red and light blue vertical lines in the header and move over the profile and notification buttons"): no corner stripes on .hdr or .login .top; the header actions sit at the normal right padding (= the left padding of the logo). */
.hdr.tall { padding-top: calc(var(--safe-t) + 16px); padding-bottom: 16px; }
.hdr > * { position: relative; z-index: 1; }
.tile { background: var(--white); border-radius: 14px; padding: 14px; box-shadow: var(--sh-md); flex: none; } /* 25% clear space around a 56px shield */
.tile img { height: 56px; width: auto; }
.hdr .brand { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hdr .brand b { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hdr .brand span { font-size: 14px; opacity: .85; }
.hdr h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Owner 2026-11-14: the g in "Night shift" was cut off. The title clips its overflow (for the …), and Poppins' descenders
   go below a 1.2 line box: give the box room under the letters without moving anything (padding in, margin back out). */
.hdr h1 { line-height: 1.3; padding-bottom: .12em; margin-bottom: -.12em; }
.hdr .spacer { flex: 1; }
.iconbtn { min-width: 48px; min-height: 48px; border-radius: var(--r-pill); border: 0; background: transparent; color: inherit; display: inline-grid; place-items: center;
  transition: transform var(--t1) var(--ease), background var(--t1) var(--ease); }
html:not(.ios-app) .iconbtn:active, .iconbtn.is-pressed { transform: scale(.97); background: rgba(255,255,255,.12); }
html:not(.ios-app) .iconbtn.light:active, .iconbtn.light.is-pressed { background: var(--mist); }
.who { margin-right: 0; text-align: right; font-size: 13px; line-height: 1.3; opacity: .92; }
.who b { display: block; font-weight: 600; font-size: 14px; }

/* ---------- Screens + transitions ---------- */
main { outline: none; }
.screen { padding-bottom: var(--s5); animation: in var(--t2) var(--ease); }
.screen.back { animation-name: inback; }
.screen.still { animation: none; }
@keyframes in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes inback { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.pad { padding: var(--s5) var(--s4); }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s5); }

/* Two-tier heading: light word over bold caps + 48x4 red rule */
.th { margin: var(--s2) 0 var(--s5); }
.th .lite { display: block; font-weight: 400; font-size: 18px; color: var(--slate-600); letter-spacing: .01em; line-height: 1.3; }
.th h2 { margin: 2px 0 0; font-weight: 800; font-size: 28px; line-height: 1.15; text-transform: uppercase; letter-spacing: -.005em; color: var(--navy); }
.th::after { content: ''; display: block; width: 48px; height: 4px; background: var(--red); margin-top: var(--s3); }
.th p { margin: var(--s3) 0 0; color: var(--slate-600); }
/* Home greeting: "Hi <first name>" alone, promoted to the main heading (a touch larger than a screen title, no accent bar). */
.th.greet { margin: var(--s3) 0 var(--s5); }
.th.greet h2 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
.th.greet::after { content: none; }

/* Attention cards under the name (roll call, next-week confirm, swap requests, document review):
   the same 12px gap .widgets uses between cards, so they don't sit flush (owner 2026-11-12). */
#w-homeTop, #w-swaps, #w-review { display: flex; flex-direction: column; gap: var(--s3); }
#w-homeTop:not(:empty) + #w-swaps:not(:empty),
#w-homeTop:not(:empty) + #w-swaps:empty + #w-review:not(:empty),
#w-swaps:not(:empty) + #w-review:not(:empty) { margin-top: var(--s3); }
/* And the same 12px under the last of them, so roll call never sits flush on the tiles or alerts below (owner 2026-11-13). */
#w-homeTop:not(:empty):has(+ #w-swaps:empty + #w-review:empty), #w-swaps:not(:empty):has(+ #w-review:empty), #w-review:not(:empty) { margin-bottom: var(--s3); }

/* When roll call / confirm / review aren't under the name, keep the Swap shift button off the
   390-tall bottom edge at scroll 0 (those cards otherwise give the page enough height). */
#w-homeTop:empty + #w-swaps:empty + #w-review:empty ~ #widgets { margin-top: var(--s8); }  /* 64px: .widgets already has 24px; need ~40px more so Swap clears the 390-tall edge */

/* Skewed banner (section label) */
.banner { display: inline-block; transform: skewX(-8deg); background: var(--red); color: var(--white); padding: 6px 18px; margin: var(--s2) 0 var(--s4) 4px; }
.banner > span { display: inline-block; transform: skewX(8deg); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.banner.navy { background: var(--navy); }
.label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-600); margin: 0 0 var(--s3); }
.muted { color: var(--slate-600); }
.small { font-size: 14px; }
.xs { font-size: 12px; }

/* ---------- Cards & action tiles ---------- */
.card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm), var(--sh-md); padding: var(--s5); }
.card.flat { box-shadow: var(--sh-sm); border: 1px solid var(--mist); }
.actions { display: grid; gap: var(--s3); }
.action { display: flex; align-items: center; gap: var(--s4); width: 100%; min-height: 80px; text-align: left; background: var(--white); border: 0; border-radius: var(--r-card);
  padding: var(--s4) var(--s4) var(--s4) var(--s5); box-shadow: var(--sh-sm), var(--sh-md); color: var(--ink); text-decoration: none;
  transition: transform var(--t1) var(--ease), box-shadow var(--t1) var(--ease); position: relative; }
html:not(.ios-app) .action:active, .action.is-pressed { transform: scale(.97); box-shadow: var(--sh-sm); }
.action .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); flex: none; }
.action .t { flex: 1; min-width: 0; }
.action .t b { display: block; font-weight: 700; font-size: 17px; color: var(--navy); line-height: 1.3; }
.action .t span { display: block; font-size: 14px; color: var(--slate-600); line-height: 1.4; }
.action .chev { color: var(--slate-400); }
.action.primary { background: var(--navy); color: var(--white); }
.action.primary .t b { color: var(--white); } .action.primary .t span { color: rgba(255,255,255,.8); }
.action.primary .ico { background: rgba(255,255,255,.12); color: var(--white); }
.action.primary .chev { color: rgba(255,255,255,.7); }
.action .count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.mini { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: var(--s4); gap: var(--s3); }
/* Owner 2026-11-14 (phone screenshot): in the iPhone app a two-line subtitle ran past the bottom of its tile. WebKit
   can size a column-flex tile inside a grid from its one-line height (e.g. before Poppins loads) and not grow it.
   Plain block layout is always sized by its text, so the tile grows with the wrap on every engine. */
.grid2 > .mini, .actions > .mini { display: flow-root; height: auto; }
.grid2 > .mini > .ico, .actions > .mini > .ico { margin-bottom: var(--s3); }
.mini .t { display: block; overflow-wrap: anywhere; }
.mini .t b { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: transform var(--t1) var(--ease), background var(--t1) var(--ease), opacity var(--t1) var(--ease); }
html:not(.ios-app) .btn:active, .btn.is-pressed { transform: scale(.97); }
.btn.primary { background: var(--blue); color: var(--white); box-shadow: var(--sh-md); }
.btn.primary:hover { background: var(--blue-600); }
.btn.secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.quiet { background: var(--mist); color: var(--navy); }
.btn.danger { background: var(--white); color: var(--red-600); border: 1.5px solid var(--red-600); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .badge { background: var(--white); color: var(--blue); border-radius: var(--r-pill); min-width: 26px; height: 26px; padding: 0 8px; font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; }
.link { background: none; border: 0; color: var(--blue); font-weight: 600; padding: var(--s3) 0; min-height: 48px; text-decoration: underline; text-underline-offset: 3px; }

/* Fixed bottom action bar (#bar, js/core.js bar()). Its own padding-bottom takes the home-indicator safe area, so its
   white runs to the bottom edge of the screen (browsers / Android: env(safe-area-inset-bottom); iOS app with the native
   inset, html.ios-inset above: the strip under the web view shows the white page root, which is never clipped now that
   js/core.js resetChrome() / leaveKeyboardIfGone() clear a stuck keyboard layout). Torn down on every route change. */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--mist); box-shadow: 0 -4px 14px rgba(25,40,90,.08);
  padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b)); display: flex; gap: var(--s3); align-items: center; }
.bar .btn.primary { flex: 1; }
.bar .sum { font-size: 14px; color: var(--slate-600); line-height: 1.3; }
.bar .sum b { display: block; color: var(--navy); font-size: 16px; }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-600); margin-bottom: var(--s2); }
.input { width: 100%; min-height: 52px; border: 1.5px solid var(--mist); border-radius: var(--r-in); background: var(--white); padding: 12px 16px; font-size: 17px;
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,31,176,.15); }
textarea.input { min-height: 96px; resize: vertical; }
/* iOS date / time inputs (owner 2026-11-04, Classes > Add a class overflowed on his iPhone): iOS Safari / WKWebView give
   input[type=date|time] an intrinsic minimum width (its own UA min-width / -webkit-min-logical-width), and a flex or grid
   item keeps min-width:auto, so the field pushed past the sheet and the whole layout viewport widened (Title cut off too).
   Every date / time field in the app (classes, CEU outside class, CEU cycle, Car 1 modify, custom roll call, discipline,
   documents expiry, dispatch jump-to-date) is held to its box; text stays left-aligned and readable. */
input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=week] {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-inline-size: 0; -webkit-min-logical-width: 0; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value, input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
input[type=date].input, input[type=time].input, input[type=datetime-local].input { line-height: 26px; }
.grid2 > *, .nrow .two > *, .field, .sheet .field, .sheet label, .sheet [style*="flex:1"] { min-width: 0; }
.sheet { overflow-x: hidden; }
.pw { position: relative; } .pw .input { padding-right: 56px; } .pw .iconbtn { position: absolute; right: 2px; top: 2px; color: var(--slate-600); }
.err { color: var(--red-600); font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.err:empty { display: none; }
.search { position: relative; } .search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.search .input { padding-left: 48px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); border-color: transparent; }
.search .clear { position: absolute; right: 2px; top: 2px; color: var(--slate-600); }
/* Directory: search + the Admin-only "Inactive" button on one line (owner 2026-11-04 #5) */
.dir-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; max-width: 640px; }
.dir-tools .input { flex: 1; min-width: 0; margin: 0; }
.dir-tools .btn { flex: none; white-space: nowrap; }

/* Segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: var(--r-pill); padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; min-height: 48px; border: 0; background: transparent; border-radius: var(--r-pill); font-weight: 600; color: var(--slate-600);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: color var(--t2) var(--ease); }
.seg button[aria-selected="true"] { color: var(--navy); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--white); border-radius: var(--r-pill); box-shadow: var(--sh-sm), var(--sh-md);
  transition: transform var(--t2) var(--ease); }
.seg[data-v="1"] .thumb { transform: translateX(100%); }
.seg.seg3 { grid-template-columns: 1fr 1fr 1fr; }
.seg.seg3 .thumb { width: calc((100% - 8px) / 3); }
.seg.seg3[data-v="2"] .thumb { transform: translateX(200%); }
/* My calls Dispatched / Responded tabs (item 39): the same control; on the Home card the tabs are spans in the link card. */
.seg [role="tab"] { position: relative; z-index: 1; min-width: 0; }
.seg span[role="tab"] { min-height: 44px; border-radius: var(--r-pill); font-weight: 600; color: var(--slate-600); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  transition: color var(--t2) var(--ease); -webkit-tap-highlight-color: transparent; }
.seg span[role="tab"][aria-selected="true"] { color: var(--navy); }
.mc-tabs .num { font-weight: 500; color: var(--slate-600); }
.mc-tabs-screen { margin-bottom: 12px; }
.wcard .wtabs { margin: 4px 0 10px; }

/* Chips */
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px var(--s4) 6px; margin: 0 calc(-1 * var(--s4)); scrollbar-width: none; scroll-padding: var(--s4); }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1.5px solid var(--mist); background: var(--white); font-size: 15px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; transition: transform var(--t1) var(--ease), background var(--t1) var(--ease), border-color var(--t1) var(--ease); }
html:not(.ios-app) .chip:active, .chip.is-pressed { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[disabled] { opacity: .4; }
.chip.big { min-height: 52px; font-size: 16px; }

/* ---------- Item rows ---------- */
.list { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm), var(--sh-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 72px; padding: var(--s3) var(--s4); background: var(--white); border: 0; text-align: left;
  border-top: 1px solid var(--mist); transition: background var(--t1) var(--ease); }
.list > .row:first-child, .list > :first-child .row { border-top: 0; }
html:not(.ios-app) button.row:active, button.row.is-pressed { background: var(--paper); }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); }
.row .meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--slate-600); }
/* Items & Inventory: the quantity has its own line; status pills stay grouped below it. */
.row .inventory-meta { flex-direction: column; align-items: flex-start; }
.inventory-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.inventory-pills .pill { padding-inline: 8px; }
.row .incart { min-width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; padding: 0 10px; }
.row .add { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; flex: none; }
.row.priority { box-shadow: inset 5px 0 0 var(--red); }
/* ALS/BLS authz: disallowed items stay visible but greyed (owner 2026-11-04). */
.row.locked { opacity: .45; }
.row.locked .add { display: none; }

/* Status pills: always a word, never color alone */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pill.ok { background: var(--success-bg); color: #176B47; }
.pill.low { background: var(--warning-bg); color: #8A4D06; }
.pill.out, .pill.expired { background: var(--danger-bg); color: var(--red-600); }
.pill.exp { background: var(--info-bg); color: var(--star); }
.pill.neutral { background: var(--mist); color: var(--slate-600); }
.pill.coord { background: var(--navy); color: var(--white); }

/* ---------- Stepper (48px round) ---------- */
.stepper { display: inline-flex; align-items: center; gap: var(--s3); }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--mist); background: var(--white); color: var(--navy); display: grid; place-items: center;
  transition: transform var(--t1) var(--ease), background var(--t1) var(--ease); }
html:not(.ios-app) .stepper button:active, .stepper button.is-pressed { transform: scale(.92); background: var(--paper); }
.stepper button.plus { background: var(--blue); border-color: var(--blue); color: var(--white); }
.stepper button[disabled] { opacity: .35; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; display: inline-block; }
.stepper output.tick { animation: tick var(--t2) var(--ease); }
@keyframes tick { 0% { transform: translateY(0); } 40% { transform: translateY(-4px) scale(1.12); } 100% { transform: none; } }
.stepper.lg button { width: 64px; height: 64px; }
.stepper.lg output { min-width: 72px; font-size: 40px; font-weight: 800; }

/* ---------- Bottom sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(16,26,61,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--t2) var(--ease); }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--white); border-radius: 20px 20px 0 0; box-shadow: var(--sh-lg); max-height: 92dvh; overflow-y: auto;
  padding: var(--s3) var(--s4) calc(var(--s4) + var(--safe-b)); transform: translateY(100%); transition: transform var(--t2) var(--ease); }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--mist); margin: 0 auto var(--s4); }
.sheet h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.sheet .sheet-actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s5); }
.sheet .center { display: flex; justify-content: center; margin: var(--s5) 0 var(--s2); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.thumb-ph { width: 56px; height: 56px; border-radius: 12px; background: var(--paper); color: var(--slate-400); display: grid; place-items: center; flex: none; }
/* Item reference photos (Items Photo fldgVYEi6MsGirswG): large preview on the three sheets that use
   .item-ref (coord.js itemSheet, itemsheet.js scan/confirm, app.js qtyPrompt), thumbs in lists.
   iOS WKWebView ignores object-fit on a flex-item img that also has HTML width/height and the global
   img { max-width: 100% }: the intrinsic size wins and overflow:hidden clips it (owner 2026-11-06,
   Trauma Shears 900x900). The frame is a definite block (flex: none so a flex parent cannot shrink
   the 200px). The img is out of flow, with a resolved width and height inside a 12px pad, which is
   what object-fit: contain needs. max-width/max-height none beats the global img rule. .empty stays
   a centered flex row (icon + caption), not an absolutely positioned image. */
.item-ref { position: relative; display: block; width: 100%; height: 200px; flex: none; min-height: 0; border-radius: 16px; overflow: hidden; background: #fff; }
.item-ref img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; max-height: none; min-width: 0; min-height: 0; object-fit: contain; object-position: center; background: #fff; display: block; }
.item-ref.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--slate-400); gap: 8px; padding: 16px; }
.item-thumb { width: 48px; height: 48px; padding: 3px; border-radius: 12px; object-fit: contain; object-position: center; background: #fff; flex: none; }
.item-thumb.ph { display: grid; place-items: center; color: var(--slate-400); }

.exp-box { border: 1.5px solid var(--mist); border-radius: var(--r-card); padding: var(--s4); margin-top: var(--s4); }
.exp-box.need { border-color: var(--blue); }
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s3); }
.months .chip { justify-content: center; padding: 0; }

/* ---------- Scanner ---------- */
/* Scanner viewfinder (owner 2026-11-03: "a nice clean square with the target in the middle and that's it", no blue).
   Plain black like a camera, the video absolutely filling it center-cropped (object-fit: cover: never letterboxed into
   side bars) and faded in once it has a frame (js/scanner.js adds .live); the target is a centered square that never
   moves. No navy anywhere.
   v27 iOS fixed box (owner 2026-11-03 screen recording, iPhone app: the black square was right, then ~1 s later, as
   the camera feed appeared, Take supplies' box grew into a tall rectangle (Type a code pushed down, target lower) and
   Continuous scan's box went full screen width and taller (target stretched)). Desktop WebKit (Playwright WPE) does
   not reproduce the jump with v26, so the iOS mechanism is not proven; v26 left two doors open that iOS can use:
   the box's height was an aspect-ratio preferred size (width: min(100%, 52dvh), contain: layout paint, no size
   containment), so content could in principle feed its size, and the iOS camera layer (composited separately) was
   clipped only by overflow on a rounded box. v27 closes both - the size can never come from the video:
   - .camslot (the only thing the page lays out) takes the column width from its parent, capped at 62dvh (v28: so
     the 0.84-tall box is at most 52dvh tall, as the v26 square was);
   - .cam is a box made of padding (height 0 + padding-bottom 84% (v28; v27: 100%) of the slot width), contain: strict (size
     containment: its content - the video, its intrinsic 1080x1920 / 1920x1080, any inline width / height - is never
     consulted), overflow hidden plus a rounded clip-path (clips the separately composited camera layer on iOS);
   - the video (and any canvas) is absolutely pinned to the box with !important sizes, so an inline width / height or
     width= / height= attribute (js/scanner.js also strips them) cannot size it.
   v28 clean look (owner 2026-11-03, the Similac app's scanner as reference, "look how clean this is", but smaller, in
   the page): the box is 84% as tall as wide (a landscape cutout; fixed, the same before and after the feed); the feed
   fills it edge to edge; a black 50% dim covers it except a centred landscape cutout (80% of the width, 3:2: inset
   18.254% 10% = 0.8w x 0.5333w) outlined by a 2px solid white line with rounded corners - the dim is the cutout's
   own box-shadow, clipped by the box. No corner brackets, no scan line, no pulse, no green. The hint sits centred in
   the strip under the cutout; the 40px flashlight sits in the top-right corner, clear of the cutout at 320 wide. The
   decoder still reads the whole frame (the cutout is a guide only).
   v29 (owner 2026-11-03 iPhone video): the feed is 4:3 and the decoder reads only the cutout (js/scanner.js); the
   feed appears at once (no fade: nothing animates); .reframe is the one-frame size nudge js/scanner.js applies when
   the camera's frame size changes (iOS kept the old geometry: "reframes ~1 s later").
   v29 native scanner (HOPC Mobile iOS build 5+ / Android 1.0.5+, HopcScanner plugin): the camera is a native view
   UNDER the web page at the box's rect. While it runs (js/scanner.js nativeScanView adds the classes after the camera
   started and removes them before it stops): the page background is transparent (html.native-scan), so is every
   ancestor of the box that paints one (.scan-see), and .scanhole - a fixed box exactly over .cam, its huge shadow in
   the page colour - repaints the page everywhere else. .cam itself is transparent (the preview shows through) and keeps
   its dim, outline, hint and flashlight on top. Before / after: the same black box as the web camera. */
.camslot { position: relative; display: block; box-sizing: border-box; width: 100%; max-width: 62vh; max-width: 62dvh; margin-inline: auto; border-radius: var(--r-card); box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.cam { position: relative; display: block; box-sizing: border-box; width: 100%; height: 0; padding: 0 0 84% 0; margin: 0; background: #000; border-radius: var(--r-card); overflow: hidden; contain: strict; isolation: isolate; clip-path: inset(0 round var(--r-card)); }
.cam video, .cam canvas { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0; border: 0; object-fit: cover !important; object-position: 50% 50%; background: #000; display: block; }
.cam video { opacity: 0; }
.cam video.live { opacity: 1; }
.cam video.reframe { width: 99.99% !important; }
.cam.native { background: transparent; }
.cam.native video { visibility: hidden; }
html.native-scan, html.native-scan body, html.native-scan .scan-see { background: transparent !important; }
.scanhole { position: fixed; z-index: -1; pointer-events: none; box-sizing: border-box; border-radius: 16px; box-shadow: 0 0 0 200vmax var(--paper); }
.cam .frame { position: absolute; inset: 18.254% 10%; box-sizing: border-box; border: 2px solid #fff; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); pointer-events: none; }
.cam .camtools { position: absolute; top: 6px; right: 6px; display: flex; gap: var(--s2); z-index: 1; }
.cam .camtools .iconbtn { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
.cam .camtools .iconbtn { background: rgba(0,0,0,.45); color: var(--white); }
.cam .camtools .iconbtn[aria-pressed="true"] { background: var(--white); color: #000; }
.cam .hint { position: absolute; left: 10%; right: 10%; top: 81.746%; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.2; }
.cam .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--white); padding: var(--s5); }
.cam .msg p { margin: var(--s2) 0 var(--s4); color: rgba(255,255,255,.85); }

/* ---------- Done ---------- */
.done { text-align: center; padding-top: var(--s7); }
.check { width: 112px; height: 112px; margin: 0 auto var(--s5); border-radius: 50%; background: var(--success); display: grid; place-items: center; box-shadow: var(--sh-md); animation: pop 320ms var(--ease); }
.check svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 360ms 160ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done h2 { font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--navy); margin: 0; }
.done .lite { color: var(--slate-600); font-size: 18px; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.stat { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm), var(--sh-md); padding: var(--s4) var(--s3); }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-600); }
.bars .b { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s3); padding: var(--s2) 0; }
.bars .track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.bars .fill { height: 100%; background: var(--blue); border-radius: 8px; }
.pwbox { background: var(--paper); border: 1.5px dashed var(--slate-400); border-radius: var(--r-card); padding: var(--s5) var(--s4); text-align: center; }
.pwbox code { display: block; font: 700 26px/1.3 Poppins, monospace; color: var(--navy); letter-spacing: .02em; word-break: break-word; margin: var(--s2) 0 var(--s3); }
.note { display: flex; gap: var(--s3); align-items: flex-start; background: var(--info-bg); color: var(--navy); border-radius: var(--r-card); padding: var(--s4); font-size: 14px; }
.note.warn { background: var(--warning-bg); color: #6B3B05; }
.note.crit { background: var(--danger-bg); color: var(--red-600); box-shadow: inset 5px 0 0 var(--red); }
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--slate-600); }
.empty .ic { margin: 0 auto var(--s3); color: var(--slate-400); }

/* Login. The navy brand is the first block of the page, inside #scroll with the form and the
   footer. The column can grow and the whole screen scrolls. It is not a separate fixed bar. */
html.signin body { padding-top: 0; }
.login { display: flex; flex-direction: column; }
.login .top { background: var(--navy); color: var(--white); padding: calc(var(--safe-t) + 12px) var(--s5) 18px; position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%); }
.login .tile { display: inline-block; padding: 10px; border-radius: 14px; }
.login .tile img { height: 48px; }
.login .top h1 { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.login .top p { margin: 2px 0 0; font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.login .top .rule { width: 48px; height: 3px; background: var(--red); margin-top: 8px; }
.login form { padding: 16px var(--s5) 8px; display: flex; flex-direction: column; gap: 10px; }
.login form > div[style*="flex:1"], .login .tfa-gap { flex: 0 0 12px; min-height: 0; }
.login .tfa-hint { margin: 0; }
.login .tfa-methods { display: flex; flex-direction: column; gap: 8px; }
.login .tfa-other { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--slate-200); }
.login .tfa-other > span { font-weight: 700; color: var(--slate-600); }
.login .tfa-remember { display: flex; gap: 8px; align-items: center; margin: 0; }
.login .tfa-actions { display: flex; gap: 8px; align-items: stretch; }
.login .tfa-actions #tfa-add { flex: 1 1 auto; }
.login .tfa-actions #tfa-copy { flex: 0 0 auto; }
.login .tfa-qr-cap { margin: 0; font-size: 12px; font-weight: 700; color: var(--slate-600); text-align: center; }
.login .tfa-qr { display: flex; justify-content: center; }
.login .tfa-qr svg { width: 112px; height: auto; }
.login .tfa-backups { font-size: 12px; color: var(--slate-600); }
.login .tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin-top: 4px; }
.login .tfa-codes code { font: 600 12px/1.3 ui-monospace, monospace; color: var(--navy); }
.login .btn { min-height: 44px; }
.login .input { min-height: 44px; padding: 8px 14px; }
.login .field > span { margin-bottom: 4px; }
@media (max-height: 560px) {
  .login .tile { padding: 4px; }
  .login .tile img { height: 32px; }
  .login .top { padding: calc(var(--safe-t) + 6px) var(--s4) 12px; }
  .login .top p { font-size: 18px; }
  .login form { padding-top: 10px; gap: 6px; }
  .login .tfa-qr svg { width: 72px; }
}

/* Skeletons (solid, no gradients) */
.sk { background: var(--mist); border-radius: var(--r-card); animation: pulse 1.2s var(--ease) infinite alternate; }
.sk-h { height: 56px; width: 60%; margin-bottom: var(--s5); border-radius: var(--r-sm); }
.sk-card { height: 80px; margin-bottom: var(--s3); }
.sk-row { height: 72px; border-radius: 0; border-top: 1px solid var(--white); }
@keyframes pulse { from { opacity: 1; } to { opacity: .45; } }

/* Toast */
.toast { position: fixed; left: var(--s4); right: var(--s4); bottom: calc(max(var(--bar-h), var(--safe-b)) + var(--s3)); z-index: 50; background: var(--navy); color: var(--white); border-radius: var(--r-in);
  padding: var(--s3) var(--s4); box-shadow: var(--sh-lg); font-weight: 600; font-size: 15px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: all var(--t2) var(--ease);
  display: flex; gap: var(--s3); align-items: center; }
.toast.on { transform: none; opacity: 1; }
/* With a sheet open, the message shows at the top instead, so it never covers the sheet's buttons (owner 2026-11-13). */
body:has(#sheet.on) .toast { top: calc(var(--safe-t) + var(--s3)); bottom: auto; z-index: 60; transform: translateY(-16px); }
body:has(#sheet.on) .toast.on { transform: none; }

/* Pull to refresh */
/* Pull-to-refresh spinner (js/ptr.js): a small white disc that slides out from under the header. */
.ptr-ind { position: fixed; left: 50%; top: var(--safe-t); z-index: 19; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--navy); box-shadow: var(--sh-md, 0 4px 14px rgba(16,26,61,.18)); opacity: 0;
  transform: translate(-50%, -44px); pointer-events: none; transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
.ptr-ind.on:not(.spin) { transition: none; }
.ptr-ind.ready { color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--sh-md, 0 4px 14px rgba(16,26,61,.18)); } /* v6: navy arrow on a white disc from the first px (was slate-grey: poor contrast) */
.ptr-ind.spin { color: var(--navy); opacity: 1; }
/* The disc carries the loader's dot wave (js/spinner.js): dim and still while pulling, solid at "ready", a wave while
   refreshing. */
.ptr-ind .dots { gap: 4px; }
.ptr-ind .dots i { width: 6px; height: 6px; animation: none; opacity: .45; }
.ptr-ind.ready .dots i { opacity: 1; }
.ptr-ind.spin .dots i { animation: dot-wave 1s cubic-bezier(.45, 0, .55, 1) infinite; }
.ptr-ind.spin .dots i:nth-child(2) { animation-delay: .14s; } .ptr-ind.spin .dots i:nth-child(3) { animation-delay: .28s; }

/* Loading (js/spinner.js, owner's pick "option C"): three dots in a wave (navy, navy, Hatzolah red), centred in the
   content; the shield fades in above them only after 600 ms, so a quick load shows just the dots. Replaces the grey
   placeholder rows. prefers-reduced-motion: no bouncing, a slow gentle fade (the shield shows at once). */
.logo-load { display: grid; place-items: center; min-height: 180px; padding: var(--s5) 0; }
.logo-load.page { min-height: 52vh; }
.logo-load.chart { min-height: 200px; }
.dotwave { display: grid; justify-items: center; gap: 14px; }
.dotwave img { width: 30px; height: 37px; display: block; opacity: 0; transform: translateY(4px); animation: dot-late .35s ease-out .6s forwards; }
.dots { display: flex; gap: 7px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); animation: dot-wave 1s cubic-bezier(.45, 0, .55, 1) infinite; }
.dots i:nth-child(2) { animation-delay: .14s; }
.dots i:nth-child(3) { animation-delay: .28s; background: var(--red); }
@keyframes dot-wave { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-7px); opacity: 1; } }
@keyframes dot-late { to { opacity: 1; transform: none; } }
@keyframes dot-fade { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dots i, .ptr-ind.spin .dots i { animation: none; opacity: 1; }
  .dotwave .dots, .ptr-ind.spin .dots { animation: dot-fade 1.6s ease-in-out infinite alternate; }
  .dotwave img { animation: none; opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print: the bin labels print view (labels.js mountPrintSheet) adds its own label-only print CSS while it is open.
   The old Avery-sheet rules (#print, unused) hid everything but #print and would have printed a blank page. */
@media print { .hdr, .bar, nav, .toast { display: none !important; } }
/* Printing: the whole document (every page, not one screenful), no padding for the fixed header (hidden in print). */
@media print { html.app, html.app body { position: static !important; height: auto !important; min-height: 0 !important; padding-top: 0 !important; overflow: visible !important; display: block !important; } html.app .scroll { overflow: visible !important; } }

/* Small additions */
[hidden] { display: none !important; }
.cam.blocked .frame, .cam.blocked .hint, .cam.blocked video { display: none; }
.cam .msg > div { display: flex; flex-direction: column; align-items: center; max-width: 280px; }
.row.pick { position: relative; cursor: pointer; gap: var(--s4); justify-content: flex-start; }
.row.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.row.pick .box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--slate-400); display: grid; place-items: center; color: transparent; flex: none; transition: all var(--t1) var(--ease); }
.row.pick input:checked + .box { background: var(--blue); border-color: var(--blue); color: var(--white); }
.row.pick input:focus-visible + .box { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.row.tight { min-height: 56px; padding-top: var(--s2); padding-bottom: var(--s2); }
.btn.sm { min-height: 40px; padding: 0 var(--s4); font-size: 14px; }
.card.alert .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-bg); color: var(--navy); display: grid; place-items: center; flex: none; }
.card.alert.crit { box-shadow: inset 4px 0 0 var(--red), var(--sh-md); }
.barrow { display: grid; grid-template-columns: 1fr 96px 32px; gap: var(--s3); align-items: center; padding: 6px 0; }
.barrow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barrow .track { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.barrow .track span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.barrow b { text-align: right; }
.screen.flush { padding: 0; }

/* Footer (login screen + app shell + privacy page): Privacy Policy link */
/* --bar-h is the bottom bar's measured height (js/core.js bar(); its safe-area padding included, 0 with no bar), so the
   footer always scrolls clear of the bar (owner 2026-11-02 iPhone: the Penguin Group footer was cut off under Done). */
.foot { padding: var(--s4) var(--s4) calc(max(var(--bar-h), var(--safe-b)) + var(--s4)); min-height: 56px; display: flex; flex-direction: column; gap: 2px;
  justify-content: center; align-items: center; border-top: 1px solid var(--mist); font-size: 14px; color: var(--slate-600); }
.foot a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--blue); }

/* Privacy Policy page (public/privacy/index.html): static, no JS, wider reading column */
.th h1 { margin: 2px 0 0; font-weight: 800; font-size: 32px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.02em; color: var(--navy); }
.doc-page .hdr { position: relative; }
.doc-page .hdr .tile { display: block; }
.doc { display: block; max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s5); }
.doc .eff { margin: 0 0 var(--s4); font-size: 14px; color: var(--slate-600); }
.doc .eff b { color: var(--navy); }
.doc .lead { font-size: 17px; line-height: 1.6; margin: 0 0 var(--s5); }
.doc-sec { margin-top: var(--s4); padding: var(--s5) var(--s5) var(--s4); }
.doc-sec h2 { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.doc-sec h2 .n { flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--blue); color: var(--white); font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.doc-sec p, .doc-sec li { line-height: 1.65; }
.doc-sec p { margin: 0 0 var(--s3); }
.doc-sec ul { margin: 0 0 var(--s3); padding-left: 1.25em; }
.doc-sec li + li { margin-top: var(--s2); }
.doc-sec li::marker { color: var(--blue); }
.doc-sec b { color: var(--navy); font-weight: 600; }
.doc a:not(.btn) { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-foot { padding-bottom: calc(var(--safe-b) + var(--s5)); }
/* "Back to app" on /privacy and /terms (public/js/docback.js): the app's own header Back (white chevron on navy) with
   a label, so people in the HOPC Mobile apps (no browser Back) see the way out; and a big button at the bottom. */
.doc-page .hdr { flex-wrap: wrap; row-gap: var(--s2); }
.docback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 16px 0 8px; margin-left: -6px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: var(--white); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap; flex: none; -webkit-tap-highlight-color: transparent; }
.docback .i { width: 24px; height: 24px; flex: none; }
.docback:hover { background: rgba(255,255,255,.2); }
html:not(.ios-app) .docback:active, .docback.is-pressed { transform: scale(.97); background: rgba(255,255,255,.22); }
.docback:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.doc-page .hdr .docback + .tile { margin-left: var(--s2); }
.docback-foot { margin: var(--s6) 0 0; }
.docback-foot .btn .i { width: 22px; height: 22px; }
.doc a.btn { text-decoration: none; }
@media (max-width: 479.98px) { /* phones: Back, shield and "HOPC" on one row; the long name is in the page title below */
  .doc-page .hdr { flex-wrap: nowrap; }
  .doc-page .hdr .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .check svg path { stroke-dashoffset: 0; }
}
/* Tablet / narrow window (600-899px): the phone column, centered. Desktop (900px+) is at the end of this file. */
@media (min-width: 600px) and (max-width: 899.98px) { body:not(.doc-page) { max-width: 560px; margin: 0 auto; box-shadow: var(--sh-lg); } .bar, .sheet, html.app .hdr { max-width: 560px; margin: 0 auto; } }

/* ---------- V1: analytics (My calls), documents, night shift, profile, people ---------- */
.mc-card { margin-top: var(--s4); }
.mc-card h3, .v1-card h3 { margin: 0 0 var(--s3); font-size: 17px; font-weight: 700; color: var(--navy); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(5.5rem, 40%) 1fr 2.6rem; gap: var(--s2); align-items: center; font-size: 14px; }
.hbar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.hbar .t { height: 12px; background: var(--mist); border-radius: 6px; overflow: hidden; }
.hbar .t i { display: block; height: 100%; border-radius: 6px; }
.hbar .v { text-align: right; font-weight: 700; color: var(--navy); }
/* My calls charts: the Call Analytics bar chart (public/js/barchart.js) with its tooltip (.hp-tip, analytics.css). */
.mc-card { position: relative; --color-fg-muted: #565d75; --cds-chart-grid: #e8eaf1; --cds-chart-axis: #c5cad8;
  --cds-surface-popover: #ffffff; --cds-border: #e3e6ef; --cds-shadow-popover: 0 8px 24px rgba(25, 40, 90, .16); --cds-text-secondary: #565d75;
  --cds-font-size-caption: .78rem; --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-radius: 14px; }
.mc-chart { min-height: 200px; }
.mc-shift-unit { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.mc-shift-sep { border: 0; border-top: 1px solid var(--line, #e3e6ef); margin: 14px 0; }
.mc-card .hp-tip, .mc-card .hp-tip .d { font-weight: 600; color: var(--navy); }
/* The tapped / hovered bar (both screens). */
.hp-vbar .hit { cursor: pointer; }
.hp-vbar.on .hit { fill: rgba(25, 40, 90, .08); }
.hp-wrap .th { margin-bottom: var(--s3); }
.av { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 17px; overflow: hidden; position: relative; }
/* Face focus: --fx/--fy (0-100) and --fs (scale) from photo.focus. Img is sized to fs*avatar and offset so the
   focal point lands at the circle centre. object-position alone cannot centre an arbitrary point (same-% rule).
   Edge clamp (2026-11-05, "line across the top of my head"): left/top stay within [100% - fs*100%, 0] so the img box
   always covers the circle. Unclamped, a focus above ~1/3 of the height (eyes at y=32, fs=1.36) pushed the img down
   (top = 50 - 32*1.36 = +6%) and the .av mist background showed as a light band over the head. The calc() line is
   the fallback for engines without clamp(); the focus sits as close to centre as the edge allows.
   face-center-v2 (2026-11-05): this square-box rule is now only the before-load fallback. Once the photo loads,
   js/avfocus.js sets inline width/height/left/top in the photo's OWN aspect ratio (.placed), so the photo above and
   below the old square is usable: the focus is truly centred and the zoom comes from the face size, not the offset. */
.av img { position: absolute; max-width: none; width: calc(100% * var(--fs, 1)); height: calc(100% * var(--fs, 1)); object-fit: cover; object-position: calc(var(--fx, 50) * 1%) calc(var(--fy, 33) * 1%); left: calc(50% - var(--fx, 50) * var(--fs, 1) * 1%); top: calc(50% - var(--fy, 33) * var(--fs, 1) * 1%); left: clamp(calc(100% - 100% * var(--fs, 1)), calc(50% - var(--fx, 50) * var(--fs, 1) * 1%), 0%); top: clamp(calc(100% - 100% * var(--fs, 1)), calc(50% - var(--fy, 33) * var(--fs, 1) * 1%), 0%); }
.av img.placed { max-height: none; object-fit: fill; }
.av.lg { width: 96px; height: 96px; font-size: 32px; }
.av.xl { width: 160px; height: 160px; font-size: 52px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dcard { display: grid; gap: 6px; }
.dcard + .dcard { border-top: 1px solid var(--mist); padding-top: var(--s4); margin-top: var(--s4); }
.dcard .top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.dcard .top b { font-size: 16px; color: var(--ink); }
.dcard .acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 4px; }
.thumbs { display: flex; gap: var(--s2); flex-wrap: wrap; }
.thumbs a { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--mist); border: 1px solid var(--mist); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px var(--s3); font-size: 15px; }
.kv dt { color: var(--slate-600); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/* Bikur Cholim card on a hospital profile (owner 2026-11-04; js/bikurcholim.js): white card, thin dividers between
   sections, small icon + red all-caps section title, bold entry name, info, "Organization: ...", red tap-to-call. */
.bc { padding: 2px var(--s4); }
.bc-sec { padding: var(--s3) 0; }
.bc-sec + .bc-sec { border-top: 1px solid var(--mist); }
.bc-h { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s1); color: var(--red); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.bc-h .ic { flex: none; }
.bc-e { padding: 6px 0; overflow-wrap: anywhere; }
.bc-n { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.bc-i { font-size: 14px; color: var(--slate-600); line-height: 1.45; margin-top: 2px; }
.bc-o { font-size: 13px; color: var(--slate-600); margin-top: 2px; }
.bc-p { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-right: var(--s3); color: var(--red); font-weight: 600;
  font-size: 15px; text-decoration: none; }
.bc-p .ic { flex: none; }
.bc-f { border-top: 1px solid var(--mist); padding: 10px 0 var(--s3); font-size: 12px; line-height: 1.45; color: var(--slate-400); }
.bc-f div:first-child { color: var(--slate-600); font-weight: 600; }
.bc-src { font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.45; }
.cal { display: grid; gap: var(--s2); }
.night { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: var(--s3); align-items: center; background: var(--white); border-radius: 14px; box-shadow: var(--sh-sm); padding: 10px var(--s3); text-align: left; width: 100%; font: inherit; border: 0; color: inherit; }
.night.mine { box-shadow: inset 4px 0 0 var(--blue), var(--sh-sm); }
.night.past { opacity: .6; }
.night .d { text-align: center; line-height: 1.1; }
.night .d b { display: block; font-size: 20px; font-weight: 800; color: var(--navy); }
.night .d span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--slate-600); letter-spacing: .04em; }
.night .s { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.night .s div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.night .s em { font-style: normal; color: var(--slate-600); font-weight: 600; margin-right: 6px; }
/* Night shift week + default schedule (owner 2026-11-13) */
.night.fri { background: transparent; box-shadow: inset 0 0 0 1px var(--mist); opacity: .7; }
.nsdefault .night { grid-template-columns: 4.6rem 1fr auto; }
.night .d.nsdow b { font-size: 15px; }
.nsweek-nav b { font-size: 16px; }
/* On call for the night (Member 3, not a slot): the longer label wraps instead of hiding callsigns behind an ellipsis. */
.night .s .oc { white-space: normal; }
.night .s .me, .tonight-list .me { color: var(--blue); font-weight: 700; }
.monthnav { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.monthnav b { font-size: 18px; color: var(--navy); }
.covbar { display: grid; grid-template-columns: 4.5rem 1fr 3rem; gap: var(--s2); align-items: center; font-size: 14px; }
.covbar .t { height: 12px; background: var(--mist); border-radius: 6px; overflow: hidden; }
.covbar .t i { display: block; height: 100%; background: var(--success); }
.covbar .t i.bad { background: var(--red); }
.matrix { overflow-x: auto; margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4); }
.matrix table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.matrix th { font-weight: 700; color: var(--slate-600); white-space: nowrap; padding: 2px 4px; text-align: left; position: sticky; left: 0; background: var(--paper); }
.matrix thead th { position: static; text-align: center; }
.matrix td { width: 30px; height: 26px; border-radius: 6px; text-align: center; font-weight: 700; }
.matrix td.valid, .matrix td.nodate { background: var(--success-bg); color: var(--success); }
.matrix td.due { background: var(--warning-bg); color: var(--warning); }
.matrix td.expired, .matrix td.missing { background: var(--danger-bg); color: var(--red); }
.matrix td.na { background: transparent; color: var(--slate-400); }
a.row { text-decoration: none; color: inherit; }
a.chip, a.note { text-decoration: none; }
a.row .name { color: var(--ink); }

/* ---------- Home dashboard widgets (compact cards that tap through) ---------- */
.widgets { display: grid; gap: var(--s3); margin-top: var(--s5); }
.widgets:empty { display: none; }
.wcard { display: block; background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm), var(--sh-md); padding: var(--s4); color: var(--ink); text-decoration: none;
  border-left: 4px solid var(--navy); transition: transform var(--t1) var(--ease); }
html:not(.ios-app) .wcard:not(.ro):active, .wcard:not(.ro).is-pressed { transform: scale(.98); } /* .ro: read-only widget, no pressed look */
.wcard.good { border-left-color: var(--success); }
.wh { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.wh b { flex: 1; font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.wh .wi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); flex: none; }
.wh .chev { color: var(--slate-400); }
.wstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.wstats > div { background: var(--paper); border-radius: var(--r-in); padding: 8px 10px; min-width: 0; }
.wstats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.wstats span { display: block; font-size: 12px; line-height: 1.3; color: var(--slate-600); }
.wstats .warn b { color: #B5650C; } .wstats .bad b { color: var(--red-600); }
.wlist { list-style: none; margin: var(--s3) 0 0; padding: 0; font-size: 14px; }
.wlist li { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border-top: 1px solid var(--mist); }
.wlist li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlist li span:last-child { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.wlist .warn { color: #B5650C; } .wlist .bad { color: var(--red-600); }
.wnote { margin: var(--s2) 0 0; font-size: 13px; line-height: 1.45; color: var(--slate-600); }
.wroles { display: block; white-space: normal; overflow-wrap: anywhere; } .wroles > span { white-space: nowrap; }
.wtonight { display: grid; gap: 4px; }
.wtonight > div { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; padding: 6px 10px; background: var(--paper); border-radius: var(--r-in); }
.wtonight b { color: var(--navy); }
.wbig b { display: block; font-size: 20px; font-weight: 700; color: var(--navy); }
.wbig span { font-size: 14px; color: var(--slate-600); }
.walert { margin-bottom: var(--s4); text-decoration: none; }
.walert u { font-weight: 600; }
.avbtn { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; flex: none; }
.avbtn .avcam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); border: 2px solid var(--white); }

/* ---- Roll call + dispatch schedule ---- */
.rc-card { padding: var(--s4); }
.rc-card .wh { display: flex; align-items: center; gap: 8px; }
.rc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.rc-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--line, #E6E8F0); background: var(--white); font: inherit; font-weight: 700; color: var(--navy); min-height: 76px; }
.rc-opt.on { border-color: var(--blue); background: var(--blue-bg, #EAF1FF); }
.rc-opt[data-ans="away"].on { border-color: var(--red); background: var(--danger-bg, #FDECEC); color: var(--red); }
.rc-opt:disabled { opacity: .6; }
/* Roll Call Admin custom rows (owner 2026-11-03): the date it is for, then the buttons on their own line (Delete in red). */
.rc-row .rc-when { margin-top: 2px; font-size: 14px; }
.rc-row .rc-date { color: var(--navy); font-weight: 700; }
.rc-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
[data-rcst] .ic { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.rc-text { font-family: inherit; min-height: 9.5rem; resize: vertical; white-space: pre-wrap; }
.dgrid { display: grid; gap: 6px; }
.dgrid .dh, .dgrid .dr { display: grid; grid-template-columns: 5.6rem 1fr 1fr; gap: 6px; align-items: stretch; }
.dgrid .dh b { font-size: .8rem; text-align: center; color: var(--muted, #5B6178); }
.dgrid .dd { display: flex; flex-direction: column; justify-content: center; font-size: .82rem; min-width: 0; }
.dgrid .dd small { color: var(--muted, #5B6178); font-size: .75rem; }
.dgrid .dr.today .dd b { color: var(--blue); }
.dcell { background: var(--white); border: 0; border-radius: 12px; box-shadow: var(--sh-sm); padding: 10px 6px; font: inherit; font-size: .88rem; line-height: 1.25; text-align: center; color: inherit; min-height: 3.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dcell small { display: block; font-size: .72rem; color: var(--muted, #5B6178); margin-top: 2px; }
.dcell.shab { background: #E4E5EA; }
.dcell.open { background: var(--warning-bg); }
.dcell.mine { box-shadow: inset 0 0 0 2px var(--blue), var(--sh-sm); }
/* Four slots a day (Morning / Afternoon / Evening / Night): narrower columns, smaller names on phones. */
.dgrid .dh4, .dgrid .dr4 { grid-template-columns: 4.4rem repeat(4, minmax(0, 1fr)); gap: 4px; }
.dgrid .dh4 b { font-size: .72rem; }
.dgrid .dr4 .dcell { font-size: .78rem; padding: 8px 3px; overflow-wrap: anywhere; }
.dcell.ro { cursor: default; display: flex; flex-direction: column; justify-content: center; }
.linkbtn { background: none; border: 0; padding: 0 0 0 4px; color: inherit; cursor: pointer; vertical-align: middle; }
.mc-big { font-size: 1.05rem; margin: 4px 0 0; line-height: 1.4; }
.mc-big b { color: var(--navy); }
.mc-months { flex-wrap: wrap; }
/* Documentation: expired and expiring, one row per person, expandable */
.xgroup details.xrow { background: var(--white); }
.xgroup details.xrow + details.xrow { border-top: 1px solid var(--mist); }
.xgroup summary { list-style: none; cursor: pointer; }
.xgroup summary::-webkit-details-marker { display: none; }
.xgroup details[open] summary .chev { transform: rotate(180deg); }
.xdocs { padding: 0 var(--s4) var(--s4); display: grid; gap: 6px; }
.xdoc { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; }
.xdoc .bad { color: var(--red, #C21118); font-weight: 600; }
.me-row { box-shadow: inset 4px 0 0 var(--blue, #1A1FB0); }

/* Dispatch draft / publish + shift confirmation */
.dcell.c-confirmed { background: #DDF5E8; box-shadow: inset 0 0 0 2px #1F9D61, var(--sh-sm); }
.dcell.c-declined { background: #FDE2E1; box-shadow: inset 0 0 0 2px var(--red-600), var(--sh-sm); }
.dcell.c-pending { background: #ECEDF1; box-shadow: inset 0 0 0 1.5px #A3A8B8, var(--sh-sm); }
.dcell.c-partial { background: #FFF4D6; box-shadow: inset 0 0 0 2px #D4A017, var(--sh-sm); }
.dcell .dprog { font-weight: 700; color: #7A5A00; overflow-wrap: normal; word-break: keep-all; }
.dcell .dwait { overflow-wrap: normal; }
.dcell .dwait { font-size: .68rem; }
.dcell .dwait.bad { color: var(--red-600); }
.dcell.mine.c-confirmed, .dcell.mine.c-declined, .dcell.mine.c-pending, .dcell.mine.c-partial { outline: 2px solid var(--blue); outline-offset: -5px; }
.dstat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.pill.warn { background: var(--warning-bg); color: #8A4D06; }
.dcount { font-size: 14px; }
.dlegend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted, #5B6178); }
.dlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 4px; }
.dlegend i.c-confirmed { background: #DDF5E8; border: 2px solid #1F9D61; }
.dlegend i.c-declined { background: #FDE2E1; border: 2px solid var(--red-600); }
.dlegend i.c-partial { background: #FFF4D6; border: 2px solid #D4A017; }
.dlegend i.c-pending { background: #ECEDF1; border: 1.5px solid #A3A8B8; }
.btn.pubready { box-shadow: 0 0 0 4px rgba(31, 157, 97, .28); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.sc-row { flex-wrap: wrap; gap: 8px; }
.sc-row .main { flex: 1 1 170px; min-width: 170px; }
.sc-btns { display: flex; gap: 6px; flex: 1 1 100%; justify-content: center; }
.sc-st { display: inline-flex; align-items: center; gap: 4px; }
.sc-st.ok { color: #176B47; font-weight: 600; }
.sc-st.bad { color: var(--red-600); font-weight: 600; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--white); box-shadow: var(--sh-sm); }
.switch-row span { display: flex; flex-direction: column; } .switch-row small { font-size: 12px; }
.switch-row input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: #C9CCD6; position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch-row input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch-row input[type=checkbox]:checked { background: #1F9D61; } .switch-row input[type=checkbox]:checked::after { left: 23px; }
/* Remind (top of one person's documents, docs admins) */
.rm-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 16px; }
.rm-card .main { flex: 1; min-width: 0; }
.rm-list { margin: 0 0 16px; padding-left: 18px; }
.rm-list li { margin: 2px 0; }
/* Night shift editor: unit chips + picker */
/* Night shift editor unit picker (owner 2026-11-13): the same chips and type-to-search dropdown as Mutual Aid / Dispatch. */
.ns-picked { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.ns-picked .pk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; }
.ns-picked .pk small { opacity: .8; font-weight: 500; }
.ns-picked .pk .x { width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.16); display: grid; place-items: center; border: 0; color: inherit; cursor: pointer; padding: 0; }
.ns-picked .ns-none { font-size: 14px; color: var(--slate-600); line-height: 40px; }
.ns-q { position: relative; }
.ns-q[hidden] { display: none; }
.ns-ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 6px; display: flex; flex-direction: column; height: 240px; max-height: 240px; overflow: hidden;
  border: 1.5px solid var(--mist); border-radius: 12px; background: #fff; box-shadow: var(--sh-md); }
.ns-ac[hidden] { display: none; }
.ns-ac .ac-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.ns-ac .ac-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid #EEF1F6; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.ns-ac .ac-row:first-child { border-top: 0; }
.ns-ac .ac-row.on, .ns-ac .ac-row:hover, .ns-ac .ac-row:focus-visible { background: #EAF0FB; outline: none; }
.ns-ac .ac-row small { color: var(--slate-600); font-size: 13px; }
.ns-ac .ac-none { padding: 11px 12px; font-size: 14px; color: var(--slate-600); }
.ns-ac .ac-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 11px; color: var(--slate-600); background: #F8FAFC; border-top: 1px solid #EEF1F6; }
.ns-ac .ac-done { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--blue, #1A1FB0); cursor: pointer; }
/* Report an issue: Type toggle */
.fb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.fb-who { display: flex; gap: 8px; align-items: flex-start; margin: -8px 0 16px; padding: 10px 12px; background: var(--white); border-radius: var(--r-in); box-shadow: var(--sh-sm); }
.fb-who .ic { margin-top: 3px; }
.fb-opt { position: relative; }
.fb-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-opt span { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 48px; padding: 8px 6px; white-space: nowrap; font-size: 15px; border: 2px solid var(--line, #d7dbe6); border-radius: 12px; font-weight: 700; color: var(--navy, #14245a); background: #fff; text-align: center; }
.fb-opt input:checked + span { border-color: var(--navy, #14245a); background: var(--navy, #14245a); color: #fff; }
.fb-opt input:focus-visible + span { outline: 3px solid var(--focus, #6b8cff); outline-offset: 2px; }
.field .req { color: var(--red, #d22); font-style: normal; }
.empty.fb-done svg { color: var(--green, #1a7f37); }
.empty.fb-done b { color: var(--navy, #14245a); font-size: 22px; }
/* Dispatch schedule: Publish / Generate PDF / Unpublish stack, 12px apart (hints sit 6px under their button) */
.dactions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.dactions > .btn { margin: 0; }
.dactions .dhint { margin: -6px 0 0; text-align: center; }

/* Bin labels print view: the labels previewed on screen at their real size (white cards on the page). */
.lbl-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 16px; overflow-x: auto; }
.lbl-preview .lbl { box-shadow: 0 1px 4px rgba(0,0,0,.2); border-radius: 2px; }
/* Dispatch: week picker (future weeks) */
.monthnav .wkp { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wklist { display: grid; gap: 8px; margin-top: 12px; }
.wklist .wkrow { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wklist .wkrow.cur { outline: 2px solid var(--navy); }
/* Dispatcher teams */
.teamrow .meta { white-space: normal; }
/* Structured home address (profile edit) */
fieldset.addr { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.addr legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
fieldset.addr + fieldset.addr { margin-top: 12px; } /* Work address under Home (members map, 2026-11-04) */
.addr2 { display: grid; grid-template-columns: 5.5rem 1fr; gap: 10px; }

/* Dispatch week grid, flipped (owner-approved 2026-11-01): days across, slots down. Roomy cells (min 128px) so names
   don't wrap awkwardly; on narrow screens the days scroll sideways and the slot column stays pinned. */
.fgrid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding: 2px 0 10px; }
.fgrid-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dgrid.fgrid { display: grid; grid-template-columns: 6rem repeat(7, minmax(8rem, 1fr)); gap: 8px; min-width: max-content; align-items: stretch; }
.fgrid .fr { display: contents; }
.fgrid .fh { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #E9EBF2; }
.fgrid .fh b { font-size: .9rem; color: #19285A; letter-spacing: .01em; }
.fgrid .fh small { font-size: .75rem; color: var(--muted, #5B6178); }
.fgrid .fh.today { background: #E3E7FF; box-shadow: inset 0 0 0 2px var(--blue); }
.fgrid .fh.today b { color: var(--blue); }
/* Sticky slot column + corner (v20, owner 2026-11-02 8:49 PM screenshot: the corner showed as a clipped box with a blue
   edge and the column looked cut off). They are painted in exactly the page colour (var(--paper), was #F3F4F8, a
   visible box on #F4F5F8), square (the corner inherited .fh's 10px radius, so its transparent rounded corners let the
   scrolled-under Today header's blue ring show through), and cover the 8px gaps (right border, shadow upward; the
   corner also the wrap's 2px top padding) so nothing scrolled under them peeks out. No blurred edge shadow: drawn
   per row it broke at every gap, the "cut-off" look.
   v20 (8:52 PM: "the sticky column is see-through, the day cards show through it"): the column and corner are a solid
   var(--paper) fill on their own layer above the days: the days are explicitly z-index 1, the sticky cells z-index 3
   with translateZ(0) (iOS WebKit composites the sideways scroller and could paint later siblings over a sticky cell),
   no opacity / filter / backdrop. The corner also drops .fh's container-type (size containment on a sticky cell is
   what let the Today header paint over it on iPhone). */
.fgrid .fh:not(.corner), .fgrid .dcell { position: relative; z-index: 1; }
.fgrid .fh.corner, .fgrid .fs { position: sticky; left: 0; z-index: 3; background: var(--paper); margin-right: -8px; border-right: 8px solid var(--paper); border-radius: 0;
  opacity: 1; transform: translateZ(0); -webkit-backface-visibility: hidden; }
.fgrid .fh.corner { box-shadow: 0 -2px 0 0 var(--paper); }
.fgrid .fs { display: flex; align-items: center; padding: 0 10px 0 2px; font-weight: 700; font-size: .88rem; color: #19285A; box-shadow: 0 -8px 0 0 var(--paper); }
.fgrid .dcell { min-height: 4.4rem; padding: 12px 10px; font-size: .9rem; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: none; }
.fgrid .dcell small { font-size: .74rem; }
@media (min-width: 1000px) { .wide-grid .dgrid.fgrid { grid-template-columns: 6rem repeat(7, minmax(7rem, 1fr)); min-width: 0; } }
.dcell .nm { white-space: nowrap; }
.dcell .dsave { display: block; margin-top: 2px; font-size: .68rem; font-weight: 650; letter-spacing: .02em; color: var(--slate-600, #5c6578); }
.fgrid .dprog, .fgrid .dwait { white-space: normal; overflow-wrap: normal; word-break: normal; }

/* ---------- Footer credit: "Powered by The Penguin Group" (every screen + privacy page) ---------- */
.foot .powered { gap: 8px; text-decoration: none; font-weight: 400; font-size: 12px; color: var(--slate-600); opacity: .85; }
.foot .powered img { height: 26px; width: auto; }
.foot .powered:hover { opacity: 1; color: var(--slate-600); }
.foot a.privacy { font-size: 12px; font-weight: 400; color: var(--slate-600); min-height: 32px; }
.foot a.privacy:hover { color: var(--navy); }
.foot .legal { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.foot a.terms { font-size: 12px; font-weight: 400; color: var(--slate-600); min-height: 32px; }
.foot a.terms:hover { color: var(--navy); }
.foot .legal .sep { font-size: 12px; color: var(--slate-600); }
.foot .powered:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hover (mouse / trackpad only; phones never get sticky hover) ---------- */
@media (hover: hover) {
  .action, .wcard, .night, .list.cols > .row { transition: transform var(--t1) var(--ease), box-shadow var(--t1) var(--ease), background var(--t1) var(--ease); }
  a.action:hover, button.action:hover { box-shadow: 0 0 0 2px var(--blue-bg), var(--sh-md); transform: translateY(-1px); }
  a.action.primary:hover { background: var(--navy-900); }
  a.wcard:hover { box-shadow: var(--sh-sm), var(--sh-lg); transform: translateY(-1px); }
  a.row:hover, button.row:hover, summary.row:hover, label.row.pick:hover { background: var(--paper); }
  .chip:hover { border-color: var(--slate-400); }
  .chip[aria-pressed="true"]:hover { border-color: var(--navy); }
  .btn.secondary:hover { background: var(--blue-bg); }
  .btn.quiet:hover { background: #D9DCE8; }
  .btn.ghost:hover { background: var(--blue-bg); }
  .btn.danger:hover { background: var(--danger-bg); }
  .hdr .iconbtn:hover { background: rgba(255,255,255,.14); }
  button.night:hover { box-shadow: 0 0 0 2px var(--blue-bg), var(--sh-md); }
  .dcell:hover { filter: brightness(.97); }
  .link:hover { text-decoration: underline; }
}

/* ---------- Desktop / web browser (900px+): side nav, wide content, centered dialogs ---------- */
.side { display: none; }
@media (min-width: 900px) {
  :root { --side-w: 248px; --content-w: 1160px; --gutter: 32px; }
  body.has-side { padding-left: var(--side-w); }
  body.has-side .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 35; background: var(--navy); color: var(--white);
    overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
  .side[hidden] { display: none !important; }
  .side .sbrand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: var(--white); text-decoration: none; }
  .side .sbrand .tile { background: var(--white); border-radius: 10px; padding: 6px 8px; flex: none; }
  .side .sbrand .tile img { height: 34px; width: auto; }
  .side .sbrand b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
  .side .sbrand small { display: block; font-size: 12px; opacity: .8; line-height: 1.3; }
  .side .sgroups { flex: 1; padding: 4px 10px 12px; }
  .side .sgroup + .sgroup { margin-top: 8px; }
  .side .sg { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; padding: 6px 10px 4px; }
  .side .sl { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 34px; padding: 5px 10px; border-radius: 10px; border: 0; background: none; text-align: left;
    color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; font-weight: 500; transition: background var(--t1) var(--ease); }
  .side .sl .ic { opacity: .85; }
  .side .sl:hover { background: rgba(255,255,255,.1); color: var(--white); }
  .side .sl[aria-current="page"] { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--red); }
  .side .sl[aria-current="page"] .ic { opacity: 1; color: var(--blue); }
  .side .sl:focus-visible { outline: 3px solid #9FA6FF; outline-offset: 0; }
  .side .sacct { border-top: 1px solid rgba(255,255,255,.14); padding: 12px 10px 16px; }
  .side .swho { padding: 2px 10px 8px; line-height: 1.3; }
  .side .swho b { display: block; font-size: 14px; }
  .side .swho small { display: block; font-size: 12px; opacity: .75; }

  /* Header + content share one centered column (sidebar or not). */
  .hdr { padding-left: max(var(--gutter), calc((100% - var(--content-w)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--content-w)) / 2 + var(--gutter))); }
  body.has-side .hdr .tile, body.has-side .hdr .brand-home, body.has-side .hdr .brand b, body.has-side .hdr .brand span { display: none; } /* the side nav carries the logo */
  html.app body.has-side { --hdr-h: 64px; }
  html.app body.has-side .hdr { left: var(--side-w); height: 64px; min-height: 64px; padding-top: 12px; padding-bottom: 12px;
    padding-left: max(var(--gutter), calc((100% - var(--side-w) - var(--content-w)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--side-w) - var(--content-w)) / 2 + var(--gutter))); }
  /* Desktop: Back lives in the left of the navy bar; do not also show #backrow (owner 2026-11-11). */
  body.has-side .hdr .hdr-back { display: inline-flex; flex: none; align-self: center; background: transparent; color: var(--white);
    border-color: rgba(255,255,255,.4); box-shadow: none; min-height: 40px; padding: 0 14px 0 6px; }
  @media (hover: hover) { body.has-side .hdr .hdr-back:hover { background: rgba(255,255,255,.12); } }
  body.has-side #backrow { display: none !important; }
  .backrow { max-width: var(--content-w); margin-inline: auto; padding: var(--s5) var(--gutter) 0; }
  body:not(.has-side) .backrow { max-width: 720px; }
  body.wide-grid .backrow { max-width: 1400px; }
  .backrow + main .screen > .pad { padding-top: var(--s4); }
  #main > .screen > .pad { max-width: var(--content-w); margin-inline: auto; padding: var(--s6) var(--gutter); }
  /* Calls and Dispatch (Beta) wrap their .pad in .dbx: same centered column as every other screen, so the content lines
     up with Back in the navy bar (owner 2026-11-13). An open call (.dsk-pad without the board) keeps its full width. */
  #main > .screen > .dbx > .pad:not(.dsk-pad), #main > .screen > .dbx > #dbx-screen > .pad:has(> .dsk-board), #main > .screen > .dbx > #dbx-screen > .pad:not(.dsk-pad) { max-width: var(--content-w); margin-inline: auto; padding: var(--s6) var(--gutter); }
  body:not(.has-side) #main > .screen > .pad { max-width: 720px; }
  .th h2 { font-size: 32px; }
  .th.greet h2 { font-size: 36px; }

  /* Forms are not stretched across the screen. */
  .pad > form.stack, .pad > form.stack-lg, .pad > .stack > form, #fb, .pad > .fb-who { max-width: 640px; }
  .pad .search, .pad > input.search, .pad #b > input.search, .pad > .input.search { max-width: 520px; }

  /* Home: actions in a row (four fit at 1280, equal height), widgets in a grid with equal height in each row. */
  /* Home supply actions: fill the content width (auto-fit, so 3 or 4 tiles share the row with no blank on the right). */
  .pad:has(> #widgets) > .actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: stretch; }
  .actions { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: stretch; }
  .actions > .action { height: 100%; box-sizing: border-box; }
  .actions > .grid2 { grid-column: 1 / -1; }
  .actions > .action .chev { display: none; }
  .actions > .action:has(.count) .chev, #coord > .action .chev { display: block; }
  #coord { grid-template-columns: 1fr; }
  #coord > .action { max-width: 420px; }
  #main .pad .btn.block { max-width: 440px; }
  .grid2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .widgets { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: stretch; gap: var(--s4); }
  .widgets > .wcard, .widgets > .w-stack { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .widgets > .w-stack { gap: var(--s4); }
  .widgets > .w-stack > .wcard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  /* Home Swap shift: 52px navy bar under the dispatch card, never a stretched circle. */
  .widgets > .w-stack .dbtns { margin: 0; flex: none; }
  .widgets > .w-stack .sw-btn { width: 100%; max-width: none; height: 52px; min-height: 52px; display: flex; margin: 0 !important; box-sizing: border-box; }
  .widgets > .rc-admin { grid-column: 1 / -1; }
  #w-rollCall, #w-rollCustom, #w-shiftConfirm { display: contents; }
  .widgets > .walert, #w-myAlerts { grid-column: 1 / -1; }

  /* Lists that are many people / items: cards across the width. */
  .list.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--s3); background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .list.cols > .row, .list.cols > details { border-top: 0; border-radius: 14px; box-shadow: var(--sh-sm), var(--sh-md); background: var(--white); overflow: hidden; }
  .list.cols > p, .list.cols > .empty { grid-column: 1 / -1; }
  .stack.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--s4); align-items: start; }
  .stack.cols > * + * { margin-top: 0; }
  .stack.cols > .empty { grid-column: 1 / -1; }
  .stats { max-width: 760px; }
  .cal { max-width: 820px; }

  /* Documents: two document cards per row inside each card. */
  .card.dcards { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); align-content: start; }
  .card.dcards > .dcard { align-content: start; }
  .card.dcards > .dcard + .dcard { border-top: 0; padding-top: 0; margin-top: 0; }
  .card.dcards > .dcard:nth-child(n+3) { border-top: 1px solid var(--mist); padding-top: var(--s4); margin-top: var(--s4); }

  /* Sticky action bar and toast sit over the content column, not under the side nav. */
  .bar { padding-left: max(var(--gutter), calc((100% - var(--content-w)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--content-w)) / 2 + var(--gutter))); justify-content: flex-end; }
  body.has-side .bar { left: var(--side-w); }
  .bar .btn.primary { flex: 0 1 auto; min-width: 260px; }
  .bar .sum { margin-right: auto; }
  .toast { left: 50%; right: auto; width: max-content; max-width: min(520px, calc(100vw - 48px)); transform: translate(-50%, 16px); }
  body.has-side .toast { left: calc(50% + var(--side-w) / 2); }
  .toast.on { transform: translate(-50%, 0); }
  body:has(#sheet.on) .toast { transform: translate(-50%, -16px); }
  body:has(#sheet.on) .toast.on { transform: translate(-50%, 0); }

  /* The bottom sheet becomes a centered dialog with a sane width. */
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100vw - 48px)); max-height: min(86dvh, 900px); border-radius: 20px;
    padding: var(--s5) var(--s6) var(--s5); transform: translate(-50%, calc(-50% + 24px)); opacity: 0; transition: transform var(--t2) var(--ease), opacity var(--t2) var(--ease); }
  body.has-side .sheet { left: calc(50% + var(--side-w) / 2); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet .sheet-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .sheet .sheet-actions > .btn.block { width: auto; flex: 1 1 200px; }
  .sheet .sheet-actions > p, .sheet .sheet-actions > .adm-note { flex-basis: 100%; }
  .sheet .sheet-actions > .adm-sec { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; }
  .sheet .sheet-actions > .adm-sec > .label.adm-only { flex-basis: 100%; }
  .sheet .sheet-actions > .adm-sec > .btn.block { width: auto; flex: 1 1 200px; }

  /* Sign-in: one centered card, brand panel beside the form. */
  .screen.flush > .login { max-width: 960px; min-height: 0; margin: 56px auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); }
  .login .top { display: flex; flex-direction: column; justify-content: center; padding: var(--s7) var(--s7) var(--s7) var(--s6); }
  .login form { padding: var(--s7) var(--s6); justify-content: center; }
  .login .top { clip-path: none; }
  .login .tile { align-self: flex-start; }
  .login form > div[style*="flex:1"] { flex: 0 0 0 !important; }

  /* Dispatch week grids: use the full content width (days across, slots down; sideways scroll when narrow). */
  body.wide-grid #main > .screen > .pad { max-width: 1400px; }
  .foot { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* ---------- Desktop page layouts (owner 2026-11-11): use the width; phone and 600-899 unchanged ---------- */
  /* Category chips wrap so full labels show (e.g. Infectious). */
  body.has-side .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

  /* Take supplies / Used on a call / Report a need: one Scan button + Search field on one row (not two Search controls). */
  body.has-side .pad:has(#t-search[aria-selected="true"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
  body.has-side .pad:has(#t-search[aria-selected="true"]) .seg { flex: none; width: 152px; max-width: 152px; grid-template-columns: 1fr; }
  body.has-side .pad:has(#t-search[aria-selected="true"]) .seg #t-search,
  body.has-side .pad:has(#t-search[aria-selected="true"]) .seg .thumb { display: none; }
  body.has-side .pad:has(#t-search[aria-selected="true"]) #panel { display: contents; }
  body.has-side .pad:has(#t-search[aria-selected="true"]) .search { flex: 1 1 280px; max-width: none !important; margin: 0; }
  body.has-side .pad:has(#t-search[aria-selected="true"]) #cats,
  body.has-side .pad:has(#t-search[aria-selected="true"]) #res { flex: 1 1 100%; width: 100%; }
  body.has-side .pad:has(#t-scan[aria-selected="true"]) .seg { max-width: 360px; }
  body.has-side .pad:has(#t-scan[aria-selected="true"]) .camslot { max-width: 520px; }

  /* Page actions: compact buttons aligned with the content, not 440px pills in a sea of white. */
  body.has-side #main .pad > .btn.block,
  body.has-side #main .pad > a.btn.block,
  body.has-side #main .pad > .btn.navy.block,
  body.has-side #main .pad #ed > .btn.block,
  body.has-side #main .pad #add > .btn.block,
  body.has-side #main .pad #add .btn.block,
  body.has-side #main .pad .dsk-tools .btn.block,
  body.has-side #main .pad .adm-sec > .btn.block,
  body.has-side #main .pad .dactions > .btn.block,
  body.has-side #main .pad .sw-btn,
  body.has-side #main .pad .v1-card > .btn.block,
  body.has-side #main .pad .card > .btn.block { width: auto; max-width: none; display: inline-flex; padding-inline: 18px; }
  body.has-side #main .pad .adm-sec { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 0; padding-top: 0; margin-top: 0; }
  body.has-side #main .pad .dsk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  body.has-side #main .pad .dsk-tools .btn { margin-bottom: 0 !important; }
  body.has-side #main .pad .dactions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  body.has-side #main .pad .dactions .dhint { text-align: left; margin: 0; flex: 1 1 200px; }
  body.has-side #main .pad .sw-btn { margin: 0 0 12px !important; }

  /* When the title is first, park Edit / Add / CEU tools on the same row (DOM order unchanged). */
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end;
  }
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > * { grid-column: 1 / -1; }
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > .th { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > #ed,
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > #add,
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > .dsk-tools,
  body.has-side #main > .screen > .pad:has(> .th:first-child):has(> #ed, > #add, > .dsk-tools, > a.btn.block) > a.btn.block {
    grid-column: 2; grid-row: 1; align-self: end; margin: 0; justify-self: end;
  }

  /* Important numbers: two columns of rows per section, not one stretched phone list. */
  body.has-side .nlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 16px; }
  body.has-side .nlist .row { border-radius: 0; }

  /* POI cards: type chip stays up top with the name; the address gets the full card width (no mid-word wrap against the chip). */
  body.has-side .list.cols > .poi-row {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name more" "addr addr";
    align-items: start; gap: 4px 12px;
  }
  body.has-side .poi-row .main { display: contents; }
  body.has-side .poi-row .poi-name { grid-area: name; }
  body.has-side .poi-row .meta { grid-area: addr; min-width: 0; }
  body.has-side .poi-row .poi-more { grid-area: more; align-self: start; }

  /* Night shift / schedule / classes: let the day grid use the content width. */
  body.has-side .cal { max-width: none; }
  body.has-side #main .pad .cls-card .btn.block { width: auto; display: inline-flex; }
  body.has-side #main .pad #ns-edit { width: auto; max-width: none; display: inline-flex; padding-inline: 18px; }

  /* Help guide: compact Back to Help, not a 440px pill. */
  body.has-side #main .pad #hgd > a.btn.block { width: auto; max-width: none; display: inline-flex; padding-inline: 18px; }

  /* Profile contact: two pairs of label/value on a wide canvas. */
  body.has-side .kv { grid-template-columns: 7.5rem minmax(0, 1fr) 7.5rem minmax(0, 1fr); max-width: 920px; column-gap: 24px; }
}


@media (min-width: 1200px) {
  :root { --side-w: 264px; --gutter: 40px; }
  .card.dcards { column-gap: var(--s7); }
}

/* Grouped profile menu (one card, rows split by hairlines) + the Admin-only Exclusions row and picker. */
.menu-group { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm); overflow: hidden; }
.menu-group.menu-sep { margin-top: var(--s4); }
/* "Admins only" (owner 2026-11-01): one small label directly above every Admin-only setting on a profile, so an Admin
   knows members don't see it. Same type as .label, in navy, with a small lock. .adm-sec groups Admin-only buttons in a
   sheet under that label, set off by a hairline; .adm-block is a section (the Exclusions row, the switches). */
.label.adm-only { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .06em; color: var(--navy); margin: 0 0 var(--s2); line-height: 1.3; }
.label.adm-only .ic { flex: none; color: var(--navy); opacity: .8; }
.adm-block { margin-top: var(--s5); }
/* The RMA approver setting: a profile menu row with a 24px checkbox on the right; the whole row taps. */
label.rma-row { cursor: pointer; }
.rma-ck { width: 24px; height: 24px; margin: 0 4px; accent-color: var(--success); cursor: pointer; flex: none; }
.adm-sec { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--mist); }
.adm-sec > .label.adm-only { margin-bottom: 0; }
.menu-row { display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: 10px 16px; color: inherit; text-decoration: none; }
.menu-row + .menu-row { border-top: 1px solid var(--mist); }
html:not(.ios-app) .menu-row:active, .menu-row.is-pressed { background: var(--blue-bg); }
.menu-row .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); flex: none; }
.menu-row .t { flex: 1; min-width: 0; }
.menu-row .t b { display: block; font-weight: 700; font-size: 16px; color: var(--navy); line-height: 1.3; }
.menu-row .t span { display: block; font-size: 13px; color: var(--slate-600); line-height: 1.4; }
.menu-row .chev { color: var(--slate-400); flex: none; }
@media (hover: hover) { .menu-row:hover { background: var(--blue-bg); } }
.excl-item { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-sm); padding: 4px 0 12px; }
.excl-item .switch-row { box-shadow: none; background: transparent; }
.excl-item .excl-desc, .excl-item .excl-note { margin: 0 14px 8px; }
.excl-item .excl-note { color: #8A4D06; }
.excl-item [data-reset] { margin: 0 8px; }
.excl-item [data-reset][hidden] { display: none; }

/* Request RMA approval (js/rma.js, js/callconfirm.js): red button at the very top of a responder's Home; big rows. */
.action.rma { background: var(--red); color: var(--white); min-height: 76px; margin-bottom: var(--s4); box-shadow: var(--sh-md); }
.action.rma .t b { color: var(--white); font-size: 19px; } .action.rma .t span { color: rgba(255,255,255,.88); }
.action.rma .ico { background: rgba(255,255,255,.16); color: var(--white); }
.action.rma .chev { color: rgba(255,255,255,.8); }
html:not(.ios-app) .action.rma:active, .action.rma.is-pressed { background: var(--red-600); }
.rma-title, .cc-title { font-size: 22px; font-weight: 800; color: var(--navy); margin: 4px 0 2px; line-height: 1.25; }
.rma-lead { margin: 0 0 12px; }
.rma-list { border-radius: var(--r-card); overflow: hidden; }
.rma-list .sk-row { height: 76px; margin-bottom: 2px; border-radius: 0; }
.rma-row { min-height: 76px; cursor: pointer; }
.rma-row .name { font-size: 17px; }
.rma-row.off { cursor: default; }
.rma-row.off .av { opacity: .7; }
.rma-call { width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--success-bg); color: var(--success); display: grid; place-items: center; flex: none; }
.rma-empty svg { color: var(--slate-400); }
.cc-sub { margin: 0; font-size: 15px; }
.cc-btns { display: grid; gap: var(--s3); margin-top: var(--s5); }
.cc-btns .btn { min-height: 56px; font-size: 18px; }
.btn.cc-call { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--success); border-color: var(--success); }
.btn.cc-call[disabled] { opacity: .45; }
@media (min-width: 900px) { .action.rma { max-width: 560px; } }

/* On dispatch today (Home card, js/dispatchtoday.js): names are plain text (no click-to-call). */
.dcall-rows b { text-align: right; }
div.wcard.dcall-card { cursor: default; }
/* Read-only widget (night shift for non-Admins, owner 2026-11-04 v3): no pointer, no pressed / hover look. */
div.wcard.ro { cursor: default; }
.nsday-units { font-size: 16px; }
/* v19: the button under the Home dispatch card (js/app.js dispBtns): Swap shift (filled navy), full width, 52px tall,
   the card's 16px gap below. (v20: no "This week's schedule" button; the card opens the Dispatch schedule.) */
.btn.navy { background: var(--navy); color: var(--white); box-shadow: var(--sh-md); }
.btn.navy:hover { background: var(--blue); }
.dbtns { display: grid; gap: var(--s2); margin: calc(-1 * var(--s1, 4px)) 0 var(--s4); }
.dbtns .btn { text-decoration: none; font-weight: 700; font-size: 16px; }
.widgets .dbtns { margin: 0; }
/* Dispatch card + Swap shift stay one unit (phone and desktop). Gap matches the widgets grid. */
.w-stack { display: flex; flex-direction: column; gap: var(--s4); }
a.wweek { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; padding: 8px 4px; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; }
a.wcard.dcall-card { cursor: pointer; }
/* Dispatch schedule: "Confirm day" in the day's header (Dispatch Admin / Admin; redesigned 2026-11-02, desktop pass v13).
   A navy pill the full width of the header cell, 36px tall: check-circle icon, the label and the count INLINE (a white
   count chip). Same on all 7 columns; the header cell is a size container, so a narrow column (1280 desktop, ~90px)
   drops " day" (under 140px) and then the icon (under 124px) instead of cramping the text. "All confirmed" chip when nothing is left. */
.fgrid .fh { container-type: inline-size; min-width: 0; }
.fgrid .fh.corner { container-type: normal; }
.fgrid .fh:has(.dcday, .dcdone) { justify-content: flex-start; padding: 8px 6px 8px; }
.fgrid .fh .dcday { display: flex; align-items: center; justify-content: center; gap: 5px; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 0 6px; min-height: 36px;
  font-family: inherit; font-size: .72rem; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap; color: #fff; background: var(--navy, #19285A); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(25, 40, 90, .25); -webkit-tap-highlight-color: transparent; }
.fgrid .fh .dcday:hover { background: var(--blue, #1C22AA); }
html:not(.ios-app) .fgrid .fh .dcday:active, .fgrid .fh .dcday.is-pressed { transform: scale(.97); }
.fgrid .fh .dcday:focus-visible { outline: 2px solid var(--blue, #1C22AA); outline-offset: 2px; }
.fgrid .fh .dcday svg { flex: none; }
.fgrid .fh .dcday .dcl { min-width: 0; }
.fgrid .fh .dcday .dcn { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: var(--navy, #19285A); background: #fff; }
@container (max-width: 139px) { .fgrid .fh .dcday .dcd { display: none; } }
@container (max-width: 123px) { .fgrid .fh .dcday svg { display: none; } .fgrid .fh .dcday { gap: 6px; } }
.fgrid .fh .dcdone { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 8px; min-height: 36px; padding: 0 4px; box-sizing: border-box; font-size: .72rem; font-weight: 600; color: #1F7A4D; white-space: nowrap; overflow: hidden; }
@container (max-width: 123px) { .fgrid .fh .dcdone svg { display: none; } }
/* Names stay inside their cell on the week grid (never over the next day): each name on its own line(s), wrapping at
   spaces to at most two lines; a single word wider than the cell breaks only as a last resort; past two lines "…".
   The full name is the span's title (tooltip) and the cell's aria-label. */
.fgrid .dcell { min-width: 0; overflow: hidden; padding-left: 6px; padding-right: 6px; }
.fgrid .dcell .nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-width: 100%; overflow: hidden;
  white-space: normal; overflow-wrap: anywhere; word-break: normal; hyphens: manual; }

/* Swap shift (owner 2026-11-02): the steps sheet (js/dispatch.js openSwap) and the card at the top of Home. */
.sw-step { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 2px; }
.sw-list { display: grid; gap: var(--s2, 8px); margin-bottom: var(--s3, 12px); }
.sw-row small { font-weight: 600; }
/* Notification cards (js/notice.js tileCard; owner 2026-11-02 v17, the pre-v15 Home card look): the .wcard with its icon
   tile, bold title and count badge. Tones colour the whole border: warn = gold (waiting on you), crit = red, good = green. */
.tcard { margin-bottom: 16px; border-left: 0; }
.widgets .tcard { margin-bottom: 0; }
.tcard.warn { border: 2px solid #F2B84B; }
.tcard.crit { border: 2px solid #EBA3A3; }
.tcard.crit .wh .wi { background: var(--danger-bg); color: var(--red-600); }
.tcard.warn .wh .wi { background: var(--warning-bg); color: #8A4D06; }
.tcard.good { border: 2px solid #8FD3B0; }
.tcard.good .wh .wi { background: var(--success-bg); color: var(--success); }
.tcard .wh .pill { margin-left: auto; }
.tcard .wh .iconbtn { flex: none; margin: -10px -10px -10px 0; color: var(--slate-600); }
.tcard .tc-note { margin: 6px 0 10px; line-height: 1.45; }
.tcard .tc-note:last-child { margin-bottom: 0; }
.tcard .tc-lines { line-height: 1.5; font-size: 15px; }
.tcard .tc-lines small, .sw-line small { color: var(--slate-600); }
.sw-line .sw-sh { white-space: nowrap; }
.sheet .tcard { box-shadow: none; margin: 12px 0; }
.sw-item + .sw-item { border-top: 1px solid #E3E7EE; margin-top: 12px; padding-top: 12px; }
.sw-line { line-height: 1.5; font-size: 15px; }

/* ---------- Notification bell (owner 2026-11-02; js/bell.js) ----------
   Home header: the bell sits left of the account button, both 44px (Apple's minimum), in one group so the 116px header,
   the 60px logo tile and "Hatzolah of Passaic/Clifton" keep their room on a 390px iPhone. Red count badge on the bell. */
.hdr .hbtns { display: flex; align-items: center; flex: none; gap: 0; }
.hdr .hbtns .iconbtn { min-width: 44px; min-height: 44px; }
/* Phones: 8px between the header's parts (was 12px) so "Hatzolah of Passaic/Clifton" keeps two full lines next to the bell. */
@media (max-width: 599.98px) { html.app .hdr.tall:has(.hbtns) { gap: 8px; } }
.bellbtn { position: relative; }
.bellbtn .bdg { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--navy); pointer-events: none; }
.bellbtn .bdg[hidden] { display: none; }
/* The sheet */
.bsheet .bhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bi { display: flex; align-items: flex-start; gap: 4px; border: 1.5px solid var(--mist); border-radius: 14px; background: var(--white); }
.bi.new { border-color: #C9CEF5; background: #F4F5FF; }
.bi .bgo { flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 0; background: transparent; color: inherit; padding: 12px 0 12px 12px; font: inherit; cursor: pointer; }
.bi .bico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.bi .bt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bi .bt b { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.bi.new .bt b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }
.bi .btx { font-size: 14px; line-height: 1.35; color: #3B4466; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bi time { font-size: 12px; color: #6B7393; margin-top: 2px; }
.bi .bx { flex: none; color: #6B7393; margin: 2px 2px 0 0; min-width: 44px; min-height: 44px; }
.bempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 16px 28px; color: #6B7393; }
.bempty .ic { color: var(--navy); opacity: .35; margin-bottom: 6px; }
.bempty b { color: var(--navy); font-size: 17px; }
.bempty span { font-size: 14px; }
@media (min-width: 900px) { .bsheet .bgo:hover { background: #F7F8FC; border-radius: 12px 0 0 12px; } }

/* ---------- Bottom tab bar (#tabbar: js/core.js tabBar(), tabs per role in js/tabs.js; owner 2026-11-03) ----------
   v23 (owner 2026-11-03 iPhone: "The bottom of the g is cut off", "The bottom bar can be much smaller", then the iOS 26
   "Liquid Glass" reference): a FLOATING capsule inset 14px from the screen edges, above the home indicator, in a
   near-opaque navy tint (light blur + saturate behind it; solid navy where backdrop-filter is unsupported).
   v24 (owner 2026-11-03 "flat Material, not 3D"): no border, rim, bevel or shadow on the bar or the active state. This is the
   Android / browser bar (owner 2026-11-03: iOS gets a native UITabBar later), so the blur stays modest (16px) and the
   tint near-opaque (86%) for Android GPU cost. Compact: 56px
   capsule (22px icons, 10.5px labels), 48px tabs. The current tab: a flat Material 3 indicator pill (white 18% tint, no
   gradient / border / shadow) behind its icon + full-white icon and label; the others 70% white.
   LABEL SPACING (owner 2026-11-03 "the dir is closer ... the ry is closer"): with font hinting on, Chromium rounded
   every glyph advance of the 10.5px labels to a whole CSS px (e.g. Directory's "e" 6.5 -> 8, "t" 4.3 -> 6, "i" 3.1 -> 3),
   so the tracking went tight / loose / tight; and weight 500 is not a shipped face (it fell back to 400). Labels now
   use text-rendering: geometricPrecision (unhinted, fractional advances), letter-spacing 0, and only shipped weights
   (400 / 600 active), with font-synthesis: none so a missing weight can never be faux-bolded. Variant B (.tabbar.tb-icons): icons only (labels stay for screen readers).
   SAFE AREA: consumes var(--safe-b) ONCE, in its bottom offset (6px + the inset still to apply): in browsers and the
   contentInset "never" app the capsule floats 6px above the home-indicator inset; with the current binary's native
   inset (contentInset "automatic", --safe-b 0) the web view already ends above the home indicator, so 6px above that.
   shell.js stays the only place that sets --safe-b. --bar-h (js/core.js syncBarH) = viewport bottom - capsule top, so
   the footer / last item / toasts always clear it.
   LABELS (the clipped "g"): the label's line box (10.5px/13px) is shorter than Poppins' glyph box (ascent+descent 1.4em
   = 14.7px), and overflow: hidden (needed for the ellipsis) clipped to that line box, so descenders were cut. The label
   now carries 2px of vertical padding INSIDE its clip box (cancelled by a -2px margin, so the layout stays compact):
   the clip box is 17px, taller than the font's whole glyph box, while long labels still truncate on one line.
   Hidden: with a screen's own action bar (#bar, js/core.js bar()), with the keyboard up, on desktop (side nav). */
.tabbar { position: fixed; left: 14px; right: 14px; bottom: calc(6px + var(--safe-b)); z-index: 30; display: flex; gap: 8px; align-items: stretch;
  border: 0; box-shadow: none; font-synthesis: none; }
.tabbar .tbpill { flex: 1 1 auto; min-width: 0; display: flex; padding: 3px; border-radius: 999px;
  background: rgba(25,40,90,.86); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.tabbar .tbcirc { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(25,40,90,.86); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar .tbpill, .tabbar .tbcirc { background: var(--navy); } }
.tabbar[hidden] { display: none; }
html.app .tabbar { touch-action: none; }
html.fld .tabbar, html.kb-open .tabbar { display: none; }
.tabbar .tab { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 0 2px; margin: 0; border: 0; border-radius: 999px; background: none; text-decoration: none; color: rgba(255,255,255,.7);
  font: 400 10.5px/13px Poppins, system-ui, -apple-system, sans-serif; letter-spacing: 0; font-kerning: normal; text-rendering: geometricPrecision;
  cursor: pointer; transition: color var(--t1) var(--ease); }
.tabbar .ti { width: 52px; height: 26px; border-radius: 999px; display: grid; place-items: center; transition: background var(--t1) var(--ease); }
.tabbar .ti > svg, .tabbar .tbdg > svg.ic { width: 22px; height: 22px; }
.tabbar .tl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 2px; margin: -2px 0; }
.tabbar .tab[aria-current="page"] { color: var(--white); font-weight: 600; }
.tabbar .tab[aria-current="page"] .ti { background: rgba(255,255,255,.18); }
/* iOS-style web bar (owner 2026-11-12, approved layout; js/core.js tabBar, js/tabs.js barParts): the #tabbar (above) is
   now only the floating row holding two pieces of the same navy glass: the PILL (.tbpill, the person's tabs, as before)
   and, 8px to its right, a CIRCLE (.tbcirc) the same height (54px) holding the start screen. The start screen's icon is tinted HOPC red #E01F26
   ("the icon itself is red and that's it": no red disc, no red circle); on its own screen it gets the same 18% white
   indicator as any current tab. Home as the start screen: Home's normal colors (70% white; current: white on the
   indicator). The circle's label is kept for screen readers only. iOS build 17 draws this same pill and circle
   natively (red icon only). Android HopcTabBar stays the single bar (start screen in the middle, tint: 'red'). */
.tabbar .tab.tcirc { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; position: relative; }
.tabbar .tab.tcirc .ti { width: 44px; height: 44px; border-radius: 50%; }
.tabbar .tab.tcirc .ti > svg, .tabbar .tab.tcirc .tbdg > svg.ic { width: 24px; height: 24px; }
.tabbar .tab.tcirc .tl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabbar .tab.tcirc.tstart, .tabbar .tab.tcirc.tstart[aria-current="page"] { color: #E01F26; }
/* My profile > Bottom bar > "Your bar" preview (js/v1.js previewHtml): the same pill + circle, small. */
#tb-preview { display: flex; gap: 8px; align-items: center; background: #EEF1F7; }
#tb-preview .pv-pill { flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-around; gap: 2px; padding: 6px 4px; border-radius: 999px; background: rgb(25,40,90); color: rgba(255,255,255,.8); }
#tb-preview .pv-t { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
#tb-preview .pv-t small { font-size: 9.5px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#tb-preview .pv-circ { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(25,40,90); color: rgba(255,255,255,.8); }
#tb-preview .pv-circ.red { color: #E01F26; }
.tabbar.tb-icons .tab { min-height: 48px; }
.tabbar.tb-icons .ti { width: 60px; height: 34px; }
.tabbar.tb-icons .ti > svg, .tabbar.tb-icons .tbdg > svg.ic { width: 25px; height: 25px; }
.tabbar.tb-icons .tl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.ios-app) .tabbar .tab:active, .tabbar .tab.is-pressed { background: rgba(255,255,255,.10); }
.tabbar .tab:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }
.tbdg { position: relative; display: inline-grid; }
.tbdg .tstar { position: absolute; right: -6px; bottom: -4px; width: 13px; height: 13px; color: #FFC93C;
  filter: drop-shadow(0 0 1.5px var(--navy)) drop-shadow(0 0 1.5px var(--navy)); }
@media (min-width: 600px) and (max-width: 899.98px) { .tabbar { left: max(14px, calc(50% - 260px)); right: max(14px, calc(50% - 260px)); } }
@media (min-width: 900px) { .tabbar { display: none !important; } }
/* v25: app binaries with the HopcTabBar plugin draw the bar natively (js/core.js tabBar -> js/nativetabs.js); --bar-h is
   then var(--native-tab-h) (set by native + its layout event), so the footer / toasts clear the native bar. */
html.native-tabs .tabbar { display: none !important; }
/* Home = the header logo / "HOPC Mobile" title (v22); the page name in h1 is not a link (owner 2026-11-11). */
.hdr a.tile { display: block; color: inherit; }
.hdr .brand-home { color: inherit; text-decoration: none; cursor: pointer; min-width: 0; }
.hdr .hdr-back { display: none; }
/* Menu sheet (the last tab). */
.mlist { margin: 0 -4px; }
.mlist .mg { font: 700 11px/1 Poppins, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); margin: 18px 4px 6px; }
.mlist .ml { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 8px; border: 0; background: none; border-radius: 12px;
  color: var(--ink); font: 600 15px Poppins, system-ui, sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.mlist .ml .mi { width: 36px; height: 36px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--navy); flex: none; }
.mlist .ml[aria-current="page"] { background: var(--blue-bg); }
html:not(.ios-app) .mlist .ml:active, .mlist .ml.is-pressed { background: var(--blue-bg); }
.mlist .mwho { display: flex; gap: 12px; align-items: center; padding: 4px 8px; }
.mlist .mwho b { display: block; color: var(--navy); font: 700 16px Poppins, system-ui, sans-serif; }
.mlist .mwho small { color: var(--slate-600); font-size: 13px; }
.mlist .mav { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 15px Poppins, system-ui, sans-serif; flex: none; }

/* ---------- Important numbers + Dispatch manual (js/numbers.js, js/manual.js; owner 2026-11-03) ---------- */
.callpill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--blue-bg); color: var(--navy);
  font: 700 13px Poppins, system-ui, sans-serif; text-decoration: none; flex: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.grp { margin: 20px 0 8px; }
.grp:first-of-type { margin-top: 4px; }
a.row.call { text-decoration: none; color: inherit; }
.toc .row { width: 100%; text-align: left; font: inherit; border: 0; background: var(--white); }
.toc .n { width: 32px; height: 32px; border-radius: 10px; background: var(--paper); color: var(--navy); display: grid; place-items: center; font: 700 13px Poppins, system-ui, sans-serif; flex: none; margin-right: 12px; }
.toc .chev { color: var(--slate-400); flex: none; }
.man { font: 400 17px/1.62 Poppins, system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.man h2 { font: 800 24px/1.2 Poppins, system-ui, sans-serif; color: var(--navy); margin: 4px 0 14px; }
.man h3 { font: 700 13px/1.3 Poppins, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin: 26px 0 6px; }
.man p { margin: 0 0 14px; }
.man ol, .man ul { margin: 0 0 16px; padding-left: 24px; }
.man li { margin: 0 0 8px; }
.man li::marker { color: var(--navy); font-weight: 700; }
.man li ul { margin: 6px 0 0; padding-left: 20px; list-style: circle; }
.man li ul li { margin-bottom: 4px; font-size: 16px; }
.man .callout { background: var(--blue-bg); border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 14px; font-weight: 600; color: var(--navy); margin: 0 0 16px; }
.man a.tel { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.man mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.secnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.secnav .btn { flex: 1 1 0; min-width: 0; }
.secnav .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.mtb { display: flex; gap: 4px; padding: 6px; background: var(--paper); border: 1px solid var(--mist); border-bottom: 0; border-radius: 12px 12px 0 0; }
.mtb button { width: 40px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.mtb button:focus-visible { outline: 2px solid var(--blue); }
html:not(.ios-app) .mtb button:active, .mtb button.is-pressed { background: var(--white); }
.mtb .sep { width: 1px; background: var(--mist); margin: 4px; }
.med { border: 1px solid var(--mist); border-radius: 0 0 12px 12px; padding: 12px 14px; background: var(--white); font-size: 16px; min-height: 240px; outline: none; }
.med:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.vh .row { align-items: center; }
.vh .row .main .meta { white-space: normal; }
.srow { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; background: var(--white); border-bottom: 1px solid var(--mist); }
.srow:last-child { border-bottom: 0; }
.srow .t { flex: 1; font: 600 15px Poppins, system-ui, sans-serif; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .ib { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--paper); color: var(--navy); display: grid; place-items: center; flex: none; cursor: pointer; }
.srow .ib:disabled { opacity: .35; }
.srow .ib.del { color: #B42318; background: #FDECEC; }
.nrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px; border: 1px solid var(--mist); border-radius: 12px; background: var(--white); margin-bottom: 10px; }
.nrow .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nrow .acts { display: flex; gap: 6px; justify-content: flex-end; }
/* Text / WhatsApp per number (owner 2026-11-03 v3) as icon-only circles (owner 2026-11-04): WhatsApp, Text, Call on the
   right of each record, all the Call circle (44px round, blue-bg / navy); the record height is the same with 1, 2 or 3
   circles (Text / WhatsApp are laid over the record, which reserves room for them); long names / notes ellipsize. */
.callpill.circ { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
.nlist a.row.call.x1 > .circ { margin-left: 52px; }
.nlist a.row.call.x2 > .circ { margin-left: 104px; }
.nlist .row .name, .nlist .row .meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx { position: relative; }
.nacts { position: absolute; top: 50%; right: calc(var(--s4) + 52px); transform: translateY(-50%); display: flex; gap: 8px; }
.nrow .nflags { display: grid; gap: 6px; }
.nrow .nflags .switch-row { box-shadow: none; border: 1px solid var(--mist); padding: 8px 12px; }
/* Bus / medic truck buttons: the ambulance cutout (owner 2026-11-03) instead of the line icon. */
.bus-img { display: block; width: 100%; height: 72px; object-fit: contain; }
.mini .bus-img { height: 52px; margin: -4px 0 -2px; object-position: left center; }
.bus-thumb { width: 56px; height: 40px; object-fit: contain; flex: none; }
/* Fleet Service History bar (owner 2026-11-04): green = in service, red = each outage (js/fleet.js historyDashHtml). */
.fh-bar .fh-seg { position: absolute; top: 0; bottom: 0; background: var(--red-600, #b00020); }
.fh-del { color: var(--red-600, #b00020); }
/* "Use my current location" (owner 2026-11-04): the suggested address just arrived; a brief ring + tint on the field so
   the change is noticed (js/geo.js showSuggested; never focus(), no keyboard). Reduced motion: a still ring, same time. */
@keyframes addr-in { 0%, 35% { background: var(--blue-bg); box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: 0 0 0 0 rgba(26, 31, 176, 0); } }
.input.addr-in { animation: addr-in 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { .input.addr-in { animation: none; box-shadow: 0 0 0 3px var(--blue); } }
/* Busy button (dispatch "Set back to default"): a small ring, no overlay. */
.bspin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: bspin .8s linear infinite; vertical-align: -3px; }
@keyframes bspin { to { transform: rotate(360deg); } }
.btn.busy[disabled] { opacity: .85; }
/* Places of Interest (owner 2026-11-07): the address is a tap-to-navigate link everywhere; the name opens the details. */
.addr-link { display: inline-flex; align-items: flex-start; gap: 4px; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.addr-link .ic { flex: none; margin-top: 2px; }
.poi-row { cursor: default; }
.poi-row .poi-name { all: unset; cursor: pointer; display: block; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); }
.poi-row .poi-name:focus-visible, .poi-row .poi-more:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.poi-row .meta .addr-link { font-size: 14px; }
.poi-row .poi-more { all: unset; cursor: pointer; display: flex; align-items: center; gap: 4px; flex: none; min-height: 44px; }
.poi-row .poi-more .chev { color: var(--slate-400); }
.be-town { display: grid; grid-template-columns: minmax(0, 1fr) 72px 104px; gap: 8px; margin-top: 12px; }
/* Past versions of a document (owner 2026-11-08, js/v1.js pastSheet): a small preview, then the dates. */
.past-row { align-items: center; gap: 12px; }
.past-file { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--slate-100, #eef1f6); display: flex; align-items: center; justify-content: center; color: var(--slate-500, #64748b); }
.past-file img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sign-in security (js/signin.js, owner 2026-11-09) */
.si .stack { gap: var(--s3); }
.si #b > .btn + .btn, .si #b > .btn { margin-top: var(--s3); }
.si .note { margin-top: var(--s4); }
.si-lead { margin: 0 0 var(--s4); color: var(--slate-700, #334155); font-size: 15px; line-height: 1.45; }
.si-m { margin: 0 0 var(--s4); padding: var(--s4); }
.si-m.off { border-style: dashed; }
.si-m-top { display: flex; gap: 14px; align-items: flex-start; }
.si-m-txt { min-width: 0; flex: 1; }
.si-m-txt p { margin: 6px 0 0; }
.si-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.si-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--slate-100, #f1f5f9); color: var(--slate-700, #334155); }
.si-badge.ok { background: #e7f6ec; color: #166534; }
.si-badge.off { background: var(--slate-100, #f1f5f9); color: var(--slate-600); }
.si-m-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--slate-200); }
.si-m-acts .btn { min-height: 44px; flex: 1 1 auto; }
.si-m-acts .si-rm { color: var(--red, #E01F26); flex: 0 0 auto; }
.si-now { display: flex; gap: 14px; align-items: flex-start; }
.si-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--slate-50, #f8fafc); color: var(--navy); }
.si-k { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-600); }
.si-v { font-size: 18px; font-weight: 800; color: var(--navy); margin: 2px 0; }
.si-step { margin: 0; font-size: 13px; font-weight: 700; color: var(--slate-600); }
.si-add { display: flex; flex-direction: column; gap: 8px; }
.si-add .btn { min-height: 50px; }
.si-key { background: var(--paper, #fff); border: 1.5px dashed var(--slate-400); border-radius: var(--r-card); padding: var(--s4); text-align: center; }
.si-key code { display: block; white-space: pre; font: 700 19px/1.5 ui-monospace, Menlo, monospace; color: var(--navy); letter-spacing: .06em; margin: var(--s2) 0; user-select: all; -webkit-user-select: all; }
.si-qr summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue, #1A1FB0); min-height: 44px; display: flex; align-items: center; }
.si-qr #qr { display: flex; justify-content: center; padding: 12px; background: #fff; }
.si-qr #qr svg { width: 168px; height: auto; }
.si-code { font: 700 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center; }
.si-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: var(--s3) 0; }
.si-codes code { font: 600 16px/1.4 ui-monospace, Menlo, monospace; color: var(--navy); user-select: all; -webkit-user-select: all; }

/* Admin delete of an upload (owner 2026-11-09) */
.btn.quiet.doc-del, .doc-del { color: var(--red-600, #c81e1e); }
.del-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--slate-200); border-radius: 12px; }
.del-th { flex: 0 0 56px; height: 56px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--slate-50, #f8fafc); color: var(--navy); }
.del-th img { width: 100%; height: 100%; object-fit: cover; }
.del-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dispatch slot editor (owner 2026-11-13): a team is one entry; the add-a-dispatcher list sits under its box with a
   fixed height, so the sheet doesn't grow and shrink while typing. */
.dentry .name { display: flex; align-items: center; gap: 6px; }
.dpl { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; border: 1.5px solid var(--mist); border-radius: 12px; }
.dpl .row.on { background: #EAF0FB; }
/* Needs verification (owner 2026-11-13): on a phone the buttons go under the text, so the name and the details use the
   full width instead of a narrow column beside the buttons. Wider screens keep them on the right. */
.row.vq { flex-wrap: wrap; row-gap: 10px; }
.row.vq > .main { flex: 1 1 260px; min-width: 0; }
.row.vq .vq-acts { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 599px) { .row.vq .vq-acts { flex: 1 1 100%; } }

/* Shared member picker (js/unitpick.js, owner 2026-11-14): one box; a fixed-height list floats over the form under it,
   so nothing below ever moves; red Medic tag on the right for ALS members. */
.upk { position: relative; }
.upk[hidden] { display: none; }
.upk-ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; margin-top: 6px; display: flex; flex-direction: column; height: 240px; max-height: 240px; overflow: hidden;
  border: 1.5px solid var(--mist); border-radius: 12px; background: #fff; box-shadow: var(--sh-md); }
.upk-ac[hidden] { display: none; }
.upk-ac .ac-list, .ns-ac .ac-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.upk-ac .ac-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid #EEF1F6; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 44px; }
.upk-ac .ac-row:first-child { border-top: 0; }
.upk-ac .ac-row.on, .upk-ac .ac-row:hover, .upk-ac .ac-row:focus-visible { background: #EAF0FB; outline: none; }
.upk-ac .ac-row small { color: var(--slate-600); font-size: 13px; }
.upk-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upk-ac .ac-none { padding: 11px 12px; font-size: 14px; color: var(--slate-600); }
.upk-ac .ac-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 11px; color: var(--slate-600); background: #F8FAFC; border-top: 1px solid #EEF1F6; }
.upk-ac .ac-done { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--blue, #1A1FB0); cursor: pointer; }
/* The red Medic tag, on every member list (pickers, chips, rows). */
.tagm { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--red-600, #C21118); background: #FDECEC; border-radius: 999px; padding: 2px 8px; line-height: 1.4; }
.pk .tagm, .ns-picked .tagm { margin-left: 2px; background: #fff; }
/* While a field has focus the bottom bar hides; the footer keeps its space (js/shell.js --bar-h-hold), so the page
   doesn't get shorter under the field and nothing drops (owner 2026-11-14). */
html.fld .foot { padding-bottom: calc(max(var(--bar-h-hold, var(--bar-h)), var(--safe-b)) + var(--s4)); }

/* R5 (owner 2026-11-14): ⋯ (More) on the Back row, opposite Back (phone); in the navy bar on desktop only. */
.backrow-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.backrow-in > [data-more-area] { color: var(--navy); min-width: 44px; min-height: 44px; }
.hdr .hbtns.more-desk { display: none; }
@media (min-width: 900px) { body.has-side .hdr .hbtns.more-desk { display: flex; } }

/* Night shift changes report (owner 2026-11-14). */
.nsr-trend { display: flex; align-items: flex-end; gap: 8px; height: 140px; overflow-x: auto; padding-bottom: 20px; }
.nsr-col { flex: 0 0 34px; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 2px; }
.nsr-col .xs { grid-column: 1 / -1; text-align: center; white-space: nowrap; }
.nsr-bar { display: block; min-height: 2px; border-radius: 4px 4px 0 0; }
.nsr-bar.c, .nsr-key.c { background: var(--red, #E01F26); } .nsr-bar.p, .nsr-key.p { background: var(--blue, #1A1FB0); }
.nsr-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
/* PCR analytics (js/pcrstats.js, owner 2026-11-15): one bar per reminder count. */
.pcr-bar { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 10px; margin: 6px 0; font-size: 15px; }
.pcr-t { height: 12px; border-radius: 6px; background: var(--paper, #F2F3F7); overflow: hidden; }
.pcr-t i { display: block; height: 100%; border-radius: 6px; min-width: 2px; }
.pcr-t i.b0 { background: #1E8E5A; } .pcr-t i.b1 { background: var(--blue, #1A1FB0); } .pcr-t i.b2 { background: var(--red, #E01F26); }
.pcr-n { white-space: nowrap; font-size: 14px; }
