/* ==========================================================================
   Hub v2 — the Control Center look for every Hub page.
   Loaded AFTER app.css (only when lib/ui-v2.php says v2 is on). Pages keep their own
   markup; this re-skins the shared pieces and remaps the colour tokens they already use
   (--bg, --surface, --text, --accent2 …), so inline var(--…) colours follow along.
   Palette = hub/public/control-assets/control.css (teal), light + dark.
   ========================================================================== */
html[data-theme]{
  --v2-accent:#087f86; --v2-accent-soft:#e2f4f1; --v2-ink:#1b3044; --v2-side:#fff; --v2-hover:#f2f6f9;
  --bg:#eef3f7; --bg2:#fff; --surface:#fff; --surface2:#f5f8fb;
  --line:#dce6ee; --text:#1b3044; --muted:#62788d; --faint:#6d8195;
  --accent:#087f86; --accent2:#0a8f95; --accent3:#168b73; --warn:#a8701a; --bad:#c2453b;
  --radius:14px; --radius-sm:12px; --shadow:0 4px 18px #162d4510;
  --glow:transparent; --glow-soft:transparent;
  color-scheme:light;
}
html[data-theme=dark]{
  --v2-accent:#4cd9bf; --v2-accent-soft:#193d40; --v2-ink:#e5eff8; --v2-side:#132231; --v2-hover:#1b3044;
  --bg:#0b1420; --bg2:#0f1b29; --surface:#132231; --surface2:#182b3d;
  --line:#263c50; --text:#e5eff8; --muted:#9eb1c2; --faint:#7189a0;
  --accent:#2fbfaa; --accent2:#4cd9bf; --accent3:#5ad19a; --warn:#f2c06b; --bad:#ff7d70;
  --shadow:0 5px 20px #00000030;
  color-scheme:dark;
}
body.v2{background:var(--bg);color:var(--text);font-family:'DM Sans','Segoe UI',system-ui,sans-serif;font-size:14.5px;line-height:1.55}
body.v2 h1,body.v2 h2,body.v2 h3,body.v2 .stat .v{font-family:'Manrope','DM Sans',sans-serif}
body.v2 h1{font-size:1.75rem;font-weight:800;letter-spacing:-.03em}
body.v2 h2{font-size:1.08rem;font-weight:800;letter-spacing:-.02em}
body.v2 h3{font-weight:750}
/* the classic look's ambient aurora + glass topbar */
body.v2::before,body.v2::after{display:none}
body.v2 ::selection{background:color-mix(in srgb,var(--v2-accent) 28%,transparent);color:inherit}
body.v2 *{scrollbar-color:color-mix(in srgb,var(--muted) 35%,transparent) transparent}
body.v2 *::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 35%,transparent);border-color:var(--bg)}

