/* ============================================================================
   SPOTLESS OFFICE CONSOLE — "SHINE", the worker app's look (change 3, 13 Nov 2026).
   Loads LAST (after admin.css, the inline head styles and admin-aurora.css). Every selector starts with
   html.shine (the head bootstrap sets the class before the first paint), also inside @media — the inline
   <style> blocks inside <body> come later in the page and win at equal specificity, so the extra class
   matters; a rule against an inline style="" needs !important.
   One colour for actions (the app's blue), quiet cards, the display face for titles and numbers; green /
   amber / red only mean passed / needs your answer / a problem. Light and dark follow sp_admin_theme.

   One section per owner (console-blueprint §7.1.4). Write ONLY between your own header and the next one;
   colours only through tokens (a hard-coded colour needs a html.shine[data-theme="dark"] twin in the same
   section); logical properties (margin-inline-*, inset-inline-*); the phone is @media (max-width:599px);
   tap targets of at least 44 px; motion = transform / opacity, nothing moves under prefers-reduced-motion.
     §0 FONTS + TOKENS · §1 SHELL · §2 SHARED COMPONENTS   Step F (final)
     §3 TODAY (T) · §4 REQUESTS (R) · §5 HOURS (H) · §6 SCHEDULE (S) · §7 PAGES (M)
   ============================================================================ */

/* ═══════════ §0 · FONTS + TOKENS (Step F) ═══════════
   The fonts are the worker app's files (read only, /app/fonts). The --sh-* tokens are a COPY of
   /app/app-shine.css §1, §1b and §12 — tests/test_console_shell.js compares every value, light and dark, so
   the two cannot drift apart (one shared file is a clean-up for after Monday). Then the console's own
   variables are pointed at them, so the pages that were not redesigned follow the new look too. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:600 900;font-stretch:100% 125%;font-display:swap;src:url(../app/fonts/archivo-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600 900;font-stretch:100% 125%;font-display:swap;src:url(../app/fonts/archivo-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../app/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../app/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../app/fonts/inter-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../app/fonts/inter-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}

/* the worker app's tokens — light (day) */
html.shine{
  --sh-page:#F4F6FA;
  --sh-glow:radial-gradient(120% 520px at 88% -140px, rgba(47,107,255,.10), rgba(47,107,255,0) 70%);
  --sh-surface:#FFFFFF; --sh-surface-2:#F8F9FC; --sh-sunk:#ECEFF5;
  --sh-line:#E2E6EE; --sh-line-strong:#CDD3DF;
  --sh-ink:#0C1424; --sh-ink-2:#5A6579; --sh-ink-3:#646E82;
  --sh-accent:#2E66F7;              /* fills (white text on it 4.8:1) */
  --sh-accent-ink:#2456E0;          /* accent text and icons on the page */
  --sh-soft:#EAF0FF;                /* icon tiles, active tab pill */
  --sh-pass:#0A7F4F; --sh-pass-bg:#E7F6EE; --sh-pass-line:#BFE6D2;
  --sh-bar:rgba(255,255,255,.94);
  --sh-shadow:0 1px 2px rgba(12,20,36,.05), 0 6px 18px -10px rgba(12,20,36,.16);
  --sh-btn-shadow:0 6px 16px -8px rgba(47,107,255,.55);
  --sh-hero:#0C1424; --sh-hero-glow:radial-gradient(130% 90% at 100% 0%, rgba(46,102,247,.55), rgba(46,102,247,0) 62%);
  --sh-hero-ink:#FFFFFF; --sh-hero-ink-2:#C9D6F2; --sh-hero-lbl:#A9C4FF; --sh-hero-btn:rgba(255,255,255,.12); --sh-hero-stop:#FFB4A8;
  --sh-live:#3DDC97;
  --sh-warn:#8A5200; --sh-warn-bg:#FBEBCF; --sh-bad:#C4321F; --sh-bad-bg:#FBE6E2;
  --sh-ring:#FFFFFF;                /* the bottom bar's colour — the raised Chat button's ring is cut from it */
}
/* the worker app's tokens — dark (night) */
html.shine[data-theme="dark"]{
  --sh-page:#090E1A;
  --sh-glow:radial-gradient(120% 560px at 88% -160px, rgba(28,58,122,.95), rgba(28,58,122,0) 72%);
  --sh-surface:#111A2B; --sh-surface-2:#142036; --sh-sunk:#0C1322;
  --sh-line:rgba(255,255,255,.08); --sh-line-strong:rgba(255,255,255,.16);
  --sh-ink:#EEF3FF; --sh-ink-2:#9AA8C1; --sh-ink-3:#8190AB;
  --sh-accent:#2E66F7; --sh-accent-ink:#7EAEFF; --sh-soft:rgba(77,141,255,.15);
  --sh-pass:#3DDC97; --sh-pass-bg:rgba(61,220,151,.09); --sh-pass-line:rgba(61,220,151,.28);
  --sh-bar:rgba(9,14,26,.92);
  --sh-shadow:none;
  --sh-btn-shadow:0 8px 22px -10px rgba(47,107,255,.85);
  --sh-hero:#15233D;
  --sh-warn:#F2C14E; --sh-warn-bg:rgba(242,193,78,.14); --sh-bad:#FF8A7A; --sh-bad-bg:rgba(255,138,122,.14);
  --sh-ring:#0B111E;
}
/* the console's own variables (aurora §0, the inline head block), pointed at the tokens — light */
html.shine{
  color-scheme:light;
  --display:'Archivo','Bricolage Grotesque',system-ui,-apple-system,sans-serif;
  --body:'Inter','Hanken Grotesk',system-ui,-apple-system,sans-serif;
  --bg:var(--sh-page); --au-bg-base:var(--sh-page);
  --surface:var(--sh-surface); --surface-2:var(--sh-surface-2); --surface-sunk:var(--sh-sunk);
  --ink:var(--sh-ink); --ink-2:var(--sh-ink-2); --ink-3:var(--sh-ink-3); --au-ink-strong:var(--sh-ink);
  --hair:var(--sh-line); --au-hairline:var(--sh-line); --au-glass-border:var(--sh-line);
  --au-glass-bg:var(--sh-surface); --au-glass-bg-2:var(--sh-surface-2); --au-glass-hi:transparent;
  --au-glass-blur:0px; --au-glass-shadow:var(--sh-shadow);
  --au-aurora-1:transparent; --au-aurora-2:transparent; --au-aurora-3:transparent;
  --au-th-bg:var(--sh-surface); --au-zebra:transparent; --au-row-hover:var(--sh-surface-2);
  /* the four colours: inline style="…var(--blue)" text and pills (6.0:1 on white) — green, amber and red
     only for their meaning */
  --blue:#2456E0; --blue2:#1F4FD6; --green:#0A7F4F; --red:#C4321F; --amber:#8A5200;
  --green-d:#0A7F4F; --green-ink:var(--sh-pass);
  --grad:linear-gradient(var(--sh-accent),var(--sh-accent));
  --au-blue-grad:linear-gradient(var(--sh-accent),var(--sh-accent));
  --au-green-grad:linear-gradient(var(--sh-accent),var(--sh-accent));
  --e1:var(--sh-shadow); --e2:var(--sh-shadow); --e3:0 24px 60px -18px rgba(12,20,36,.42);
  --side:232px;                     /* the sidebar on a computer */
  --bb-h:64px;                      /* the bottom bar on a phone (without the home-bar inset) */
}
/* …and dark: the four colours are bright (good as text, ≥ 7:1 on the night surface); white text on one of
   them gets the dark ink #0C1424 instead (§2) */
html.shine[data-theme="dark"]{
  color-scheme:dark;
  --blue:#7EAEFF; --blue2:#3A78FF; --green:#3DDC97; --red:#FF8A7A; --amber:#F2C14E;
  --green-d:#3DDC97;
  --e3:0 24px 60px -18px rgba(0,0,0,.7);
}

/* ═══════════ §1 · SHELL (Step F) ═══════════
   A computer (≥ 600 px): the sidebar (logo, 7 sections, Quick find) + the page. The old ≤ 720 px "chip row"
   (admin.css, aurora §12) is overridden here, so 600–720 px keeps the sidebar. A phone (< 600 px): the top
   bar #mtop, the page, the bottom bar #bbar (5 buttons). z-order: #mtop 790 · #bbar 800 · #rr-ov #uw-ov 900 ·
   #sp-bg 940 · #sp 950 · #ck-ov 990 · #undo-bar #toast 1500 · #notif-notice 2000 · #sp-modal 9999 · dialogs. */
html.shine{ background:var(--sh-page); }
html.shine body, html.shine body.shell{ background:transparent; color:var(--sh-ink); font-family:var(--body); }
html.shine #au-aurora{ display:none !important; }
html.shine [hidden]{ display:none !important; }
html.shine :is(h1,h2,h3,.page-head h1,.sec-title){ font-family:var(--display); font-stretch:112%; letter-spacing:-.015em; }
html.shine ::selection{ background:var(--sh-soft); }

/* ---- sign-in ---- */
html.shine #login{ max-width:400px; margin:max(40px, 8vh) auto 40px; padding:32px 28px 26px; text-align:center; border-radius:24px; }
html.shine .login-logo{ display:block; width:64px; height:64px; margin:0 auto 14px; border-radius:15px; }
html.shine .login-wm{ font:800 40px/1 var(--display); font-stretch:115%; letter-spacing:-.03em; color:var(--sh-ink); text-transform:lowercase; }
html.shine .login-tag{ margin:6px 0 24px; font:500 15px/1.3 var(--body); color:var(--sh-ink-2); }
html.shine .login-lbl{ display:block; margin:0 0 6px; text-align:start; font:600 13px/1.2 var(--body); color:var(--sh-ink-2); }
html.shine #login #pin{ height:52px; border-radius:14px; text-align:center; font-size:20px; letter-spacing:6px; }
html.shine #login .login-go{ width:100%; min-height:52px; margin-top:12px; border-radius:14px; font-size:16.5px; }
html.shine #login-msg{ margin:12px 0 0; }
html.shine #login-msg:empty{ display:none; }

