/* ═══════════════════════════════════════════════════════════════════════════════
   SPOTLESS ADMIN — AURORA PASS (2026)
   Additive override layer: loads LAST, after brand.css → admin.css → the inline
   <style> blocks in index.html. It never renames a JS hook — every selector here
   targets classes/ids that already exist (plus the new #au-aurora backdrop and
   #theme-btn). Status-pill colors stay inline in the JS templates on purpose
   (they carry the semantics); this layer only refines pill shape/typography.
   Theme contract: html[data-theme="light"|"dark"] stamped pre-paint by the head
   bootstrap; html.au-lite = weak device → no blur, no drift.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════ 0 · TOKENS ═══════════ */
:root{
  --side:248px;
  /* canonical brand ink + palette (wins over brand.css and the inline head block) */
  --ink:#16261A; --blue:#2F86D6; --blue2:#2568b8; --green:#6FB23B; --green-d:#4E8C2A;
  --green-ink:#356B1E; --gold:#F5A623; --red:#c0392b; --amber:#ba7517;
  --ink-2:#44536B; --ink-3:#6E7887;
  --bg:#F2F6FB; --hair:#DFE6EF;
  --surface:#FFFFFF; --surface-2:#F7FAFD; --surface-sunk:#EEF3F9;
  /* aurora + glass (light = bright, matte, blur OFF — the frosted look is dark's signature) */
  --au-bg-base:#EEF3FA;
  --au-aurora-1:rgba(47,134,214,.12); --au-aurora-2:rgba(111,178,59,.10); --au-aurora-3:rgba(124,92,255,.08);
  --au-aurora-blur:60px;
  --au-glass-bg:#FFFFFF; --au-glass-bg-2:#FCFDFF;
  --au-glass-border:rgba(31,95,168,.13);
  --au-glass-hi:rgba(255,255,255,.9);
  --au-glass-blur:0px;
  --au-glass-shadow:0 1px 2px rgba(16,42,74,.05),0 8px 24px rgba(16,42,74,.07);
  --au-hairline:rgba(31,95,168,.10);
  --au-ink-strong:#12233A;
  --au-th-bg:#FFFFFF;
  --au-zebra:rgba(47,134,214,.035);
  --au-row-hover:rgba(47,134,214,.07);
  --au-blue-grad:linear-gradient(135deg,#4AA3E8,#1F5FA8);
  --au-green-grad:linear-gradient(135deg,#7CC24A,#4E9A2A);
  --au-e-spring:cubic-bezier(.34,1.4,.5,1);
  --au-e-glide:cubic-bezier(.16,.84,.44,1);
  --au-r-card:18px;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#E8F0FA; --ink-2:#9FB3CC; --ink-3:#8398B3;
  --green-ink:#8FD05E; --red:#E0695A; --amber:#E8A44B;
  --bg:#0D1326; --hair:rgba(140,180,230,.15);
  --surface:#16243A; --surface-2:rgba(148,184,235,.07); --surface-sunk:#0C1626;
  --au-bg-base:#0C102A;
  --au-aurora-1:rgba(84,140,255,.44); --au-aurora-2:rgba(64,220,150,.30); --au-aurora-3:rgba(255,110,190,.30);
  --au-aurora-blur:66px;
  --au-glass-bg:rgba(28,36,70,.62); --au-glass-bg-2:rgba(32,42,80,.72);
  --au-glass-border:rgba(150,170,255,.17);
  --au-glass-hi:rgba(150,190,240,.13);
  --au-glass-blur:18px;
  --au-glass-shadow:0 1px 0 rgba(150,190,240,.06) inset,0 10px 30px rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.35);
  --au-hairline:rgba(140,180,230,.12);
  --au-ink-strong:#F1F7FF;
  --au-th-bg:#1A2A47;
  --au-zebra:rgba(140,180,230,.045);
  --au-row-hover:rgba(140,180,230,.09);
  --e1:0 1px 2px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.3);
  --e2:0 4px 12px rgba(0,0,0,.4),0 2px 4px rgba(0,0,0,.3);
  --e3:0 12px 28px rgba(0,0,0,.5),0 4px 8px rgba(0,0,0,.35);
}

/* ═══════════ 1 · brand.css LEAK NEUTRALIZER ═══════════
   brand.css is loaded for its tokens + fonts, but it also styles bare elements and
   landing-page chrome. The admin relies on a universal margin reset and its own
   .topbar/.stat/section markup — element selectors out-rank `*`, so undo them here. */
h1,h2,h3,h4,p,ul,li{margin:0;padding:0}
h3{color:inherit;font-size:16.5px;font-weight:800}
section{background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;scroll-margin-top:0}
.topbar{position:static;z-index:auto;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  border-bottom:0;padding:0;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.topbar .pill{margin-left:0;font-size:10.5px;font-weight:800;letter-spacing:.02em;color:#fff;background:none;padding:3px 10px}
.stat{flex:none;min-width:0;text-align:left;position:static}
.stat+.stat::before{content:none}
table{min-width:0}
th,td{border:0;vertical-align:middle}

/* ═══════════ 2 · TYPOGRAPHY — Bricolage for identity + numerals, Hanken for UI ═══════════ */
body{font-family:var(--body,'Hanken Grotesk',system-ui,sans-serif);line-height:1.45;color:var(--ink)}
.page-head h1{font-family:var(--display);font-weight:800;font-size:26px;letter-spacing:-.02em;color:var(--ink)}
.page-head .sub{font-size:12.5px;color:var(--ink-3)}
dialog h3,#login h3{font-family:var(--display);letter-spacing:-.01em}
.kpi b,.stat b,.ts-summary .ts-sum b,.ts-pay b,.sp-dur b,.uw-cardbody>b,.kc-head b{
  font-family:var(--display);font-weight:800;letter-spacing:-.03em}
.muted{color:var(--ink-3)}
.msg{color:var(--green-ink)}
.msg.err{color:var(--red)}

/* ═══════════ 3 · AURORA BACKDROP + SHELL ═══════════ */
#au-aurora{position:fixed;inset:-15%;z-index:-1;pointer-events:none;overflow:hidden;
  background:var(--au-bg-base);contain:strict}
.au-blob{position:absolute;display:block;border-radius:50%;
  filter:blur(var(--au-aurora-blur));will-change:transform;transform:translateZ(0)}
.au-blob--1{width:60vw;height:60vw;top:-12%;left:-10%;
  background:radial-gradient(circle at 50% 50%,var(--au-aurora-1),transparent 68%)}
.au-blob--2{width:66vw;height:66vw;bottom:-18%;right:-14%;
  background:radial-gradient(circle at 50% 50%,var(--au-aurora-2),transparent 68%)}
.au-blob--3{width:48vw;height:48vw;top:34%;left:26%;
  background:radial-gradient(circle at 50% 50%,var(--au-aurora-3),transparent 70%)}
@media (prefers-reduced-motion:no-preference){
  .au-blob--1{animation:auDrift1 34s var(--au-e-glide) infinite alternate}
  .au-blob--2{animation:auDrift2 46s var(--au-e-glide) infinite alternate}
  .au-blob--3{animation:auDrift3 28s var(--au-e-glide) infinite alternate}
}
@keyframes auDrift1{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(6vw,4vh,0) scale(1.12)}}
@keyframes auDrift2{from{transform:translate3d(0,0,0) scale(1.05)}to{transform:translate3d(-5vw,-4vh,0) scale(1)}}
@keyframes auDrift3{from{transform:translate3d(0,0,0)}to{transform:translate3d(4vw,-5vh,0)}}
body.shell{background:transparent}
body{background:transparent}

