/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #25408F; --brand-d: #1a2f6e; --brand-l: #3a56a8;
  --brand-xl: #e8ecf7; --brand-xx: #f0f3fa;
  --white: #ffffff; --surface: #ffffff; --brand-ink: var(--brand); --brand-ink-d: var(--brand-d); --gray-50: #f8f9fc; --gray-100: #eef0f6;
  --gray-200: #d8dce8; --gray-400: #9399b0; --gray-600: #5a6180; --gray-800: #2d3352;
  --success: #1a7a4a; --success-bg: #e6f4ed;
  --warning: #8a5c00; --warning-bg: #fff5e0;
  --danger: #b02020; --danger-bg: #fdecea;
  --r: 6px; --sw: var(--sb-width, 214px); --sw-c: max(52px, calc(var(--nav-icon-size, 14px) + 34px)); --top: 48px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13px; color: var(--gray-800); background: var(--gray-100); }
#app { display: flex; height: 100vh; }
#sidebar { width: var(--sw); background: var(--sidebar-bg, var(--brand)); display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; transition: width .2s ease; }
#sidebar.collapsed { width: var(--sw-c); }
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
/* Page content size (Site Settings → Theme, CE-27). Desktop only — phones keep their own sizing. */
@media (min-width: 761px) {
  #main, .modal-overlay > .modal, #toast-container { zoom: var(--content-zoom, 1); }
  /* keep zoomed pop-ups inside the window (their own 90vh is multiplied by the zoom) */
  .modal-overlay > .modal { max-height: calc(90vh / var(--content-zoom, 1)); max-width: calc(96vw / var(--content-zoom, 1)); }
}
#topbar { height: var(--top); border-bottom: 1px solid var(--gray-200); padding: 0 18px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--surface); }
#topbar h1 { font-size: 15px; font-weight: 500; }
#content { flex: 1; overflow-y: auto; padding: 0 18px 16px; background: var(--gray-50); }
#content > *:first-child { margin-top: 16px; }
.sb-header { min-height: 76px; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; flex-shrink: 0; overflow: hidden; }
.sb-logo-wrap { display: flex; align-items: center; gap: 10px; overflow: hidden; min-width: 0; }
.sb-logo-icon { width: var(--sb-logo-size, 60px); height: var(--sb-logo-size, 60px); border-radius: 8px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 11px; font-weight: 600; flex-shrink: 0; border: 1px solid rgba(255,255,255,.25); }
.sb-logo-text { overflow: hidden; white-space: nowrap; transition: opacity .15s, width .15s; }
.sb-logo-title { font-size: var(--sb-title-font, 13px); font-weight: 500; color: var(--white); line-height: 1.2; }
.sb-logo-sub { font-size: var(--sb-sub-font, 10px); color: rgba(255,255,255,.5); }
#sidebar.collapsed .sb-logo-text { opacity: 0; width: 0; }
.sb-toggle { width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: rgba(255,255,255,.8); font-size: 14px; transition: background .12s; }
.sb-toggle:hover { background: rgba(255,255,255,.25); }
/* Collapsed rail: logo on top (auto-sized to the rail width), expand button below. */
#sidebar.collapsed .sb-header { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 8px 0 10px; min-height: 0; }
#sidebar.collapsed .sb-logo-wrap { gap: 0; justify-content: center; width: 100%; }
#sidebar.collapsed .sb-logo-icon { width: calc(var(--sw-c) - 10px); height: calc(var(--sw-c) - 10px); border-radius: 6px; }
#sidebar.collapsed .sb-logo-icon img { object-fit: contain !important; }
nav { flex: 1; padding: 6px 0; overflow-y: auto; overflow-x: hidden;
  /* Slim scrollbar that only shows while the pointer is over the menu */
  scrollbar-width: thin; scrollbar-color: transparent transparent; }
nav:hover { scrollbar-color: rgba(255,255,255,.35) transparent; }
nav::-webkit-scrollbar { width: 6px; }
nav::-webkit-scrollbar-track { background: transparent; }
nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); }
nav::-webkit-scrollbar-button { display: none; height: 0; }
/* Collapsed rail: no scrollbar at all (still scrolls with wheel / touch), icons centred */
#sidebar.collapsed nav { scrollbar-width: none; }
#sidebar.collapsed nav::-webkit-scrollbar { display: none; width: 0; }
#sidebar.collapsed .nav-item { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
#sidebar.collapsed .sb-user { padding-left: 0; padding-right: 0; }
#sidebar.collapsed .sb-user-inner { justify-content: center; gap: 0; }
.nav-section { padding: 10px 12px 3px; font-size: var(--nav-section-font, 10px); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); white-space: nowrap; overflow: hidden; transition: opacity .15s, height .15s, padding .15s; }
/* Collapsible nav groups */
.nav-group-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding-top: 12px; padding-bottom: 5px; }
.nav-group-head:hover { color: rgba(255,255,255,.7); }
.nav-group-chev { font-size: 15px; line-height: 1; opacity: .85; transition: transform .15s; margin-left: 8px; }
.nav-group.open .nav-group-chev { transform: rotate(180deg); }
.nav-group-body { display: none; }
.nav-group.open .nav-group-body { display: block; }
/* When the whole sidebar is icon-collapsed, show every item and hide the chevrons/headers. */
#sidebar.collapsed .nav-group-body { display: block; }
#sidebar.collapsed .nav-group-chev { display: none; }
#sidebar.collapsed .nav-section { opacity: 0; height: 0; padding: 0; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; color: var(--nav-text, rgba(255,255,255,.72)); font-size: var(--nav-font, 12.5px); border-left: 2px solid transparent; transition: all .12s; white-space: nowrap; overflow: hidden; position: relative; }
.nav-item:hover { color: var(--nav-hover-text, var(--white)); background: var(--nav-hover-bg, rgba(255,255,255,.1)); }
.nav-item.active { color: var(--nav-active-text, var(--white)); background: var(--nav-active-bg, rgba(255,255,255,.15)); border-left-color: var(--nav-active-bar, var(--white)); }
.nav-icon { width: calc(var(--nav-icon-size, 14px) + 4px); height: calc(var(--nav-icon-size, 14px) + 4px); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: var(--nav-icon-size, 14px); line-height: 1; }
.nav-label { overflow: hidden; transition: opacity .15s, width .15s; }
#sidebar.collapsed .nav-label { opacity: 0; width: 0; }
.nav-badge { margin-left: auto; background: rgba(255,255,255,.9); color: var(--brand-ink); border-radius: 10px; padding: 1px 6px; font-size: 10px; font-weight: 600; flex-shrink: 0; }
#sidebar.collapsed .nav-badge { opacity: 0; width: 0; overflow: hidden; padding: 0; }
#sidebar.collapsed .nav-item:hover::after { content: attr(data-label); position: absolute; left: calc(var(--sw-c) + 6px); top: 50%; transform: translateY(-50%); background: var(--brand-d); color: var(--white); padding: 4px 10px; border-radius: var(--r); font-size: 12px; white-space: nowrap; z-index: 200; pointer-events: none; }
.sb-user { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.15); overflow: hidden; }
.sb-user-inner { display: flex; align-items: center; gap: 8px; }
.sb-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.sb-user-text { overflow: hidden; transition: opacity .15s, width .15s; }
.sb-user-name { font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--white); }
.sb-user-role { font-size: 10px; color: rgba(255,255,255,.5); }
.sb-logout { font-size: 10px; color: rgba(255,255,255,.45); cursor: pointer; text-decoration: underline; }
.sb-logout:hover { color: rgba(255,255,255,.8); }
#sidebar.collapsed .sb-user-text { opacity: 0; width: 0; }
.card { background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--r); margin-bottom: 12px; }
.card-header { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--r); padding: 10px 12px; }
.stat-lbl { font-size: 10px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; font-weight: 500; }
.stat-val { font-size: 22px; font-weight: 500; }
.stat.c-brand .stat-val { color: var(--brand-ink); }
.stat.c-success .stat-val { color: var(--success); }
.stat.c-danger .stat-val { color: var(--danger); }
.stat.c-warning .stat-val { color: var(--warning); }
.tbl-wrap { overflow: visible; }
table { width: 100%; border-collapse: collapse; }
/* Freeze table header while the page scrolls */
table thead { position: sticky; top: 0; z-index: 20; }
table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 2px solid var(--gray-200);
  box-shadow: 0 1px 0 var(--gray-200);
}
th { padding: 8px 12px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); text-align: left; background: var(--gray-50); }
td { padding: 9px 12px; border-bottom: 1px solid var(--gray-100); font-size: 12.5px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid var(--gray-200); border-radius: var(--r); font-size: 11.5px; cursor: pointer; background: var(--surface); color: var(--gray-800); font-weight: 500; white-space: nowrap; transition: all .12s; text-decoration: none; }
.btn:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-d); }
.btn-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 3px 9px; font-size: 11px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 500; }
.badge-scheduled { background: var(--gray-100); color: var(--gray-600); }
.badge-assigned { background: var(--brand-xl); color: var(--brand-ink); }
.badge-submitted { background: var(--warning-bg); color: var(--warning); }
.badge-resubmitted { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: var(--gray-100); color: var(--gray-400); }
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.role-admin { background: #2d3352; color: #fff; }
.role-manager { background: var(--brand); color: #fff; }
.role-resource { background: #0f6e56; color: #fff; }
.role-customer { background: #854F0B; color: #fff; }
.role-svp      { background: #1a5fa8; color: #fff; }
.role-vp       { background: #0e7490; color: #fff; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(30,40,80,.4); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--gray-200); border-radius: 10px; width: 680px; max-width: 96vw; max-height: 90vh; overflow-y: auto; }
.modal-hdr { padding: 13px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; font-weight: 600; color: var(--brand-ink-d); display: flex; justify-content: space-between; align-items: center; background: var(--brand-xl); border-radius: 10px 10px 0 0; }
.modal-body { padding: 16px; }
.modal-foot { padding: 11px 16px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; justify-content: flex-end; background: var(--gray-50); border-radius: 0 0 10px 10px; }
.close-x { cursor: pointer; color: var(--brand-ink); font-size: 18px; line-height: 1; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; transition: background .12s, color .12s; }
.close-x:hover { color: var(--white); background: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg { margin-bottom: 10px; }
.fg label { display: block; font-size: 11px; color: var(--gray-600); margin-bottom: 4px; font-weight: 500; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--gray-200); border-radius: var(--r); font-size: 12.5px; background: var(--surface); color: var(--gray-800); font-family: inherit; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,64,143,.1); }
.fg textarea { resize: vertical; min-height: 64px; }
.fg .hint { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.alert { padding: 8px 10px; border-radius: var(--r); font-size: 12px; margin-bottom: 10px; border-left: 3px solid; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.alert-info { background: var(--brand-xl); color: var(--brand-ink); border-color: var(--brand); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--gray-200); margin-bottom: 12px; }
.tab-btn { padding: 7px 14px; font-size: 12px; cursor: pointer; border: none; background: none; color: var(--gray-400); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; transition: all .12s; }
.tab-btn:hover { color: var(--brand-ink); }
.tab-btn.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; font-size: 12px; }
.detail-grid span:nth-child(odd) { color: var(--gray-400); }
.notes-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r); padding: 8px 10px; font-size: 12px; color: var(--gray-600); }
.prog { height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; min-width: 50px; }
.prog-bar { height: 100%; background: var(--brand); border-radius: 2px; }
.photo-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.photo-thumb { width: 56px; height: 56px; border-radius: 6px; background: var(--brand-xl); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.photo-placeholder { width: 56px; height: 56px; border-radius: 6px; background: var(--surface); border: 1.5px dashed var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; color: var(--gray-400); transition: all .12s; }
.photo-placeholder:hover { border-color: var(--brand); color: var(--brand-ink); }
.perm-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-50); }
.perm-row:last-child { border-bottom: none; }
.perm-label { font-size: 12.5px; font-weight: 500; }
.perm-desc { font-size: 11px; color: var(--gray-400); }
.toggle { position: relative; display: inline-block; width: 32px; height: 18px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--gray-200); border-radius: 18px; cursor: pointer; transition: .2s; }
.toggle-slider:before { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; background: var(--surface); border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--brand); }
.toggle input:checked + .toggle-slider:before { transform: translateX(14px); }
.info-box { background: var(--brand-xx); border: 1px solid var(--brand-xl); border-radius: var(--r); padding: 10px 12px; font-size: 12px; color: var(--brand-ink); margin-bottom: 12px; }
.section-divider { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); padding: 8px 0 4px; border-bottom: 1px solid var(--gray-100); margin-bottom: 10px; }
code.pill { background: var(--brand-xl); color: var(--brand-ink); padding: 1px 7px; border-radius: 3px; font-size: 11px; font-family: monospace; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brand); }
.login-card { background: var(--surface); border-radius: 10px; padding: 32px 36px; width: 340px; }
.login-card h1 { font-size: 18px; font-weight: 500; color: var(--brand-ink); margin-bottom: 4px; }
.login-card p { color: var(--gray-400); font-size: 12px; margin-bottom: 20px; }
.lf-group { margin-bottom: 12px; }
.lf-group label { display: block; font-size: 11px; color: var(--gray-600); margin-bottom: 4px; font-weight: 500; }
.login-card input { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: var(--r); font-size: 13px; background: var(--surface); color: var(--gray-800); }
.login-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,64,143,.1); }
.login-btn { width: 100%; padding: 9px; background: var(--brand); color: var(--white); border: none; border-radius: var(--r); font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 4px; }
.login-btn:hover { background: var(--brand-d); }