/* ---- the frame: sidebar + page (a computer; every width until the phone rules below) ---- */
html.shine .layout{ display:flex; flex-direction:row; align-items:stretch; min-height:100vh; min-height:100dvh; }
html.shine .side{
  width:var(--side); flex:none; position:sticky; top:0; height:100vh; height:100dvh; overflow:hidden;
  display:flex; flex-direction:column; color:var(--sh-ink-2);
  background:var(--sh-surface); border:0; border-inline-end:1px solid var(--sh-line); box-shadow:none;
}
html.shine .side-brand{ display:flex; align-items:center; gap:10px; padding:18px 18px 16px; flex:none; }
html.shine .side-brand .logo{ width:30px; height:30px; flex:none; border-radius:8px; }
html.shine .side-wm{ font:800 21px/1 var(--display); font-stretch:112%; letter-spacing:-.02em; color:var(--sh-ink); text-transform:lowercase; }
html.shine .side-nav{ display:flex; flex-direction:column; flex-wrap:nowrap; gap:2px; padding:4px 10px; flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; }
html.shine .side-nav .navbtn{
  display:flex; align-items:center; gap:12px; width:100%; min-height:44px; margin:0; padding:0 12px;
  border:0; border-radius:12px; background:transparent; color:var(--sh-ink-2); box-shadow:none; transform:none;
  font:600 15px/1.2 var(--body); letter-spacing:0; text-align:start; white-space:nowrap; cursor:pointer; position:relative;
  transition:background-color .15s, color .15s;
}
html.shine .side-nav .navbtn::before{ content:none; }
html.shine .side-nav .navbtn:hover{ background:var(--sh-surface-2); color:var(--sh-ink); transform:none; }
html.shine .side-nav .navbtn:active{ transform:scale(.98); }
html.shine .side-nav .navbtn.on{ background:var(--sh-soft); color:var(--sh-accent-ink); font-weight:700; box-shadow:none; }
html.shine .navbtn-ic{ display:inline-grid; place-items:center; width:24px; height:24px; flex:none; }
html.shine .navbtn-ic svg{ width:22px; height:22px; }
html.shine .navbtn-l{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
html.shine .nav-dot{ width:9px; height:9px; flex:none; border-radius:50%; background:#D92D20; margin-inline-start:auto; }
html.shine[data-theme="dark"] .nav-dot{ background:#D92D20; }   /* the same red in both themes, as the app's counts */
html.shine .side-foot{ margin-top:auto; padding:12px 10px 16px; display:flex; flex-direction:column; gap:2px; flex:none; overflow:visible; border-top:1px solid var(--sh-line); }
html.shine .side-foot .ck-hintchip{
  display:flex; align-items:center; gap:10px; width:100%; min-height:44px; margin:0; padding:0 10px 0 12px;
  border:1px solid var(--sh-line-strong); border-radius:12px; background:var(--sh-surface-2); color:var(--sh-ink-2);
  font:600 14px/1 var(--body); text-align:start; white-space:nowrap; cursor:pointer;
}
html.shine .side-foot .ck-hintchip:hover{ background:var(--sh-soft); color:var(--sh-accent-ink); border-color:transparent; }
html.shine .side-foot .ck-hintchip > span:not(.ck-hintic){ flex:1; }
html.shine .ck-hintic{ display:inline-grid; place-items:center; flex:none; }
html.shine .ck-hintic svg{ width:18px; height:18px; }
html.shine .side-foot .ck-hintchip kbd{ font:700 11px/1 var(--body); letter-spacing:.02em; background:var(--sh-sunk); color:var(--sh-ink-2); border-radius:6px; padding:4px 7px; }
html.shine .content{ flex:1; min-width:0; padding:24px 32px 48px; }
html.shine #mtop, html.shine #bbar{ display:none; }

/* ---- the counts (red, white figures — the same red in both themes, as the worker app) ---- */
html.shine :is(.side-nav .navbtn .badge, .side-nav .navbtn.on .badge, .bb .badge, .subnav-n, .mrow-n){
  display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-inline-start:auto;
  border-radius:99px; background:#D92D20; color:#FFFFFF; box-shadow:none; font:700 11.5px/1 var(--body); letter-spacing:0;
}
html.shine[data-theme="dark"] :is(.side-nav .navbtn .badge, .bb .badge, .subnav-n, .mrow-n){ background:#D92D20; color:#FFFFFF; }

/* ---- the strip of a section's pages ---- */
html.shine #subnav{ display:flex; gap:6px; flex-wrap:nowrap; overflow-x:auto; margin:-6px 0 18px; padding:2px 0; scrollbar-width:none; }
html.shine #subnav::-webkit-scrollbar{ display:none; }
html.shine .subnav-b{
  flex:none; display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:0 15px; margin:0;
  border:1px solid var(--sh-line-strong); border-radius:99px; background:var(--sh-surface); color:var(--sh-ink-2);
  font:600 14px/1 var(--body); white-space:nowrap; cursor:pointer; transition:background-color .15s, color .15s;
}
html.shine .subnav-b:hover{ background:var(--sh-surface-2); color:var(--sh-ink); }
html.shine .subnav-b.on{ background:var(--sh-soft); border-color:transparent; color:var(--sh-accent-ink); font-weight:700; }
html.shine .subnav-b .subnav-n{ margin-inline-start:0; min-width:18px; height:18px; font-size:11px; }

/* ---- More: every page, grouped ---- */
html.shine .mrow-cols{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap:0 22px; align-items:start; }
html.shine .mrow-grp{ margin:0 0 20px; min-width:0; }
html.shine .mrow-h{ margin:0 4px 8px; font:700 12px/1.2 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--sh-ink-3); }
html.shine .mrow-list{ background:var(--sh-surface); border:1px solid var(--sh-line); border-radius:16px; overflow:hidden; box-shadow:var(--sh-shadow); }
html.shine .mrow-host{ display:contents; }
html.shine .mrow{
  display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; align-items:center; gap:12px; width:100%; min-height:62px;
  margin:0; padding:10px 12px 10px 14px; border:0; border-top:1px solid var(--sh-line); border-radius:0;
  background:transparent; color:var(--sh-ink); font:inherit; text-align:start; cursor:pointer;
}
html.shine .mrow.mrow--first{ border-top:0; }
html.shine .mrow:hover{ background:var(--sh-surface-2); }
html.shine .mrow:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:-3px; }
html.shine .mrow-ic{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .mrow-ic svg{ width:20px; height:20px; }
html.shine .mrow-t{ min-width:0; display:flex; flex-direction:column; gap:2px; }
html.shine .mrow-t b{ font:600 15.5px/1.25 var(--body); color:var(--sh-ink); }
html.shine .mrow-t small{ font:400 13px/1.35 var(--body); color:var(--sh-ink-2); }
html.shine .mrow-n{ grid-column:3; }
html.shine .mrow-chev{ grid-column:4; display:grid; place-items:center; color:var(--sh-ink-3); }   /* at the end, with or without a count */
html.shine .mrow-chev svg{ width:18px; height:18px; }

/* ---- the notice of the browser's notifications (an inline-styled box) clears the bottom bar on a phone ---- */
html.shine #notif-notice{ border-color:var(--sh-accent) !important; font-family:var(--body); }

/* ---- a phone (< 600 px): no sidebar — the top bar, the page and the bottom bar ---- */
@media (max-width:599px){
  html.shine .layout{ flex-direction:column; }
  html.shine .side{ display:none; }
  html.shine #login{ margin:calc(env(safe-area-inset-top, 0px) + max(24px, 6vh)) 16px 24px; padding:28px 20px 22px; }
  html.shine #mtop{
    display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:790; min-height:56px;
    padding:calc(env(safe-area-inset-top, 0px) + 8px) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
    background:var(--sh-page); border-bottom:1px solid var(--sh-line);
  }
  html.shine #mtop .logo{ width:28px; height:28px; flex:none; border-radius:7px; }
  html.shine .mtop-tt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
  html.shine #mtop-t{ font:800 18px/1.15 var(--display); font-stretch:112%; letter-spacing:-.015em; color:var(--sh-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html.shine #mtop-s{ font:500 12.5px/1.25 var(--body); color:var(--sh-ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html.shine #mtop-s:empty{ display:none; }
  html.shine .mtop-find{ flex:none; width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid var(--sh-line); border-radius:12px; background:var(--sh-surface); color:var(--sh-ink); cursor:pointer; }
  html.shine .content{ padding:12px max(14px, env(safe-area-inset-right, 0px)) calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 16px) max(14px, env(safe-area-inset-left, 0px)); }
  html.shine #subnav{ margin:0 0 14px; }
  html.shine .subnav-b{ min-height:44px; padding:0 16px; }
  html.shine .page-head h1{ font-size:22px; }
  html.shine #t-more > .page-head, html.shine #t-today > #td-head{ display:none; }   /* the top bar says it */
  html.shine .mrow-grp[data-grp="day"]{ order:-1; }   /* Hours and pay and Addresses (no bottom button) come first */

  html.shine #bbar{
    display:block; position:fixed; inset-inline:0; bottom:0; z-index:800;
    padding:0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background:var(--sh-ring); border-top:1px solid var(--sh-line);
  }
  html.shine .bb-rail{ display:flex; }
  html.shine .bb{
    flex:1 1 0; min-width:0; min-height:var(--bb-h); position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:3px;
    margin:0; padding:6px 2px 7px; border:0; background:none; color:var(--sh-ink-3); font:600 12px/1.1 var(--body); cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  html.shine .bb-ic{ display:inline-grid; place-items:center; padding:5px 16px; border-radius:99px; transition:background-color .15s, color .15s; }
  html.shine .bb-ic svg{ width:24px; height:24px; }
  html.shine .bb-l{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  html.shine .bb.on{ color:var(--sh-accent-ink); font-weight:700; }
  html.shine .bb.on .bb-ic{ background:var(--sh-soft); color:var(--sh-accent-ink); }
  html.shine .bb:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:-3px; border-radius:14px; }
  /* the raised Chat button in the middle — a copy of the worker app's §12 */
  html.shine .bb.bb--chat .bb-ic, html.shine .bb.bb--chat.on .bb-ic{
    padding:12px; border-radius:50%; margin-top:-22px; background:var(--sh-accent); color:#FFFFFF;
    box-shadow:0 0 0 5px var(--sh-ring), var(--sh-btn-shadow);
  }
  html.shine[data-theme="dark"] .bb.bb--chat .bb-ic{ color:#FFFFFF; }
  html.shine .bb.bb--chat .bb-ic svg{ width:26px; height:26px; }
  html.shine .bb.bb--chat:active .bb-ic{ transform:scale(.94); }
  html.shine .bb .badge{ position:absolute; top:4px; inset-inline-start:calc(50% + 6px); margin:0; min-width:18px; height:18px; padding:0 5px; font-size:11px; box-shadow:0 0 0 2px var(--sh-ring); }
  html.shine .bb.bb--chat .badge{ top:-16px; inset-inline-start:calc(50% + 12px); }
  html.shine .bb-dot{ position:absolute; top:7px; inset-inline-start:calc(50% + 10px); width:10px; height:10px; border-radius:50%; background:#D92D20; box-shadow:0 0 0 2px var(--sh-ring); }
  html.shine[data-theme="dark"] .bb-dot{ background:#D92D20; }

  /* everything pinned to the bottom of the screen clears the bar — and the raised Chat button above it */
  html.shine #bulkbar{ bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px); }
  html.shine #notif-notice{ bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px) !important; }
  html.shine #ck-ov{ padding:calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px; }
}

/* ═══════════ §2 · SHARED COMPONENTS (Step F) ═══════════
   Element and class rules every page gets: cards, buttons, inputs, pills, tables, dialogs, the one tile
   colour, empty states; the helpers' own pieces (uiRow / uiPill / uiSect, the question sheet and its panel
   mode, the openModal side panel, toast, the undo bar, tables → rows on a phone); the shift panel's base look. */

/* ---- cards: solid, a hairline, the quiet shadow; the old coloured left rails are gone (decoration) ---- */
html.shine .card{ background:var(--sh-surface); border:1px solid var(--sh-line); border-radius:18px; box-shadow:var(--sh-shadow); -webkit-backdrop-filter:none; backdrop-filter:none; }
html.shine .card:hover{ border-color:var(--sh-line); box-shadow:var(--sh-shadow); }
html.shine :is(.rail-b,.rail-g,.rail-a,.rail-r,.rail-t){ border-inline-start:1px solid var(--sh-line); }
html.shine .page-head h1{ font:800 28px/1.15 var(--display); font-stretch:112%; letter-spacing:-.02em; color:var(--sh-ink); }
html.shine .page-head .sub{ color:var(--sh-ink-2); }
html.shine .muted{ color:var(--sh-ink-2); }

/* ---- buttons: one flat blue (Save is an action, so blue too); quiet grey; red only to delete or refuse ---- */
html.shine .btn{
  --edge:transparent; --keyline:transparent; --shade:transparent; --bloom:transparent;
  background:var(--sh-accent); color:#FFFFFF; border:1px solid transparent; border-radius:12px; box-shadow:var(--sh-btn-shadow);
  font-family:var(--body); font-weight:700; letter-spacing:0; filter:none;
}
html.shine .btn:hover{ background:var(--blue2); color:#FFFFFF; filter:none; box-shadow:var(--sh-btn-shadow); transform:none; }
html.shine .btn:active{ transform:scale(.98); filter:none; }
html.shine .btn.sm{ border-radius:10px; }
html.shine .btn.g{ background:var(--sh-accent); color:#FFFFFF; }
html.shine .btn.g:hover{ background:var(--blue2); }
html.shine .btn.gr, html.shine[data-theme="dark"] .btn.gr{ background:var(--sh-surface); color:var(--sh-ink); border:1px solid var(--sh-line-strong); box-shadow:none; }
html.shine .btn.gr:hover, html.shine[data-theme="dark"] .btn.gr:hover{ background:var(--sh-surface-2); color:var(--sh-ink); border-color:var(--sh-line-strong); box-shadow:none; }
html.shine .btn.danger, html.shine .sheet-btns .btn.danger{ background:var(--red); color:#FFFFFF; box-shadow:none; }
html.shine .btn:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:2px; box-shadow:none; }
html.shine .btn:disabled, html.shine .btn:disabled:hover{ opacity:.5; filter:none; box-shadow:none; transform:none; }
/* dark: the four colours are bright — white text on them becomes the dark ink */
html.shine[data-theme="dark"] .btn.danger, html.shine[data-theme="dark"] .sheet-btns .btn.danger{ color:#0C1424; }
html.shine[data-theme="dark"] :is(.pill,.btn,.attn-row .ac):is([style*="var(--green)"],[style*="var(--red)"],[style*="var(--amber)"],[style*="var(--blue)"]){ color:#0C1424; }
html.shine[data-theme="dark"] .attn-row .ac{ color:#0C1424; }

/* ---- inputs (border-color only: a component that has no border keeps none) ---- */
html.shine :where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit]),select,textarea){
  background-color:var(--sh-surface); color:var(--sh-ink); border-color:var(--sh-line-strong);
}
html.shine[data-theme="dark"] :where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit]),select,textarea){
  background-color:var(--sh-sunk); color:var(--sh-ink); border-color:var(--sh-line-strong);
}
html.shine :where(input,select,textarea):focus, html.shine[data-theme="dark"] :where(input,select,textarea):focus{
  outline:none; border-color:var(--sh-accent-ink); box-shadow:0 0 0 3px var(--sh-soft);
}
html.shine :where(input[type=checkbox],input[type=radio],input[type=range]){ accent-color:var(--sh-accent); }

/* ---- pills: the shape (their colour stays inline: it carries the meaning); one without a colour is grey ---- */
html.shine .pill{ box-shadow:none; letter-spacing:.01em; }
html.shine .pill:not([style*="background"]){ background:var(--sh-sunk); color:var(--sh-ink-2); }
html.shine .req-pill b{ background:var(--amber); color:#FFFFFF; }
html.shine[data-theme="dark"] .req-pill b{ color:#0C1424; }

/* ---- one tile colour, not a rainbow (page headers, dashboard rows, request kinds, quick actions) ---- */
html.shine :is([class*="gtile--"],[class*="empty-ic--"]){ background:var(--sh-soft) !important; color:var(--sh-accent-ink) !important; box-shadow:none !important; }
html.shine :is([class*="gtile--"],[class*="empty-ic--"]) :is(svg,.ic){ color:inherit; stroke:currentColor; }
html.shine .empty-ic{ background:var(--sh-soft); color:var(--sh-accent-ink); box-shadow:none; }
html.shine .empty-ic.empty-ic--green{ background:var(--sh-pass-bg) !important; color:var(--sh-pass) !important; }   /* green: "all done" only */
html.shine .empty b{ color:var(--sh-ink); }
html.shine .grad-num{ background:none; -webkit-background-clip:border-box; background-clip:border-box; -webkit-text-fill-color:currentColor; color:var(--sh-ink); font-family:var(--display); }

/* ---- tables, sub-tabs, dialogs ---- */
html.shine .content th{ background:var(--sh-surface); color:var(--sh-ink-3); border-bottom:1px solid var(--sh-line); box-shadow:none; }
html.shine .content td{ border-bottom-color:var(--sh-line); }
html.shine .subtabs{ border-bottom:1px solid var(--sh-line); }
html.shine .subtab{ color:var(--sh-ink-2); font-family:var(--body); }
html.shine .subtab:hover{ color:var(--sh-ink); }
html.shine .subtab.on{ color:var(--sh-accent-ink); border-bottom-color:var(--sh-accent-ink); }
html.shine dialog{ background:var(--sh-surface); color:var(--sh-ink); border:1px solid var(--sh-line); border-radius:20px; box-shadow:var(--e3); }
html.shine dialog::backdrop{ background:rgba(9,14,26,.48); }

/* ---- Quick find (⌘K) ---- */
html.shine #ck-ov{ background:rgba(9,14,26,.45); -webkit-backdrop-filter:none; backdrop-filter:none; }
html.shine .ck-panel{ background:var(--sh-surface); color:var(--sh-ink); border:1px solid var(--sh-line); border-radius:18px; box-shadow:var(--e3); }
html.shine #ck-in{ background:var(--sh-surface); color:var(--sh-ink); border-bottom:1px solid var(--sh-line); font-family:var(--body); }
html.shine .ck-it.sel{ background:var(--sh-soft); color:var(--sh-accent-ink); box-shadow:none; }
html.shine .ck-kind{ background:var(--sh-sunk); color:var(--sh-ink-2); }
html.shine .ck-rec{ background:var(--sh-warn-bg); color:var(--sh-warn); }
html.shine .ck-foot{ border-top-color:var(--sh-line); color:var(--sh-ink-2); }

/* ---- uiRow · uiPill · uiSect (wrap rows in <div class="ui-list">) ---- */
html.shine .ui-list{ background:var(--sh-surface); border:1px solid var(--sh-line); border-radius:16px; overflow:hidden; box-shadow:var(--sh-shadow); }
html.shine .ui-row{ display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:8px 12px; padding:10px 14px; border-top:1px solid var(--sh-line); }
html.shine .ui-row:first-child{ border-top:0; }
html.shine .ui-row.ui-row--nolead{ grid-template-columns:minmax(0,1fr) auto auto; }
html.shine .ui-av{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:#FFFFFF; font:800 12.5px/1 var(--body); }
html.shine .ui-row__ic{ width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .ui-row__m{ min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; margin:0; padding:0; border:0; background:none; color:inherit; font:inherit; text-align:start; }
html.shine button.ui-row__m{ min-height:44px; cursor:pointer; }
html.shine button.ui-row__m:hover .ui-row__t{ color:var(--sh-accent-ink); }
html.shine button.ui-row__m:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:2px; border-radius:8px; }
html.shine .ui-row__t{ font:600 15px/1.3 var(--body); color:var(--sh-ink); overflow-wrap:anywhere; }
html.shine .ui-row__s{ font:400 13px/1.35 var(--body); color:var(--sh-ink-2); overflow-wrap:anywhere; }
html.shine .ui-row__r{ justify-self:end; }
html.shine .ui-row__acts{ display:flex; gap:8px; justify-self:end; }
html.shine .btn.ui-act{ min-height:44px; padding:0 16px; font-size:14px; }
html.shine .btn.ui-act--quiet{ background:var(--sh-surface); color:var(--sh-ink); border:1px solid var(--sh-line-strong); box-shadow:none; }
html.shine .btn.ui-act--quiet:hover{ background:var(--sh-surface-2); color:var(--sh-ink); }
html.shine .btn.ui-act--danger{ background:var(--red); color:#FFFFFF; }
html.shine[data-theme="dark"] .btn.ui-act--danger{ color:#0C1424; }
html.shine .ui-pill{ display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:99px; background:var(--sh-sunk); color:var(--sh-ink-2); font:700 12px/1 var(--body); white-space:nowrap; }
html.shine .ui-pill--go{ background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .ui-pill--ok{ background:var(--sh-pass-bg); color:var(--sh-pass); }
html.shine .ui-pill--wait{ background:var(--sh-warn-bg); color:var(--sh-warn); }
html.shine .ui-pill--bad{ background:var(--sh-bad-bg); color:var(--sh-bad); }
html.shine .ui-sect{ display:flex; align-items:center; gap:8px; margin:20px 2px 8px; font:700 12px/1.2 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--sh-ink-3); }
html.shine .ui-sect:first-child{ margin-top:4px; }
html.shine .ui-sect__n{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:99px; background:var(--sh-soft); color:var(--sh-accent-ink); font:700 11.5px/1 var(--body); letter-spacing:0; }
html.shine .ui-sect__n--bad{ background:#D92D20; color:#FFFFFF; }
html.shine[data-theme="dark"] .ui-sect__n--bad{ background:#D92D20; color:#FFFFFF; }
html.shine .ui-sect__end{ margin-inline-start:auto; text-transform:none; letter-spacing:0; }
@media (max-width:599px){
  html.shine .ui-row{ grid-template-columns:auto minmax(0,1fr) auto; }
  html.shine .ui-row.ui-row--nolead{ grid-template-columns:minmax(0,1fr) auto; }
  html.shine .ui-row__acts{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit, minmax(0, 1fr)); gap:8px; justify-self:stretch; }
}

/* ---- the question sheet (askSheet) and its panel mode (askSheet({panel:true})) ---- */
html.shine dialog.sheet{ padding:20px; }
html.shine dialog.sheet h3{ font:800 19px/1.25 var(--display); font-stretch:112%; letter-spacing:-.01em; }
html.shine .sheet-btns .btn{ min-height:44px; }
html.shine .sheet-row > label, html.shine .sheet-lbl{ color:var(--sh-ink-2); }
html.shine .ask-x{ display:none; }
html.shine dialog.sheet.sheet--panel{
  position:fixed; inset:0 0 0 auto; margin:0; width:min(460px, 100vw); max-width:100vw; height:100%; height:100dvh; max-height:none;
  padding:0; overflow:hidden; border:0; border-inline-start:1px solid var(--sh-line); border-radius:0;
  box-shadow:-18px 0 48px -16px rgba(12,20,36,.35);
}
html.shine dialog.sheet.sheet--panel[open]{ display:flex; flex-direction:column; animation:pnIn .26s cubic-bezier(.22,.9,.32,1) both; }
html.shine dialog.sheet.sheet--panel .ask-x{
  display:grid; place-items:center; position:absolute; top:calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end:12px; z-index:2;
  width:44px; height:44px; padding:0; border:0; border-radius:12px; background:var(--sh-sunk); color:var(--sh-ink-2); cursor:pointer;
}
html.shine dialog.sheet.sheet--panel .ask-x svg{ width:20px; height:20px; }
html.shine dialog.sheet.sheet--panel #ask-title{ flex:none; margin:0; padding-block:calc(22px + env(safe-area-inset-top, 0px)) 16px; padding-inline:20px 68px; border-bottom:1px solid var(--sh-line); }
html.shine dialog.sheet.sheet--panel #ask-body{ flex:1; min-height:0; overflow-y:auto; padding:16px 20px; }
html.shine dialog.sheet.sheet--panel #ask-msg{ flex:none; margin:0; padding:0 20px 10px; }
html.shine dialog.sheet.sheet--panel #ask-btns{ flex:none; margin:0; padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--sh-line); background:var(--sh-surface-2); }
@keyframes pnIn{ from{ transform:translateX(28px); opacity:0; } to{ transform:none; opacity:1; } }
@media (max-width:599px){
  html.shine dialog.sheet.sheet--panel{ width:100vw; border:0; }
  html.shine dialog.sheet.sheet--panel #ask-btns .btn{ flex:1 1 0; }
}

/* ---- openModal(): the generic box is a side panel (#sp-modal.pn-ov > .pn-box) ---- */
html.shine .pn-ov{ position:fixed; inset:0; z-index:9999; display:flex; justify-content:flex-end; background:rgba(9,14,26,.45); }
html.shine .pn-box{
  width:min(460px, 100vw); height:100%; height:100dvh; display:flex; flex-direction:column; outline:none;
  background:var(--sh-surface); color:var(--sh-ink); border-inline-start:1px solid var(--sh-line); box-shadow:-18px 0 48px -16px rgba(12,20,36,.35);
  animation:pnIn .26s cubic-bezier(.22,.9,.32,1) both;
}
html.shine .pn-head{ flex:none; display:flex; align-items:center; gap:10px; padding-block:calc(12px + env(safe-area-inset-top, 0px)) 12px; padding-inline:20px 12px; border-bottom:1px solid var(--sh-line); }
html.shine .pn-title{ flex:1; min-width:0; }
html.shine .pn-title h3{ margin:0; font:800 19px/1.25 var(--display); font-stretch:112%; letter-spacing:-.01em; }
html.shine .pn-x{ flex:none; width:44px; height:44px; display:grid; place-items:center; padding:0; border:0; border-radius:12px; background:var(--sh-sunk); color:var(--sh-ink-2); cursor:pointer; }
html.shine .pn-x svg{ width:20px; height:20px; }
html.shine .pn-body{ flex:1; min-height:0; overflow-y:auto; padding:16px 20px; }
html.shine .pn-foot{ flex:none; display:flex; justify-content:flex-end; gap:8px; padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--sh-line); background:var(--sh-surface-2); }
html.shine .pn-foot .btn{ min-height:44px; }
/* the two board dialogs that are forms (bulk edit, templates): the same side panel, by CSS only */
html.shine dialog.pn-dlg{
  position:fixed; inset:0 0 0 auto; margin:0; width:min(460px, 100vw); max-width:100vw; height:100%; height:100dvh; max-height:none;
  padding:calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y:auto;
  border:0; border-inline-start:1px solid var(--sh-line); border-radius:0; box-shadow:-18px 0 48px -16px rgba(12,20,36,.35);
}
html.shine dialog.pn-dlg[open]{ animation:pnIn .26s cubic-bezier(.22,.9,.32,1) both; }
html.shine dialog.pn-dlg .btn{ min-height:44px; }
html.shine[data-theme="dark"] :is(dialog.sheet.sheet--panel,.pn-box,dialog.pn-dlg){ box-shadow:-18px 0 48px -16px rgba(0,0,0,.7); }

/* ---- the shift panel (#sp): the same header / footer look (package S aligns the rest) ---- */
html.shine #sp-bg{ background:rgba(9,14,26,.45); }
html.shine #sp{ width:min(460px, 100vw); background:var(--sh-surface); color:var(--sh-ink); border-inline-start:1px solid var(--sh-line); box-shadow:-18px 0 48px -16px rgba(12,20,36,.35); }
html.shine[data-theme="dark"] #sp{ background:var(--sh-surface); box-shadow:-18px 0 48px -16px rgba(0,0,0,.7); }
html.shine .sp-head{ border-bottom-color:var(--sh-line); padding-top:calc(15px + env(safe-area-inset-top, 0px)); }
html.shine .sp-foot{ background:var(--sh-surface-2); border-top-color:var(--sh-line); padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px)); }
html.shine .sp-x{ width:44px; height:44px; border-radius:12px; background:var(--sh-sunk); color:var(--sh-ink-2); }
html.shine .sp-sec{ border-bottom-color:var(--sh-line); }
@media (max-width:599px){ html.shine #sp{ width:100vw; border:0; } }

/* ---- toast() and undoNotice(): one note at the bottom (above the phone's bottom bar) ---- */
html.shine :is(.toast,.undo-bar){
  position:fixed; inset-inline:16px; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); z-index:1500; max-width:560px; margin:0 auto;
  display:flex; align-items:center; gap:10px; padding:6px 6px 6px 16px; min-height:56px; border-radius:14px;
  background:var(--sh-ink); color:var(--sh-page); box-shadow:0 14px 34px -12px rgba(12,20,36,.5);
  font:500 14.5px/1.35 var(--body); animation:shUp .22s cubic-bezier(.2,.8,.3,1) both;
}
html.shine .undo-bar:not([hidden]) + .toast{ bottom:calc(80px + env(safe-area-inset-bottom, 0px)); }
html.shine :is(.toast-t,.undo-t){ flex:1; min-width:0; }
html.shine :is(.toast,.undo-bar) .btn{ min-height:44px; background:var(--sh-accent); color:#FFFFFF; border:0; box-shadow:none; }
html.shine .toast-x{ flex:none; width:44px; height:44px; display:grid; place-items:center; padding:0; border:0; border-radius:10px; background:transparent; color:inherit; cursor:pointer; }
html.shine .toast.toast--err{ background:linear-gradient(var(--sh-bad-bg),var(--sh-bad-bg)), var(--sh-surface); color:var(--sh-ink); border:1px solid var(--sh-bad); }
html.shine .undo-n{ font-variant-numeric:tabular-nums; opacity:.85; }
html.shine[data-theme="dark"] :is(.toast,.undo-bar){ box-shadow:0 14px 34px -12px rgba(0,0,0,.8); }
@keyframes shUp{ from{ transform:translateY(10px); opacity:0; } to{ transform:none; opacity:1; } }
@media (max-width:599px){
  html.shine :is(.toast,.undo-bar){ inset-inline:max(12px, env(safe-area-inset-left, 0px)); bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px); }
  html.shine .undo-bar:not([hidden]) + .toast{ bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 96px); }
}

/* ---- tables → rows on a phone (labelTables() writes data-label, rt-head, rt-t, rt-h, rt-span) ---- */
@media (max-width:599px){
  html.shine table.rt:not([data-rt="keep"]){ display:block; width:100%; min-width:0; border:0; }
  html.shine table.rt:not([data-rt="keep"]) > :is(thead,tbody,tfoot){ display:block; }
  html.shine table.rt:not([data-rt="keep"]) tr{ display:block; }
  html.shine table.rt:not([data-rt="keep"]) tr.rt-head{ display:none; }
  html.shine table.rt:not([data-rt="keep"]) tr:not(.rt-head){ margin:0 0 8px; padding:6px 14px; background:var(--sh-surface); border:1px solid var(--sh-line); border-radius:14px; }
  html.shine table.rt:not([data-rt="keep"]) td{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; min-width:0; padding:7px 0; border:0; text-align:end; overflow-wrap:anywhere; }
  html.shine table.rt:not([data-rt="keep"]) td::before{ content:attr(data-label); flex:none; max-width:45%; text-align:start; font:600 12.5px/1.3 var(--body); color:var(--sh-ink-2); }
  html.shine table.rt:not([data-rt="keep"]) td[data-label=""]::before{ content:none; }
  html.shine table.rt:not([data-rt="keep"]) td:empty{ display:none; }
  html.shine table.rt:not([data-rt="keep"]) td.rt-t{ justify-content:flex-start; text-align:start; font:700 15px/1.3 var(--body); color:var(--sh-ink); }
  html.shine table.rt:not([data-rt="keep"]) td.rt-t::before{ content:none; }
  html.shine table.rt:not([data-rt="keep"]) td.rt-h{ display:none; }
  html.shine table.rt:not([data-rt="keep"]) tr.rt-span > td{ display:block; text-align:start; }
  html.shine table.rt:not([data-rt="keep"]) tr.rt-span > td::before{ content:none; }
  html.shine table[data-rt="keep"]{ display:block; max-width:100%; overflow-x:auto; }
}

/* ---- nothing moves for someone who asked for less motion ---- */
@media (prefers-reduced-motion:reduce){
  html.shine :is(dialog.sheet.sheet--panel[open],dialog.pn-dlg[open],.pn-box,.toast,.undo-bar){ animation:none; }
  html.shine :is(.side-nav .navbtn,.bb-ic,.subnav-b){ transition:none; }
}

/* ═══════════ §3 · TODAY ═══════════
   Owner: package T (console-blueprint §7.4) — the inside of #t-today (td-*) and the Overview's phone fixes. */

/* ---- Today's head: "Thursday 12 November · updated 09:24" (a phone has the day in its top bar) ---- */
html.shine #td-date:not(:empty) + #td-at:not(:empty)::before{ content:" · "; }
html.shine #td-head.td-head--stale #td-at{ color:var(--sh-warn); font-weight:600; }

/* ---- the numbers: working now · late · to answer · shifts today (4 tiles; 3 on a phone) ---- */
/* four in a row when there is room for four of at least ~110 px, else two by two — never three and one */
html.shine #td-kpis{
  display:grid; gap:12px; margin:0 0 8px;
  grid-template-columns:repeat(auto-fit, minmax(max(calc((100% - 37px) / 4), min(calc((100% - 13px) / 2), calc((480px - 100%) * 1000))), 1fr));
}
html.shine #td-kpis:empty{ display:none; }
html.shine .td-kpi{
  display:flex; flex-direction:column; justify-content:space-between; gap:6px; min-width:0; padding:14px 16px;
  background:var(--sh-surface); border:1px solid var(--sh-line); border-radius:16px; box-shadow:var(--sh-shadow);
}
html.shine .td-kpi b{ font:800 30px/1 var(--display); font-stretch:112%; letter-spacing:-.02em; font-variant-numeric:tabular-nums; color:var(--sh-ink); }
html.shine .td-kpi span{ font:600 13px/1.25 var(--body); color:var(--sh-ink-2); }
html.shine .td-kpi--go b{ color:var(--sh-accent-ink); }
html.shine .td-kpi--bad b{ color:var(--sh-bad); }
html.shine .td-kpi .skel{ margin:0; border-radius:8px; }

/* ---- the lists: two columns on a computer (Needs your answer + To fix | Live: Late + Working now); when the
   page is too narrow for both, Live comes first (row-reverse + wrap: the first in the markup is on the right) ---- */
html.shine .td-cols{ display:flex; flex-direction:row-reverse; flex-wrap:wrap; align-items:flex-start; gap:0 24px; }
html.shine .td-col{ min-width:0; }
html.shine .td-col--ask{ flex:1 1 400px; }
html.shine .td-col--live{ flex:1 1 400px; }
html.shine .td-col > :empty{ display:none; }
html.shine .td-col > * + *{ margin-top:22px; }
html.shine .td-col .ui-sect{ margin-top:12px; min-height:44px; }   /* the same height with or without "Approve all": the lists line up */
html.shine .td-none{
  margin:0; padding:13px 16px; border:1px solid var(--sh-line); border-radius:16px; background:var(--sh-surface);
  color:var(--sh-ink-2); font:500 14.5px/1.4 var(--body);
}
html.shine .td-all{ min-height:44px; }
html.shine .td-foot{
  display:flex; align-items:center; justify-content:center; gap:4px; width:100%; min-height:48px; margin:0; padding:0 16px;
  border:0; border-top:1px solid var(--sh-line); background:transparent; color:var(--sh-accent-ink); font:700 14.5px/1 var(--body); cursor:pointer;
}
html.shine .td-foot:hover{ background:var(--sh-surface-2); }
html.shine .td-foot:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:-3px; }
html.shine .td-foot svg{ width:16px; height:16px; }
html.shine .td-row .ui-row__r .ui-pill{ white-space:nowrap; }
/* Late: Call and Message under the words, so the name, the site and the time keep the row's width */
html.shine .td-row--acts{ grid-template-columns:auto minmax(0,1fr) auto; }
html.shine .td-row--acts .ui-row__acts{ grid-column:2 / -1; justify-self:start; }

/* ---- a phone: Late · Needs your answer · Working now · To fix, one under the other; 3 numbers ---- */
@media (max-width:599px){
  html.shine #td-kpis{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0 0 4px; }
  html.shine .td-kpi{ padding:11px 12px; border-radius:14px; gap:4px; }
  html.shine .td-kpi b{ font-size:25px; }
  html.shine .td-kpi span{ font-size:12.5px; }
  html.shine .td-kpi--more{ display:none; }
  html.shine .td-cols{ flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:18px; }
  html.shine .td-col{ display:contents; }
  html.shine .td-col > * + *{ margin-top:0; }
  html.shine #td-late{ order:1; }
  html.shine #td-answer{ order:2; }
  html.shine #td-working{ order:3; }
  html.shine #td-fix{ order:4; }
  html.shine .td-col .ui-sect{ margin-top:4px; min-height:30px; }
  html.shine .td-row--acts .ui-row__acts{ grid-column:1 / -1; justify-self:stretch; }   /* full width, as every row's buttons */
  /* a row's pill ("On site") goes under its words: the name and the site keep the width */
  html.shine .td-row .ui-row__r{ grid-column:2; grid-row:2; justify-self:start; margin-top:-2px; }
  html.shine .td-row .ui-av{ align-self:start; margin-top:2px; }
  /* the top bar says "Today / Thursday 12 November"; Today's own head shows only when the last try failed */
  html.shine #t-today > #td-head.td-head--stale{ display:block; margin:0 0 10px; }
  html.shine #td-head.td-head--stale :is(h1,#td-date){ display:none; }
  html.shine #t-today > #td-head.td-head--stale #td-at::before{ content:none; }
  html.shine #t-today > #td-head.td-head--stale #td-at{ display:inline-block; }
  html.shine #t-today > #td-head.td-head--stale #td-at::first-letter{ text-transform:uppercase; }   /* "Not updated — last 09:24" */
  html.shine #td-head.td-head--stale .sub{ font-size:13.5px; }
}

/* ---- the Overview (#t-dash, what the Dashboard showed) in the new look ---- */
/* "This period at a glance": a number never breaks ("10 h 30" stayed on two lines); the sparkline goes under it
   when the tile is too narrow for both. One blue, no coloured corner glows (decoration). */
html.shine #dash-kpis .kpi b{ white-space:nowrap; }
html.shine #dash-kpis .kpi-top{ flex-direction:column; align-items:flex-start; gap:6px; }
html.shine #dash-kpis .kpi::after{ content:none; }
html.shine #dash-kpis .spark polyline{ stroke:var(--sh-accent-ink); }
html.shine #dash-kpis .spark polygon{ fill:var(--sh-accent-ink); }
/* the engagement chart follows the theme (its inline colours were made for the old light page) */
html.shine #dash-engage line{ stroke:var(--sh-line); }
html.shine #dash-engage text{ fill:var(--sh-ink-3); }
html.shine #dash-engage .eg-tip rect{ fill:var(--sh-hero); }
html.shine #dash-engage .eg-tip text, html.shine[data-theme="dark"] #dash-engage .eg-tip text{ fill:#FFFFFF; }   /* on the dark tip in both themes */
html.shine #dash-engage .eg-line{ stroke:var(--sh-accent-ink); }
html.shine #dash-engage .eg-dot{ fill:var(--sh-accent); stroke:var(--sh-surface); }
html.shine #dash-engage stop{ stop-color:var(--sh-accent); }
html.shine #t-dash .topbar .btn .ic{ margin-inline-end:4px; }
/* Daily activity: one blue icon tile per line (they were emoji); Clocked in now: the pills of Today */
html.shine #dash-feed .feed-row{ align-items:center; }
html.shine #dash-feed .fic{ display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine #dash-feed .fic svg{ width:16px; height:16px; }
html.shine #dash-who .wr{ flex:none; }
@media (max-width:599px){
  html.shine #t-dash > .page-head h1{ display:none; }   /* the top bar says "Overview" */
  html.shine #t-dash > .page-head{ margin-bottom:12px; }
  html.shine #t-dash :is(.btn,.live-chip){ min-height:44px; }   /* tap targets */
  html.shine #dash-feed .feed-row{ flex-wrap:wrap; column-gap:10px; row-gap:2px; }
  html.shine #dash-feed .feed-row > span:nth-child(2){ flex:1 1 0; min-width:0; }
}

/* ═══════════ §4 · REQUESTS ═══════════
   Owner: package R (console-blueprint §7.5) — the request rows (rq-*), #t-reqs, #rr-ov. */

/* ---- a request row is a uiRow that keeps class "req" (the smoke test finds it so): the old .req card look
   (admin.css, aurora) is taken back, and it never animates — the rows are redrawn on every tap ---- */
html.shine .ui-row.req{
  display:grid; margin:0; padding:10px 14px; border:0; border-top:1px solid var(--sh-line); border-radius:0;
  background:transparent; box-shadow:none; animation:none; transform:none; transition:background-color .2s ease;
}
html.shine .ui-row.req:first-child{ border-top:0; }
html.shine .ui-row.req:hover{ transform:none; box-shadow:none; border-color:var(--sh-line); }
html.shine .ui-row.req .rn{ display:block; margin-top:3px; color:var(--sh-bad); font-size:12.5px; }
/* waiting its 5 s: "Approved — sending in 5 s · Undo" — the blue of an action that is under way */
html.shine .ui-row.rq-row--held{ background:var(--sh-soft); }
html.shine .rq-row--held .ui-row__t{ color:var(--sh-accent-ink); }
html.shine .rq-row--sending{ opacity:.7; }
html.shine .rq-n{ font-variant-numeric:tabular-nums; }
/* a refusal from the server, under the row it belongs to */
html.shine .rq-err{ display:block; margin-top:4px; color:var(--sh-bad); font-weight:600; }

/* ---- the Requests page: three groups (Needs your answer · To fix · For your information) ---- */
html.shine .rq-body{ margin-bottom:14px; }
html.shine .rq-body > .ui-sect:first-child{ margin-top:4px; }
html.shine .rq-list .empty{ padding:22px 14px; }
html.shine .ui-sect__end .btn.rq-all{ min-height:40px; padding:0 14px; font-size:13.5px; white-space:nowrap; }
html.shine #reqs-body .ui-sect{ flex-wrap:wrap; row-gap:8px; }
html.shine .rq-tools .btn .ic, html.shine #t-reqs .topbar b .ic{ margin-inline-end:6px; vertical-align:-3px; }
html.shine .rq-help{ margin:0 2px 16px; font-size:13px; }
html.shine .rq-cardbar{ display:flex; justify-content:flex-end; margin:0 0 10px; }
html.shine .rq-cardbar .btn{ min-height:40px; }
/* "For your information": folded under the rest, its own small headings */
html.shine .rq-infobox{ margin-top:18px; padding-top:6px; border-top:1px solid var(--sh-line); }
html.shine .rq-infobox > summary{ display:flex; align-items:center; gap:6px; min-height:44px; padding:0 2px; color:var(--sh-ink); font:600 14px/1.3 var(--body); cursor:pointer; }
html.shine .rq-infobox > summary .muted{ font-weight:400; }
html.shine .rq-sub{ display:flex; align-items:center; gap:8px; margin:14px 2px 8px; font:700 12px/1.2 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--sh-ink-3); }
html.shine .rq-sub__n{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:99px; background:var(--sh-sunk); color:var(--sh-ink-2); font:700 11.5px/1 var(--body); letter-spacing:0; }
html.shine .rq-sub .btn{ margin-inline-start:auto; min-height:40px; text-transform:none; letter-spacing:0; }
html.shine .ui-row__r .btn.rq-remind{ min-height:40px; }

/* ---- on Today the rows sit in a column of about 560 px (package T's .td-col): Approve / Refuse go under the
   words, as Today's own rows do, so the name, the request and the note keep the column's width ---- */
html.shine .td-col .ui-row.rq-row{ grid-template-columns:auto minmax(0,1fr) auto; }
html.shine .td-col .rq-row .ui-row__acts{ grid-column:2 / -1; justify-self:start; }
html.shine .td-col .rq-row .ui-row__acts .btn.ui-act{ min-width:112px; }

/* ---- the panels and sheets of a request ---- */
/* two answers in one panel (a request's details): Cancel · Refuse · Approve — the main button last */
html.shine dialog.sheet.rq-two #ask-btns [data-ask="0"]{ order:2; }
html.shine dialog.sheet.rq-two #ask-btns [data-ask="1"]{ order:1; }
html.shine .rq-prog{ margin:10px 0 0; min-height:1.3em; color:var(--sh-accent-ink); font-weight:700; }
html.shine .rq-alllist{ max-height:min(46vh, 420px); overflow-y:auto; }

@media (max-width:599px){
  html.shine .ui-sect__end .btn.rq-all, html.shine .rq-sub .btn, html.shine .ui-row__r .btn.rq-remind, html.shine .rq-cardbar .btn,
  html.shine .rq-tools .btn, html.shine #t-reqs .rowbtns .btn{ min-height:44px; }
  html.shine #t-reqs td.rowbtns{ gap:8px; }
  html.shine .rq-tools{ width:100%; }
  html.shine .rq-tools .btn{ flex:1 1 0; }
  html.shine .rq-cardbar .btn{ width:100%; }
  /* a pill or the Remind button goes under the words, so they keep the width */
  html.shine .rq-row .ui-row__r{ grid-column:2 / -1; justify-self:start; }
  /* Today on a phone: the buttons full width, half each, like every row's */
  html.shine .td-col .rq-row .ui-row__acts{ grid-column:1 / -1; justify-self:stretch; }
  html.shine .td-col .rq-row .ui-row__acts .btn.ui-act{ min-width:0; }
}

/* ---- the full-screen review (#rr-ov): the same surfaces as every page, light and dark ---- */
html.shine #rr-ov{ background:var(--sh-page); color:var(--sh-ink); }
html.shine .rr-top, html.shine .rr-rail{ background:var(--sh-surface); border-color:var(--sh-line); }
html.shine .rr-top{ padding-block:calc(10px + env(safe-area-inset-top, 0px)) 10px; }
html.shine .rr-top .btn{ min-height:40px; }
html.shine .rr-top .btn .ic{ margin-inline-end:5px; vertical-align:-3px; }
html.shine .rr-tabs{ border-bottom-color:var(--sh-line); }
html.shine .rr-tabs button{ min-height:44px; color:var(--sh-ink-2); }
html.shine .rr-tabs button.on{ color:var(--sh-accent-ink); border-bottom-color:var(--sh-accent-ink); }
html.shine .rr-date{ color:var(--sh-ink-3); }
html.shine .rr-item:hover{ background:var(--sh-surface-2); }
html.shine .rr-item.sel{ background:var(--sh-soft); border-color:transparent; }
html.shine .rr-ib small, html.shine .rr-kv > span, html.shine .rr-tll, html.shine .rr-empty{ color:var(--sh-ink-2); }
html.shine :is(.rr-card,.rr-tl){ background:var(--sh-surface); border-color:var(--sh-line); box-shadow:var(--sh-shadow); }
html.shine .rr-kv{ border-bottom-color:var(--sh-line); }
html.shine .rr-tip{ border-top-color:var(--sh-line); color:var(--sh-ink-2); }
html.shine .rr-track{ background:var(--sh-sunk); }
html.shine .rr-gl{ background:var(--sh-line); }
html.shine .rr-tick{ color:var(--sh-ink-3); }
html.shine #rr-actions .btn{ min-height:44px; }
@media (max-width:599px){
  html.shine .rr-main{ padding:14px max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  html.shine .rr-tlrow{ grid-template-columns:62px minmax(0,1fr) 78px; gap:8px; }
  html.shine .rr-tlt{ white-space:normal; }
  html.shine .rr-top .btn{ min-height:44px; }
  html.shine #rr-actions{ width:100%; }
  html.shine #rr-actions .btn{ flex:1 1 0; }
  html.shine .rr-tip{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  html.shine :is(#rr-ov,.rr-card,.rr-tl,.rr-bar){ animation:none; }
  html.shine .ui-row.req{ transition:none; }
}

/* ═══════════ §5 · HOURS ═══════════
   Owner: package H (console-blueprint §7.6) — Hours and pay (hp-*; keeps he-, ha-, ho-, xp-), #print-report. */

/* ---- the page: title, its two sub-pages (Timesheets first), the Live today card ---- */
html.shine .hp-tabs .subtab{ min-height:44px; }
html.shine .hp-scroll{ overflow-x:auto; max-width:100%; }
html.shine .hp-note{ margin:10px 0 0; font-size:13px; line-height:1.45; }
html.shine .hp-ct{ display:inline-flex; align-items:center; gap:8px; }
html.shine .hp-ct svg, html.shine .hp-warn-t svg{ width:18px; height:18px; flex:none; }
html.shine .hp-livebar{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
html.shine .hp-livebar-r{ display:inline-flex; align-items:center; gap:10px; }
html.shine #today-at{ font-size:12.5px; }
html.shine .hp-livetbl{ margin-top:16px; }
html.shine .hp-livename{ display:flex; align-items:center; gap:4px 8px; flex-wrap:wrap; }
html.shine .hp-who{ display:inline-flex; align-items:center; gap:4px; margin:2px 10px 2px 0; white-space:nowrap; }
html.shine .hp-livesum > td{ background:var(--sh-surface-2); }
html.shine #clock-today-tbl th{ white-space:nowrap; }
html.shine .hp-livesum-in{ display:inline-flex; gap:6px 16px; flex-wrap:wrap; align-items:center; font:600 13px/1.35 var(--body); }

/* ---- the toolbar: period ‹ › + preset · status + search · Requests · the actions (a menu on a phone) ---- */
html.shine .hp-bar{ position:relative; }
html.shine .hp-bar-g{ display:contents; }
html.shine .hp-more{ display:none; }
html.shine .hp-bar .btn .ic{ width:16px; height:16px; }
html.shine .pp-nav{ background:var(--sh-surface); border:1px solid var(--sh-line-strong); border-radius:12px; }
html.shine .pp-nav button{ color:var(--sh-accent-ink); border-radius:9px; }
html.shine .pp-nav button:hover{ background:var(--sh-soft); }
html.shine .pp-label{ color:var(--sh-ink); font-variant-numeric:tabular-nums; }
html.shine .req-pill{ background:var(--sh-warn-bg); border:1px solid transparent; color:var(--sh-warn); box-shadow:none; }
html.shine .req-pill:hover{ box-shadow:none; transform:none; border-color:var(--sh-warn); }
html.shine #pp-locks .pill{ display:inline-flex; align-items:center; gap:5px; }
html.shine #pp-locks .pill svg{ width:13px; height:13px; }
html.shine #pp-locks:empty{ display:none; }

/* ---- "no toeslag set" (the warning card above the totals) ---- */
html.shine .hp-warn{ background:var(--sh-warn-bg); border-color:transparent; box-shadow:none; }
html.shine .hp-warn-t{ display:flex; align-items:center; gap:8px; color:var(--sh-warn); }
html.shine .hp-warn-b{ margin-top:6px; line-height:1.5; }
html.shine .hp-warn-go{ margin-top:10px; }

/* ---- the totals ---- */
html.shine .ts-summary .ts-sum span, html.shine .ts-pay span{ color:var(--sh-ink-2); }
html.shine .ts-eq{ color:var(--sh-ink-3); }
html.shine .ts-pay b{ color:var(--sh-ink); }
html.shine .hp-tip{ cursor:help; font-style:normal; }
html.shine .hp-st-lock .btn{ display:inline-flex; align-items:center; gap:6px; }
html.shine .hp-st-lock .btn .ic{ width:15px; height:15px; margin:0; }
html.shine .hp-lockhint{ display:block; margin-top:3px; font-size:11.5px; color:var(--sh-ink-2); }

/* ---- the board: one row per person (the Team setup board's own .ts-row rule — display:flex, a padding and a
   line on top — used to land on these table rows and pulled their cells out of the columns) ---- */
html.shine #times-tbl tr.ts-row{ display:table-row; padding:0; border-top:0; }
html.shine #times-tbl tr.ts-row:hover{ background:var(--sh-surface-2); }
html.shine #times-tbl tr.ts-row.sel{ background:var(--sh-soft); }
html.shine .ts-band th{ background:var(--sh-surface-2); color:var(--sh-ink-3); border-inline-start-color:var(--sh-line); }
html.shine .ts-band th:first-child{ background:transparent; }
html.shine .hp-flags{ display:flex; flex-wrap:wrap; gap:4px; margin:5px 0 0 39px; }
html.shine .ts-openbtn{ width:auto; min-width:96px; min-height:36px; padding:0 14px; border:1px solid var(--sh-line-strong); border-radius:10px; background:var(--sh-surface); color:var(--sh-accent-ink); box-shadow:none; filter:none; font:700 13px/1 var(--body); }
html.shine .ts-openbtn:hover{ background:var(--sh-soft); color:var(--sh-accent-ink); filter:none; }
html.shine .ts-openbtn.on{ background:var(--sh-accent); border-color:transparent; color:#FFFFFF; }
html.shine[data-theme="dark"] .ts-openbtn.on{ color:#FFFFFF; }
html.shine .hp-po{ text-align:end; }
html.shine .hp-detrow > td{ padding:0 6px; }
html.shine .ts-detpanel{ background:var(--sh-surface-2); border-color:var(--sh-line); border-radius:14px; padding:10px 14px; }
html.shine .hp-detbar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:2px 0 8px; }
html.shine .hp-detbar .btn{ display:inline-flex; align-items:center; gap:6px; }
html.shine .hp-detbar .btn .ic{ width:16px; height:16px; margin:0; }
html.shine .hp-side{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0 4px; }
html.shine .hp-xp{ display:inline-flex; align-items:center; gap:2px; }
html.shine .hp-xbtn{ display:inline-grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--sh-ink-2); cursor:pointer; }
html.shine .hp-xbtn:hover{ background:var(--sh-bad-bg); color:var(--sh-bad); }
html.shine .hp-xbtn svg{ width:16px; height:16px; }
/* one person's shifts (a date, a length or an amount never breaks over two lines; the site, and a time with its
   marks, may). The board itself keeps its columns (fixed layout), so a wide timesheet scrolls inside the person's
   panel instead of pushing the board's Open buttons off the card. */
html.shine #times-tbl{ table-layout:fixed; width:100%; }
html.shine .hp-shifts th, html.shine .hp-shifts td{ padding-inline:8px; }
html.shine .hp-shifts td{ vertical-align:middle; white-space:nowrap; }
html.shine .hp-shifts td:is(.hp-ss,.hp-si,.hp-so){ white-space:normal; }
html.shine .hp-shifts td.hp-ss{ min-width:120px; }
html.shine .hp-shifts td:is(.hp-si,.hp-so){ min-width:84px; }
html.shine .hp-side .ui-pill{ white-space:normal; min-height:24px; padding-block:3px; line-height:1.25; }
html.shine .hp-shifts .ui-pill{ min-height:20px; padding:0 8px; font-size:11.5px; vertical-align:1px; }
html.shine .hp-amber{ color:var(--sh-warn); }
html.shine .hp-why{ max-width:240px; margin-top:3px; font-size:11.5px; line-height:1.35; white-space:normal; }
html.shine .hp-sabtns{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
html.shine .hp-ib{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:36px; }
html.shine .hp-ib .ic{ width:16px; height:16px; margin:0; }
html.shine .hp-bl{ display:none; }
html.shine .hp-ring{ display:inline-block; width:14px; height:14px; border:2px solid currentColor; border-radius:50%; opacity:.7; }

/* ---- the four hours panels (askSheet({panel:true})): who/when on top, labelled boxes, the live line ---- */
html.shine .hp-who-h{ display:flex; align-items:center; gap:12px; margin:0 0 16px; padding:0 0 14px; border-bottom:1px solid var(--sh-line); }
html.shine .hp-who-h .ui-av{ width:42px; height:42px; flex:none; font-size:14px; }
html.shine .hp-who-t{ display:flex; flex-direction:column; gap:2px; min-width:0; }
html.shine .hp-who-t b{ font:700 16px/1.3 var(--body); color:var(--sh-ink); }
html.shine .hp-who-t small{ font:400 13.5px/1.35 var(--body); color:var(--sh-ink-2); }
html.shine #ask-body .hp-ask{ margin:0 0 10px; font-weight:600; }
html.shine .hp-f{ display:flex; flex-direction:column; gap:6px; margin:0 0 14px; min-width:0; }
html.shine .hp-fl{ font:600 13.5px/1.2 var(--body); color:var(--sh-ink-2); }
html.shine .hp-fh{ margin:0; font:400 12.5px/1.4 var(--body); color:var(--sh-ink-2); }
html.shine #ask-body p.hp-fh{ margin:-4px 0 14px; font-size:12.5px; }
html.shine #ask-body .hp-f :is(input,select){ width:100%; max-width:none; min-height:46px; font-size:16px; border-radius:12px; }
html.shine #ask-body .hp-f input[type=time]{ font-variant-numeric:tabular-nums; }
html.shine .hp-times{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 12px; }
html.shine .hp-times .hp-f{ margin-bottom:10px; }
html.shine .hp-check{ min-height:44px; margin:-4px 0 6px; font-weight:600; }
html.shine .hp-check input{ width:20px; height:20px; }
html.shine .hp-len{ display:flex; flex-direction:column; gap:6px; margin:0 0 14px; padding:11px 13px; border-radius:12px; background:var(--sh-surface-2); border:1px solid var(--sh-line); color:var(--sh-ink); font:400 14.5px/1.4 var(--body); }
html.shine .hp-len:empty{ display:none; }
html.shine .hp-len[data-level="warn"]{ background:var(--sh-warn-bg); border-color:transparent; }
html.shine .hp-len[data-level="bad"]{ background:var(--sh-bad-bg); border-color:transparent; }
html.shine :is(.hp-len-l,.hp-len-say){ display:flex; align-items:flex-start; gap:8px; }
html.shine :is(.hp-len-l,.hp-len-say) > svg{ width:18px; height:18px; flex:none; margin-top:1px; color:var(--sh-ink-2); }
html.shine .hp-len-l b{ font-weight:700; color:var(--sh-ink); }
html.shine .hp-len-say{ font-weight:600; }
html.shine .hp-len-warn, html.shine .hp-len-warn > svg{ color:var(--sh-warn); }
html.shine .hp-len-bad, html.shine .hp-len-bad > svg{ color:var(--sh-bad); }
html.shine #ask-msg.hp-ask-warn{ color:var(--sh-warn); }
html.shine .hp-amt{ font:800 18px/1.2 var(--display); font-variant-numeric:tabular-nums; }
html.shine .hp-eur{ display:flex; align-items:center; gap:8px; }
html.shine .hp-eur > span{ font:700 17px/1 var(--body); color:var(--sh-ink-2); }
html.shine #ask-body .hp-eur input{ flex:1; font-variant-numeric:tabular-nums; }
/* the site picker of "Add a worked shift" (the shift panel's pieces, here inside the question sheet) */
html.shine #ask-dlg .sp-jobbtn{ width:100%; min-height:46px; padding:0 12px; border:1px solid var(--sh-line-strong); border-radius:12px; background:var(--sh-surface); color:var(--sh-ink); }
html.shine[data-theme="dark"] #ask-dlg .sp-jobbtn{ background:var(--sh-sunk); border-color:var(--sh-line-strong); color:var(--sh-ink); }
html.shine #ask-dlg .sp-car{ color:var(--sh-ink-3); }
html.shine #ask-dlg .sp-pop{ background:var(--sh-surface); border-color:var(--sh-line-strong); }
html.shine #ask-dlg .sp-pop > input{ min-height:44px; background:var(--sh-surface); border-bottom-color:var(--sh-line); }
html.shine #ask-dlg .sp-opt{ min-height:44px; }
html.shine #ask-dlg .sp-opt:hover{ background:var(--sh-surface-2); }
html.shine #ask-dlg .sp-opt.sel{ background:var(--sh-soft); }
html.shine #ask-dlg .sp-optb small{ color:var(--sh-ink-2); }

/* ---- the print report (printReport): white paper behind it, also when "background graphics" is on ---- */
@media print{
  html.shine:has(body.printing){ background:#FFFFFF; }
}

/* ---- a phone (< 600 px) ---- */
@media (max-width:599px){
  /* the top bar already says "Hours and pay", and the toolbar carries the Requests count */
  html.shine .hp-head{ display:none; }
  html.shine .hp-livebar .btn{ min-height:44px; }
  /* the toolbar: the period · its preset and the status · the search · Requests and More actions */
  html.shine .hp-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; }
  html.shine .hp-bar .pp-nav{ order:1; flex:1 1 100%; justify-content:space-between; }
  html.shine .hp-bar .pp-nav button{ min-width:44px; min-height:44px; font-size:20px; }
  html.shine .hp-bar .pp-label{ min-width:0; flex:1; }
  html.shine #pp-locks{ order:2; flex:1 1 100%; }
  html.shine .hp-bar :is(#pp-preset,#ts-status){ order:3; flex:1 1 calc(50% - 4px); min-width:0; max-width:none !important; min-height:44px; font-size:16px; padding-inline:10px 4px; }
  html.shine #ts-custom{ order:4; display:flex; gap:8px; flex:1 1 100%; }        /* (its inline display:none still hides it) */
  html.shine #ts-custom input{ flex:1; min-width:0; min-height:44px; }
  html.shine .hp-bar #ts-search{ order:5; flex:1 1 100%; max-width:none !important; min-height:44px; font-size:16px; }
  html.shine .hp-bar .req-pill{ order:6; flex:1 1 auto; justify-content:center; min-height:44px; margin:0; }
  html.shine .hp-more{ order:7; flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; }
  html.shine .hp-more svg{ width:18px; height:18px; }
  /* the menu opens as a sheet just above the bottom bar, so every choice is on the screen */
  html.shine .hp-acts{ display:none; }
  html.shine .hp-bar.hp-open .hp-acts{
    display:flex; flex-direction:column; gap:2px; position:fixed; z-index:1200; max-width:440px; margin:0 auto;
    inset-inline:max(12px, env(safe-area-inset-left, 0px)); bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px);
    padding:6px; border:1px solid var(--sh-line); border-radius:16px;
    background:var(--sh-surface); box-shadow:0 18px 44px -12px rgba(12,20,36,.45);
  }
  html.shine[data-theme="dark"] .hp-bar.hp-open .hp-acts{ box-shadow:0 18px 44px -12px rgba(0,0,0,.8); }
  html.shine .hp-acts .btn{ justify-content:flex-start; width:100%; min-height:46px; padding:0 12px; border:0; border-radius:10px; background:transparent; color:var(--sh-ink); font-size:15px; text-align:start; }
  html.shine .hp-acts .btn:hover{ background:var(--sh-surface-2); }
  html.shine .hp-acts .btn .ic{ width:18px; height:18px; margin-inline-end:10px; color:var(--sh-accent-ink); }
  /* the totals: a grid of two, the signs give way */
  html.shine #ts-stat.ts-summary{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 12px; }
  html.shine #ts-stat .ts-eq{ display:none; }
  html.shine #ts-stat :is(.ts-sum,.ts-pay) b{ font-size:20px; }
  html.shine #ts-stat .ts-pay{ margin:0; text-align:start; }
  html.shine #ts-stat .hp-st-lock{ grid-column:1 / -1; }
  html.shine #ts-stat .hp-st-lock .btn{ min-height:44px; }
  html.shine .hp-warn{ padding:14px; }
  html.shine .hp-warn-b{ display:none; }                    /* the title says it; Pay rules says the rest */
  html.shine .hp-warn-go{ min-height:44px; }
  /* one card per person: name (and what to check), then total paid · shifts · pay, then Open — on the page
     itself, not in a card of its own */
  html.shine .hp-tscard{ padding:0; background:transparent; border:0; box-shadow:none; }
  html.shine .hp-tscard > .hp-note{ margin:4px 4px 0; }
  html.shine #times-tbl.rt tr.hp-prow{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px 10px; padding:12px 14px; }
  html.shine #times-tbl.rt tr.hp-prow.sel{ background:var(--sh-soft); border-color:transparent; }
  html.shine #times-tbl.rt tr.hp-prow > td{ flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:2px; padding:0; text-align:start; }
  html.shine #times-tbl.rt tr.hp-prow > td::before{ max-width:none; font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--sh-ink-3); }
  html.shine #times-tbl.rt tr.hp-prow > td.hp-pn{ grid-column:1 / -1; }
  html.shine #times-tbl.rt tr.hp-prow > td.hp-po{ grid-column:1 / -1; }
  html.shine #times-tbl.rt tr.hp-prow .hp-flags{ margin:4px 0 0; }
  html.shine #times-tbl.rt tr.hp-prow .ts-openbtn{ width:100%; min-height:44px; }
  html.shine #times-tbl.rt tr.hp-detrow{ margin:-4px 0 14px; padding:0; background:transparent; border:0; }
  html.shine #times-tbl.rt tr.hp-detrow > td{ padding:0; }
  html.shine #times-tbl .ts-detpanel{ margin:0; padding:10px; border-radius:14px; animation:none; }
  html.shine .hp-detbar{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  html.shine .hp-detbar .btn{ justify-content:center; min-height:44px; padding:0 8px; white-space:nowrap; }
  html.shine .hp-detbar > .ui-pill{ grid-column:1 / -1; justify-self:start; }
  html.shine .hp-detbar > .btn:first-child, html.shine .hp-detbar > .btn.g{ grid-column:1 / -1; }
  html.shine .hp-xbtn{ width:44px; height:44px; }
  /* one card per shift: the date and the site on top; in · out, hours · paid, pay · quality; its buttons */
  html.shine .hp-shifts.rt tr.hp-srow{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; padding:12px 14px; }
  html.shine .hp-shifts.rt tr.hp-srow > td{ flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:3px; padding:0; text-align:start; }
  html.shine .hp-shifts.rt tr.hp-srow > td::before{ max-width:none; font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--sh-ink-3); }
  html.shine .hp-shifts.rt tr.hp-srow > :is(.hp-sd,.hp-ss,.hp-sa){ grid-column:1 / -1; }
  html.shine .hp-shifts.rt tr.hp-srow > .hp-sd{ font:700 16px/1.3 var(--body); }
  html.shine .hp-shifts.rt tr.hp-srow > .hp-ss{ margin-top:-6px; color:var(--sh-ink-2); }
  html.shine .hp-shifts.rt tr.hp-srow > .hp-ss::before{ content:none; }
  html.shine .hp-shifts.rt tr.hp-srow > :is(.hp-si,.hp-so){ flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px 6px; }
  html.shine .hp-shifts.rt tr.hp-srow > :is(.hp-si,.hp-so)::before{ flex-basis:100%; }
  html.shine .hp-shifts.rt tr.hp-srow > .hp-sa:has(> .hp-sabtns:empty){ display:none; }
  html.shine .hp-sabtns{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); width:100%; gap:8px; }
  html.shine .hp-sabtns .btn{ min-height:44px; padding:0 8px; font-size:14px; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
  html.shine .hp-bl{ display:inline; }
  html.shine .hp-why{ max-width:none; }
  /* Live today: one card per person / shift / clock-in — the name on top, then two values a line */
  html.shine table.rt.hp-cards tr:not(.rt-head):not(.rt-span){ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; padding:12px 14px; }
  html.shine table.rt.hp-cards tr:not(.rt-head):not(.rt-span) > td{ flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:2px; padding:0; text-align:start; }
  html.shine table.rt.hp-cards tr:not(.rt-head):not(.rt-span) > td::before{ max-width:none; font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--sh-ink-3); }
  html.shine table.rt.hp-cards tr:not(.rt-head):not(.rt-span) > td.rt-t{ grid-column:1 / -1; }
  html.shine table.rt.hp-cards tr:not(.rt-head):not(.rt-span) > td[colspan]{ grid-column:1 / -1; }
  html.shine .hp-livetbl{ margin-top:12px; }
  html.shine table.rt.hp-cards .pill{ max-width:100%; white-space:normal !important; line-height:1.3; border-radius:10px; }   /* (inline nowrap) */
  /* the other buttons of the page */
  html.shine :is(#ts-check,#ts-payrules,#ts-insights,#ts-activity) .btn{ min-height:44px; }
  html.shine #ts-check input[type=time]{ min-height:44px; }
  html.shine .hp-times{ gap:0 10px; }
}

/* ═══════════ §6 · SCHEDULE ═══════════
   Owner: package S (console-blueprint §7.7) — the board, availability, #sp, the board's dialogs (sd-*; keeps sp-, bedit-, tpl-, cdlg-); then rest-blueprint H2's undo line. */

/* ---- the board: today's column header — the one blue with white words. In dark the aurora rule
   (html[data-theme=dark] .sg-head) painted the words grey on blue; the clock beside the day is white too ---- */
html.shine .sg-head.today{ background:var(--sh-accent); color:#FFFFFF; box-shadow:var(--sh-btn-shadow); }
html.shine[data-theme="dark"] .sg-head.today{ background:var(--sh-accent); color:#FFFFFF; }
html.shine .sg-head.today .now, html.shine[data-theme="dark"] .sg-head.today .now{ color:#FFFFFF; }
html.shine .sg-head.today .sg-more, html.shine[data-theme="dark"] .sg-head.today .sg-more{ color:#FFFFFF; }

/* ---- the shift panel's state word under its title: the meaning colours, from the tokens (both themes) ---- */
html.shine .sp-tag.new{ background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .sp-tag.live{ background:var(--sh-pass-bg); color:var(--sh-pass); }
html.shine .sp-tag.draft{ background:var(--sh-warn-bg); color:var(--sh-warn); }
html.shine .sp-tag.ct{ background:var(--sh-sunk); color:var(--sh-ink-2); }

/* ---- the shift panel: a refusal under the field it is about; the "can't work" warning above the footer ---- */
html.shine #sp .sd-ferr{ display:block; margin:-4px 0 8px; padding-inline-start:78px; font:600 13px/1.35 var(--body); color:var(--sh-bad); }
html.shine #sp [aria-invalid="true"]{ border-color:var(--sh-bad) !important; box-shadow:0 0 0 3px var(--sh-bad-bg); }
html.shine .sd-offwarn{ flex:none; padding:12px 18px; background:var(--sh-warn-bg); border-top:1px solid var(--sh-line); color:var(--sh-ink); }
html.shine .sd-offwarn-t{ margin:0 0 10px; font:500 14px/1.4 var(--body); }
html.shine .sd-offwarn-b{ display:flex; gap:8px; flex-wrap:wrap; }
html.shine .sd-offwarn-b .btn{ min-height:44px; padding:0 18px; }
html.shine .sp-foot .btn{ min-height:44px; }
html.shine .sp-foot .sd-del{ color:var(--sh-bad); }
html.shine[data-theme="dark"] .sp-foot .sd-del{ color:var(--sh-bad); }
@media (max-width:599px){
  html.shine .sd-offwarn{ padding-inline:max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); }
  html.shine .sd-offwarn-b .btn{ flex:1 1 0; }
  html.shine #sp .sd-ferr{ padding-inline-start:0; }
  /* the footer wraps to two rows on a small phone: Publish / Save draft on top, the rest below */
  html.shine .sp-foot{ flex-wrap:wrap; row-gap:8px; padding-inline:max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); }
  html.shine .sp-foot > .btn:not(.gr), html.shine .sp-foot > #sp-draftbtn, html.shine .sp-foot > #sp-unpubbtn{ flex:1 1 40%; }
  html.shine .sp-foot > span[style*="flex"]{ display:none; }
  html.shine .sp-foot > .sd-del, html.shine .sp-foot > .sd-tpl{ flex:1 1 40%; }
}

/* ---- the three-dot menus and More actions (#daymenu): an icon and the words, 44 px rows ---- */
html.shine #daymenu{ max-height:calc(100vh - 16px); max-height:calc(100dvh - 16px); overflow-y:auto; overscroll-behavior:contain; }
html.shine #daymenu .dm-it{ display:flex; align-items:center; gap:10px; min-height:44px; color:var(--sh-ink); }
html.shine #daymenu .dm-it .ic{ flex:none; width:18px; height:18px; color:var(--sh-accent-ink); margin:0; }
html.shine #daymenu .dm-it.dm-it--bad, html.shine #daymenu .dm-it.dm-it--bad .ic{ color:var(--sh-bad); }
html.shine #daymenu .dm-it:hover{ background:var(--sh-surface-2); }
html.shine[data-theme="dark"] #daymenu .dm-it:hover{ background:var(--sh-surface-2); }
html.shine #bulkbar .btn .ic{ margin-inline-end:6px; }

/* ---- the week on a phone: the day list (#sd-day) instead of the grid, the More actions button ---- */
html.shine #t-sched .sd-more{ display:none; }
html.shine #sd-day{ display:none; }
html.shine .sd-strip{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; margin:2px 0 14px; }
html.shine .sd-d{
  display:flex; flex-direction:column; align-items:center; gap:1px; min-height:60px; min-width:0; padding:6px 0 5px; margin:0;
  border:1px solid var(--sh-line); border-radius:14px; background:var(--sh-surface); color:var(--sh-ink); font:inherit; cursor:pointer;
}
html.shine .sd-d small{ font:600 11.5px/1.1 var(--body); color:var(--sh-ink-2); }
html.shine .sd-d b{ font:800 18px/1.1 var(--display); font-variant-numeric:tabular-nums; }
html.shine .sd-d i{ font:700 11px/1.2 var(--body); font-style:normal; color:var(--sh-accent-ink); min-height:13px; }
html.shine .sd-d.on{ border-color:var(--sh-accent-ink); box-shadow:0 0 0 2px var(--sh-soft); }
html.shine .sd-d.sd-d--today{ background:var(--sh-accent); border-color:var(--sh-accent); color:#FFFFFF; }
html.shine .sd-d.sd-d--today :is(small,i){ color:#FFFFFF; }
html.shine .sd-d.sd-d--today.on{ box-shadow:0 0 0 3px var(--sh-soft); }
html.shine[data-theme="dark"] .sd-d.sd-d--today, html.shine[data-theme="dark"] .sd-d.sd-d--today :is(small,b,i){ color:#FFFFFF; }
html.shine .sd-d:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:2px; }
html.shine .sd-dayh{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 2px 8px; }
html.shine .sd-dayh b{ font:800 17px/1.25 var(--display); font-stretch:112%; color:var(--sh-ink); }
html.shine .sd-dayh span{ font:500 13px/1.3 var(--body); color:var(--sh-ink-2); white-space:nowrap; }
html.shine .sd-list{ margin-bottom:12px; }
html.shine .sd-row .ui-row__t{ display:flex; align-items:center; gap:8px; }
html.shine .sd-dot{ flex:none; width:10px; height:10px; border-radius:3px; }
html.shine .sd-row--sel{ background:var(--sh-soft); }
html.shine .sd-empty{ margin:6px 2px 16px; }
html.shine .sd-fab{
  position:fixed; inset-inline-end:max(16px, env(safe-area-inset-right, 0px)); bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px);
  z-index:780; width:56px; height:56px; display:grid; place-items:center; padding:0; border:0; border-radius:50%;
  background:var(--sh-accent); color:#FFFFFF; box-shadow:var(--sh-btn-shadow); cursor:pointer; transition:transform .2s;
}
html.shine .sd-fab .ic{ width:24px; height:24px; margin:0; }
html.shine .sd-fab:focus-visible{ outline:3px solid var(--sh-accent-ink); outline-offset:3px; }
html.shine:has(#undo-bar:not([hidden]), #toast:not([hidden])) .sd-fab{ transform:translateY(-66px); }
html.shine:has(#bulkbar:not([style*="none"])) .sd-fab{ display:none; }
@media (max-width:599px){
  html.shine #t-sched{ padding-inline:12px; }
  html.shine #t-sched .sd-wide{ display:none !important; }   /* each one is in More actions (SDTOOLS) */
  html.shine #t-sched .sd-more{ display:inline-flex; }
  /* the toolbar in three short lines: the week + More actions · ‹ Today › and + Add shift · Publish (n) */
  html.shine #t-sched .sd-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px 6px; margin-bottom:12px; }
  html.shine #t-sched .sd-bar > .rowbtns{ display:contents; }
  html.shine #t-sched .sd-bar .btn{ min-height:44px; min-width:44px; margin:0; justify-content:center; }
  html.shine #sched-label{ order:1; flex:1 1 calc(100% - 56px); min-width:0; margin:0 !important; font:800 17px/1.25 var(--display); font-size:clamp(15px, 4.4vw, 17px); font-stretch:112%; }
  html.shine #t-sched .sd-more{ order:2; }
  html.shine #t-sched .sd-more .ic{ margin:0; }
  html.shine #t-sched .sd-nav > .btn{ order:3; }
  html.shine #t-sched .sd-nav > .btn:nth-child(2){ padding-inline:12px; }
  html.shine #t-sched .sd-tools > .btn:last-child{ order:4; margin-inline-start:auto; padding-inline:14px; }
  html.shine #sched-pub{ order:5; flex:1 1 100%; }
  html.shine #sched-filter{ max-width:none !important; width:100%; }
  html.shine #sched-claims .btn{ min-height:44px; }
  /* the day list first: what is planned that day, then the claims, the rules and the filter */
  html.shine #t-sched.sd-dayon{ display:flex; flex-direction:column; }
  html.shine #t-sched.sd-dayon > *{ order:6; }
  html.shine #t-sched.sd-dayon > .sd-bar{ order:1; }
  html.shine #t-sched.sd-dayon > #sched-msg{ order:2; }
  html.shine #t-sched.sd-dayon > #sd-day{ order:3; }
  html.shine #t-sched.sd-dayon > #sched-claims{ order:4; }
  html.shine #t-sched.sd-dayon > #sched-cfg{ order:5; }
  html.shine #t-sched.sd-dayon #sd-gridbox, html.shine #t-sched.sd-dayon .sd-gridhelp{ display:none; }
  html.shine #t-sched.sd-dayon #sd-day{ display:block; padding-bottom:4px; }
  html.shine #t-sched.sd-dayon .sd-list{ margin-bottom:76px; }   /* the last row can be scrolled clear of the + */
  html.shine #t-sched.sd-dayon .sd-tools > .btn:last-child{ display:none; }   /* the day list's + adds a shift on the day shown */
  html.shine .sd-dayh{ flex-wrap:wrap; }
  html.shine .sd-dayh b{ font-size:16px; }
  html.shine #sched-sum{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 12px; }
  html.shine #daymenu{ min-width:min(280px, calc(100vw - 16px)); }
  /* the Select bar: its buttons in two columns above the bottom bar */
  html.shine #bulkbar{ inset-inline:12px; transform:none; max-width:none; display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 12px; animation:none; }
  html.shine #bulkbar b, html.shine #bulkbar #bulk-status{ grid-column:1 / -1; }
  html.shine #bulkbar .btn{ min-height:44px; justify-content:center; }
  html.shine #bulkbar #bulk-status:empty{ display:none; }
}

/* ---- the times have room for a 12-hour clock too ("09:00 AM"); on a phone the two share the row ---- */
html.shine :is(#sp,#bedit-dlg) .sp-row input[type=time]{ max-width:150px; }
/* ---- the shift panel and the bulk-edit panel on a phone: the two times share the row, every control 44 px ---- */
@media (max-width:599px){
  html.shine :is(#sp,#bedit-dlg) .sp-row > label{ width:58px; }
  html.shine :is(#sp,#bedit-dlg) .sp-row input[type=time]{ flex:1 1 0; min-width:0; max-width:none; }
  html.shine :is(#sp,#bedit-dlg) .sp-jobbtn{ min-height:44px; }
  html.shine #sp #sp-jobinfo .btn, html.shine #sp .sp-addu{ min-height:44px; }
  html.shine #sp .sp-chip button{ min-width:44px; min-height:44px; margin-block:-10px; margin-inline-end:-8px; }
}
/* the bulk-edit panel keeps Cancel / Save changes at the bottom (beditSave itself is not touched) */
html.shine #bedit-dlg[open]{ display:flex; flex-direction:column; }
html.shine #bedit-dlg > .rowbtns:last-child{ margin-top:auto !important; padding-top:12px; }


/* ---- Availability on a phone: the month grid stays a table in its box (names sticky); the plan → rows ---- */
@media (max-width:599px){
  html.shine #t-avail .avl-tools{ width:100%; }
  html.shine #t-avail .avl-tools .btn{ min-height:44px; min-width:44px; }
  html.shine #t-avail .avl-tools input[type=month]{ flex:1 1 140px; min-width:0; }
  html.shine #t-avail .avp-link input{ min-width:0; flex:1 1 100%; }
  html.shine #t-avail .avp-link .btn, html.shine #t-avail .avp-actions .btn, html.shine #t-avail .avp-cfg .btn{ min-height:44px; flex:1 1 auto; }
  html.shine #t-avail .avp-actions select{ flex:1 1 100%; min-height:44px; }
  html.shine #t-avail .avp-req{ padding:12px; }
  html.shine #t-avail .avp-req__m{ min-width:0; flex:1 1 100%; }
  html.shine #t-avail .avp-req__a{ display:grid; grid-template-columns:1fr 1fr; width:100%; }
  html.shine #t-avail .avp-req__a .btn{ min-height:44px; justify-content:center; }
  html.shine #t-avail .avp-tbl{ border:0; background:transparent; overflow:visible; }
  html.shine #t-avail .avp-tbl td .btn{ min-height:44px; }
  html.shine #t-avail .avl-grid th:first-child, html.shine #t-avail .avl-grid td:first-child{ min-width:128px; }
  html.shine #t-avail .avl-chip{ min-height:44px; }
  html.shine #t-avail .avl-summary{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  html.shine #t-avail .avp-tbl td{ border-top:0; }
}
html.shine #t-avail .avp-pill .ic, html.shine #t-avail .avl-chip .ic{ margin-inline-end:3px; vertical-align:-2px; }
html.shine #t-avail .avl-grid{ background:var(--sh-surface); border-color:var(--sh-line); }
html.shine #t-avail .avl-grid th{ background:var(--sh-surface-2); color:var(--sh-ink-3); }
html.shine #t-avail .avl-grid th:first-child, html.shine #t-avail .avl-grid td:first-child{ background:var(--sh-surface); box-shadow:1px 0 0 var(--sh-line); }
html.shine #t-avail .avl-grid th:first-child{ background:var(--sh-surface-2); }
html.shine #t-avail .avl-grid td{ border-top-color:var(--sh-line); }

/* ---- H2: the Undo line (undoNotice, §2) and a note clear the Select bar while it is up (both sit at the bottom) ---- */
html.shine #bulkbar:not([style*="none"]) ~ :is(.undo-bar,.toast){ bottom:calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (max-width:599px){
  html.shine #bulkbar:not([style*="none"]) ~ :is(.undo-bar,.toast){ bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 100px); }
}
/* the Schedule's floating note (schedToast, frozen: it sets top:18px inline) clears an iPhone's status bar — the
   console installed on the home screen draws under it (black-translucent); ✕ stays tappable (review of change 3) */
html.shine #sched-toast{ top:max(18px, calc(env(safe-area-inset-top, 0px) + 12px)) !important; }

/* ═══════════ §7 · PAGES ═══════════
   Owner: package M (console-blueprint §7.8) — every other page (pg-*). */

/* ---- shared bits of the pages: an icon in a button, an icon in front of a card's title ---- */
html.shine .pg-bic{ display:inline-grid; place-items:center; margin-inline-end:7px; vertical-align:-4px; }
html.shine .pg-bic svg{ width:17px; height:17px; margin:0; }
html.shine .pg-ct{ display:inline-flex; align-items:center; gap:9px; }
html.shine .pg-cic{ display:inline-grid; place-items:center; flex:none; width:28px; height:28px; border-radius:9px; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .pg-cic svg{ width:16px; height:16px; margin:0; }
html.shine .pg-quote{ margin:8px 0 0; padding:10px 12px; border-inline-start:3px solid var(--sh-accent); border-radius:8px; background:var(--sh-sunk); color:var(--sh-ink); white-space:pre-wrap; overflow-wrap:anywhere; }
html.shine .msg.pg-err, html.shine .pg-err{ color:var(--red); font-weight:600; }
html.shine .card.pg-sub{ border-color:var(--sh-line) !important; }   /* the inline #eee hairline of a card inside a page */

/* ---- Team: the add-person panel and its invite step (H4), the language line (H5) ---- */
html.shine .pg-add .sheet-row{ margin-bottom:4px; }
html.shine .pg-inv-link{ display:flex; align-items:center; gap:10px; margin:12px 0; padding:10px 12px; border:1px solid var(--sh-line); border-radius:12px; background:var(--sh-surface-2); }
html.shine .pg-inv-ic{ display:inline-grid; place-items:center; flex:none; width:32px; height:32px; border-radius:9px; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .pg-inv-url{ min-width:0; overflow-wrap:anywhere; font:600 14px/1.35 var(--body); color:var(--sh-ink); }
html.shine #pg-inv-text{ width:100%; min-height:150px; margin:4px 0 10px; font:14px/1.45 var(--body); resize:vertical; }
html.shine .pg-inv-acts{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 8px; }
html.shine .pg-inv-acts .btn{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; text-decoration:none; }
html.shine .pg-inv-acts .btn svg{ margin:0; }
html.shine .pg-langfix{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:6px 0 8px; font-size:13px; }
html.shine .pg-langfix .btn{ min-height:40px; }
html.shine .pg-pinrow{ display:flex; gap:8px; }
html.shine .pg-pinrow input{ flex:1; min-width:0; font-size:18px; letter-spacing:4px; }
html.shine .pg-pinrow .btn{ flex:none; min-height:44px; min-width:76px; }
html.shine .uc-msg{ display:inline-grid; place-items:center; padding:0; width:40px; height:36px; }
html.shine .uc-msg svg{ margin:0; }
html.shine .pg-tlic{ display:inline-grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .pg-tlic svg{ margin:0; }
html.shine .pg-ob{ background:var(--sh-surface-2) !important; color:var(--sh-ink); }
html.shine .pg-rowacts{ flex-wrap:wrap; }
html.shine .ts-board{ background:var(--sh-surface-2); border-color:var(--sh-line); }
html.shine .ts-row{ border-top-color:var(--sh-line); }
html.shine .ts-say{ background:var(--sh-soft); color:var(--sh-ink); }

/* ---- Chat: the list and the conversation in the tokens (both themes); icons instead of emoji avatars ---- */
html.shine .ct-row{ color:var(--sh-ink); }
html.shine .ct-row:hover{ background:var(--sh-surface-2); }
html.shine .ct-row.on{ background:var(--sh-soft); }
html.shine .ct-sec{ color:var(--sh-ink-3); }
html.shine .ct-top small, html.shine .ct-prev{ color:var(--sh-ink-2); }
html.shine .ct-unread{ background:#D92D20; color:#FFFFFF; }
html.shine[data-theme="dark"] .ct-unread{ background:#D92D20; color:#FFFFFF; }
html.shine .ct-av.pg-av-ic{ background:var(--sh-soft); color:var(--sh-accent-ink); }
html.shine .ct-av.pg-av-ic.pg-av-off{ background:var(--sh-sunk); color:var(--sh-ink-3); }
html.shine .ct-av svg{ margin:0; }
html.shine .ac-head{ border-bottom-color:var(--sh-line); color:var(--sh-ink); }
html.shine .ac-day span{ background:var(--sh-sunk); color:var(--sh-ink-2); }
html.shine .ac-bubble{ background:var(--sh-surface); border-color:var(--sh-line); color:var(--sh-ink); }
html.shine .ac-msg.mine .ac-bubble{ background:var(--sh-accent); border-color:var(--sh-accent); color:#FFFFFF; }
html.shine .ac-acts{ background:var(--sh-surface); border-color:var(--sh-line); }
html.shine .ac-react{ background:var(--sh-surface); border-color:var(--sh-line); color:var(--sh-ink); }
html.shine .ac-react.me{ background:var(--sh-soft); border-color:var(--sh-accent); }
html.shine :is(.ac-pin,.ac-rbar){ background:var(--sh-soft); color:var(--sh-ink); }
html.shine .ac-emoji-btn{ display:inline-grid; place-items:center; padding:0; background:var(--sh-surface); border-color:var(--sh-line-strong); color:var(--sh-ink-2); }
html.shine .ac-emoji-btn svg{ margin:0; }
html.shine .pg-chat-tools .btn{ display:inline-flex; align-items:center; gap:6px; }
html.shine .pg-chat-tools .btn svg{ margin:0; }
html.shine .pg-chat-back{ display:none; }
html.shine .pg-flip svg{ transform:scaleX(-1); }

@media (max-width:599px){
  /* Chat: one pane at a time — the list, or one conversation with "‹ All chats" (pgChatPane) */
  html.shine #t-chat > .pg-chat-top{ display:none; }
  html.shine #t-chat .pg-chat{ display:block !important; }
  html.shine #chat-threads{ min-width:0 !important; max-width:none !important; }
  html.shine #t-chat.pg-chat--open #chat-threads{ display:none; }
  html.shine #t-chat:not(.pg-chat--open) .pg-chat-conv{ display:none; }
  html.shine #t-chat.pg-chat--open .pg-chat-note{ display:none; }
  html.shine .pg-chat-conv{ min-width:0 !important; }
  html.shine .pg-chat-back{ display:inline-flex; align-items:center; min-height:44px; margin:0 0 6px; padding:0 14px 0 8px; }
  html.shine .pg-chat-back .pg-bic{ margin-inline-end:4px; }
  html.shine .ct-row{ min-height:62px; padding:10px 8px; }
  html.shine .pg-chat-tools{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin-bottom:10px !important; }
  html.shine .pg-chat-tools .btn{ min-height:44px; justify-content:center; padding:0 6px; }
  html.shine #t-chat .ac-list{ height:max(170px, calc(100dvh - 430px - env(safe-area-inset-bottom, 0px))); max-height:none; }
  /* the composer stays just above the bottom bar (and the raised Chat button) while the page scrolls */
  html.shine #t-chat{ overflow:visible; }
  html.shine #t-chat .ac-composer{ position:sticky; bottom:calc(var(--bb-h) + env(safe-area-inset-bottom, 0px) + 30px); z-index:5; margin-top:8px; padding:6px 0; background:var(--sh-page); }
  html.shine .ac-composer .pg-emo{ display:none; }                 /* the phone's keyboard has its own emoji */
  html.shine .ac-emoji-btn{ width:44px; height:44px; flex:none; }
  html.shine #achat-in{ min-width:0; min-height:44px; font-size:16px; }   /* 16 px: an iPhone does not zoom in on it */
  html.shine .ac-composer .btn{ min-height:44px; padding:0 14px; flex:none; }
  html.shine .ac-msg{ max-width:88%; }

  /* a page that is one big card on a computer: on a phone its parts are the cards (no box in a box) */
  html.shine .card.pg-page{ background:none; border:0; box-shadow:none; padding:0; border-radius:0; }
  html.shine .pg-head{ flex-direction:column; align-items:stretch; gap:10px; margin-bottom:12px; }
  html.shine .pg-head > .sec-title{ display:none; }                 /* the top bar already says it */
  html.shine .pg-tools{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
  html.shine .pg-tools .btn{ width:100%; min-height:44px; padding:6px 10px; white-space:normal; line-height:1.2; }
  html.shine .pg-tools .btn:first-child, html.shine .pg-tools .btn:nth-child(2):last-child{ grid-column:1 / -1; }
  html.shine .pg-back{ min-height:44px; padding-inline:14px; }

  /* Team › People */
  html.shine .ppl-toolbar{ flex-direction:column; align-items:stretch; gap:8px; }
  html.shine #people-search{ min-width:0; width:100%; min-height:44px; }
  html.shine .ppl-tabs{ display:grid; grid-template-columns:repeat(auto-fit, minmax(0,1fr)); }
  html.shine .ppl-tab{ min-height:44px; justify-content:center; }
  html.shine .ppl-list{ grid-template-columns:minmax(0,1fr); }
  html.shine .ucard{ display:grid; grid-template-columns:40px minmax(0,1fr) auto; column-gap:12px; row-gap:6px; align-items:center; background:var(--sh-surface); border-color:var(--sh-line); }
  html.shine .ucard .uc-av{ grid-column:1; grid-row:1 / span 2; align-self:start; }
  html.shine .ucard .uc-main{ grid-column:2; grid-row:1; }
  html.shine .ucard .uc-rate{ grid-column:2; grid-row:2; font-size:12.5px; color:var(--sh-ink-2); }
  html.shine .ucard .uc-acts{ grid-column:3; grid-row:1 / span 2; }
  html.shine .ucard .uc-arch{ grid-column:1 / -1; margin:2px 0 0; width:100%; }
  html.shine .uc-sub{ white-space:normal; }
  html.shine .uc-msg{ width:44px; height:44px; }
  html.shine .card.pg-sub{ margin-top:16px !important; }

  /* Team setup board: the four marks stay 44 px; the actions go under them, half the width each */
  html.shine .ts-board{ padding:12px; border-radius:16px; }
  html.shine .ts-board > .topbar{ flex-direction:column; align-items:stretch; gap:10px; }
  html.shine .ts-board > .topbar > .rowbtns{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  html.shine .ts-board .ppl-tabs{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  html.shine .ppl-tab{ white-space:nowrap; padding-inline:8px; }
  html.shine .pg-hide-phone{ display:none; }
  html.shine .btn.pg-refresh{ min-width:44px; padding:0 12px; }
  html.shine .btn.pg-refresh svg{ margin:0; }
  html.shine .ts-board .rowbtns .btn, html.shine .ts-acts .btn{ min-height:44px; }
  html.shine .ts-row{ display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  html.shine .ts-acts{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
  html.shine .ts-acts .btn{ width:100%; padding:6px 8px; white-space:normal; line-height:1.2; }
  html.shine .ts-acts .btn.g{ grid-column:1 / -1; }

  /* a person's profile */
  html.shine #t-userprof .up-head{ align-items:flex-start; }
  html.shine .pg-upacts{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; width:100%; }
  html.shine .pg-upacts .btn{ width:100%; min-height:44px; }
  html.shine .pg-subtabs{ flex-wrap:nowrap; overflow-x:auto; gap:2px; scrollbar-width:none; margin-inline:-2px; }
  html.shine .pg-subtabs::-webkit-scrollbar{ display:none; }
  html.shine .pg-subtabs .subtab{ flex:none; min-height:44px; padding:0 14px; font-size:14.5px; }
  html.shine #up-body > .topbar{ flex-direction:column; align-items:flex-start; gap:2px; }
  html.shine #up-body .rowbtns .btn, html.shine #up-body .btn.sm{ min-height:44px; }
  html.shine #up-body .rowbtns:not(.pg-rowacts){ align-items:stretch !important; }
  html.shine #up-body .rowbtns input, html.shine #up-body .rowbtns select{ max-width:none !important; min-height:44px; flex:1 1 100%; }
  html.shine #up-body .stat{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
  html.shine .pg-rowacts{ justify-content:flex-end; }
  html.shine .pg-ob{ min-height:44px; }
  html.shine .pg-langfix .btn{ min-height:44px; width:100%; }

  /* the side panels' own buttons on a phone */
  html.shine .pg-inv-acts{ display:grid; grid-template-columns:minmax(0,1fr); }
  html.shine .pg-inv-acts .btn{ justify-content:center; }

  /* a page with a plain page head (Photos, Forms and answers, Settings, Keys, Tasks, …): the title is in the
     top bar already — its own head keeps only its buttons */
  html.shine .pg-page2 > .page-head{ justify-content:flex-end; margin-bottom:10px; }
  html.shine .pg-page2 > .page-head h1, html.shine .pg-page2 > .page-head .sub{ display:none; }
  html.shine .pg-page2 > .page-head .btn{ min-height:44px; }
  html.shine .pg-cardtools{ width:100%; display:grid; grid-template-columns:repeat(auto-fit, minmax(0,1fr)); gap:8px; }
  html.shine .pg-cardtools .btn{ min-height:44px; width:100%; }
  html.shine .card .topbar{ gap:8px; }

  /* Addresses: a site card and its site file fit 320 px — every field the full width, buttons 44 px */
  html.shine .pg-sitecard{ padding:12px !important; }
  html.shine .pg-sitef > :is(input,select){ flex:1 1 100% !important; max-width:none !important; min-width:0 !important; min-height:44px; }
  html.shine .pg-sitef > input[type=color]{ flex:0 0 52px !important; width:52px !important; height:44px !important; }
  html.shine .pg-sitef > input[type=color] + input{ flex:1 1 0 !important; }
  html.shine .pg-sitef > [id^="site-pc-"]{ flex:2 1 0 !important; }
  html.shine .pg-sitef > [id^="site-nr-"]{ flex:1 1 0 !important; }
  html.shine .pg-sitef > .pill{ flex:none; }
  html.shine .pg-sitef > .btn{ flex:1 1 auto; min-height:44px; }
  html.shine .pg-dossier{ padding:10px !important; }
  html.shine .pg-dossier :is(div[style*="min-width"]){ flex:1 1 100% !important; min-width:0 !important; }
  html.shine .pg-dossier :is(input,select,textarea){ max-width:none !important; min-height:44px; }
  html.shine .pg-dossier .btn{ min-height:44px; flex:1 1 auto; }
  html.shine .pg-qr{ flex-direction:column; align-items:stretch; }
  html.shine .pg-qr img{ width:140px; height:140px; align-self:center; }
  html.shine .pg-qr code{ display:block; overflow-wrap:anywhere; white-space:normal; }
  html.shine .pg-qr .btn{ min-height:44px; flex:1 1 auto; }
  html.shine #site-settings-card label:has(> input[type=number]){ flex-wrap:wrap; }
  html.shine #site-settings-card input[type=checkbox], html.shine #site-settings-card input[type=radio]{ width:20px !important; height:20px; flex:none; }

  /* Keys: the add form one field per line, the registry → rows (labelTables), the conflicts card */
  html.shine #keys-add{ flex-direction:column; align-items:stretch; }
  html.shine #keys-add :is(select,input){ max-width:none; width:100%; min-height:44px; }
  html.shine #keys-add .btn, html.shine #t-keys .btn{ min-height:44px; }
  html.shine .key-hsel{ min-height:44px; min-width:0 !important; width:100%; max-width:100%; flex:1 1 auto; }
  html.shine #keys-tbl td > span:has(> .key-hsel){ min-width:0; flex:0 1 72%; }
  html.shine .kc-row{ align-items:flex-start; min-height:44px; }

  /* Photos: filters on their own lines, each photo a card with its thumbnail as the title; the tick top right */
  html.shine .pg-filters .rowbtns > :is(input,select){ max-width:none !important; flex:1 1 100%; min-height:44px; }
  html.shine .pg-filters #subs-count{ margin-left:0 !important; }
  html.shine #subs-status-chips{ display:flex; flex-wrap:wrap; gap:8px; }
  html.shine .pg-chip{ flex:1 1 auto; min-height:44px; white-space:nowrap; }
  html.shine .pg-chip:first-child{ flex-basis:100%; white-space:normal; }
  html.shine #subs-tbl tr:not(.rt-head){ position:relative; }
  html.shine #subs-tbl tr:not(.rt-span) > td:first-child{ position:absolute; top:6px; inset-inline-end:8px; width:44px; height:44px; display:grid; place-items:center; padding:0; }
  html.shine #subs-tbl tr:not(.rt-span) > td:first-child input{ width:22px; height:22px; }
  html.shine .pg-mgr .rowbtns{ align-items:stretch !important; }
  html.shine .pg-mgr .rowbtns :is(input,.btn){ min-height:44px; max-width:none !important; flex:1 1 100%; }
  html.shine #subs-tbl td.rt-t img{ width:72px !important; height:72px !important; }
  html.shine #subs-tbl td.rvw-cell{ display:grid; grid-template-columns:minmax(0,1fr); gap:6px; text-align:start; }
  html.shine #subs-tbl td.rvw-cell :is(input,select){ min-height:44px; width:100%; max-width:none; }
  html.shine .pg-bulk{ position:sticky; top:64px; z-index:5; }
  html.shine .pg-bulk .btn{ min-height:44px; }
  html.shine #sub-dlg[open]{ width:100vw; max-width:100vw; height:100dvh; max-height:none; margin:0; border-radius:0; border:0; padding:calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  html.shine #sub-dlg .btn{ min-height:44px; }

  /* the deeper pages (Tasks, Updates, Events, Recognitions, Rewards, Documents, Forms and answers): their forms
     one field per line, 44 px boxes and buttons; their tables become rows (labelTables) */
  html.shine .pg-forms .rowbtns > div{ flex:1 1 100% !important; min-width:0 !important; }
  html.shine .pg-forms .rowbtns > div :is(input,select){ max-width:none !important; width:100%; }
  html.shine :is(.pg-forms, #t-content, #t-updates) :is(input:not([type=checkbox],[type=radio],[type=color],[type=range],[type=file]),select){ min-height:44px; }
  html.shine :is(.pg-forms, #t-content, #t-updates) .btn{ min-height:44px; }
  html.shine .pg-forms .dash-grid{ grid-template-columns:minmax(0,1fr) !important; }
  html.shine .pg-doc .rowbtns > input{ flex:1 1 100% !important; min-width:0 !important; }
  html.shine .bdg-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  html.shine #exam-qs .rowbtns input:not([type=checkbox]){ flex:1 1 0; min-width:0; }

  /* the pages' dialogs: the whole screen on a phone (the map fills it); the updates wizard's top bar wraps */
  html.shine :is(#geo-dlg,#junk-dlg,#hist-dlg)[open]{ width:100vw !important; max-width:100vw !important; height:100dvh; max-height:none; margin:0; border:0 !important; border-radius:0 !important; padding-top:env(safe-area-inset-top, 0px); padding-bottom:env(safe-area-inset-bottom, 0px); }
  html.shine #geo-dlg #geo-map{ height:calc(100dvh - 250px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; }
  html.shine :is(#geo-dlg,#junk-dlg,#hist-dlg,#cvc-dlg) .btn{ min-height:44px; }
  html.shine #geo-radius{ width:100% !important; }
  html.shine #uw-ov .uw-top{ flex-wrap:wrap; gap:8px; padding:calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
  html.shine #uw-ov .uw-top .btn, html.shine #uw-ov .uw-toolbar button{ min-height:44px; min-width:44px; }
  html.shine #uw-ov .uw-shell{ padding:14px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
  html.shine #lb-ov .btn{ min-height:44px; }

  /* Settings: cards stack, every form one column, 44 px buttons and boxes */
  html.shine #t-settings .card .btn, html.shine #t-settings .card :is(input:not([type=checkbox],[type=radio]),select){ min-height:44px; }
  html.shine #t-settings .up-kv{ flex-wrap:wrap; }
  html.shine #t-settings .up-kv b{ max-width:none; white-space:normal; text-align:start; }
  html.shine #t-settings label:has(> input[type=date]){ flex-direction:column; align-items:stretch !important; }
}

/* ---- Keys: the conflicts card without the old coloured rail; amber only where a key is in the wrong hands ---- */
html.shine :is(.kc-hero,.kc-hero.kc-ok,.kc-hero.kc-bad){ background:var(--sh-surface); border-color:var(--sh-line); }
html.shine .kc-hero.kc-bad{ border-color:var(--sh-warn); }
html.shine .kc-hero::before{ display:none; }
html.shine .kc-row{ background:var(--sh-warn-bg); border-color:var(--sh-warn); }
html.shine :is(.kc-row .kct, .kc-row .kct b){ color:var(--sh-ink); }
html.shine .holder-office{ display:inline-flex; align-items:center; gap:5px; }

/* ---- Photos: the review chips and the held-from-bonus card in the tokens ---- */
html.shine .pg-chip--warn{ background:var(--sh-warn-bg); color:var(--sh-warn); border:1px solid var(--sh-warn); box-shadow:none; }
html.shine .pg-chip--warn:hover{ background:var(--sh-warn-bg); color:var(--sh-warn); }
html.shine .pg-chip--due{ border-color:var(--sh-warn) !important; color:var(--sh-warn) !important; }
html.shine .pg-held{ background:var(--sh-warn-bg) !important; border-color:var(--sh-warn) !important; color:var(--sh-ink) !important; }
html.shine .pg-bulk{ background:var(--sh-soft) !important; border-color:var(--sh-line) !important; }
