/* hub.css: the Workplace Mindfulness hub design system (Hub Platform Phase 1,
 * 21 October 2026). The first part is the dashboard's own rules, all under
 * .dv2 (they were dashboard-v2.css, retired when the dashboard moved onto the
 * shared layout); the shared layer follows the "The hub design system" marker.
 */

/* ── The new dashboard (DASHBOARD_V2), 20 October 2026 ──────────────────────
 *
 * Loaded by views/dashboard-v2.ejs only. Every rule sits under .dv2, the
 * page's main column, so nothing here can reach the shared sidebar or any
 * other page. Tokens are the spec's section 4; components are ported from the
 * reference mock-up's inline styles into classes. Sizes that depend on the
 * data (bar heights, widths, marker positions) come from the generated classes
 * at the end, so the page carries no style attributes at all.
 */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins/Poppins-Bold.ttf') format('truetype'); }

.dv2 {
  --navy: #001445;
  --navy-2: #0B2A66;
  --teal: #3D9DA4;
  --teal-text: #2A7378;
  --teal-tint: #E3F2F3;
  --gold: #E8A24A;
  --amber-text: #8A4F12;
  --amber-tint: #FBEFD9;
  --green-text: #1F6B4A;
  --cream: #F7F4EC;
  --cream-line: #EADFC6;
  --ink: #2B3240;
  --grey: #6E7684;
  --grey-light: #8592B0;
  --line: #C9D3E6;
  --line-soft: #E3E7EF;
  --card-line: #DDE4F0;
  --ground: #F2F5FA;
  --white: #FFFFFF;
  --on-navy: #C9D3E6;
  /* Not in the spec's table: grey text on the page ground, the cream card or
     a grey pill fails contrast at 4.2:1, and the spec also asks for no
     contrast failures. 5.4:1 on ground and cream, 4.8:1 on line-soft. */
  --grey-strong: #5C6472;

  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  /* What the dashboard inherited from style.css's html and body until it moved
     onto the hub layout (21 October 2026), which loads no style.css. On the old
     page these change nothing. */
  font-size: 15px;
  line-height: normal;
}
.main-content.dv2 { padding: 28px 36px 40px; }
.dv2 *, .dv2 *::before, .dv2 *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dv2 .dv2-inner { max-width: 1280px; display: flex; flex-direction: column; gap: 24px; }
.dv2 a { color: var(--teal-text); text-decoration: none; }
.dv2 a:hover { color: var(--navy); }
.dv2 a:focus-visible, .dv2 .dv2-btn:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.dv2 .dv2-num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dv2 .dv2-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Preview banner and View as (admins only) */
.dv2 .dv2-preview { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--white); font-size: 13px; }
.dv2 .dv2-preview-people { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.dv2 .dv2-preview-people .dv2-on { color: var(--navy); font-weight: 600; }

/* Top bar */
.dv2 .dv2-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dv2 .dv2-top-text { display: flex; flex-direction: column; gap: 4px; }
.dv2 .dv2-dateline { font-size: 13px; color: var(--grey-strong); }
.dv2 .dv2-title { margin: 0; font-size: 26px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.dv2 .dv2-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dv2 .dv2-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font: 600 13px 'Poppins', system-ui, sans-serif; border: 1px solid transparent; }
.dv2 .dv2-btn-primary { background: var(--navy); color: var(--white); }
.dv2 .dv2-btn-primary:hover { background: var(--navy-2); color: var(--white); }
.dv2 .dv2-btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.dv2 .dv2-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Labels */
.dv2 .dv2-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); }
.dv2 .dv2-lbl--gold { color: var(--gold); }
.dv2 .dv2-lbl--muted { color: var(--grey-light); }
.dv2 .dv2-lbl--amber { color: var(--amber-text); }

/* Hero: year to date */
.dv2 .dv2-hero { background: var(--navy); color: var(--white); border-radius: 16px; padding: 28px 32px; position: relative; overflow: hidden; }
.dv2 .dv2-hero-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(201, 211, 230, 0.14); }
.dv2 .dv2-hero-circle--a { right: -120px; top: -160px; width: 420px; height: 420px; }
.dv2 .dv2-hero-circle--b { right: 40px; bottom: -220px; width: 380px; height: 380px; }
.dv2 .dv2-hero-cols { display: flex; flex-wrap: wrap; gap: 40px; position: relative; }
.dv2 .dv2-hero-col { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dv2 .dv2-hero-col--split { flex: 1 1 220px; padding-left: 32px; border-left: 1px solid rgba(201, 211, 230, 0.2); }
.dv2 .dv2-hero-col--side { flex: 0 1 220px; gap: 14px; padding-left: 32px; border-left: 1px solid rgba(201, 211, 230, 0.2); }
.dv2 .dv2-hero-num { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.dv2 .dv2-hero-target { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.dv2 .dv2-hero-target-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--on-navy); }
.dv2 .dv2-hero-note { font-size: 13px; color: var(--on-navy); }
.dv2 .dv2-hero-note--small { font-size: 12px; }
.dv2 .dv2-hero-sub { font-size: 11px; color: var(--grey-light); }
.dv2 .dv2-hero-strong { color: var(--white); font-weight: 600; }
.dv2 .dv2-hero a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 2px; }
.dv2 .dv2-hero a:hover { color: var(--white); }
.dv2 .dv2-stat { display: flex; flex-direction: column; gap: 2px; }
.dv2 .dv2-stat-num { font-size: 22px; font-weight: 600; }
.dv2 .dv2-watch { font-size: 12px; font-weight: 500; color: var(--gold); }
.dv2 .dv2-track--hero { height: 8px; border-radius: 4px; background: rgba(201, 211, 230, 0.18); position: relative; }
.dv2 .dv2-fill--hero { height: 8px; border-radius: 4px; background: var(--gold); }
.dv2 .dv2-marker--hero { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--white); }

/* Your commission (sales view): the navy hero, three figures, a bar, and
   lists that open on click. */
.dv2 .dv2-comm { display: flex; flex-direction: column; gap: 24px; }
.dv2 .dv2-comm-lbl { color: var(--gold); position: relative; }
.dv2 .dv2-comm-empty { margin: 0; font-size: 17px; color: var(--white); position: relative; }
.dv2 .dv2-comm-col--main { flex: 1.3 1 300px; }
.dv2 .dv2-comm-label { font-size: 14px; color: var(--on-navy); }
.dv2 .dv2-comm-big { font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.dv2 .dv2-comm-mid { font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.dv2 .dv2-comm-split { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; padding-top: 10px; border-top: 1px solid rgba(201, 211, 230, 0.2); }
.dv2 .dv2-comm-split .dv2-hero-sub { flex-basis: 100%; }
.dv2 .dv2-comm-list { margin-top: 4px; }
.dv2 .dv2-comm-list summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--gold); list-style-position: inside; }
.dv2 .dv2-comm-list summary:hover { color: var(--white); }
.dv2 .dv2-comm-list[open] summary { margin-bottom: 6px; }
.dv2 .dv2-comm .dv2-comm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(201, 211, 230, 0.16); color: var(--white); text-decoration: none; }
.dv2 .dv2-comm .dv2-comm-row:hover { color: var(--white); background: rgba(201, 211, 230, 0.06); }
.dv2 .dv2-comm-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv2 .dv2-comm-row-title { font-size: 14px; font-weight: 600; }
.dv2 .dv2-comm-row-detail { font-size: 12px; color: var(--on-navy); }
.dv2 .dv2-comm-row-detail--watch { color: var(--gold); }
.dv2 .dv2-comm-row-amt { font-size: 14px; font-weight: 600; white-space: nowrap; }
.dv2 .dv2-comm-barblock { display: flex; flex-direction: column; gap: 10px; position: relative; }
.dv2 .dv2-comm-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--on-navy); }
.dv2 .dv2-comm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dv2 .dv2-comm-key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; box-sizing: border-box; }
.dv2 .dv2-comm-key--paid, .dv2 .dv2-comm-seg--paid { background: var(--teal); }
.dv2 .dv2-comm-key--due, .dv2 .dv2-comm-seg--due { background: var(--gold); }
.dv2 .dv2-comm-key--waiting, .dv2 .dv2-comm-seg--waiting { border: 1px dashed var(--on-navy); }
.dv2 .dv2-comm-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(201, 211, 230, 0.12); }
.dv2 .dv2-comm-seg { height: 12px; box-sizing: border-box; flex-shrink: 1; min-width: 0; }

/* Grids */
.dv2 .dv2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dv2 .dv2-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dv2 .dv2-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.dv2 .dv2-span-3 { grid-column: span 3; }
.dv2 .dv2-span-2 { grid-column: span 2; }

/* Cards */
.dv2 .dv2-card { background: var(--white); border: 1px solid var(--card-line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dv2 .dv2-card--tight { gap: 14px; }
.dv2 .dv2-card--cream { background: var(--cream); border-color: var(--cream-line); }
.dv2 .dv2-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.dv2 .dv2-card-titles { display: flex; flex-direction: column; gap: 2px; }
.dv2 .dv2-card-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.dv2 .dv2-card-sub { font-size: 13px; font-weight: 400; color: var(--grey); }
.dv2 .dv2-head-link { font-size: 12px; font-weight: 600; }
.dv2 .dv2-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dv2 .dv2-pill--good { color: var(--green-text); background: var(--teal-tint); }
.dv2 .dv2-pill--watch { color: var(--amber-text); background: var(--amber-tint); }
.dv2 .dv2-pill--neutral { color: var(--grey-strong); background: var(--line-soft); }
.dv2 a.dv2-pill--watch { color: var(--amber-text); }
.dv2 a.dv2-pill--watch:hover { color: var(--navy); }

/* Month and quarter figures */
.dv2 .dv2-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dv2 .dv2-figs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv2 .dv2-fig { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--navy); padding-top: 10px; min-width: 0; }
.dv2 .dv2-fig--teal { border-top-color: var(--teal); }
.dv2 .dv2-fig--gold { border-top-color: var(--gold); }
.dv2 .dv2-fig-label { font-size: 12px; color: var(--grey); }
.dv2 .dv2-fig-num { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.dv2 .dv2-fig-vs { font-size: 12px; color: var(--grey); }
.dv2 .dv2-fig-vs--good { color: var(--green-text); }
.dv2 .dv2-fig-note { font-size: 11px; color: var(--grey); }
/* The Business costs button under the month's net profit (26 November 2026). */
.dv2 .dv2-fig-costs { display: inline-flex; align-self: flex-start; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--teal); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; background: var(--white); }
.dv2 .dv2-fig-costs:hover, .dv2 .dv2-fig-costs:focus-visible { background: var(--teal); color: var(--white); }
.dv2 .dv2-barblock { display: flex; flex-direction: column; gap: 6px; }
.dv2 .dv2-barline { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--grey); }
.dv2 .dv2-barline-result { font-weight: 600; }
.dv2 .dv2-barline-result--good { color: var(--green-text); }
.dv2 .dv2-track { height: 6px; border-radius: 3px; background: var(--line-soft); position: relative; }
.dv2 .dv2-fill { height: 6px; border-radius: 3px; background: var(--teal); }
.dv2 .dv2-marker { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--navy); }

/* Trend chart */
.dv2 .dv2-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--grey); }
.dv2 .dv2-legend-item { display: flex; align-items: center; gap: 6px; }
.dv2 .dv2-key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--navy); }
.dv2 .dv2-key--teal { background: var(--teal); }
.dv2 .dv2-key-line { width: 14px; height: 0; border-top: 2px dashed var(--gold); display: inline-block; }
.dv2 .dv2-chart { position: relative; height: 200px; padding-top: 16px; }
.dv2 .dv2-cols { display: flex; align-items: flex-end; gap: 14px; height: 184px; }
.dv2 .dv2-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dv2 .dv2-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; position: relative; }
.dv2 .dv2-bar { width: 14px; border-radius: 3px 3px 0 0; background: var(--navy); }
.dv2 .dv2-bar--gp { background: var(--teal); }
.dv2 .dv2-bar--current { outline: 2px solid var(--gold); outline-offset: 2px; }
.dv2 .dv2-bar--future { background: transparent; border: 1px dashed var(--line); border-bottom: 0; }
.dv2 .dv2-target-tick { position: absolute; left: -4px; right: -4px; height: 0; border-top: 2px dashed var(--gold); }
.dv2 .dv2-month { font-size: 11px; color: var(--grey); }
.dv2 .dv2-month--current { color: var(--navy); font-weight: 600; }
.dv2 .dv2-month--future { color: var(--grey); }
.dv2 .dv2-trend-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: var(--grey); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.dv2 .dv2-strong { color: var(--navy); font-weight: 600; }