/* ── Progress bar (injected by JS) ────────────────────────── */
/* Styles are applied inline by Progress — no CSS needed here */

/* ── Skeleton shimmer ────────────────────────────────────────*/
/* Injected by Skeleton.show() dynamically */

/* ── Button loading state ────────────────────────────────────*/
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.btn.loading::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ── Pagination bar ───────────────────────────────────────── */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; flex-shrink: 0;
  padding: 10px 18px; margin: 0;
  background: var(--surface); border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 8px rgba(16,24,40,.06); z-index: 30;
}
.pager-info { font-size: 12px; color: var(--gray-400); }
.pager-ctrls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager-btn {
  min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--gray-200);
  background: var(--surface); color: var(--gray-600); border-radius: 6px;
  font-size: 13px; cursor: pointer; transition: all .12s;
}
.pager-btn:hover:not(:disabled):not(.active) { border-color: var(--brand); color: var(--brand-ink); }
.pager-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); cursor: default; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-gap { color: var(--gray-400); padding: 0 4px; font-size: 13px; }

/* ============================================================
   MOBILE / RESPONSIVE  (Tier 1: usable on a phone)
   Sidebar becomes an off-canvas drawer; topbar gets a hamburger.
   ============================================================ */

/* Hamburger button — hidden on desktop, shown on mobile via the query below */
#mobile-menu-btn { display: none; width: 38px; height: 38px; margin-right: 10px; border: 1px solid var(--gray-200);
  background: var(--surface); border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--gray-700); line-height: 1; padding: 0; }
#mobile-menu-btn:active { background: var(--gray-100); }

/* Brand block for the phone top bar — hidden on desktop (the sidebar shows it). */
#mobile-brand { display: none; align-items: center; gap: 10px; min-width: 0; }
/* CE-53: the phone logo fills the height of the brand row (name + subtitle), like the desktop sidebar logo.
   Wide logos keep their shape (up to 2.4× as wide as tall); square ones fill the whole box. */
#mobile-brand .mb-logo { height: var(--mb-logo-size, 54px); width: auto; max-width: calc(var(--mb-logo-size, 54px) * 2.4); border-radius: 10px; overflow: hidden; flex-shrink: 0; display: flex; background: var(--sidebar-bg, var(--brand)); }
#mobile-brand .mb-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
#mobile-brand .mb-text { min-width: 0; line-height: 1.2; }
#mobile-brand .mb-title { font-size: 15px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mobile-brand .mb-sub { font-size: 11.5px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Backdrop behind the open drawer */
#drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 290;
  opacity: 0; transition: opacity .2s ease; }
body.drawer-open #drawer-backdrop { display: block; opacity: 1; }

@media (max-width: 768px) {
  /* The sidebar leaves the flex flow and becomes a sliding drawer */
  #app { display: block; height: 100vh; }
  #sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100vh;
    width: 256px; max-width: 82vw; z-index: 300;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 2px 0 16px rgba(16,24,40,.18);
  }
  body.drawer-open #sidebar { transform: translateX(0); }
  /* CE-39: phone browsers count their toolbars in 100vh, which pushed "Sign out" below the screen.
     Use the visible height and keep the user / sign-out block pinned at the bottom of the drawer. */
  #sidebar { height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  #sidebar .sb-user { flex-shrink: 0; padding: 12px 14px; }
  #sidebar .sb-logout { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600;
    color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: rgba(255,255,255,.08); }
  #sidebar .sb-logout:active { background: rgba(255,255,255,.2); }
  /* On mobile the desktop collapse mode makes no sense — always full width when open */
  #sidebar.collapsed { width: 256px; }
  #sidebar.collapsed .sb-logo-text,
  #sidebar.collapsed .nav-section,
  #sidebar.collapsed .nav-label,
  #sidebar.collapsed .sb-user-text { opacity: 1; width: auto; height: auto; padding: revert; }
  /* The desktop collapse chevron is irrelevant on mobile */
  .sb-toggle { display: none; }

  /* Main column now takes the full width */
  #main { height: 100vh; width: 100%; }

  /* First row of the top bar: brand on the left, menu button on the right */
  #mobile-brand { display: flex; order: -2; flex: 1 1 0; }
  #mobile-menu-btn { display: flex; order: -1; margin: 0 0 0 auto; }

  /* Comfortable touch targets + readable text */
  body { font-size: 14px; }
  .nav-item { padding: 12px 14px; font-size: max(var(--nav-font, 12.5px), 14px); }
  .nav-icon { font-size: max(var(--nav-icon-size, 14px), 16px); width: calc(max(var(--nav-icon-size, 14px), 16px) + 4px); height: calc(max(var(--nav-icon-size, 14px), 16px) + 4px); }
  #topbar { padding: 0 12px; }
  #topbar h1 { font-size: 16px; }
  #content { padding: 0 12px 16px; }

  /* Buttons and inputs: bigger tap area, and inputs at 16px so iOS doesn't zoom */
  .btn { min-height: 40px; padding: 9px 14px; }
  .btn-sm { min-height: 34px; }
  input, select, textarea, .txt { font-size: 16px; }

  /* Tables that can't reflow: let them scroll sideways instead of overflowing */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap table { min-width: 640px; }

  /* Modals use more of the screen */
  .modal { max-width: 96vw !important; width: 96vw !important; }

  /* Login card fits any phone */
  .login-card { width: auto; max-width: 92vw; padding: 28px 24px; }
  .login-card input { font-size: 16px; }

  /* Two-column form rows stack into one column on phones */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row > .fg { margin-bottom: 12px; }

  /* Multi-column filter / stat grids wrap instead of squeezing.
     !important is needed to beat the inline grid-template-columns. */
  .m-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* Topbar wraps so the title + controls (date pickers, buttons) never
     clip off the edge. The title takes its own line; the control group
     below it stays on ONE line (From / To / Show All together). */
  #topbar { height: auto; min-height: var(--top); flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  #topbar h1 { flex: 1 1 100%; order: 0; padding-top: 6px; border-top: 1px solid var(--gray-100); }
  #topbar > :not(h1):not(#mobile-menu-btn):not(#mobile-brand):not(#alerts-btn) { flex: 1 1 100%; }
  /* Keep a filter row's own items on one line and let it scroll if truly needed */
  #topbar > div[style*="flex"] { flex-wrap: nowrap !important; overflow-x: auto; align-items: center; }
  #topbar input[type="date"] { font-size: 13px; padding: 5px 6px; min-width: 0; flex: 1 1 auto; max-width: 125px; }
  #topbar input[type="date"]::-webkit-date-and-time-value { text-align: left; }
  #topbar .btn-sm { white-space: nowrap; flex-shrink: 0; }

  /* Tab strips wrap to multiple lines instead of overflowing sideways,
     so there's only vertical scrolling. */
  .tab-nav { flex-wrap: wrap; row-gap: 2px; }
  .tab-btn { padding: 7px 11px; }

  /* ── Mobile table cards ──────────────────────────────────
     Hide the real table; show the generated collapsible cards. */
  #content table, .modal table { display: none !important; }
  #content .tbl-wrap, .modal .tbl-wrap { display: none !important; }
  .mcards { display: block !important; }
  .mcard { border: 1px solid var(--gray-200); border-radius: 10px; background: var(--surface);
           margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
  .mcard.open { border-color: var(--brand-l, var(--brand)); box-shadow: 0 2px 10px rgba(16,24,40,.07); }
  .mcard-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; cursor: pointer;
                user-select: none; -webkit-user-select: none; }
  .mcard.open .mcard-head { background: var(--gray-50); }
  /* Avatar / initials badge lifted from the first cell */
  .mcard-badge { flex-shrink: 0; display: flex; align-items: center; }
  .mcard-badge > * { width: 34px !important; height: 34px !important; font-size: 13px !important;
                     border-radius: 50% !important; }
  .mcard-title { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--gray-800); line-height: 1.35;
                 min-width: 0; overflow-wrap: anywhere; }
  /* Bigger, more pronounced down-caret */
  .mcard-caret { color: var(--brand-ink); font-size: 18px; line-height: 1; transition: transform .2s ease;
                 flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center;
                 justify-content: center; border-radius: 6px; }
  .mcard-head:active .mcard-caret { background: var(--gray-100); }
  .mcard.open .mcard-caret { transform: rotate(180deg); }
  .mcard-body { display: none; padding: 2px 14px 12px; border-top: 1px solid var(--gray-100); }
  .mcard.open .mcard-body { display: block; }
  .mcard-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--gray-50);
               font-size: 13px; align-items: flex-start; }
  .mcard-row:last-child { border-bottom: 0; }
  .mcard-lbl { flex: 0 0 40%; max-width: 40%; color: var(--gray-500); font-size: 11.5px;
               text-transform: uppercase; letter-spacing: .03em; padding-top: 1px; }
  .mcard-val { flex: 1; min-width: 0; color: var(--gray-800); overflow-wrap: anywhere; }
  .mcard-row-actions { padding-top: 10px; }
  .mcard-row-actions .mcard-val { display: flex; flex-wrap: wrap; gap: 6px; }
  .mcard-empty { text-align: center; color: var(--gray-400); padding: 24px 12px; font-size: 13px;
                 background: var(--surface); border: 1px solid var(--gray-200); border-radius: 10px; }
}

