/* Hausstrom Growth — HS-207 design uplift (Wave 0/1).
   Every rule below applies ONLY when <html data-uplift> is set by assets/uplift.js, which reads
   growth_my_rights_v2().uplift (global switch design_uplift_on OR the caller on design_uplift_pilot).
   Command Blue tokens only. The mobile stacked-table mode (≤720px) is deliberately untouched. */

html[data-uplift] {
  /* one semantic ramp per hue — bg / border / text */
  --info-bg: #E0F5FF;  --info-bd: #7DD3FC;  --info-tx: #005f8a;
  --good-bg: #D1FAE5;  --good-bd: #86EFAC;  --good-tx: #065f46;
  --watch-bg: #FFF6CC; --watch-bd: #F0D060; --watch-tx: #7a5c00;
  --risk-bg: #FEE2E2;  --risk-bd: #FECACA;  --risk-tx: #991b1b;
  --thead-bg: #F6F9FC; --hover-bg: #F0F9FF;
}

/* ---------- 2 · Typography ramp ---------- */
/* the five 11px micro-label styles collapse onto ONE ramp (.lbl) */
html[data-uplift] .lbl,
html[data-uplift] .dash-sec,
html[data-uplift] .meter-l,
html[data-uplift] .f-label,
html[data-uplift] .c360-day,
html[data-uplift] .kpi .l,
html[data-uplift] .tile-l,
html[data-uplift] .stat-l {
  font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .6px !important;
  text-transform: uppercase !important; color: var(--label-sm, #49556E) !important;
}
/* hero numbers step up so the hierarchy reads title → number → label */
html[data-uplift] .meter-v,
html[data-uplift] .kpi .n,
html[data-uplift] .tile-v,
html[data-uplift] .stat-v { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -.3px; font-variant-numeric: tabular-nums; line-height: 1.15; }
/* card / section titles: sentence case; uppercase + blue underline stays for page-level section heads only */
html[data-uplift] .card > h3:first-child,
html[data-uplift] .card-title,
html[data-uplift] .dcard h4 { font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--navy); }

/* semantic pills — replace the ad-hoc tints */
html[data-uplift] .pill-soon, html[data-uplift] .pill.info { background: var(--info-bg); color: var(--info-tx); border: 1px solid var(--info-bd); }
html[data-uplift] .pill-live, html[data-uplift] .pill.on, html[data-uplift] .pill.st-active, html[data-uplift] .pill.ok, html[data-uplift] .pill.good { background: var(--good-bg); color: var(--good-tx); border: 1px solid var(--good-bd); }
html[data-uplift] .pill-warn, html[data-uplift] .pill.warn, html[data-uplift] .pill.watch, html[data-uplift] .pill.amber, html[data-uplift] .pill.pending { background: var(--watch-bg); color: var(--watch-tx); border: 1px solid var(--watch-bd); }
html[data-uplift] .pill-crit, html[data-uplift] .pill.bad, html[data-uplift] .pill.risk, html[data-uplift] .pill.crit, html[data-uplift] .pill.red { background: var(--risk-bg); color: var(--risk-tx); border: 1px solid var(--risk-bd); }
html[data-uplift] .pill { font-size: 10.5px; font-weight: 800; border-radius: 20px; padding: 2px 9px; }