/* Team table */
.dv2 .dv2-table-wrap { overflow-x: auto; }
.dv2 .dv2-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.dv2 .dv2-table th { text-align: right; padding: 6px 0 6px 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); }
.dv2 .dv2-table th.dv2-th-left { text-align: left; padding-left: 0; }
.dv2 .dv2-row { border-top: 1px solid var(--line-soft); }
.dv2 .dv2-row:hover { background: var(--ground); }
.dv2 .dv2-table td { padding: 12px 0 12px 12px; vertical-align: top; text-align: right; }
.dv2 .dv2-table td.dv2-td-left { text-align: left; padding-left: 0; vertical-align: middle; }
.dv2 .dv2-person { display: flex; align-items: center; gap: 10px; }
.dv2 .dv2-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--white); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.dv2 .dv2-avatar--teal { background: var(--teal-text); }
.dv2 .dv2-avatar--gold { background: var(--gold); color: var(--navy); }
.dv2 .dv2-avatar--grey { background: var(--grey); }
.dv2 .dv2-person-text { display: flex; flex-direction: column; }
.dv2 .dv2-person-name { font-weight: 600; color: var(--navy); }
.dv2 .dv2-person-sub, .dv2 .dv2-cell-sub { font-size: 11px; color: var(--grey); }
.dv2 .dv2-cell { display: flex; flex-direction: column; }
.dv2 .dv2-cell-num { font-weight: 600; color: var(--navy); }
.dv2 .dv2-cell-num--zero { color: var(--grey); font-weight: 500; }
.dv2 .dv2-table td.dv2-share { padding: 0 0 10px; }
.dv2 .dv2-share-track { height: 5px; border-radius: 3px; background: var(--line-soft); }
.dv2 .dv2-share-fill { height: 5px; border-radius: 3px; background: var(--navy); }
.dv2 .dv2-share-fill--teal { background: var(--teal); }
.dv2 .dv2-share-fill--gold { background: var(--gold); }
.dv2 .dv2-share-fill--grey { background: var(--grey-light); }
.dv2 .dv2-other { border-top: 1px solid var(--line-soft); color: var(--grey); }
.dv2 .dv2-table .dv2-other td { padding-top: 10px; padding-bottom: 10px; font-size: 12px; }
.dv2 .dv2-other-link { font-size: 11px; }
.dv2 .dv2-insight { margin-top: auto; padding: 12px 14px; border-radius: 10px; background: var(--teal-tint); font-size: 12px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.dv2 .dv2-insight svg { flex: none; margin-top: 1px; }

/* Needs attention */
.dv2 .dv2-att-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.dv2 .dv2-att-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); border-radius: 8px; color: var(--ink); }
.dv2 .dv2-att-row:hover { background: var(--ground); color: var(--ink); }
.dv2 .dv2-att-count { font-weight: 600; color: var(--navy); }
.dv2 .dv2-att-count--watch { color: var(--amber-text); }
.dv2 .dv2-att-right { font-size: 12px; color: var(--grey); text-align: right; white-space: nowrap; }
.dv2 .dv2-att-right--money { color: var(--amber-text); font-weight: 600; }
.dv2 .dv2-att-note { display: block; font-size: 11px; color: var(--grey); }

/* Next 7 days and recently closed */
.dv2 .dv2-list { display: flex; flex-direction: column; }
.dv2 .dv2-week-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.dv2 .dv2-week-row:hover { background: var(--ground); color: var(--ink); }
.dv2 .dv2-datetile { flex: none; width: 44px; text-align: center; background: var(--ground); border-radius: 8px; padding: 6px 0; }
.dv2 .dv2-datetile-day { display: block; font-size: 10px; color: var(--grey-strong); text-transform: uppercase; }
.dv2 .dv2-datetile-num { display: block; font-size: 16px; font-weight: 600; color: var(--navy); }
.dv2 .dv2-week-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv2 .dv2-week-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.dv2 .dv2-week-detail { font-size: 12px; color: var(--grey); }
.dv2 .dv2-week-detail--watch { color: var(--amber-text); }
.dv2 .dv2-closed-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.dv2 .dv2-closed-row:hover { background: var(--ground); color: var(--ink); }
.dv2 .dv2-closed-value { font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.dv2 .dv2-card-foot { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--grey); }
.dv2 .dv2-more { font-size: 12px; padding-top: 8px; }

/* Sales view (dashboard-sales.ejs) */
.dv2 .dv2-sales { display: flex; flex-direction: column; gap: 12px; }
.dv2 .dv2-sales-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dv2 .dv2-sales-head .dv2-head-link { margin-left: auto; }
.dv2 .dv2-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--navy); background: var(--gold); padding: 6px 12px; border-radius: 999px; }
.dv2 .dv2-sold { display: flex; align-items: baseline; gap: 10px; }
.dv2 .dv2-sold-num { font-size: 32px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.dv2 .dv2-sold-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.dv2 .dv2-follow-list { display: flex; flex-direction: column; gap: 8px; }
.dv2 .dv2-follow { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--ink); }
.dv2 .dv2-follow:hover { background: var(--ground); color: var(--ink); }
.dv2 .dv2-follow-box { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--grey-light); }

/* Empty, error and set-up states */
.dv2 .dv2-empty, .dv2 .dv2-error { font-size: 13px; color: var(--grey-strong); }
.dv2 .dv2-setup { color: var(--grey); }

/* Footer */
.dv2 .dv2-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 4px; font-size: 11px; color: var(--grey-strong); }
.dv2 .dv2-shortcuts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--grey-strong); }

.dv2 .dv2-month-initial { display: none; }

/* Narrower desktops: smaller card figures so three fit side by side, then the
   trend and team cards stacked so the table has room for its columns. */
@media (max-width: 1280px) {
  .dv2 .dv2-fig-num { font-size: 22px; }
}
@media (max-width: 1180px) {
  .dv2 .dv2-grid-5 { grid-template-columns: minmax(0, 1fr); }
  .dv2 .dv2-span-3, .dv2 .dv2-span-2 { grid-column: span 1; }
}

/* Under 900px: everything stacks; the team table scrolls inside its card. */
@media (max-width: 900px) {
  .main-content.dv2 { padding: 20px 16px 32px; }
  .dv2 .dv2-grid-2, .dv2 .dv2-grid-3, .dv2 .dv2-grid-5 { grid-template-columns: minmax(0, 1fr); }
  .dv2 .dv2-span-3, .dv2 .dv2-span-2 { grid-column: span 1; }
  .dv2 .dv2-hero { padding: 24px 20px; }
  .dv2 .dv2-hero-col--split, .dv2 .dv2-hero-col--side { padding-left: 0; border-left: 0; }
  .dv2 .dv2-hero-num { font-size: 40px; }
  .dv2 .dv2-comm-big { font-size: 46px; }
  .dv2 .dv2-figs { grid-template-columns: minmax(0, 1fr); }
  .dv2 .dv2-cols { gap: 4px; }
  .dv2 .dv2-bar { width: 8px; }
  .dv2 .dv2-top { align-items: flex-start; }
}

/* Phones. The shared sidebar keeps its own width (it is not restyled in this
   change), so the main column here can be very narrow. */
@media (max-width: 600px) {
  .dv2 .dv2-hero-num { font-size: 30px; }
  .dv2 .dv2-comm-big { font-size: 28px; }
  .dv2 .dv2-comm-mid { font-size: 24px; }
  .dv2 .dv2-title { font-size: 20px; }
  .dv2 .dv2-fig-num { font-size: 20px; }
  .dv2 .dv2-cols { gap: 2px; }
  .dv2 .dv2-bars { gap: 1px; }
  .dv2 .dv2-bar { width: 5px; }
  .dv2 .dv2-sold { flex-wrap: wrap; gap: 4px 10px; }
  .dv2 .dv2-sold-num { font-size: 24px; }
  .dv2 .dv2-month-full { display: none; }
  .dv2 .dv2-month-initial { display: inline; }
}