/* Cards never show on desktop */
.mcards { display: none; }

/* Narrow phones: those grids go fully single-column */
@media (max-width: 460px) {
  .m-grid { grid-template-columns: 1fr !important; }
}

/* Very small phones */
@media (max-width: 400px) {
  #sidebar { width: 240px; }
  #content { padding: 0 10px 14px; }
}

/* ── Offline status pill + panel (CE-31) ── */
.offline-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 99980; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 12.5px/1.2 inherit; font-family: inherit; color: #fff; background: #475467; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.offline-pill.off { background: #475467; } .offline-pill.wait { background: #b54708; } .offline-pill.busy { background: var(--brand); } .offline-pill.bad { background: var(--danger); }
@media (max-width: 760px) { .offline-pill { bottom: 12px; max-width: calc(100vw - 24px); } }
body.has-offline-pill #toast-container { bottom: 64px !important; }
.off-h { font-weight: 600; font-size: 12.5px; margin: 10px 0 4px; }
.off-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.off-sub { font-size: 11.5px; color: var(--gray-400); }
/* Phone card titles with pills (mtable.js <template class="mtitle">) — CE-33 */
.mt-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.mt-name  { font-weight: 600; color: var(--gray-800); }
.mt-sub   { font-size: 12px; font-weight: 400; color: var(--gray-400); margin-top: 2px; }
.mcard-title-rich { display: block; }
.offline-strip { border: 1px dashed #f0b45a; background: #fff8eb; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 12.5px; }
.offline-strip .os-h { font-weight: 600; color: #93370d; margin-bottom: 4px; }
.offline-strip .os-h span, .offline-strip .os-r span { font-weight: 400; color: var(--gray-400); }
.offline-strip .os-r { padding: 2px 0; color: var(--gray-800); }
.pl-off { background: #fdecc8; color: #93370d; }

/* ── Alerts bell (CE-35) ── */
#topbar h1 { margin-right: auto; }
.alerts-btn { position: relative; order: 10; width: 38px; height: 38px; margin-left: 10px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200); background: var(--surface); border-radius: 8px; color: var(--gray-600); cursor: pointer; padding: 0; }
.alerts-btn:hover, .alerts-btn.open { background: var(--gray-100); color: var(--gray-800); }
.alerts-btn.has-new { color: var(--brand-ink); }
.alerts-btn.has-new svg { animation: al-ring .9s ease 1; transform-origin: 50% 10%; }
@keyframes al-ring { 0%,100% { transform: rotate(0) } 20% { transform: rotate(14deg) } 40% { transform: rotate(-12deg) } 60% { transform: rotate(8deg) } 80% { transform: rotate(-4deg) } }
.al-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: #fff;
  font: 700 11px/19px inherit; font-family: inherit; text-align: center; box-shadow: 0 0 0 2px var(--white); }
.alerts-panel { position: fixed; z-index: 99970; width: 380px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); overflow: hidden; }
.alerts-panel[hidden] { display: none; }
.al-hdr { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.al-h { font-weight: 700; font-size: 15px; color: var(--gray-800); }
.al-count { background: #fee4e2; color: #b42318; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; }
.al-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.al-sound { border: 1px solid var(--gray-200); background: var(--surface); border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 11.5px; color: var(--gray-600); cursor: pointer; white-space: nowrap; }
.al-sound:hover { background: var(--gray-50); }
.al-sound.off { color: var(--gray-400); }
.al-link { border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.al-link:hover { text-decoration: underline; }
.al-list { overflow-y: auto; flex: 1 1 auto; }
.al-row { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--gray-100); background: #f5f8ff; padding: 11px 14px; cursor: pointer; font: inherit; color: inherit; }
.al-row:hover { background: #eaf0ff; }
.al-row.read { background: var(--surface); }
.al-row.read:hover { background: var(--gray-50); }
.al-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: 0 0 8px; }
.al-row.read .al-dot { background: transparent; }
.al-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.al-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.al-kind { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.al-title { font-weight: 600; font-size: 13.5px; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row.read .al-title { font-weight: 500; color: var(--gray-600); }
.al-sub { font-size: 12px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-why { font-size: 11.5px; color: var(--gray-400); }
.al-sep { padding: 8px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); }
.al-empty { padding: 26px 16px; text-align: center; color: var(--gray-400); font-size: 13px; }
.al-empty.sm { padding: 14px 16px; }
.al-foot { padding: 8px 14px; font-size: 11.5px; color: var(--gray-600); background: var(--gray-50); border-top: 1px solid var(--gray-100); }
@media (max-width: 768px) {
  #topbar h1 { margin-right: 0; }
  .alerts-btn { order: -1; margin: 0 8px 0 auto; }
  #mobile-menu-btn { margin: 0; }
  .alerts-panel { width: auto; }
}

/* ── AI Capabilities (CE-37) ── */
.ai-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; background: var(--soft-bg, #f2f4f7); color: var(--tx-mid, #475467); }
.ai-pill.urg-High { background: #fee4e2; color: #b42318; } .ai-pill.urg-Medium { background: #fef0c7; color: #93370d; } .ai-pill.urg-Low { background: var(--soft-bg, #f2f4f7); color: var(--tx-mid, #475467); }
.ai-pill.dup { background: #ede9fe; color: #5b21b6; } .ai-pill.spam { background: #1d2939; color: #fff; }
.ai-pill.ok { background: #d1fadf; color: #05603a; } .ai-pill.warn { background: #fef0c7; color: #93370d; } .ai-pill.fail { background: #fee4e2; color: #b42318; }
.mt-pills .ai-pill { margin-left: 0; }
.ai-box { border: 1px solid #dfe6fb; background: #f7f9ff; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 12.5px; color: var(--gray-700); }
.ai-box + .ai-box { margin-top: -2px; }
.ai-box-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #3b4fa0; margin-bottom: 6px; }
.ai-box-h .btn { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ai-box .ai-line { margin: 3px 0; line-height: 1.45; }
.ai-box .ai-k { color: var(--gray-400); }
.ai-box .ai-err { color: #b42318; }
.ai-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; margin-top: 6px; line-height: 1.4; }
.ai-check .ai-pill { margin-left: 0; flex-shrink: 0; }

/* ── Photo buttons (CE-39) ── */
.pp-row { display: flex; gap: 10px; flex-wrap: nowrap; margin-top: 6px; }
.pp-row label.pp-tile { margin: 0; text-transform: none; letter-spacing: normal; font-weight: 600; }
.pp-tile { position: relative; flex: 0 0 132px; min-height: 88px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--gray-200); border-radius: 14px; background: var(--gray-50, #f9fafb); color: var(--brand-ink); cursor: pointer;
  padding: 12px 10px; text-align: center; transition: background .15s, border-color .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.pp-tile span { font-size: 12.5px; font-weight: 600; color: var(--gray-700, #344054); line-height: 1.2; }
.pp-tile:hover { border-color: var(--brand); background: #f3f6fd; }
.pp-tile:active { transform: scale(.97); }
.pp-tile:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.pp-tile input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.pp-small .pp-tile { flex: 0 0 108px; min-height: 72px; padding: 8px; }
.pp-small .pp-tile svg { width: 24px; height: 24px; }
@media (max-width: 768px) { .pp-row { width: 100%; flex: 1 1 100%; } .pp-tile { flex: 1 1 0; min-height: 96px; } .pp-small .pp-tile { flex: 1 1 0; min-height: 76px; } }
.ai-hidden-note { font-size: 11.5px; color: #b42318; margin: 4px 0 2px; }

/* ── Add-photo row on a record (CE-40): tiles · taller note · tall Add photo button ── */
.addphoto-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.addphoto-row .fg { margin-bottom: 0; }
.addphoto-row .ap-pick { flex: 0 0 auto; }
.addphoto-row .ap-note { flex: 1 1 220px; }
.addphoto-row .ap-note textarea { height: 88px; min-height: 88px; resize: vertical; margin-top: 6px; }
.addphoto-row .ap-go { flex: 0 0 auto; }
.addphoto-row .ap-btn { height: 88px; min-width: 120px; margin-top: 6px; flex-direction: column; justify-content: center; gap: 6px;
  border-radius: 14px; font-size: 12.5px; font-weight: 600; }
@media (max-width: 768px) {
  .addphoto-row .ap-pick, .addphoto-row .ap-note, .addphoto-row .ap-go { flex: 1 1 100%; }
  .addphoto-row .ap-spacer { display: none; }
  .addphoto-row .ap-btn { width: 100%; height: 52px; flex-direction: row; margin-top: 0; }
  .addphoto-row .ap-btn svg { width: 20px; height: 20px; }
}
.pp-tile.picked { border-color: #12b76a; background: #ecfdf3; color: #067647; }
.pp-tile.picked span { color: #067647; }

/* ── Searchable dropdowns (CE-43) ── */
.ss-wrap { position: relative; width: 100%; min-width: 170px; }
select.ss-native { display: none !important; }
.ss-wrap input.ss-input { width: 100%; padding: 7px 30px 7px 9px; border: 1px solid var(--gray-200); border-radius: var(--r); font-size: 12.5px; background-color: var(--surface); background-repeat: no-repeat; background-position: right 10px center; background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  color: var(--gray-800); font-family: inherit; text-overflow: ellipsis; cursor: pointer; }
.ss-wrap input.ss-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,64,143,.1); cursor: text; }
.ss-wrap input.ss-input:disabled { background-color: var(--gray-50); color: var(--gray-400); cursor: not-allowed; }
.ss-list { position: fixed; z-index: 100001; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,24,40,.16);
  overflow-y: auto; padding: 4px; font-size: 13px; }
.ss-list[hidden] { display: none; }
.ss-opt { padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-opt.hi, .ss-opt:hover { background: #eef2fb; }
.ss-opt.sel { font-weight: 600; color: var(--brand-ink); }
.ss-none { padding: 10px; color: var(--gray-400); font-size: 12.5px; }
@media (max-width: 768px) { .ss-wrap input.ss-input { font-size: 16px; padding: 10px 34px 10px 12px; } .ss-opt { padding: 11px 12px; font-size: 15px; } }

/* ── Customer portal themes (CE-52) ── */
html.ct-peacock #sidebar { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #FCB711, #F37021, #CC004C, #6460AA, #0089D0, #0DB14B) 1; }
html.ct-peacock #topbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #FCB711, #F37021, #CC004C, #6460AA, #0089D0, #0DB14B) 1; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 2px solid var(--gray-200); border-radius: 12px; padding: 8px; background: var(--surface); cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s; }
.theme-tile:hover { border-color: var(--gray-400); }
.theme-tile.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-xl); }
.ts-prev { position: relative; display: flex; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-100); }
.ts-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1; }
.ts-side { width: 34%; display: flex; flex-direction: column; gap: 5px; padding: 10px 6px; }
.ts-side i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.55); }
.ts-side i:first-child { background: rgba(255,255,255,.95); width: 70%; }
.ts-main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; }
.ts-btn { width: 44%; height: 9px; border-radius: 4px; }
.ts-line { height: 5px; border-radius: 3px; background: #d8dce8; }
.ts-line.s { width: 60%; }
.ts-name { font-size: 12.5px; font-weight: 600; color: var(--gray-800); }
.ts-desc { font-size: 11px; color: var(--gray-400); line-height: 1.35; }

/* CE-59: Improvement Action tag (tasks from a confirmed AI suggestion) */
.ia-tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #ede9fe; color: #5b21b6; white-space: nowrap; vertical-align: middle; line-height: 1.4; }
/* CE-62: team (Empowered Pals) chip on scheduled work */
.team-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; white-space: nowrap; vertical-align: middle; line-height: 1.4; }
.team-chip svg { flex-shrink: 0; }
.team-note { font-size: 12px; color: var(--gray-600); background: var(--gray-50, #f8fafc); border: 1px dashed var(--gray-200); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
/* CE-68: Grid / Calendar switch */
.view-seg { display:inline-flex; border:1px solid var(--gray-200); border-radius:8px; overflow:hidden; background:var(--surface); flex-shrink:0; }
.view-seg button { border:0; background:none; padding:5px 12px; font-size:12.5px; cursor:pointer; color:var(--gray-600); }
.view-seg button.on { background:var(--brand); color:#fff; font-weight:600; }

/* CE-73: hints outside .fg get the same small grey text; customer SSO options */
.hint { font-size: 11.5px; color: var(--gray-400); margin-top: 3px; line-height: 1.45; }
.sso-opt { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 10px; cursor: pointer; }
.sso-sub { margin: 2px 0 0 24px; }
.sso-access { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--gray-700); margin-top: 6px; }
.sso-access .fg { margin: 0; display: inline-block; }
.sso-access .fg select { width: auto; min-width: 240px; }

/* ═══ CE-77: dark mode — html[data-mode="dark"], set by ColorMode in app.js (site default + per-person toggle) ═══ */
html[data-mode="dark"] {
  color-scheme: dark;
  --surface: #1a1f2a !important;
  --gray-50: #11151c !important; --gray-100: #1e2430 !important; --gray-200: #2d3442 !important;
  --gray-400: #8b94a8 !important; --gray-600: #b2bacb !important; --gray-800: #e5e8ef !important;
  --brand-xl: color-mix(in srgb, var(--brand) 30%, #11151c) !important;
  --brand-xx: color-mix(in srgb, var(--brand) 16%, #11151c) !important;
  --brand-ink: color-mix(in srgb, var(--brand) 50%, #ffffff) !important;
  --brand-ink-d: color-mix(in srgb, var(--brand) 40%, #ffffff) !important;
  --success: #4ade80 !important; --success-bg: rgba(34,197,94,.15) !important;
  --warning: #fbbf24 !important; --warning-bg: rgba(245,158,11,.15) !important;
  --danger: #f87171 !important; --danger-bg: rgba(239,68,68,.16) !important;
  --st-red: #fca5a5; --st-green: #86efac; --st-amber: #fcd34d; --st-blue: #93c5fd;
  --soft-bg: #1e2430; --tx-hi: #e5e8ef; --tx-mid: #b2bacb; --tx-lo: #8b94a8;
}
html[data-mode="dark"] body { background: var(--gray-100); color: var(--gray-800); }
html[data-mode="dark"] img { opacity: .96; }
html[data-mode="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), html[data-mode="dark"] select, html[data-mode="dark"] textarea {
  background-color: var(--gray-50); color: var(--gray-800); border-color: var(--gray-200); }
html[data-mode="dark"] ::placeholder { color: var(--gray-400); }
html[data-mode="dark"] table th { background-color: var(--gray-100); }
html[data-mode="dark"] .modal-overlay { background: rgba(0,0,0,.6); }
html[data-mode="dark"] [style*="background:var(--surface);"],
html[data-mode="dark"] [style*="background:var(--surface) "],
html[data-mode="dark"] [style*="background:var(--surface)!"],
html[data-mode="dark"] [style$="background:var(--surface)"],
html[data-mode="dark"] [style*="background:var(--surface);"],
html[data-mode="dark"] [style*="background:var(--surface) "],
html[data-mode="dark"] [style*="background:var(--surface)!"],
html[data-mode="dark"] [style$="background:var(--surface)"],
html[data-mode="dark"] [style*="background:var(--surface);"],
html[data-mode="dark"] [style*="background:var(--surface) "],
html[data-mode="dark"] [style*="background:var(--surface)!"],
html[data-mode="dark"] [style$="background:var(--surface)"],
html[data-mode="dark"] [style*="background:var(--surface);"],
html[data-mode="dark"] [style*="background:var(--surface) "],
html[data-mode="dark"] [style*="background:var(--surface)!"],
html[data-mode="dark"] [style$="background:var(--surface)"],
html[data-mode="dark"] [style*="background: var(--surface);"],
html[data-mode="dark"] [style*="background: var(--surface) "],
html[data-mode="dark"] [style*="background: var(--surface)!"],
html[data-mode="dark"] [style$="background: var(--surface)"],
html[data-mode="dark"] [style*="background: var(--surface);"],
html[data-mode="dark"] [style*="background: var(--surface) "],
html[data-mode="dark"] [style*="background: var(--surface)!"],
html[data-mode="dark"] [style$="background: var(--surface)"],
html[data-mode="dark"] [style*="background: var(--surface);"],
html[data-mode="dark"] [style*="background: var(--surface) "],
html[data-mode="dark"] [style*="background: var(--surface)!"],
html[data-mode="dark"] [style$="background: var(--surface)"],
html[data-mode="dark"] [style*="background: var(--surface);"],
html[data-mode="dark"] [style*="background: var(--surface) "],
html[data-mode="dark"] [style*="background: var(--surface)!"],
html[data-mode="dark"] [style$="background: var(--surface)"],
html[data-mode="dark"] [style*="background-color:var(--surface);"],
html[data-mode="dark"] [style*="background-color:var(--surface) "],
html[data-mode="dark"] [style*="background-color:var(--surface)!"],
html[data-mode="dark"] [style$="background-color:var(--surface)"],
html[data-mode="dark"] [style*="background-color:var(--surface);"],
html[data-mode="dark"] [style*="background-color:var(--surface) "],
html[data-mode="dark"] [style*="background-color:var(--surface)!"],
html[data-mode="dark"] [style$="background-color:var(--surface)"],
html[data-mode="dark"] [style*="background-color:var(--surface);"],
html[data-mode="dark"] [style*="background-color:var(--surface) "],
html[data-mode="dark"] [style*="background-color:var(--surface)!"],
html[data-mode="dark"] [style$="background-color:var(--surface)"],
html[data-mode="dark"] [style*="background-color:var(--surface);"],
html[data-mode="dark"] [style*="background-color:var(--surface) "],
html[data-mode="dark"] [style*="background-color:var(--surface)!"],
html[data-mode="dark"] [style$="background-color:var(--surface)"],
html[data-mode="dark"] [style*="background-color: var(--surface);"],
html[data-mode="dark"] [style*="background-color: var(--surface) "],
html[data-mode="dark"] [style*="background-color: var(--surface)!"],
html[data-mode="dark"] [style$="background-color: var(--surface)"],
html[data-mode="dark"] [style*="background-color: var(--surface);"],
html[data-mode="dark"] [style*="background-color: var(--surface) "],
html[data-mode="dark"] [style*="background-color: var(--surface)!"],
html[data-mode="dark"] [style$="background-color: var(--surface)"],
html[data-mode="dark"] [style*="background-color: var(--surface);"],
html[data-mode="dark"] [style*="background-color: var(--surface) "],
html[data-mode="dark"] [style*="background-color: var(--surface)!"],
html[data-mode="dark"] [style$="background-color: var(--surface)"],
html[data-mode="dark"] [style*="background-color: var(--surface);"],
html[data-mode="dark"] [style*="background-color: var(--surface) "],
html[data-mode="dark"] [style*="background-color: var(--surface)!"],
html[data-mode="dark"] [style$="background-color: var(--surface)"] { background: var(--surface) !important; }
html[data-mode="dark"] [style*="background:var(--soft-bg, #fbfbfd)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #FBFBFD)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #fbfbfd)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #FBFBFD)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #fbfbfd)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #FBFBFD)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #fbfbfd)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #FBFBFD)"],
html[data-mode="dark"] [style*="background:#fafbff"],
html[data-mode="dark"] [style*="background:#FAFBFF"],
html[data-mode="dark"] [style*="background: #fafbff"],
html[data-mode="dark"] [style*="background: #FAFBFF"],
html[data-mode="dark"] [style*="background-color:#fafbff"],
html[data-mode="dark"] [style*="background-color:#FAFBFF"],
html[data-mode="dark"] [style*="background-color: #fafbff"],
html[data-mode="dark"] [style*="background-color: #FAFBFF"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #fafbfe)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #FAFBFE)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #fafbfe)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #FAFBFE)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #fafbfe)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #FAFBFE)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #fafbfe)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #FAFBFE)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #fafbfd)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #FAFBFD)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #fafbfd)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #FAFBFD)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #fafbfd)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #FAFBFD)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #fafbfd)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #FAFBFD)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #fafbfc)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #FAFBFC)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #fafbfc)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #FAFBFC)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #fafbfc)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #FAFBFC)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #fafbfc)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #FAFBFC)"],
html[data-mode="dark"] [style*="background:#fffaf2"],
html[data-mode="dark"] [style*="background:#FFFAF2"],
html[data-mode="dark"] [style*="background: #fffaf2"],
html[data-mode="dark"] [style*="background: #FFFAF2"],
html[data-mode="dark"] [style*="background-color:#fffaf2"],
html[data-mode="dark"] [style*="background-color:#FFFAF2"],
html[data-mode="dark"] [style*="background-color: #fffaf2"],
html[data-mode="dark"] [style*="background-color: #FFFAF2"],
html[data-mode="dark"] [style*="background:#f7f9ff"],
html[data-mode="dark"] [style*="background:#F7F9FF"],
html[data-mode="dark"] [style*="background: #f7f9ff"],
html[data-mode="dark"] [style*="background: #F7F9FF"],
html[data-mode="dark"] [style*="background-color:#f7f9ff"],
html[data-mode="dark"] [style*="background-color:#F7F9FF"],
html[data-mode="dark"] [style*="background-color: #f7f9ff"],
html[data-mode="dark"] [style*="background-color: #F7F9FF"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f8f9fc)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F8F9FC)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f8f9fc)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F8F9FC)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f8f9fc)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F8F9FC)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f8f9fc)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F8F9FC)"],
html[data-mode="dark"] [style*="background:#faf8ff"],
html[data-mode="dark"] [style*="background:#FAF8FF"],
html[data-mode="dark"] [style*="background: #faf8ff"],
html[data-mode="dark"] [style*="background: #FAF8FF"],
html[data-mode="dark"] [style*="background-color:#faf8ff"],
html[data-mode="dark"] [style*="background-color:#FAF8FF"],
html[data-mode="dark"] [style*="background-color: #faf8ff"],
html[data-mode="dark"] [style*="background-color: #FAF8FF"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f7f8fa)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F7F8FA)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f7f8fa)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F7F8FA)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f7f8fa)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F7F8FA)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f7f8fa)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F7F8FA)"],
html[data-mode="dark"] [style*="background:#fff6f5"],
html[data-mode="dark"] [style*="background:#FFF6F5"],
html[data-mode="dark"] [style*="background: #fff6f5"],
html[data-mode="dark"] [style*="background: #FFF6F5"],
html[data-mode="dark"] [style*="background-color:#fff6f5"],
html[data-mode="dark"] [style*="background-color:#FFF6F5"],
html[data-mode="dark"] [style*="background-color: #fff6f5"],
html[data-mode="dark"] [style*="background-color: #FFF6F5"],
html[data-mode="dark"] [style*="background:#f3f8ff"],
html[data-mode="dark"] [style*="background:#F3F8FF"],
html[data-mode="dark"] [style*="background: #f3f8ff"],
html[data-mode="dark"] [style*="background: #F3F8FF"],
html[data-mode="dark"] [style*="background-color:#f3f8ff"],
html[data-mode="dark"] [style*="background-color:#F3F8FF"],
html[data-mode="dark"] [style*="background-color: #f3f8ff"],
html[data-mode="dark"] [style*="background-color: #F3F8FF"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f6f7fb)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F6F7FB)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f6f7fb)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F6F7FB)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f6f7fb)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F6F7FB)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f6f7fb)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F6F7FB)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f5f7fd)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F5F7FD)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f5f7fd)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F5F7FD)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f5f7fd)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F5F7FD)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f5f7fd)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F5F7FD)"],
html[data-mode="dark"] [style*="background:#fdf5f5"],
html[data-mode="dark"] [style*="background:#FDF5F5"],
html[data-mode="dark"] [style*="background: #fdf5f5"],
html[data-mode="dark"] [style*="background: #FDF5F5"],
html[data-mode="dark"] [style*="background-color:#fdf5f5"],
html[data-mode="dark"] [style*="background-color:#FDF5F5"],
html[data-mode="dark"] [style*="background-color: #fdf5f5"],
html[data-mode="dark"] [style*="background-color: #FDF5F5"],
html[data-mode="dark"] [style*="background:#f3f6ff"],
html[data-mode="dark"] [style*="background:#F3F6FF"],
html[data-mode="dark"] [style*="background: #f3f6ff"],
html[data-mode="dark"] [style*="background: #F3F6FF"],
html[data-mode="dark"] [style*="background-color:#f3f6ff"],
html[data-mode="dark"] [style*="background-color:#F3F6FF"],
html[data-mode="dark"] [style*="background-color: #f3f6ff"],
html[data-mode="dark"] [style*="background-color: #F3F6FF"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f3f5fa)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F3F5FA)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f3f5fa)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F3F5FA)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f3f5fa)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F3F5FA)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f3f5fa)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F3F5FA)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f3f4f6)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F3F4F6)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f3f4f6)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F3F4F6)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f3f4f6)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F3F4F6)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f3f4f6)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F3F4F6)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f2f4f7)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F2F4F7)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f2f4f7)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F2F4F7)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f2f4f7)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F2F4F7)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f2f4f7)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F2F4F7)"],
html[data-mode="dark"] [style*="background:#f0f3fa"],
html[data-mode="dark"] [style*="background:#F0F3FA"],
html[data-mode="dark"] [style*="background: #f0f3fa"],
html[data-mode="dark"] [style*="background: #F0F3FA"],
html[data-mode="dark"] [style*="background-color:#f0f3fa"],
html[data-mode="dark"] [style*="background-color:#F0F3FA"],
html[data-mode="dark"] [style*="background-color: #f0f3fa"],
html[data-mode="dark"] [style*="background-color: #F0F3FA"],
html[data-mode="dark"] [style*="background:#eef2fb"],
html[data-mode="dark"] [style*="background:#EEF2FB"],
html[data-mode="dark"] [style*="background: #eef2fb"],
html[data-mode="dark"] [style*="background: #EEF2FB"],
html[data-mode="dark"] [style*="background-color:#eef2fb"],
html[data-mode="dark"] [style*="background-color:#EEF2FB"],
html[data-mode="dark"] [style*="background-color: #eef2fb"],
html[data-mode="dark"] [style*="background-color: #EEF2FB"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #eef1f6)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #EEF1F6)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #eef1f6)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #EEF1F6)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #eef1f6)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #EEF1F6)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #eef1f6)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #EEF1F6)"],
html[data-mode="dark"] [style*="background:#e6f4ed"],
html[data-mode="dark"] [style*="background:#E6F4ED"],
html[data-mode="dark"] [style*="background: #e6f4ed"],
html[data-mode="dark"] [style*="background: #E6F4ED"],
html[data-mode="dark"] [style*="background-color:#e6f4ed"],
html[data-mode="dark"] [style*="background-color:#E6F4ED"],
html[data-mode="dark"] [style*="background-color: #e6f4ed"],
html[data-mode="dark"] [style*="background-color: #E6F4ED"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #f0f0f0)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #F0F0F0)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #f0f0f0)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #F0F0F0)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #f0f0f0)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #F0F0F0)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #f0f0f0)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #F0F0F0)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #eef0f3)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #EEF0F3)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #eef0f3)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #EEF0F3)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #eef0f3)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #EEF0F3)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #eef0f3)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #EEF0F3)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #e9ecf3)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #E9ECF3)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #e9ecf3)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #E9ECF3)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #e9ecf3)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #E9ECF3)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #e9ecf3)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #E9ECF3)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #e4e7ec)"],
html[data-mode="dark"] [style*="background:var(--soft-bg, #E4E7EC)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #e4e7ec)"],
html[data-mode="dark"] [style*="background: var(--soft-bg, #E4E7EC)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #e4e7ec)"],
html[data-mode="dark"] [style*="background-color:var(--soft-bg, #E4E7EC)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #e4e7ec)"],
html[data-mode="dark"] [style*="background-color: var(--soft-bg, #E4E7EC)"] { background: var(--gray-100) !important; }
html[data-mode="dark"] table thead th,
html[data-mode="dark"] .al-row,
html[data-mode="dark"] .ai-box,
html[data-mode="dark"] .pp-tile:hover,
html[data-mode="dark"] .ss-opt.hi,
html[data-mode="dark"] .ss-opt:hover,
html[data-mode="dark"] /* CE-68: Grid / Calendar switch */
.view-seg { background: var(--gray-100) !important; }
html[data-mode="dark"] [style*="background:#ccfbf1"],
html[data-mode="dark"] [style*="background:#CCFBF1"],
html[data-mode="dark"] [style*="background: #ccfbf1"],
html[data-mode="dark"] [style*="background: #CCFBF1"],
html[data-mode="dark"] [style*="background-color:#ccfbf1"],
html[data-mode="dark"] [style*="background-color:#CCFBF1"],
html[data-mode="dark"] [style*="background-color: #ccfbf1"],
html[data-mode="dark"] [style*="background-color: #CCFBF1"],
html[data-mode="dark"] [style*="background:#d1fae5"],
html[data-mode="dark"] [style*="background:#D1FAE5"],
html[data-mode="dark"] [style*="background: #d1fae5"],
html[data-mode="dark"] [style*="background: #D1FAE5"],
html[data-mode="dark"] [style*="background-color:#d1fae5"],
html[data-mode="dark"] [style*="background-color:#D1FAE5"],
html[data-mode="dark"] [style*="background-color: #d1fae5"],
html[data-mode="dark"] [style*="background-color: #D1FAE5"],
html[data-mode="dark"] [style*="background:#d6def3"],
html[data-mode="dark"] [style*="background:#D6DEF3"],
html[data-mode="dark"] [style*="background: #d6def3"],
html[data-mode="dark"] [style*="background: #D6DEF3"],
html[data-mode="dark"] [style*="background-color:#d6def3"],
html[data-mode="dark"] [style*="background-color:#D6DEF3"],
html[data-mode="dark"] [style*="background-color: #d6def3"],
html[data-mode="dark"] [style*="background-color: #D6DEF3"],
html[data-mode="dark"] [style*="background:#dbeafe"],
html[data-mode="dark"] [style*="background:#DBEAFE"],
html[data-mode="dark"] [style*="background: #dbeafe"],
html[data-mode="dark"] [style*="background: #DBEAFE"],
html[data-mode="dark"] [style*="background-color:#dbeafe"],
html[data-mode="dark"] [style*="background-color:#DBEAFE"],
html[data-mode="dark"] [style*="background-color: #dbeafe"],
html[data-mode="dark"] [style*="background-color: #DBEAFE"],
html[data-mode="dark"] [style*="background:#dcf3f0"],
html[data-mode="dark"] [style*="background:#DCF3F0"],
html[data-mode="dark"] [style*="background: #dcf3f0"],
html[data-mode="dark"] [style*="background: #DCF3F0"],
html[data-mode="dark"] [style*="background-color:#dcf3f0"],
html[data-mode="dark"] [style*="background-color:#DCF3F0"],
html[data-mode="dark"] [style*="background-color: #dcf3f0"],
html[data-mode="dark"] [style*="background-color: #DCF3F0"],
html[data-mode="dark"] [style*="background:#e0e7ff"],
html[data-mode="dark"] [style*="background:#E0E7FF"],
html[data-mode="dark"] [style*="background: #e0e7ff"],
html[data-mode="dark"] [style*="background: #E0E7FF"],
html[data-mode="dark"] [style*="background-color:#e0e7ff"],
html[data-mode="dark"] [style*="background-color:#E0E7FF"],
html[data-mode="dark"] [style*="background-color: #e0e7ff"],
html[data-mode="dark"] [style*="background-color: #E0E7FF"],
html[data-mode="dark"] [style*="background:#e0ecff"],
html[data-mode="dark"] [style*="background:#E0ECFF"],
html[data-mode="dark"] [style*="background: #e0ecff"],
html[data-mode="dark"] [style*="background: #E0ECFF"],
html[data-mode="dark"] [style*="background-color:#e0ecff"],
html[data-mode="dark"] [style*="background-color:#E0ECFF"],
html[data-mode="dark"] [style*="background-color: #e0ecff"],
html[data-mode="dark"] [style*="background-color: #E0ECFF"],
html[data-mode="dark"] [style*="background:#e3f4e5"],
html[data-mode="dark"] [style*="background:#E3F4E5"],
html[data-mode="dark"] [style*="background: #e3f4e5"],
html[data-mode="dark"] [style*="background: #E3F4E5"],
html[data-mode="dark"] [style*="background-color:#e3f4e5"],
html[data-mode="dark"] [style*="background-color:#E3F4E5"],
html[data-mode="dark"] [style*="background-color: #e3f4e5"],
html[data-mode="dark"] [style*="background-color: #E3F4E5"],
html[data-mode="dark"] [style*="background:#e7edfa"],
html[data-mode="dark"] [style*="background:#E7EDFA"],
html[data-mode="dark"] [style*="background: #e7edfa"],
html[data-mode="dark"] [style*="background: #E7EDFA"],
html[data-mode="dark"] [style*="background-color:#e7edfa"],
html[data-mode="dark"] [style*="background-color:#E7EDFA"],
html[data-mode="dark"] [style*="background-color: #e7edfa"],
html[data-mode="dark"] [style*="background-color: #E7EDFA"],
html[data-mode="dark"] [style*="background:#e7f7ec"],
html[data-mode="dark"] [style*="background:#E7F7EC"],
html[data-mode="dark"] [style*="background: #e7f7ec"],
html[data-mode="dark"] [style*="background: #E7F7EC"],
html[data-mode="dark"] [style*="background-color:#e7f7ec"],
html[data-mode="dark"] [style*="background-color:#E7F7EC"],
html[data-mode="dark"] [style*="background-color: #e7f7ec"],
html[data-mode="dark"] [style*="background-color: #E7F7EC"],
html[data-mode="dark"] [style*="background:#e8efff"],
html[data-mode="dark"] [style*="background:#E8EFFF"],
html[data-mode="dark"] [style*="background: #e8efff"],
html[data-mode="dark"] [style*="background: #E8EFFF"],
html[data-mode="dark"] [style*="background-color:#e8efff"],
html[data-mode="dark"] [style*="background-color:#E8EFFF"],
html[data-mode="dark"] [style*="background-color: #e8efff"],
html[data-mode="dark"] [style*="background-color: #E8EFFF"],
html[data-mode="dark"] [style*="background:#ecfdf3"],
html[data-mode="dark"] [style*="background:#ECFDF3"],
html[data-mode="dark"] [style*="background: #ecfdf3"],
html[data-mode="dark"] [style*="background: #ECFDF3"],
html[data-mode="dark"] [style*="background-color:#ecfdf3"],
html[data-mode="dark"] [style*="background-color:#ECFDF3"],
html[data-mode="dark"] [style*="background-color: #ecfdf3"],
html[data-mode="dark"] [style*="background-color: #ECFDF3"],
html[data-mode="dark"] [style*="background:#ede9fe"],
html[data-mode="dark"] [style*="background:#EDE9FE"],
html[data-mode="dark"] [style*="background: #ede9fe"],
html[data-mode="dark"] [style*="background: #EDE9FE"],
html[data-mode="dark"] [style*="background-color:#ede9fe"],
html[data-mode="dark"] [style*="background-color:#EDE9FE"],
html[data-mode="dark"] [style*="background-color: #ede9fe"],
html[data-mode="dark"] [style*="background-color: #EDE9FE"],
html[data-mode="dark"] [style*="background:#eef3ff"],
html[data-mode="dark"] [style*="background:#EEF3FF"],
html[data-mode="dark"] [style*="background: #eef3ff"],
html[data-mode="dark"] [style*="background: #EEF3FF"],
html[data-mode="dark"] [style*="background-color:#eef3ff"],
html[data-mode="dark"] [style*="background-color:#EEF3FF"],
html[data-mode="dark"] [style*="background-color: #eef3ff"],
html[data-mode="dark"] [style*="background-color: #EEF3FF"],
html[data-mode="dark"] [style*="background:#eef4ff"],
html[data-mode="dark"] [style*="background:#EEF4FF"],
html[data-mode="dark"] [style*="background: #eef4ff"],
html[data-mode="dark"] [style*="background: #EEF4FF"],
html[data-mode="dark"] [style*="background-color:#eef4ff"],
html[data-mode="dark"] [style*="background-color:#EEF4FF"],
html[data-mode="dark"] [style*="background-color: #eef4ff"],
html[data-mode="dark"] [style*="background-color: #EEF4FF"],
html[data-mode="dark"] [style*="background:#fde7e5"],
html[data-mode="dark"] [style*="background:#FDE7E5"],
html[data-mode="dark"] [style*="background: #fde7e5"],
html[data-mode="dark"] [style*="background: #FDE7E5"],
html[data-mode="dark"] [style*="background-color:#fde7e5"],
html[data-mode="dark"] [style*="background-color:#FDE7E5"],
html[data-mode="dark"] [style*="background-color: #fde7e5"],
html[data-mode="dark"] [style*="background-color: #FDE7E5"],
html[data-mode="dark"] [style*="background:#fde8e8"],
html[data-mode="dark"] [style*="background:#FDE8E8"],
html[data-mode="dark"] [style*="background: #fde8e8"],
html[data-mode="dark"] [style*="background: #FDE8E8"],
html[data-mode="dark"] [style*="background-color:#fde8e8"],
html[data-mode="dark"] [style*="background-color:#FDE8E8"],
html[data-mode="dark"] [style*="background-color: #fde8e8"],
html[data-mode="dark"] [style*="background-color: #FDE8E8"],
html[data-mode="dark"] [style*="background:#fdecc8"],
html[data-mode="dark"] [style*="background:#FDECC8"],
html[data-mode="dark"] [style*="background: #fdecc8"],
html[data-mode="dark"] [style*="background: #FDECC8"],
html[data-mode="dark"] [style*="background-color:#fdecc8"],
html[data-mode="dark"] [style*="background-color:#FDECC8"],
html[data-mode="dark"] [style*="background-color: #fdecc8"],
html[data-mode="dark"] [style*="background-color: #FDECC8"],
html[data-mode="dark"] [style*="background:#fdecea"],
html[data-mode="dark"] [style*="background:#FDECEA"],
html[data-mode="dark"] [style*="background: #fdecea"],
html[data-mode="dark"] [style*="background: #FDECEA"],
html[data-mode="dark"] [style*="background-color:#fdecea"],
html[data-mode="dark"] [style*="background-color:#FDECEA"],
html[data-mode="dark"] [style*="background-color: #fdecea"],
html[data-mode="dark"] [style*="background-color: #FDECEA"],
html[data-mode="dark"] [style*="background:#fdecec"],
html[data-mode="dark"] [style*="background:#FDECEC"],
html[data-mode="dark"] [style*="background: #fdecec"],
html[data-mode="dark"] [style*="background: #FDECEC"],
html[data-mode="dark"] [style*="background-color:#fdecec"],
html[data-mode="dark"] [style*="background-color:#FDECEC"],
html[data-mode="dark"] [style*="background-color: #fdecec"],
html[data-mode="dark"] [style*="background-color: #FDECEC"],
html[data-mode="dark"] [style*="background:#fdf1dc"],
html[data-mode="dark"] [style*="background:#FDF1DC"],
html[data-mode="dark"] [style*="background: #fdf1dc"],
html[data-mode="dark"] [style*="background: #FDF1DC"],
html[data-mode="dark"] [style*="background-color:#fdf1dc"],
html[data-mode="dark"] [style*="background-color:#FDF1DC"],
html[data-mode="dark"] [style*="background-color: #fdf1dc"],
html[data-mode="dark"] [style*="background-color: #FDF1DC"],
html[data-mode="dark"] [style*="background:#fef3c7"],
html[data-mode="dark"] [style*="background:#FEF3C7"],
html[data-mode="dark"] [style*="background: #fef3c7"],
html[data-mode="dark"] [style*="background: #FEF3C7"],
html[data-mode="dark"] [style*="background-color:#fef3c7"],
html[data-mode="dark"] [style*="background-color:#FEF3C7"],
html[data-mode="dark"] [style*="background-color: #fef3c7"],
html[data-mode="dark"] [style*="background-color: #FEF3C7"],
html[data-mode="dark"] [style*="background:#fef9c3"],
html[data-mode="dark"] [style*="background:#FEF9C3"],
html[data-mode="dark"] [style*="background: #fef9c3"],
html[data-mode="dark"] [style*="background: #FEF9C3"],
html[data-mode="dark"] [style*="background-color:#fef9c3"],
html[data-mode="dark"] [style*="background-color:#FEF9C3"],
html[data-mode="dark"] [style*="background-color: #fef9c3"],
html[data-mode="dark"] [style*="background-color: #FEF9C3"],
html[data-mode="dark"] [style*="background:#fff4e5"],
html[data-mode="dark"] [style*="background:#FFF4E5"],
html[data-mode="dark"] [style*="background: #fff4e5"],
html[data-mode="dark"] [style*="background: #FFF4E5"],
html[data-mode="dark"] [style*="background-color:#fff4e5"],
html[data-mode="dark"] [style*="background-color:#FFF4E5"],
html[data-mode="dark"] [style*="background-color: #fff4e5"],
html[data-mode="dark"] [style*="background-color: #FFF4E5"],
html[data-mode="dark"] [style*="background:#fff8e6"],
html[data-mode="dark"] [style*="background:#FFF8E6"],
html[data-mode="dark"] [style*="background: #fff8e6"],
html[data-mode="dark"] [style*="background: #FFF8E6"],
html[data-mode="dark"] [style*="background-color:#fff8e6"],
html[data-mode="dark"] [style*="background-color:#FFF8E6"],
html[data-mode="dark"] [style*="background-color: #fff8e6"],
html[data-mode="dark"] [style*="background-color: #FFF8E6"],
html[data-mode="dark"] [style*="background:#fff8ec"],
html[data-mode="dark"] [style*="background:#FFF8EC"],
html[data-mode="dark"] [style*="background: #fff8ec"],
html[data-mode="dark"] [style*="background: #FFF8EC"],
html[data-mode="dark"] [style*="background-color:#fff8ec"],
html[data-mode="dark"] [style*="background-color:#FFF8EC"],
html[data-mode="dark"] [style*="background-color: #fff8ec"],
html[data-mode="dark"] [style*="background-color: #FFF8EC"] { --gray-800: #2d3352; --gray-600: #4b5370; --gray-400: #6b7289; --brand-ink: var(--brand); --brand-ink-d: var(--brand-d); --tx-hi: initial; --tx-mid: initial; --tx-lo: initial; --soft-bg: initial; --st-red: #b42318; --st-green: #067647; --st-amber: #92400e; --st-blue: #1e40af; color: var(--tx-hi, #2d3352); }
html[data-mode="dark"] .offline-strip,
html[data-mode="dark"] .pl-off,
html[data-mode="dark"] .al-count,
html[data-mode="dark"] .al-row:hover,
html[data-mode="dark"] .ai-pill,
html[data-mode="dark"] .ai-pill.urg-High,
html[data-mode="dark"] .ai-pill.urg-Medium,
html[data-mode="dark"] .ai-pill.dup,
html[data-mode="dark"] .ai-pill.ok,
html[data-mode="dark"] .ai-pill.warn,
html[data-mode="dark"] .ai-pill.fail,
html[data-mode="dark"] .pp-tile.picked,
html[data-mode="dark"] .ts-line,
html[data-mode="dark"] /* CE-59: Improvement Action tag (tasks from a confirmed AI suggestion) */
.ia-tag,
html[data-mode="dark"] /* CE-62: team (Empowered Pals) chip on scheduled work */
.team-chip { --gray-800: #2d3352; --gray-600: #4b5370; --gray-400: #6b7289; --brand-ink: var(--brand); --brand-ink-d: var(--brand-d); --tx-hi: initial; --tx-mid: initial; --tx-lo: initial; --soft-bg: initial; --st-red: #b42318; --st-green: #067647; --st-amber: #92400e; --st-blue: #1e40af; color: var(--tx-hi, #2d3352); }
html[data-mode="dark"] [style*=";color:var(--tx-hi, #101828)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #101828)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #101828)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #101828)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #101828)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #101828)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #1d2939)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #1D2939)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #111827)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #111827)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #111827)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #111827)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #111827)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #111827)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #111)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #111)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #111)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #111)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #111)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #111)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #222)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #222)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #222)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #222)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #222)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #222)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #333)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #333)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #333)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #333)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #333)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #333)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #344054)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #344054)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #344054)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #344054)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #344054)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #344054)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #374151)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #374151)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #374151)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #374151)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #374151)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #374151)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style*=";color:var(--tx-hi, #2d3352)"],
html[data-mode="dark"] [style^="color:var(--tx-hi, #2d3352)"],
html[data-mode="dark"] [style*=" color:var(--tx-hi, #2d3352)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #2D3352)"],
html[data-mode="dark"] [style*=";color: var(--tx-hi, #2d3352)"],
html[data-mode="dark"] [style^="color: var(--tx-hi, #2d3352)"],
html[data-mode="dark"] [style*=" color: var(--tx-hi, #2d3352)"] { color: var(--gray-800) !important; }
html[data-mode="dark"] [style*=";color:var(--tx-mid, #475467)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #475467)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #475467)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #475467)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #475467)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #475467)"],
html[data-mode="dark"] [style*=";color:var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style*=";color:var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #4b5563)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #4B5563)"],
html[data-mode="dark"] [style*=";color:var(--tx-mid, #555)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #555)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #555)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #555)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #555)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #555)"],
html[data-mode="dark"] [style*=";color:var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style*=";color:var(--tx-mid, #5a6180)"],
html[data-mode="dark"] [style^="color:var(--tx-mid, #5a6180)"],
html[data-mode="dark"] [style*=" color:var(--tx-mid, #5a6180)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #5A6180)"],
html[data-mode="dark"] [style*=";color: var(--tx-mid, #5a6180)"],
html[data-mode="dark"] [style^="color: var(--tx-mid, #5a6180)"],
html[data-mode="dark"] [style*=" color: var(--tx-mid, #5a6180)"] { color: var(--gray-600) !important; }
html[data-mode="dark"] [style*=";color:var(--tx-lo, #667085)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #667085)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #667085)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #667085)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #667085)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #667085)"],
html[data-mode="dark"] [style*=";color:var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style*=";color:var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #6b7280)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #6B7280)"],
html[data-mode="dark"] [style*=";color:var(--tx-lo, #666)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #666)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #666)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #666)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #666)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #666)"],
html[data-mode="dark"] [style*=";color:var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style*=";color:var(--tx-lo, #6b7480)"],
html[data-mode="dark"] [style^="color:var(--tx-lo, #6b7480)"],
html[data-mode="dark"] [style*=" color:var(--tx-lo, #6b7480)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #6B7480)"],
html[data-mode="dark"] [style*=";color: var(--tx-lo, #6b7480)"],
html[data-mode="dark"] [style^="color: var(--tx-lo, #6b7480)"],
html[data-mode="dark"] [style*=" color: var(--tx-lo, #6b7480)"] { color: var(--gray-400) !important; }
html[data-mode="dark"] [style*=";color:#B42318"],
html[data-mode="dark"] [style^="color:#B42318"],
html[data-mode="dark"] [style*=" color:#B42318"],
html[data-mode="dark"] [style*=";color:#b42318"],
html[data-mode="dark"] [style^="color:#b42318"],
html[data-mode="dark"] [style*=" color:#b42318"],
html[data-mode="dark"] [style*=";color: #B42318"],
html[data-mode="dark"] [style^="color: #B42318"],
html[data-mode="dark"] [style*=" color: #B42318"],
html[data-mode="dark"] [style*=";color: #b42318"],
html[data-mode="dark"] [style^="color: #b42318"],
html[data-mode="dark"] [style*=" color: #b42318"],
html[data-mode="dark"] [style*=";color:#b3261e"],
html[data-mode="dark"] [style^="color:#b3261e"],
html[data-mode="dark"] [style*=" color:#b3261e"],
html[data-mode="dark"] [style*=";color:#B3261E"],
html[data-mode="dark"] [style^="color:#B3261E"],
html[data-mode="dark"] [style*=" color:#B3261E"],
html[data-mode="dark"] [style*=";color: #b3261e"],
html[data-mode="dark"] [style^="color: #b3261e"],
html[data-mode="dark"] [style*=" color: #b3261e"],
html[data-mode="dark"] [style*=";color: #B3261E"],
html[data-mode="dark"] [style^="color: #B3261E"],
html[data-mode="dark"] [style*=" color: #B3261E"],
html[data-mode="dark"] [style*=";color:#b02020"],
html[data-mode="dark"] [style^="color:#b02020"],
html[data-mode="dark"] [style*=" color:#b02020"],
html[data-mode="dark"] [style*=";color:#B02020"],
html[data-mode="dark"] [style^="color:#B02020"],
html[data-mode="dark"] [style*=" color:#B02020"],
html[data-mode="dark"] [style*=";color: #b02020"],
html[data-mode="dark"] [style^="color: #b02020"],
html[data-mode="dark"] [style*=" color: #b02020"],
html[data-mode="dark"] [style*=";color: #B02020"],
html[data-mode="dark"] [style^="color: #B02020"],
html[data-mode="dark"] [style*=" color: #B02020"],
html[data-mode="dark"] [style*=";color:#D92D20"],
html[data-mode="dark"] [style^="color:#D92D20"],
html[data-mode="dark"] [style*=" color:#D92D20"],
html[data-mode="dark"] [style*=";color:#d92d20"],
html[data-mode="dark"] [style^="color:#d92d20"],
html[data-mode="dark"] [style*=" color:#d92d20"],
html[data-mode="dark"] [style*=";color: #D92D20"],
html[data-mode="dark"] [style^="color: #D92D20"],
html[data-mode="dark"] [style*=" color: #D92D20"],
html[data-mode="dark"] [style*=";color: #d92d20"],
html[data-mode="dark"] [style^="color: #d92d20"],
html[data-mode="dark"] [style*=" color: #d92d20"] { color: var(--st-red) !important; }
html[data-mode="dark"] [style*=";color:#067647"],
html[data-mode="dark"] [style^="color:#067647"],
html[data-mode="dark"] [style*=" color:#067647"],
html[data-mode="dark"] [style*=";color: #067647"],
html[data-mode="dark"] [style^="color: #067647"],
html[data-mode="dark"] [style*=" color: #067647"],
html[data-mode="dark"] [style*=";color:#065f46"],
html[data-mode="dark"] [style^="color:#065f46"],
html[data-mode="dark"] [style*=" color:#065f46"],
html[data-mode="dark"] [style*=";color:#065F46"],
html[data-mode="dark"] [style^="color:#065F46"],
html[data-mode="dark"] [style*=" color:#065F46"],
html[data-mode="dark"] [style*=";color: #065f46"],
html[data-mode="dark"] [style^="color: #065f46"],
html[data-mode="dark"] [style*=" color: #065f46"],
html[data-mode="dark"] [style*=";color: #065F46"],
html[data-mode="dark"] [style^="color: #065F46"],
html[data-mode="dark"] [style*=" color: #065F46"],
html[data-mode="dark"] [style*=";color:#1A7A4A"],
html[data-mode="dark"] [style^="color:#1A7A4A"],
html[data-mode="dark"] [style*=" color:#1A7A4A"],
html[data-mode="dark"] [style*=";color:#1a7a4a"],
html[data-mode="dark"] [style^="color:#1a7a4a"],
html[data-mode="dark"] [style*=" color:#1a7a4a"],
html[data-mode="dark"] [style*=";color: #1A7A4A"],
html[data-mode="dark"] [style^="color: #1A7A4A"],
html[data-mode="dark"] [style*=" color: #1A7A4A"],
html[data-mode="dark"] [style*=";color: #1a7a4a"],
html[data-mode="dark"] [style^="color: #1a7a4a"],
html[data-mode="dark"] [style*=" color: #1a7a4a"],
html[data-mode="dark"] [style*=";color:#2e7d32"],
html[data-mode="dark"] [style^="color:#2e7d32"],
html[data-mode="dark"] [style*=" color:#2e7d32"],
html[data-mode="dark"] [style*=";color:#2E7D32"],
html[data-mode="dark"] [style^="color:#2E7D32"],
html[data-mode="dark"] [style*=" color:#2E7D32"],
html[data-mode="dark"] [style*=";color: #2e7d32"],
html[data-mode="dark"] [style^="color: #2e7d32"],
html[data-mode="dark"] [style*=" color: #2e7d32"],
html[data-mode="dark"] [style*=";color: #2E7D32"],
html[data-mode="dark"] [style^="color: #2E7D32"],
html[data-mode="dark"] [style*=" color: #2E7D32"] { color: var(--st-green) !important; }
html[data-mode="dark"] [style*=";color:#92400E"],
html[data-mode="dark"] [style^="color:#92400E"],
html[data-mode="dark"] [style*=" color:#92400E"],
html[data-mode="dark"] [style*=";color:#92400e"],
html[data-mode="dark"] [style^="color:#92400e"],
html[data-mode="dark"] [style*=" color:#92400e"],
html[data-mode="dark"] [style*=";color: #92400E"],
html[data-mode="dark"] [style^="color: #92400E"],
html[data-mode="dark"] [style*=" color: #92400E"],
html[data-mode="dark"] [style*=";color: #92400e"],
html[data-mode="dark"] [style^="color: #92400e"],
html[data-mode="dark"] [style*=" color: #92400e"],
html[data-mode="dark"] [style*=";color:#93370D"],
html[data-mode="dark"] [style^="color:#93370D"],
html[data-mode="dark"] [style*=" color:#93370D"],
html[data-mode="dark"] [style*=";color:#93370d"],
html[data-mode="dark"] [style^="color:#93370d"],
html[data-mode="dark"] [style*=" color:#93370d"],
html[data-mode="dark"] [style*=";color: #93370D"],
html[data-mode="dark"] [style^="color: #93370D"],
html[data-mode="dark"] [style*=" color: #93370D"],
html[data-mode="dark"] [style*=";color: #93370d"],
html[data-mode="dark"] [style^="color: #93370d"],
html[data-mode="dark"] [style*=" color: #93370d"],
html[data-mode="dark"] [style*=";color:#8a4b00"],
html[data-mode="dark"] [style^="color:#8a4b00"],
html[data-mode="dark"] [style*=" color:#8a4b00"],
html[data-mode="dark"] [style*=";color:#8A4B00"],
html[data-mode="dark"] [style^="color:#8A4B00"],
html[data-mode="dark"] [style*=" color:#8A4B00"],
html[data-mode="dark"] [style*=";color: #8a4b00"],
html[data-mode="dark"] [style^="color: #8a4b00"],
html[data-mode="dark"] [style*=" color: #8a4b00"],
html[data-mode="dark"] [style*=";color: #8A4B00"],
html[data-mode="dark"] [style^="color: #8A4B00"],
html[data-mode="dark"] [style*=" color: #8A4B00"],
html[data-mode="dark"] [style*=";color:#8A5208"],
html[data-mode="dark"] [style^="color:#8A5208"],
html[data-mode="dark"] [style*=" color:#8A5208"],
html[data-mode="dark"] [style*=";color:#8a5208"],
html[data-mode="dark"] [style^="color:#8a5208"],
html[data-mode="dark"] [style*=" color:#8a5208"],
html[data-mode="dark"] [style*=";color: #8A5208"],
html[data-mode="dark"] [style^="color: #8A5208"],
html[data-mode="dark"] [style*=" color: #8A5208"],
html[data-mode="dark"] [style*=";color: #8a5208"],
html[data-mode="dark"] [style^="color: #8a5208"],
html[data-mode="dark"] [style*=" color: #8a5208"] { color: var(--st-amber) !important; }
html[data-mode="dark"] [style*=";color:#1E40AF"],
html[data-mode="dark"] [style^="color:#1E40AF"],
html[data-mode="dark"] [style*=" color:#1E40AF"],
html[data-mode="dark"] [style*=";color:#1e40af"],
html[data-mode="dark"] [style^="color:#1e40af"],
html[data-mode="dark"] [style*=" color:#1e40af"],
html[data-mode="dark"] [style*=";color: #1E40AF"],
html[data-mode="dark"] [style^="color: #1E40AF"],
html[data-mode="dark"] [style*=" color: #1E40AF"],
html[data-mode="dark"] [style*=";color: #1e40af"],
html[data-mode="dark"] [style^="color: #1e40af"],
html[data-mode="dark"] [style*=" color: #1e40af"] { color: var(--st-blue) !important; }
.mode-btn { order: 9; margin-left: 10px; }
.mode-btn svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .mode-btn { order: -2; margin: 0 0 0 auto; } .mode-btn ~ .alerts-btn { margin-left: 6px; } }
