/* Top app bar (2026-10-25, every theme). The page header — title, search, the "Totals cover… / Page info" row — now scrolls away with
   the page. Only the navigation row (.hdr-actions: the page's shortcut slot, ⋯, the nav pill, +) stays: once it reaches the top of the
   window page-topbar.js adds .tb-docked to the header and the row pins inside a slim, full-width frosted bar. The SAME elements are
   pinned, so every button keeps its own handler. Where the menu is a drawer (phones, the Waiting Time page) the ☰ button pins too.
   The bar is the header's own ::before (fixed, z 1 inside the header's z 950 layer), so the scrolling title and search pass under it
   and the pinned buttons (z 2) sit on top of it. */
#appShell .page-hdr{position:relative;top:auto}
/* Dashboard: a tighter gap under the header (padding 14 → 6, margin 18 → 8). Added by ANOTHER session on 2026-10-26 00:59 at Taran's
   request "across all seven themes" (DASHBOARD-GAP-2026-10-26.md) — the one approved visual change to the five originals. The originals'
   regression (qa/regress.cjs) neutralises exactly this gap on both sides before comparing, so everything else stays byte-for-byte strict. */
#appShell:has(#nav-dash.active) .page-hdr{padding-bottom:6px;margin-bottom:8px}
#appShell .page-hdr.stuck{background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#appShell .page-hdr::before{content:'';position:fixed;z-index:1;top:0;left:var(--tb-left,0px);right:0;height:var(--tb-h,56px);pointer-events:none;
  background:color-mix(in srgb,var(--sheet,#fff) 80%,transparent);-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  border-bottom:1px solid var(--line,rgba(15,23,42,.08));box-shadow:0 12px 30px -22px rgba(15,23,42,.5);
  opacity:0;visibility:hidden;transform:translateY(-100%);transition:opacity .2s ease,transform .3s cubic-bezier(.2,.8,.3,1),visibility 0s linear .3s}
#appShell .page-hdr.tb-docked::before{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .3s cubic-bezier(.2,.8,.3,1),visibility 0s}
#appShell .page-hdr.tb-docked>.hdr-actions{position:fixed;z-index:2;top:var(--tb-top,8px);right:var(--tb-right,24px)}
#appShell .page-hdr.tb-docked.tb-menu .menu-btn{position:fixed;z-index:2;top:var(--tb-mtop,8px);left:var(--tb-mleft,14px)}
/* in the bar the pill's own frame goes: the items sit straight on the bar, the current page keeps its filled pill */
#appShell .page-hdr.tb-docked .gn-pill:not(.open){background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* the page's name in the bar — drawn by page-topbar.js, shown only by themes that turn it on (round A: Aurora, Daylight) */
#appShell .page-hdr .tb-page{display:none;position:fixed;z-index:2;top:0;left:var(--tb-pleft,24px);right:var(--tb-pright,320px);height:var(--tb-ph,56px);line-height:var(--tb-ph,56px);
  font:600 15px/var(--tb-ph,56px) 'IBM Plex Sans',sans-serif;letter-spacing:-.01em;color:var(--txt,#16141f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;
  opacity:0;transform:translateY(-6px);transition:opacity .25s ease,transform .35s cubic-bezier(.2,.8,.3,1)}
#appShell .page-hdr.tb-docked .tb-page{opacity:1;transform:none}
/* the room the pinned row leaves keeps its size, so the header does not shift while it scrolls away */
#appShell .page-hdr.tb-docked::after{content:'';order:4;flex:0 0 var(--tb-w,0px);width:var(--tb-w,0px);height:var(--tb-hh,40px)}
#appShell .page-hdr.tb-docked>.portal-information{order:5}
#appShell .page-hdr.tb-docked.tb-menu>:first-child{padding-left:var(--tb-mw,0px)}
@media print{#appShell .page-hdr::before{display:none}#appShell .page-hdr.tb-docked>.hdr-actions,#appShell .page-hdr.tb-docked .menu-btn{position:static}}