/* ── Data-driven sizes (generated, 0 to 160px and 0 to 100%) ─────────────── */
/* bar heights in px */
.dv2 .dv2-h-0{height:0px}.dv2 .dv2-h-1{height:1px}.dv2 .dv2-h-2{height:2px}.dv2 .dv2-h-3{height:3px}.dv2 .dv2-h-4{height:4px}.dv2 .dv2-h-5{height:5px}.dv2 .dv2-h-6{height:6px}.dv2 .dv2-h-7{height:7px}.dv2 .dv2-h-8{height:8px}.dv2 .dv2-h-9{height:9px}.dv2 .dv2-h-10{height:10px}.dv2 .dv2-h-11{height:11px}.dv2 .dv2-h-12{height:12px}.dv2 .dv2-h-13{height:13px}.dv2 .dv2-h-14{height:14px}.dv2 .dv2-h-15{height:15px}.dv2 .dv2-h-16{height:16px}.dv2 .dv2-h-17{height:17px}.dv2 .dv2-h-18{height:18px}.dv2 .dv2-h-19{height:19px}.dv2 .dv2-h-20{height:20px}.dv2 .dv2-h-21{height:21px}.dv2 .dv2-h-22{height:22px}.dv2 .dv2-h-23{height:23px}.dv2 .dv2-h-24{height:24px}.dv2 .dv2-h-25{height:25px}.dv2 .dv2-h-26{height:26px}.dv2 .dv2-h-27{height:27px}.dv2 .dv2-h-28{height:28px}.dv2 .dv2-h-29{height:29px}.dv2 .dv2-h-30{height:30px}.dv2 .dv2-h-31{height:31px}.dv2 .dv2-h-32{height:32px}.dv2 .dv2-h-33{height:33px}.dv2 .dv2-h-34{height:34px}.dv2 .dv2-h-35{height:35px}.dv2 .dv2-h-36{height:36px}.dv2 .dv2-h-37{height:37px}.dv2 .dv2-h-38{height:38px}.dv2 .dv2-h-39{height:39px}.dv2 .dv2-h-40{height:40px}.dv2 .dv2-h-41{height:41px}.dv2 .dv2-h-42{height:42px}.dv2 .dv2-h-43{height:43px}.dv2 .dv2-h-44{height:44px}.dv2 .dv2-h-45{height:45px}.dv2 .dv2-h-46{height:46px}.dv2 .dv2-h-47{height:47px}.dv2 .dv2-h-48{height:48px}.dv2 .dv2-h-49{height:49px}.dv2 .dv2-h-50{height:50px}.dv2 .dv2-h-51{height:51px}.dv2 .dv2-h-52{height:52px}.dv2 .dv2-h-53{height:53px}.dv2 .dv2-h-54{height:54px}.dv2 .dv2-h-55{height:55px}.dv2 .dv2-h-56{height:56px}.dv2 .dv2-h-57{height:57px}.dv2 .dv2-h-58{height:58px}.dv2 .dv2-h-59{height:59px}.dv2 .dv2-h-60{height:60px}.dv2 .dv2-h-61{height:61px}.dv2 .dv2-h-62{height:62px}.dv2 .dv2-h-63{height:63px}.dv2 .dv2-h-64{height:64px}.dv2 .dv2-h-65{height:65px}.dv2 .dv2-h-66{height:66px}.dv2 .dv2-h-67{height:67px}.dv2 .dv2-h-68{height:68px}.dv2 .dv2-h-69{height:69px}.dv2 .dv2-h-70{height:70px}.dv2 .dv2-h-71{height:71px}.dv2 .dv2-h-72{height:72px}.dv2 .dv2-h-73{height:73px}.dv2 .dv2-h-74{height:74px}.dv2 .dv2-h-75{height:75px}.dv2 .dv2-h-76{height:76px}.dv2 .dv2-h-77{height:77px}.dv2 .dv2-h-78{height:78px}.dv2 .dv2-h-79{height:79px}.dv2 .dv2-h-80{height:80px}.dv2 .dv2-h-81{height:81px}.dv2 .dv2-h-82{height:82px}.dv2 .dv2-h-83{height:83px}.dv2 .dv2-h-84{height:84px}.dv2 .dv2-h-85{height:85px}.dv2 .dv2-h-86{height:86px}.dv2 .dv2-h-87{height:87px}.dv2 .dv2-h-88{height:88px}.dv2 .dv2-h-89{height:89px}.dv2 .dv2-h-90{height:90px}.dv2 .dv2-h-91{height:91px}.dv2 .dv2-h-92{height:92px}.dv2 .dv2-h-93{height:93px}.dv2 .dv2-h-94{height:94px}.dv2 .dv2-h-95{height:95px}.dv2 .dv2-h-96{height:96px}.dv2 .dv2-h-97{height:97px}.dv2 .dv2-h-98{height:98px}.dv2 .dv2-h-99{height:99px}.dv2 .dv2-h-100{height:100px}.dv2 .dv2-h-101{height:101px}.dv2 .dv2-h-102{height:102px}.dv2 .dv2-h-103{height:103px}.dv2 .dv2-h-104{height:104px}.dv2 .dv2-h-105{height:105px}.dv2 .dv2-h-106{height:106px}.dv2 .dv2-h-107{height:107px}.dv2 .dv2-h-108{height:108px}.dv2 .dv2-h-109{height:109px}.dv2 .dv2-h-110{height:110px}.dv2 .dv2-h-111{height:111px}.dv2 .dv2-h-112{height:112px}.dv2 .dv2-h-113{height:113px}.dv2 .dv2-h-114{height:114px}.dv2 .dv2-h-115{height:115px}.dv2 .dv2-h-116{height:116px}.dv2 .dv2-h-117{height:117px}.dv2 .dv2-h-118{height:118px}.dv2 .dv2-h-119{height:119px}.dv2 .dv2-h-120{height:120px}.dv2 .dv2-h-121{height:121px}.dv2 .dv2-h-122{height:122px}.dv2 .dv2-h-123{height:123px}.dv2 .dv2-h-124{height:124px}.dv2 .dv2-h-125{height:125px}.dv2 .dv2-h-126{height:126px}.dv2 .dv2-h-127{height:127px}.dv2 .dv2-h-128{height:128px}.dv2 .dv2-h-129{height:129px}.dv2 .dv2-h-130{height:130px}.dv2 .dv2-h-131{height:131px}.dv2 .dv2-h-132{height:132px}.dv2 .dv2-h-133{height:133px}.dv2 .dv2-h-134{height:134px}.dv2 .dv2-h-135{height:135px}.dv2 .dv2-h-136{height:136px}.dv2 .dv2-h-137{height:137px}.dv2 .dv2-h-138{height:138px}.dv2 .dv2-h-139{height:139px}.dv2 .dv2-h-140{height:140px}.dv2 .dv2-h-141{height:141px}.dv2 .dv2-h-142{height:142px}.dv2 .dv2-h-143{height:143px}.dv2 .dv2-h-144{height:144px}.dv2 .dv2-h-145{height:145px}.dv2 .dv2-h-146{height:146px}.dv2 .dv2-h-147{height:147px}.dv2 .dv2-h-148{height:148px}.dv2 .dv2-h-149{height:149px}.dv2 .dv2-h-150{height:150px}.dv2 .dv2-h-151{height:151px}.dv2 .dv2-h-152{height:152px}.dv2 .dv2-h-153{height:153px}.dv2 .dv2-h-154{height:154px}.dv2 .dv2-h-155{height:155px}.dv2 .dv2-h-156{height:156px}.dv2 .dv2-h-157{height:157px}.dv2 .dv2-h-158{height:158px}.dv2 .dv2-h-159{height:159px}.dv2 .dv2-h-160{height:160px}
/* target line positions from the bottom, in px */
.dv2 .dv2-b-0{bottom:0px}.dv2 .dv2-b-1{bottom:1px}.dv2 .dv2-b-2{bottom:2px}.dv2 .dv2-b-3{bottom:3px}.dv2 .dv2-b-4{bottom:4px}.dv2 .dv2-b-5{bottom:5px}.dv2 .dv2-b-6{bottom:6px}.dv2 .dv2-b-7{bottom:7px}.dv2 .dv2-b-8{bottom:8px}.dv2 .dv2-b-9{bottom:9px}.dv2 .dv2-b-10{bottom:10px}.dv2 .dv2-b-11{bottom:11px}.dv2 .dv2-b-12{bottom:12px}.dv2 .dv2-b-13{bottom:13px}.dv2 .dv2-b-14{bottom:14px}.dv2 .dv2-b-15{bottom:15px}.dv2 .dv2-b-16{bottom:16px}.dv2 .dv2-b-17{bottom:17px}.dv2 .dv2-b-18{bottom:18px}.dv2 .dv2-b-19{bottom:19px}.dv2 .dv2-b-20{bottom:20px}.dv2 .dv2-b-21{bottom:21px}.dv2 .dv2-b-22{bottom:22px}.dv2 .dv2-b-23{bottom:23px}.dv2 .dv2-b-24{bottom:24px}.dv2 .dv2-b-25{bottom:25px}.dv2 .dv2-b-26{bottom:26px}.dv2 .dv2-b-27{bottom:27px}.dv2 .dv2-b-28{bottom:28px}.dv2 .dv2-b-29{bottom:29px}.dv2 .dv2-b-30{bottom:30px}.dv2 .dv2-b-31{bottom:31px}.dv2 .dv2-b-32{bottom:32px}.dv2 .dv2-b-33{bottom:33px}.dv2 .dv2-b-34{bottom:34px}.dv2 .dv2-b-35{bottom:35px}.dv2 .dv2-b-36{bottom:36px}.dv2 .dv2-b-37{bottom:37px}.dv2 .dv2-b-38{bottom:38px}.dv2 .dv2-b-39{bottom:39px}.dv2 .dv2-b-40{bottom:40px}.dv2 .dv2-b-41{bottom:41px}.dv2 .dv2-b-42{bottom:42px}.dv2 .dv2-b-43{bottom:43px}.dv2 .dv2-b-44{bottom:44px}.dv2 .dv2-b-45{bottom:45px}.dv2 .dv2-b-46{bottom:46px}.dv2 .dv2-b-47{bottom:47px}.dv2 .dv2-b-48{bottom:48px}.dv2 .dv2-b-49{bottom:49px}.dv2 .dv2-b-50{bottom:50px}.dv2 .dv2-b-51{bottom:51px}.dv2 .dv2-b-52{bottom:52px}.dv2 .dv2-b-53{bottom:53px}.dv2 .dv2-b-54{bottom:54px}.dv2 .dv2-b-55{bottom:55px}.dv2 .dv2-b-56{bottom:56px}.dv2 .dv2-b-57{bottom:57px}.dv2 .dv2-b-58{bottom:58px}.dv2 .dv2-b-59{bottom:59px}.dv2 .dv2-b-60{bottom:60px}.dv2 .dv2-b-61{bottom:61px}.dv2 .dv2-b-62{bottom:62px}.dv2 .dv2-b-63{bottom:63px}.dv2 .dv2-b-64{bottom:64px}.dv2 .dv2-b-65{bottom:65px}.dv2 .dv2-b-66{bottom:66px}.dv2 .dv2-b-67{bottom:67px}.dv2 .dv2-b-68{bottom:68px}.dv2 .dv2-b-69{bottom:69px}.dv2 .dv2-b-70{bottom:70px}.dv2 .dv2-b-71{bottom:71px}.dv2 .dv2-b-72{bottom:72px}.dv2 .dv2-b-73{bottom:73px}.dv2 .dv2-b-74{bottom:74px}.dv2 .dv2-b-75{bottom:75px}.dv2 .dv2-b-76{bottom:76px}.dv2 .dv2-b-77{bottom:77px}.dv2 .dv2-b-78{bottom:78px}.dv2 .dv2-b-79{bottom:79px}.dv2 .dv2-b-80{bottom:80px}.dv2 .dv2-b-81{bottom:81px}.dv2 .dv2-b-82{bottom:82px}.dv2 .dv2-b-83{bottom:83px}.dv2 .dv2-b-84{bottom:84px}.dv2 .dv2-b-85{bottom:85px}.dv2 .dv2-b-86{bottom:86px}.dv2 .dv2-b-87{bottom:87px}.dv2 .dv2-b-88{bottom:88px}.dv2 .dv2-b-89{bottom:89px}.dv2 .dv2-b-90{bottom:90px}.dv2 .dv2-b-91{bottom:91px}.dv2 .dv2-b-92{bottom:92px}.dv2 .dv2-b-93{bottom:93px}.dv2 .dv2-b-94{bottom:94px}.dv2 .dv2-b-95{bottom:95px}.dv2 .dv2-b-96{bottom:96px}.dv2 .dv2-b-97{bottom:97px}.dv2 .dv2-b-98{bottom:98px}.dv2 .dv2-b-99{bottom:99px}.dv2 .dv2-b-100{bottom:100px}.dv2 .dv2-b-101{bottom:101px}.dv2 .dv2-b-102{bottom:102px}.dv2 .dv2-b-103{bottom:103px}.dv2 .dv2-b-104{bottom:104px}.dv2 .dv2-b-105{bottom:105px}.dv2 .dv2-b-106{bottom:106px}.dv2 .dv2-b-107{bottom:107px}.dv2 .dv2-b-108{bottom:108px}.dv2 .dv2-b-109{bottom:109px}.dv2 .dv2-b-110{bottom:110px}.dv2 .dv2-b-111{bottom:111px}.dv2 .dv2-b-112{bottom:112px}.dv2 .dv2-b-113{bottom:113px}.dv2 .dv2-b-114{bottom:114px}.dv2 .dv2-b-115{bottom:115px}.dv2 .dv2-b-116{bottom:116px}.dv2 .dv2-b-117{bottom:117px}.dv2 .dv2-b-118{bottom:118px}.dv2 .dv2-b-119{bottom:119px}.dv2 .dv2-b-120{bottom:120px}.dv2 .dv2-b-121{bottom:121px}.dv2 .dv2-b-122{bottom:122px}.dv2 .dv2-b-123{bottom:123px}.dv2 .dv2-b-124{bottom:124px}.dv2 .dv2-b-125{bottom:125px}.dv2 .dv2-b-126{bottom:126px}.dv2 .dv2-b-127{bottom:127px}.dv2 .dv2-b-128{bottom:128px}.dv2 .dv2-b-129{bottom:129px}.dv2 .dv2-b-130{bottom:130px}.dv2 .dv2-b-131{bottom:131px}.dv2 .dv2-b-132{bottom:132px}.dv2 .dv2-b-133{bottom:133px}.dv2 .dv2-b-134{bottom:134px}.dv2 .dv2-b-135{bottom:135px}.dv2 .dv2-b-136{bottom:136px}.dv2 .dv2-b-137{bottom:137px}.dv2 .dv2-b-138{bottom:138px}.dv2 .dv2-b-139{bottom:139px}.dv2 .dv2-b-140{bottom:140px}.dv2 .dv2-b-141{bottom:141px}.dv2 .dv2-b-142{bottom:142px}.dv2 .dv2-b-143{bottom:143px}.dv2 .dv2-b-144{bottom:144px}.dv2 .dv2-b-145{bottom:145px}.dv2 .dv2-b-146{bottom:146px}.dv2 .dv2-b-147{bottom:147px}.dv2 .dv2-b-148{bottom:148px}.dv2 .dv2-b-149{bottom:149px}.dv2 .dv2-b-150{bottom:150px}.dv2 .dv2-b-151{bottom:151px}.dv2 .dv2-b-152{bottom:152px}.dv2 .dv2-b-153{bottom:153px}.dv2 .dv2-b-154{bottom:154px}.dv2 .dv2-b-155{bottom:155px}.dv2 .dv2-b-156{bottom:156px}.dv2 .dv2-b-157{bottom:157px}.dv2 .dv2-b-158{bottom:158px}.dv2 .dv2-b-159{bottom:159px}.dv2 .dv2-b-160{bottom:160px}
/* widths in % */
.dv2 .dv2-w-0{width:0%}.dv2 .dv2-w-1{width:1%}.dv2 .dv2-w-2{width:2%}.dv2 .dv2-w-3{width:3%}.dv2 .dv2-w-4{width:4%}.dv2 .dv2-w-5{width:5%}.dv2 .dv2-w-6{width:6%}.dv2 .dv2-w-7{width:7%}.dv2 .dv2-w-8{width:8%}.dv2 .dv2-w-9{width:9%}.dv2 .dv2-w-10{width:10%}.dv2 .dv2-w-11{width:11%}.dv2 .dv2-w-12{width:12%}.dv2 .dv2-w-13{width:13%}.dv2 .dv2-w-14{width:14%}.dv2 .dv2-w-15{width:15%}.dv2 .dv2-w-16{width:16%}.dv2 .dv2-w-17{width:17%}.dv2 .dv2-w-18{width:18%}.dv2 .dv2-w-19{width:19%}.dv2 .dv2-w-20{width:20%}.dv2 .dv2-w-21{width:21%}.dv2 .dv2-w-22{width:22%}.dv2 .dv2-w-23{width:23%}.dv2 .dv2-w-24{width:24%}.dv2 .dv2-w-25{width:25%}.dv2 .dv2-w-26{width:26%}.dv2 .dv2-w-27{width:27%}.dv2 .dv2-w-28{width:28%}.dv2 .dv2-w-29{width:29%}.dv2 .dv2-w-30{width:30%}.dv2 .dv2-w-31{width:31%}.dv2 .dv2-w-32{width:32%}.dv2 .dv2-w-33{width:33%}.dv2 .dv2-w-34{width:34%}.dv2 .dv2-w-35{width:35%}.dv2 .dv2-w-36{width:36%}.dv2 .dv2-w-37{width:37%}.dv2 .dv2-w-38{width:38%}.dv2 .dv2-w-39{width:39%}.dv2 .dv2-w-40{width:40%}.dv2 .dv2-w-41{width:41%}.dv2 .dv2-w-42{width:42%}.dv2 .dv2-w-43{width:43%}.dv2 .dv2-w-44{width:44%}.dv2 .dv2-w-45{width:45%}.dv2 .dv2-w-46{width:46%}.dv2 .dv2-w-47{width:47%}.dv2 .dv2-w-48{width:48%}.dv2 .dv2-w-49{width:49%}.dv2 .dv2-w-50{width:50%}.dv2 .dv2-w-51{width:51%}.dv2 .dv2-w-52{width:52%}.dv2 .dv2-w-53{width:53%}.dv2 .dv2-w-54{width:54%}.dv2 .dv2-w-55{width:55%}.dv2 .dv2-w-56{width:56%}.dv2 .dv2-w-57{width:57%}.dv2 .dv2-w-58{width:58%}.dv2 .dv2-w-59{width:59%}.dv2 .dv2-w-60{width:60%}.dv2 .dv2-w-61{width:61%}.dv2 .dv2-w-62{width:62%}.dv2 .dv2-w-63{width:63%}.dv2 .dv2-w-64{width:64%}.dv2 .dv2-w-65{width:65%}.dv2 .dv2-w-66{width:66%}.dv2 .dv2-w-67{width:67%}.dv2 .dv2-w-68{width:68%}.dv2 .dv2-w-69{width:69%}.dv2 .dv2-w-70{width:70%}.dv2 .dv2-w-71{width:71%}.dv2 .dv2-w-72{width:72%}.dv2 .dv2-w-73{width:73%}.dv2 .dv2-w-74{width:74%}.dv2 .dv2-w-75{width:75%}.dv2 .dv2-w-76{width:76%}.dv2 .dv2-w-77{width:77%}.dv2 .dv2-w-78{width:78%}.dv2 .dv2-w-79{width:79%}.dv2 .dv2-w-80{width:80%}.dv2 .dv2-w-81{width:81%}.dv2 .dv2-w-82{width:82%}.dv2 .dv2-w-83{width:83%}.dv2 .dv2-w-84{width:84%}.dv2 .dv2-w-85{width:85%}.dv2 .dv2-w-86{width:86%}.dv2 .dv2-w-87{width:87%}.dv2 .dv2-w-88{width:88%}.dv2 .dv2-w-89{width:89%}.dv2 .dv2-w-90{width:90%}.dv2 .dv2-w-91{width:91%}.dv2 .dv2-w-92{width:92%}.dv2 .dv2-w-93{width:93%}.dv2 .dv2-w-94{width:94%}.dv2 .dv2-w-95{width:95%}.dv2 .dv2-w-96{width:96%}.dv2 .dv2-w-97{width:97%}.dv2 .dv2-w-98{width:98%}.dv2 .dv2-w-99{width:99%}.dv2 .dv2-w-100{width:100%}
/* marker positions from the left, in % */
.dv2 .dv2-l-0{left:0%}.dv2 .dv2-l-1{left:1%}.dv2 .dv2-l-2{left:2%}.dv2 .dv2-l-3{left:3%}.dv2 .dv2-l-4{left:4%}.dv2 .dv2-l-5{left:5%}.dv2 .dv2-l-6{left:6%}.dv2 .dv2-l-7{left:7%}.dv2 .dv2-l-8{left:8%}.dv2 .dv2-l-9{left:9%}.dv2 .dv2-l-10{left:10%}.dv2 .dv2-l-11{left:11%}.dv2 .dv2-l-12{left:12%}.dv2 .dv2-l-13{left:13%}.dv2 .dv2-l-14{left:14%}.dv2 .dv2-l-15{left:15%}.dv2 .dv2-l-16{left:16%}.dv2 .dv2-l-17{left:17%}.dv2 .dv2-l-18{left:18%}.dv2 .dv2-l-19{left:19%}.dv2 .dv2-l-20{left:20%}.dv2 .dv2-l-21{left:21%}.dv2 .dv2-l-22{left:22%}.dv2 .dv2-l-23{left:23%}.dv2 .dv2-l-24{left:24%}.dv2 .dv2-l-25{left:25%}.dv2 .dv2-l-26{left:26%}.dv2 .dv2-l-27{left:27%}.dv2 .dv2-l-28{left:28%}.dv2 .dv2-l-29{left:29%}.dv2 .dv2-l-30{left:30%}.dv2 .dv2-l-31{left:31%}.dv2 .dv2-l-32{left:32%}.dv2 .dv2-l-33{left:33%}.dv2 .dv2-l-34{left:34%}.dv2 .dv2-l-35{left:35%}.dv2 .dv2-l-36{left:36%}.dv2 .dv2-l-37{left:37%}.dv2 .dv2-l-38{left:38%}.dv2 .dv2-l-39{left:39%}.dv2 .dv2-l-40{left:40%}.dv2 .dv2-l-41{left:41%}.dv2 .dv2-l-42{left:42%}.dv2 .dv2-l-43{left:43%}.dv2 .dv2-l-44{left:44%}.dv2 .dv2-l-45{left:45%}.dv2 .dv2-l-46{left:46%}.dv2 .dv2-l-47{left:47%}.dv2 .dv2-l-48{left:48%}.dv2 .dv2-l-49{left:49%}.dv2 .dv2-l-50{left:50%}.dv2 .dv2-l-51{left:51%}.dv2 .dv2-l-52{left:52%}.dv2 .dv2-l-53{left:53%}.dv2 .dv2-l-54{left:54%}.dv2 .dv2-l-55{left:55%}.dv2 .dv2-l-56{left:56%}.dv2 .dv2-l-57{left:57%}.dv2 .dv2-l-58{left:58%}.dv2 .dv2-l-59{left:59%}.dv2 .dv2-l-60{left:60%}.dv2 .dv2-l-61{left:61%}.dv2 .dv2-l-62{left:62%}.dv2 .dv2-l-63{left:63%}.dv2 .dv2-l-64{left:64%}.dv2 .dv2-l-65{left:65%}.dv2 .dv2-l-66{left:66%}.dv2 .dv2-l-67{left:67%}.dv2 .dv2-l-68{left:68%}.dv2 .dv2-l-69{left:69%}.dv2 .dv2-l-70{left:70%}.dv2 .dv2-l-71{left:71%}.dv2 .dv2-l-72{left:72%}.dv2 .dv2-l-73{left:73%}.dv2 .dv2-l-74{left:74%}.dv2 .dv2-l-75{left:75%}.dv2 .dv2-l-76{left:76%}.dv2 .dv2-l-77{left:77%}.dv2 .dv2-l-78{left:78%}.dv2 .dv2-l-79{left:79%}.dv2 .dv2-l-80{left:80%}.dv2 .dv2-l-81{left:81%}.dv2 .dv2-l-82{left:82%}.dv2 .dv2-l-83{left:83%}.dv2 .dv2-l-84{left:84%}.dv2 .dv2-l-85{left:85%}.dv2 .dv2-l-86{left:86%}.dv2 .dv2-l-87{left:87%}.dv2 .dv2-l-88{left:88%}.dv2 .dv2-l-89{left:89%}.dv2 .dv2-l-90{left:90%}.dv2 .dv2-l-91{left:91%}.dv2 .dv2-l-92{left:92%}.dv2 .dv2-l-93{left:93%}.dv2 .dv2-l-94{left:94%}.dv2 .dv2-l-95{left:95%}.dv2 .dv2-l-96{left:96%}.dv2 .dv2-l-97{left:97%}.dv2 .dv2-l-98{left:98%}.dv2 .dv2-l-99{left:99%}.dv2 .dv2-l-100{left:100%}