/* ---- sidebar rail: deep navy with a soft aurora wash + Bricolage wordmark ---- */
.side{background:
  radial-gradient(120% 34% at 50% 0%,rgba(74,163,232,.16),transparent 62%),
  radial-gradient(90% 26% at 12% 100%,rgba(111,178,59,.12),transparent 70%),
  linear-gradient(180deg,#0D1B30 0%,#101F38 55%,#13294B 130%)}
.side-brand{padding:16px 16px 12px;gap:11px}
.side-brand img{height:36px;width:36px;border-radius:10px}
.side-brand .bn{font-family:var(--display);font-size:17px;font-weight:800;letter-spacing:-.01em;color:#fff;
  background:linear-gradient(100deg,#9CCFF7,#B9E48F);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .side-brand .bn{color:#fff;-webkit-text-fill-color:#fff}
}
.side-brand .bt{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7E93AD}
.side-nav{padding:8px 10px}
.side-nav .navbtn{min-height:40px;border-radius:11px;font-size:13.5px;letter-spacing:.01em;gap:12px}
.side-nav .navbtn:hover{background:rgba(133,175,230,.11)}
.side-foot{padding:10px}
.side-foot .navbtn{border-radius:11px}
.nav-group{font-size:9.5px;letter-spacing:.13em;color:#647FA3;padding:12px 12px 4px}
.side-foot .nav-group{padding-top:8px}
.side-foot .ck-hintchip{border-radius:11px;border-color:rgba(150,190,240,.16);background:rgba(150,190,240,.06)}

/* ---- content column ---- */
.content{padding:22px 28px}
.page-head{margin:0 0 16px}

/* ═══════════ 4 · GLASS CARDS ═══════════ */
.card{background:linear-gradient(180deg,var(--au-glass-hi),transparent 42px),var(--au-glass-bg);
  border:1px solid var(--au-glass-border);border-radius:var(--au-r-card);padding:17px 18px;
  box-shadow:var(--au-glass-shadow);
  -webkit-backdrop-filter:blur(var(--au-glass-blur)) saturate(1.25);
          backdrop-filter:blur(var(--au-glass-blur)) saturate(1.25)}
.card:hover{box-shadow:var(--au-glass-shadow);border-color:var(--au-glass-border)}
.rail-b,.rail-g,.rail-a,.rail-r,.rail-t{border-inline-start-width:3px}

/* ═══════════ 5 · BUTTONS + INPUTS + FOCUS ═══════════ */
/* KEYLINE BLOOM (2026) — flat token-driven fills drawn with two crisp lines: a 1px machined rim
   that composites over any fill, and a 1px inner top keyline. One state grammar for every variant
   via four custom properties (--edge/--keyline/--shade/--bloom); dark restyles by swapping vars.
   Signature: the hue-locked bloom — on hover each button casts one soft halo in its own colour,
   so an active filter chip (a .btn.sm that dropped .gr) is unmistakably "selected". */
.btn{
  --edge:rgba(13,35,60,.35);       /* hairline rim — composites over any fill */
  --keyline:rgba(255,255,255,.14); /* 1px inner top-light — the machined edge */
  --shade:rgba(16,42,74,.12);      /* resting ambient shadow */
  --bloom:rgba(47,134,214,.45);    /* hover halo — always the button's own hue */
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:7px 14px;border:1px solid var(--edge);border-radius:11px;cursor:pointer;
  font-family:inherit;font-weight:700;font-size:13px;letter-spacing:.01em;line-height:1.4;
  color:#fff;text-decoration:none;background:var(--blue2);
  box-shadow:inset 0 1px 0 var(--keyline),0 1px 2px var(--shade);
  transition:background-color .15s,border-color .15s,color .15s,filter .15s}
.btn.g{--bloom:rgba(111,178,59,.5);background:#4A7D28; /* AA fallback for no-color-mix engines */
  background:color-mix(in srgb,var(--green-d) 85%,#16261A)}
.btn.gr{--edge:var(--hair);--keyline:transparent;--shade:rgba(16,42,74,.06);--bloom:rgba(47,134,214,.3);
  color:var(--ink-2);background:var(--surface);box-shadow:0 1px 2px var(--shade)}
/* 1px border absorbed into the padding: 4+1 / 10+1 = the legacy 5px 11px metrics, so ~190 small
   buttons keep their exact height next to inputs and in table rows */
.btn.sm{padding:4px 10px;border-radius:9px;font-size:12px;gap:5px}
.btn:hover{--edge:rgba(13,35,60,.48);filter:none;
  box-shadow:inset 0 1px 0 var(--keyline),0 1px 2px var(--shade),0 8px 20px -8px var(--bloom)}
.btn.gr:hover{--edge:rgba(47,134,214,.45);color:var(--ink);background:var(--surface-2);filter:none;
  box-shadow:0 1px 2px var(--shade),0 6px 16px -8px var(--bloom)}
.btn:active{filter:brightness(.93);transform:scale(.98);box-shadow:inset 0 1px 0 transparent,0 1px 1px var(--shade)}
.btn.gr:active{filter:none;background:var(--surface-sunk);box-shadow:0 1px 1px var(--shade)}
.btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px;
  box-shadow:inset 0 1px 0 var(--keyline),0 0 0 4px rgba(47,134,214,.22)}
/* disabled stays hoverable (title tooltips + a real not-allowed cursor), just visibly inert */
.btn:disabled{opacity:.55;filter:saturate(.5);cursor:not-allowed;box-shadow:none;transform:none}
.btn:disabled:hover,.btn:disabled:active{filter:saturate(.5);transform:none;box-shadow:none}
/* dark · Aurora — ink rim, brighter ice keyline, glassy neutrals, ice/mint blooms (vars only) */
html[data-theme="dark"] .btn{--edge:rgba(2,10,24,.65);--keyline:rgba(173,203,255,.28);
  --shade:rgba(0,0,0,.5);--bloom:rgba(84,140,255,.6)}
html[data-theme="dark"] .btn.g{--bloom:rgba(64,220,150,.45)}
html[data-theme="dark"] .btn.gr{--edge:var(--au-glass-border);--keyline:rgba(150,190,240,.1);
  --shade:rgba(0,0,0,.4);--bloom:rgba(126,184,238,.35);background:var(--surface-2)}
html[data-theme="dark"] .btn.gr:hover{--edge:rgba(150,190,240,.34);color:var(--ink);background:rgba(148,184,235,.13)}
html[data-theme="dark"] .btn.gr:active{background:rgba(148,184,235,.06)}
html[data-theme="dark"] .btn:focus-visible{outline-color:#7EB8EE;
  box-shadow:inset 0 1px 0 var(--keyline),0 0 0 4px rgba(126,184,238,.28)}
/* motion — spring lift, glide bloom; honours prefers-reduced-motion, fully static on html.au-lite */
@media (prefers-reduced-motion:no-preference){
  .btn{transition:transform .16s var(--au-e-spring),box-shadow .2s var(--au-e-glide),
    background-color .15s,border-color .15s,color .15s,filter .15s}
  .btn:hover{transform:translateY(-1px)}
  .btn:active{transform:translateY(0) scale(.975);transition-duration:.07s}
}
html.au-lite .btn{transition:none}
html.au-lite .btn:hover,html.au-lite .btn:active{transform:none}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);
  border:1px solid var(--hair);border-radius:10px}
input,select{padding:7px 10px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,134,214,.18)}
:where(button,[role="button"],a,summary,.navbtn):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
html[data-theme="dark"] :where(button,[role="button"],a,summary,.navbtn):focus-visible{outline-color:#7EB8EE}

/* ═══════════ 6 · DATA TABLES — first-class ═══════════ */
.content table{font-size:13px}
.content th{position:sticky;top:0;z-index:3;background:var(--au-th-bg);
  color:var(--ink-3);font-size:10.5px;font-weight:800;letter-spacing:.08em;
  padding:9px 10px;border-bottom:1px solid var(--hair);box-shadow:0 1px 0 var(--au-hairline)}
.content td{padding:9px 10px;border-bottom:1px solid var(--au-hairline)}
.content table tr:nth-child(even):not(:has(th))>td{background:var(--au-zebra)}
.content table tr:not(:has(th)):hover>td{background:var(--au-row-hover)}
/* Time Clock "Today" — the fully-styled reference table: numbers right-aligned
   (summary rows carry colspan and are excluded) */
#clock-today-tbl th:last-child,#clock-today-tbl td:last-child:not([colspan]){text-align:right}
#print-report th,#print-report td{position:static;box-shadow:none}

/* ═══════════ 7 · PILLS · CHIPS · BADGES (shape only — state colors stay inline in JS) ═══════════ */
.pill{padding:3px 10px;font-size:10.5px;font-weight:800;letter-spacing:.02em;border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(16,24,40,.15)}
.side-nav .navbtn .badge{box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 3px rgba(0,0,0,.3)}
.live-chip{border-radius:999px;font-weight:800}
.zonechip,.holder-office,.bdg-chip,.ev-chip,.sp-chip,.req-pill{border-radius:999px}

/* ═══════════ 8 · DASHBOARD ═══════════ */
.dash-sec{font-size:10px;letter-spacing:.15em;color:var(--ink-3)}
.dash-sec::after{background:linear-gradient(90deg,var(--hair),transparent)}
/* quick actions: glassy pressables */
.qa{background:linear-gradient(180deg,var(--au-glass-hi),transparent 34px),var(--au-glass-bg);
  border:1px solid var(--au-glass-border);border-radius:14px;
  box-shadow:0 1px 2px rgba(16,42,74,.05);color:var(--ink)}
.qa:hover{border-color:rgba(47,134,214,.5);box-shadow:0 10px 22px -8px rgba(47,134,214,.28);transform:translateY(-2px)}
/* attention rows */
.attn-row{background:var(--surface-2);border:1px solid var(--hair);border-radius:12px}
.attn-row:hover{border-color:rgba(47,134,214,.45);box-shadow:0 6px 14px -6px rgba(47,134,214,.25)}
.attn-row .an{color:var(--ink)}
/* clocked-in + activity feed */
.who{background:var(--surface-2);border-radius:11px}
.who:hover{border-color:var(--hair);box-shadow:0 3px 10px rgba(16,24,40,.08)}
.who .ws{color:var(--ink-3)}
.feed-row{border-bottom:1px solid var(--au-hairline)}
.feed-row:hover{background:var(--au-row-hover)}
.feed-row .ft{color:var(--ink-3)}
/* KPI tiles: 2×2 gradient-numeral tiles with hue corner-orbs (markup untouched) */
#dash-kpis .kpi-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#dash-kpis .kpi{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;
  gap:4px;padding:12px 14px;border:1px solid var(--au-glass-border);border-radius:14px;
  background:linear-gradient(180deg,var(--au-glass-hi),transparent 30px),var(--au-glass-bg)}
#dash-kpis .kpi::after{content:"";position:absolute;top:-34px;right:-34px;width:78px;height:78px;border-radius:50%;
  background:radial-gradient(circle,rgba(74,163,232,.20),transparent 70%);pointer-events:none}
#dash-kpis .kpi:nth-child(2)::after{background:radial-gradient(circle,rgba(124,194,74,.22),transparent 70%)}
#dash-kpis .kpi:nth-child(3)::after{background:radial-gradient(circle,rgba(167,139,250,.22),transparent 70%)}
#dash-kpis .kpi:nth-child(4)::after{background:radial-gradient(circle,rgba(255,194,75,.24),transparent 70%)}
#dash-kpis .kpi-top{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
#dash-kpis .kpi b{font-size:24px}
#dash-kpis .kpi>span{white-space:normal;color:var(--ink-3);font-weight:600}
#dash-kpis .spark{width:64px;height:24px}
.kpi{border-color:var(--au-glass-border);background:linear-gradient(180deg,var(--au-glass-hi),transparent 30px),var(--au-glass-bg)}
.kpi>span{color:var(--ink-3)}
/* skeletons + empty states follow the theme */
.skel{background:linear-gradient(90deg,var(--surface-sunk) 25%,var(--surface-2) 45%,var(--surface-sunk) 65%);background-size:200% 100%}
.empty b{color:var(--ink)}

/* ═══════════ 9 · OVERLAYS ═══════════ */
dialog{border:1px solid var(--au-glass-border);border-radius:18px;background:var(--surface);color:var(--ink);
  box-shadow:var(--e3,0 22px 48px rgba(16,24,40,.3))}
/* no backdrop-filter here: a live Leaflet map repainting behind a blurred backdrop is a
   GPU cliff on weaker machines (geofence dialog) */
dialog::backdrop{background:rgba(6,14,26,.6)}
body:has(dialog[open]) .au-blob{animation-play-state:paused}
.ck-panel{border-radius:18px;background:var(--surface)}
#ck-in{background:transparent;color:var(--ink);border-bottom:1px solid var(--hair)}
.ck-foot{border-top:1px solid var(--au-hairline)}
#geo-radius{accent-color:var(--blue);padding:0;border:0;background:transparent}
html[data-theme="dark"] #geo-radius{accent-color:#7EB8EE}
#login{margin:76px auto}
#login h3{font-size:20px;margin-bottom:10px}
#login img{filter:drop-shadow(0 6px 14px rgba(47,134,214,.3))}

/* ═══════════ 10 · DARK MODE — component flips the tokens can't reach ═══════════
   (hardcoded light hexes in admin.css / the inline blocks; overridden here so every
   tab keeps a readable dark baseline — per-tab polish is the next pass) */
html[data-theme="dark"] body{color:var(--ink)}
html[data-theme="dark"] .side{box-shadow:inset -1px 0 0 rgba(150,190,240,.10)}
html[data-theme="dark"] .content th{color:var(--ink-2)}
html[data-theme="dark"] .content table tr:not(:has(th)):hover>td{background:var(--au-row-hover)}
html[data-theme="dark"] .btn.gr{color:var(--ink-2)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{
  background:#0F1D33;border-color:rgba(140,180,230,.22);color:var(--ink)}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{
  border-color:#7EB8EE;box-shadow:0 0 0 3px rgba(126,184,238,.22)}
/* dashboard leftovers */
html[data-theme="dark"] .attn-row .ac{box-shadow:0 1px 3px rgba(0,0,0,.35)}
html[data-theme="dark"] .live-chip{border-color:rgba(64,220,150,.32);background:rgba(64,220,150,.10);color:#8FD05E}
html[data-theme="dark"] .live-chip .live-dot{background:#5ECB8B}
html[data-theme="dark"] .live-cap{color:#79B98E}
html[data-theme="dark"] .live-chip.off{border-color:rgba(140,180,230,.25);background:rgba(140,180,230,.08);color:var(--ink-2)}
html[data-theme="dark"] .empty-ic{box-shadow:0 6px 16px rgba(0,0,0,.4)}
/* engagement chart: repaint the hardcoded SVG attribute colors */
html[data-theme="dark"] #dash-engage svg [stroke="#edf0f4"]{stroke:rgba(140,180,230,.14)}
html[data-theme="dark"] #dash-engage svg [fill="#a7b0bc"]{fill:#7C92AD}
html[data-theme="dark"] #dash-engage svg [fill="#12233a"]{fill:#1E3252}
/* sub-tabs */
html[data-theme="dark"] .subtabs{border-bottom-color:rgba(140,180,230,.16)}
html[data-theme="dark"] .subtab{color:var(--ink-3)}
html[data-theme="dark"] .subtab:hover{color:var(--ink)}
html[data-theme="dark"] .subtab.on{color:#7EB8EE;border-bottom-color:#7EB8EE}
/* command palette */
html[data-theme="dark"] .ck-it.sel{background:rgba(47,134,214,.22);box-shadow:inset 0 0 0 1px rgba(74,163,232,.45)}
html[data-theme="dark"] .ck-kind{color:var(--ink-2);background:rgba(140,180,230,.12)}
html[data-theme="dark"] .ck-rec{color:#F5C97B;background:rgba(255,194,75,.12)}
/* menus + poppers */
html[data-theme="dark"] #daymenu{background:var(--surface);border-color:var(--au-glass-border)}
html[data-theme="dark"] #daymenu b{color:var(--ink-2)}
html[data-theme="dark"] #daymenu .dm-it:hover{background:rgba(140,180,230,.10)}
html[data-theme="dark"] .sp-pop{background:var(--surface);border-color:var(--au-glass-border)}
html[data-theme="dark"] .sp-pop>input{border-bottom-color:var(--hair)}
html[data-theme="dark"] .sp-opt:hover{background:rgba(140,180,230,.08)}
html[data-theme="dark"] .sp-opt.sel{background:rgba(47,134,214,.20)}
/* shift side panel */
html[data-theme="dark"] #sp{background:#131F36}
html[data-theme="dark"] .sp-head,html[data-theme="dark"] .sp-foot{border-color:var(--hair)}
html[data-theme="dark"] .sp-foot{background:#0F1A2E}
html[data-theme="dark"] .sp-sec{border-bottom-color:var(--au-hairline)}
html[data-theme="dark"] .sp-x{background:rgba(140,180,230,.12);color:var(--ink-2)}
html[data-theme="dark"] .sp-x:hover{background:rgba(140,180,230,.2)}
html[data-theme="dark"] .sp-row label,html[data-theme="dark"] .sp-seclabel{color:var(--ink-3)}
html[data-theme="dark"] .sp-jobbtn{background:var(--surface);border-color:rgba(140,180,230,.22);color:var(--ink)}
html[data-theme="dark"] .sp-chip{background:rgba(140,180,230,.10);border-color:rgba(140,180,230,.18);color:var(--ink)}
html[data-theme="dark"] .sp-addu{background:transparent;border-color:rgba(140,180,230,.3);color:#7EB8EE}
html[data-theme="dark"] .sp-kv span{color:var(--ink-3)}
/* requests + review overlay */
html[data-theme="dark"] #rr-ov,html[data-theme="dark"] #uw-ov{background:var(--bg)}
html[data-theme="dark"] .rr-top,html[data-theme="dark"] .uw-top,html[data-theme="dark"] .rr-rail{
  background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .rr-tabs{border-bottom-color:rgba(140,180,230,.16)}
html[data-theme="dark"] .rr-card,html[data-theme="dark"] .rr-tl{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .rr-item:hover{background:rgba(140,180,230,.08)}
html[data-theme="dark"] .rr-item.sel{background:rgba(47,134,214,.20);border-color:rgba(74,163,232,.4)}
html[data-theme="dark"] .rr-kv{border-bottom-color:var(--au-hairline)}
html[data-theme="dark"] .rr-track{background:rgba(140,180,230,.10)}
html[data-theme="dark"] .rr-gl{background:rgba(140,180,230,.14)}
html[data-theme="dark"] .rr-tip{border-top-color:var(--hair)}
html[data-theme="dark"] .req{background:var(--surface);border-color:var(--hair)}
/* timesheets */
html[data-theme="dark"] .pp-nav{background:var(--surface);border-color:rgba(140,180,230,.22)}
html[data-theme="dark"] .pp-nav button:hover{background:rgba(47,134,214,.18)}
html[data-theme="dark"] .req-pill{background:rgba(255,194,75,.10);border-color:rgba(255,194,75,.3);color:#F5C97B}
html[data-theme="dark"] .ts-band th{background:rgba(140,180,230,.08);color:var(--ink-2);border-left-color:rgba(140,180,230,.12)}
html[data-theme="dark"] .ts-row:hover{background:rgba(140,180,230,.06)}
html[data-theme="dark"] .ts-row.sel{background:rgba(47,134,214,.16)}
html[data-theme="dark"] .ts-detpanel{background:var(--surface-sunk);border-color:var(--hair)}
/* scheduler board */
html[data-theme="dark"] .sg-name,html[data-theme="dark"] .sg-cell{background:rgba(148,184,235,.06)}
html[data-theme="dark"] .sg-cell.today{background:rgba(47,134,214,.16);box-shadow:inset 0 0 0 1px rgba(74,163,232,.35)}
html[data-theme="dark"] .sg-cell.off{background:rgba(192,57,43,.18)}
html[data-theme="dark"] .sgp{background:rgba(140,180,230,.15)}
html[data-theme="dark"] .sg-head{color:var(--ink-3)}
html[data-theme="dark"] .sg-name small{color:var(--ink-3)}
/* keys */
html[data-theme="dark"] .kc-hero{background:linear-gradient(180deg,rgba(79,209,197,.10),var(--surface) 70%);border-color:rgba(79,209,197,.28)}
html[data-theme="dark"] .kc-hero.kc-ok{background:linear-gradient(180deg,rgba(124,194,74,.10),var(--surface) 70%);border-color:rgba(124,194,74,.28)}
html[data-theme="dark"] .kc-hero.kc-bad{background:linear-gradient(180deg,rgba(255,194,75,.10),var(--surface) 78%);border-color:rgba(255,194,75,.32)}
html[data-theme="dark"] .kc-row{background:rgba(255,194,75,.08);border-color:rgba(255,194,75,.25)}
html[data-theme="dark"] .kc-row .kct{color:#E8D5A8}
html[data-theme="dark"] .holder-office{background:rgba(140,180,230,.12);border-color:rgba(140,180,230,.2);color:var(--ink-2)}
html[data-theme="dark"] .key-hsel.off{background:rgba(140,180,230,.10);color:var(--ink-2)}
html[data-theme="dark"] .key-chainbtn{background:var(--surface);border-color:rgba(140,180,230,.25);color:var(--ink-2)}
html[data-theme="dark"] .key-chainrow td{background:rgba(79,209,197,.06);border-bottom-color:rgba(79,209,197,.15)}
html[data-theme="dark"] tr.key-conf>td{background:rgba(255,194,75,.08)}
html[data-theme="dark"] .key-add{background:rgba(79,209,197,.08);border-color:rgba(79,209,197,.3)}
html[data-theme="dark"] .key-ev .kev{color:#4FD1C5}
/* recognitions / rewards / events / users */
html[data-theme="dark"] .bdg{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .bdg.on{background:rgba(47,134,214,.16);border-color:rgba(74,163,232,.5)}
html[data-theme="dark"] .rw-tile{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .ev-chip{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .ucard{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .zonechip{background:rgba(47,134,214,.16);border-color:rgba(74,163,232,.3);color:#8FC5F2}
html[data-theme="dark"] .up-kv{border-bottom-color:var(--au-hairline)}
html[data-theme="dark"] .up-kv>span{color:var(--ink-3)}
html[data-theme="dark"] .up-info{border-top-color:var(--au-hairline)}
html[data-theme="dark"] .qr{background:var(--surface-sunk);border-color:var(--hair)}
html[data-theme="dark"] .qr code{background:var(--surface);border-color:var(--hair);color:var(--ink-2)}
/* chat — the inline block hardcodes light rows/bubbles but inherits ink, which flips
   near-white in dark: without these, selected threads + received bubbles go white-on-white */
html[data-theme="dark"] .ct-row:hover{background:rgba(140,180,230,.08)}
html[data-theme="dark"] .ct-row.on{background:rgba(47,134,214,.24)}
html[data-theme="dark"] .ct-prev,html[data-theme="dark"] .ct-top small,
html[data-theme="dark"] .ac-name,html[data-theme="dark"] .ac-seen,html[data-theme="dark"] .ac-empty{color:var(--ink-3)}
html[data-theme="dark"] .ac-head{border-bottom-color:var(--au-hairline)}
html[data-theme="dark"] .ac-day span{background:rgba(140,180,230,.12);color:var(--ink-2)}
html[data-theme="dark"] .ac-bubble{background:var(--surface);border-color:rgba(140,180,230,.18)}
html[data-theme="dark"] .ac-msg.mine .ac-bubble{background:var(--blue);border-color:var(--blue)}
html[data-theme="dark"] .ac-quote{border-left-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08)}
html[data-theme="dark"] .ac-acts{background:var(--surface);border-color:rgba(140,180,230,.2)}
html[data-theme="dark"] .ac-acts button:hover,html[data-theme="dark"] .ac-picker button:hover{background:rgba(140,180,230,.14)}
html[data-theme="dark"] .ac-react{background:var(--surface);border-color:rgba(140,180,230,.2)}
html[data-theme="dark"] .ac-react.me{background:rgba(47,134,214,.24);border-color:rgba(74,163,232,.45)}
html[data-theme="dark"] .ac-rbar{background:rgba(47,134,214,.14)}
html[data-theme="dark"] .ac-emoji-btn{background:var(--surface);border-color:rgba(140,180,230,.22)}
/* misc white-surface controls that inherit ink */
html[data-theme="dark"] .sp-ico{background:var(--surface);border-color:rgba(140,180,230,.22);color:var(--ink-2)}
html[data-theme="dark"] .uw-toolbar>button{background:var(--surface);border-color:rgba(140,180,230,.22)}
html[data-theme="dark"] .uw-emojipop{background:var(--surface);border-color:rgba(140,180,230,.2)}
/* the wizard's phone preview emulates the cleaner app's LIGHT card — pin its ink dark */
html[data-theme="dark"] .uw-screen{color:#1d1d1f}

/* ═══════════ P2-A · AVAILABILITY + USERS + TIMESHEETS + TASKS ═══════════
   The avail/people rules are id-prefixed on purpose: their originals live in
   inline <style> blocks inside <body>, which beat head stylesheets at equal
   specificity regardless of load order. */
/* availability: summary tiles become glass, the month grid + state cells follow the theme */
#t-avail .avl-stat{background:linear-gradient(180deg,var(--au-glass-hi),transparent 30px),var(--au-glass-bg);
  border:1px solid var(--au-glass-border);border-radius:14px}
#t-avail .avl-stat b{font-family:var(--display);font-weight:800;letter-spacing:-.03em;color:var(--au-ink-strong)}
#t-avail .avl-stat span{color:var(--ink-3)}
#t-avail .avl-grid{background:var(--surface);border-color:var(--hair)}
#t-avail .avl-grid th{background:var(--au-th-bg);color:var(--ink-3);font-weight:800;letter-spacing:.06em}
#t-avail .avl-grid th:first-child,#t-avail .avl-grid td:first-child{background:var(--surface);box-shadow:1px 0 0 var(--hair)}
#t-avail .avl-grid th:first-child{background:var(--au-th-bg)}
#t-avail .avl-grid td{border-top:1px solid var(--au-hairline)}
#t-avail .avl-chip{background:var(--surface);border-color:var(--hair)}
#t-avail .avl-note{color:var(--ink-3)}
html[data-theme="dark"] #t-avail .avl-on{background:rgba(111,178,59,.18);color:#8FD05E}
html[data-theme="dark"] #t-avail .avl-off{background:rgba(224,105,90,.16);color:#F09A8D}
html[data-theme="dark"] #t-avail .avl-part{background:rgba(255,194,75,.16);color:#F5C97B}

/* availability LINK plan card — same id-prefixed treatment as .avl-* above, for the same reason */
#t-avail .avp-link input,#t-avail .avp-cfg input,#t-avail .avp-cfg select,#t-avail .avp-actions select{
  background:var(--au-glass-bg-2,var(--surface));border-color:var(--hair);color:var(--ink)}
#t-avail .avp-cfg{color:var(--ink-3)}
#t-avail .avp-tbl{background:var(--surface);border-color:var(--hair)}
#t-avail .avp-tbl th{background:var(--au-th-bg);color:var(--ink-3)}
#t-avail .avp-tbl td{border-top:1px solid var(--au-hairline);color:var(--ink)}
#t-avail .avp-chg{color:var(--ink-3)}
#t-avail .avp-chg b{color:var(--au-ink-strong)}
#t-avail .avp-req{color:var(--ink-3)}
#t-avail .avp-req__m{color:var(--ink)}
html[data-theme="dark"] #t-avail .avp-req{background:rgba(255,194,75,.08);border-color:rgba(255,194,75,.28)}
html[data-theme="dark"] #t-avail .avp-yes{background:rgba(111,178,59,.18);color:#8FD05E}
html[data-theme="dark"] #t-avail .avp-no{background:rgba(224,105,90,.16);color:#F09A8D}
html[data-theme="dark"] #t-avail .avp-wait{background:rgba(255,194,75,.16);color:#F5C97B}
html[data-theme="dark"] #t-avail .avl-miss{background:rgba(140,180,230,.10);color:var(--ink-3)}
/* users directory: segmented tabs + person cards on theme surfaces */
#t-people .ppl-tabs{background:var(--surface-sunk);border-radius:11px}
#t-people .ppl-tab{color:var(--ink-3)}
#t-people .ppl-tab.on{background:var(--surface);color:var(--au-ink-strong);box-shadow:0 1px 3px rgba(16,42,74,.14)}
#t-people .ppl-tab .pt-n{background:var(--hair);color:var(--ink-2)}
#t-people .ppl-tab.on .pt-n{background:var(--blue);color:#fff}
#t-people .ppl-add{background:var(--surface-2);border-color:var(--hair)}
#t-people .ucard{background:var(--surface);border-color:var(--hair);border-radius:14px}
#t-people .ucard:hover{border-color:rgba(47,134,214,.45);box-shadow:0 6px 16px -6px rgba(47,134,214,.25)}
#t-people .uc-sub{color:var(--ink-3)}
#t-people .uc-rate{color:var(--au-ink-strong)}
html[data-theme="dark"] #t-people .ppl-tab.on{box-shadow:0 1px 3px rgba(0,0,0,.4)}
/* timesheets board: toolbar, summary numerals, band header, detail panel */
.pp-nav{background:var(--surface);border-color:var(--hair)}
.pp-nav button:hover{background:rgba(47,134,214,.12)}
.ts-summary .ts-sum span,.ts-pay span{color:var(--ink-3)}
.ts-pay b{color:var(--au-ink-strong)}
.ts-eq{color:var(--ink-3)}
.ts-band th{background:var(--surface-sunk);color:var(--ink-2);border-left:1px solid var(--au-hairline)}
.ts-band th:first-child{background:transparent;border-left:none}
.ts-row:hover{background:var(--au-row-hover)}
.ts-row.sel{background:rgba(47,134,214,.12)}
.ts-detpanel{background:var(--surface-2);border-color:var(--hair)}
html[data-theme="dark"] .ts-row.sel{background:rgba(47,134,214,.2)}
/* tasks: the composer + filters ride the shared primitives; keep the table breathing */
#qt-filters .btn{border-radius:999px} /* both states — the active chip (no .gr) must match its pill neighbours */

/* ═══════════ P2-B · REQUESTS + REVIEW OVERLAY + SUBMISSIONS + UPDATES ═══════════ */
.req{background:var(--surface);border:1px solid var(--au-hairline);border-radius:12px}
.req:hover{border-color:rgba(47,134,214,.45);box-shadow:0 6px 14px -6px rgba(47,134,214,.22)}
.req-group h3{color:var(--ink-3);font-family:var(--body);font-weight:800}
.req .rd{color:var(--ink-3)}
#rr-ov,#uw-ov{background:var(--bg)}
.rr-item{border-radius:11px}
.rr-item.sel{background:rgba(47,134,214,.12);border-color:rgba(47,134,214,.35)}
.rr-date{letter-spacing:.1em}
.rr-card,.rr-tl{border-radius:14px;border-color:var(--hair)}
.rr-cardtag{border-radius:999px}
.rr-kv{border-bottom-color:var(--au-hairline)}
.rr-kv>span{color:var(--ink-3)}
.rr-tabs button{color:var(--ink-3)}
.rr-ib small,.rr-tll,.rr-empty{color:var(--ink-3)}
.uw-lbl{color:var(--ink-3)}
.uw-stepline{background:var(--hair)}
#subs-bulk{border-radius:12px}
/* dark leftovers the Phase-1 block didn't reach */
html[data-theme="dark"] .req-group h3,html[data-theme="dark"] .req .rd{color:var(--ink-3)}
html[data-theme="dark"] .rr-tabs button.on{color:#7EB8EE;border-bottom-color:#7EB8EE}
html[data-theme="dark"] .uw-step{color:var(--ink-3)}
html[data-theme="dark"] .uw-step.on{color:var(--ink)}
html[data-theme="dark"] .uw-step.done{color:#8FD05E}
html[data-theme="dark"] .uw-step .uw-stepn{background:rgba(140,180,230,.14);color:var(--ink-2)}
html[data-theme="dark"] .uw-step.on .uw-stepn{background:var(--blue);color:#fff}
html[data-theme="dark"] .uw-step.done .uw-stepn{background:var(--green);color:#fff}
html[data-theme="dark"] .uw-stepline{background:rgba(140,180,230,.18)}
html[data-theme="dark"] #uw-body{border-color:rgba(140,180,230,.22)}
html[data-theme="dark"] .uw-theme.on{border-color:#F1F7FF}
html[data-theme="dark"] .rvw-tick{color:var(--ink-3)}
/* JS-emitted inline light backgrounds — inline styles need !important to theme */
html[data-theme="dark"] #subs-bulk{background:rgba(47,134,214,.14)!important;border-color:rgba(74,163,232,.32)!important}
html[data-theme="dark"] #updates-tbl td[colspan]{background:var(--surface-sunk)!important}
html[data-theme="dark"] img[data-pk]{background:#14233C!important;border-color:rgba(140,180,230,.2)!important}
html[data-theme="dark"] #sub-dlg-body ul{color:var(--ink-2)!important}
html[data-theme="dark"] #sub-dlg-body .card[style*="eee"]{border-color:var(--hair)!important}
html[data-theme="dark"] #subs-status-chips .btn.gr[style*="color"]{color:#F5C97B!important}
html[data-theme="dark"] .rr-ph img{background:#14233C;border-color:rgba(140,180,230,.2)}

/* ═══════════ P2-C · SITES + KEYS + PROFILE + SETTINGS + CONTENT + MOTIVATION ═══════════ */
/* shared: hairlines + labels driven by tokens in both themes */
.up-info{border-top-color:var(--au-hairline)}
.up-kv{border-bottom-color:var(--au-hairline)}
.up-kv>span{color:var(--ink-3)}
.stat span{color:var(--ink-3)}
.stat b{color:var(--au-ink-strong)}
.dlg-row label{color:var(--ink-3)}
.bdg{background:var(--surface);border-color:var(--hair);border-radius:13px}
.bdg:hover{border-color:rgba(47,134,214,.45)}
.ev-chip{background:var(--surface);border-color:var(--hair)}
.rw-tile{background:linear-gradient(180deg,var(--au-glass-hi),transparent 24px),var(--au-glass-bg);border-color:var(--au-glass-border)}
.rw-tile .rw-tb small{color:var(--ink-3)}
.key-add{border-radius:12px}
.kc-row{border-radius:12px}
/* dark: JS/static inline styles that carry light colors — scoped !important overrides.
   The [style*=…] hooks target the exact hex the template emits; if a template color
   changes, re-check these. */
html[data-theme="dark"] #sp-modal>div{background:var(--surface)!important;color:var(--ink)}
html[data-theme="dark"] .card[style*="eee"]{border-color:var(--hair)!important}
html[data-theme="dark"] #sites-list div[style*="f8fafd"]{background:var(--surface-sunk)!important;border-color:var(--hair)!important}
html[data-theme="dark"] #sites-list textarea[style*="d6dce6"]{border-color:rgba(140,180,230,.22)!important}
html[data-theme="dark"] #up-body label[style*="f7fafc"]{background:var(--surface-2)!important}
html[data-theme="dark"] #up-body div[style*="eef3ef"]{background:rgba(140,180,230,.15)!important}
html[data-theme="dark"] #up-body label[style*="4a5560"],
html[data-theme="dark"] #t-settings label[style*="4a5560"]{color:var(--ink-2)!important}
html[data-theme="dark"] #up-body div[style*="f0f2f4"]{border-bottom-color:var(--au-hairline)!important}
html[data-theme="dark"] #up-notes{border-color:rgba(140,180,230,.22)!important}
html[data-theme="dark"] .card textarea[style*="ddd"],
html[data-theme="dark"] #sp-modal [style*="ddd"]{border-color:rgba(140,180,230,.25)!important}
html[data-theme="dark"] .rw-tile{background:var(--surface);border-color:var(--hair)}
html[data-theme="dark"] .rw-tile .rw-ic,html[data-theme="dark"] .bdg .bdg-ic{
  background:linear-gradient(135deg,rgba(74,163,232,.25),rgba(111,178,59,.22))}
/* keys: the jump-flash animates to a light tint — dark gets its own keyframes */
@keyframes keyFlashD{0%,60%{background:rgba(255,194,75,.22)}100%{background:transparent}}
html[data-theme="dark"] tr.key-flash>td{animation-name:keyFlashD}

/* ═══════════ P2-D · SCHEDULER BOARD — alive pass ═══════════
   Block colors arrive as inline background:<job color> from JS, so all depth/gloss
   rides on pseudo-elements and filters; children get z-index:1 so text, flags and
   the bulk-select tick stay above the gloss. Draft semantics ("hidden from staff")
   move from deadening opacity to stripes + dashed edge — visible but still colorful. */
/* Premium calendar-event language (Linear/Notion style): the inline job color shows as a
   saturated LEFT ACCENT BAR, the body becomes a soft auto-derived tint of that color (a
   near-opaque surface overlay lets ~14% of it through), and text is crisp neutral ink.
   No gloss, no stripes — flat, quiet, expensive. Inline style="background;color" is
   emitted per block, hence the !important ink override (open/offblk keep their own
   higher-specificity !important colors). */
.blk{border-radius:8px;color:var(--au-ink-strong)!important;
  box-shadow:0 1px 2px rgba(16,42,74,.10),inset 0 0 0 1px rgba(16,42,74,.10)}
.blk::before{content:"";position:absolute;inset:0 0 0 4px;pointer-events:none;z-index:0;
  background:rgba(255,255,255,.87);border-radius:0 8px 8px 0}
.blk>*{position:relative;z-index:1}
.blk b{font-weight:800;letter-spacing:.01em}
.blk .cat{opacity:.62}
.blk:hover{transform:translateY(-1px);
  box-shadow:0 4px 12px -3px rgba(16,42,74,.22),inset 0 0 0 1px rgba(16,42,74,.14)}
.blk:hover::before{background:rgba(255,255,255,.82)}
html[data-theme="dark"] .blk{color:#F1F7FF!important;
  box-shadow:0 1px 2px rgba(0,0,0,.3),inset 0 0 0 1px rgba(150,190,240,.14)}
html[data-theme="dark"] .blk::before{background:rgba(15,23,44,.80)}
html[data-theme="dark"] .blk:hover::before{background:rgba(15,23,44,.72)}
/* drafts: extra-washed tint + dashed hairline — unmistakably unpublished, still branded */
.blk.draft{border:none;opacity:1}
.blk.draft::before{background:rgba(255,255,255,.93)}
.blk.draft{box-shadow:0 1px 2px rgba(16,42,74,.07),inset 0 0 0 1px transparent;
  outline:1.5px dashed rgba(16,42,74,.28);outline-offset:-1.5px}
html[data-theme="dark"] .blk.draft::before{background:rgba(15,23,44,.88)}
html[data-theme="dark"] .blk.draft{outline-color:rgba(150,190,240,.35)}
/* open/claimable + unavailable keep their exact semantic look — no overlay */
.blk.open::before,.blk.offblk::before{content:none}
.blk.open,.blk.offblk{box-shadow:0 1px 3px rgba(120,90,0,.18)}
/* dark: the white block text landed on the cream open tint (unreadable) — use the Open lane's amber */
html[data-theme="dark"] .blk.open{background:rgba(255,194,75,.10)!important;color:#F5C97B!important}
/* lanes: cells become clearly visible SLOTS — cool tint + hairline ring so every person's
   row reads as a track even when empty (owner: "lanes cannot be seen") */
.sg-cell{background:#EDF3FA;box-shadow:inset 0 0 0 1px rgba(31,95,168,.10),inset 0 1px 3px rgba(10,22,44,.06)}
.sg-cell.today{background:#DFEDFC;box-shadow:inset 0 0 0 1.5px rgba(47,134,214,.35),inset 0 1px 3px rgba(10,22,44,.06)}
.sched-grid{grid-template-columns:190px repeat(7,minmax(112px,1fr))}
/* people lanes get the chat-style identity chip: avatar + name + hours + progress */
.sg-name{background:#F3F7FC;box-shadow:inset 0 0 0 1px rgba(31,95,168,.10);border-radius:10px;
  flex-direction:row;align-items:center;gap:9px;padding:7px 9px}
.sg-name,.sg-name b{color:var(--au-ink-strong)}
.sg-name .sgn-av{width:30px;height:30px;border-radius:9px;font-size:11px}
.sg-name .sgn-b{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.sg-name .sgn-n{font-weight:800;font-size:13.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-name>small{margin-left:auto}
.sg-name small{color:var(--ink-3);font-size:11.5px}
.sgp{height:5px;border-radius:5px;margin-top:5px}
/* open lane + day headers: quiet, structured */
.sg-openlane{border-radius:10px;border:1.5px dashed rgba(184,134,11,.45);font-size:13px}
html[data-theme="dark"] .sg-openlane{background:rgba(255,194,75,.10);border-color:rgba(255,194,75,.4);color:#F5C97B}
.sg-head{font-weight:800;letter-spacing:.02em;color:var(--ink-2)}
html[data-theme="dark"] .sg-cell{background:rgba(148,184,235,.10);box-shadow:inset 0 0 0 1px rgba(140,180,230,.14),inset 0 1px 3px rgba(0,0,0,.3)}
html[data-theme="dark"] .sg-cell.today{background:rgba(47,134,214,.20);box-shadow:inset 0 0 0 1.5px rgba(74,163,232,.45),inset 0 1px 3px rgba(0,0,0,.3)}
html[data-theme="dark"] .sg-name{background:rgba(148,184,235,.08);box-shadow:inset 0 0 0 1px rgba(140,180,230,.12)}

/* ═══════════ P2-E · COMFORT SCALE — the whole console reads bigger ═══════════
   Owner: everything felt small and hard to navigate. Deliberate size pass (not zoom —
   CSS zoom breaks Leaflet click coordinates in the geofence map): primary reading
   sizes, controls, nav and spacing all step up together. */
:root{--side:270px}
body{font-size:14px}
.side-brand .bn{font-size:19px}
.side-brand img{height:40px;width:40px}
.side-nav .navbtn{min-height:46px;font-size:15px;gap:13px;padding:8px 13px}
.side-nav .navbtn .nav-tile,.side-foot .navbtn .nav-tile{width:30px;height:30px;border-radius:10px}
.side-nav .navbtn .nav-tile .ic,.side-foot .navbtn .nav-tile .ic{width:17px;height:17px}
.side-foot .navbtn{min-height:42px;font-size:14px}
.nav-group{font-size:10.5px}
.side-foot .ck-hintchip{min-height:42px;font-size:13px}
.page-head h1{font-size:30px}
.page-head .sub{font-size:13.5px}
.content{padding:26px 32px}
.card{padding:20px 22px}
.btn{padding:10px 18px;font-size:14px;border-radius:13px}
.btn.sm{padding:7px 14px;font-size:13px;border-radius:11px}
input,select{padding:9px 12px;font-size:14px}
.content table{font-size:14px}
.content th{font-size:11.5px;padding:11px 12px}
.content td{padding:11px 12px}
.pill{font-size:11.5px;padding:4px 12px}
.muted{font-size:13px}
.msg{font-size:14px}
.qa{font-size:14.5px;padding:15px 16px}
.attn-row{padding:12px 14px}
.attn-row .an{font-size:14.5px}
.attn-row .ac{font-size:13px}
.who .wn{font-size:14px}
.who .ws{font-size:12px}
.feed-row{font-size:14px}
#dash-kpis .kpi b{font-size:27px}
#dash-kpis .kpi>span{font-size:12.5px}
.dash-sec{font-size:11px}
.subtab{font-size:15px;padding:10px 18px}
.sec-title{font-size:15.5px}
.live-chip{font-size:13px;min-height:36px}
.stat b{font-size:23px}
.stat span{font-size:12px}
.blk{font-size:12px}
.blk b{font-size:12px}
.sg-head{font-size:12px}
.sg-name{font-size:14px}
.sg-name small{font-size:12px}
.req .rt{font-size:14.5px}
.req .rd{font-size:13px}
.up-kv{font-size:14px}
.rr-kv{font-size:14px}
.ck-it{font-size:15px;min-height:46px}
dialog{font-size:14px}
@media (max-width:720px){
  :root{--side:100%}
  .content{padding:14px}
}

/* ═══════════ 11 · PERFORMANCE + FALLBACKS ═══════════ */
@supports not (backdrop-filter:blur(1px)){
  html[data-theme="dark"]{--au-glass-bg:rgba(24,36,64,.96);--au-glass-bg-2:rgba(30,44,76,.97)}
  .card,.ck-panel{-webkit-backdrop-filter:none;backdrop-filter:none}
}
html.au-lite{--au-glass-blur:0px}
html.au-lite[data-theme="dark"]{--au-glass-bg:rgba(22,32,58,.96);--au-glass-bg-2:rgba(26,38,66,.97)}
html.au-lite .au-blob,html.au-lite #au-aurora{animation:none!important;will-change:auto}
html.au-lite .au-blob{filter:blur(38px)}
html.au-lite .card,html.au-lite .ck-panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
@media (prefers-reduced-motion:reduce){
  .au-blob{animation:none!important}
}

/* ═══════════ 12 · RESPONSIVE + PRINT ═══════════ */
@media (max-width:720px){
  :root{--au-aurora-blur:44px}
  html[data-theme="dark"]{--au-glass-blur:8px}
  .content{padding:14px}
  .side{border-bottom:1px solid rgba(150,190,240,.12)}
  .page-head h1{font-size:22px}
}
@media print{
  #au-aurora{display:none!important}
  .content th{position:static;box-shadow:none}
}
