/* Home (window.VestedHome, static/shared/workspaceHome.js). docs/systems/ADVISER_HOME.md.
   Home's own classes are wh-; the dashboard tiles keep their dash- classes from the
   CRM, so those rules are scoped under .wh here and cannot reach any other Platform
   page. Colours carry the CRM's values as fallbacks (the Platform does not define
   all of the CRM's variables); --brand-* still wins, so a firm's theme applies.

   Layout (2026-10-17 redesign): a dark band (greeting, search, overnight markets),
   then two columns — doing on the left, reading on the right — then the admin
   checks. Colour means something: red, amber and blue only on things that need
   you; everything else stays calm. */

.wh {
  --wh-navy: var(--brand-ink, #0B2339);
  --wh-teal: var(--brand-accent, #008D95);
  --wh-border: #E4E5E3;
  --wh-border-strong: #CFD0CC;
  --wh-fill: #F1F2F2;
  --wh-ink-2: #56636E;
  --wh-ink-3: #848484;
  --wh-red: #c0392b;     --wh-red-soft: #f9e6e3;
  --wh-amber: #B86E00;   --wh-amber-soft: #fbefd9;
  --wh-green: #1c8a4e;   --wh-green-soft: #e3f3ea;
  --wh-blue: #2a7fa8;    --wh-blue-soft: #e2eff6;
  --wh-plum: #8a4f86;    --wh-plum-soft: #f3e8f2;
  /* The band is the portal's navy (the sidebar's colour), not a teal-green
     (Stuart, 2026-10-17: "gone too green"). */
  --wh-band: var(--brand-ink, #0B2339); --wh-band-2: #16304A;
  --wh-band-ink: #F1F5F9; --wh-band-muted: #A7B6C6;
  --wh-band-up: #7fe0a8; --wh-band-down: #ff9a8c;
  max-width: 1240px; padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 16px;
  color: var(--wh-navy); font-family: var(--brand-font-body, 'DM Sans', -apple-system, sans-serif);
}
.wh-num, .wh-tick-v, .wh-tick-c, .wh-kpi-v { font-variant-numeric: tabular-nums; }
.wh-red { color: var(--wh-red); }
.wh-amber { color: var(--wh-amber); }
.wh-up { color: var(--wh-green); }
.wh-down { color: var(--wh-red); }
.wh-muted { font-size: 12.5px; color: var(--wh-ink-2); margin: 2px 0 0; }
.wh-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wh-ink-3); }
.wh-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--wh-teal); background: var(--wh-teal); color: #fff;
}
.wh-btn:hover { filter: brightness(.95); }
.wh-btn-quiet { background: #fff; color: var(--wh-navy); border-color: var(--wh-border-strong); }
.wh-link { font: inherit; font-size: 12.5px; background: none; border: 0; padding: 0; color: var(--wh-teal); text-decoration: underline; cursor: pointer; }
.wh-icon-btn { background: #fff; border: 1px solid var(--wh-border-strong); border-radius: 7px; padding: 5px 9px; cursor: pointer; color: var(--wh-navy); font: inherit; }
.wh-grow { flex: 1; }
.wh-click { cursor: pointer; }
.wh-click:focus-visible { outline: 2px solid var(--wh-teal); outline-offset: 2px; }

/* ── The band ─────────────────────────────────────────────────────────────── */
.wh-band {
  background: linear-gradient(160deg, var(--wh-band) 0%, var(--wh-band-2) 100%); color: var(--wh-band-ink);
  border-radius: 14px; padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 14px;
}
.wh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.wh-top-l { min-width: 0; }
.wh-crumb { font-size: 12.5px; color: var(--wh-band-muted); }
.wh-title { font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 2px 0 0; color: var(--wh-band-ink); }
.wh-summary { font-size: 13.5px; color: var(--wh-band-muted); margin-top: 4px; }
.wh-summary b { color: var(--wh-band-ink); font-weight: 600; }
.wh-band .dash-scope { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; }
.wh-band .dash-scope button { background: transparent; border: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--wh-band-muted); padding: 6px 13px; cursor: pointer; }
.wh-band .dash-scope button.on { background: var(--wh-band-ink); color: var(--wh-band); }
.wh-band .dash-scope button + button { border-left: 1px solid rgba(255,255,255,.25); }
.wh-band-muted { color: var(--wh-band-muted); font-size: 13px; margin: 0; }
.wh-link-band { color: var(--wh-band-ink); }

/* Search, inside the band */
.wh-search { display: flex; flex-direction: column; gap: 6px; }
.wh-search-box {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,.16); border-radius: 10px;
  padding: 0 12px; background: rgba(255,255,255,.08); color: var(--wh-band-muted);
}
.wh-search-box:focus-within { border-color: #fff; background: #fff; color: var(--wh-ink-3); }
.wh-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--wh-band-ink); padding: 10px 0; outline: none; }
.wh-search-box input::placeholder { color: var(--wh-band-muted); }
.wh-search-box:focus-within input { color: var(--wh-navy); }
.wh-search-box kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 0 5px; }
.wh-results { background: #fff; border-radius: 10px; padding: 4px; color: var(--wh-navy); }
.wh-results:empty { display: none; }
.wh-res {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: none; border: 0; border-radius: 8px; padding: 7px 8px; color: var(--wh-navy); cursor: pointer;
}
.wh-res:hover, .wh-res:focus-visible { background: var(--wh-fill); outline: none; }
.wh-res-locked { cursor: default; }
.wh-res-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wh-fill); font-size: 11.5px; font-weight: 700; }
.wh-res-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13.5px; }
.wh-res-txt span:not(.wh-chip) { font-size: 12.5px; color: var(--wh-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-res-go { font-size: 12px; color: var(--wh-ink-2); white-space: nowrap; }
.wh-res-msg, .wh-res-note { font-size: 13px; color: var(--wh-ink-2); padding: 6px 8px; }
.wh-chip { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.wh-chip-client { background: rgba(0,141,149,.12); color: var(--wh-teal); }
.wh-chip-lead { background: var(--wh-amber-soft); color: #9a5f0c; }

/* Overnight markets */
.wh-mkt { display: flex; flex-direction: column; gap: 8px; }
.wh-mkt-h { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wh-band-muted); }
.wh-mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.wh-tick { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wh-tick-skel { height: 82px; }
.wh-tick-n { font-size: 11.5px; color: var(--wh-band-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-tick-v { font-size: 14px; font-weight: 600; color: var(--wh-band-ink); }
.wh-tick-c { font-size: 12px; font-weight: 600; color: var(--wh-band-muted); }
.wh-band .wh-up { color: var(--wh-band-up); }
.wh-band .wh-down { color: var(--wh-band-down); }
.wh-spark { width: 100%; height: 18px; margin-top: 3px; display: block; }
.wh-mkt-foot { font-size: 12px; color: var(--wh-band-muted); }
.wh-mkt-foot b { color: var(--wh-band-ink); font-weight: 600; }

/* ── Columns and cards ────────────────────────────────────────────────────── */
.wh-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wh-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wh-card { background: #fff; border: 1px solid var(--wh-border); border-radius: 12px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wh-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wh-card-h h2 { margin: 0; font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--wh-navy); }
.wh-card-meta { font-size: 12px; color: var(--wh-ink-3); display: inline-flex; align-items: center; gap: 10px; }
.wh-stamp { font-size: 11.5px; color: var(--wh-ink-3); }
.wh-skel-rows { display: flex; flex-direction: column; gap: 10px; }
.wh .dash-skel { background: var(--wh-fill); border-radius: 5px; height: 11px; }
.wh .dash-skel.big { height: 26px; width: 58%; margin-bottom: 9px; }

.wh-tk { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: 11.5px; background: var(--wh-fill); border: 1px solid var(--wh-border); border-radius: 5px; padding: 0 5px; color: var(--wh-navy); white-space: nowrap; }
.wh-pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.wh-pill-red, .wh-pill-urgent { background: var(--wh-red-soft); color: var(--wh-red); }
.wh-pill-warn { background: var(--wh-amber-soft); color: var(--wh-amber); }
.wh-pill-info { background: var(--wh-blue-soft); color: var(--wh-blue); }
.wh-pill-neutral { background: var(--wh-fill); color: var(--wh-ink-2); }
.wh-why { font-size: 12px; color: var(--wh-ink-2); }
.wh-why-in { font-size: 12px; color: var(--wh-ink-3); }

/* Live feed */
.wh-feed { display: flex; flex-direction: column; }
.wh-fd { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 6px; border-top: 1px solid var(--wh-border); border-radius: 6px; }
.wh-fd:first-child { border-top: 0; }
.wh-fd.wh-click:hover { background: var(--wh-fill); }
.wh-fd-t { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 7px; justify-self: start; white-space: nowrap; background: var(--wh-fill); color: var(--wh-ink-2); }
.wh-fd-t.k-note { background: var(--wh-plum-soft); color: var(--wh-plum); }
.wh-fd-t.k-new { background: var(--wh-green-soft); color: var(--wh-green); }
.wh-fd-t.k-upd { background: var(--wh-blue-soft); color: var(--wh-blue); }
.wh-fd-t.k-deal { background: var(--wh-amber-soft); color: var(--wh-amber); }
.wh-fd-t.k-res { background: rgba(0,141,149,.12); color: var(--wh-teal); }
.wh-fd-t.k-ann { background: var(--wh-red-soft); color: var(--wh-red); }
.wh-fd-x { font-size: 13.5px; min-width: 0; }
.wh-fd-x b { font-weight: 600; }
.wh-fd-x > span { display: block; font-size: 12px; color: var(--wh-ink-2); margin-top: 2px; }
.wh-fd-w { font-size: 11.5px; color: var(--wh-ink-3); white-space: nowrap; }

/* Figures */
.wh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.wh-kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wh-kpi { border: 1px solid var(--wh-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; color: inherit; text-decoration: none; }
a.wh-kpi-link:hover { border-color: var(--wh-teal); }
.wh-kpi-skel { height: 76px; background: var(--wh-fill); border-color: transparent; }
.wh-kpi-l { font-size: 11.5px; color: var(--wh-ink-2); }
.wh-kpi-v { font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-size: 24px; line-height: 1.1; color: var(--wh-navy); }
.wh-kpi-v.wh-red { color: var(--wh-red); }
.wh-kpi-v.wh-amber { color: var(--wh-amber); }
.wh-kpi-s { font-size: 11.5px; color: var(--wh-ink-3); }
.wh-bar { display: block; height: 6px; background: var(--wh-fill); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.wh-bar b { display: block; height: 100%; background: var(--wh-teal); border-radius: 3px; }

/* Tables */
.wh-scroll { overflow-x: auto; }
.wh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wh-table th { text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--wh-ink-3); font-weight: 700; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--wh-border); }
.wh-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--wh-border); vertical-align: top; }
.wh-table tr:last-child td { border-bottom: 0; }
.wh-table .r { text-align: right; padding-right: 0; }
.wh-table tr.wh-click:hover td { background: var(--wh-fill); }

/* Morning Note */
.wh-note { gap: 9px; border-left: 4px solid var(--wh-plum); }
.wh-note .wh-kicker { color: var(--wh-plum); }
.wh-note-title { font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-size: 19px; line-height: 1.25; text-wrap: balance; }
.wh-note-pts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--wh-navy); }
.wh-note-btn { align-self: flex-start; margin-top: 2px; }

/* Overnight research (BROKER_RESEARCH.md §8), redesigned 2026-10-17: stock name, a solid
   up/down chip, a teal holders badge and a navy target stand out; broker and time are quiet. */
.wh-rs { display: flex; flex-direction: column; min-width: 0; }
.wh-rs-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--wh-border); cursor: pointer; }
.wh-rs-row:first-child { border-top: 0; padding-top: 0; }
.wh-rs-main { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; }
.wh-rs-name { font-size: 13.5px; font-weight: 700; color: var(--wh-navy); min-width: 0; }
.wh-rs-chip { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; border: 1px solid var(--wh-border-strong); color: var(--wh-navy); background: #fff; }
.wh-rs-chip-up { background: #1c8a4e; border-color: #1c8a4e; color: #fff; }
.wh-rs-chip-down { background: #c0392b; border-color: #c0392b; color: #fff; }
.wh-rs-chip-buy { background: #e3f3ea; border-color: #a9d8bd; color: #156b3c; }
.wh-rs-chip-sell { background: #f9e6e3; border-color: #e8b4ad; color: #a3301f; }
.wh-rs-hold { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: var(--wh-teal); color: #fff; }
.wh-rs-tp { font-size: 12.5px; font-weight: 600; color: var(--wh-navy); white-space: nowrap; }
.wh-rs-sub { min-width: 0; font-size: 11.5px; line-height: 1.45; color: var(--wh-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-rs-b { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wh-ink-3); }
.wh-rs-quiet { min-width: 0; display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--wh-border); }
.wh-rs-q { min-width: 0; font-size: 12px; color: var(--wh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; padding: 2px 0; }
.wh-rs-q:hover, .wh-rs-row:hover .wh-rs-name { text-decoration: underline; }
.wh-rs-foot { font-size: 11px; color: var(--wh-ink-3); margin: 10px 0 0; }
.wh-rs-drawer { height: auto; max-height: min(88vh, 1000px); width: min(640px, 100%); }
.wh-rs-body { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--wh-navy, #0B2339); }
.wh-rs-body p { margin: 0; }

/* Big moves in your holdings */
.wh-moves { display: flex; flex-direction: column; }
.wh-mv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 68px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--wh-border); }
.wh-mv:first-child { border-top: 0; padding-top: 0; }
.wh-mv-x { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wh-mv-n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wh-mv-s { font-size: 11.5px; color: var(--wh-ink-2); white-space: nowrap; flex: none; }
.wh-mv-x .wh-pill { flex: none; cursor: help; }
.wh-mv-p { font-size: 12.5px; font-weight: 700; text-align: right; }
.wh-mv-px { font-size: 13.5px; font-weight: 600; color: var(--wh-navy); text-align: right; }

/* This week */
.wh-cal { display: flex; flex-direction: column; }
.wh-cal-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--wh-border); font-size: 13px; }
.wh-cal-row:first-child { border-top: 0; }
.wh-cal-d { font-size: 11.5px; font-weight: 700; color: var(--wh-ink-3); padding-top: 1px; }
.wh-cal-k { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--wh-border-strong); }
.wh-cal-k.k-deal { background: var(--wh-amber); }
.wh-cal-k.k-results { background: var(--wh-blue); }
.wh-cal-k.k-exdiv { background: var(--wh-green); }
.wh-cal-k.k-economy { background: var(--wh-plum); }

/* Quick links */
.wh-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wh-lk { display: flex; gap: 9px; align-items: center; border: 1px solid var(--wh-border); border-radius: 9px; padding: 8px 10px; color: var(--wh-navy); text-decoration: none; min-width: 0; }
.wh-lk:hover { border-color: var(--wh-teal); }
.wh-lk i { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; background: rgba(0,141,149,.12); color: var(--wh-teal); }
.wh-lk span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.wh-lk small { font-size: 11.5px; color: var(--wh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-lked { display: flex; flex-direction: column; gap: 8px; }
.wh-lked-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 6px; }
.wh-lked-row input { font: inherit; font-size: 13px; border: 1px solid var(--wh-border-strong); border-radius: 7px; padding: 6px 8px; min-width: 0; }
.wh-lked-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Admin checks ─────────────────────────────────────────────────────────── */
.wh-checks { background: transparent; }
.wh-checks-sub { margin-top: -6px; }
.wh-acts { display: flex; flex-direction: column; }
.wh-act { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--wh-border); color: inherit; text-decoration: none; border-radius: 6px; }
.wh-act:first-child { border-top: 0; }
a.wh-act:hover { background: #fff; }
.wh-sev { width: 6px; height: 32px; border-radius: 3px; background: var(--wh-border-strong); }
.wh-sev-r { background: var(--wh-red); }
.wh-sev-a { background: var(--wh-amber); }
.wh-act-x { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.wh-act-x b { font-weight: 600; }
.wh-act-x span { font-size: 12px; color: var(--wh-ink-2); }
.wh-act-n { font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-size: 24px; line-height: 1; color: var(--wh-ink-3); }
.wh-sev-t-r { color: var(--wh-red); }
.wh-sev-t-a { color: var(--wh-amber); }
.wh-act-go { font-size: 12.5px; font-weight: 600; color: var(--wh-teal); border: 1px solid var(--wh-border-strong); border-radius: 7px; padding: 4px 10px; background: #fff; }
.wh-clear { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--wh-ink-2); }
.wh-ok-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--wh-green-soft); color: var(--wh-green); }
.wh-ok-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wh-showall { align-self: flex-start; }
.wh-allchecks { margin-top: 6px; }

/* The Morning Note reader, over Home */
.wh-reader-bd { position: fixed; inset: 0; z-index: 100060; background: rgba(11,35,57,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wh-reader { background: #fff; border-radius: 12px; width: min(820px, 100%); height: min(88vh, 1000px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.wh-reader-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--wh-border, #E4E5E3); color: #0B2339; }
.wh-reader-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* The board — the CRM dashboard's rules, scoped to Home ("Show all checks as tiles") */
.wh .section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: var(--wh-ink-3); }
.wh .placeholder { color: var(--wh-ink-3); font-size: 12.5px; text-align: center; padding: 1.4rem 1rem; border: 1px dashed var(--wh-border-strong); border-radius: 8px; }
.wh .placeholder i { font-size: 18px; display: block; margin-bottom: 6px; }
.wh .dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; margin-bottom: 20px; }
.wh .dash-tile { position: relative; display: block; background: #fff; border: 1px solid var(--wh-border);
  border-left: 4px solid #BFBAB0; border-radius: 12px; padding: 14px 16px 13px; text-decoration: none;
  color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
.wh a.dash-tile:hover { box-shadow: 0 3px 12px rgba(11,35,57,.09); transform: translateY(-1px); }
.wh .dash-tile-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.wh .dash-tile-head i { font-size: 15px; color: var(--wh-ink-3); flex: 0 0 auto; }
.wh .dash-tile-label { font-size: 12px; font-weight: 700; color: var(--wh-navy); line-height: 1.3; }
.wh .dash-value { font-size: 30px; font-weight: 700; line-height: 1; color: var(--wh-navy); letter-spacing: -.5px; }
.wh .dash-unit { font-size: 11.5px; font-weight: 600; color: var(--wh-ink-3); margin-left: 6px; }
.wh .dash-sub { margin-top: 7px; font-size: 11.5px; color: var(--wh-ink-2); line-height: 1.4; }
.wh .dash-go { position: absolute; top: 13px; right: 13px; font-size: 14px; color: var(--wh-border-strong); }
.wh a.dash-tile:hover .dash-go { color: var(--wh-teal); }
.wh .dash-tile.st-urgent  { border-left-color: var(--wh-red); }
.wh .dash-tile.st-urgent  .dash-value { color: var(--wh-red); }
.wh .dash-tile.st-warn    { border-left-color: var(--wh-amber); }
.wh .dash-tile.st-warn    .dash-value { color: var(--wh-amber); }
.wh .dash-tile.st-ok      { border-left-color: var(--wh-green); }
.wh .dash-tile.st-info    { border-left-color: var(--wh-teal); }
.wh .dash-tile.st-unknown .dash-value, .wh .dash-tile.st-unknown .dash-sub { color: var(--wh-ink-3); }
.wh .dash-group-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.wh .dash-group-head .section-label { white-space: nowrap; }
.wh .dash-group-rule { flex: 1; height: 1px; background: var(--wh-border); }

/* A toast for the call list's messages (the Platform has none of its own). */
.wh-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100080;
  background: #0B2339; color: #fff; border-radius: 8px; padding: 9px 16px; font: 600 13px/1.4 var(--brand-font-body, 'DM Sans', sans-serif);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); max-width: calc(100vw - 32px);
}
.wh-toast-err { background: var(--wh-red, #c0392b); }

@media (max-width: 1020px) {
  .wh-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .wh { padding: 64px 12px 32px; }
  .wh-band { padding: 16px 14px 14px; }
  .wh-title { font-size: 25px; }
  .wh-mkt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .wh-tick { padding: 7px 8px; }
  .wh-tick-v { font-size: 13px; }
  .wh-spark { display: none; }

  .wh-fd { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-fd-t { grid-column: 1 / -1; }
  .wh-links { grid-template-columns: minmax(0, 1fr); }
  .wh-lked-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-lked-row input[data-f="url"], .wh-lked-row input[data-f="note"] { grid-column: 1 / 2; }
  .wh .dash-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Corporate deals, compact for the right column (2026-10-18) */
.wh-dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.wh-dl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--wh-border); color: inherit; text-decoration: none; min-width: 0; }
a.wh-dl-link:hover .wh-dl-l { color: var(--wh-teal); }
.wh-dl-l { font-size: 12.5px; color: var(--wh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-dl-v { font-family: var(--brand-font-display, 'DM Serif Display', Georgia, serif); font-size: 18px; line-height: 1.1; color: var(--wh-navy); }
.wh-dl-v.wh-red { color: var(--wh-red); }
.wh-dl-v.wh-amber { color: var(--wh-amber); }
.wh-dlist { display: flex; flex-direction: column; }
.wh-ditem { padding: 8px 4px; border-top: 1px solid var(--wh-border); border-radius: 6px; }
.wh-ditem:first-child { border-top: 0; }
.wh-ditem:hover { background: var(--wh-fill); }
.wh-ditem-t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-ditem-s { font-size: 12px; color: var(--wh-ink-2); margin-top: 2px; }
@media (max-width: 420px) { .wh-dls { grid-template-columns: minmax(0, 1fr); } }