/* ══ The hub design system (Hub Platform Phase 1, 21 October 2026) ══════════
 *
 * Everything above this line is the dashboard's own rules, all under .dv2
 * (until 21 October 2026 they were dashboard-v2.css). Everything below is the
 * shared layer every page will be built from.
 *
 * Three rules keep it from restyling a page that has not moved yet, while
 * style.css still loads beside it:
 *
 *   1. The tokens live on two scopes only, never on :root. .hub-shell is the
 *      sidebar, top bar and drawer; .hub-page is the <body> of a page that has
 *      moved. style.css defines its own --navy (#1B2A4A) on :root, so a :root
 *      token here would recolour every page in the hub.
 *   2. Every class is prefixed hub-. Unprefixed names (.card, .btn, .tab,
 *      .page-header, .badge, .sidebar, .empty-state ...) already exist in
 *      style.css or in templates' own <style> blocks.
 *   3. No bare element selectors. Element rules sit under .hub-page, which only
 *      migrated pages carry, or under one hub- component class.
 *
 * Tokens: Hub Dashboard Build Spec section 4, plus the two reds Will added on
 * 21 October 2026 for the danger button (--red-text, --red-tint), and nothing else.
 */

/* .hub-dialog carries the tokens too (29 October 2026): a dialog on a page
   that has not moved sits outside .hub-shell and .hub-page, and without them
   it drew with no background. A modal dialog is drawn in the top layer, above
   the sidebar, so this is the only way it can reach them. */
.hub-shell, .hub-page, .hub-dialog {
  --navy: #001445;
  --navy-2: #0B2A66;
  --teal: #3D9DA4;
  --teal-text: #2A7378;
  --teal-tint: #E3F2F3;
  --gold: #E8A24A;
  --amber-text: #8A4F12;
  --amber-tint: #FBEFD9;
  --red-text: #B42318;
  --red-tint: #FDECEA;
  --green-text: #1F6B4A;
  --cream: #F7F4EC;
  --cream-line: #EADFC6;
  --ink: #2B3240;
  --grey: #6E7684;
  --grey-light: #8592B0;
  --line: #C9D3E6;
  --line-soft: #E3E7EF;
  --card-line: #DDE4F0;
  --ground: #F2F5FA;
  --white: #FFFFFF;
}

/* ── A migrated page ───────────────────────────────────────────────────── */

.hub-page {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 13px/1.5 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hub-page *, .hub-page *::before, .hub-page *::after { box-sizing: border-box; }
/* Links, at the lowest weight a rule can have (:where adds none), so any
   component's own class wins: the sidebar items and the primary button are
   links too, and `.hub-page a` (a class and an element) used to outrank their
   single class and turn white-on-navy text teal (23 October 2026). */
:where(.hub-page) a { color: var(--teal-text); text-decoration: none; }
:where(.hub-page) a:hover { color: var(--navy); text-decoration: none; }
.hub-page h1, .hub-page h2, .hub-page h3, .hub-page p { margin: 0; }

/* Text for screen readers only. */
.hub-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* A plain text link inside a card, callout or empty state. */
.hub-link { color: var(--teal-text); font-weight: 600; text-decoration: none; }
.hub-link:hover { color: var(--navy); }

/* Numbers line up in columns, everywhere. */
.hub-num, .hub-stat-num, .hub-table .hub-num, .hub-date-tile, .hub-badge { font-variant-numeric: tabular-nums; }

/* One visible focus ring for every interactive hub element. */
.hub-btn:focus-visible, .hub-nav-link:focus-visible, .hub-tab:focus-visible, .hub-input:focus-visible,
.hub-select:focus-visible, .hub-menu-btn:focus-visible, .hub-user:focus-visible, .hub-user-menu-item:focus-visible,
.hub-dialog-close:focus-visible, .hub-chip-remove:focus-visible, .hub-link:focus-visible, .hub-list-row:focus-visible,
.hub-skip:focus-visible, .hub-login-input:focus-visible, .hub-login-link:focus-visible,
.hub-more-btn:focus-visible, .hub-more-item:focus-visible, .hub-preset:focus-visible, .hub-filters-more-btn:focus-visible,
.hub-check:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── The shell: sidebar, main column, mobile top bar and drawer ─────────── */

.hub-shell {
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.hub-shell *, .hub-shell *::before, .hub-shell *::after { box-sizing: border-box; }

.hub-side {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 232px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px;
  background: var(--navy);
  color: var(--white);
}
.hub-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-logo { display: block; width: 168px; height: auto; margin-left: 14px; }
.hub-menu-btn { display: none; }
.hub-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.hub-nav-group { padding: 16px 14px 4px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-light); }
.hub-nav-group:first-child { padding-top: 4px; }
.hub-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.hub-nav-link:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }
.hub-nav-link.hub-on { background: var(--navy-2); color: var(--white); box-shadow: inset 3px 0 0 var(--teal); }
.hub-nav-label { flex: 1 1 auto; }
.hub-icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hub-badge {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-user-wrap { position: relative; margin-top: auto; }
.hub-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--navy-2);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hub-user-initials {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-user-text { display: flex; flex-direction: column; min-width: 0; }
.hub-user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-user-role { font-size: 11px; color: var(--line); }
.hub-user-chevron { margin-left: auto; }
.hub-user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--card-line);
}
.hub-user-menu[hidden] { display: none; }
.hub-user-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--navy);
  font: 500 13px 'Poppins', system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.hub-user-menu-item:hover { background: var(--ground); color: var(--navy); text-decoration: none; }
.hub-user-menu-form { margin: 0; }

/* The page beside the sidebar. On a page that has not moved, its own wrapper
   (.main-content or .client-management-layout, offset 240px by style.css)
   takes the new sidebar's width instead. Only while the new sidebar is on the
   page, which is only while HUB_V2 is on. */
.app-body:has(.hub-side) .main-content,
.app-body:has(.hub-side) .client-management-layout { margin-left: 232px; }

.hub-main {
  margin-left: 232px;
  min-height: 100vh;
  padding: 28px 36px 40px;
}
.hub-main-inner { max-width: 1280px; display: flex; flex-direction: column; gap: 24px; }
.hub-skip {
  position: absolute;
  left: -10000px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}
.hub-skip:focus { left: 8px; }

/* Under 900px: a top bar with the logo and a menu button; the menu opens as a
   full-height drawer (public/js/hub-nav.js). */
@media (max-width: 900px) {
  .hub-side {
    width: 100%;
    height: 56px;
    padding: 8px 16px;
    gap: 0;
    flex-direction: column;
  }
  .hub-side-head { min-height: 40px; }
  .hub-logo { width: 132px; margin-left: 0; }
  .hub-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--navy-2);
    color: var(--white);
    cursor: pointer;
  }
  .hub-nav, .hub-user-wrap { display: none; }
  .hub-side.hub-open { height: 100vh; overflow-y: auto; padding-bottom: 24px; }
  .hub-side.hub-open .hub-nav { display: flex; margin-top: 12px; }
  .hub-side.hub-open .hub-user-wrap { display: block; }
  .app-body:has(.hub-side) .main-content,
  .app-body:has(.hub-side) .client-management-layout { margin-left: 0; padding-top: 72px; }
  .hub-main { margin-left: 0; padding: 76px 16px 32px; }
}

/* ── Band 1: page header ──────────────────────────────────────────────── */

.hub-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hub-header-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hub-crumbs { font-size: 13px; color: var(--grey); }
.hub-crumbs a { color: var(--grey); }
.hub-title { font-size: 26px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.hub-lede { font-size: 13px; color: var(--grey); }
.hub-header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 13px 'Poppins', system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.hub-btn .hub-icon { stroke-width: 2; }
.hub-btn--primary { background: var(--navy); color: var(--white); }
.hub-btn--primary:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }
.hub-btn--secondary { background: var(--white); color: var(--navy); border-color: var(--card-line); }
.hub-btn--secondary:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.hub-btn--quiet { height: auto; padding: 0; border: 0; background: none; color: var(--navy); }
.hub-btn--quiet:hover { color: var(--teal-text); text-decoration: none; }
/* Only ever inside a confirmation dialog: never on a page. A --red-text fill
   with white text (Will, 21 October 2026): 6.57:1, above the 4.5:1 minimum. */
.hub-dialog .hub-btn--danger { background: var(--red-text); color: var(--white); }
.hub-dialog .hub-btn--danger:hover { background: var(--navy); }
.hub-btn--block { width: 100%; }
/* An action beside a line of text (Remove by a comment). Never stretched by a
   column it sits in. */
