  :root {
    /* Salesforce brand palette — applied to dark theme.
       Primary signature: Cloud Blue 68 #00B3FF
       Deep accent:       Electric Blue 30 #022AC0
       Secondary (80/20): Teal 80 / Yellow 80 / Pink 60 / Violet 65 */
    --bg-0: #001226;          /* near-black with Electric Blue tint */
    --bg-1: #001E5B;          /* Electric Blue 15 — deepest brand blue */
    --surface: rgba(2, 30, 75, 0.55);
    --surface-2: rgba(2, 42, 192, 0.18);
    --border: rgba(144, 208, 254, 0.16);
    --border-strong: rgba(0, 179, 255, 0.42);
    --text: #FFFFFF;
    --text-2: #EAF5FE;        /* Cloud Blue 95 */
    --muted: #90D0FE;         /* Cloud Blue 80 */
    --accent: #00B3FF;        /* Cloud Blue 68 — primary brand signature */
    --accent-2: #066AFE;      /* Electric Blue 50 — darker brand blue */
    --good: #04E1CB;          /* Teal 80 */
    --warn: #FCC003;          /* Yellow 80 */
    --bad: #FF538A;           /* Pink 60 */
    --bad-deep: #D17DFE;      /* Violet 65 (used for deepest crisis tint) */

    --c-strategic: #00B3FF;             /* Cloud Blue 68 */
    --c-ktlo: #FCC003;                  /* Yellow 80 */
    --c-ld: #04E1CB;                    /* Teal 80 */
    --c-internal: #90D0FE;              /* Cloud Blue 80 */
    --c-firefighting: #FF538A;          /* Pink 60 */
    --c-incident: #D17DFE;              /* Violet 65 — distinct from Cloud Blue */
    --c-other: #6F8CB6;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }

  /* Type scale (collapsed from 12+ to 6 sizes):
     --fs-1: 10px (microcopy, axis ticks)
     --fs-2: 12px (body, secondary)
     --fs-3: 14px (default body)
     --fs-4: 18px (KPI value, card title)
     --fs-5: 28px (hero KPI value)
     --fs-6: 44px (single-headline metric — Capacity Util big number)
     Numerics use JetBrains Mono throughout.
  */
  body {
    background: var(--bg-0);
    background-image:
      radial-gradient(ellipse at top left, rgba(0,179,255,0.10), transparent 60%),
      radial-gradient(ellipse at bottom right, rgba(2,42,192,0.14), transparent 60%);
    color: var(--text);
    /* Body chain per Brand Central: Salesforce Sans → Helvetica → Arial → sans-serif.
       Salesforce Sans isn't available in a Web App context, so Inter is the practical fallback. */
    font-family: 'Salesforce Sans', 'Inter', Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
  }
  /* Headline chain per Brand Central: Avant Garde Demi SFDC → Avant Garde Gothic → sans-serif. */
  h1, h2, h3, h4, h5, h6,
  .brand-title, .util-block-tag, .util-big-label, .util-commit-label,
  .util-big-value, .util-commit-value,
  .hero-tag, .hero-label, .hero-value,
  .section-title,
  .card-title, .doughnut-center-value, .doughnut-center-label,
  .util-trend-title,
  .accolade-project, .reel-project,
  .drill-col-title,
  .accolade-tag, .accolade-month,
  .util-leak-title, .util-status-pill,
  .badge-amber, .pill,
  .period-pill, .btn,
  .data-table th,
  .util-bar-marker-label {
    font-family: 'Avant Garde Demi SFDC', 'AvantGardeGothic-Demi', 'Avant Garde Gothic', 'Inter', Helvetica, Arial, sans-serif;
  }
  /* Default any small body text (≤12px) to weight 500 for legibility on dark */
  .muted, .card-sub, .hero-sub, .util-big-sub,
  .legend, .reel-body, .accolade-body,
  .data-table th, .data-table td,
  .util-explainer, .util-commit-explainer,
  .util-leak-foot, .attribution-banner,
  .strip-legend, .heatmap-legend,
  .trend-arrow, .badge-amber {
    font-weight: 500;
  }
  /* JetBrains Mono is for tabular/inline numerics only.
     Hero display numerics (.util-big-value, .util-commit-value, .hero-value) stay in Inter
     because mono fonts read mechanical at large display sizes. */
  .data-table td.num, .data-table td.money,
  .hours, .pipe, .ph-value, .leak-hours,
  .util-bar-axis-tick,
  .glance-value, .recent-count,
  .util-sec-value, .util-secondary,
  .drill-recent-hours, .drill-month-hours,
  .attribution-pct, .util-secondary div span,
  .accolade-month, .reel-month {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
  }
  /* Display headlines: proportional Inter with tabular-nums for stable digits */
  .util-big-value, .util-commit-value, .hero-value, .doughnut-center-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: tabular-nums;
  }

  .bg-blob {
    /* Only show the blobs near the top of the page; fade out as user scrolls past viewport. */
    position: absolute; pointer-events: none; z-index: 0;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
  }
  .bg-blob-1 { top: -200px; left: -200px; background: rgba(0,179,255,0.42); }
  .bg-blob-2 { top: 100px; right: -200px; background: rgba(2,42,192,0.36); }

  /* TOPBAR — keep glassmorphism here since it's sticky and floats over content */
  header.topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border-bottom: 1px solid var(--border);
  }
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand-mark {
    width: 54px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .brand-mark svg {
    width: 100%; height: 100%;
    display: block;
  }
  .brand-title { font-size: 14px; font-weight: 600; color: var(--text); }
  .brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; }
  .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 4px rgba(4,225,203,0.18);
    animation: pulse 2.5s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  .btn {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer; font-size: 13px;
    transition: all 0.2s ease;
  }
  .btn:hover { background: rgba(0,179,255,0.18); border-color: var(--accent); }

  main { position: relative; z-index: 1; padding: 28px 32px 80px; max-width: 1480px; margin: 0 auto; }

  /* TOPBAR FRESHNESS INDICATOR */
  .freshness-sep {
    color: var(--muted); opacity: 0.4;
    font-size: 12px;
  }
  .freshness {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.2px;
  }

  /* EXECUTIVE SUMMARY BANNER */
  .exec-summary {
    background: linear-gradient(135deg, rgba(0,179,255,0.10), rgba(2,42,192,0.04));
    border: 1px solid rgba(0,179,255,0.28);
    border-radius: 14px;
    padding: 18px 22px 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
  }
  .exec-eyebrow {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); font-weight: 700;
    margin-bottom: 8px;
  }
  .exec-headline {
    font-size: 17px; font-weight: 600;
    color: var(--text); line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.1px;
  }
  .exec-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media (max-width: 768px) { .exec-stats { grid-template-columns: 1fr; } }
  .exec-stat {
    background: rgba(2, 30, 75, 0.45);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex; align-items: baseline;
    gap: 10px; flex-wrap: wrap;
  }
  .exec-stat-value {
    font-size: 22px; font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
  }
  .exec-stat-label {
    font-size: 11px; color: var(--muted);
    font-weight: 500; letter-spacing: 0.3px;
    flex: 1;
  }
  .exec-delta {
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 999px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
  }
  .exec-delta.up   { background: rgba(4,225,203,0.18); color: var(--good); }
  .exec-delta.down { background: rgba(255,83,138,0.18); color: var(--bad); }
  .exec-delta.flat { background: rgba(144,208,254,0.14); color: var(--muted); }

  /* TREND ARROWS */
  .trend-arrow {
    display: none;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    cursor: help;
    position: relative;
    vertical-align: middle;
  }
  .trend-arrow.visible { display: inline-block; }
  .trend-arrow.up { background: rgba(4,225,203,0.18); color: var(--good); }
  .trend-arrow.down { background: rgba(255,83,138,0.18); color: var(--bad); }
  .trend-arrow.flat { background: rgba(139,151,166,0.16); color: var(--muted); }
  .trend-arrow .trend-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text);
    width: 220px;
    z-index: 30;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0;
    white-space: normal;
  }
  .trend-arrow:hover .trend-tip { display: block; }

  /* PERIOD FILTER */
  .period-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; gap: 12px;
  }
  .period-pills {
    display: inline-flex;
    background: rgba(20, 26, 36, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
  }
  .period-pill {
    background: transparent;
    border: none;
    color: var(--text-2);
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    font-family: inherit;
  }
  .period-pill:hover { color: var(--text); background: rgba(0,179,255,0.08); }
  .period-pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 12px rgba(0,179,255,0.35);
  }
  .period-pill[disabled] { opacity: 0.4; cursor: wait; }
  .period-meta {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
  }
  .period-label {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
  }
  .fq-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,179,255,0.14);
    border: 1px solid rgba(0,179,255,0.32);
    color: var(--accent);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
    cursor: help;
  }
  .fq-chip:empty { display: none; }

  /* UTILIZATION COMMAND CENTER — keeps glassmorphism (the hero block) */
  .util-block {
    background: linear-gradient(135deg, rgba(0,179,255,0.12), rgba(4,225,203,0.06));
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 32px;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  }
  .util-block-tag {
    display: inline-block;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,179,255,0.12);
    padding: 4px 10px; border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
  }
  /* Three equal-width columns: Capacity headline / Commitment+status / Investment Mix */
  .util-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
  }
  @media (max-width: 1100px) { .util-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 768px)  { .util-grid { grid-template-columns: 1fr; } }

  /* Cards inside util-grid all use the same surface treatment */
  .util-main, .util-secondary-block, .util-leak {
    background: rgba(15, 19, 27, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }

  .util-main { padding: 18px 20px; display: flex; flex-direction: column; }
  .util-headline-row {
    display: block;
    margin-bottom: 0;
  }
  .util-explainer {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 10px;
    max-width: 480px;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
  }
  .util-secondary-block {
    display: flex; flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .util-commitment {
    background: rgba(252,192,3,0.10);
    border: 1px solid rgba(252,192,3,0.28);
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
  }
  .util-commit-label {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--warn); font-weight: 700;
  }
  .util-commit-value {
    font-size: 28px; font-weight: 700; color: var(--text);
    margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.4px;
  }
  .util-commit-explainer {
    font-size: 11px; color: var(--text-2);
    margin-top: 6px; line-height: 1.45;
  }
  .util-big-label {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-2); font-weight: 600;
  }
  .util-big-value {
    font-size: 64px; font-weight: 800; line-height: 1;
    margin-top: 6px; letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
  }
  .util-big-value.zone-good { background: linear-gradient(135deg, #fff, var(--good)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .util-big-value.zone-amber { background: linear-gradient(135deg, #fff, var(--warn)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .util-big-value.zone-red { background: linear-gradient(135deg, #fff, var(--bad)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .util-big-value.zone-deepred { background: linear-gradient(135deg, #fff, var(--bad-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .util-big-sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

  .util-status-block { text-align: left; display: flex; flex-direction: column; gap: 8px; }
  .util-status-pill {
    display: inline-block;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(4,225,203,0.18); color: var(--good);
    border: 1px solid currentColor;
  }
  .util-status-pill.zone-amber { background: rgba(252,192,3,0.18); color: var(--warn); }
  .util-status-pill.zone-red { background: rgba(255,83,138,0.18); color: var(--bad); }
  .util-status-pill.zone-deepred { background: rgba(211,47,47,0.28); color: #FF538A; }
  .util-secondary {
    margin-top: 14px;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12px;
  }
  .util-secondary > div { display: flex; gap: 10px; justify-content: flex-end; }
  .util-sec-label { color: var(--muted); }
  .util-sec-value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

  /* The big horizontal capacity bar with color zones (track represents 0-130%). */
  .util-bar-wrap { position: relative; padding-top: 12px; margin-top: 4px; }
  .util-bar-zones {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.35;
    margin-bottom: -16px;
  }
  .util-zone { height: 100%; }
  .util-zone.z-good { background: var(--good); }
  .util-zone.z-amber { background: var(--warn); }
  .util-zone.z-red { background: var(--bad); }
  .util-zone.z-deepred { background: var(--bad-deep); }
  .util-bar-track {
    position: relative;
    background: rgba(255,255,255,0.04);
    height: 28px; border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 8px;
  }
  .util-bar-fill {
    height: 100%; border-radius: 7px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    position: relative;
    background: linear-gradient(90deg, var(--good), #7CF1DF);
    box-shadow: 0 0 24px rgba(4,225,203,0.45);
  }
  .util-bar-fill.zone-amber { background: linear-gradient(90deg, var(--warn), #FFE066); box-shadow: 0 0 24px rgba(252,192,3,0.45); }
  .util-bar-fill.zone-red { background: linear-gradient(90deg, var(--bad), #FF8FB1); box-shadow: 0 0 24px rgba(255,83,138,0.45); }
  .util-bar-fill.zone-deepred { background: linear-gradient(90deg, #9c1f1f, var(--bad-deep)); box-shadow: 0 0 30px rgba(211,47,47,0.55); }
  .util-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    background-size: 200% 100%;
    animation: shimmer 3.5s infinite;
  }
  /* Subtle tick lines inside the track at 70/80/90/100 */
  .util-bar-tick {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.14);
    pointer-events: none;
  }
  .util-bar-tick span { display: none; }
  .util-bar-marker {
    position: absolute; top: 18px;
    width: 1px;
    /* 80% on a 0-130% scale = 61.54% of width */
    left: 61.54%;
    pointer-events: none;
  }
  .util-bar-marker-line {
    width: 2px; height: 36px;
    background: var(--text);
    margin-left: -1px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
  }
  .util-bar-marker-label {
    position: absolute; top: -22px; left: 0;
    transform: translateX(-50%);
    font-size: 10px; color: var(--text-2);
    font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(0,0,0,0.65);
    padding: 2px 8px; border-radius: 4px;
    border: 1px solid var(--border-strong);
  }
  .util-bar-axis {
    position: relative;
    height: 14px;
    margin-top: 8px;
    font-size: 10px; color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .util-bar-axis-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .util-bar-axis-tick:first-child { transform: translateX(0); }
  .util-bar-axis-tick:last-child { transform: translateX(-100%); }

  /* Leakage breakdown card */
  .util-leak {
    background: rgba(15, 20, 28, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .util-leak-title {
    font-size: 12px; color: var(--text-2); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .leak-bars { display: flex; flex-direction: column; gap: 10px; }
  .leak-row { display: grid; grid-template-columns: 110px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
  .leak-row .leak-name { color: var(--text); }
  .leak-row .leak-track { background: rgba(255,255,255,0.04); height: 14px; border-radius: 4px; overflow: hidden; }
  .leak-row .leak-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
  .leak-row .leak-hours { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
  .util-leak-foot { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

  /* Trend row */
  .util-trend-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  }
  @media (max-width: 1100px) { .util-trend-row { grid-template-columns: 1fr; } }
  .util-trend-card {
    background: rgba(15, 20, 28, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .util-trend-head { margin-bottom: 12px; }
  .util-trend-title { font-size: 13px; font-weight: 600; color: var(--text); }
  .util-trend-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

  /* HERO */
  .hero {
    /* Solid fill — only the top Capacity block keeps glass */
    background: rgba(15, 19, 27, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  }
  .hero-tag {
    display: inline-block;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,179,255,0.12);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
  }
  .hero-grid {
    /* 6 tiles in a 2-row grid: prominent tile (col-span 2, row-span 2) + 5 standard tiles
       Layout: 4-col grid; tile 1 spans cols 1-2 + rows 1-2 (prominent)
                            tiles 2-5 fill cols 3-4 across both rows
                            tile 6 spans cols 1-2 row 2 — wait, this doesn't work as a clean 6-tile layout.
       Better: 4-col grid, prominent spans cols 1-2 rows 1-2 (1.5x area). Other 5 tiles fill the remaining 4 cells across rows 1-2 — that's only 4 slots. So we need to drop one tile or rethink.
       Going with: 4-col grid, prominent spans rows 1-2 in col 1, then 4 standard tiles in cols 2-4 across rows 1-2 (2 per row × 3 cols = 6 cells, minus 1 for the bottom of the prominent = 5 standard slots — but we have 5 standard tiles. Perfect.
    */
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }
  .hero-tile.hero-prominent {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: linear-gradient(135deg, rgba(0,179,255,0.16), rgba(4,225,203,0.06));
    border-color: rgba(0,179,255,0.45);
    padding: 22px 24px;
  }
  .hero-tile.hero-prominent .hero-value {
    font-size: 44px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 12px;
  }
  .hero-tile.hero-prominent .hero-label {
    font-size: 11px;
  }
  .hero-tile.hero-prominent .hero-sub {
    margin-top: 14px;
    font-size: 13px;
  }
  @media (max-width: 1100px) {
    .hero-grid {
      grid-template-columns: 1.5fr repeat(2, 1fr);
      grid-template-rows: 1fr 1fr 1fr;
    }
    .hero-tile.hero-prominent { grid-column: 1; grid-row: 1 / span 2; }
  }
  @media (max-width: 768px) {
    .hero-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: none;
    }
    .hero-tile.hero-prominent {
      grid-column: 1 / span 2;
      grid-row: auto;
    }
    .hero-tile.hero-prominent .hero-value { font-size: 36px; }
  }
  .hero-tile {
    background: rgba(20, 26, 36, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  /* Circular icon badge in the top-right of each hero tile */
  .hero-icon {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,179,255,0.14);
    border: 1px solid rgba(0,179,255,0.32);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
  }
  .hero-icon .ti-icon {
    width: 16px; height: 16px;
    stroke-width: 2;
  }
  .hero-tile.hero-prominent .hero-icon {
    width: 38px; height: 38px;
    background: rgba(0,179,255,0.22);
    border-color: rgba(0,179,255,0.55);
  }
  .hero-tile.hero-prominent .hero-icon .ti-icon {
    width: 18px; height: 18px;
  }
  .hero-tile.primary {
    background: linear-gradient(135deg, rgba(0,179,255,0.2), rgba(0,179,255,0.05));
    border-color: rgba(0,179,255,0.4);
  }
  .hero-tile.leave-work {
    background: linear-gradient(135deg, rgba(252,192,3,0.15), rgba(252,192,3,0.04));
    border-color: rgba(252,192,3,0.35);
  }
  .badge-amber {
    display: inline-block;
    font-size: 9px;
    background: rgba(252,192,3,0.25);
    color: var(--warn);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 4px;
    vertical-align: middle;
  }
  .leak-row.highlight .leak-name {
    color: var(--warn); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
  }
  .leak-row.highlight .leak-name .ti-icon {
    width: 13px; height: 13px;
    color: var(--warn);
    margin: 0;
    flex-shrink: 0;
  }
  .heatmap-cell.leave-work {
    box-shadow: inset 0 0 0 1.5px var(--warn);
  }
  .leave-mark {
    color: var(--warn);
    font-size: 11px;
    margin-left: 4px;
    cursor: help;
  }
  .hero-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
  .hero-label {
    font-size: 10px; color: var(--text-2);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  }
  .hero-value {
    /* Plain white; gradient reserved only for the Capacity Util big metric. */
    font-size: 32px; font-weight: 700; margin-top: 8px;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }
  /* (Primary tile gradient removed — primary tile no longer exists in hero strip.) */
  .hero-meter {
    height: 4px; background: rgba(255,255,255,0.06);
    border-radius: 2px; margin-top: 10px; overflow: hidden;
  }
  .hero-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hero-meter-fill.green { background: linear-gradient(90deg, var(--good), #7CF1DF); }
  .hero-sub { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

  /* SECTIONS — H1/H2 distinction with structured spacing.
     - .section.section-primary  = top tier (Capacity, Executive Snapshot)
     - .section                  = standard
     - .section + .section       = inherits 36px gap; primary group gets 56px below
  */
  .section { margin-bottom: 36px; }
  .section.section-primary { margin-bottom: 56px; }
  .section-title {
    /* Sentence case per Brand Central — primary headlines/subtitles must not be all-caps. */
    font-size: 16px; font-weight: 700; color: var(--text);
    letter-spacing: -0.1px;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
  }
  .section-title.h1 {
    font-size: 18px; color: var(--text);
    letter-spacing: 0;
    border-left-width: 4px;
    padding-left: 14px;
    margin-bottom: 18px;
    font-weight: 700;
  }
  .section-title.h1::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 12px var(--accent);
    transform: translateY(-2px);
  }
  /* Section group separator — adds breathing room between Strategic Insights vs Activity vs Pipeline groups */
  .section-group-break { height: 24px; }

  /* CARDS */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

  .card {
    /* Solid fill — glassmorphism reserved for the top Capacity block */
    background: rgba(15, 19, 27, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color 0.2s ease;
  }
  .card:hover { border-color: var(--border-strong); }
  .card-head { margin-bottom: 16px; }
  .card-title { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.1px; }
  .card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

  .chart-wrap { position: relative; height: 280px; }
  .chart-wrap canvas { max-height: 280px; }
  .doughnut-wrap { height: 220px; }
  .doughnut-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; pointer-events: none;
  }
  .doughnut-center-value { font-size: 22px; font-weight: 700; color: var(--text); }
  .doughnut-center-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

  .legend {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 14px;
    font-size: 12px;
  }
  .legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
  .legend-swatch { width: 10px; height: 10px; border-radius: 3px; }

  /* CUSTOMER BARS */
  .cust-bars { display: flex; flex-direction: column; gap: 10px; }
  .cust-row-wrap { display: flex; flex-direction: column; }
  .cust-bar {
    display: grid; grid-template-columns: 14px 240px 1fr 60px 80px;
    gap: 12px; align-items: center; font-size: 13px;
  }
  .cust-bar.clickable {
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
    transition: background 0.15s ease;
    margin: 0 -6px;
  }
  .cust-bar.clickable:hover { background: rgba(0,179,255,0.06); }
  .cust-bar.expanded { background: rgba(0,179,255,0.1); }
  .cust-chevron {
    color: var(--muted); font-size: 10px;
    transition: transform 0.15s ease;
  }
  .cust-bar.expanded .cust-chevron { color: var(--accent); }
  .cust-drill {
    background: rgba(15,20,28,0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 8px 0 6px;
    padding: 16px;
  }
  .cust-drill-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 20px;
  }
  @media (max-width: 1100px) { .cust-drill-grid { grid-template-columns: 1fr; } }
  .drill-col-title {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; font-weight: 600;
  }
  .drill-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .drill-table td {
    padding: 6px 0; border-bottom: 1px solid var(--border);
    vertical-align: top;
  }
  .drill-table tr:last-child td { border-bottom: none; }
  .drill-table td.num {
    text-align: right; font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-2);
  }
  .muted-small { color: var(--muted); font-size: 10px; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
  .drill-month-row {
    display: grid; grid-template-columns: 32px 1fr 50px;
    gap: 8px; align-items: center; margin-bottom: 6px; font-size: 12px;
  }
  .drill-month-label { color: var(--text-2); font-weight: 500; }
  .drill-month-track { background: rgba(255,255,255,0.04); height: 12px; border-radius: 3px; overflow: hidden; }
  .drill-month-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; }
  .drill-month-hours { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
  .drill-recent-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .drill-recent-item:last-child { border-bottom: none; }
  .drill-recent-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; margin-bottom: 3px;
  }
  .drill-recent-date { color: var(--muted); }
  .drill-recent-hours { color: var(--text-2); font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
  .drill-recent-proj { font-size: 12px; color: var(--text); font-weight: 500; }
  .drill-recent-note { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
  .cust-bar .name {
    color: var(--text); font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    min-width: 0;
  }
  .cust-bar .name .name-text {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1 1 auto; min-width: 0;
  }
  .cust-bar .cust-spark {
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.85;
  }
  .cust-bar .cust-trend {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
    cursor: help;
  }
  .cust-bar .cust-trend-up   { background: rgba(4,225,203,0.18); color: var(--good); }
  .cust-bar .cust-trend-down { background: rgba(255,83,138,0.18); color: var(--bad); }
  .cust-bar .cust-trend-flat { background: rgba(144,208,254,0.14); color: var(--muted); }
  .cust-bar .track {
    background: rgba(255,255,255,0.04);
    border-radius: 4px; height: 20px; position: relative; overflow: hidden;
  }
  .cust-bar .fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  .cust-bar .fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
  }
  /* Stacked-by-category fill for the customer bars */
  .cust-bar .fill-stack {
    height: 100%; border-radius: 4px;
    display: flex; overflow: hidden;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cust-bar .fill-seg {
    height: 100%;
    transition: filter 0.15s ease;
  }
  .cust-bar .fill-seg:hover { filter: brightness(1.15); }
  .cust-bar .fill-seg.cat-strategic        { background: var(--c-strategic); }
  .cust-bar .fill-seg.cat-ktlo             { background: var(--c-ktlo); }
  .cust-bar .fill-seg.cat-ld               { background: var(--c-ld); }
  .cust-bar .fill-seg.cat-internal         { background: var(--c-internal); }
  .cust-bar .fill-seg.cat-firefighting     { background: var(--c-firefighting); }
  .cust-bar .fill-seg.cat-incidentmanagement { background: var(--c-incident); }
  .cust-bar .fill-seg.cat-other            { background: var(--c-other); }
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  .cust-bar .hours { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .cust-bar .pipe { text-align: right; color: var(--good); font-size: 11px; font-weight: 600; }
  .cust-bar .pipe.zero { color: var(--muted); font-weight: 400; }

  /* REATTRIBUTION BANNER */
  .attribution-banner {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(0,179,255,0.06);
    border: 1px solid rgba(0,179,255,0.18);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-2);
    display: flex; align-items: center; gap: 8px;
    line-height: 1.5;
  }
  .attribution-banner .info-icon {
    width: 16px; height: 16px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0,179,255,0.4);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
    cursor: help; position: relative;
  }
  .attribution-banner .info-icon:hover .methodology-tip {
    display: block;
  }
  .methodology-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px; color: var(--text);
    width: 320px;
    z-index: 20;
    line-height: 1.5;
    text-align: left;
    cursor: default;
    pointer-events: none;
  }
  .methodology-tip strong { color: var(--accent); }
  .attribution-pct {
    color: var(--accent); font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  /* ACTIVITY STRIP — tight 7-row × 13-col GitHub-style grid with stacked-bar cells */
  .strip-wrap { padding: 4px 0; }
  .strip-grid {
    display: grid;
    grid-template-rows: repeat(7, 18px);   /* Mon-Sun */
    grid-auto-flow: column;
    grid-auto-columns: 18px;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .strip-cell {
    width: 18px; height: 18px;
    border-radius: 3px;
    background: rgba(20,26,36,0.55);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: flex; flex-direction: column-reverse; /* stack from bottom */
    overflow: hidden;
  }
  .strip-cell:hover {
    transform: scale(1.4); z-index: 8;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    border-color: var(--border-strong);
  }
  .strip-cell.weekend {
    background: rgba(140,160,195,0.04);
    border-style: dashed;
    border-color: rgba(140,160,195,0.16);
  }
  .strip-cell.leave-only {
    background-color: #D17DFE;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.22) 0 1.5px, transparent 1.5px 4px);
    border-color: rgba(209,125,254,0.55);
  }
  .strip-cell.leave-work {
    box-shadow: inset 0 0 0 1.5px var(--warn);
  }
  .strip-cat {
    width: 100%;
    flex-shrink: 0;
  }
  .strip-cat.cat-strategic        { background: var(--c-strategic); }
  .strip-cat.cat-ktlo             { background: var(--c-ktlo); }
  .strip-cat.cat-ld               { background: var(--c-ld); }
  .strip-cat.cat-internal         { background: var(--c-internal); }
  .strip-cat.cat-firefighting     { background: var(--c-firefighting); }
  .strip-cat.cat-incidentmanagement { background: var(--c-incident); }
  .strip-cat.cat-other            { background: var(--c-other); }
  .strip-cell[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) scale(0.71); /* Counter the parent's 1.4x scale so tooltip stays normal-sized */
    transform-origin: bottom center;
    white-space: pre-line;
    background: rgba(0,0,0,0.95);
    color: var(--text);
    padding: 8px 12px; border-radius: 6px;
    font-size: 11px; pointer-events: none; z-index: 30;
    border: 1px solid var(--border-strong);
    text-align: left;
    min-width: 170px;
    line-height: 1.5;
  }
  .strip-legend {
    display: flex; flex-wrap: wrap; gap: 12px 16px;
    margin-top: 14px;
    font-size: 11px; color: var(--text-2);
  }
  .strip-leg-leave {
    width: 14px; height: 14px; border-radius: 3px;
    display: inline-block;
    background-color: #D17DFE;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.3) 0 1.5px, transparent 1.5px 4px);
  }
  .strip-leg-leavework {
    width: 14px; height: 14px; border-radius: 3px;
    display: inline-block;
    background: var(--c-strategic);
    box-shadow: inset 0 0 0 1.5px var(--warn);
  }
  .strip-leg-weekend {
    width: 14px; height: 14px; border-radius: 3px;
    display: inline-block;
    background: rgba(140,160,195,0.04);
    border: 1px dashed rgba(140,160,195,0.4);
  }

  /* CALENDAR (replaces classic GitHub-style heatmap) */
  .cal-row {
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    gap: 24px;
    align-items: start;
  }
  @media (max-width: 900px) { .cal-row { grid-template-columns: 1fr; } }
  .cal-wrap { margin-top: 0; }
  .cal-side {
    padding-top: 4px;
  }
  .cal-side-title {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; font-weight: 600;
  }
  .cal-side-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px !important;
    margin-top: 0 !important;
  }
  .cal-glance {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12px;
  }
  .cal-glance-row {
    display: grid; grid-template-columns: 1fr auto;
    gap: 10px; align-items: center;
    color: var(--text-2);
  }
  .cal-glance-row .glance-label { color: var(--muted); }
  .cal-glance-row .glance-value { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
  .cal-dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    text-align: center;
    font-weight: 600;
    max-width: 560px;
  }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 560px;
  }
  .cal-cell {
    aspect-ratio: 1;
    background: rgba(20,26,36,0.45);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease;
    cursor: pointer;
    min-height: 60px;
  }
  .cal-cell:hover { transform: scale(1.06); z-index: 5; border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
  .cal-cell .cal-day-num {
    position: absolute;
    top: 4px; left: 6px;
    font-size: 10px; color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    z-index: 2;
    line-height: 1.1;
  }
  .cal-cell.month-start .cal-day-num {
    color: var(--accent);
  }
  .cal-cell .cal-day-num .cal-month-tag {
    display: block;
    font-size: 8px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1px;
  }
  .cal-circles-wrap {
    position: absolute;
    inset: 14px 4px 4px 4px;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 2px;
  }
  .cal-circle {
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  }
  .cal-circle.cat-strategic        { background: var(--c-strategic); }
  .cal-circle.cat-ktlo             { background: var(--c-ktlo); }
  .cal-circle.cat-ld               { background: var(--c-ld); }
  .cal-circle.cat-internal         { background: var(--c-internal); }
  .cal-circle.cat-firefighting     { background: var(--c-firefighting); }
  .cal-circle.cat-incidentmanagement { background: var(--c-incident); }
  .cal-circle.cat-other            { background: var(--c-other); }
  /* Special cell states */
  .cal-cell.weekend {
    background: rgba(140,160,195,0.04);
    border-style: dashed;
    border-color: rgba(140,160,195,0.18);
  }
  .cal-cell.weekend .cal-day-num { color: rgba(140,160,195,0.45); }
  .cal-cell.leave-only {
    background-color: #D17DFE;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 5px);
    border-color: rgba(209,125,254,0.5);
  }
  .cal-cell.leave-only .cal-day-num { color: rgba(255,255,255,0.85); }
  .cal-cell.leave-work {
    box-shadow: inset 0 0 0 1.5px var(--warn);
  }
  .cal-cell[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    white-space: pre-line;
    background: rgba(0,0,0,0.95);
    color: var(--text);
    padding: 8px 12px; border-radius: 6px;
    font-size: 11px; pointer-events: none; z-index: 20;
    border: 1px solid var(--border-strong);
    text-align: left;
    min-width: 160px;
    line-height: 1.5;
  }
  .heatmap-cell {
    /* Legacy class retained for any leftover references — render path uses .cal-cell now. */
    display: none;
  }
  /* Leave-only days (no work) — distinct purple, NOT same as Incident Mgmt */
  .heatmap-cell.leave-only {
    background-color: #D17DFE;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 5px);
  }
  /* Weekend cells — subtle so they don't read as "missing data" */
  .heatmap-cell.weekend {
    background: rgba(140,160,195,0.06);
    border: 1px dashed rgba(140,160,195,0.18);
  }
  /* Legend dots for the new calendar circle scheme */
  .hl-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  }
  .hl-dot.cat-strategic        { background: var(--c-strategic); }
  .hl-dot.cat-ktlo             { background: var(--c-ktlo); }
  .hl-dot.cat-ld               { background: var(--c-ld); }
  .hl-dot.cat-internal         { background: var(--c-internal); }
  .hl-dot.cat-firefighting     { background: var(--c-firefighting); }
  .hl-dot.cat-incidentmanagement { background: var(--c-incident); }
  .heatmap-legend {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px; font-size: 11px; color: var(--text-2);
  }
  .heatmap-legend .hl-group {
    display: flex; align-items: center; gap: 6px;
  }
  .hl-cell { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
  .hl-cell.cat-strategic        { background: var(--c-strategic); }
  .hl-cell.cat-ktlo             { background: var(--c-ktlo); }
  .hl-cell.cat-firefighting     { background: var(--c-firefighting); }
  .hl-cell.cat-incidentmanagement { background: var(--c-incident); }
  .hl-cell.cat-ld               { background: var(--c-ld); }
  .hl-cell.cat-internal         { background: var(--c-internal); }
  .hl-cell.hl-leave {
    background-color: #D17DFE;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.3) 0 2px, transparent 2px 5px);
  }
  .hl-cell.hl-leavework {
    background: var(--c-strategic);
    box-shadow: inset 0 0 0 1.5px var(--warn);
  }
  .hl-cell.hl-weekend {
    background: rgba(140,160,195,0.06);
    border: 1px dashed rgba(140,160,195,0.4);
  }

  /* PHASE BARS */
  .phase-bars { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
  .phase-bar {
    display: grid; grid-template-columns: 110px 1fr 100px;
    gap: 12px; align-items: center;
  }
  .phase-bar .ph-name { font-size: 13px; color: var(--text); font-weight: 500; }
  .phase-bar .ph-track {
    background: rgba(255,255,255,0.04);
    height: 24px; border-radius: 6px; overflow: hidden;
  }
  .phase-bar .ph-fill {
    height: 100%; border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .phase-bar .ph-fill.pre { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
  .phase-bar .ph-fill.post { background: linear-gradient(90deg, var(--good), #7CF1DF); }
  .phase-bar .ph-fill.internal { background: linear-gradient(90deg, var(--muted), #B5C9DC); }
  .phase-bar .ph-value { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--good); font-weight: 600; text-align: right; }

  /* RECENT ACTIVITY TOOLBAR */
  .recent-toolbar {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 12px;
  }
  .recent-search {
    flex: 1;
    background: rgba(20, 26, 36, 0.72);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .recent-search::placeholder { color: var(--muted); }
  .recent-search:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(20, 26, 36, 0.95);
  }
  .recent-count {
    font-size: 11px; color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .data-table.sortable th { cursor: pointer; user-select: none; }
  .data-table.sortable th:hover { color: var(--accent); }
  .data-table.sortable th .sort-indicator {
    display: inline-block;
    margin-left: 4px;
    color: var(--muted);
    font-size: 9px;
    width: 8px;
  }
  .data-table.sortable th.sorted .sort-indicator { color: var(--accent); }

  /* TABLES */
  .data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .data-table th, .data-table td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }
  .data-table th {
    color: var(--muted); font-weight: 600; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-strong);
  }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tr:hover td { background: rgba(0,179,255,0.04); }
  .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
  .data-table td.money { text-align: right; color: var(--good); font-weight: 600; font-family: 'JetBrains Mono', monospace; }

  /* WEEK IN REVIEW STRIP */
  .week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }
  @media (max-width: 1100px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 768px)  { .week-grid { grid-template-columns: repeat(2, 1fr); } }
  .week-cell {
    background: rgba(2, 30, 75, 0.32);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 140px;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .week-cell:hover { border-color: var(--border-strong); }
  .week-cell.today {
    background: linear-gradient(135deg, rgba(0,179,255,0.16), rgba(2,42,192,0.06));
    border-color: rgba(0,179,255,0.5);
    box-shadow: 0 4px 18px rgba(0,179,255,0.18);
  }
  .week-cell.future { opacity: 0.45; }
  .week-cell.weekend {
    background: rgba(144, 208, 254, 0.04);
    border-style: dashed;
  }
  .week-cell.leave {
    background-color: rgba(209, 125, 254, 0.16);
    border-color: rgba(209, 125, 254, 0.45);
  }
  .week-head {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
  }
  .week-dow {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
    color: var(--muted);
  }
  .week-cell.today .week-dow { color: var(--accent); }
  .week-date {
    font-size: 18px; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  .week-total {
    font-size: 13px; font-weight: 700; color: var(--text-2);
    font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
  }
  .week-cell.today .week-total { color: var(--accent); }
  .week-entries {
    display: flex; flex-direction: column; gap: 5px;
    margin-top: 2px;
  }
  .week-entry {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--text-2);
    line-height: 1.3;
  }
  .week-cat {
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0;
  }
  .week-cat.cat-strategic        { background: var(--c-strategic); }
  .week-cat.cat-ktlo             { background: var(--c-ktlo); }
  .week-cat.cat-ld               { background: var(--c-ld); }
  .week-cat.cat-internal         { background: var(--c-internal); }
  .week-cat.cat-firefighting     { background: var(--c-firefighting); }
  .week-cat.cat-incidentmanagement { background: var(--c-incident); }
  .week-cat.cat-other            { background: var(--c-other); }
  .week-entry-label {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
  }
  .notes-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
  }
  .notes-icon:hover { border-color: var(--accent); background: rgba(0,179,255,0.12); }
  .slide-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 8, 24, 0.55);
    z-index: 40;
  }
  .slide-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    z-index: 41;
    background: #021e4b;
    border-left: 1px solid var(--border);
    color: var(--text);
    padding: 20px 22px 32px;
    overflow: auto;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
  }
  .slide-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 8px;
  }
  .slide-head h2 { margin: 0; font-size: 18px; }
  .slide-close, .slide-primary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
  }
  .slide-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: white; }
  .slide-context, .notes-warning, .slide-subhead { color: var(--text-2); font-size: 12px; }
  .notes-warning { margin: 0 0 12px; }
  .slide-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
  .slide-field textarea, .followup-form input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
  }
  .share-toggle { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 13px; }
  .notes-error { color: var(--bad); min-height: 1.2em; font-size: 12px; }
  .slide-subhead { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
  .slide-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .slide-item { font-size: 13px; line-height: 1.4; color: var(--text-2); }
  .followup-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .followup-form input[type="text"], .followup-form input:not([type="date"]) { flex: 1 1 160px; }
  .followup-form input[type="date"] { flex: 0 0 140px; }
  body.read-only #notesSave, body.read-only #notesFollowupForm { display: none; }
  .placeholder-row.drill-link { cursor: pointer; }
  .placeholder-row.drill-link:hover { color: var(--accent); }
  .week-empty {
    font-size: 11px; color: var(--muted);
    font-style: italic;
  }

  /* MANAGEMENT OBSERVATIONS */
  .observations-list { display: flex; flex-direction: column; gap: 12px; }
  .observation {
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    background: rgba(2, 30, 75, 0.42);
  }
  .observation-green { border-left-color: var(--good); background: rgba(4,225,203,0.06); }
  .observation-amber { border-left-color: var(--warn); background: rgba(252,192,3,0.07); }
  .observation-red   { border-left-color: var(--bad);  background: rgba(255,83,138,0.07); }
  .observation-title {
    font-size: 12px; font-weight: 700;
    color: var(--text); margin-bottom: 4px;
    letter-spacing: 0.2px;
  }
  .observation-body {
    font-size: 12px; line-height: 1.5;
    color: var(--text-2); font-weight: 500;
  }

  /* OPEN ACTION ITEMS */
  .actions-list { display: flex; flex-direction: column; }
  .action-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .action-item:last-child { border-bottom: none; }
  .action-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
  }
  .action-body { flex: 1; min-width: 0; }
  .action-title {
    font-size: 13px; font-weight: 600;
    color: var(--text); line-height: 1.35;
    margin-bottom: 2px;
  }
  .action-meta {
    font-size: 11px; color: var(--muted);
    line-height: 1.4;
  }

  /* ENABLEMENT */
  .enb-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 18px;
  }
  .enb-stat {
    background: rgba(2, 30, 75, 0.42);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .enb-stat-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.4px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .enb-stat-value {
    font-size: 22px; font-weight: 700; color: var(--text);
    line-height: 1.2;
  }
  .enb-stat-sub {
    font-size: 11px; color: var(--muted);
    margin-top: 2px;
  }
  .enb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .enb-col-title {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .enb-audience-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .enb-audience-row:last-child { border-bottom: none; }
  .enb-aud-tag {
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 999px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
  }
  .enb-aud-customer { background: rgba(0,179,255,0.18); color: var(--c-strategic); }
  .enb-aud-internal { background: rgba(4,225,203,0.18); color: var(--c-ld); }
  .enb-aud-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .enb-aud-meta {
    font-size: 11px; color: var(--muted);
    text-align: right; white-space: nowrap;
  }
  .enb-recent-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .enb-recent-row:last-child { border-bottom: none; }
  .enb-recent-head {
    display: flex; justify-content: space-between; gap: 12px;
    margin-bottom: 3px;
  }
  .enb-recent-aud {
    font-size: 13px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .enb-recent-date {
    font-size: 11px; color: var(--muted);
    flex-shrink: 0;
  }
  .enb-recent-topic {
    font-size: 11px; color: var(--text-2);
    line-height: 1.4;
  }
  @media (max-width: 768px) {
    .enb-summary { grid-template-columns: repeat(2, 1fr); }
    .enb-grid { grid-template-columns: 1fr; }
  }

  /* CUSTOMER COVERAGE STATUS DOT */
  .cust-status {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: help;
  }
  .cust-status-active  { background: var(--good); box-shadow: 0 0 6px rgba(4,225,203,0.6); }
  .cust-status-recent  { background: var(--warn); }
  .cust-status-dormant { background: var(--muted); opacity: 0.4; }
  .cust-status-closed  { background: transparent; border: 1px solid var(--muted); opacity: 0.6; }

  /* PILLS */
  .pill {
    display: inline-block;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.3px;
  }
  .pill-strategic { background: rgba(0,179,255,0.18); color: var(--c-strategic); }
  .pill-ktlo { background: rgba(252,192,3,0.18); color: var(--c-ktlo); }
  .pill-ld { background: rgba(4,225,203,0.18); color: var(--c-ld); }
  .pill-internal { background: rgba(139,151,166,0.18); color: var(--c-internal); }
  .pill-firefighting { background: rgba(255,83,138,0.18); color: var(--c-firefighting); }
  .pill-incident { background: rgba(209,125,254,0.18); color: var(--c-incident); }

  /* SECTION TITLE ICONS */
  .section-title .ti-icon {
    display: inline-block; vertical-align: middle;
    width: 16px; height: 16px;
    margin-right: 8px;
    margin-top: -2px;
    color: var(--accent);
    stroke-width: 2;
  }
  .section-title.h1 .ti-icon {
    width: 18px; height: 18px;
    margin-right: 10px;
  }
  /* Drop the auto ::before glow dot when an icon is present */
  .section-title.h1.has-icon::before { display: none; }

  /* ACCOLADES */
  .accolades-card {
    background: linear-gradient(135deg, rgba(252,192,3,0.10), rgba(255,215,90,0.04));
    border-color: rgba(252,192,3,0.35);
  }
  .accolade-grid {
    /* auto-fit so 2 cards fill the row instead of leaving a third-column gap */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-items: stretch;
  }
  @media (max-width: 768px)  { .accolade-grid { grid-template-columns: 1fr; } }
  .accolade-card {
    background: linear-gradient(135deg, rgba(252,192,3,0.18), rgba(255,210,138,0.06));
    border: 1px solid rgba(252,192,3,0.4);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .accolade-card .accolade-body {
    flex: 1;
  }
  .accolade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(252,192,3,0.18);
    border-color: rgba(252,192,3,0.7);
  }
  .accolade-tag {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(252,192,3,0.22);
    color: var(--warn);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(252,192,3,0.35);
    line-height: 1.3;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .accolade-tag .ti-icon { width: 10px; height: 10px; color: var(--warn); margin: 0; }
  .accolade-meta {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; font-size: 11px;
  }
  .accolade-month {
    background: rgba(252,192,3,0.25);
    color: var(--warn);
    padding: 2px 8px; border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .accolade-client {
    color: var(--text-2); font-size: 11px;
  }
  .accolade-project {
    font-weight: 700; color: var(--text);
    font-size: 14px; margin-bottom: 8px;
    padding-right: 36px;
    line-height: 1.3;
  }
  .accolade-body {
    color: var(--text-2);
    font-size: 13px; line-height: 1.55;
  }
  .accolade-empty {
    color: var(--muted); font-size: 13px;
    grid-column: 1 / -1; text-align: center;
    padding: 24px;
  }

  /* REEL CARDS */
  .reel { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
  .reel::-webkit-scrollbar { width: 6px; }
  .reel::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 3px; }
  .reel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

  .reel-item {
    background: linear-gradient(135deg, rgba(0,179,255,0.05), rgba(2,42,192,0.03));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    border-left: 3px solid var(--accent);
  }
  .reel-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
  .reel-item.challenge { border-left-color: var(--warn); background: linear-gradient(135deg, rgba(252,192,3,0.05), rgba(255,83,138,0.03)); }
  .reel-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; }
  .reel-month {
    background: var(--surface-2); color: var(--muted);
    padding: 2px 7px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 600;
  }
  .reel-client { color: var(--text-2); font-size: 11px; }
  .reel-project { font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 6px; }
  .reel-body { color: var(--text-2); font-size: 13px; line-height: 1.55; }

  .muted { color: var(--muted); font-size: 12px; }
  code {
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
  }
  .attr-mark { color: var(--accent); font-size: 10px; margin-left: 4px; cursor: help; }

  footer { padding: 24px 32px 32px; max-width: 1480px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
  footer .footer-wordmark {
    display: flex; justify-content: center;
    margin: 0 auto 16px;
    opacity: 0.55;
  }
  footer .footer-wordmark svg {
    width: 140px; height: auto;
    display: block;
  }
  footer .confidential-mark {
    margin-top: 14px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
  }
  footer .copyright-line {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
  }

  /* RESPONSIVE — tablet & narrow */
  @media (max-width: 1100px) {
    main { padding: 20px 20px 60px; }
    header.topbar { padding: 14px 20px; }
    .util-block { padding: 20px 22px; }
    .hero { padding: 20px 22px; }
    .util-big-value { font-size: 52px; letter-spacing: -1.5px; }
    .hero-value { font-size: 26px; }
    .heatmap { grid-template-columns: repeat(10, 1fr); }
    .util-bar-axis-tick { font-size: 9px; }
  }
  @media (max-width: 768px) {
    main { padding: 16px 14px 60px; }
    header.topbar { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
    .brand-title { font-size: 13px; }
    .brand-sub { font-size: 11px; }
    .util-block { padding: 16px 16px; border-radius: 14px; }
    .hero { padding: 16px 16px; border-radius: 14px; }
    .util-big-value { font-size: 40px; letter-spacing: -1px; }
    .util-big-label { font-size: 10px; }
    .util-explainer { font-size: 11px; padding: 6px 10px; max-width: none; }
    .util-secondary-block { align-items: stretch; width: 100%; }
    .util-commitment { max-width: none; }
    .util-secondary > div { justify-content: space-between; }
    .util-bar-track { height: 22px; }
    .util-bar-axis-tick { font-size: 9px; }
    .util-bar-marker-label { font-size: 9px; padding: 1px 6px; }
    .hero-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-tile { padding: 12px 14px; }
    .hero-value { font-size: 22px; }
    .hero-label { font-size: 10px; }
    .hero-sub { font-size: 11px; }
    .section-title { font-size: 12px; padding-left: 8px; }
    .card { padding: 14px 16px; border-radius: 12px; }
    .card-title { font-size: 13px; }
    .card-sub { font-size: 11px; }
    .chart-wrap { height: 220px; }
    .chart-wrap canvas { max-height: 220px; }
    .heatmap { grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .heatmap-legend { gap: 8px; font-size: 10px; }
    .cust-bar { grid-template-columns: 12px 110px 1fr 50px 70px; gap: 8px; font-size: 12px; }
    .cust-bar .name { font-size: 12px; }
    .cust-drill-grid { grid-template-columns: 1fr; gap: 14px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 8px; }
    .data-table th { font-size: 10px; }
    .accolade-grid { grid-template-columns: 1fr; gap: 10px; }
    .accolade-card { padding: 14px; }
    .recent-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .recent-search { font-size: 13px; padding: 10px 14px; }
    .recent-count { text-align: right; font-size: 10px; }
    .period-pill { padding: 6px 12px; font-size: 11px; }
    .period-bar { gap: 8px; }
    /* Larger tap targets on touch */
    .btn { min-height: 36px; padding: 8px 14px; }
  }
  @media (max-width: 480px) {
    .hero-grid { grid-template-columns: 1fr; }
    .util-headline-row { gap: 16px; }
    .util-big-value { font-size: 36px; }
    .heatmap { grid-template-columns: repeat(5, 1fr); }
    .cust-bar { grid-template-columns: 10px 1fr 50px; gap: 6px; }
    .cust-bar .track { display: none; }
    .cust-bar .pipe { grid-column: 2; font-size: 10px; opacity: 0.7; padding-left: 0; text-align: left; }
    .cust-bar .hours { font-size: 11px; }
  }

  /* TOUCH-FRIENDLY TOOLTIPS */
  /* On touch devices (no hover capability), expose hover-only tooltips by tap */
  @media (hover: none) and (pointer: coarse) {
    /* Heatmap tooltip: show on focus/active */
    .heatmap-cell { -webkit-tap-highlight-color: transparent; }
    .heatmap-cell:focus::before,
    .heatmap-cell:active::before {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
      background: rgba(0,0,0,0.95);
      color: var(--text);
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 11px;
      pointer-events: none;
      z-index: 10;
      border: 1px solid var(--border-strong);
    }
    /* Reattribution methodology tooltip on tap */
    .info-icon:focus .methodology-tip,
    .info-icon:active .methodology-tip { display: block; }
    .info-icon { -webkit-tap-highlight-color: transparent; }
    /* Trend arrow tooltip on tap */
    .trend-arrow:focus .trend-tip,
    .trend-arrow:active .trend-tip { display: block; }
    .trend-arrow { -webkit-tap-highlight-color: transparent; }
  }

  /* PRINT / PDF EXPORT */
  @media print {
    @page {
      size: A4;
      margin: 12mm;
    }
    html, body {
      background: white !important;
      color: #1a1f2c !important;
      font-size: 10pt;
      line-height: 1.4;
    }
    /* Hide background blobs, animations, status dot, buttons, period filter, sort indicators */
    .bg-blob,
    .status-dot,
    .meta .btn,
    .period-bar,
    .recent-toolbar,
    .sort-indicator,
    .info-icon .methodology-tip,
    .trend-tip,
    .heatmap-cell:hover::before {
      display: none !important;
    }
    /* Layout: full width, no sticky, no fixed */
    header.topbar {
      position: relative !important;
      background: white !important;
      border-bottom: 1px solid #ddd !important;
      padding: 8mm 0 6mm !important;
      box-shadow: none !important;
    }
    .brand-mark {
      box-shadow: none !important;
      background: transparent !important;
    }
    /* In print, switch to the Cloud Blue logo on white. The inlined SVG has paths
       with explicit fills (white + Cloud Blue 68); we override the white to a
       darker brand blue for legibility on white. */
    .brand-mark svg path[fill="#FFFFFF"] { fill: #00B3FF !important; }
    .brand-title, h1 { color: #001E5B !important; }
    .brand-sub, .subtitle, #asOf { color: #555 !important; }
    main {
      padding: 0 !important;
      max-width: none !important;
    }
    /* Cards: simplify glassmorphism for print */
    .card,
    .util-block,
    .hero,
    .util-leak,
    .util-trend-card,
    .accolades-card,
    .reel-item,
    .accolade-card {
      background: white !important;
      border: 1px solid #d8dde6 !important;
      backdrop-filter: none !important;
      box-shadow: none !important;
      page-break-inside: avoid;
      break-inside: avoid;
    }
    .util-block {
      background: linear-gradient(135deg, #eef2ff, #f0fdf6) !important;
      border-color: #c4cef0 !important;
    }
    .hero {
      background: linear-gradient(135deg, #eef2ff, #f5f0ff) !important;
      border-color: #c4cef0 !important;
    }
    /* Force readable text colors */
    body, .card, .hero-tile, .reel-item, .accolade-card,
    .card-title, .util-big-label, .hero-label, .util-trend-title,
    .accolade-project, .reel-project, .drill-col-title {
      color: #1a1f2c !important;
    }
    .hero-value, .util-big-value, .util-commit-value, .doughnut-center-value {
      color: #1a1f2c !important;
      -webkit-text-fill-color: #1a1f2c !important;
      background: none !important;
    }
    .card-sub, .hero-sub, .muted, .util-big-sub, .util-explainer,
    .util-commit-explainer, .accolade-body, .reel-body,
    .drill-recent-note, .util-leak-foot, .attribution-banner {
      color: #555 !important;
    }
    /* Section titles */
    .section-title {
      color: #1a1f2c !important;
      border-left-color: #00B3FF !important;
    }
    /* Pills: keep colored pills readable */
    .pill { border: 1px solid currentColor; }
    /* Tables */
    .data-table th, .data-table td {
      border-bottom-color: #e0e4ea !important;
    }
    .data-table th { color: #555 !important; }
    /* Hero tile borders */
    .hero-tile {
      background: white !important;
      border-color: #d8dde6 !important;
    }
    .hero-tile.primary {
      background: #eef2ff !important;
      border-color: #c4cef0 !important;
    }
    .hero-tile.leave-work {
      background: #fff8eb !important;
      border-color: #f5d99a !important;
    }
    /* Avoid splitting a section across pages where reasonable */
    .section { page-break-inside: avoid; break-inside: avoid; margin-bottom: 16pt !important; }
    .section-title { page-break-after: avoid; }
    /* Heatmap cells: keep visible on white background */
    .heatmap-cell {
      background: #f0f2f7 !important;
    }
    .heatmap-cell.weekend { background: #f8f9fb !important; border: 1px dashed #d8dde6 !important; }
    /* Footer and recent table — let them flow */
    .recent-toolbar { display: none !important; }
    /* Customer drill-downs: show only top-level bars in print (collapse details) */
    .cust-drill { display: none !important; }
    .cust-bar.expanded { background: white !important; }
    /* Trend arrows in headers: keep but flatten */
    .trend-arrow { background: transparent !important; border: 1px solid currentColor; padding: 1px 5px; }
  }

  .placeholder-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
  }
  .placeholder-stat-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 600;
  }
  .placeholder-stat-label {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
  }
  .placeholder-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
  .placeholder-row { font-size: 13px; color: var(--text-2); }

  .scope-pills {
    display: inline-flex;
    background: rgba(20, 26, 36, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
  }
  .scope-pill {
    background: transparent;
    border: none;
    color: var(--text-2);
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
  }
  .scope-pill:hover { color: var(--text); background: rgba(0,179,255,0.08); }
  .scope-pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
  }
  .scope-pill[disabled] { opacity: 0.4; cursor: wait; }
  .member-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--text-2);
  }
  .read-only-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa6b8;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
  }
  .permission-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 83, 138, 0.45);
    border-radius: 10px;
    background: rgba(255, 83, 138, 0.12);
    color: #ffb3c7;
  }
  body.read-only #recentSearch { opacity: 0.55; }
  .team-only[hidden],
  .me-only[hidden],
  .member-banner[hidden],
  .permission-notice[hidden],
  .collector-warning[hidden],
  #memberScope[hidden],
  #topCustomersSection[hidden] { display: none !important; }
  .collector-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 83, 138, 0.45);
    border-radius: 10px;
    background: rgba(255, 83, 138, 0.12);
    color: #ffb3c7;
  }
  .band-dist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
  .band-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
  .band-scroll { overflow-x: auto; }
  .band-heatmap { width: 100%; border-collapse: collapse; font-size: 12px; }
  .band-heatmap th, .band-heatmap td { padding: 6px 8px; text-align: center; }
  .band-heatmap th:first-child, .band-heatmap td:first-child { text-align: left; }
  .band-green { background: rgba(4,225,203,0.22); color: #04E1CB; }
  .band-amber { background: rgba(252,192,3,0.22); color: #FCC003; }
  .band-red { background: rgba(255,83,138,0.22); color: #FF538A; }
  .band-deep_red { background: rgba(211,47,47,0.28); color: #ff8a80; }
  .burnout-flag { font-size: 12px; color: var(--text-2); }
  .freshness-chip { font-size: 12px; }
  .freshness-chip.stale {
    display: inline-block;
    color: #FF538A;
    background: rgba(255, 83, 138, 0.16);
    border: 1px solid rgba(255, 83, 138, 0.55);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
  }
  .member-row { cursor: pointer; }
  .member-row:hover { background: rgba(0,179,255,0.08); }
  .spark { width: 72px; height: 22px; color: #00B3FF; display: block; }
  #coverageGaps { margin-top: 14px; }