/* ---------- 1 · Table polish (desktop only — the stacked mode below 720px is untouched) ---------- */
@media (min-width: 721px) {
  html[data-uplift] table.u-tbl thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--thead-bg); color: var(--navy);
    font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    border-bottom: 1px solid var(--grey); box-shadow: 0 1px 0 var(--grey);
  }
  html[data-uplift] table.u-tbl thead th.u-sort { cursor: pointer; user-select: none; white-space: nowrap; }
  html[data-uplift] table.u-tbl thead th.u-sort .u-caret { color: #9AA7B8; font-size: 12px; margin-left: 3px; vertical-align: -1px; }
  html[data-uplift] table.u-tbl thead th.u-sort.u-asc .u-caret,
  html[data-uplift] table.u-tbl thead th.u-sort.u-desc .u-caret { color: var(--blue); }
  html[data-uplift] table.u-tbl tbody tr:hover td { background: var(--hover-bg) !important; }
  html[data-uplift] table.u-tbl td, html[data-uplift] table.u-tbl th { vertical-align: middle; }
  html[data-uplift] table.u-tbl .u-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
  html[data-uplift] table.u-tbl td.u-num { color: var(--text); }
  /* density */
  html[data-uplift][data-density="compact"] table.u-tbl td { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 12px; }
  html[data-uplift][data-density="compact"] table.u-tbl .btn, html[data-uplift][data-density="compact"] table.u-tbl button { padding: 3px 8px !important; font-size: 11px !important; min-height: 26px !important; }
  html[data-uplift] table.u-tbl td { padding-top: 7px; padding-bottom: 7px; }
  /* codes, tickets and dates never wrap inside a cell — the table scrolls sideways instead of growing tall */
  html[data-uplift] table.u-tbl td .pill, html[data-uplift] table.u-tbl td .pill-peg, html[data-uplift] table.u-tbl td .chip { white-space: nowrap; }
  html[data-uplift] table.u-tbl td[data-label="Due"], html[data-uplift] table.u-tbl td[data-label="Date"], html[data-uplift] table.u-tbl td[data-label="Ticket"], html[data-uplift] table.u-tbl td[data-label="Code"] { white-space: nowrap; }
  html[data-uplift] table.u-tbl td[data-label="Customer"] { min-width: 210px; }
  /* row actions: first control stays, the rest fold under ⋯ and show on hover */
  html[data-uplift] table.u-tbl .u-more { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; }
  html[data-uplift] table.u-tbl .u-more > button { width: 28px; height: 28px; border: 1px solid var(--grey); background: #fff; border-radius: 7px; color: var(--label); font-weight: 800; cursor: pointer; font-family: inherit; }
  html[data-uplift] table.u-tbl tr:not(:hover):not(.u-open) .u-more > button { visibility: hidden; }
  html[data-uplift] table.u-tbl .u-menu { display: none; position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid var(--grey); border-radius: 10px; box-shadow: 0 8px 24px rgba(2,55,123,.14); padding: 6px; min-width: 150px; z-index: 30; }
  html[data-uplift] table.u-tbl .u-more.open .u-menu { display: flex; flex-direction: column; gap: 4px; }
  html[data-uplift] table.u-tbl .u-menu .btn, html[data-uplift] table.u-tbl .u-menu button { width: 100%; justify-content: flex-start; text-align: left; }
}
/* initial-avatars before a customer name (any width) */
html[data-uplift] .u-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-weight: 800; font-size: 11px; margin-right: 8px; vertical-align: middle; flex: 0 0 28px; }
html[data-uplift] .u-av.a1 { background: #E0F5FF; color: #005f8a; }
html[data-uplift] .u-av.a2 { background: #DCE7F5; color: #002F6C; }
html[data-uplift] .u-av.a3 { background: #D1FAE5; color: #065f46; }
html[data-uplift] .u-av.a4 { background: #FFF6CC; color: #7a5c00; }
html[data-uplift] .u-av.a5 { background: #EEF1F4; color: #3a4653; }
@media (max-width: 720px) { html[data-uplift] .u-av { width: 22px; height: 22px; font-size: 9px; border-radius: 6px; margin-right: 6px; } }
/* table footer: count + density toggle */
html[data-uplift] .u-tfoot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--grey); font-size: 12px; color: var(--label); background: #fff; border-radius: 0 0 10px 10px; }
html[data-uplift] .u-tfoot b { color: var(--navy); }
html[data-uplift] .u-tfoot .u-sp { flex: 1; }
html[data-uplift] .u-seg { display: inline-flex; border: 1px solid var(--grey); border-radius: 8px; overflow: hidden; }
html[data-uplift] .u-seg button { border: 0; background: #fff; padding: 4px 10px; font: 700 11px Inter, sans-serif; color: var(--label); cursor: pointer; min-height: 28px; }
html[data-uplift] .u-seg button.on { background: var(--navy); color: #fff; }
@media (max-width: 720px) { html[data-uplift] .u-tfoot .u-seg { display: none; } }

/* ---------- 4 · Sidebar declutter ---------- */
html[data-uplift] .sidebar .brand-box { background: transparent; box-shadow: none; display: block; margin: 0; padding: 12px 12px 4px; }
html[data-uplift] .sidebar .u-lock { display: flex; align-items: center; gap: 9px; padding: 0 2px 10px; }
html[data-uplift] .sidebar .u-lock img { height: 28px; width: auto; max-width: 120px; background: #fff; border-radius: 6px; padding: 3px 6px; display: block; }
html[data-uplift] .sidebar .u-lock b { font-size: 12px; letter-spacing: .8px; color: #fff; }
html[data-uplift] .sidebar .u-lock b span { color: var(--blue); }
html[data-uplift] .sidebar .app-label, html[data-uplift] .sidebar .nav-quote, html[data-uplift] .sidebar .vfl-box, html[data-uplift] .sidebar .brand-strip { display: none !important; }
html[data-uplift] .sidebar .motto { order: 98; font-size: 8.5px; padding: 6px 16px 4px; text-align: left; }
html[data-uplift] .sidebar .u-search { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 7px 10px; color: rgba(255,255,255,.7); font-size: 12px; cursor: pointer; }
html[data-uplift] .sidebar .u-search:hover, html[data-uplift] .sidebar .u-search:focus-visible { background: rgba(255,255,255,.16); outline: 2px solid var(--blue); outline-offset: 1px; }
html[data-uplift] .sidebar .u-search kbd { margin-left: auto; font: 700 10px Inter, sans-serif; background: rgba(255,255,255,.14); padding: 1px 6px; border-radius: 5px; color: #fff; }
html[data-uplift] .sidebar .nav-item { position: relative; padding-right: 44px; }
html[data-uplift] .sidebar .nav-item .u-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; border-radius: 10px; padding: 1px 7px; background: var(--red); color: #fff; line-height: 16px; }
html[data-uplift] .sidebar .nav-item .u-badge.y { background: var(--yellow); color: #7a5c00; }
html[data-uplift] .sidebar .nav-group.toggle { font-size: 9px; letter-spacing: .8px; }
html[data-uplift] .sidebar .nav-sub[data-group="Admin"] .nav-item, html[data-uplift] .sidebar .nav-sub[data-group="More"] .nav-item { font-size: 12.5px; padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 721px) and (max-width: 1024px) { html[data-uplift] .sidebar .u-search span, html[data-uplift] .sidebar .u-search kbd, html[data-uplift] .sidebar .u-lock b { display: none; } }

/* My Work tab strip (Actions · Reminders · Compliance · Hand-over · Escalations) */
html[data-uplift] .u-mywork { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
html[data-uplift] .u-mywork a { border: 1.5px solid var(--grey); background: #fff; border-radius: 20px; padding: 6px 13px; font-size: 11.5px; font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
html[data-uplift] .u-mywork a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
html[data-uplift] .u-mywork a .n { font-size: 10px; font-weight: 800; border-radius: 9px; padding: 0 6px; background: var(--risk-bg); color: var(--risk-tx); }
html[data-uplift] .u-mywork a.on .n { background: rgba(255,255,255,.25); color: #fff; }
@media (pointer: coarse) { html[data-uplift] .u-mywork a { min-height: 44px; } }

/* report / export footer brand strip (report pages only) */
html[data-uplift] .u-brandfoot { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 18px 0 6px; opacity: .85; }
html[data-uplift] .u-brandfoot img { height: 18px; }
html[data-uplift] .u-brandfoot .vfl { height: 34px; }
html[data-uplift] .u-brandfoot span { font-size: 10px; color: var(--label); font-style: italic; }

/* focus ring parity for everything the uplift adds */
html[data-uplift] .u-more > button:focus-visible, html[data-uplift] .u-seg button:focus-visible, html[data-uplift] th.u-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html[data-uplift] * { transition: none !important; } }

/* ======================= Wave 2 ======================= */
/* ⌘K palette */
html[data-uplift] .u-pal-ov { position: fixed; inset: 0; background: rgba(0,26,60,.45); z-index: 99998; display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
html[data-uplift] .u-pal { width: 100%; max-width: 640px; background: #fff; border-radius: 10px; box-shadow: 0 12px 44px rgba(0,26,60,.32); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 100px); }
html[data-uplift] .u-pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--grey); font-size: 15px; }
html[data-uplift] .u-pal-in i { color: var(--label); font-size: 18px; }
html[data-uplift] .u-pal-in input { flex: 1; border: 0; outline: 0; font: 500 15px Inter, sans-serif; color: var(--text); background: transparent; min-height: 32px; }
html[data-uplift] .u-pal kbd { font: 700 10px Inter, sans-serif; background: var(--bg); border: 1px solid var(--grey); padding: 2px 6px; border-radius: 5px; color: var(--label); }
html[data-uplift] .u-pal-res { overflow: auto; padding: 6px 8px; }
html[data-uplift] .u-pal-g { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--label-sm); padding: 8px 8px 4px; }
html[data-uplift] .u-pal-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
html[data-uplift] .u-pal-r.on { background: #F0F9FF; }
html[data-uplift] .u-pal-t { flex: 1; min-width: 0; } html[data-uplift] .u-pal-t b { color: var(--navy); font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-uplift] .u-pal-t small { color: var(--label); display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-uplift] .u-pal-r .k { font-size: 11px; color: var(--label); font-weight: 700; }
html[data-uplift] .u-pal-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--bg); display: inline-grid; place-items: center; color: var(--navy); font-size: 13px; flex: 0 0 28px; }
html[data-uplift] .u-pal-empty { padding: 22px 14px; color: var(--label); font-size: 13px; text-align: center; }
html[data-uplift] .u-pal-ft { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--grey); font-size: 11px; color: var(--label); align-items: center; }
html[data-uplift] .u-pal-ft .u-sp { flex: 1; }
html[data-uplift] .p-grey { background: #EEF1F4; color: #3a4653; }
html[data-uplift] .p-risk { background: var(--risk-bg); color: var(--risk-tx); border: 1px solid var(--risk-bd); }
html[data-uplift] .p-watch { background: var(--watch-bg); color: var(--watch-tx); border: 1px solid var(--watch-bd); }
html[data-uplift] .p-good { background: var(--good-bg); color: var(--good-tx); border: 1px solid var(--good-bd); }
html[data-uplift] .p-info { background: var(--info-bg); color: var(--info-tx); border: 1px solid var(--info-bd); }
@media (max-width: 720px) { html[data-uplift] .u-pal-ov { padding: 12px 8px; } html[data-uplift] .u-pal-ft span:not(:last-child) { display: none; } }

/* saved views */
html[data-uplift] .u-views { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 12px 0; }
html[data-uplift] .u-views .lbl { margin-right: 4px; }
html[data-uplift] .u-vw { border: 1px solid var(--grey); background: #fff; border-radius: 20px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; min-height: 30px; position: relative; }
html[data-uplift] .u-vw.on { background: var(--blue); color: #fff; border-color: var(--blue); }
html[data-uplift] .u-vw.shared { border-style: dashed; }
html[data-uplift] .u-vw.add { border-style: dashed; color: var(--label); }
html[data-uplift] .u-vw .x { border: 0; background: transparent; color: inherit; font-weight: 800; cursor: pointer; padding: 0 0 0 2px; line-height: 1; opacity: .55; font-family: inherit; }
html[data-uplift] .u-vw .x:hover, html[data-uplift] .u-vw .x:focus-visible { opacity: 1; }
html[data-uplift] .u-vw-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
html[data-uplift] .u-vw-form[hidden], html[data-uplift] .u-views [hidden], html[data-uplift] .u-home [hidden], html[data-uplift] .u-today [hidden] { display: none !important; }
html[data-uplift] .u-vw-form input[type=text] { border: 1.5px solid var(--grey); border-radius: 8px; padding: 6px 10px; font: 500 12.5px Inter, sans-serif; min-width: 180px; }
html[data-uplift] .u-vw-form label { font-size: 11.5px; color: var(--label); display: inline-flex; gap: 4px; align-items: center; }
@media (pointer: coarse) { html[data-uplift] .u-vw { min-height: 44px; } }

/* Home hierarchy */
html[data-uplift] .u-home { margin-bottom: 14px; }
html[data-uplift] .u-focus { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
html[data-uplift] .u-fc { display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; border: 1.5px solid var(--grey); background: #fff; color: var(--navy); text-decoration: none; min-height: 36px; }
html[data-uplift] .u-fc b { font-size: 15px; font-weight: 800; }
html[data-uplift] .u-fc.y { background: var(--watch-bg); border-color: var(--watch-bd); color: var(--watch-tx); }
html[data-uplift] .u-fc.r { border-color: var(--red); color: var(--risk-tx); }
html[data-uplift] .u-fc.w { border-color: var(--watch-bd); }
html[data-uplift] .u-fc.ok { border-color: var(--good-bd); color: var(--good-tx); background: var(--good-bg); }
html[data-uplift] .u-hero { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
html[data-uplift] .u-hc { padding: 14px 16px; border-top: 3px solid var(--blue); min-height: 150px; }
html[data-uplift] .u-hc .t { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html[data-uplift] .u-hc .v { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--navy); }
html[data-uplift] .u-hc .fn, html[data-uplift] .u-st .fn, html[data-uplift] .u-today .fn { font-size: 11px; color: var(--label); margin-top: 6px; }
html[data-uplift] .u-hc.rev { background: var(--navy); color: #fff; }
html[data-uplift] .u-hc.rev .t, html[data-uplift] .u-hc.rev .v { color: #fff; }
html[data-uplift] .u-hc.rev .fn { color: #9ccbe8; }
html[data-uplift] .u-hc .pace { margin-top: 8px; font-size: 11.5px; color: #cfe6f5; } html[data-uplift] .u-hc .pace b { color: #fff; }
html[data-uplift] .u-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; border-radius: 20px; padding: 2px 8px; }
html[data-uplift] .u-delta.up { background: var(--good-bg); color: var(--good-tx); } html[data-uplift] .u-delta.dn { background: var(--risk-bg); color: var(--risk-tx); }
html[data-uplift] .u-hc.rev .u-delta.up { background: rgba(19,165,56,.25); color: #b9f5c9; } html[data-uplift] .u-hc.rev .u-delta.dn { background: rgba(227,30,36,.28); color: #ffc9c9; }
html[data-uplift] .u-pbar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); margin-top: 6px; overflow: visible; }
html[data-uplift] .u-pbar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
html[data-uplift] .u-pbar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--yellow); }
html[data-uplift] .u-pbar.l { background: #E9EEF3; } html[data-uplift] .u-pbar.l i { background: var(--blue); }
html[data-uplift] .u-spark { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 10px; }
html[data-uplift] .u-spark i { flex: 1; background: rgba(0,174,239,.35); border-radius: 3px 3px 0 0; } html[data-uplift] .u-spark i.on { background: var(--blue); }
html[data-uplift] .u-stats { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-uplift] .u-st { flex: 1 1 150px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; }
html[data-uplift] .u-st .v { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
html[data-uplift] .u-st .lbl { font-size: 9.5px !important; } html[data-uplift] .u-st .fn { margin-top: 1px; }
html[data-uplift] .u-skel { background: linear-gradient(90deg,#EEF2F7,#F7F9FC,#EEF2F7); background-size: 200% 100%; animation: u-sk 1.2s linear infinite; border-radius: 6px; height: 14px; margin: 6px 0; }
html[data-uplift] .u-skel.w60 { width: 60%; } html[data-uplift] .u-skel.h40 { height: 40px; }
@keyframes u-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { html[data-uplift] .u-skel { animation: none; } }
@media (max-width: 900px) { html[data-uplift] .u-hero { grid-template-columns: 1fr; } }

/* Today block */
html[data-uplift] .u-today { padding: 14px 16px; margin-bottom: 14px; border-top: 3px solid var(--yellow); }
html[data-uplift] .u-today-h { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
html[data-uplift] .u-today-h .t { font-size: 15px; font-weight: 800; color: var(--navy); }
html[data-uplift] .u-today-b { display: flex; gap: 8px; }
html[data-uplift] .u-today-b .btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }
html[data-uplift] .u-today-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
html[data-uplift] .u-today-s .lbl { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } html[data-uplift] .u-today-s .lbl a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--blue); text-decoration: none; }
html[data-uplift] .u-today-r { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #EEF2F7; font-size: 12.5px; }
html[data-uplift] .u-today-r > div { flex: 1; min-width: 0; } html[data-uplift] .u-today-r b { color: var(--navy); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html[data-uplift] .u-today-r small { color: var(--label); font-size: 11px; display: block; }
@media (max-width: 720px) { html[data-uplift] .u-today-b { width: 100%; } html[data-uplift] .u-today-b .btn { flex: 1; justify-content: center; } }

/* Reports: chart/table toggles */
html[data-uplift] .u-chartbox { position: relative; height: 260px; }
html[data-uplift] .u-chartbox.sm { height: 220px; }
html[data-uplift] .u-tv { display: flex; flex-direction: column; gap: 9px; }
html[data-uplift] .u-tvr { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 12px; }
html[data-uplift] .u-tvr .n { text-align: right; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
html[data-uplift] .u-tbar { position: relative; height: 14px; background: #E9EEF3; border-radius: 4px; }

/* ===================== HS-207 Wave 3: bell · boards · skeletons · empty states · record links ===================== */
html[data-uplift] .u-bellrow { display: flex; gap: 6px; align-items: stretch; }
html[data-uplift] .u-bellrow .u-search { flex: 1; min-width: 0; }
html[data-uplift] .u-bell { position: relative; flex: 0 0 38px; width: 38px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border-radius: 8px; cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
html[data-uplift] .u-bell:hover, html[data-uplift] .u-bell.has { color: #fff; background: rgba(0,174,239,.18); }
html[data-uplift] .u-bell:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
html[data-uplift] .u-bell-n { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 800 10px/17px Inter, sans-serif; text-align: center; }
html[data-uplift] .u-bell-panel { position: fixed; z-index: 1200; top: 64px; left: 236px; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100vh - 80px); background: #fff; border: 1px solid var(--grey); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,47,108,.18); display: flex; flex-direction: column; overflow: hidden; }
html[data-uplift] .u-bell-panel[hidden] { display: none; }
@media (max-width: 720px) { html[data-uplift] .u-bell-panel { left: 8px; right: 8px; width: auto; top: 58px; } }
@media (min-width: 721px) and (max-width: 1024px) { html[data-uplift] .u-bell-panel { left: 72px; } }
html[data-uplift] .u-sp { flex: 1; }
html[data-uplift] .u-bell-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--grey); }
html[data-uplift] .u-bell-h b { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); }
html[data-uplift] .u-bell-h .u-badge { position: static; }
html[data-uplift] .u-link { border: 0; background: none; color: var(--blue); font: 700 11.5px Inter, sans-serif; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
html[data-uplift] .u-link:hover { background: #EAF7FE; }
html[data-uplift] .u-x { border: 0; background: none; color: var(--label); cursor: pointer; font-size: 15px; width: 30px; height: 30px; border-radius: 6px; }
html[data-uplift] .u-x:hover { background: var(--bg); color: var(--navy); }
html[data-uplift] .u-bell-l { overflow: auto; }
html[data-uplift] .u-bell-i { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--grey); text-decoration: none; color: var(--text); }
html[data-uplift] .u-bell-i:hover { background: #F7FAFC; }
html[data-uplift] .u-bell-i.un { background: #F0F7FF; }
html[data-uplift] .u-bell-i.un .u-bell-t b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 1px; }
html[data-uplift] .u-bell-ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
html[data-uplift] .u-bell-t { flex: 1; min-width: 0; }
html[data-uplift] .u-bell-t b { display: block; font-size: 12.5px; font-weight: 700; }
html[data-uplift] .u-bell-t small { display: block; font-size: 11px; color: var(--label); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-uplift] .u-bell-f, html[data-uplift] .u-bell-e { font-size: 10.5px; color: var(--label); padding: 7px 12px; border-top: 1px solid var(--grey); }
html[data-uplift] .u-bell-e { color: #991b1b; border-top: 0; }
html[data-uplift] .u-empty { padding: 26px 14px; text-align: center; color: var(--label); font-size: 12.5px; }
html[data-uplift] .u-empty i { display: block; font-size: 28px; color: #B7C4D2; margin-bottom: 6px; }
html[data-uplift] .u-empty b { display: block; color: var(--navy); font-size: 13px; margin-bottom: 2px; }
/* boards */
html[data-uplift] .u-boardseg { margin-left: 10px; vertical-align: middle; }
html[data-uplift] .u-boardseg button i { font-size: 12px; vertical-align: -1px; }
html[data-uplift] .u-boardhost { overflow-x: auto; padding-bottom: 6px; }
html[data-uplift] .u-board { display: flex; gap: 10px; align-items: flex-start; min-width: min-content; }
html[data-uplift] .u-col { flex: 0 0 236px; width: 236px; background: var(--bg); border: 1px solid var(--grey); border-radius: 10px; display: flex; flex-direction: column; max-height: 70vh; }
html[data-uplift] .u-col.esc { border-top: 3px solid var(--red); } html[data-uplift] .u-col.close { border-top: 3px solid var(--green); }
html[data-uplift] .u-col-h { display: flex; align-items: center; gap: 6px; padding: 9px 10px 7px; }
html[data-uplift] .u-col-h b { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--navy); flex: 1; min-width: 0; }
html[data-uplift] .u-col-n { font-size: 10.5px; font-weight: 800; background: #fff; border: 1px solid var(--grey); border-radius: 10px; padding: 0 7px; color: var(--label); }
html[data-uplift] .u-col-b { overflow: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
html[data-uplift] .u-col-empty, html[data-uplift] .u-col-more { font-size: 11px; color: var(--label); text-align: center; padding: 10px 0; }
html[data-uplift] .u-cardk { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--grey); border-left: 3px solid var(--blue); border-radius: 8px; padding: 8px 9px; cursor: pointer; font: inherit; color: var(--text); text-decoration: none; }
html[data-uplift] .u-cardk:hover { box-shadow: 0 2px 8px rgba(0,47,108,.10); border-color: #B7C4D2; border-left-color: var(--blue); }
html[data-uplift] .u-cardk:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
html[data-uplift] .u-cardk.over { border-left-color: var(--red); } html[data-uplift] .u-cardk.queue { border-left-color: var(--yellow); }
html[data-uplift] .u-ck-t { display: flex; gap: 6px; align-items: flex-start; } html[data-uplift] .u-ck-t b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-uplift] .u-cardk small { display: block; font-size: 10.5px; color: var(--label); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-uplift] .u-ck-f { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 10.5px; color: var(--label); }
html[data-uplift] .u-ck-f .u-av { width: 18px; height: 18px; font-size: 8px; }
html[data-uplift] .u-late { color: var(--red); font-weight: 800; }
html[data-uplift] .u-ck-a { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; } html[data-uplift] .u-ck-a:empty { display: none; }
html[data-uplift] .u-ck-a .btn { padding: 4px 8px; font-size: 10.5px; min-height: 28px; }
@media (pointer: coarse) { html[data-uplift] .u-cardk { padding: 10px; } html[data-uplift] .u-col { flex-basis: 260px; width: 260px; } }
/* skeleton in place of "Loading…" */
html[data-uplift] .card.u-loading { color: transparent; }
/* record link on customer cells */
html[data-uplift] .u-rec { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: #8595a4; margin-left: 4px; vertical-align: middle; text-decoration: none; font-size: 13px; }
html[data-uplift] .u-rec:hover { background: #EAF7FE; color: var(--navy); }
html[data-uplift] .u-rec:focus-visible { outline: 2px solid var(--blue); }
@media (pointer: coarse) { html[data-uplift] .u-rec { width: 32px; height: 32px; } }
html[data-uplift] .empty { padding: 30px 14px; } html[data-uplift] .empty i { color: #B7C4D2; } html[data-uplift] .empty-t { color: var(--navy); font-weight: 800; }