.hub-btn--small { align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.hub-btn[disabled] { opacity: .6; cursor: default; }

/* ── Pills and person chip ────────────────────────────────────────────── */

.hub-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hub-pill--good { background: var(--teal-tint); color: var(--green-text); }
.hub-pill--watch { background: var(--amber-tint); color: var(--amber-text); }
.hub-pill--neutral { background: var(--line-soft); color: var(--grey); }
.hub-pill--live { background: var(--teal-tint); color: var(--navy); }

.hub-person { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.hub-person-initials {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hub-person--none { color: var(--grey); }
.hub-person--none .hub-person-initials { background: var(--grey-light); }

/* ── Cards, stat tiles, hero ──────────────────────────────────────────── */

.hub-card { background: var(--white); border: 1px solid var(--card-line); border-radius: 14px; padding: 22px 24px; }
.hub-card--flush { padding: 0; overflow: hidden; }
.hub-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hub-card-label, .hub-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.hub-card-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.hub-card-msg { font-size: 13px; color: var(--grey); }

.hub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hub-stat { background: var(--white); border: 1px solid var(--card-line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.hub-stat--navy { box-shadow: inset 0 3px 0 var(--navy); }
.hub-stat--teal { box-shadow: inset 0 3px 0 var(--teal); }
.hub-stat--gold { box-shadow: inset 0 3px 0 var(--gold); }
.hub-stat-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.hub-stat-num { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.hub-stat-watch { font-size: 13px; font-weight: 600; color: var(--amber-text); }
.hub-stat-sub { font-size: 12px; color: var(--grey); }

.hub-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 28px 32px; background: var(--navy); color: var(--white); }

/* ── Band 2: tabs ─────────────────────────────────────────────────────── */

.hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--card-line); }
.hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.hub-tab:hover { color: var(--navy); text-decoration: none; }
.hub-tab.hub-on { color: var(--navy); font-weight: 600; border-bottom-color: var(--teal); }
.hub-tab-count { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line-soft); color: var(--grey); }
/* Every tab's count is the same grey pill, chosen or not (23 October 2026). */

/* ── Band 3: filter bar ───────────────────────────────────────────────── */

.hub-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-filters-search { flex: 1 1 260px; position: relative; }
.hub-filters-search .hub-icon { position: absolute; left: 12px; top: 12px; stroke: var(--grey); }
.hub-filters-search .hub-input { padding-left: 36px; }
.hub-filters-note { margin-left: auto; font-size: 12px; color: var(--grey); }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--teal-tint); color: var(--navy); font-size: 12px; font-weight: 500; }
.hub-chip-remove { border: 0; background: none; color: var(--navy); cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.hub-chip-remove:hover { background: var(--white); }

/* ── Form fields ──────────────────────────────────────────────────────── */

.hub-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-field { display: flex; flex-direction: column; gap: 6px; }
.hub-field-label { font-size: 12px; font-weight: 600; color: var(--navy); }
.hub-input, .hub-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 400 13px 'Poppins', system-ui, sans-serif;
}
.hub-input--area { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.hub-input:focus, .hub-select:focus { border-color: var(--teal); }
.hub-field-help { font-size: 12px; color: var(--grey); }
.hub-field-error { font-size: 12px; color: var(--amber-text); }
.hub-field--error .hub-input, .hub-field--error .hub-select { border-color: var(--amber-text); }
.hub-section-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 8px; }

/* ── Tables and list rows ─────────────────────────────────────────────── */

.hub-table-wrap { position: relative; overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; }
.hub-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  white-space: nowrap;
}
.hub-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
.hub-table tr:last-child td { border-bottom: 0; }
.hub-table tbody tr:hover td { background: var(--ground); }
.hub-table td:first-child { font-weight: 600; color: var(--navy); }
.hub-table .hub-r { text-align: right; }

.hub-list { display: flex; flex-direction: column; }
.hub-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}
.hub-list-row:last-child { border-bottom: 0; }
.hub-list-row:hover { background: var(--ground); color: var(--ink); text-decoration: none; }
.hub-list-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hub-list-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.hub-list-meta { font-size: 12px; color: var(--grey); }
.hub-list-chevron { stroke: var(--grey); }

.hub-date-tile {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.hub-date-tile-day { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--grey); }
.hub-date-tile-date { font-size: 16px; font-weight: 600; color: var(--navy); }

/* ── Stepper ──────────────────────────────────────────────────────────── */

.hub-stepper { display: flex; align-items: flex-start; gap: 0; list-style: none; margin: 0; padding: 0; }
.hub-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; color: var(--grey); text-align: center; }
.hub-step::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.hub-step:first-child::before { display: none; }
.hub-step-num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--grey); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.hub-step--done .hub-step-num { background: var(--teal); border-color: var(--teal); color: var(--white); }
.hub-step--done::before, .hub-step--current::before { background: var(--teal); }
.hub-step--current .hub-step-num { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hub-step--current { color: var(--navy); font-weight: 600; }

/* ── Callout and empty state ──────────────────────────────────────────── */

.hub-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; font-size: 13px; }
.hub-callout--info { background: var(--teal-tint); color: var(--navy); }
.hub-callout--attention { background: var(--cream); border: 1px solid var(--cream-line); color: var(--amber-text); }
.hub-empty { padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 13px; color: var(--grey); }

/* ── Dialog and toast ─────────────────────────────────────────────────── */

/* margin: auto stated, not inherited: the browser centres a modal dialog with
   it, and style.css's reset (* { margin: 0 }) zeroes it, which put every hub
   dialog on a page still loading style.css in the top-left corner. */
.hub-dialog { width: min(480px, calc(100vw - 32px)); margin: auto; padding: 0; border: 0; border-radius: 14px; background: var(--white); color: var(--ink); }
.hub-dialog::backdrop { background: color-mix(in srgb, var(--navy) 45%, transparent); }
.hub-dialog-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hub-dialog-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.hub-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; }
.hub-dialog-close { border: 0; background: none; color: var(--grey); cursor: pointer; }

.hub-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 10px 10px 10px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}
.hub-toast[hidden] { display: none; }
.hub-toast-text { flex: 1 1 auto; overflow-wrap: anywhere; }
.hub-toast-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hub-toast-close:hover { background: var(--navy-2); }
.hub-toast-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* While a toast shows, the page keeps room under its last card, so whatever the
   toast sits over can be scrolled clear of it. */
.hub-page:has(.hub-toast:not([hidden])) .hub-main { padding-bottom: 104px; }

/* ── Band 5: footer ───────────────────────────────────────────────────── */

.hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 11px; color: var(--grey-light); }

/* ── Login (spec section 6) ───────────────────────────────────────────── */

.hub-login {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--navy);
}
.hub-login-circle { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--line) 14%, transparent); pointer-events: none; }
.hub-login-circle--a { right: -180px; top: -220px; width: 620px; height: 620px; }
.hub-login-circle--b { left: -240px; bottom: -300px; width: 640px; height: 640px; }
.hub-login-circle--c { right: 120px; bottom: -160px; width: 360px; height: 360px; border-color: color-mix(in srgb, var(--line) 10%, transparent); }
.hub-login-col { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hub-login-logo { display: block; width: 220px; height: auto; }
.hub-login-card { width: 100%; padding: 36px 36px 32px; border-radius: 16px; background: var(--white); display: flex; flex-direction: column; gap: 20px; }
.hub-login-heading { display: flex; flex-direction: column; gap: 4px; }
.hub-login-title { font-size: 24px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.hub-login-field { display: flex; flex-direction: column; gap: 6px; }
.hub-login-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.hub-login-label { font-size: 12px; font-weight: 600; color: var(--navy); }
.hub-login-link { font-size: 12px; font-weight: 500; color: var(--teal-text); }
.hub-login-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 400 14px 'Poppins', system-ui, sans-serif;
}
.hub-login-input:focus { border-color: var(--teal); }
.hub-login--error .hub-login-input { border-color: var(--amber-text); }
.hub-login-msg { font-size: 13px; line-height: 1.5; }
.hub-login-msg--error { color: var(--amber-text); }
.hub-login-msg--notice { color: var(--green-text); }
.hub-login-submit { height: 44px; margin-top: 4px; font-size: 14px; }
.hub-login-foot { font-size: 11px; color: var(--grey-light); text-align: center; }
.hub-login-text { font-size: 13px; color: var(--ink); }

@media (max-width: 900px) {
  .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-fields, .hub-fields--3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hub-login-card { padding: 28px 22px 24px; }
}

/* ── Phase 2: row menus, filter presets, "More filters", table cells ───── */

.hub-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-preset {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--card-line);
  border-radius: 999px; background: var(--white); color: var(--navy); font-size: 12px; font-weight: 500;
}
.hub-preset:hover { border-color: var(--navy); text-decoration: none; }
.hub-preset.hub-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.hub-filters-more { position: relative; }
.hub-filters-more-btn { list-style: none; }
.hub-filters-more-btn::-webkit-details-marker { display: none; }
.hub-filters-more-panel {
  position: absolute; z-index: 20; top: 48px; left: 0; display: grid; gap: 12px; min-width: 260px; padding: 16px;
  background: var(--white); border: 1px solid var(--card-line); border-radius: 12px;
}

.hub-cell-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--grey); }
.hub-cell-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }

.hub-more { position: relative; display: inline-block; }
.hub-more-btn {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 8px; color: var(--navy); cursor: pointer;
}
.hub-more-btn::-webkit-details-marker { display: none; }
.hub-more-btn:hover { background: var(--ground); }
.hub-more-list {
  position: absolute; z-index: 20; top: 36px; right: 0; display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  background: var(--white); border: 1px solid var(--card-line); border-radius: 10px;
}
.hub-more-item {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--navy);
  font: inherit; font-size: 13px; text-align: left; white-space: nowrap; cursor: pointer;
}
.hub-more-item:hover { background: var(--ground); text-decoration: none; }
.hub-more-item--danger { color: var(--red-text); }
.hub-dialog-subject { font-weight: 600; color: var(--navy); }

.hub-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hub-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; color: var(--navy); }
.hub-watch { color: var(--amber-text); }
.hub-notes { margin-top: 14px; padding-left: 18px; font-size: 12px; line-height: 1.7; color: var(--grey); }
@media (max-width: 600px) {
  .hub-facts { grid-template-columns: 1fr; }
}

/* The filter bar is one row: the search takes the room, the selects their own width. */
.hub-filters .hub-filters-select { width: auto; flex: 0 1 220px; min-width: 160px; }
@media (max-width: 600px) {
  .hub-filters .hub-filters-select { flex: 1 1 100%; }
}

.hub-check { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; }
/* Every checkbox on a hub page is teal, not the browser's own blue (23 October 2026). */
:where(.hub-page) input[type="checkbox"] { accent-color: var(--teal); }
.hub-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--grey); }
.hub-bulk .hub-select { width: auto; min-width: 200px; }
.hub-totals { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--grey); }
.hub-totals strong { color: var(--navy); font-weight: 600; }

/* ── Phase 2: shared bits, and Close a deal ─────────────────────────────── */

.hub-page [hidden] { display: none !important; }
.hub-req::after { content: ' *'; color: var(--amber-text); }
.hub-muted { color: var(--grey); }
.hub-neg { color: var(--red-text); }

.hub-cd { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.hub-cd-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hub-cd-section { display: flex; flex-direction: column; gap: 16px; }
.hub-cd-summary { position: sticky; top: 24px; }
.hub-cd-facts { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.hub-cd-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-cd-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.hub-cd-preview {
  display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 8px;
  background: var(--ground); font-weight: 600; color: var(--navy);
}
.hub-cd-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.hub-cd-reveal { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hub-cd-optional { font-size: 12px; font-weight: 400; color: var(--grey); }
.hub-cd-subtitle { font-size: 14px; font-weight: 600; color: var(--navy); }
.hub-cd-session { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--ground); }
.hub-cd-session-head { display: flex; align-items: center; justify-content: space-between; }
.hub-cd-session-label { font-size: 13px; color: var(--navy); }
.hub-cd-split-topics { margin: 4px 0 8px; font-size: 12px; }
.hub-cd-xc { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.hub-cd-xc-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--card-line); border-radius: 12px; }
.hub-cd-covers { display: flex; flex-direction: column; gap: 6px; }
.hub-cd-saved { padding-left: 18px; font-size: 13px; }
.hub-cd-conflict { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1100px) {
  .hub-cd { grid-template-columns: 1fr; }
  .hub-cd-summary { position: static; }
}
.hub-cd-section > .hub-btn, .hub-cd-xc > .hub-btn { align-self: flex-start; }

/* ── Phase 2: the Sessions list ─────────────────────────────────────────── */
.hub-months { display: flex; flex-direction: column; gap: 16px; }
.hub-month-title { padding: 14px 16px 10px; font-size: 13px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.hub-past { margin-top: 8px; }
.hub-past-summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--navy); }
.hub-past > .hub-months { margin-top: 8px; }