/* ---------- shell: fixed sidebar + sticky top bar; the WINDOW still scrolls (scroll-restore relies on it) ---------- */
.v2-sidebar{position:fixed;inset:0 auto 0 0;width:236px;z-index:60;background:var(--v2-side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 12px 12px}
.v2-brand{display:flex;align-items:center;gap:11px;padding:0 10px 18px;font:800 23px/1 'Manrope',sans-serif;letter-spacing:-.04em;color:var(--v2-ink)}
.v2-brand small{display:block;font:700 8.5px 'DM Sans',sans-serif;letter-spacing:1.8px;color:var(--muted);margin-top:4px}
.v2-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:27px;color:#fff;background:linear-gradient(145deg,#3fd7c2,#167a94);box-shadow:0 4px 16px #0c9c9e25;flex:none}
.v2-nav{flex:1;min-height:0;overflow-y:auto;margin:0 -6px;padding:0 6px}
.nav-group{margin-bottom:10px}
.nav-label{font-size:9px;letter-spacing:1.7px;font-weight:700;color:var(--faint);margin:6px 12px 7px;text-transform:uppercase}
.nav-toggle{display:flex;align-items:center;gap:6px;width:calc(100% - 24px);background:none;border:0;padding:0;cursor:pointer;font-family:inherit}
.nav-toggle svg{width:13px;height:13px;margin-left:auto;transition:transform .15s}
.nav-group.closed .nav-toggle svg{transform:rotate(-90deg)}
.nav-group.closed .nav-items{display:none}
.nav-items{display:flex;flex-direction:column;gap:1px}
.v2-sidebar .nav-item{display:flex;align-items:center;gap:11px;padding:8px 12px;border-radius:9px;color:var(--muted);font-size:13px;font-weight:600;transition:background .12s,color .12s}
.v2-sidebar .nav-item svg{width:17px;height:17px;flex:none}
.v2-sidebar .nav-item:hover{background:var(--v2-hover);color:var(--v2-ink)}
.v2-sidebar .nav-item.active{background:var(--v2-accent-soft);color:var(--v2-accent)}
.nav-count{margin-left:auto;min-width:19px;text-align:center;border-radius:6px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1.3;background:var(--v2-accent-soft);color:var(--v2-accent)}
.nav-count.blue{background:#e2effa;color:#2f6f9f}.nav-count.violet{background:#eeeafd;color:#6a52c4}.nav-count.green{background:#ddf3ea;color:#22795c}.nav-count.amber{background:#fbeed7;color:#94661c}.nav-count.red{background:#fde3e1;color:#b13e35}
html[data-theme=dark] .nav-count.blue{background:#22394f;color:#9fc8ea}html[data-theme=dark] .nav-count.violet{background:#332c55;color:#c9bcff}html[data-theme=dark] .nav-count.green{background:#1f3d35;color:#8fd0b8}html[data-theme=dark] .nav-count.amber{background:#43381f;color:#e2c084}html[data-theme=dark] .nav-count.red{background:#4a2b2e;color:#f0a8a2}
.nav-toggle .nav-count{margin-left:6px;font-size:9px;letter-spacing:0}
.v2-side-foot{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:8px}
.v2-clock{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:11px;background:var(--surface2);color:var(--v2-ink)}
.v2-clock strong{display:block;font:700 12px 'Manrope',sans-serif}.v2-clock small{display:block;font-size:10.5px;color:var(--muted)}
.v2-clock .dot{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:none}
.v2-clock.on{background:linear-gradient(145deg,#e5f6ef,#f1faf6)}.v2-clock.on .dot{background:#2fae84;box-shadow:0 0 0 4px #2fae8426}
html[data-theme=dark] .v2-clock.on{background:linear-gradient(145deg,#1b3a33,#17292f)}
.v2-account{display:flex;align-items:center;gap:10px;padding:4px 6px}
body.v2 .v2-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none;color:#fff;background:var(--c,#1c9bd6)}
.v2-who{min-width:0;flex:1}.v2-who strong{display:block;font-size:12.5px;color:var(--v2-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v2-who small{display:block;font-size:10.5px;color:var(--muted)}
.v2-account form{margin:0}
.v2-link{background:none;border:0;color:var(--v2-accent);font:600 11.5px 'DM Sans',sans-serif;cursor:pointer;padding:4px 0;white-space:nowrap}

.v2-workspace{margin-left:236px;min-width:0}
.v2-top{position:sticky;top:0;z-index:50;height:64px;display:flex;align-items:center;gap:16px;padding:0 32px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.v2-search{flex:1;max-width:520px;display:flex;align-items:center;gap:10px;color:var(--faint);margin:0}
.v2-search svg{width:18px;height:18px;flex:none}
body.v2 .v2-search input{border:0;background:transparent;box-shadow:none;padding:8px 0;font-size:13px;color:var(--text)}
body.v2 .v2-search input:focus{box-shadow:none;outline:none}
.v2-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.v2-pill{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;border:0;cursor:pointer;background:var(--surface2);color:var(--text);font:650 12.5px 'DM Sans',sans-serif;white-space:nowrap}
.v2-pill svg{width:15px;height:15px}
.v2-pill:hover{background:var(--v2-hover)}
.v2-pill.primary{background:var(--v2-accent);color:#fff;box-shadow:0 6px 14px color-mix(in srgb,var(--v2-accent) 30%,transparent)}
html[data-theme=dark] .v2-pill.primary{color:#062a2a}
.v2-pill.primary:hover{filter:brightness(1.07)}
.v2-icon{width:36px;height:36px;border-radius:10px;border:0;cursor:pointer;background:var(--surface2);color:var(--muted);font-size:17px;display:inline-grid;place-items:center;flex:none}
.v2-icon:hover{color:var(--v2-ink)}
.v2-menu{display:none}
.v2-scrim{display:none}
body.v2 #qplaunch{display:none}   /* the floating ⚡ pill still exists (it fetches the modal) — the top-bar button presses it */

/* ---------- page body ---------- */
/* bottom padding clears the floating chat (58px) + Digi (74px) buttons so the last row is never under them */
body.v2 .wrap{max-width:1640px;padding:26px 32px 112px}
body.v2 .pagehead{margin-bottom:20px}
body.v2 .pagehead p{color:var(--muted)}
body.v2 .eyebrow{font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:700;letter-spacing:2px;color:var(--v2-accent);margin-bottom:8px}
body.v2 .eyebrow::before{display:none}
body.v2 .muted{color:var(--muted)} body.v2 .faint{color:var(--faint)}
/* (links: app.css already sets a{color:inherit} — a body.v2 copy here out-ranked every page's ".x a{color}" rule) */

/* cards → panels */
body.v2 .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 22px;margin-bottom:16px}
body.v2 .card:hover{transform:none;border-color:var(--line);box-shadow:var(--shadow)}
body.v2 .card-h{gap:11px;margin-bottom:13px}
body.v2 .card-h h2{font-size:1.02rem}
body.v2 .card-h .n{min-width:30px;height:30px;border-radius:9px;background:var(--v2-accent-soft);color:var(--v2-accent);box-shadow:none;font-family:'Manrope',sans-serif;font-size:.8rem}
body.v2 .grid{gap:16px}

/* stat tiles → metric cards */
body.v2 .stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px}
body.v2 .stat::before{display:none}
body.v2 .stat:hover{transform:none;box-shadow:var(--shadow);border-color:var(--line)}
body.v2 .stat .v{font-size:1.75rem;font-weight:800;letter-spacing:-.03em}
body.v2 .stat .l{font-size:.78rem;font-weight:600;color:var(--muted)}

/* tables */
body.v2 .tbl{font-size:.9rem}
body.v2 .tbl th{font-family:'DM Sans',sans-serif;font-size:.66rem;font-weight:700;letter-spacing:.07em;color:var(--faint);background:var(--surface2);padding:10px 12px;border-bottom:1px solid var(--line)}
body.v2 .tbl td{border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);padding:10px 12px}
body.v2 .tbl tr:hover td{background:color-mix(in srgb,var(--v2-accent) 4%,transparent)}
body.v2 .card > .tbl:first-child th:first-child{border-top-left-radius:8px}

/* badges → soft tags */
body.v2 .badge{font-family:'DM Sans',sans-serif;font-size:.66rem;font-weight:700;letter-spacing:.04em;border-radius:6px;padding:4px 8px;border:0;background:var(--surface2);color:var(--muted);box-shadow:none}
body.v2 .badge.queued{background:#e2effa;color:#2f6f9f}
body.v2 .badge.in_progress,body.v2 .badge.doing{background:#eeeafd;color:#6a52c4}
body.v2 .badge.done,body.v2 .badge.complete,body.v2 .badge.shipped{background:#ddf3ea;color:#22795c}
body.v2 .badge.on_hold,body.v2 .badge.blocked{background:#fbeed7;color:#94661c}
body.v2 .badge.quoting{background:#f1f3f8;color:#5f6f86}
body.v2 .badge.cancelled{background:#f1f3f8;color:var(--faint);text-decoration:line-through}
html[data-theme=dark] body.v2 .badge.queued{background:#22394f;color:#9fc8ea}
html[data-theme=dark] body.v2 .badge.in_progress,html[data-theme=dark] body.v2 .badge.doing{background:#332c55;color:#c9bcff}
html[data-theme=dark] body.v2 .badge.done,html[data-theme=dark] body.v2 .badge.complete,html[data-theme=dark] body.v2 .badge.shipped{background:#1f3d35;color:#8fd0b8}
html[data-theme=dark] body.v2 .badge.on_hold,html[data-theme=dark] body.v2 .badge.blocked{background:#43381f;color:#e2c084}
html[data-theme=dark] body.v2 .badge.quoting,html[data-theme=dark] body.v2 .badge.cancelled{background:#22324a;color:#a9b8cc}

/* buttons */
body.v2 .btn{font-family:'DM Sans',sans-serif;font-weight:650;font-size:.86rem;border-radius:9px;padding:9px 16px}
body.v2 .btn:hover{transform:none}
body.v2 .btn.primary{background:var(--v2-accent);color:#fff;box-shadow:0 6px 14px color-mix(in srgb,var(--v2-accent) 25%,transparent)}
html[data-theme=dark] body.v2 .btn.primary{color:#062a2a}
body.v2 .btn.primary::after{display:none}
body.v2 .btn.primary:hover{filter:brightness(1.07);box-shadow:0 6px 14px color-mix(in srgb,var(--v2-accent) 30%,transparent)}
body.v2 .btn.ghost{background:var(--surface);border:1px solid var(--line);color:var(--text)}
body.v2 .btn.ghost:hover{background:var(--v2-hover)}
body.v2 .btn.bad{background:color-mix(in srgb,var(--bad) 10%,transparent);border-color:color-mix(in srgb,var(--bad) 30%,transparent);color:var(--bad)}
body.v2 .btn.sm{padding:7px 12px;font-size:.8rem}

/* forms */
body.v2 input,body.v2 select,body.v2 textarea{background:var(--bg2);border:1px solid color-mix(in srgb,var(--line) 80%,var(--muted) 20%);border-radius:9px;color:var(--text);font-family:inherit}
body.v2 input[type=checkbox],body.v2 input[type=radio]{accent-color:var(--v2-accent)}
body.v2 input:focus,body.v2 select:focus,body.v2 textarea:focus{border-color:var(--v2-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--v2-accent) 18%,transparent)}
html[data-theme=light] body.v2 input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme=light] body.v2 input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme=light] body.v2 input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme=light] body.v2 input[type="month"]::-webkit-calendar-picker-indicator{filter:none;opacity:.6}
body.v2 label.fl{color:var(--text)}

/* alerts */
body.v2 .alert{border-radius:10px;font-size:.9rem}
body.v2 .alert.ok{background:color-mix(in srgb,var(--accent3) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--accent3) 30%,transparent);color:var(--accent3)}
body.v2 .alert.bad{background:color-mix(in srgb,var(--bad) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--bad) 30%,transparent);color:var(--bad)}
body.v2 .alert.info{background:color-mix(in srgb,var(--accent2) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--accent2) 30%,transparent);color:var(--accent2)}

/* misc */
body.v2 .jthumb{border-color:var(--line)}
body.v2 a:focus-visible,body.v2 button:focus-visible,body.v2 summary:focus-visible,body.v2 [tabindex]:focus-visible{outline-color:var(--v2-accent)}
body.v2 .auth{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
body.v2 .auth .swap a{color:var(--v2-accent)}
body.v2 #postits{top:80px}
body.v2 .molten-card .card-h .n{color:#fff !important}

/* ---------- responsive: sidebar slides in under 960px ---------- */
@media(max-width:960px){
  /* closed drawer: no shadow bleeding onto the page, and out of the Tab order */
  .v2-sidebar{transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility 0s .2s;width:248px}
  .v2-sidebar.open{transform:none;visibility:visible;transition:transform .2s;box-shadow:20px 0 60px #10203a24;z-index:126}
  .v2-scrim.on{display:block;position:fixed;inset:0;z-index:125;background:#0b142066}   /* above the floating chat/Digi buttons */
  .v2-workspace{margin-left:0}
  .v2-menu{display:inline-grid}
  .v2-top{padding:0 16px;gap:10px}
  .v2-pill span{display:none}
  .v2-pill{padding:9px 10px}
  body.v2 .wrap{padding:20px 16px 112px}
}
@media(max-width:520px){.v2-search input::placeholder{color:transparent}}
@media print{
  .v2-sidebar,.v2-top,.v2-scrim,#digibot,#digipanel,#postits,#qnpop,#hubchatBtn,#hubchatPanel{display:none !important}
  .v2-workspace{margin-left:0}
  body.v2{background:#fff}
}
@media(prefers-reduced-motion:reduce){.v2-sidebar,.nav-toggle svg{transition:none}}

/* ---------- light mode: pale text colours written for the dark classic Hub, inline on many pages.
   Darkened here (inline style="" only) instead of editing each page. Skipped where the same element
   paints its own dark #0…/#1… background (SMS bubbles, previews); the dark #2…-#4… chips are turned
   into soft tags further down. Colours set in page <style> blocks are handled per class below. ---------- */
html[data-theme=light] body.v2 [style*="color:#dff6e7" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #dff6e7" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#c2ecd0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #c2ecd0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#c9e8d8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #c9e8d8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#9fe9a8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9fe9a8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#7ee68a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #7ee68a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#68e894" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #68e894" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#a8dbb8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #a8dbb8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#8fe0ac" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #8fe0ac" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#7ae2a8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #7ae2a8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#34d63e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #34d63e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#2fb84a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #2fb84a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#88b7a0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #88b7a0" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#1d7a52 !important}
html[data-theme=light] body.v2 [style*="color:#9ceee2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9ceee2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#2dd4bf" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #2dd4bf" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#7fbdb4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #7fbdb4" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#0b7d78 !important}
html[data-theme=light] body.v2 [style*="color:#ffe9c2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffe9c2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ffdca0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffdca0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ffd97a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffd97a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#f3d394" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #f3d394" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ffce9b" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffce9b" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#e6cf6a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e6cf6a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#f7bd55" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #f7bd55" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ffb454" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffb454" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#f0b429" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #f0b429" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ffa76a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffa76a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#e0a020" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e0a020" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#94661c !important}
html[data-theme=light] body.v2 [style*="color:#e08a5a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e08a5a" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#b4532a !important}
html[data-theme=light] body.v2 [style*="color:#ffb0a6" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ffb0a6" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ff9d9d" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ff9d9d" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ff9d94" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ff9d94" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ff8a8e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ff8a8e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ff6b5e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ff6b5e" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#ff6a5a" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #ff6a5a" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#b13e35 !important}
html[data-theme=light] body.v2 [style*="color:#bfe6f8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #bfe6f8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#8fd0ff" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #8fd0ff" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#7cc7ee" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #7cc7ee" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#7cc6f0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #7cc6f0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#90b8d8" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #90b8d8" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#2f6f9f !important}
html[data-theme=light] body.v2 [style*="color:#d9c9f0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #d9c9f0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#cfbdfd" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #cfbdfd" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#c9b7e2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #c9b7e2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#b794f6" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #b794f6" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#a882ff" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #a882ff" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#6a52c4 !important}
html[data-theme=light] body.v2 [style*="color:#e79ad6" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e79ad6" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:#a63c8c !important}
html[data-theme=light] body.v2 [style*="color:#e8eef3" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e8eef3" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#e8edf4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e8edf4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#e7eaf0" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #e7eaf0" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:var(--text) !important}
html[data-theme=light] body.v2 [style*="color:#a9b7c2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #a9b7c2" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#9fb0bb" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9fb0bb" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#9aa7b1" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9aa7b1" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#9aa3b4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9aa3b4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#8a97a4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #8a97a4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color:#9fb4c4" i]:not([style*="background:#0"]):not([style*="background:#1"]),
html[data-theme=light] body.v2 [style*="color: #9fb4c4" i]:not([style*="background:#0"]):not([style*="background:#1"]){color:var(--muted) !important}
html[data-theme=light] body.v2 [style*="color: rgb(255, 157, 148)"]{color:#b13e35 !important}

/* ==========================================================================
   Fixes from the live page-by-page review (2026-10-23).
   ========================================================================== */

/* ---- global ---- */
html[data-theme]{scroll-padding-top:80px;scrollbar-color:color-mix(in srgb,var(--muted) 45%,transparent) transparent}   /* #anchor jumps clear the sticky top bar; visible page scrollbar */
body.v2 *::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--muted) 60%,transparent)}
html[data-theme=light] body.v2 .tbl th{color:var(--muted)}
body.v2 .badge{white-space:nowrap}
body.v2 .tbl td[style*="white-space:nowrap"] > .mono{white-space:normal;overflow-wrap:anywhere}   /* Sent Emails: recipient lists wrap at their commas */
body.v2 button{font-family:inherit}
body.v2 .btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;filter:none}
/* bare class="btn" (no variant) used to fall through to the browser's grey button */
:where(body.v2) :where(.btn:not(.primary,.ghost,.bad,.molten-on)){background:var(--surface2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
:where(body.v2) :where(.btn:not(.primary,.ghost,.bad,.molten-on)):hover{background:var(--v2-hover)}
/* …and bare buttons painted with a dark inline colour (Suspend, Compose, Statement …) get white text unless they set their own */
body.v2 .btn:not(.primary,.ghost,.bad)[style*="background:#"]:not([style*="background:#f" i]):not([style*="background:#e" i]){color:#fff}
body.v2 input[type=file]::file-selector-button{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:7px;padding:6px 12px;margin-right:10px;font:600 .82rem 'DM Sans',sans-serif;cursor:pointer}
body.v2 .pagehead > form{flex-wrap:nowrap}
body.v2 .pagehead > form input[type=search]{width:auto;flex:1 1 220px}
body.v2 .card-h > input{width:auto;flex:0 1 280px}
body.v2 form.addline{display:flex;flex-wrap:wrap;gap:8px}
.v2-search:focus-within{color:var(--v2-accent);box-shadow:0 2px 0 var(--v2-accent)}
.v2-pill:disabled{opacity:.6;cursor:default}
/* white-on-teal wherever the classic look put navy text on the (then bright) accent */
html[data-theme=light] body.v2 .card-h .n[style*="color:#04222e"],
html[data-theme=light] body.v2 button[style*="color:#06222e"]{color:#fff !important}
html[data-theme=light] body.v2 .hcm.mine .hbub,html[data-theme=light] body.v2 #hcSend,html[data-theme=light] body.v2 .amsg.me .abub,
html[data-theme=light] body.v2 .qpseg button.on,html[data-theme=light] body.v2 .qpsk .seg button.on,html[data-theme=light] body.v2 .sq-step{color:#fff}
html[data-theme=light] body.v2 .segbtn.on,html[data-theme=light] body.v2 .toggle a.on,html[data-theme=light] body.v2 .cell.today .dnum{background:var(--v2-accent);color:#fff}
body.v2 .tabs a.on{background:var(--v2-accent);color:#fff;box-shadow:0 4px 12px color-mix(in srgb,var(--v2-accent) 25%,transparent)}
html[data-theme=dark] body.v2 .tabs a.on{color:#062a2a}
body.v2 button[style*="background:rgba(28,155,214,.12)"]{background:var(--v2-accent-soft) !important}
/* dark mode: white text on the (pastel) dark-mode --bad / --accent3 */
html[data-theme=dark] body.v2 .navbadge{color:#2a0d0a}
html[data-theme=dark] body.v2 .card-h .n[style*="background:var(--accent3)"][style*="color:#fff"],
html[data-theme=dark] body.v2 .card-h .n[style*="background:var(--bad)"][style*="color:#fff"]{color:#0b1420 !important}
html[data-theme=dark] body.v2 .badge[style*="background:var(--bad)"]{background:#c2453b !important}
/* tracks/rails that were a white tint (invisible on white) or --bg2 (= the card colour in light) */
html[data-theme=light] body.v2 [style*="background:rgba(255,255,255,.06)"]{background:rgba(27,48,68,.08) !important}
html[data-theme=light] body.v2 .btrack{background:#e8eef3}
body.v2 [style*="height:6px;background:var(--bg2)"]{background:var(--line) !important}
html[data-theme=light] body.v2 .fuprow > td{background:var(--surface2) !important}
html[data-theme=light] body.v2 .thrd:hover,html[data-theme=light] body.v2 .asgpop-item:hover,html[data-theme=light] body.v2 .jobs-tbl .due-btn:hover{background:var(--v2-hover)}
html[data-theme=light] body.v2 .tsgrid .wknd{background:rgba(22,45,69,.035)}
/* native date pickers that hard-coded color-scheme:dark */
html[data-theme=light] body.v2 .jobs-tbl .due-inp,html[data-theme=light] body.v2 #dueInline{color-scheme:light !important}
/* heavy black hover shadows from the dark look */
html[data-theme=light] body.v2 .signcard:hover,html[data-theme=light] body.v2 .projcard:hover,html[data-theme=light] body.v2 .catmini:hover{box-shadow:0 10px 26px #162d4522}
html[data-theme=light] body.v2 .asgpop{box-shadow:0 16px 40px #162d4526}
/* leftover DM Mono labels → the v2 type */
body.v2 .tcard .step,body.v2 .col .ct,body.v2 .kpi .k .l,body.v2 .lcard .st,body.v2 .prtbl th,body.v2 .tsgrid th,
body.v2 #custtbl td[colspan],body.v2 .projmeta .cl,body.v2 .secthead h2,body.v2 .cm-no,body.v2 .noart{font-family:'DM Sans',sans-serif !important;font-weight:700;letter-spacing:.07em}
body.v2 .prtbl th,body.v2 .tsgrid th{font-size:.66rem}
body.v2 .faint[style*="DM Mono"][style*="uppercase"]{font-family:'DM Sans',sans-serif !important;font-weight:700}
body.v2 #custtbl th{font-size:.66rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);padding-bottom:8px}

/* ---- dark inline chips/banners (#2…-#4… and a few #0/#1) → v2 soft tags in light mode.
   :not(#v2x) lifts specificity above the pale-text rules so background AND text change together. ---- */
html[data-theme=light] body.v2 [style*="background:#3a1010" i]:not(#v2x),
html[data-theme=light] body.v2 [style*="background:#4a1512" i]:not(#v2x){background:#fde3e1 !important;border-color:#eeb1aa !important;color:#b13e35 !important}
html[data-theme=light] body.v2 [style*="background:#3a2f10" i]:not(#v2x),
html[data-theme=light] body.v2 [style*="background:#3a3410" i]:not(#v2x){background:#fbeed7 !important;border-color:#e6c48a !important;color:#94661c !important}
html[data-theme=light] body.v2 [style*="background:#3a1030" i]:not(#v2x){background:#f8e3f2 !important;color:#a63c8c !important}
html[data-theme=light] body.v2 [style*="background:#0f2a18" i]:not(#v2x),
html[data-theme=light] body.v2 span[style*="background:#123d24" i]:not(#v2x){background:#ddf3ea !important;border-color:#a7dbc3 !important;color:#1d7a52 !important}
html[data-theme=light] body.v2 span[style*="background:#0f2f45" i]:not(#v2x){background:#e2effa !important;color:#2f6f9f !important}
html[data-theme=light] body.v2 span[style*="background:#2a2f33" i]:not(#v2x),
html[data-theme=light] body.v2 span[style*="background:#243244" i]:not(#v2x){background:#eef1f4 !important;color:#5f6f86 !important}
html[data-theme=light] body.v2 div[style*="background:#121f29" i]:not(#v2x){background:var(--surface) !important;color:var(--text) !important;border:1px solid var(--line);border-left:3px solid #9f7aea}
html[data-theme=light] body.v2 [style*="border:1px solid #2a3a46"]{border-color:var(--line) !important}

/* ---- Jobs list (index.php) ---- */
body.v2 .jobs-tbl td:first-child b,body.v2 .jobs-tbl td:nth-child(2) b,body.v2 .jobs-tbl td:nth-child(2) .muted{overflow-wrap:anywhere}
body.v2 .jobs-tbl td.muted{white-space:nowrap}
body.v2 .row-form select[name=customer]{max-width:240px}
@media(max-width:760px){
  body.v2 .row-form > form[style*="margin-left:12px"]{margin-left:0 !important;max-width:100%;min-width:0}
  body.v2 .row-form select[name=customer]{max-width:100%;min-width:0 !important}
}
html[data-theme=light] body.v2 .molten-card{background:linear-gradient(180deg,#fff1e4,#fffaf5) !important}
html[data-theme=light] body.v2 .molten-card::before{background:linear-gradient(90deg,transparent,rgba(255,130,0,.09),transparent)}
html[data-theme=light] body.v2 .molten-card .tbl th{background:#ffe7d1;color:#a4521a}
html[data-theme=light] body.v2 .molten-row td{background:rgba(255,106,0,.04)}
body.v2 .molten-card .tbl tr:hover td{background:rgba(255,106,0,.08)}
html[data-theme=dark] body.v2 .molten-card .tbl th{background:rgba(255,106,0,.14);color:#ffb37a}
html[data-theme=light] body.v2 .molten-text{background-image:linear-gradient(90deg,#c41e00,#e05a00,#b87900,#e05a00,#c41e00);text-shadow:none}
html[data-theme=light] body.v2 .btn.molten-on{box-shadow:0 4px 12px rgba(212,58,0,.3)}
body.v2 .card[style*="224,83,58"] .tbl th{background:color-mix(in srgb,var(--bad) 8%,var(--surface))}
body.v2 .smsq-card{background:color-mix(in srgb,#2b8fd6 7%,var(--surface)) !important;border-color:color-mix(in srgb,#2b8fd6 45%,var(--line)) !important}
body.v2 .riddler-card{background:color-mix(in srgb,#2eae4e 7%,var(--surface)) !important;border-color:color-mix(in srgb,#2eae4e 45%,var(--line)) !important}
html[data-theme=light] body.v2 .smsq-txt{color:#2f6f9f;text-shadow:none}
html[data-theme=light] body.v2 .riddler-txt,html[data-theme=light] body.v2 .riddler-q{color:#1d7a52;text-shadow:none}

/* ---- My Tasks (board.php) ---- */
html[data-theme=light] body.v2 .due.late1{color:#94661c}
html[data-theme=light] body.v2 .due.late2{color:#b4531a}
body.v2 .btn.ghost.quickmv.done{color:var(--accent3);border-color:color-mix(in srgb,var(--accent3) 40%,var(--line))}

/* ---- Quotes / Possible Jobs ---- */
body.v2 .tbl td.muted:not([style*="max-width"]){white-space:nowrap}
body.v2 .tbl td.muted[style*="max-width:340px"]{min-width:260px}
body.v2 .btn.primary[style*="52,214,62"]{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent3) 55%,transparent) !important}
body.v2 .tbl td .muted[style*="pre-wrap"],body.v2 .tbl td .restitle{overflow-wrap:anywhere}
body.v2 .tbl:has(.fuprow) td[style*="text-align:right"][style*="nowrap"]{white-space:normal;min-width:190px}

/* ---- Job page (job.php) ---- */
body.v2 .card.qncard{border-left:4px solid var(--qc);padding:14px 18px 15px}
body.v2 .pedit{background:transparent;border-color:transparent}
body.v2 .pedit:hover{border-color:var(--line)}
body.v2 .pedit:focus{background:var(--bg2);border-color:var(--v2-accent)}
html[data-theme=light] body.v2 .pbadge.ok{background:#ddf3ea;color:#22795c}
html[data-theme=light] body.v2 .pbadge.warn{background:#fbeed7;color:#94661c}
html[data-theme=light] body.v2 .pbadge.draft{background:var(--surface2);color:var(--muted)}
html[data-theme=light] body.v2 .pcomment{color:#7a5314;background:#fdf5e6;border-color:#efd3a0}
html[data-theme=light] body.v2 .pchg-hd{color:#94661c}
html[data-theme=light] body.v2 .catproj,html[data-theme=light] body.v2 .catchip{color:#94661c;border-color:#e6c48a}
html[data-theme=light] body.v2 .catproj:hover,html[data-theme=light] body.v2 .catchip:hover{background:#fdf5e6;border-color:#d9a54a}
html[data-theme=light] body.v2 .catproj.on{color:#7a5314;background:#fbeed7;border-color:#d9a54a}
html[data-theme=light] body.v2 .catpanel{border-color:#e6c48a;background:#fffaf0}
html[data-theme=light] body.v2 .catchip .pr{color:#1d7a52}
html[data-theme=light] body.v2 .nichips label,html[data-theme=light] body.v2 .niseg label{color:var(--muted)}
html[data-theme=light] body.v2 .filecard .thumb{background:#e6ecf1}
html[data-theme=light] body.v2 .qnc-dot{opacity:.8;border-color:rgba(27,48,68,.18)}
html[data-theme=light] body.v2 .qnc-dot.on{opacity:1;border-color:var(--text)}

/* ---- Customers / catalogs ---- */
body.v2 #billing:has(div){color:var(--text)}
body.v2 #jobs td.muted{white-space:nowrap}
body.v2 .jtabs button.on{background:var(--v2-accent-soft);border-color:var(--v2-accent);color:var(--v2-accent)}
body.v2 .jtabs button.on b{color:var(--v2-accent)}
body.v2 .jtabs button .amt{font-family:inherit;color:var(--muted)}
html[data-theme=light] body.v2 img[src*="/assets/catalog.svg"]{filter:brightness(.55)}
body.v2 .bigprice:not(.quote){color:#1d7a52;text-shadow:none}
html[data-theme=dark] body.v2 .bigprice:not(.quote){color:#5ad19a}
body.v2 .projcard,body.v2 .signcard{background:var(--surface);box-shadow:var(--shadow)}
@media(max-width:820px){
  body.v2 .custgrid{grid-template-columns:minmax(0,1fr) !important}
  body.v2 .custgrid > *{min-width:0}
  body.v2 #jobs td:not(:first-child){white-space:nowrap}
  body.v2 #jobs td:first-child{min-width:180px}
}
@media(max-width:600px){
  body.v2 #custtbl td:not(:first-child),body.v2 #custtbl th{white-space:nowrap}
  body.v2 #custtbl td:first-child{min-width:150px}
}

/* ---- Billing / Debt Reaper / Statements / Smart Quote ---- */
body.v2 #billtbl td:first-child b,body.v2 #billtbl td:first-child a{overflow-wrap:anywhere}
body.v2 #billtbl td:last-child{white-space:normal !important;min-width:340px}
body.v2 #billtbl td:last-child > *{margin:3px 0 3px 4px}
body.v2 .tbl a[title="Open the job"]:empty{display:none}
@media(max-width:600px){
  body.v2 .card-h{flex-wrap:wrap}
  body.v2 .card-h > form{margin-left:0 !important;flex:1 1 100%}
  body.v2 .card-h select{min-width:0 !important;width:100% !important}
}
body.v2 .mgp{width:min(1100px,calc(100vw - 376px))}
@media(max-width:960px){body.v2 .mgp{width:calc(100vw - 96px)}}
html[data-theme=light] body.v2 .mgp{background:var(--surface);border-color:var(--line);box-shadow:0 14px 36px #162d4529}
html[data-theme=dark] body.v2 .mgp{background:var(--surface2);border-color:var(--line)}
body.v2 .mgp label.f,body.v2 .gset label.f{color:var(--muted)}
body.v2 .mgp .chks label{color:var(--text)}
html[data-theme=light] body.v2 #atbl tr.xrow > td{background:var(--surface2) !important;box-shadow:inset 3px 0 0 var(--v2-accent)}
html[data-theme=light] body.v2 #atbl tr.xrow .tbl th{background:var(--surface)}
html[data-theme=dark] body.v2 #atbl tr.xrow > td{background:var(--bg2) !important}
html[data-theme=dark] body.v2 [style^="color:#8b0000"]{color:#ff8a80 !important}
html[data-theme=dark] body.v2 [style^="color:#2563a8"]{color:#8fbcf0 !important}
html[data-theme=dark] body.v2 [style^="color:#c2410c"]{color:#f59a62 !important}
html[data-theme=light] body.v2 .dr-hero{background:radial-gradient(130% 180% at 10% 15%,#e3f6ec 0%,#f4fbf7 55%,#fff 100%);border-color:#bfe3cf;box-shadow:var(--shadow)}
html[data-theme=light] body.v2 .dr-hero::after{display:none}
html[data-theme=light] body.v2 .dr-name h1{background:linear-gradient(92deg,#0f3d27,#1f8f4e);-webkit-background-clip:text;background-clip:text}
html[data-theme=light] body.v2 .dr-tag{color:#4d7a63}
html[data-theme=light] body.v2 .dr-tag b{color:#1d5c3c}
body.v2 #stTbl td:nth-child(2){overflow-wrap:anywhere}
body.v2 .stmt-row .note{min-width:0;width:140px}
html[data-theme=light] body.v2 .sq-lesson .k.correction{color:#6a52c4;background:#eeeafd}
html[data-theme=light] body.v2 .sq-badge.tbd,html[data-theme=light] body.v2 .sq-badge.conf-medium{color:#94661c;background:#fbeed7;border-color:#ecc77f}
html[data-theme=light] body.v2 .sq-badge.conf-low{color:#b13e35;background:#fde3e1;border-color:#f0a8a2}
html[data-theme=light] body.v2 #sqCart tr.tbd input{border-color:#d9a43c}

/* ---- Dashboard / Calendar ---- */
@media(max-width:520px){body.v2 .stat{padding:14px}body.v2 .stat .v{font-size:1.3rem}}
html[data-theme=light] body.v2 svg text[fill="#f7bd55"]{fill:#94661c}
html[data-theme=light] body.v2 svg line[stroke="#f7bd55"]{stroke:#d29a35}
html[data-theme=light] body.v2 svg rect[fill="#34d63e"]{fill:#22a06b}
html[data-theme=light] body.v2 i[style*="background:#34d63e"]{background:#22a06b !important}
body.v2 .cal-grid .cell{background:var(--surface)}
body.v2 .cal-grid .cell.out{background:var(--bg)}
html[data-theme=light] body.v2 .pill.job{background:#e2effa;border-color:#b7d4ec;color:#2f6f9f}
html[data-theme=light] body.v2 .pill.over{background:#fde3e1;border-color:#f2b8b2;color:#b13e35}
html[data-theme=light] body.v2 .pill.event{background:#ddf3ea;border-color:#a7dbc3;color:#1d7a52}
html[data-theme=light] body.v2 .pill.holiday{background:#fbeed7;border-color:#edd09b;color:#94661c}
html[data-theme=light] body.v2 .pill.paid{background:#ffe4cc;border-color:#f3b37a;color:#9a4a0c}
html[data-theme=light] body.v2 .pill.show{background:#eeeafd;border-color:#cdc2f5;color:#6a52c4}
html[data-theme=light] body.v2 .pill.pto{background:#daf2ee;border-color:#9ad8cd;color:#0b7d78}
html[data-theme=light] body.v2 .pill.ptoq{background:#f2faf8;border-color:#9ad8cd;color:#0b7d78}
html[data-theme=light] body.v2 .mini-d.has{background:#e2effa;color:#2f6f9f}
html[data-theme=light] body.v2 a.mini-d.has:hover{background:#2f6f9f;color:#fff}

/* ---- Me pages / time ---- */
html[data-theme=light] body.v2 .ot,html[data-theme=light] body.v2 td.ot,html[data-theme=light] body.v2 .reqcard .warn{color:#b13e35}
html[data-theme=light] body.v2 .apend h4{color:#6a52c4}
html[data-theme=light] body.v2 .clockcard.on{background:linear-gradient(145deg,#e5f6ef,#f1faf6);border-color:#a9dcc6}
html[data-theme=light] body.v2 .clockcard.brk{background:linear-gradient(145deg,#fbf1dd,#fdf7ec);border-color:#ecd3a3}

/* ---- floating widgets: Digi assistant panel + team chat popup ---- */
body.v2 #digipanel .ph,body.v2 #hubchatPanel .hch{background:var(--surface2);border-bottom-color:var(--line)}
body.v2 #digipanel .ph b,body.v2 #hubchatPanel .hch b{color:var(--text)}
body.v2 #digipanel iframe{background:var(--bg)}
html[data-theme=light] body.v2 #digipanel,html[data-theme=light] body.v2 #hubchatPanel{box-shadow:0 20px 50px #162d4530}
html[data-theme=light] body.v2 #hubchatBtn{background:var(--surface);color:var(--v2-accent);border-color:var(--line);box-shadow:0 8px 22px #162d4526}
html[data-theme=dark] body.v2 #hubchatBtn{background:var(--surface2);border-color:color-mix(in srgb,var(--v2-accent) 35%,var(--line))}
html[data-theme=light] body.v2 .hcm .hbub a.hfile{background:var(--surface2)}
html[data-theme=light] body.v2 .hcToast{box-shadow:0 10px 26px #162d4526}
body.v2 #hcSend,body.v2 #hubchatBtn .hcb{font-family:'DM Sans',sans-serif}

/* ---- no entrance fade in v2: pages are readable at first paint (foot() skips the reveal script under v2;
   this also covers anything a cached page or a page's own script still marks .rv) ---- */
body.v2 .rv{opacity:1;transform:none;transition:none}