/* ── Phase 2: a session's page ──────────────────────────────────────────── */
.hub-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.hub-stack { display: flex; flex-direction: column; gap: 14px; }
.hub-card-head--pad { padding: 18px 20px 0; }
.hub-pad { padding: 0 20px 18px; }
.hub-pre { white-space: pre-wrap; }
.hub-good { color: var(--green-text); }
.hub-ticks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.hub-tick { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--grey); }
.hub-tick .hub-icon { flex: none; margin-top: 1px; stroke: var(--line); }
.hub-tick--on { color: var(--navy); font-weight: 600; }
.hub-tick--on .hub-icon { stroke: var(--teal); }
.hub-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.hub-dl dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-dl dd { margin: 2px 0 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.hub-dl-wide { grid-column: 1 / -1; }
.hub-dl--tint { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--teal-tint); }
.hub-field--wide { grid-column: 1 / -1; }
.hub-answers { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; }
.hub-answer { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.hub-answer-label { min-width: 180px; color: var(--grey); }
.hub-answer-held { flex: 1 1 160px; color: var(--ink); }
/* The Responses card on a feedback form's page: one block per response. */
.hub-responses { display: flex; flex-direction: column; gap: 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.hub-response-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.hub-response-head .hub-card-title { margin: 0; }
.hub-dcr { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.hub-email { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.hub-email:last-child { border-bottom: 0; }
.hub-email-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--navy); }
.hub-email-full > summary { cursor: pointer; font-size: 12px; }
.hub-email-frame { width: 100%; min-height: 360px; margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 8px; }
.hub-dialog--wide { width: min(640px, calc(100vw - 32px)); }
@media (max-width: 900px) {
  .hub-grid-2, .hub-dl { grid-template-columns: 1fr; }
}
.hub-stepper-card { overflow-x: auto; }
.hub-stepper-card .hub-stepper { min-width: 560px; }

/* ── Phase 2: Follow-ups, To record ─────────────────────────────────────── */
.hub-fu-answer { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.hub-fu-seg { display: flex; gap: 6px; }
.hub-fu-choice[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hub-fu-row .hub-fu-when, .hub-fu-row .hub-fu-why { display: none; }
.hub-fu-row[data-state="booked"] .hub-fu-when, .hub-fu-row[data-state="blocked"] .hub-fu-why { display: flex; }
.hub-fu-flag { min-height: 16px; font-size: 12px; font-weight: 600; }

/* ── Phase 2: Trainers ──────────────────────────────────────────────────── */
.hub-tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.hub-tr-card { display: flex; flex-direction: column; gap: 14px; }
.hub-tr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-tr-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.hub-tr-body { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.hub-tr-info { display: flex; flex: 1 1 200px; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.hub-tr-rates { flex: 1 1 180px; margin: 0; font-size: 13px; }
.hub-tr-unmatched { align-items: flex-start; }
.hub-tr-unmatched p { margin: 0 0 8px; }
.hub-tr-names { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink); }
/* Trainer login on each card (17 November 2026; admins only, TRAINER_PORTAL on). */
.hub-tr-login { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hub-tr-login-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
.hub-tr-login-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hub-tr-login-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-tr-login-row .hub-input { flex: 1 1 220px; min-width: 0; }
.hub-tr-login form { margin: 0; }
.hub-tr-login-off { color: var(--red-text); }
/* A lead trainer (20 November 2026): the "Can see all trainers" switch and "Show first". */
.hub-tr-seeall { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hub-tr-switch { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.hub-tr-switch:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.hub-tr-switch-track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line-soft); border: 1px solid var(--line); flex: none; }
.hub-tr-switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.hub-tr-switch[aria-checked="true"] .hub-tr-switch-track { background: var(--teal); border-color: var(--teal); }
.hub-tr-switch[aria-checked="true"] .hub-tr-switch-knob { left: 22px; }
.hub-tr-switch-label { font-weight: 600; }
.hub-tr-showfirst { font-size: 13px; }
.hub-tr-showfirst .hub-tr-showfirst-input { flex: 0 0 96px; }
.hub-pill--off { background: var(--red-tint); color: var(--red-text); }
.hub-tp-warnings summary { cursor: pointer; }
.hub-tp-warnings ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.hub-tp-panel { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.hub-tp-choice { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.hub-tp-drop { padding: 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--grey); }
.hub-tp-drop.hub-tp-over { border-color: var(--teal); background: var(--teal-tint); }
.hub-tp-lines summary { cursor: pointer; }
.hub-tp-lines ul { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--grey); }
.hub-tp-file { display: block; }
/* A row's own Mark paid (28 October 2026): a date and one button, under the invoice. Compact so
   the table stays readable; still a 36px target. */
.hub-tp-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.hub-tp-pay .hub-tp-pay-date { width: 150px; height: 36px; padding: 0 8px; font-size: 13px; }
.hub-tp-pay .hub-tp-pay-btn { height: 36px; padding: 0 12px; }

/* ── Phase 2: Invoicing ─────────────────────────────────────────────────── */
.hub-inv-over td { background: var(--cream); }
.hub-inv-line { display: block; padding: 2px 0; }
.hub-inv-check { justify-content: flex-end; font-size: 13px; color: var(--ink); }

/* ── Phase 2: Tasks ─────────────────────────────────────────────────────── */
.hub-task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hub-task-col .hub-card-head { display: flex; align-items: center; justify-content: space-between; }
.hub-task-list, .hub-task-notes { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.hub-task { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.hub-task-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hub-task-title { font-size: 13px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.hub-task-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--grey); }
.hub-task-foot .hub-btn--quiet { margin-left: auto; }
.hub-task-note { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.hub-task-note .hub-pre { margin: 4px 0 0; }
@media (max-width: 900px) { .hub-task-board { grid-template-columns: 1fr; } }

/* ── Phase 2: Deal detail ──────────────────────────────────────────────── */
.hub-lede { overflow-wrap: anywhere; }
.hub-deal-strong { font-weight: 600; color: var(--navy); }
.hub-deal-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--cream); border-color: var(--cream-line); }
.hub-deal-prompt-actions { display: flex; align-items: center; gap: 14px; }
.hub-deal-inline { display: flex; flex-wrap: wrap; gap: 14px; }
.hub-deal-inline .hub-field { flex: 1 1 180px; min-width: 0; }
.hub-deal-ok { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hub-deal-mail { display: grid; gap: 4px; margin: 0; font-size: 12px; }
.hub-deal-mail div { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-deal-mail dt { font-weight: 600; color: var(--navy); }
.hub-deal-mail dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.hub-deal-frame { display: block; width: 100%; height: 640px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); }
.hub-deal-frame--short { height: 560px; }
.hub-deal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.hub-deal-row-actions { margin-top: 0; }
.hub-deal-lead { font-size: 15px; color: var(--navy); }
.hub-deal-est { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hub-deal-est > summary { cursor: pointer; font-size: 13px; color: var(--navy); }
.hub-deal-est .hub-table-wrap { margin: 8px 0; }
.hub-deal-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hub-deal-money--next { margin-top: 12px; }
.hub-deal-money--split { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.hub-deal-cell { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--ground); min-width: 0; }
.hub-deal-cell--total { background: var(--teal-tint); border-color: var(--teal-tint); }
.hub-deal-cell--gap { background: var(--amber-tint); border-color: var(--amber-tint); }
.hub-deal-cell-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.hub-deal-cell-value { font-size: 18px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.hub-deal-cell-pct { font-size: 12px; color: var(--grey); }
.hub-deal-cell-note { font-size: 12px; color: var(--grey); }
.hub-deal-part { margin-top: 18px; }
.hub-deal-lines tfoot td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); }
.hub-deal-fault { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--red-tint); color: var(--red-text); font-size: 13px; }
.hub-deal-fault p { margin-top: 4px; }
.hub-deal-invlist { margin: 14px 0 0; padding: 0; list-style: none; }
.hub-deal-invlist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.hub-deal-invlist-right { display: inline-flex; align-items: center; gap: 8px; }
.hub-deal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.hub-deal-holds { margin: 0; padding: 0; list-style: none; }
.hub-deal-holds li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.hub-deal-warn { padding: 14px 18px; border: 1px solid var(--cream-line); border-radius: 12px; background: var(--cream); font-size: 13px; color: var(--ink); }
.hub-deal-warn strong { display: block; margin-bottom: 2px; color: var(--amber-text); }
@media (max-width: 600px) {
  .hub-deal-frame { height: 480px; }
}

/* ── Phase 2: tidy ──────────────────────────────────────────────────────── */
/* The To record answer cell is tall; the rest of the row reads from the top. */
.hub-fu-row td { vertical-align: top; }
/* "Could not load" in a flush card gets the card's own padding. */
.hub-card--flush > .hub-card-msg { padding: 18px 20px; }

/* ── Phone width: one card per row ──────────────────────────────────────── */
/* A table marked hub-table--stack becomes a stacked card per row under 600px,
   every cell full width with its column name above it (data-label), so
   nothing sits off-screen behind a sideways scroll (23 October 2026). The
   column headings stay for screen readers. */
@media (max-width: 600px) {
  .hub-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub-table--stack, .hub-table--stack tbody, .hub-table--stack tr, .hub-table--stack td { display: block; width: 100%; }
  .hub-table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  .hub-table--stack tr:last-child { border-bottom: 0; }
  .hub-table--stack td { padding: 6px 0; border-bottom: 0; text-align: left; white-space: normal; }
  .hub-table--stack td.hub-r, .hub-table--stack td.hub-num { text-align: left; }
  .hub-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
  .hub-table--stack tbody tr:hover td { background: none; }
  .hub-table--stack .hub-fu-answer { min-width: 0; }
  .hub-table--stack .hub-fu-seg .hub-btn { flex: 1 1 0; }
  .hub-table--stack .hub-cell-actions { justify-content: flex-start; }
  /* The "..." now sits at the left of the card, so its menu opens rightwards. */
  .hub-table--stack .hub-more-list { right: auto; left: 0; }
}

/* ── Short windows: the whole sidebar fits ──────────────────────────────── */
/* At 900px tall the last item (Admin, for an admin) sat below the fold of the
   scrolling nav with nothing to say there was more (23 October 2026). Tighter
   spacing on short screens fits every item; the nav still scrolls if a
   window is shorter still. */
@media (min-width: 901px) and (max-height: 960px) {
  .hub-side { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .hub-nav-link { padding-top: 6px; padding-bottom: 6px; }
  .hub-nav-group { padding-top: 10px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .hub-side { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .hub-nav-link { padding-top: 4px; padding-bottom: 4px; }
  .hub-nav-group { padding-top: 6px; padding-bottom: 2px; }
}

/* ── Phase 2 polish (23 October 2026) ───────────────────────────────────── */

/* A row's name is bold navy: the first cell's link (a client, a deal), or the
   cell marked lead when a tick box comes first. Teal stays for links in text. */
.hub-table td:first-child > a, .hub-table td.hub-cell-lead, .hub-table td.hub-cell-lead > a { font-weight: 600; color: var(--navy); }
.hub-table td:first-child > a:hover, .hub-table td.hub-cell-lead > a:hover { color: var(--teal-text); }

/* Presets sit in the filter row, after the selects. */
.hub-filters .hub-presets { flex: 1 1 320px; min-width: 0; }

/* A one-line description: the rest is in the title on hover. */
.hub-one-line { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-table .hub-one-line { max-width: 280px; }

/* A callout with a short list in it (the Sales tab's owner check). */
.hub-callout--list { flex-direction: column; align-items: flex-start; gap: 8px; }
.hub-callout-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* A card of figures in a row: the deal's Financials summary. */
.hub-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* The stepper's current step in words, for phones (where the labels hide). */
.hub-stepper-now { display: none; margin: 12px 0 0; font-size: 13px; color: var(--navy); font-weight: 600; text-align: center; }

/* A tick list whose ticks are form boxes (the session's Details). */
.hub-ticks--form .hub-tick { color: var(--ink); }
.hub-ticks--form .hub-tick input { flex: none; margin-top: 3px; }
.hub-ticks--form .hub-tick strong { color: var(--navy); font-weight: 600; }

/* ── Phones (under 600px) ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Tabs stay one row and scroll sideways inside themselves. */
  .hub-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .hub-tabs::-webkit-scrollbar { display: none; }
  .hub-tab { flex: none; white-space: nowrap; }

  /* Stat tiles two by two. */
  .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hub-stat { padding: 16px; }
  .hub-stat-num { font-size: 22px; }
  .hub-stat-label { letter-spacing: .08em; }

  /* A list row: the title takes the full width, the pill goes under it. */
  .hub-list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; }
  .hub-list-row > .hub-date-tile { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .hub-list-row > .hub-list-text { grid-column: 2; grid-row: 1; }
  .hub-list-row > .hub-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .hub-list-row > .hub-list-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .hub-list-row:not(:has(.hub-date-tile)) { grid-template-columns: minmax(0, 1fr) auto; }
  .hub-list-row:not(:has(.hub-date-tile)) > .hub-list-text, .hub-list-row:not(:has(.hub-date-tile)) > .hub-pill { grid-column: 1; }
  .hub-list-row:not(:has(.hub-date-tile)) > .hub-list-chevron { grid-column: 2; }

  /* The session stepper fits its card: numbers only, the current step named under it. */
  .hub-stepper-card { padding: 16px 12px; }
  .hub-stepper-card .hub-stepper { min-width: 0; }
  .hub-stepper-card .hub-step > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub-stepper-now { display: block; }

  /* Totals and bulk bars wrap under a stacked table. */
  .hub-bulk .hub-select { min-width: 0; flex: 1 1 100%; }
  .hub-table--stack td.hub-cell-lead, .hub-table--stack td:first-child { font-size: 14px; }
  .hub-table--stack .hub-one-line { white-space: normal; max-width: none; }
}

/* The deal Overview's one Save: a bar under the cards. Not sticky, so it never sits over a card. */
.hub-deal-savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--white); }
.hub-deal-savebar[hidden] { display: none; }

/* ══ Phase 3 (23 October 2026) ═══════════════════════════════════════════ */

/* ── A grid of tool or guide cards: icon in a teal-tint circle, one primary button ── */
.hub-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hub-tool { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--white); min-width: 0; }
.hub-tool-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--teal-tint); color: var(--teal-text); display: inline-flex; align-items: center; justify-content: center; }
.hub-tool-icon .hub-icon { width: 20px; height: 20px; }
.hub-tool-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.hub-tool-text { font-size: 13px; color: var(--grey); flex: 1 1 auto; }
.hub-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hub-tool-actions { align-items: center; }
.hub-tool-actions .hub-input { flex: 1 1 100%; font-size: 12px; }
.hub-tool-copied { font-size: 12px; color: var(--green-text); }
@media (max-width: 600px) {
  .hub-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hub-tool { padding: 18px; }
}

/* ── The Guide's SOPs tab: one card per process, with how much of it is live ── */
.hub-sops { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.hub-sop { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; min-width: 0; }
.hub-sop:hover { border-color: var(--teal); color: var(--ink); text-decoration: none; }
.hub-sop:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hub-sop-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.hub-sop-text { font-size: 13px; color: var(--grey); flex: 1 1 auto; }
.hub-sop-label { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--navy); }
.hub-sop-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.hub-sop-bar-live { background: var(--teal); }
.hub-sop-bar-built { background: var(--gold); }
.hub-sop-tally { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--grey); }
.hub-sop-tally strong { color: var(--navy); font-weight: 600; }
@media (max-width: 600px) { .hub-sops { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ── Client emails: sections of email cards (This week, Queue) ─────────── */
.hub-ce-sec { border: 1px solid var(--card-line); border-radius: 14px; background: var(--white); padding: 0 20px; }
.hub-ce-sec[open] { padding-bottom: 20px; }
.hub-ce-sec--missed { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.hub-ce-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 16px 0; cursor: pointer; list-style: none; }
.hub-ce-sum::-webkit-details-marker { display: none; }
.hub-ce-sum::before { content: '\203A'; font-size: 18px; line-height: 1; color: var(--grey); transition: transform .15s; }
.hub-ce-sec[open] > .hub-ce-sum::before { transform: rotate(90deg); }
.hub-ce-sum:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hub-ce-sum-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.hub-ce-sum-note { flex: 1 1 260px; text-align: right; font-size: 12px; color: var(--grey); }
.hub-ce-list { display: flex; flex-direction: column; gap: 12px; }
.hub-ce-day { margin: 8px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.hub-ce-day--off { color: var(--grey); }
.hub-ce-none { padding: 0 0 4px; }
.hub-ce-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; background: var(--white); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hub-ce-card--missed { border-color: var(--cream-line); background: var(--cream); }
.hub-ce-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.hub-ce-subject { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.hub-ce-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-ce-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; }
.hub-ce-facts div { min-width: 0; }
.hub-ce-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-ce-facts dd { margin: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.hub-ce-why { font-size: 13px; color: var(--grey); }
.hub-ce-card .hub-one-line { max-width: 100%; }
.hub-ce-gap { color: var(--amber-text); font-weight: 600; }
.hub-ce-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hub-ce-acts form { margin: 0; }
.hub-ce-state { font-size: 13px; color: var(--grey); }
.hub-ce-state--watch { color: var(--amber-text); font-weight: 600; }
.hub-ce-preview, .hub-ce-more { font-size: 13px; }
.hub-ce-preview summary, .hub-ce-more summary { cursor: pointer; list-style: none; }
.hub-ce-preview summary::-webkit-details-marker, .hub-ce-more summary::-webkit-details-marker { display: none; }
.hub-ce-preview[open], .hub-ce-more[open] { flex: 1 1 100%; }
.hub-ce-preview[open] summary, .hub-ce-more[open] summary { margin-bottom: 8px; }
.hub-ce-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--cream); }
.hub-ce-note { font-size: 12px; color: var(--grey); }
.hub-ce-more-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-ce-sendnow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-ce-sendnow [hidden] { display: none; }
.hub-ce-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--teal-tint); font-size: 13px; color: var(--navy); }
.hub-ce-skip { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hub-ce-skip .hub-input { width: 220px; max-width: 100%; }
.hub-ce-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ground); }
.hub-ce-bulk .hub-select { width: auto; max-width: 100%; flex: 1 1 240px; }
.hub-ce-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hub-ce-bar .hub-filters { flex: 1 1 320px; }
.hub-ce-bar form { margin: 0; }
@media (max-width: 600px) {
  .hub-ce-sec { padding: 0 14px; }
  .hub-ce-sum-note { text-align: left; }
  .hub-ce-card { padding: 14px; }
  .hub-ce-frame { height: 420px; }
  .hub-ce-skip .hub-input { width: 100%; }
}

/* ── Tabs: a "More" menu after six (Analytics) ──────────────────────────── */
.hub-tabs-more { margin-bottom: -1px; }
.hub-tabs-more > summary { list-style: none; cursor: pointer; }
.hub-tabs-more > summary::-webkit-details-marker { display: none; }
.hub-tabs-more > summary .hub-icon { width: 14px; height: 14px; }
.hub-tabs-more .hub-more-list { top: calc(100% + 4px); right: auto; left: 0; }
/* On phones a row of tabs scrolls inside itself, which would clip the menu, so
   a row with a More menu wraps instead. */
@media (max-width: 600px) {
  .hub-tabs:has(.hub-tabs-more) { flex-wrap: wrap; overflow: visible; }
}

/* ── A stat tile that links to the page behind its figure ───────────────── */
.hub-stat--link { color: var(--ink); text-decoration: none; }
.hub-stat--link:hover { border-color: var(--teal); color: var(--ink); text-decoration: none; }
.hub-stat--link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* Five tiles in one row (the Analytics overview). */
.hub-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .hub-stats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hub-stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Analytics, Targets tab ─────────────────────────────────────────────── */
.hub-targets-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.hub-kpi-head { flex-wrap: wrap; align-items: center; }

/* ── The Board: five advisors in a row, the chat below ─────────────────── */
.hub-board-advisors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hub-board-advisor { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; text-align: center; cursor: pointer; min-width: 0; }
.hub-board-advisor:hover { border-color: var(--teal); }
.hub-board-advisor:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hub-board-advisor--busy { border-color: var(--teal); background: var(--teal-tint); }
.hub-board-initials { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.hub-board-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.hub-board-role { font-size: 12px; color: var(--grey); }
.hub-board-thinking { font-size: 12px; font-weight: 600; color: var(--teal-text); }
.hub-board-thinking[hidden] { display: none; }
.hub-board-note { margin-top: 10px; }
.hub-board-conv { display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); }
.hub-board-conv:last-child { border-bottom: 0; }
.hub-board-conv .hub-list-row { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.hub-board-delete { flex: none; width: 36px; height: 36px; margin-right: 10px; border: 0; border-radius: 8px; background: none; color: var(--grey); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hub-board-delete:hover { background: var(--ground); color: var(--navy); }
.hub-board-delete:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hub-board-chat { display: flex; flex-direction: column; gap: 12px; }
.hub-board-messages { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; min-height: 200px; overflow-y: auto; padding: 4px 2px; }
.hub-board-day { align-self: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-board-msg { display: flex; flex-direction: column; gap: 4px; max-width: min(720px, 90%); align-self: flex-start; }
.hub-board-msg--user { align-self: flex-end; align-items: flex-end; }
.hub-board-bubble { padding: 12px 14px; border-radius: 12px; background: var(--ground); color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-board-msg--user .hub-board-bubble { background: var(--navy); color: var(--white); }
.hub-board-meta { font-size: 12px; color: var(--grey); }
.hub-board-meta strong { color: var(--navy); font-weight: 600; }
.hub-board-input { display: flex; gap: 10px; align-items: flex-end; }
.hub-board-input .hub-input { flex: 1 1 auto; min-height: 64px; }
@media (max-width: 900px) { .hub-board-advisors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hub-board-advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-board-advisor { padding: 14px 8px; }
  .hub-board-input { flex-direction: column; align-items: stretch; }
}

/* ── Calendar: one month, events coloured by type ──────────────────────── */
.hub-cal { display: flex; flex-direction: column; gap: 14px; }
.hub-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hub-cal-nav { display: flex; gap: 8px; }
.hub-cal-step { width: 44px; padding: 0; }
.hub-cal-step[data-cal-step="-1"] .hub-icon { transform: rotate(180deg); }
.hub-cal-scroll { overflow-x: auto; }
.hub-cal-days, .hub-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 560px; }
.hub-cal-days span { padding: 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-cal-week { position: relative; border-top: 1px solid var(--line-soft); }
.hub-cal-cell { min-height: 104px; padding: 0 4px 6px; border-left: 1px solid var(--line-soft); cursor: pointer; min-width: 0; }
.hub-cal-cell:first-child { border-left: 0; }
.hub-cal-cell:hover { background: var(--ground); }
.hub-cal-cell--weekend { background: var(--ground); }
.hub-cal-cell--other .hub-cal-num { color: var(--grey-light); }
.hub-cal-num { height: 28px; display: flex; align-items: center; padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--navy); }
.hub-cal-cell--today .hub-cal-num span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--white); }
.hub-cal-singles { display: flex; flex-direction: column; gap: 3px; }
.hub-cal-pill, .hub-cal-bar, .hub-cal-badge { display: block; width: 100%; padding: 3px 7px; border: 0; border-radius: 6px; font: 600 11px/1.35 'Poppins', system-ui, sans-serif; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.hub-cal-pill--long { font-style: italic; }
.hub-cal-bar { position: absolute; z-index: 1; display: flex; align-items: center; }
.hub-cal-badge { display: inline-block; width: auto; cursor: default; }
.hub-cal-more { border: 0; background: none; padding: 2px 4px; font: 600 11px 'Poppins', system-ui, sans-serif; color: var(--teal-text); text-align: left; cursor: pointer; }
.hub-cal-pill:focus-visible, .hub-cal-bar:focus-visible, .hub-cal-more:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
/* Event colours (Phase 3 spec): session navy, holiday gold, wellbeing day teal, in office grey; general amber. */
.hub-cal-ev--session { background: var(--navy); color: var(--white); }
.hub-cal-ev--holiday { background: var(--gold); color: var(--navy); }
.hub-cal-ev--wellbeing_day { background: var(--teal); color: var(--navy); }
.hub-cal-ev--office { background: var(--grey); color: var(--white); }
.hub-cal-ev--general { background: var(--amber-text); color: var(--white); }
.hub-cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.hub-cal-legend-label { float: left; margin-right: 4px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-cal-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.hub-cal-legend-item--off { opacity: .45; }
.hub-cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.hub-cal-desc { font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.hub-dialog-body .hub-cal-pill { margin-top: 4px; }
@media (max-width: 600px) {
  .hub-cal { padding: 16px 12px; }
  .hub-cal-cell { min-height: 84px; }
}

/* ── Account and Resources ──────────────────────────────────────────────── */
.hub-account-form { display: flex; flex-direction: column; gap: 14px; }
.hub-card-msg.hub-account-note { margin-top: 14px; }
.hub-res-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.hub-res-row .hub-list-text { flex: 1 1 320px; gap: 2px; }
.hub-res-url { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.hub-res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-res-feedback { font-size: 13px; color: var(--green-text); }
.hub-res-feedback--bad { color: var(--amber-text); }
@media (max-width: 900px) { .hub-account.hub-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ── Strategy documents ──────────────────────────────────────────────────── */
.hub-strat { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.hub-strat-section { margin: 6px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.hub-strat-trainers { display: flex; flex-direction: column; gap: 8px; }
.hub-strat-trainer, .hub-strat-row { display: flex; gap: 8px; align-items: center; }
.hub-strat-trainer .hub-input, .hub-strat-row .hub-input { flex: 1 1 auto; min-width: 0; }
.hub-strat-file { height: auto; padding: 8px 10px; }
.hub-strat-status { margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; background: var(--teal-tint); color: var(--navy); font-size: 13px; }
.hub-strat-status[hidden] { display: none; }
.hub-strat-status--bad { background: var(--cream); color: var(--amber-text); }
.hub-strat-docs { display: flex; flex-direction: column; max-height: 80vh; overflow-y: auto; }
.hub-strat-doc { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.hub-strat-doc h3 { margin: 0; }
.hub-strat-doc--new { background: var(--teal-tint); }
.hub-strat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hub-strat-actions .hub-btn { height: 36px; padding: 0 12px; }
.hub-strat-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--ground); }
.hub-strat-panel[hidden] { display: none; }
.hub-strat-msg { font-size: 12px; color: var(--grey); }
.hub-strat-msg--ok { color: var(--green-text); }
.hub-strat-msg--bad { color: var(--amber-text); }
@media (max-width: 1100px) { .hub-strat { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .hub-strat-row { flex-wrap: wrap; } }

/* ── Admin and the activity log (Phase 3, job 8, 25 October 2026) ─────────
 * The Admin tabs (Team, Reminder settings, Spreadsheet sync, API costs, GDPR,
 * Activity log, and the two demos) and /activity. Widths and heights that come
 * from the data (the budget bar, the daily spend bars) are the only inline
 * styles on these pages. */
.hub-adm-note { margin: 0; font-size: 13px; line-height: 1.6; max-width: 90ch; }
.hub-card-head + .hub-adm-note, .hub-adm-note + .hub-adm-actions, .hub-adm-note + .hub-table-wrap, .hub-adm-note + .hub-empty { margin-top: 10px; }
.hub-card .hub-adm-note + .hub-adm-note { margin-top: 10px; }
.hub-card--flush .hub-adm-note.hub-pad { padding-top: 6px; }
.hub-adm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hub-adm-actions form { margin: 0; }
.hub-adm-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.hub-adm-inline .hub-field { margin: 0; }
.hub-adm-grow { flex: 1 1 260px; min-width: 0; }
.hub-adm-short { width: 9em; }
.hub-adm-list { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink); }
.hub-adm-bar { height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin: 6px 0 8px; }
.hub-adm-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--teal); }
.hub-adm-bar-fill--watch { background: var(--gold); }
.hub-adm-bar-fill--over { background: var(--amber-text); }
.hub-adm-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin: 12px 0 10px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.hub-adm-chart-col { flex: 1 1 0; min-width: 4px; height: 100%; display: flex; align-items: flex-end; }
.hub-adm-chart-bar { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--teal); }
.hub-adm-chart-col:hover .hub-adm-chart-bar { background: var(--navy); }
.hub-adm-perm { padding: 16px 20px; }
.hub-adm-perm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hub-adm-perm-edit { margin-top: 12px; }
.hub-adm-perm-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.hub-adm-perm-edit > summary::-webkit-details-marker { display: none; }
.hub-adm-perm-form { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.hub-adm-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.hub-adm-perm-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.hub-badge--paused { margin-left: 6px; background: var(--amber-tint); color: var(--amber-text); border-radius: 6px; letter-spacing: .06em; vertical-align: middle; }
.hub-cell-actions form { margin: 0; }
.hub-cell-actions { flex-wrap: wrap; }

.hub-act-day { margin: 0; padding: 14px 20px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); border-top: 1px solid var(--line-soft); }
.hub-act-day:first-child { border-top: 0; }
.hub-act-list { list-style: none; margin: 0; padding: 0 20px 8px; }
.hub-act-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.hub-act-row:last-child { border-bottom: 0; }
.hub-act-row .hub-person { flex: 0 0 auto; min-width: 150px; font-weight: 600; }
.hub-act-text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.hub-act-entity { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: var(--ground); font-size: 12px; font-weight: 500; color: var(--navy); }
.hub-act-entity--link { color: var(--teal-text); }
.hub-act-entity--link:hover { color: var(--navy); }
.hub-act-time { flex: 0 0 auto; font-size: 12px; color: var(--grey); padding-top: 2px; }
.hub-act-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.hub-act-page-btns { display: inline-flex; gap: 8px; }
@media (max-width: 600px) {
  .hub-act-row { flex-wrap: wrap; gap: 4px 10px; }
  .hub-act-row .hub-person { min-width: 0; }
  .hub-act-text { flex-basis: 100%; order: 3; }
  .hub-adm-chart { gap: 1px; }
}

/* ── Row menu: an action that is not available here ─────────────────────── */
/* row-menu.ejs { label, disabled: 'Already paid' }: greyed, with the reason
   on a line under it, and inert (28 October 2026). */
.hub-more-item:disabled { color: var(--grey); cursor: not-allowed; }
.hub-more-item:disabled:hover { background: none; }
.hub-more-item-why { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); white-space: normal; }

/* ── Commission statement (/business-analytics/payroll/commission/:id/breakdown) ── */
/* A payslip as well as a page (28 October 2026). On screen it is ordinary hub
   cards and tables; the tables scroll inside their card at laptop widths and
   stack into one card per row under 600px. On paper (A4 portrait) the screen
   chrome goes, a letterhead and a footer appear, and nothing load-bearing is
   carried by a background colour, because most printers drop them. */
.hub-stmt-print-only { display: none; }
.hub-stmt-note .hub-card-msg { line-height: 1.65; color: var(--ink); }
.hub-stmt-note .hub-stmt-note-more { margin-top: 8px; color: var(--grey); }
.hub-stmt-total { justify-content: flex-end; }
.hub-card--flush .hub-card-head--pad .hub-card-msg { margin-top: 4px; }
/* Seven columns and a "..." have to fit a laptop beside the sidebar: tighter
   cell padding, and headings that may wrap. A figure's second line (profit as
   value less costs, what is already paid) stays on one line; the rate's
   reason reads as a sentence under it and wraps rather than widening the
   table. */
.hub-stmt-page .hub-table th, .hub-stmt-page .hub-table td { padding-left: 10px; padding-right: 10px; }
.hub-stmt-page .hub-table th:first-child, .hub-stmt-page .hub-table td:first-child { padding-left: 20px; }
.hub-stmt-page .hub-table th:last-child, .hub-stmt-page .hub-table td:last-child { padding-right: 20px; }
.hub-stmt-page .hub-table th { white-space: normal; }
.hub-stmt-page .hub-table td.hub-r { white-space: nowrap; }
.hub-stmt-page .hub-table td .hub-cell-sub { max-width: 220px; white-space: normal; }
.hub-stmt-page .hub-table td.hub-r .hub-cell-sub { margin-left: auto; text-align: left; }
@media (max-width: 1200px) {
  .hub-stmt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hub-stmt-total { justify-content: flex-start; }
  .hub-stmt-page .hub-table--stack td, .hub-stmt-page .hub-table--stack td:first-child,
  .hub-stmt-page .hub-table--stack td:last-child { padding: 6px 0; white-space: normal; }
  .hub-stmt-page .hub-table td .hub-cell-sub { max-width: none; margin-left: 0; }
}

/* A named page, so A4 and these margins apply to the statement only. */
@page hub-stmt { size: A4 portrait; margin: 14mm 11mm 14mm; }
@media print {
  .hub-stmt-page .hub-main { page: hub-stmt; }
  .hub-stmt-page { background: var(--white); font-size: 9pt; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hub-stmt-page .hub-side, .hub-stmt-page .hub-menu-btn, .hub-stmt-page .hub-skip, .hub-stmt-page .hub-header,
  .hub-stmt-page .hub-callout--info, .hub-stmt-page .hub-more, .hub-stmt-page .hub-dialog, .hub-stmt-page .hub-stmt-note-more { display: none !important; }
  .hub-stmt-page .hub-stmt-print-only { display: block; }
  .hub-stmt-page .hub-main { margin: 0; padding: 0; min-height: 0; }
  .hub-stmt-page .hub-main-inner { max-width: none; gap: 6mm; }

  .hub-stmt-letterhead { margin-bottom: 2mm; }
  .hub-stmt-lh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16mm; margin-bottom: 4mm; }
  .hub-stmt-lh-mark { font-size: 15pt; font-weight: 600; color: var(--navy); }
  .hub-stmt-lh-meta { text-align: right; font-size: 8.5pt; line-height: 1.5; color: var(--grey-strong); }
  .hub-stmt-lh-meta strong { font-size: 12pt; color: var(--navy); }
  .hub-stmt-lh-band { display: flex; justify-content: space-between; align-items: baseline; gap: 10mm; padding: 3mm 0;
    border-top: 2px solid var(--navy); border-bottom: 1px solid var(--navy); font-size: 11pt; }
  .hub-stmt-lh-label { display: block; margin-bottom: 1mm; font-size: 7.5pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }

  .hub-stmt-page .hub-card, .hub-stmt-page .hub-stat { border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .hub-stmt-page .hub-card { break-inside: auto; }
  .hub-stmt-page .hub-card-head--pad, .hub-stmt-page .hub-pad { padding: 0; }
  .hub-stmt-page .hub-card-title { font-size: 10.5pt; padding-bottom: 1.5mm; border-bottom: 1px solid var(--grey-light); break-after: avoid; }
  .hub-stmt-page .hub-card-head { margin-bottom: 2mm; break-after: avoid; }
  .hub-stmt-page .hub-card-msg { font-size: 8pt; color: var(--grey-strong); }
  .hub-stmt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6mm; break-inside: avoid; }
  .hub-stmt-page .hub-stat { border-top: 1px solid var(--line); padding-top: 2mm; }
  .hub-stmt-page .hub-stat-label { font-size: 7.5pt; color: var(--grey); }
  .hub-stmt-page .hub-stat-num { font-size: 13pt; color: var(--ink); }

  /* The tables print whole: no sideways scroll on paper, headings repeat on
     each page, and a row never breaks in half. The stacked phone layout does
     not apply to paper. */
  .hub-stmt-page .hub-table-wrap { overflow: visible; }
  .hub-stmt-page .hub-table { font-size: 8pt; }
  .hub-stmt-page .hub-table thead { display: table-header-group; }
  .hub-stmt-page .hub-table tr { break-inside: avoid; }
  .hub-stmt-page .hub-table th { padding: 2mm 2.5mm 1.5mm; font-size: 7pt; color: var(--grey-strong); border-bottom: 1px solid var(--grey); white-space: normal; vertical-align: bottom; }
  .hub-stmt-page .hub-table td { padding: 1.8mm 2.5mm; font-size: 8pt; vertical-align: top; }
  .hub-stmt-page .hub-table td.hub-r { white-space: nowrap; }
  .hub-stmt-page .hub-table tbody tr:hover td { background: none; }
  .hub-stmt-page .hub-pill { border: 1px solid var(--grey); background: none; }
  .hub-stmt-total { padding: 2mm 0 0; border-top: 1.5px solid var(--ink); font-size: 8.5pt; }
  .hub-stmt-page .hub-callout--attention { border-left: 3pt solid var(--red-text); border-radius: 0; background: none; color: var(--ink); font-weight: 600; break-inside: avoid; }
  .hub-stmt-print-foot { padding-top: 2.5mm; border-top: 1px solid var(--line); font-size: 7.5pt; line-height: 1.5; color: var(--grey); break-inside: avoid; }
  .hub-stmt-page a { color: var(--ink); text-decoration: none; }
  .hub-stmt-page p, .hub-stmt-page td { orphans: 3; widows: 3; }
}

/* ── The Sales meeting page (3 November 2026, routes/salesMeeting.js) ─────
 *
 * The checklist rows, the review screen's editable blocks and the pipeline's
 * stage groups. Everything else on the page is the shared components. Rows
 * wrap rather than scroll, so the page works at phone width (390px) with the
 * status and note controls under the action instead of beside it. */
.hub-sm-list { display: flex; flex-direction: column; }
.hub-sm-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.hub-sm-row:last-child { border-bottom: 0; }
.hub-sm-row--overdue { padding: 12px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--amber-tint); }
.hub-sm-main { flex: 1 1 280px; min-width: 0; }
.hub-sm-main .hub-list-title { overflow-wrap: anywhere; }
.hub-sm-controls { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 380px; min-width: 0; }
.hub-sm-controls .hub-select { width: auto; flex: 0 0 130px; }
.hub-sm-controls .hub-input { flex: 1 1 180px; min-width: 0; }
.hub-sm-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hub-table .hub-sm-hints { margin-top: 0; }
.hub-sm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-sm-bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; overflow-wrap: anywhere; }
.hub-sm-stage { display: flex; flex-direction: column; gap: 8px; }
.hub-sm-ticks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hub-sm-ticks .hub-tick { color: var(--ink); align-items: center; }
.hub-sm-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hub-sm-edit { margin: 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hub-sm-edit > legend { padding: 0 6px; }
.hub-sm-del { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--grey); }
.hub-sm-copy-text { min-height: 200px; font-size: 12px; }
.hub-sm-settings, .hub-sm-notes, .hub-sm-copy { border-top: 1px solid var(--line-soft); }
/* A hint can be a sentence ("Stage moved since last meeting: ... to ..."): it
   wraps inside its pill rather than pushing the page sideways at 390px. */
.hub-sm-hints .hub-pill { height: auto; min-height: 22px; padding: 3px 10px; white-space: normal; max-width: 100%; line-height: 1.35; }
.hub-sm-stage .hub-table .hub-sm-hints { min-width: 140px; }

/* ── Sales meeting v1.1: "Meeting said" next to "HubSpot says" ────────────
 * Two columns from 760px, one column below it (phones and narrow windows).
 * Activity previews and long names wrap; nothing scrolls sideways at 390px. */
.hub-sm-cmp-list { display: flex; flex-direction: column; gap: 14px; }
.hub-sm-cmp { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hub-sm-cmp-title { margin: 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.hub-sm-cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .hub-sm-cmp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-sm-cmp-side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-sm-cmp-head { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.hub-sm-cmp-sub { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.hub-sm-dl { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hub-sm-dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.hub-sm-dl dt { font-size: 12px; color: var(--grey); }
.hub-sm-dl dd { margin: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.hub-sm-flags { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hub-sm-flag { padding: 8px 10px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--amber-tint); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.hub-sm-changes { display: flex; flex-direction: column; gap: 6px; }
.hub-sm-acts { display: flex; flex-direction: column; gap: 6px; }
.hub-sm-scope { margin: 0; font-size: 12px; color: var(--ink); padding: 6px 8px; background: var(--amber-tint); border-radius: 6px; overflow-wrap: anywhere; }
.hub-sm-act-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hub-sm-act-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-sm-act-meta { font-size: 11px; color: var(--grey); }
.hub-sm-act-text { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }

/* "Chased?" on an overdue invoice (views/clients/invoice-chase.ejs, 24 November 2026): what has been
   recorded, then a date box and Mark chased on one line, wrapping on a phone. */
.hub-inv-chase { display: flex; flex-direction: column; gap: 6px; }
.hub-inv-chase-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hub-inv-chase-form .hub-input { width: 150px; max-width: 100%; padding-top: 4px; padding-bottom: 4px; }
.hub-deal-invlist .hub-inv-chase { flex: 1 1 100%; }
/* The overdue email box on the Overdue tab: one line saying who gets it, and the button. */
.hub-inv-email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.hub-inv-nodate { padding: 16px 20px 8px; border-top: 1px solid var(--line-soft); }
/* Business costs (/business-costs, 26 November 2026). */
.hub-bc-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 20px 0; }
.hub-bc-subtotal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: 13px; color: var(--grey); }
.hub-bc-subtotal strong { color: var(--navy); }
.hub-bc-summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 16px; }
.hub-bc-stopped .hub-table-wrap { margin-top: 12px; }
.hub-bc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); }
.hub-bc-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hub-bc-cats li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.hub-bc-inline { display: inline; margin: 0; }
.hub-bc-facts dd { font-size: 15px; }
