:root {
  color-scheme: dark;
  --page-bg: #04060b;
  --page-panel: #0a1018;
  --page-panel-2: #0d1726;
  --page-edge: rgba(150, 172, 205, 0.22);
  --page-focus: #7dd3fc;
  --background-primary: #08111f;
  --background-secondary: #0d1a2b;
  --background-secondary-alt: #0a1626;
  --background-modifier-border: rgba(148, 163, 184, 0.2);
  --background-modifier-border-hover: rgba(148, 163, 184, 0.3);
  --background-modifier-hover: rgba(47, 140, 255, 0.14);
  --interactive-accent: #2f8cff;
  --text-normal: #dbe7f5;
  --text-muted: #9aadc5;
  --text-faint: #71839b;
  --text-on-accent: #ffffff;
  --z-nav: 60;
  --z-profile: 70;
  --z-loading: 90;
  --z-popover: 100;
  --z-skip: 110;
  --z-toast: 120;
}

/* Final mobile override: keep filters comfortably tappable instead of letting
   the later desktop-density rules compress native controls to arrow-only boxes. */
@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign .overview-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px;
  }
  .target-customer-matrix.overview-redesign .overview-filterbar label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
  }
  .target-customer-matrix.overview-redesign .overview-filterbar select,
  .target-customer-matrix.overview-redesign .overview-filterbar input,
  .target-customer-matrix.overview-redesign .overview-filterbar button {
    width: 100%;
    min-width: 0;
  }
  .target-customer-matrix.overview-redesign .overview-kpis > div:last-child {
    grid-column: auto;
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable {
    --subtotal-column-width: 72px;
  }
  .target-customer-matrix.overview-redesign .matrix-table .subtotal-column,
  .target-customer-matrix.overview-redesign .matrix-table .subtotal-cell {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }
}

/* Mobile access intentionally hands off to the desktop experience. */
.mobile-desktop-guide {
  display: none;
}

@media (max-width: 767px) {
  body.target-customer-matrix {
    min-width: 0;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: #eaf5ff;
    background:
      radial-gradient(circle at 50% 9%, rgba(31, 132, 211, .2), transparent 34%),
      linear-gradient(180deg, #061322 0%, #020914 100%);
  }

  body.target-customer-matrix > :not(.mobile-desktop-guide) {
    display: none !important;
  }

  body.target-customer-matrix > .mobile-desktop-guide {
    display: grid;
    min-height: 100dvh;
    align-content: center;
    gap: 24px;
    width: 100%;
    padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  }

  .mobile-guide-preview {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(90, 188, 255, .46);
    border-radius: 12px;
    background: #06111f;
    box-shadow: 0 20px 48px rgba(0, 3, 10, .48), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  }

  .mobile-guide-preview::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 54%, rgba(1, 8, 17, .2));
    box-shadow: inset 0 0 28px rgba(28, 143, 228, .12);
  }

  .mobile-guide-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-guide-preview > span {
    position: absolute;
    right: 9px;
    bottom: 8px;
    z-index: 1;
    padding: 5px 7px;
    border: 1px solid rgba(116, 203, 255, .34);
    border-radius: 999px;
    color: #dff5ff;
    background: rgba(3, 17, 31, .84);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-guide-copy {
    padding: 0 4px;
    text-align: center;
  }

  .mobile-guide-copy > p:first-child {
    margin: 0 0 8px;
    color: #55bfff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
  }

  .mobile-guide-copy h2 {
    margin: 0;
    color: #f3f9ff;
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.18;
    letter-spacing: -.03em;
  }

  .mobile-guide-copy h2 + p {
    max-width: 32em;
    margin: 15px auto 0;
    color: #9eb7cc;
    font-size: 15px;
    line-height: 1.75;
  }

  .mobile-guide-copy strong {
    display: block;
    max-width: 30em;
    margin: 18px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(81, 181, 248, .28);
    border-radius: 10px;
    color: #dff3ff;
    background: rgba(13, 48, 78, .48);
    font-size: 13px;
    line-height: 1.55;
  }
}

/* Simplified matrix: no bottom legend and no amount-based blue cell fill. */
@media (min-width: 768px) {
  .target-customer-matrix.overview-redesign.overview-redesign .matrix-content {
    grid-template-rows: minmax(0, 1fr);
  }
  .target-customer-matrix.overview-redesign.overview-redesign .matrix-scroll {
    height: calc(100dvh - 211px);
  }
  .target-customer-matrix.overview-redesign.overview-redesign .supplier-leaderboard {
    grid-row: 1;
  }
}
.target-customer-matrix.overview-redesign .overview-legend {
  display: none !important;
}
.target-customer-matrix.overview-redesign.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary,
.target-customer-matrix.overview-redesign.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary,
.target-customer-matrix.overview-redesign.overview-redesign #matrix-metric-count:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
  background: #0b2239 !important;
}
.target-customer-matrix.overview-redesign.overview-redesign.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell.has-supplier-mix > .region-details > .region-summary,
.target-customer-matrix.overview-redesign.overview-redesign.overview-redesign #matrix-metric-count:checked ~ .matrix-content .matrix-table .matrix-cell.has-supplier-mix > .region-details > .region-summary {
  background: #0b2239 !important;
  box-shadow: none !important;
}
.target-customer-matrix.overview-redesign.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details[data-amount-fill="0"] > .region-summary,
.target-customer-matrix.overview-redesign.overview-redesign #matrix-metric-count:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details[data-count-fill="0"] > .region-summary {
  background: #4d5765 !important;
}

/* 2026-07 supplier overview redesign */
.target-customer-matrix.overview-redesign .matrix-source { opacity: .62; }

.contract-event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid rgba(72, 145, 210, .38);
  border-radius: 3px;
  color: #9bc9ef;
  background: rgba(28, 88, 142, .2);
  font-size: 9px;
  line-height: 1;
  vertical-align: 1px;
}

.contract-event-badge.is-change { border-color: rgba(251, 146, 60, .5); color: #fdba74; background: rgba(154, 52, 18, .2); }
.contract-event-badge.is-supplement { border-color: rgba(167, 139, 250, .48); color: #c4b5fd; background: rgba(91, 33, 182, .18); }
.contract-event-badge.is-continuation { border-color: rgba(52, 211, 153, .42); color: #6ee7b7; background: rgba(6, 95, 70, .18); }
.contract-event-badge.is-initial { border-color: rgba(96, 165, 250, .48); color: #93c5fd; background: rgba(30, 64, 175, .2); }
.contract-initial-reference {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 8px;
  border-left: 2px solid rgba(96, 165, 250, .6);
  border-radius: 0 5px 5px 0;
  background: rgba(30, 64, 175, .1);
}
.contract-initial-reference.is-inferred { border-left-color: rgba(251, 191, 36, .62); background: rgba(146, 64, 14, .1); }
.contract-initial-reference.is-missing { border-left-color: rgba(148, 163, 184, .42); background: rgba(51, 65, 85, .13); }
.contract-initial-reference > .contract-event-badge { flex: 0 0 auto; margin: 2px 0 0; }
.contract-initial-reference-body { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 2px; }
.contract-initial-reference-meta { color: #7897b5; font-size: 9px; font-weight: 650; line-height: 1.35; }
.contract-initial-reference-link {
  color: #b9d8f2;
  font-size: 10.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(125, 211, 252, .42);
  text-decoration-line: underline;
  text-underline-offset: 2px;
}
.contract-initial-reference-link:hover { color: #7dd3fc; text-decoration-color: currentColor; }
.contract-initial-reference-link.is-unavailable { color: #8196aa; text-decoration: none; }
.target-customer-matrix.overview-redesign .matrix-content { grid-template-columns: minmax(0, 1fr) clamp(320px, 23vw, 390px); gap: 10px; }
.target-customer-matrix.overview-redesign .matrix-stats { overflow: visible; }
.target-customer-matrix.overview-redesign .matrix-topbar { grid-template-columns: minmax(330px, .9fr) minmax(290px, .8fr) minmax(0, 3.3fr); }
.target-customer-matrix.overview-redesign .matrix-table .empty-mark { color: rgba(148,163,184,.3); font-size: 0; }
.target-customer-matrix.overview-redesign .matrix-table .empty-mark::after { content: "—"; font-size: 12px; }
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell.has-supplier-mix { background-image: none !important; background-color: rgba(8,24,42,.88) !important; }
.target-customer-matrix.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell.has-supplier-mix > .region-details > .region-summary {
  position: relative; background: linear-gradient(90deg, rgba(31,111,205,.72) 0 var(--amount-fill,0%), rgba(14,34,57,.8) var(--amount-fill,0%) 100%) !important;
}
.target-customer-matrix.overview-redesign .matrix-cell.has-supplier-mix > .region-details > .region-summary::after {
  content: ""; position: absolute; right: 4px; bottom: 2px; left: 4px; z-index: 2; height: 3px; border-radius: 4px; background: var(--supplier-mix-gradient); opacity: .95;
}
.target-customer-matrix.overview-redesign .matrix-cell.is-insight-selected { position: relative; z-index: 2; box-shadow: inset 0 0 0 2px #20d6ff, 0 0 16px rgba(32,214,255,.24) !important; }
.target-customer-matrix.overview-redesign .supplier-leaderboard { overflow: hidden; padding: 0; border-color: rgba(84,174,245,.3); background: linear-gradient(180deg,#07192c,#061321); }
.target-customer-matrix.overview-redesign .supplier-leaderboard > .matrix-insight-panel { display: none; }
.target-customer-matrix.overview-redesign .supplier-leaderboard.is-insight-mode > :not(.matrix-insight-panel) { display: none !important; }
.target-customer-matrix.overview-redesign .supplier-leaderboard.is-insight-mode > .matrix-insight-panel { display: block; }
.matrix-insight-panel { height: 100%; overflow: auto; padding: 18px 16px; color: #dcecff; }
.matrix-insight-panel header { padding-bottom: 14px; border-bottom: 1px solid rgba(125,211,252,.16); }
.matrix-insight-panel header > span { color: #6f91ae; font-size: 10px; letter-spacing: .14em; }
.matrix-insight-panel h2 { margin: 7px 0 0; color: #f4f9ff; font-size: 17px; line-height: 1.35; }
.insight-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 12px 0 16px; overflow: hidden; border: 1px solid rgba(125,211,252,.14); border-radius: 9px; background: rgba(125,211,252,.12); }
.insight-metrics > div { padding: 12px; background: rgba(5,20,36,.96); }
.insight-metrics span { display: block; margin-bottom: 5px; color: #829ab2; font-size: 10px; }
.insight-metrics strong { color: #38a7ff; font-size: 19px; font-variant-numeric: tabular-nums; }
.insight-metrics strong.is-warn { color: #fb7185; }
.insight-section { padding: 14px 0; border-top: 1px solid rgba(125,211,252,.12); }
.insight-section h3 { margin: 0 0 12px; font-size: 13px; }
.insight-section h3 small { margin-left: 6px; color: #6f879d; font-size: 9px; font-weight: 500; }
.insight-suppliers { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.insight-suppliers li { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto 38px; gap: 8px; align-items: center; overflow: hidden; padding: 7px 8px 9px; border-radius: 6px; background: rgba(14,36,60,.72); }
.insight-suppliers li i { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg,#268cf5 var(--w),rgba(42,66,90,.65) var(--w)); }
.insight-suppliers li span { overflow: hidden; color: #caddf0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.insight-suppliers li strong { color: #e9f5ff; font-size: 10px; }
.insight-suppliers li em { color: #60a5fa; font-size: 9px; font-style: normal; text-align: right; }
.insight-alert { margin-top: 14px; padding: 12px; border: 1px solid rgba(52,211,153,.28); border-radius: 8px; background: rgba(16,185,129,.08); }
.insight-alert.is-caution { border-color: rgba(251,146,60,.38); background: rgba(245,158,11,.08); }
.insight-alert.is-danger { border-color: rgba(251,113,133,.42); background: rgba(244,63,94,.09); }
.insight-alert strong,.insight-alert span { display: block; }
.insight-alert strong { color: #6ee7b7; font-size: 12px; }
.insight-alert.is-caution strong { color: #fb923c; }.insight-alert.is-danger strong { color: #fb7185; }
.insight-alert span { margin-top: 5px; color: #93a9bf; font-size: 9px; line-height: 1.55; }
.insight-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.insight-actions button { min-height: 38px; border: 1px solid rgba(56,189,248,.45); border-radius: 7px; color: #dff5ff; background: linear-gradient(180deg,rgba(17,111,212,.75),rgba(10,72,151,.7)); cursor: pointer; }
.insight-actions button + button { color: #9fc3df; background: rgba(8,25,43,.7); }
.matrix-insight-panel.is-project-view { padding-top: 0; }
.insight-detail-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 14px; padding: 10px 16px; border-bottom: 1px solid rgba(125,211,252,.18); background: rgba(7,25,44,.98); box-shadow: 0 10px 24px -20px #000; }
.insight-detail-nav button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(56,189,248,.45); border-radius: 7px; color: #dff5ff; background: rgba(15,77,139,.7); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.insight-detail-nav button:hover { border-color: rgba(125,211,252,.72); color: #fff; background: rgba(23,103,184,.72); }
.insight-detail-nav button:focus-visible { outline: 2px solid #67b8ff; outline-offset: 2px; }
.insight-detail-nav span { color: #7f9ab4; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.insight-project-details { margin-top: 12px; }
.insight-project-details > .detail-title { margin: 0; padding: 0 0 10px; border-bottom: 1px solid rgba(125,211,252,.14); color: #a9bad0; font-size: 11px; }
.insight-project-details .unit-details { border-top-color: rgba(125,211,252,.14); }
.insight-project-details .unit-details > .unit-summary { grid-template-columns: auto minmax(0,1fr) auto 12px; min-height: 44px; padding: 10px 4px; gap: 6px; font-size: 11px; }
.insight-project-details .unit-name { overflow-wrap: anywhere; }
.insight-project-details .unit-count { display: inline-flex; gap: 4px; align-items: baseline; color: #a9c9e6; font-size: 11px; white-space: nowrap; }
.insight-project-details .unit-total-amount { color: #4ea7f8; font-weight: 750; }
.insight-project-details .project-list { padding: 4px 0 12px; }
.insight-project-details .project-list-head { display: none; }
.insight-project-details .project-item { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; margin-top: 6px; padding: 10px; border-left-width: 2px; border-radius: 0 7px 7px 0; font-size: 11px; line-height: 1.45; }
.insight-project-details .project-date { grid-column: 1; grid-row: 1; color: #8ba3ba; }
.insight-project-details .project-amount { grid-column: 2; grid-row: 1; color: #56b6ff; font-weight: 750; text-align: right; white-space: nowrap; }
.insight-project-details .project-name { grid-column: 1 / -1; grid-row: 2; }
.insight-project-details .project-vendor { grid-column: 1 / -1; grid-row: 3; color: #91a8be; font-size: 10px; }
.insight-project-details .project-name-link { min-height: 0; color: #e4f0fb; line-height: 1.5; }
.insight-project-details .unit-row { padding-right: 4px; padding-left: 4px; font-size: 11px; }
@media (max-width: 1199px) { .target-customer-matrix.overview-redesign .matrix-topbar { grid-template-columns: 1fr; } .target-customer-matrix.overview-redesign .matrix-content { grid-template-columns: 1fr; } .matrix-insight-panel { min-height: 480px; } }

@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(188px, .54fr) minmax(326px, .92fr) minmax(0, 3.54fr);
    gap: 0;
    padding: 3px;
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(12, 25, 42, .98), rgba(7, 16, 29, .98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 28px -24px rgba(0,0,0,.9);
  }
  .target-customer-matrix .matrix-topbar .matrix-stats,
  .target-customer-matrix .matrix-topbar .matrix-find,
  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    height: 32px; min-height: 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .target-customer-matrix .matrix-topbar .matrix-stats { gap: 0; padding-right: 6px; }
  .target-customer-matrix .matrix-topbar .matrix-stats > div {
    min-height: 32px; padding: 1px 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .target-customer-matrix .matrix-topbar .matrix-stats > div + div { border-left: 1px solid rgba(125,211,252,.13); }
  .target-customer-matrix .matrix-topbar .matrix-stats strong { font-size: 14px; line-height: 1; }
  .target-customer-matrix .matrix-topbar .matrix-stats span { color: #8297af; font-size: 8.5px; line-height: 1.15; }
  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-template-columns: auto minmax(120px,1fr) auto; gap: 7px; padding: 0 10px;
    border-right: 1px solid rgba(125,211,252,.16); border-left: 1px solid rgba(125,211,252,.16);
  }
  .target-customer-matrix .matrix-find-label { color: #a8bad0; font-size: 11px; letter-spacing: .02em; }
  .target-customer-matrix .matrix-row-search {
    height: 28px; padding-right: 48px; border-color: rgba(148,163,184,.2); border-radius: 7px;
    background: rgba(4,12,23,.56); font-size: 11px;
  }
  .target-customer-matrix .matrix-topbar .matrix-find-status { min-width: 92px; color: #7890aa; font-size: 9.5px; }
  .target-customer-matrix .matrix-topbar .matrix-toolbar { gap: 7px; padding: 0 3px 0 10px; }
  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch { gap: 2px; }
  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    padding-left: 7px; border-left: 1px solid rgba(125,211,252,.13);
  }
  .target-customer-matrix .matrix-topbar .matrix-toolbar-label {
    margin-right: 2px; color: #6f859e; font-size: 9px; letter-spacing: .1em;
  }
  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    min-height: 26px; padding: 0 7px; border-color: transparent; border-radius: 7px;
    color: #93a6bc; background: transparent; font-size: 9.5px;
  }
  .target-customer-matrix .matrix-topbar .matrix-year-chip.is-active,
  .target-customer-matrix .matrix-topbar .matrix-type-chip.is-active {
    border-color: rgba(56,189,248,.52); color: #f0f9ff;
    background: linear-gradient(180deg, rgba(14,128,190,.34), rgba(30,99,164,.26));
  }
  .target-customer-matrix .matrix-topbar .matrix-toolbar > label {
    min-height: 26px; padding: 0 10px; border-color: transparent; color: #8195ad; background: transparent; font-size: 9.5px;
  }
  .target-customer-matrix #matrix-metric-count:checked ~ .matrix-topbar label[for="matrix-metric-count"],
  .target-customer-matrix #matrix-metric-amount:checked ~ .matrix-topbar label[for="matrix-metric-amount"] {
    color: #e0f2fe; background: rgba(47,140,255,.2);
  }
}

/* Final cascade lock for the interface-detail pass. This file intentionally
   layers legacy dashboard rules, so these presentation-only refinements live
   last to keep later historical overrides from undoing responsive behavior. */
.target-customer-matrix.overview-redesign .matrix-supplier-legend {
  min-height: 29px;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid var(--polish-edge);
  border-radius: 8px;
  color: var(--polish-muted);
  background: linear-gradient(180deg, rgba(10, 29, 49, .9), rgba(5, 17, 30, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 10px 30px -28px rgba(0, 0, 0, .95);
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend span {
  white-space: nowrap;
}

.target-customer-matrix.overview-redesign .overview-contract-ticker,
.target-customer-matrix.overview-redesign .matrix-scroll,
.target-customer-matrix.overview-redesign .supplier-leaderboard {
  border-color: var(--polish-edge);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 10px 30px -28px rgba(0, 0, 0, .95);
}

.target-customer-matrix.overview-redesign .supplier-leaderboard-toolbar {
  border-bottom: 1px solid var(--polish-edge);
  background: linear-gradient(180deg, rgba(8, 29, 50, .99), rgba(5, 20, 35, .99));
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, .95);
}

.target-customer-matrix.overview-redesign .matrix-table thead th {
  box-shadow: inset 0 -1px 0 rgba(126, 194, 245, .28), 0 5px 14px rgba(0, 7, 15, .2);
}

@media (max-width: 767px) {
  html,
  body.target-customer-matrix.overview-redesign {
    overflow-x: hidden;
  }

  .target-customer-matrix.overview-redesign .site-header {
    padding: 12px 10px 10px;
  }

  .target-customer-matrix.overview-redesign .site-title {
    max-width: 12em;
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
  }

  .target-customer-matrix.overview-redesign .overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    margin-top: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-rows: 36px 34px;
    min-height: 78px;
    padding: 5px 7px;
    border: 1px solid var(--polish-edge);
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(10, 31, 52, .96), rgba(5, 19, 33, .98));
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div + div {
    border-left: 1px solid var(--polish-edge);
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div:last-child {
    grid-column: 1 / -1;
  }

  .target-customer-matrix.overview-redesign .overview-kpis .overview-kpi-icon {
    width: 24px;
    height: 34px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis svg {
    width: 23px;
    height: 23px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis small {
    font-size: 10px;
    letter-spacing: -.02em;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong {
    font-size: 18px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong em,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown b,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown em {
    font-size: 9px;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::-webkit-scrollbar {
    display: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::before,
  .target-customer-matrix.overview-redesign .matrix-supplier-legend > span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .target-customer-matrix.overview-redesign .matrix-source {
    display: -webkit-box;
    max-height: 46px;
    margin: 0 0 8px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(103, 174, 229, .16);
    border-radius: 7px;
    background: rgba(5, 18, 31, .72);
    font-size: 9px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .target-customer-matrix.overview-redesign .matrix-scroll {
    height: min(66dvh, 540px) !important;
    min-height: 480px !important;
    overscroll-behavior: contain;
  }

  .target-customer-matrix.overview-redesign .supplier-leaderboard {
    height: min(72dvh, 620px) !important;
    min-height: 520px !important;
    margin-top: 12px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .target-customer-matrix.overview-redesign .supplier-ranking-list > li {
    min-height: 58px !important;
  }

  .target-customer-matrix.overview-redesign .site-compliance-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
}

/* 2026-07 interface detail pass: strengthen hierarchy without changing the
   established single-screen dashboard anatomy or its data-density contract. */
.target-customer-matrix.overview-redesign {
  --polish-surface: rgba(6, 20, 35, .94);
  --polish-surface-raised: rgba(9, 29, 49, .96);
  --polish-edge: rgba(103, 174, 229, .24);
  --polish-edge-active: rgba(93, 192, 255, .58);
  --polish-muted: #9ab2c8;
  font-variant-numeric: tabular-nums;
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend,
.target-customer-matrix.overview-redesign .overview-contract-ticker,
.target-customer-matrix.overview-redesign .matrix-scroll,
.target-customer-matrix.overview-redesign .supplier-leaderboard {
  border-color: var(--polish-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 10px 30px -28px rgba(0, 0, 0, .95);
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend {
  min-height: 29px;
  margin: 0 0 8px;
  padding: 4px 9px;
  border: 1px solid var(--polish-edge);
  border-radius: 8px;
  color: var(--polish-muted);
  background: linear-gradient(180deg, rgba(10, 29, 49, .9), rgba(5, 17, 30, .92));
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend span {
  white-space: nowrap;
}

.target-customer-matrix.overview-redesign .overview-contract-ticker {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 27, 46, .96), rgba(5, 18, 31, .96));
}

.target-customer-matrix.overview-redesign .matrix-source {
  color: #88a2b9;
  line-height: 1.45;
}

.target-customer-matrix.overview-redesign .matrix-scroll,
.target-customer-matrix.overview-redesign .supplier-leaderboard {
  border-radius: 9px;
  background-color: var(--polish-surface);
}

.target-customer-matrix.overview-redesign .matrix-table thead th {
  box-shadow: inset 0 -1px 0 rgba(126, 194, 245, .28), 0 5px 14px rgba(0, 7, 15, .2);
}

.target-customer-matrix.overview-redesign .matrix-table tbody > tr:nth-child(even) > .serial-number,
.target-customer-matrix.overview-redesign .matrix-table tbody > tr:nth-child(even) > .bureau-name,
.target-customer-matrix.overview-redesign .matrix-table tbody > tr:nth-child(even) > .subtotal-cell,
.target-customer-matrix.overview-redesign .matrix-table tbody > tr:nth-child(even) > .overview-summary-cell {
  background-color: rgba(8, 27, 46, .98) !important;
}

.target-customer-matrix.overview-redesign .region-summary,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li[role="button"],
.target-customer-matrix.overview-redesign .supplier-group-summary,
.target-customer-matrix.overview-redesign .supplier-group-member {
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.target-customer-matrix.overview-redesign .region-summary:hover,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li[role="button"]:hover,
.target-customer-matrix.overview-redesign .supplier-group-summary:hover,
.target-customer-matrix.overview-redesign .supplier-group-member:hover {
  filter: brightness(1.12);
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li[role="button"]:focus-visible,
.target-customer-matrix.overview-redesign .supplier-group-summary:focus-visible,
.target-customer-matrix.overview-redesign .supplier-group-member:focus-visible,
.target-customer-matrix.overview-redesign .header-mini-program-trigger:focus-visible {
  outline: 2px solid #67c6ff;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 4px rgba(62, 174, 248, .18);
}

.target-customer-matrix.overview-redesign .supplier-leaderboard-toolbar {
  border-bottom: 1px solid var(--polish-edge);
  background: linear-gradient(180deg, rgba(8, 29, 50, .99), rgba(5, 20, 35, .99));
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, .95);
}

.target-customer-matrix.overview-redesign .matrix-scroll,
.target-customer-matrix.overview-redesign .supplier-leaderboard,
.target-customer-matrix.overview-redesign .matrix-insight-panel {
  scrollbar-color: rgba(63, 140, 199, .8) rgba(3, 13, 24, .48);
}

.target-customer-matrix.overview-redesign .matrix-scroll::-webkit-scrollbar-thumb,
.target-customer-matrix.overview-redesign .supplier-leaderboard::-webkit-scrollbar-thumb,
.target-customer-matrix.overview-redesign .matrix-insight-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 13, 24, .72);
  border-radius: 999px;
  background: #2f75aa;
}

.target-customer-matrix.overview-redesign .site-compliance-footer {
  color: #8fa7bc;
}

@media (max-width: 767px) {
  html,
  body.target-customer-matrix.overview-redesign {
    overflow-x: hidden;
  }

  .target-customer-matrix.overview-redesign .site-header {
    padding: 12px 10px 10px;
  }

  .target-customer-matrix.overview-redesign .site-title {
    max-width: 12em;
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
  }

  .target-customer-matrix.overview-redesign .site-lede {
    gap: 3px;
    margin-top: 6px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    margin-top: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-rows: 36px 34px;
    min-height: 78px;
    padding: 5px 7px;
    border: 1px solid var(--polish-edge);
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(10, 31, 52, .96), rgba(5, 19, 33, .98));
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div + div {
    border-left: 1px solid var(--polish-edge);
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div:last-child {
    grid-column: 1 / -1;
  }

  .target-customer-matrix.overview-redesign .overview-kpis .overview-kpi-icon {
    width: 24px;
    height: 34px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis svg {
    width: 23px;
    height: 23px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis small {
    font-size: 10px;
    letter-spacing: -.02em;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong {
    font-size: 18px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong em {
    font-size: 9px;
  }

  .target-customer-matrix.overview-redesign .overview-kpi-breakdown {
    gap: 2px;
    padding-top: 3px;
  }

  .target-customer-matrix.overview-redesign .overview-kpi-breakdown > span,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown > button {
    grid-template-rows: 11px 3px 12px;
  }

  .target-customer-matrix.overview-redesign .overview-kpi-breakdown b,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown em {
    font-size: 9px;
    line-height: 11px;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::-webkit-scrollbar {
    display: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::before,
  .target-customer-matrix.overview-redesign .matrix-supplier-legend > span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .target-customer-matrix.overview-redesign .matrix-source {
    display: -webkit-box;
    max-height: 46px;
    margin: 0 0 8px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(103, 174, 229, .16);
    border-radius: 7px;
    background: rgba(5, 18, 31, .72);
    font-size: 9px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .target-customer-matrix.overview-redesign .matrix-scroll {
    height: min(66dvh, 540px) !important;
    min-height: 480px !important;
    overscroll-behavior: contain;
  }

  .target-customer-matrix.overview-redesign .supplier-leaderboard {
    height: min(72dvh, 620px) !important;
    min-height: 520px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .target-customer-matrix.overview-redesign .supplier-ranking-list > li {
    min-height: 58px !important;
  }

  .target-customer-matrix.overview-redesign .site-compliance-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .target-customer-matrix.overview-redesign *,
  .target-customer-matrix.overview-redesign *::before,
  .target-customer-matrix.overview-redesign *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (min-width: 1200px) {
  .target-customer-matrix.overview-redesign .overview-filterbar > .overview-search-field {
    flex: 0 0 260px;
  }
}

/* Recent-contract ticker and supplier-side scope controls. */
.target-customer-matrix .overview-contract-ticker {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(5, 18, 33, .96), rgba(8, 27, 47, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.target-customer-matrix .overview-ticker-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  padding: 0 10px;
  border-right: 1px solid rgba(56, 189, 248, .22);
  color: #d8efff;
  background: #0a2239;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.target-customer-matrix .overview-ticker-label > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .12), 0 0 9px rgba(52, 211, 153, .48);
}

.target-customer-matrix .overview-ticker-viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.target-customer-matrix .overview-ticker-track,
.target-customer-matrix .overview-ticker-sequence {
  display: flex;
  align-items: center;
  width: max-content;
}

.target-customer-matrix .overview-ticker-track {
  animation: overview-ticker-scroll var(--ticker-duration, 60s) linear infinite;
  will-change: transform;
}

.target-customer-matrix .overview-ticker-sequence {
  gap: 18px;
  padding-right: 18px;
}

.target-customer-matrix .overview-ticker-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #8ca5bd;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.target-customer-matrix .overview-ticker-item::after {
  position: absolute;
  top: 50%;
  right: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(125, 211, 252, .38);
  content: "";
  transform: translateY(-50%);
}

.target-customer-matrix .overview-ticker-project {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  color: #cfe4f6;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.target-customer-matrix a.overview-ticker-project:hover,
.target-customer-matrix a.overview-ticker-project:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-underline-offset: 3px;
}

.target-customer-matrix .overview-ticker-date { color: #7892aa; }
.target-customer-matrix .overview-ticker-amount { color: #42a5ff; font-size: 10px; }

.target-customer-matrix .overview-contract-ticker:hover .overview-ticker-track,
.target-customer-matrix .overview-contract-ticker:focus-within .overview-ticker-track {
  animation-play-state: paused;
}

@keyframes overview-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.target-customer-matrix .supplier-scope-filters {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(125, 211, 252, .18);
  background: linear-gradient(180deg, rgba(11, 29, 49, .99), rgba(7, 21, 37, .99));
}

.target-customer-matrix .supplier-scope-filters label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: #8fa6bc;
  font-size: 9.5px;
  white-space: nowrap;
}

.target-customer-matrix .supplier-scope-filters select {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 23px 0 8px;
  border: 1px solid rgba(125, 211, 252, .24);
  border-radius: 6px;
  color: #d7e8f8;
  background-color: rgba(4, 15, 27, .86);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.target-customer-matrix .supplier-scope-filters select:hover,
.target-customer-matrix .supplier-scope-filters select:focus-visible {
  border-color: #38bdf8;
  outline: 2px solid rgba(56, 189, 248, .14);
  outline-offset: 0;
}

@media (min-width: 1200px) {
  .target-customer-matrix.overview-redesign .overview-filterbar > .overview-scope-source {
    display: none;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > .overview-contract-ticker {
    flex: 1 1 auto;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > .overview-search-field {
    flex: 0 1 360px;
  }
}

@media (max-width: 1199px) {
  .target-customer-matrix .supplier-scope-filters,
  .target-customer-matrix .overview-contract-ticker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .target-customer-matrix .overview-ticker-track { animation: none; }
  .target-customer-matrix .overview-ticker-sequence[aria-hidden="true"] { display: none; }
}

/* Final responsive safeguards; intentionally last in the cascade. */
@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable {
    min-width: 1360px !important;
    font-size: 11px !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable tbody tr,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary {
    height: 46px !important;
    min-height: 46px !important;
  }

  .target-customer-matrix.overview-redesign .overview-metricbar > .overview-status-group {
    display: grid !important;
    width: 100%;
    margin: 8px 0 0 !important;
    gap: 4px;
    white-space: normal;
  }
}

/* Accuracy and readability pass: keep provenance visible, preserve every region,
   and make dense data legible on touch-sized viewports. */
.target-customer-matrix.overview-redesign .matrix-table thead th:last-child,
.target-customer-matrix.overview-redesign .matrix-table tbody tr > td:last-child {
  display: table-cell !important;
}

.overview-status-group {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.overview-filter-status {
  display: inline !important;
}

.overview-pan-hint,
.overview-data-note {
  color: #7890a8;
  font-size: 10px;
  line-height: 1.45;
}

.overview-pan-hint {
  white-space: nowrap;
}

.overview-data-note {
  margin: -2px 2px 0;
  padding: 5px 8px;
  border-left: 2px solid rgba(59, 156, 255, .42);
  background: rgba(34, 91, 143, .08);
}

.target-customer-matrix .project-amount.is-undisclosed {
  color: #f0b25d;
  font-weight: 650;
}

.target-customer-matrix .project-amount.is-negative {
  color: #fb7185;
  font-weight: 750;
}

@media (max-width: 767px) {
  .overview-status-group {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    white-space: normal;
  }

  .overview-filter-status,
  .overview-pan-hint,
  .overview-data-note {
    font-size: 11px;
  }

  .overview-pan-hint {
    white-space: normal;
  }

  .overview-data-note {
    margin-top: 0;
    padding: 8px 10px;
  }

  .target-customer-matrix.overview-redesign .matrix-table {
    min-width: 1360px;
    font-size: 11px;
  }

  .target-customer-matrix.overview-redesign .matrix-table tbody tr,
  .target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details,
  .target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary,
  .target-customer-matrix.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
    height: 46px !important;
    min-height: 46px !important;
  }

  .target-customer-matrix.overview-redesign .matrix-table thead th {
    font-size: 11px !important;
  }

  .target-customer-matrix.overview-redesign .matrix-table .bureau-name,
  .target-customer-matrix.overview-redesign .matrix-table .subtotal-cell,
  .target-customer-matrix.overview-redesign .matrix-table .overview-summary-cell,
  .target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary {
    font-size: 11px !important;
    line-height: 1.2;
  }

  .target-customer-matrix.overview-redesign .matrix-table .bureau-name {
    font-size: 12px !important;
  }
}

@media (min-width: 768px) {
/* 2026-07 large-type mode: approximately double the dashboard body text. */
.target-customer-matrix.overview-redesign .site-header {
  grid-template-columns: 370px minmax(520px, 1fr) !important;
  grid-template-areas: "brand kpis" !important;
}
.target-customer-matrix.overview-redesign .overview-filterbar {
  grid-template-columns: 220px 260px minmax(360px, 1fr) auto !important;
}
.target-customer-matrix.overview-redesign .overview-filterbar label,
.target-customer-matrix.overview-redesign .overview-filter-status {
  font-size: 16px !important;
}
.target-customer-matrix.overview-redesign .overview-filterbar select,
.target-customer-matrix.overview-redesign .overview-filterbar input,
.target-customer-matrix.overview-redesign .overview-filterbar button,
.target-customer-matrix.overview-redesign .overview-metricbar button {
  font-size: 16px !important;
}
.target-customer-matrix.overview-redesign .overview-filterbar select,
.target-customer-matrix.overview-redesign .overview-filterbar input,
.target-customer-matrix.overview-redesign .overview-filterbar button {
  height: 42px !important;
}
.target-customer-matrix.overview-redesign .overview-metricbar {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 45px;
  padding-right: 0 !important;
}
.target-customer-matrix.overview-redesign .overview-filter-status { justify-self: center; }
.target-customer-matrix.overview-redesign .overview-metricbar button {
  height: 40px !important;
  padding-right: 18px;
  padding-left: 18px;
}

.target-customer-matrix.overview-redesign .supplier-leaderboard-head strong { font-size: 18px !important; }
.target-customer-matrix.overview-redesign .supplier-leaderboard-head > span,
.target-customer-matrix.overview-redesign .supplier-search-input,
.target-customer-matrix.overview-redesign .supplier-search-status,
.target-customer-matrix.overview-redesign .supplier-leaderboard-columns { font-size: 15px !important; }
.target-customer-matrix.overview-redesign .supplier-ranking-list > li { min-height: 58px; }
.target-customer-matrix.overview-redesign .supplier-rank-index { font-size: 16px !important; }
.target-customer-matrix.overview-redesign .supplier-rank-name { font-size: 16px !important; }
.target-customer-matrix.overview-redesign .supplier-rank-value { font-size: 18px !important; }
.target-customer-matrix.overview-redesign .supplier-group-member { font-size: 14px !important; }
.target-customer-matrix.overview-redesign .supplier-leaderboard-foot { font-size: 13px !important; line-height: 1.6; }
.target-customer-matrix.overview-redesign .matrix-insight-panel h2 { font-size: 20px !important; }
.target-customer-matrix.overview-redesign .insight-metrics span { font-size: 14px !important; }
.target-customer-matrix.overview-redesign .insight-metrics strong { font-size: 24px !important; }
.target-customer-matrix.overview-redesign .insight-section h3,
.target-customer-matrix.overview-redesign .insight-alert strong { font-size: 18px !important; }
.target-customer-matrix.overview-redesign .insight-suppliers,
.target-customer-matrix.overview-redesign .insight-alert span,
.target-customer-matrix.overview-redesign .insight-actions button { font-size: 15px !important; }

  .target-customer-matrix.overview-redesign.overview-redesign .matrix-scroll {
    height: calc(100dvh - 233px);
  }
  .target-customer-matrix.overview-redesign.overview-redesign .supplier-leaderboard {
    height: calc(100dvh - 201px);
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable {
    --serial-column-width: 48px !important;
    --bureau-column-width: 150px !important;
    --subtotal-column-width: 86px !important;
    min-width: 1308px !important;
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable tbody tr {
    height: 52px !important;
    min-height: 52px !important;
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable thead th {
    height: 78px !important;
    font-size: 16px !important;
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .serial-column { width: 48px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-column { width: 150px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-column { width: 86px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-summary-column { width: 70px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-dependency-column { width: 96px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .region-column { width: 78px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-column,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-name { left: 48px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-column,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-cell { left: 198px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-projects-column,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-projects-cell { left: 284px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-dependency-column,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-dependency-cell { left: 354px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .serial-number { font-size: 15px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-name { font-size: 16px !important; line-height: 1.25; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-value,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-summary-cell { font-size: 18px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary {
    height: 52px !important;
    min-height: 52px !important;
  }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary { font-size: 16px !important; }
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-column-total { font-size: 14px !important; }
}

/* 2026-07 readability pass: enlarge numeric data without changing row density. */
.target-customer-matrix.overview-redesign .matrix-table .subtotal-value,
.target-customer-matrix.overview-redesign .matrix-table .overview-summary-cell {
  font-size: 10.5px !important;
  line-height: 1.15;
  letter-spacing: .01em;
}
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary,
.target-customer-matrix.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary,
.target-customer-matrix.overview-redesign #matrix-metric-count:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0;
}
.target-customer-matrix.overview-redesign .matrix-table .matrix-column-total,
.target-customer-matrix.overview-redesign .matrix-table thead .overview-summary-column {
  font-size: 9px !important;
}
@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign .matrix-table .subtotal-value,
  .target-customer-matrix.overview-redesign .matrix-table .overview-summary-cell {
    font-size: 10px !important;
  }
  .target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary {
    font-size: 9.5px !important;
  }
}

/* Effect-image parity pass: hierarchy, density and frozen summary columns. */
.target-customer-matrix.overview-redesign { background: #030c18; }
.target-customer-matrix.overview-redesign .site-header { min-height: 78px; padding: 10px 16px; border-bottom-color: rgba(73,145,206,.18); }
.target-customer-matrix.overview-redesign .site-mark { width: 42px; height: 42px; }
.target-customer-matrix.overview-redesign .site-title { font-size: clamp(22px,1.65vw,30px); }
.target-customer-matrix.overview-redesign .site-eyebrow { display: none; }
.target-customer-matrix.overview-redesign .site-lede { margin-top: 3px; font-size: 10px; }
.target-customer-matrix.overview-redesign .view-nav { display: none; }
.target-customer-matrix.overview-redesign .page-main { padding: 0 14px 12px; }
.target-customer-matrix.overview-redesign .matrix-source,
.target-customer-matrix.overview-redesign .matrix-topbar,
.target-customer-matrix.overview-redesign .matrix-supplier-legend { display: none !important; }
.target-customer-matrix.overview-redesign .matrix-shell { gap: 8px; }
.overview-command { display: grid; gap: 8px; padding: 10px 0 0; }
.overview-filterbar[hidden],.overview-metricbar[hidden] { display:none !important; }
.overview-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.overview-kpis > div { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto auto; min-height: 82px; padding: 12px 14px; overflow: hidden; border: 1px solid rgba(77,157,226,.23); border-radius: 9px; background: linear-gradient(145deg,#0b2038,#07182b); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.overview-kpis > div > span { grid-row: 1/4; align-self: center; color: #4aa3ff; font-size: 24px; }
.overview-kpis small { color: #bed0e3; font-size: 11px; }
.overview-kpis strong { color: #edf7ff; font-size: 26px; line-height: 1.15; letter-spacing: .03em; }
.overview-kpis strong em { margin-left: 3px; color: #9cb3c9; font-size: 11px; font-style: normal; font-weight: 500; }
.overview-kpis i { color: #53d89b; font-size: 9px; font-style: normal; }
.overview-filterbar { display: grid; grid-template-columns: .7fr .75fr 1.15fr 1fr 1.2fr auto; gap: 10px; align-items: end; padding: 9px 11px; border: 1px solid rgba(77,157,226,.2); border-radius: 9px; background: #081727; }
.overview-filterbar label { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: center; color: #9eb3c8; font-size: 10px; }
.overview-filterbar select,.overview-filterbar input { width: 100%; height: 31px; min-width: 0; padding: 0 10px; border: 1px solid rgba(108,157,200,.27); border-radius: 6px; outline: none; color: #d8e9f8; background: #071423; font: inherit; }
.overview-filterbar input:focus,.overview-filterbar select:focus { border-color: #2b98ed; }
.overview-filterbar button,.overview-metricbar button { height: 31px; padding: 0 15px; border: 1px solid rgba(66,142,207,.25); border-radius: 6px; color: #9fb5ca; background: #09192b; cursor: pointer; }
.overview-metricbar { display: flex; justify-content: space-between; align-items: center; }
.overview-metricbar > div { display: flex; gap: 4px; }
.overview-metricbar button.is-active { border-color: #268ded; color: #eef8ff; background: linear-gradient(180deg,#187cd8,#105cac); box-shadow: 0 0 12px rgba(38,141,237,.22); }
.target-customer-matrix.overview-redesign .matrix-content { grid-template-columns: minmax(0,1fr) clamp(335px,22.5vw,385px); gap: 10px; }
.target-customer-matrix.overview-redesign .matrix-scroll,
.target-customer-matrix.overview-redesign .supplier-leaderboard { height: calc(100dvh - 286px); min-height: 540px; }
.target-customer-matrix.overview-redesign .matrix-scroll { overflow: auto; border-radius: 8px; }
.target-customer-matrix.overview-redesign .matrix-table { width: 100%; min-width: 1320px; height: auto !important; table-layout: fixed; font-size: 10px; }
.target-customer-matrix.overview-redesign .matrix-table tbody tr { height: 44px !important; min-height: 44px; }
.target-customer-matrix.overview-redesign .matrix-table thead th { position: sticky; top: 0; z-index: 14; height: 50px !important; padding: 5px 3px; font-size: 11px; }
.target-customer-matrix.overview-redesign .matrix-table .serial-column { width: 40px; }
.target-customer-matrix.overview-redesign .matrix-table .bureau-column { width: 150px; }
.target-customer-matrix.overview-redesign .matrix-table .subtotal-column { width: 78px; }
.overview-summary-column { width: 58px; color: #d5e9fb !important; background: linear-gradient(180deg,#165e9c,#10446f) !important; }
.overview-summary-column small { display: block; color: #8eb3d1; font-size: 8px; font-weight: 500; }
.overview-summary-cell { padding: 0 4px; border-right: 1px solid rgba(101,155,200,.16); color: #d8e8f5; background: #0a1a2b; font-size: 10px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.overview-summary-cell.is-risk { color: #fb7185; }.overview-summary-cell.is-caution { color: #fbad56; }
.target-customer-matrix.overview-redesign.is-summary-collapsed .overview-projects-column,
.target-customer-matrix.overview-redesign.is-summary-collapsed .overview-projects-cell,
.target-customer-matrix.overview-redesign.is-summary-collapsed .overview-dependency-column,
.target-customer-matrix.overview-redesign.is-summary-collapsed .overview-dependency-cell {
  display: none !important;
}
.target-customer-matrix.overview-redesign .matrix-table .subtotal-column {
  padding-right: 23px !important;
}
.target-customer-matrix .overview-summary-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(219, 234, 254, .28);
  border-radius: 5px;
  color: #d9efff;
  background: rgba(4, 24, 43, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.target-customer-matrix .overview-summary-toggle:hover,
.target-customer-matrix .overview-summary-toggle:focus-visible {
  border-color: #7dd3fc;
  color: #fff;
  background: rgba(3, 105, 161, .45);
  outline: 2px solid rgba(125, 211, 252, .22);
  outline-offset: 1px;
}
.target-customer-matrix .overview-summary-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}
.target-customer-matrix.overview-redesign.is-summary-expanded .overview-summary-toggle svg {
  transform: rotate(180deg);
}
.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell.has-supplier-mix { position: sticky; background-color: #0b2138 !important; background-image: linear-gradient(90deg,rgba(33,113,196,.58),rgba(13,39,66,.88)) !important; }
.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell.has-supplier-mix::after { content: ""; position: absolute; right: 4px; bottom: 3px; left: 4px; height: 3px; border-radius: 3px; background: var(--supplier-mix-gradient); }
.target-customer-matrix.overview-redesign .matrix-table .region-column { width: 70px; }
.target-customer-matrix.overview-redesign .matrix-table .serial-column,
.target-customer-matrix.overview-redesign .matrix-table .serial-number { position: sticky; left: 0; z-index: 12; }
.target-customer-matrix.overview-redesign .matrix-table .bureau-column,
.target-customer-matrix.overview-redesign .matrix-table .bureau-name { position: sticky; left: 40px; z-index: 12; }
.target-customer-matrix.overview-redesign .matrix-table .subtotal-column,
.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell { position: sticky; left: 190px; z-index: 12; }
.target-customer-matrix.overview-redesign .matrix-table .overview-projects-column,
.target-customer-matrix.overview-redesign .matrix-table .overview-projects-cell { position: sticky; left: 268px; z-index: 12; }
.target-customer-matrix.overview-redesign .matrix-table .overview-suppliers-column,
.target-customer-matrix.overview-redesign .matrix-table .overview-suppliers-cell { position: sticky; left: 326px; z-index: 12; }
.target-customer-matrix.overview-redesign .matrix-table .overview-dependency-column,
.target-customer-matrix.overview-redesign .matrix-table .overview-dependency-cell { position: sticky; left: 384px; z-index: 12; box-shadow: 5px 0 10px -8px #000; }
.target-customer-matrix.overview-redesign .matrix-table thead .serial-column,
.target-customer-matrix.overview-redesign .matrix-table thead .bureau-column,
.target-customer-matrix.overview-redesign .matrix-table thead .subtotal-column,
.target-customer-matrix.overview-redesign .matrix-table thead .overview-summary-column { z-index: 20; }
.matrix-insight-panel { padding: 15px; }
.matrix-insight-panel h2 { font-size: 16px; }
.insight-metrics { margin: 11px 0 12px; }
.insight-metrics > div { padding: 10px; }
.insight-metrics strong { font-size: 18px; }
@media (max-width: 1199px) { .overview-kpis { grid-template-columns: repeat(2,1fr); } .overview-filterbar { grid-template-columns: 1fr 1fr; } .target-customer-matrix.overview-redesign .matrix-scroll,.target-customer-matrix.overview-redesign .supplier-leaderboard { height: 620px; } }

/* Pixel-parity correction against the approved 1465 × 818 composition. */
.target-customer-matrix.overview-redesign .site-header {
  display: grid; grid-template-columns: 370px minmax(520px,1fr) auto; gap: 14px; align-items: center;
  grid-template-areas: "brand kpis alerts"; grid-template-rows: 62px;
  height: 78px; min-height: 0; max-height: 78px; padding: 8px 12px; background: linear-gradient(180deg,#06111f,#040d18);
}
.target-customer-matrix.overview-redesign .site-brand { grid-area: brand; min-width: 0; }
.target-customer-matrix.overview-redesign .site-mark { display: none; }
.target-customer-matrix.overview-redesign .site-title { font-size: 22px; white-space: nowrap; }
.target-customer-matrix.overview-redesign .site-lede { font-size: 11px; white-space: nowrap; }
.target-customer-matrix.overview-redesign .beian-inline { display: none; }
.overview-kpis { grid-area: kpis; display: grid; grid-template-columns: repeat(3,minmax(140px,1fr)); gap: 0; min-width: 0; overflow: hidden; border: 1px solid rgba(58,121,177,.14); border-radius: 10px; background: #071525; }
.overview-kpis > div { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; grid-template-rows: 42px 34px; min-height: 80px; padding: 5px 10px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-kpis > div + div { border-left: 1px solid rgba(79,139,190,.13); }
.overview-kpis > div > span { grid-column: 1; grid-row: 1; align-self: center; font-size: 17px; }
.overview-kpis .overview-kpi-icon { position: relative; display: grid; width: 42px; height: 42px; place-items: center; overflow: visible; border: 0; border-radius: 0; color: var(--icon-accent); background: transparent; box-shadow: none; }
.overview-kpis .overview-kpi-icon::after { display: none; }
.overview-kpis [data-kpi="amount"] { --icon-accent:#31b6ff; }
.overview-kpis [data-kpi="contracts"] { --icon-accent:#4d9cff; }
.overview-kpis [data-kpi="suppliers"] { --icon-accent:#65c5ff; }
.overview-kpis small { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; overflow: hidden; color: #c2d8e9; font-size: 14px; font-weight: 750; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.overview-kpis strong { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; color: #42a7ff; font-size: 25px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.overview-kpis strong em { font-size: 12px; }
.overview-kpi-breakdown { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; min-width: 0; padding-top: 4px; border-top: 1px solid rgba(101,172,229,.18); font-variant-numeric: tabular-nums; }
.overview-kpi-breakdown > span,
.overview-kpi-breakdown > button { display: grid; grid-template-rows: 12px 3px 13px; gap: 1px; min-width: 0; color: #9db4ca; text-align: center; }
.overview-kpi-breakdown > button { padding: 0; border: 0; border-radius: 4px; background: transparent; font: inherit; cursor: pointer; transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
.overview-kpi-breakdown > button:hover { color: #d9efff; background: rgba(49,182,255,.1); }
.overview-kpi-breakdown > button:focus-visible { outline: 1px solid #55bdff; outline-offset: 1px; }
.overview-kpi-breakdown > button.is-active { color: #eff9ff; background: rgba(49,182,255,.17); box-shadow: inset 0 0 0 1px rgba(92,199,255,.34), 0 0 10px rgba(35,152,235,.2); }
.overview-kpi-breakdown > button.is-active em { color: #fff; font-weight: 800; }
.overview-kpi-breakdown b,.overview-kpi-breakdown em { overflow: hidden; font-size: 10px; font-style: normal; font-weight: 650; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.overview-kpi-breakdown em { color: #d9e7f3; font-size: 10.5px; }
.overview-kpi-breakdown i { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(84,132,171,.25); }
.overview-kpi-breakdown i::after { position: absolute; inset: 0 auto 0 0; width: var(--level,0%); border-radius: inherit; background: var(--icon-accent,#3b9cff); content: ""; }
.overview-kpi-breakdown.is-cities i::after { background: linear-gradient(90deg,#31b6ff,#70d4ff); }
.overview-alerts { grid-area: alerts; display: flex; gap: 7px; align-items: center; color: #b6c8d8; font-size: 9px; white-space: nowrap; }
.overview-alerts .is-red { color: #fb7185; }.overview-alerts .is-orange { color: #f59e0b; }.overview-alerts .is-cyan { color: #22d3ee; }
.overview-alerts button { height: 27px; margin-left: 5px; padding: 0 10px; border: 1px solid rgba(80,145,199,.2); border-radius: 6px; color: #9bb3c8; background: #0a1b2e; }
.target-customer-matrix.overview-redesign .page-main { padding: 0 10px 8px; }
.overview-command { gap: 6px; padding-top: 7px; }
.overview-filterbar { grid-template-columns: 165px 185px 180px 190px minmax(220px,1fr) auto; gap: 8px; padding: 7px 9px; border-radius: 7px; }
.overview-filterbar label { gap: 6px; font-size: 9px; }
.overview-filterbar select,.overview-filterbar input { height: 29px; font-size: 9px; }
.overview-filterbar button { height: 29px; }
.overview-metricbar { min-height: 35px; }
.overview-metricbar { padding-right:370px; }
.overview-metricbar button { height: 31px; padding: 0 14px; font-size: 9px; }
.target-customer-matrix.overview-redesign .matrix-content { display: grid; grid-template-columns: minmax(0,1fr) 360px; grid-template-rows: minmax(0,1fr) 58px; gap: 8px 10px; }
.target-customer-matrix.overview-redesign .matrix-scroll { grid-column: 1; grid-row: 1; height: calc(100dvh - 276px); min-height: 420px; }
.target-customer-matrix.overview-redesign .supplier-leaderboard { grid-column: 2; grid-row: 1 / 3; height: calc(100dvh - 211px); min-height: 486px; }
.overview-legend { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; padding: 7px 14px; border-top: 1px solid rgba(76,130,178,.14); color: #8198ae; font-size: 8px; }
.overview-legend > div { display: flex; gap: 10px; align-items: center; }
.overview-legend strong { color: #9eb3c7; font-size: 9px; white-space: nowrap; }
.overview-legend .heat-scale { width: 285px; height: 10px; background: linear-gradient(90deg,#081b31,#0c315a,#125da2,#1d83db,#2f9bff); }
.overview-legend b { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 1px; }.overview-legend .l1{background:#315f94}.overview-legend .l2{background:#21a8bc}.overview-legend .l3{background:#36a36f}.overview-legend .l4{background:#e9932e}.overview-legend .l5{background:#b85581}.overview-legend .l6{background:#8b5bb5}
.target-customer-matrix.overview-redesign .matrix-table { min-width: 1075px; }
.target-customer-matrix.overview-redesign .matrix-table tbody tr { height: 36px !important; min-height: 36px; }
.target-customer-matrix.overview-redesign .matrix-table thead th { height: 63px !important; font-size: 9px; line-height: 1.15; }
.target-customer-matrix.overview-redesign .matrix-table .serial-column { width: 38px; }
.target-customer-matrix.overview-redesign .matrix-table .bureau-column { width: 108px; }
.target-customer-matrix.overview-redesign .matrix-table .subtotal-column { width: 62px; }
.target-customer-matrix.overview-redesign .matrix-table .overview-summary-column { width: 52px; }
.target-customer-matrix.overview-redesign .matrix-table .overview-dependency-column { width: 68px; }
.target-customer-matrix.overview-redesign .matrix-table .region-column { width: 59px; }
.target-customer-matrix.overview-redesign .matrix-table .serial-number { left: 0; }
.target-customer-matrix.overview-redesign .matrix-table .bureau-column,.target-customer-matrix.overview-redesign .matrix-table .bureau-name { left: 38px; }
.target-customer-matrix.overview-redesign .matrix-table .subtotal-column,.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell { left: 146px; }
.target-customer-matrix.overview-redesign .matrix-table .overview-projects-column,.target-customer-matrix.overview-redesign .matrix-table .overview-projects-cell { left: 208px; }
.target-customer-matrix.overview-redesign .matrix-table .overview-suppliers-column,.target-customer-matrix.overview-redesign .matrix-table .overview-suppliers-cell { left: 260px; }
.target-customer-matrix.overview-redesign .matrix-table .overview-dependency-column,.target-customer-matrix.overview-redesign .matrix-table .overview-dependency-cell { left: 312px; }
.target-customer-matrix.overview-redesign .matrix-table .serial-number,.target-customer-matrix.overview-redesign .matrix-table .bureau-name,.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell,.overview-summary-cell { font-size: 8.5px; }
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details { display: block; width: 100%; height: 36px !important; min-height: 36px !important; }
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell > .region-details > .region-summary,
.target-customer-matrix.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 36px !important; min-height: 36px !important; padding: 0 2px;
  background: linear-gradient(90deg,rgba(24,107,190,.78) 0 var(--amount-fill,0%),rgba(10,36,63,.92) var(--amount-fill,0%) 100%) !important;
  font-size: 8px; line-height: 1; text-shadow: 0 1px 2px #000;
}
.target-customer-matrix.overview-redesign #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details[data-amount-fill="0"] > .region-summary { background: #4d5765 !important; color: #e7edf5; }
.target-customer-matrix.overview-redesign .matrix-cell.has-supplier-mix > .region-details > .region-summary::after { right: 4px; bottom: 3px; left: 4px; height: 3px; }
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell { background: #0b2239 !important; }
.target-customer-matrix.overview-redesign .matrix-table .matrix-cell.is-empty { background: #4d5765 !important; }
.matrix-insight-panel { padding: 14px 13px; }
.matrix-insight-panel header { padding-bottom: 10px; }.matrix-insight-panel header>span { display:none; }.matrix-insight-panel h2 { margin-top:0; font-size:14px; }
.insight-metrics { margin: 10px 0; }.insight-metrics > div { padding: 9px; }.insight-metrics strong { font-size:17px; }
.insight-section { padding: 11px 0; }.insight-suppliers { gap:7px; }.insight-suppliers li { padding:6px 7px 8px; }
.insight-mixbar { display:flex; width:100%; height:12px; margin:0 0 10px; overflow:hidden; border-radius:2px; background:#18314a; }.insight-mixbar i{height:100%}.insight-mixbar i[data-index="0"]{background:#378ff5}.insight-mixbar i[data-index="1"]{background:#31b5ce}.insight-mixbar i[data-index="2"]{background:#42ad75}.insight-mixbar i[data-index="3"]{background:#f09a36}.insight-mixbar i[data-index="4"]{background:#9d60b5}
.insight-actions button { min-height:36px; font-size:10px; }
.target-customer-matrix.overview-redesign .matrix-table thead th:last-child,
.target-customer-matrix.overview-redesign .matrix-table tbody tr > td:last-child { display:none; }
.target-customer-matrix.overview-redesign .supplier-leaderboard { margin-top:-32px; height:calc(100dvh - 179px); }

/* UI/UX Pro Max quality pass: semantic tokens, states, accessibility and responsive behavior. */
.target-customer-matrix.overview-redesign {
  --ui-bg: #030b15;
  --ui-surface: #071626;
  --ui-surface-raised: #0a1d31;
  --ui-border: rgba(116, 170, 216, .22);
  --ui-border-strong: rgba(91, 177, 248, .42);
  --ui-primary: #3b9cff;
  --ui-primary-strong: #1785eb;
  --ui-text: #e8f2fb;
  --ui-text-muted: #9fb4c8;
  --ui-warning: #e99524;
  --ui-danger: #f05f72;
  --ui-success: #36c98f;
  /* Align the legacy sticky offsets with this compact dashboard layout. */
  --serial-column-width: 38px;
  --bureau-column-width: 108px;
  --subtotal-column-width: 62px;
  color: var(--ui-text);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.target-customer-matrix.overview-redesign .matrix-table {
  --serial-column-width: 38px;
  --bureau-column-width: 108px;
  --subtotal-column-width: 62px;
}
.overview-kpis svg { position:relative; z-index:1; width:31px; height:31px; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 4px color-mix(in srgb,currentColor 35%,transparent)); }
.overview-kpis [data-kpi="amount"] .overview-kpi-icon svg { transform:scale(1.16); transform-origin:center; }
.overview-kpis svg .icon-detail { opacity:.68; }
.overview-alerts .alert-item { display:inline-flex; gap:4px; align-items:center; color:var(--ui-text-muted); }
.overview-alerts .alert-item i { width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.overview-alerts .alert-item strong { color:var(--ui-text); font-variant-numeric:tabular-nums; }
.overview-alerts .alert-item.is-red i { color:var(--ui-danger); }.overview-alerts .alert-item.is-orange i { color:var(--ui-warning); }.overview-alerts .alert-item.is-cyan i { color:#2dc6df; }
.overview-filter-status { align-self:center; color:#839bb1; font-size:9px; white-space:nowrap; }
.overview-filterbar select,.overview-filterbar input,.overview-filterbar button,.overview-metricbar button,.overview-alerts button,.insight-actions button { transition:border-color 180ms ease,background-color 180ms ease,color 180ms ease,box-shadow 180ms ease,opacity 180ms ease; touch-action:manipulation; }
.overview-filterbar select:hover,.overview-filterbar input:hover { border-color:rgba(76,164,235,.48); }
.overview-filterbar button:hover,.overview-metricbar button:not(:disabled):hover,.overview-alerts button:hover,.insight-actions button:hover { border-color:var(--ui-border-strong); color:#fff; background-color:rgba(36,121,199,.2); }
.overview-filterbar button:active,.overview-metricbar button:not(:disabled):active,.overview-alerts button:active,.insight-actions button:active { background-color:rgba(36,121,199,.34); }
.overview-metricbar button:disabled { cursor:not-allowed; opacity:.4; }
.overview-filterbar :focus-visible,.overview-metricbar button:focus-visible,.overview-alerts button:focus-visible,.insight-actions button:focus-visible,.matrix-table summary:focus-visible { outline:2px solid #67b8ff !important; outline-offset:2px; box-shadow:0 0 0 4px rgba(59,156,255,.18) !important; }
.target-customer-matrix.overview-redesign .matrix-table tbody > tr { transition:filter 160ms ease,background-color 160ms ease; }
.target-customer-matrix.overview-redesign .matrix-table tbody > tr:hover { filter:brightness(1.14); }
.target-customer-matrix.overview-redesign .matrix-table tbody > tr:hover .bureau-name { color:#fff; background:#0c2945 !important; }
.target-customer-matrix.overview-redesign .matrix-cell.is-region-dimmed,.target-customer-matrix.overview-redesign th.is-region-dimmed { opacity:.22; filter:saturate(.35); }
.target-customer-matrix.overview-redesign .matrix-cell,.target-customer-matrix.overview-redesign .region-column { transition:opacity 180ms ease,filter 180ms ease,box-shadow 180ms ease; }
.target-customer-matrix.overview-redesign .matrix-cell.is-insight-selected { box-shadow:inset 0 0 0 2px #49c7ff,0 0 0 1px rgba(73,199,255,.35),0 0 16px rgba(49,167,255,.35) !important; }
.target-customer-matrix.overview-redesign .bureau-name { text-overflow:ellipsis; }
.target-customer-matrix .matrix-detail,.target-customer-matrix .project-list { content-visibility:auto; contain-intrinsic-size:1px 500px; }
.matrix-insight-panel { scrollbar-color:#245a85 transparent; scrollbar-width:thin; }
.matrix-insight-panel::-webkit-scrollbar,.matrix-scroll::-webkit-scrollbar { width:8px; height:8px; }.matrix-insight-panel::-webkit-scrollbar-thumb,.matrix-scroll::-webkit-scrollbar-thumb { border-radius:8px; background:#245a85; }
@media (max-width: 1500px) {
  .overview-filter-status { display:none; }
}
@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign .site-header { display:block; height:auto; max-height:none; min-height:0; padding:12px; }
  .target-customer-matrix.overview-redesign .site-title { font-size:20px; white-space:normal; }
  .target-customer-matrix.overview-redesign .site-lede { font-size:10px; white-space:normal; }
  .overview-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:12px; border-radius:8px; }
  .overview-kpis > div { min-height:58px; border-bottom:1px solid rgba(79,139,190,.13); }
  .overview-alerts { display:none; }
  .overview-filterbar { grid-template-columns:1fr; gap:8px; }
  .overview-filterbar label { grid-template-columns:72px 1fr; font-size:12px; }
  .overview-filterbar select,.overview-filterbar input,.overview-filterbar button { height:44px; font-size:16px; }
  .overview-metricbar { display:block; overflow-x:auto; padding-right:0; white-space:nowrap; scrollbar-width:none; }
  .overview-metricbar > div { display:inline-flex; margin-right:12px; }
  .overview-metricbar button { height:44px; font-size:12px; }
  .target-customer-matrix.overview-redesign .matrix-content { display:block; }
  .target-customer-matrix.overview-redesign .matrix-scroll { width:100%; height:520px; min-height:520px; overflow:auto; }
  .target-customer-matrix.overview-redesign .supplier-leaderboard { width:100%; height:auto; min-height:520px; margin:12px 0 0; }
  .overview-legend { display:none; }
  .target-customer-matrix.overview-redesign .matrix-table { min-width:1050px; }
  .target-customer-matrix.overview-redesign .matrix-table .subtotal-column,.target-customer-matrix.overview-redesign .matrix-table .subtotal-cell,.target-customer-matrix.overview-redesign .matrix-table .overview-summary-column,.target-customer-matrix.overview-redesign .matrix-table .overview-summary-cell { position:static; }
  .insight-actions button { min-height:44px; font-size:13px; }
}
@media (max-width: 1250px) { .target-customer-matrix.overview-redesign .site-header { grid-template-columns: 300px 1fr; }.overview-alerts{display:none}.target-customer-matrix.overview-redesign .matrix-content{grid-template-columns:minmax(0,1fr) 320px}.overview-filterbar{grid-template-columns:repeat(3,1fr)} }

/* Distinct filter dimensions; important keeps these group boundaries over later density rules. */
@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar .matrix-toolbar { gap: 5px !important; padding-left: 7px !important; }
  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    min-height: 28px !important;
    padding: 1px 3px 1px 6px !important;
    border: 1px solid rgba(125,211,252,.2) !important;
    border-radius: 8px !important;
    background: rgba(3,11,22,.42) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
  }
  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    padding-left: 6px;
    border-left: 1px solid rgba(125,211,252,.18);
  }
  .target-customer-matrix .matrix-topbar .matrix-year-filter .matrix-toolbar-label,
  .target-customer-matrix .matrix-topbar .matrix-type-filter .matrix-toolbar-label {
    align-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 2px !important;
    padding-right: 5px !important;
    border-right: 1px solid rgba(125,211,252,.12) !important;
    color: #9cb1c9 !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
  }
  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    margin-left: 1px;
    padding-left: 6px;
  }
}

/* Make year and project type read as two separate filter dimensions. */
@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    gap: 5px;
    padding-left: 7px;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    min-height: 28px;
    padding: 1px 3px 1px 6px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 8px;
    background: rgba(3, 11, 22, .36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  }

  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    padding-left: 6px;
    border-left: 1px solid rgba(125, 211, 252, .18);
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter .matrix-toolbar-label,
  .target-customer-matrix .matrix-topbar .matrix-type-filter .matrix-toolbar-label {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    padding-right: 5px;
    border-right: 1px solid rgba(125, 211, 252, .12);
    color: #9cb1c9;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    margin-left: 1px;
    padding-left: 6px;
  }
}

/* Desktop control rail: one calm surface with clear functional groups. */
@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(188px, 0.54fr) minmax(326px, 0.92fr) minmax(0, 3.54fr);
    gap: 0;
    padding: 3px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(12, 25, 42, 0.98), rgba(7, 16, 29, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 10px 28px -24px rgba(0, 0, 0, 0.9);
  }

  .target-customer-matrix .matrix-topbar .matrix-stats,
  .target-customer-matrix .matrix-topbar .matrix-find,
  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    height: 32px;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats {
    gap: 0;
    padding-right: 6px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats > div {
    min-height: 32px;
    padding: 1px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats > div + div {
    border-left: 1px solid rgba(125, 211, 252, 0.13);
  }

  .target-customer-matrix .matrix-topbar .matrix-stats strong {
    color: #7dd3fc;
    font-size: 14px;
    line-height: 1;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats span {
    color: #8297af;
    font-size: 8.5px;
    line-height: 1.15;
  }

  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 7px;
    padding: 0 10px;
    border-left: 1px solid rgba(125, 211, 252, 0.16);
    border-right: 1px solid rgba(125, 211, 252, 0.16);
  }

  .target-customer-matrix .matrix-find-label {
    color: #a8bad0;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .target-customer-matrix .matrix-row-search {
    height: 28px;
    padding-right: 48px;
    border-color: rgba(148, 163, 184, 0.2);
    border-radius: 7px;
    background: rgba(4, 12, 23, 0.56);
    font-size: 11px;
  }

  .target-customer-matrix .matrix-find-clear {
    min-width: 38px;
    min-height: 22px;
    font-size: 10px;
  }

  .target-customer-matrix .matrix-topbar .matrix-find-status {
    min-width: 92px;
    color: #7890aa;
    font-size: 9.5px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    padding: 0 3px 0 10px;
    gap: 7px;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    gap: 2px;
  }

  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    padding-left: 7px;
    border-left: 1px solid rgba(125, 211, 252, 0.13);
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar-label {
    margin-right: 2px;
    color: #6f859e;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    min-height: 26px;
    padding-right: 7px;
    padding-left: 7px;
    border-color: transparent;
    border-radius: 7px;
    color: #93a6bc;
    background: transparent;
    font-size: 9.5px;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip:hover,
  .target-customer-matrix .matrix-topbar .matrix-type-chip:hover {
    border-color: rgba(125, 211, 252, 0.2);
    color: #d4e5f7;
    background: rgba(125, 211, 252, 0.07);
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip.is-active,
  .target-customer-matrix .matrix-topbar .matrix-type-chip.is-active {
    border-color: rgba(56, 189, 248, 0.52);
    color: #f0f9ff;
    background: linear-gradient(180deg, rgba(14, 128, 190, 0.34), rgba(30, 99, 164, 0.26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar > label {
    min-height: 26px;
    padding-right: 10px;
    padding-left: 10px;
    border-color: transparent;
    color: #8195ad;
    background: transparent;
    font-size: 9.5px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar > label:first-of-type {
    border-radius: 7px 0 0 7px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar > label:last-of-type {
    border-left: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 0 7px 7px 0;
  }

  .target-customer-matrix #matrix-metric-count:checked ~ .matrix-topbar label[for="matrix-metric-count"],
  .target-customer-matrix #matrix-metric-amount:checked ~ .matrix-topbar label[for="matrix-metric-amount"] {
    color: #e0f2fe;
    background: rgba(47, 140, 255, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-normal);
  background:
    radial-gradient(820px 420px at 14% -8%, rgba(31, 111, 198, 0.28), transparent 68%),
    radial-gradient(760px 360px at 84% -6%, rgba(47, 211, 154, 0.12), transparent 62%),
    radial-gradient(120% 90% at 50% -8%, #0b1422 0%, #06090f 55%, #04060b 100%) fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(75, 122, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 122, 184, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0, black 180px);
}

a,
button,
input,
summary,
label {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
label:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--page-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  border: 1px solid #7dd3fc;
  border-radius: 10px;
  color: #082f49;
  background: #e0f2fe;
  box-shadow: 0 14px 36px -20px #000;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.92), rgba(6, 11, 20, 0.72));
  box-shadow: 0 18px 48px -44px #000;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 13px;
  color: #7dd3fc;
  background: linear-gradient(145deg, rgba(47, 140, 255, 0.24), rgba(15, 118, 110, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -20px #2f8cff;
}

.site-mark svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-brand-copy {
  min-width: 0;
}

.site-eyebrow {
  margin: 0 0 4px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(22px, 1.7vw, 27px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.site-lede {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 3px 0 0;
  color: #9fb0c8;
  font-size: 11.5px;
}

.beian-inline {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.12);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.beian-inline:hover {
  border-color: rgba(125, 211, 252, 0.58);
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.34);
}

.top-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 44px;
}

.view-nav {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--page-edge);
  border-radius: 12px;
  background: rgba(13, 26, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.view-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 9px;
  color: #9fb3c8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.view-nav a:hover {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.view-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #2f8cff, #1f6fc6);
  box-shadow: 0 4px 14px -6px #2f8cff;
}

.page-main {
  width: auto;
  max-width: 2400px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}

.data-loading {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #9fb3c8;
  background: rgba(4, 6, 11, 0.96);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  opacity: 1;
  transition: opacity 180ms ease;
}

.data-loading::before {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(125, 211, 252, 0.18);
  border-top-color: #38bdf8;
  border-radius: 50%;
  content: "";
  animation: data-loading-spin 850ms linear infinite;
}

.data-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes data-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.methodology {
  margin: 0 0 6px;
  border: 1px solid var(--page-edge);
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.62);
  overflow: hidden;
}

.methodology > summary {
  position: relative;
  min-height: 32px;
  padding: 7px 40px 7px 12px;
  color: #bad2ee;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.methodology > summary::-webkit-details-marker {
  display: none;
}

.methodology > summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7dd3fc;
  border-bottom: 2px solid #7dd3fc;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.methodology[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.methodology-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.methodology-note {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(13, 26, 43, 0.7);
}

.methodology-note h2 {
  margin: 0 0 6px;
  color: #dbeafe;
  font-size: 13px;
}

.methodology-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.page-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-toast);
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 13px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(8, 17, 31, 0.94);
  box-shadow: 0 16px 44px -24px #000;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body > a[href="/api/wechat/logout"] {
  display: none !important;
}

.page-main > .methodology,
.page-main > .matrix-source {
  display: none;
}

/* The imported Obsidian snippet is mapped to this standalone page here. */
.target-customer-matrix .matrix-source {
  margin-top: 0;
  overflow: hidden;
  padding: 6px 11px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-left: 3px solid #38bdf8;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.12), rgba(10, 16, 28, 0.54));
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-customer-matrix .matrix-stats > div,
.target-customer-matrix .matrix-scroll,
.target-customer-matrix .supplier-leaderboard {
  box-shadow: 0 18px 46px -34px #000;
}

.target-customer-matrix .matrix-shell {
  display: block;
}

.target-customer-matrix .matrix-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
  margin: 6px 0 4px;
}

.target-customer-matrix .matrix-topbar .matrix-stats {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

.target-customer-matrix .matrix-stats > div {
  border-color: rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(13, 26, 43, 0.94), rgba(8, 17, 31, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.target-customer-matrix .matrix-stats strong {
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.target-customer-matrix .matrix-find {
  display: grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  grid-column: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--page-edge);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(13, 26, 43, 0.88), rgba(8, 17, 31, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.target-customer-matrix .matrix-find-label {
  color: #c7d7eb;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.target-customer-matrix .matrix-find-field {
  position: relative;
  min-width: 0;
}

.target-customer-matrix .matrix-row-search {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 62px 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #e5edf7;
  background: #0d1a2b;
  font: inherit;
  font-size: 13px;
  line-height: 1;
}

.target-customer-matrix .matrix-row-search::placeholder {
  color: #71839b;
}

.target-customer-matrix .matrix-row-search::-webkit-search-cancel-button {
  appearance: none;
}

.target-customer-matrix .matrix-row-search:hover {
  border-color: rgba(125, 211, 252, 0.46);
}

.target-customer-matrix .matrix-row-search:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.target-customer-matrix .matrix-find-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 46px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.target-customer-matrix .matrix-find-clear:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.24);
}

.target-customer-matrix .matrix-find-clear[hidden] {
  display: none;
}

.target-customer-matrix .matrix-find-status {
  min-width: 94px;
  color: #91a6bf;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.target-customer-matrix .matrix-pan-hint {
  display: none;
  color: #7f94ad;
  font-size: 11.5px;
}

.target-customer-matrix .matrix-toolbar label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-right: 14px;
  padding-left: 14px;
}

.target-customer-matrix .matrix-metric-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.target-customer-matrix .matrix-metric-switch .matrix-toolbar-label {
  margin-right: 2px;
}

.target-customer-matrix .matrix-toolbar-label {
  flex: 0 0 auto;
  color: #8fa5bf;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.target-customer-matrix .matrix-year-chip,
.target-customer-matrix .matrix-type-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding-right: 11px;
  padding-left: 11px;
  border-color: rgba(148, 163, 184, 0.22);
  color: #a9bad0;
  background: rgba(8, 17, 31, 0.76);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.target-customer-matrix .matrix-year-chip.is-active,
.target-customer-matrix .matrix-type-chip.is-active {
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
  background: rgba(47, 140, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.06);
}

.target-customer-matrix .matrix-amount-scale {
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.14);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-toolbar .matrix-amount-scale {
  display: inline-flex;
}

.target-customer-matrix .matrix-toolbar {
  grid-column: 2;
  align-self: start;
  min-height: 48px;
  min-width: 0;
  margin: 0;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--page-edge);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(13, 26, 43, 0.88), rgba(8, 17, 31, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  scroll-margin-top: 120px;
}

.target-customer-matrix .matrix-filter-summary {
  display: none !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  color: #c7d7eb;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.15), rgba(13, 26, 43, 0.74));
}

.target-customer-matrix .matrix-filter-summary[hidden] {
  display: none;
}

.target-customer-matrix .matrix-filter-status {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}

.target-customer-matrix .matrix-reset-filters {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 9px;
  color: #e0f2fe;
  background: rgba(47, 140, 255, 0.14);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.target-customer-matrix .matrix-reset-filters:hover {
  border-color: rgba(125, 211, 252, 0.62);
  background: rgba(47, 140, 255, 0.24);
}

.target-customer-matrix .matrix-filter-summary .supplier-filter-context {
  flex: 0 1 auto;
}

.target-customer-matrix .matrix-shell.is-matrix-filtered .project-item[hidden],
.target-customer-matrix .matrix-shell.is-matrix-filtered .unit-details[hidden],
.target-customer-matrix .matrix-shell.is-matrix-filtered .unit-row[hidden] {
  display: none !important;
}

.target-customer-matrix .matrix-content {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 360px);
  gap: 12px;
}

.target-customer-matrix .matrix-scroll,
.target-customer-matrix .supplier-leaderboard {
  height: clamp(540px, 66vh, 760px);
  max-height: none;
}

.target-customer-matrix .matrix-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(125, 211, 252, 0.36) rgba(13, 26, 43, 0.68);
}

.target-customer-matrix.is-region-open .matrix-scroll {
  z-index: var(--z-popover);
}

.target-customer-matrix .supplier-leaderboard {
  position: relative;
  z-index: 0;
}

.target-customer-matrix .matrix-scroll.is-search-empty::after {
  position: sticky;
  left: 16px;
  display: block;
  width: min(520px, calc(100vw - 64px));
  margin: 72px 16px;
  padding: 28px 20px;
  border: 1px dashed rgba(125, 211, 252, 0.28);
  border-radius: 12px;
  color: #9fb3c8;
  background: rgba(13, 26, 43, 0.76);
  content: "没有找到匹配内容，请试试委办局简称或项目关键词";
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.target-customer-matrix .matrix-table {
  --serial-column-width: 52px;
  --bureau-column-width: 132px;
  --subtotal-column-width: 184px;
  width: 100%;
  min-width: 1424px;
  height: auto;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.35;
}

.target-customer-matrix .matrix-table thead th {
  height: 48px;
  padding: 8px 7px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.target-customer-matrix .matrix-table thead th.has-column-total {
  height: 66px;
  padding-top: 7px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.target-customer-matrix .matrix-column-total {
  display: block;
  min-width: 0;
  margin-top: 4px;
  padding: 4px 3px 3px;
  border-top: 1px solid rgba(219, 234, 254, 0.24);
  border-radius: 4px;
  color: #ffffff;
  background: rgba(4, 18, 42, 0.48);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.72);
  white-space: nowrap;
}

.target-customer-matrix .matrix-column-total-amount {
  color: #ffffff;
}

.target-customer-matrix .matrix-table tbody tr {
  height: auto;
  min-height: 48px;
}

.target-customer-matrix .matrix-table tbody tr[hidden] {
  display: none !important;
}

.target-customer-matrix .matrix-table .serial-column,
.target-customer-matrix .matrix-table .serial-number {
  position: sticky !important;
  left: 0 !important;
  width: var(--serial-column-width);
  min-width: var(--serial-column-width);
  max-width: var(--serial-column-width);
}

.target-customer-matrix .matrix-table .bureau-column,
.target-customer-matrix .matrix-table .bureau-name {
  position: sticky !important;
  left: var(--serial-column-width) !important;
  width: var(--bureau-column-width);
  min-width: var(--bureau-column-width);
  max-width: var(--bureau-column-width);
}

.target-customer-matrix .matrix-table .subtotal-column,
.target-customer-matrix .matrix-table .subtotal-cell {
  position: sticky !important;
  left: calc(var(--serial-column-width) + var(--bureau-column-width)) !important;
  width: var(--subtotal-column-width);
  min-width: var(--subtotal-column-width);
  max-width: var(--subtotal-column-width);
}

.target-customer-matrix .matrix-table thead .serial-column,
.target-customer-matrix .matrix-table thead .bureau-column,
.target-customer-matrix .matrix-table thead .subtotal-column {
  z-index: 12;
}

.target-customer-matrix .matrix-table .serial-number,
.target-customer-matrix .matrix-table .bureau-name,
.target-customer-matrix .matrix-table .subtotal-cell {
  z-index: 7;
  vertical-align: middle;
}

.target-customer-matrix .matrix-table .serial-number {
  padding: 10px 6px;
  font-size: 12px;
}

.target-customer-matrix .matrix-table .bureau-name {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: keep-all;
}

.target-customer-matrix .matrix-table .subtotal-column,
.target-customer-matrix .matrix-table .subtotal-cell {
  box-shadow: 10px 0 18px -16px rgba(0, 0, 0, 0.92);
}

.target-customer-matrix .matrix-table .subtotal-cell {
  padding: 9px 7px;
  font-size: 13px;
}

.target-customer-matrix .matrix-table .region-column,
.target-customer-matrix .matrix-table .matrix-cell {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.target-customer-matrix .matrix-table .matrix-cell {
  padding: 8px 6px;
  vertical-align: middle;
}

.target-customer-matrix .matrix-table .empty-mark {
  min-height: 30px;
  font-size: 15px;
}

.target-customer-matrix .matrix-table .matrix-cell > .region-details > .region-summary {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12.5px;
  line-height: 1.2;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details {
  display: block;
  width: 100%;
  height: 100%;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  color: #f8fafc;
  background: linear-gradient(
    90deg,
    rgba(47, 140, 255, 0.62) 0%,
    rgba(47, 140, 255, 0.62) var(--amount-fill, 0%),
    rgba(30, 58, 92, 0.42) var(--amount-fill, 0%),
    rgba(30, 58, 92, 0.42) 100%
  );
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.9);
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell {
  padding: 0;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details[data-amount-fill="0"] > .region-summary,
.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details:not([data-amount-fill]) > .region-summary {
  background: transparent;
  text-shadow: none;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details[data-amount-capped="true"] > .region-summary {
  background: linear-gradient(90deg, rgba(29, 122, 223, 0.9), rgba(47, 140, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.16);
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .region-summary::before,
.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .region-summary .count-pill {
  position: relative;
  z-index: 1;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .region-summary .count-pill {
  overflow: visible;
  text-overflow: clip;
}

/* 100% supplier-composition bars: count share in count view, known-amount share in amount view. */
.target-customer-matrix .matrix-supplier-legend .is-zhicheng { background: #ff4d5e; }
.target-customer-matrix .matrix-supplier-legend .is-telecom { background: #2f8cff; }
.target-customer-matrix .matrix-supplier-legend .is-mobile { background: #22c55e; }
.target-customer-matrix .matrix-supplier-legend .is-unicom { background: #facc15; }
.target-customer-matrix .matrix-supplier-legend .is-other { background: #64748b; }

.target-customer-matrix .matrix-table .matrix-cell.has-supplier-mix,
.target-customer-matrix .matrix-table .subtotal-cell.has-supplier-mix {
  --supplier-mix-gradient: var(--supplier-mix-count-gradient);
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell.has-supplier-mix,
.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .subtotal-cell.has-supplier-mix {
  --supplier-mix-gradient: var(--supplier-mix-amount-gradient);
}

/* Keep the bureau subtotal visually distinct from the regional detail columns. */
.target-customer-matrix .matrix-table .subtotal-column {
  border-right: 3px solid rgba(125, 211, 252, 0.78) !important;
  border-left: 1px solid rgba(219, 234, 254, 0.34) !important;
  background: linear-gradient(180deg, #2279d2 0%, #185da8 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(3, 15, 32, 0.38), 7px 0 14px -10px rgba(0, 0, 0, 0.96) !important;
}

.target-customer-matrix .matrix-table .subtotal-column .matrix-column-total {
  border-top-color: rgba(219, 234, 254, 0.4);
  background: rgba(3, 18, 38, 0.58);
}

.target-customer-matrix .matrix-table .subtotal-cell {
  border-right: 3px solid rgba(125, 211, 252, 0.6) !important;
  border-left: 1px solid rgba(125, 211, 252, 0.22) !important;
  background-color: #0b1d32 !important;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.035), 7px 0 14px -11px rgba(0, 0, 0, 0.98) !important;
}

.target-customer-matrix .matrix-table .subtotal-cell.has-supplier-mix {
  background-image:
    linear-gradient(180deg, rgba(6, 20, 38, 0.09), rgba(6, 20, 38, 0.24)),
    var(--supplier-mix-gradient) !important;
}

.target-customer-matrix .matrix-table .subtotal-value {
  color: #f4f9ff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell.has-supplier-mix > .region-details > .region-summary {
  background: transparent !important;
  box-shadow: none !important;
}

.target-customer-matrix .matrix-table .matrix-cell.has-supplier-mix > .region-details > .region-summary {
  color: #edf4fb !important;
  font-weight: 750;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.74) !important;
}

.target-customer-matrix .matrix-table .subtotal-cell.has-supplier-mix .subtotal-value {
  color: #edf4fb !important;
  font-weight: 750;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.74);
}

.target-customer-matrix .supplier-ranking-list > li[data-supplier-color="zhicheng"] {
  background: color-mix(in srgb, #ff4d5e 10%, var(--background-primary)) !important;
  box-shadow: inset 4px 0 0 #ff4d5e !important;
}

.target-customer-matrix .supplier-ranking-list > li[data-supplier-color="telecom"] {
  background: color-mix(in srgb, #2f8cff 11%, var(--background-primary)) !important;
  box-shadow: inset 4px 0 0 #2f8cff !important;
}

.target-customer-matrix .supplier-ranking-list > li[data-supplier-color="mobile"] {
  background: color-mix(in srgb, #22c55e 11%, var(--background-primary)) !important;
  box-shadow: inset 4px 0 0 #22c55e !important;
}

.target-customer-matrix .supplier-ranking-list > li[data-supplier-color="unicom"] {
  background: color-mix(in srgb, #facc15 10%, var(--background-primary)) !important;
  box-shadow: inset 4px 0 0 #facc15 !important;
}

.target-customer-matrix .supplier-ranking-list > li[data-supplier-color].is-supplier-selected {
  filter: saturate(1.18) brightness(1.08);
}

.target-customer-matrix .supplier-pie-tooltip {
  width: min(560px, calc(100vw - 24px));
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(7, 19, 34, 0.98);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.target-customer-matrix .supplier-pie-title {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  color: #dbeafe;
  font-size: 13px;
}

.target-customer-matrix .supplier-pie-body {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
}

.target-customer-matrix .supplier-pie-chart {
  width: 112px;
  height: 112px;
  margin-top: 18px;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.16), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.target-customer-matrix .supplier-pie-list {
  gap: 4px;
}

.target-customer-matrix .supplier-pie-list li {
  min-height: 17px;
  font-size: 10.5px;
}

.target-customer-matrix .supplier-pie-list .supplier-pie-list-head {
  min-height: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  color: #71839b;
  font-size: 9px;
  font-weight: 650;
}

.target-customer-matrix .supplier-pie-name {
  color: #c9d7e8;
}

.target-customer-matrix .supplier-pie-value {
  color: #e7f1fb;
}

.target-customer-matrix .supplier-pie-empty {
  grid-column: 1 / -1;
  min-height: 72px !important;
  color: #8297af;
}

.target-customer-matrix .supplier-pie-note {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  color: #8297af;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 600px) {
  .target-customer-matrix .supplier-pie-tooltip {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .target-customer-matrix .supplier-pie-body {
    grid-template-columns: 1fr;
  }

  .target-customer-matrix .supplier-pie-chart {
    width: 88px;
    height: 88px;
    margin: 0 auto 8px;
  }
}

.target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-column-total {
  margin-top: 1px;
  padding: 1px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.target-customer-matrix .matrix-detail {
  position: fixed !important;
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  z-index: var(--z-popover);
  width: min(600px, calc(100vw - 32px));
  max-height: min(72dvh, 680px);
  padding: 16px;
  border-color: rgba(125, 211, 252, 0.28);
  background: #091525;
  box-shadow: 0 22px 70px -20px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* A fixed detail panel still participates in its table cell's stacking context.
   Lift the open cell above sibling heat bars so they cannot paint over it. */
.target-customer-matrix.is-region-open .matrix-cell:has(> .region-details[open]) {
  z-index: calc(var(--z-popover) + 1) !important;
}

.target-customer-matrix .matrix-detail:has(.unit-details[open]) {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(82dvh, 780px);
}

.target-customer-matrix .matrix-detail::before {
  position: sticky;
  top: -12px;
  z-index: -1;
  display: block;
  height: 1px;
  content: "";
}

.target-customer-matrix .matrix-detail-close {
  position: sticky;
  top: 0;
  z-index: 3;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  margin: -6px -6px 8px 12px;
  padding: 7px 12px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 9px;
  color: #dbeafe;
  background: rgba(13, 26, 43, 0.96);
  box-shadow: 0 8px 20px -14px #000;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.target-customer-matrix .matrix-detail-close:hover {
  border-color: rgba(125, 211, 252, 0.62);
  color: #fff;
  background: rgba(47, 140, 255, 0.24);
}

.target-customer-matrix .matrix-detail-drag-handle {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: -6px -6px 8px;
  padding: 8px 76px 8px 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  color: #a9bad0;
  background: rgba(9, 21, 37, 0.96);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.target-customer-matrix .matrix-detail-drag-handle::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  background-image: radial-gradient(circle, #7dd3fc 1.2px, transparent 1.3px);
  background-position: 0 0;
  background-size: 5px 5px;
  content: "";
  opacity: 0.72;
}

.target-customer-matrix .matrix-detail-drag-handle::after {
  margin-left: 8px;
  color: #71839b;
  content: "拖动";
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.target-customer-matrix .matrix-detail-drag-handle:active,
.target-customer-matrix .matrix-detail.is-dragging .matrix-detail-drag-handle {
  cursor: grabbing;
}

.target-customer-matrix .matrix-detail.is-dragging {
  box-shadow: 0 28px 80px -18px #000, 0 0 0 1px rgba(125, 211, 252, 0.2);
}

.target-customer-matrix .region-summary,
.target-customer-matrix .unit-summary,
.target-customer-matrix .supplier-group-summary {
  -webkit-tap-highlight-color: transparent;
}

.target-customer-matrix .supplier-leaderboard-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
  background: linear-gradient(180deg, rgba(12, 28, 48, 0.99), rgba(8, 20, 36, 0.99));
  color: var(--text-normal);
}

.target-customer-matrix .supplier-leaderboard-head,
.target-customer-matrix .supplier-search {
  display: contents;
}

.target-customer-matrix .supplier-leaderboard-head strong {
  display: none;
}

.target-customer-matrix .supplier-leaderboard-head > span {
  grid-column: 2;
  grid-row: 1;
  min-height: 24px;
  padding-left: 8px;
  border-left: 1px solid rgba(125, 211, 252, 0.18);
  color: #9fb3c8;
  font-size: 10px;
  font-weight: 650;
  line-height: 24px;
  white-space: nowrap;
}

.target-customer-matrix .supplier-search-input {
  grid-column: 1;
  grid-row: 1;
  display: none;
  min-width: 0;
  min-height: 40px;
  padding-right: 46px;
  padding-left: 11px;
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(5, 15, 28, 0.88);
  color: #fff;
  font-size: 11px;
}

.target-customer-matrix .supplier-search-input::placeholder {
  color: #71839b;
}

.target-customer-matrix .supplier-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.target-customer-matrix .supplier-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.target-customer-matrix .supplier-leaderboard-columns {
  display: none;
}

.target-customer-matrix .supplier-ranking-list > li {
  min-height: 52px;
  padding: 9px 14px;
  content-visibility: auto;
  contain-intrinsic-block-size: 52px;
}

.target-customer-matrix .supplier-rank-index {
  justify-self: center;
  text-align: center;
}

.target-customer-matrix .supplier-ranking-list > li.is-supplier-group > .supplier-rank-index {
  align-self: start;
  margin-top: 10px;
}

.target-customer-matrix .supplier-all-option {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 46px 0 11px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 7px;
  color: var(--text-normal);
  background: rgba(5, 15, 28, 0.72);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.target-customer-matrix .supplier-all-option:hover,
.target-customer-matrix .supplier-all-option:focus-visible {
  border-color: #38bdf8;
  background: rgba(8, 23, 42, 0.9);
  outline: 2px solid rgba(56, 189, 248, 0.18);
  outline-offset: 1px;
}

.target-customer-matrix .supplier-all-option.is-supplier-selected {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(5, 15, 28, 0.72);
  box-shadow: none;
}

.target-customer-matrix .supplier-all-label {
  min-width: 0;
  overflow: hidden;
  color: #a9bad0;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-customer-matrix .supplier-all-count {
  flex: 0 0 auto;
  color: #71839b;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.target-customer-matrix .supplier-all-count::before {
  margin-right: 4px;
  color: #526a84;
  content: "·";
}

.target-customer-matrix .supplier-search-toggle {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 1px 0 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 0 6px 6px 0;
  color: #7dd3fc;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.target-customer-matrix .supplier-search-toggle:hover,
.target-customer-matrix .supplier-search-toggle:focus-visible {
  border-color: #38bdf8;
  color: #fff;
  background: rgba(47, 140, 255, 0.14);
  outline: 2px solid rgba(56, 189, 248, 0.2);
  outline-offset: -2px;
}

.target-customer-matrix .supplier-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.target-customer-matrix .supplier-search-close-icon {
  display: none;
}

.target-customer-matrix .supplier-leaderboard-toolbar.is-search-open .supplier-all-option {
  display: none;
}

.target-customer-matrix .supplier-leaderboard-toolbar.is-search-open .supplier-search-input {
  display: block;
}

.target-customer-matrix .supplier-leaderboard-toolbar.is-search-open .supplier-search-icon {
  display: none;
}

.target-customer-matrix .supplier-leaderboard-toolbar.is-search-open .supplier-search-close-icon {
  display: inline;
}

.target-customer-matrix .supplier-ranking-list > li[role="button"],
.target-customer-matrix .supplier-group-member[role="button"] {
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.target-customer-matrix .supplier-ranking-list > li[role="button"]:active,
.target-customer-matrix .supplier-group-member[role="button"]:active {
  background: rgba(47, 140, 255, 0.2);
}

.target-customer-matrix .supplier-group-summary,
.target-customer-matrix .supplier-group-member[role="button"] {
  min-height: 44px;
}

.target-customer-matrix .supplier-group-toggle {
  min-width: 44px;
  min-height: 30px;
}

.target-customer-matrix .supplier-filter-context {
  min-height: 40px;
  padding: 5px 7px 5px 11px;
  font-size: 12px;
  line-height: 1.35;
}

.target-customer-matrix .supplier-filter-name {
  font-size: 12px;
}

.target-customer-matrix .supplier-filter-clear {
  min-width: 48px;
  min-height: 32px;
  font-size: 11px;
}

.target-customer-matrix .matrix-shell.is-supplier-filtered .matrix-table tbody > tr:not([hidden]) .bureau-name,
.target-customer-matrix .matrix-shell.is-supplier-filtered .matrix-table tbody > tr:not([hidden]) .subtotal-cell {
  color: #dbeafe;
}

.target-customer-matrix .supplier-rank-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-customer-matrix .supplier-rank-value {
  font-size: 13px;
}

.target-customer-matrix .supplier-group-member > span,
.target-customer-matrix .supplier-group-member > strong {
  font-size: 11.5px;
}

.target-customer-matrix .detail-title {
  margin-bottom: 10px;
  font-size: 12.5px;
}

.target-customer-matrix .unit-details > .unit-summary {
  min-height: 46px;
  padding: 10px 7px;
  font-size: 13.5px;
  line-height: 1.45;
}

.target-customer-matrix .unit-details.is-main-group > .unit-summary {
  min-height: 46px;
  padding: 10px 7px;
}

.target-customer-matrix .unit-type {
  font-size: 11px;
}

.target-customer-matrix .project-list {
  padding-top: 5px;
  padding-bottom: 14px;
}

.target-customer-matrix .project-list-head {
  padding: 9px 11px;
  font-size: 11px;
}

.target-customer-matrix .project-item {
  gap: 12px;
  padding: 12px 11px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.58;
}

.target-customer-matrix .project-name {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}

.target-customer-matrix .project-name-link {
  display: inline;
  color: #dbeafe;
  text-decoration-color: rgba(125, 211, 252, 0.48);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.target-customer-matrix .project-name-link:hover {
  color: #7dd3fc;
  text-decoration-color: currentColor;
}

.target-customer-matrix .project-name-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--page-focus);
  outline-offset: 3px;
}

.target-customer-matrix .project-link-mark {
  display: inline-block;
  margin-left: 5px;
  color: #38bdf8;
  font-size: 0.9em;
  font-weight: 750;
  line-height: 1;
}

.target-customer-matrix .project-change-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 7px;
  padding: 1px 6px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.34);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}

.target-customer-matrix .project-contract-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 8px;
  vertical-align: 1px;
}

.target-customer-matrix .project-contract-parent-link,
.target-customer-matrix .project-contract-change-link,
.target-customer-matrix .project-contract-parent-ref {
  padding: 1px 5px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.52);
  font-size: 10.5px;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}

.target-customer-matrix .project-contract-parent-link:hover,
.target-customer-matrix .project-contract-change-link:hover {
  border-color: rgba(125, 211, 252, 0.65);
  color: #7dd3fc;
}

.target-customer-matrix .matrix-table .region-summary:focus-visible,
.target-customer-matrix .unit-details > .unit-summary:focus-visible,
.target-customer-matrix .supplier-group-summary:focus-visible {
  outline: 2px solid var(--page-focus);
  outline-offset: 2px;
}

.target-customer-matrix .matrix-table .region-details[open] > .region-summary {
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.24);
}

@media (min-width: 1200px) {
  .page-main {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .page-main > .methodology,
  .page-main > .matrix-source {
    align-self: stretch;
    margin: 0;
  }

  .page-main > .methodology[open],
  .page-main > .methodology[open] + .matrix-source,
  .page-main > .matrix-shell {
    grid-column: 1 / -1;
  }

  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(218px, 0.72fr) minmax(230px, 0.88fr) minmax(0, 4fr);
    gap: 8px;
    margin-top: 12px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(66px, 1fr));
    gap: 5px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats > div {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    gap: 2px;
    padding: 5px 4px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats strong {
    font-size: 17px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats span {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: auto minmax(112px, 1fr) auto;
    gap: 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .target-customer-matrix .matrix-topbar .matrix-find-status {
    min-width: 76px;
    font-size: 11px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.28) transparent;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    flex: 0 0 auto;
    gap: 3px;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter {
    margin-right: 3px;
  }

  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    order: initial;
    width: auto;
    overflow: visible;
    padding-top: 0;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar-label,
  .target-customer-matrix .matrix-topbar .matrix-toolbar > label,
  .target-customer-matrix .matrix-topbar .matrix-amount-scale {
    flex: 0 0 auto;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar > label {
    min-height: 32px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 1.28fr);
    gap: 10px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats {
    grid-column: 1;
    grid-row: 1;
  }

  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-column: 2;
    grid-row: 1;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: visible;
    flex-wrap: wrap;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter {
    margin-right: 8px;
  }

  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    order: 2;
    flex: 1 1 820px;
    width: auto;
    overflow: visible;
    padding-top: 0;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    min-height: 34px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }

  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    order: 3;
  }
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    padding: 14px 16px;
  }

  .view-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
  }

  .view-nav a {
    flex: 1 1 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .top-buttons {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .target-customer-matrix .matrix-scroll,
  .target-customer-matrix .supplier-leaderboard {
    height: clamp(480px, 62vh, 680px);
  }
}

@media (max-width: 900px) {
  .page-main {
    padding-right: 8px;
    padding-left: 8px;
  }

  .methodology-content {
    grid-template-columns: 1fr;
  }

  .target-customer-matrix .matrix-content {
    display: block;
  }

  .target-customer-matrix .matrix-scroll {
    height: clamp(480px, 64dvh, 680px);
  }

  .target-customer-matrix .matrix-table {
    width: 100%;
    min-width: 1424px;
    height: auto;
    font-size: 12.5px;
  }

  .target-customer-matrix .matrix-table thead th {
    height: 46px;
  }

  .target-customer-matrix .matrix-table thead th.has-column-total {
    height: 66px;
  }

  .target-customer-matrix .matrix-table tbody tr {
    height: auto;
    min-height: 46px;
  }

  .target-customer-matrix .supplier-leaderboard {
    height: clamp(460px, 62dvh, 650px);
    margin-top: 12px;
  }

  .target-customer-matrix .matrix-pan-hint {
    display: inline;
    grid-column: 2 / -1;
  }

  .target-customer-matrix .matrix-filter-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .target-customer-matrix .matrix-filter-status {
    flex-basis: calc(100% - 130px);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding: 12px 10px 10px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .site-mark svg {
    width: 29px;
    height: 29px;
  }

  .site-title {
    font-size: 20px;
  }

  .site-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .site-lede {
    display: block;
    overflow: hidden;
    max-width: 58vw;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .beian-inline {
    display: none;
  }

  .view-nav {
    min-height: 52px;
  }

  .view-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 6px 2px;
    font-size: 12px;
  }

  .methodology > summary {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .target-customer-matrix .matrix-source {
    overflow: visible;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    text-overflow: clip;
    white-space: normal;
  }

  .target-customer-matrix .matrix-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .target-customer-matrix .matrix-stats > div {
    display: block;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  .target-customer-matrix .matrix-stats strong,
  .target-customer-matrix .matrix-stats span {
    display: block;
  }

  .target-customer-matrix .matrix-stats strong {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .target-customer-matrix .matrix-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-customer-matrix .matrix-find {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1;
    grid-row: 2;
    min-height: 54px;
    margin-bottom: 0;
  }

  .target-customer-matrix .matrix-find-label {
    display: none;
  }

  .target-customer-matrix .matrix-row-search {
    height: 44px;
    font-size: 16px;
  }

  .target-customer-matrix .matrix-find-clear {
    right: 0;
    min-width: 52px;
    min-height: 44px;
    border-left: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 0 9px 9px 0;
  }

  .target-customer-matrix .matrix-find-status {
    min-width: 78px;
    font-size: 11.5px;
  }

  .target-customer-matrix .matrix-pan-hint {
    grid-column: 1 / -1;
  }

  .target-customer-matrix .matrix-toolbar {
    grid-column: 1;
    grid-row: 3;
    justify-content: stretch;
    justify-self: stretch;
    margin-bottom: 0;
  }

  .target-customer-matrix .matrix-toolbar-label {
    margin-right: auto;
  }

  .target-customer-matrix .matrix-toolbar label {
    flex: 1 1 0;
    min-height: 44px;
  }

  .target-customer-matrix .matrix-metric-switch {
    width: 100%;
    margin-left: 0;
  }

  .target-customer-matrix .matrix-metric-switch .matrix-toolbar-label {
    flex: 0 0 auto;
  }

  .target-customer-matrix .matrix-year-chip,
  .target-customer-matrix .matrix-type-chip {
    min-height: 44px;
  }

  .target-customer-matrix .supplier-filter-clear,
  .target-customer-matrix .supplier-group-toggle,
  .target-customer-matrix .matrix-reset-filters {
    min-height: 44px;
  }

  .target-customer-matrix .matrix-filter-status {
    flex-basis: 100%;
    order: -1;
  }

  .target-customer-matrix .matrix-reset-filters {
    flex: 1 1 auto;
  }

  .target-customer-matrix .matrix-content {
    grid-row: auto;
  }

  .target-customer-matrix .matrix-table {
    --serial-column-width: 0px;
    --bureau-column-width: 160px;
    --subtotal-column-width: 88px;
    min-width: 1304px;
  }

  .target-customer-matrix .matrix-table .serial-column,
  .target-customer-matrix .matrix-table .serial-number {
    display: none;
  }

  .target-customer-matrix .matrix-table .bureau-column,
  .target-customer-matrix .matrix-table .bureau-name {
    left: 0 !important;
  }

  .target-customer-matrix .matrix-table thead .subtotal-column {
    position: sticky !important;
    top: 0;
    left: auto !important;
    z-index: 4;
  }

  .target-customer-matrix .matrix-table .subtotal-cell {
    position: static !important;
    left: auto !important;
  }

  .target-customer-matrix .matrix-table .bureau-name {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12.5px;
  }

  .target-customer-matrix .matrix-table .matrix-cell > .region-details > .region-summary {
    min-height: 44px;
  }

  .target-customer-matrix .matrix-detail,
  .target-customer-matrix .matrix-detail:has(.unit-details[open]) {
    right: 8px;
    left: 8px;
    width: auto;
    max-height: min(78dvh, 640px);
    padding: 12px;
  }

  .target-customer-matrix .project-item {
    padding: 11px 10px;
    font-size: 13px;
  }

  .target-customer-matrix .project-name-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

/* Desktop workspace: reserve the first screen for the data matrix. */
@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(190px, 0.55fr) minmax(340px, 0.9fr) minmax(0, 3.55fr);
    align-items: stretch;
    gap: 6px;
    height: 40px;
    margin: 0 0 4px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(54px, 1fr));
    gap: 4px;
    height: 40px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats > div {
    min-height: 40px;
    padding: 3px;
    border-radius: 9px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats strong {
    font-size: 15px;
  }

  .target-customer-matrix .matrix-topbar .matrix-stats span {
    font-size: 9px;
  }

  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    min-height: 40px;
    height: 40px;
    padding: 3px 7px;
    border-radius: 10px;
  }

  .target-customer-matrix .matrix-row-search {
    height: 32px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    flex-wrap: nowrap;
    min-height: 40px;
    height: 40px;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 5px;
    border-radius: 10px;
    scrollbar-width: none;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar::-webkit-scrollbar {
    display: none;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    gap: 3px;
    overflow: visible;
    padding: 0;
  }

  .target-customer-matrix .matrix-topbar .matrix-type-filter {
    order: initial;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar-label,
  .target-customer-matrix .matrix-topbar .matrix-toolbar > label,
  .target-customer-matrix .matrix-topbar .matrix-amount-scale {
    flex: 0 0 auto;
  }

  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    min-height: 30px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .target-customer-matrix .matrix-topbar .matrix-toolbar > label {
    min-height: 30px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10.5px;
  }

  .target-customer-matrix .matrix-topbar .matrix-metric-switch {
    order: initial;
    margin-left: auto;
  }

  .target-customer-matrix .matrix-supplier-legend {
    min-height: 16px;
    gap: 4px 11px;
    margin-bottom: 4px;
    font-size: 10px;
  }

  .target-customer-matrix .matrix-supplier-legend i {
    width: 8px;
    height: 8px;
  }

  .target-customer-matrix .matrix-scroll,
  .target-customer-matrix .supplier-leaderboard {
    height: max(520px, calc(100dvh - 174px));
  }

  .target-customer-matrix .matrix-table {
    height: 100%;
    font-size: clamp(8px, 0.9dvh, 11px);
    line-height: 1;
  }

  .target-customer-matrix .matrix-table thead th {
    height: 3.6%;
    padding: 1px 3px;
    font-size: clamp(11.5px, 1.1dvh, 15px);
    line-height: 1.05;
  }

  .target-customer-matrix .matrix-table thead th.has-column-total {
    height: 3.6%;
    padding: 1px 3px;
  }

  .target-customer-matrix .matrix-column-total {
    margin-top: 1px;
    padding: 1px 2px;
    font-size: clamp(9px, 0.8dvh, 11px);
    line-height: 1;
  }

  .target-customer-matrix .matrix-table tbody tr {
    height: 2.47%;
    min-height: 0;
  }

  .target-customer-matrix .matrix-table .serial-number,
  .target-customer-matrix .matrix-table .bureau-name,
  .target-customer-matrix .matrix-table .subtotal-cell,
  .target-customer-matrix .matrix-table .matrix-cell {
    padding: 0 2px;
  }

  .target-customer-matrix .matrix-table .serial-number {
    font-size: clamp(10px, 0.95dvh, 12.5px);
    font-weight: 700;
  }

  .target-customer-matrix .matrix-table .bureau-name {
    overflow: hidden;
    padding-right: 4px;
    padding-left: 5px;
    font-size: clamp(11px, 1.05dvh, 14px);
    font-weight: 650;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .target-customer-matrix .matrix-table .subtotal-cell,
  .target-customer-matrix .matrix-table .matrix-cell > .region-details > .region-summary,
  .target-customer-matrix #matrix-metric-amount:checked ~ .matrix-content .matrix-table .matrix-cell > .region-details > .region-summary {
    min-height: 0;
    padding: 0 2px;
    font-size: clamp(9px, 0.9dvh, 11px);
    line-height: 1;
  }

  .target-customer-matrix .matrix-table .empty-mark {
    min-height: 0;
    font-size: clamp(9px, 0.9dvh, 11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final mobile matrix sizing. This sits after all earlier density presets. */
@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable {
    min-width: 1360px !important;
    font-size: 11px !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable tbody tr,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary {
    height: 46px !important;
    min-height: 46px !important;
  }
}

/* Compact desktop command rail: final cascade override. */
@media (min-width: 1200px) {
  .target-customer-matrix.overview-redesign .overview-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 17px;
    column-gap: 8px;
    row-gap: 3px;
    padding-top: 5px;
  }

  .target-customer-matrix.overview-redesign .overview-command > .overview-contract-ticker {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
    width: 100%;
    height: 44px;
  }

  .target-customer-matrix.overview-redesign .overview-command > .overview-contract-ticker .overview-ticker-label {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 12px;
  }

  .target-customer-matrix.overview-redesign .overview-command > .overview-contract-ticker .overview-ticker-item,
  .target-customer-matrix.overview-redesign .overview-command > .overview-contract-ticker .overview-ticker-amount {
    font-size: 12px;
  }

  .target-customer-matrix.overview-redesign .overview-command > .overview-contract-ticker .overview-ticker-project {
    max-width: 520px;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    gap: 7px;
    height: 40px;
    padding: 4px 6px;
    align-items: center;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > label:nth-of-type(1) {
    flex: 0 1 220px;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > label:nth-of-type(2) {
    flex: 0 1 250px;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > label:nth-of-type(3) {
    flex: 1 1 auto;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar > button {
    flex: 0 0 62px;
    min-width: 62px;
    white-space: nowrap;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    white-space: nowrap;
  }

  .target-customer-matrix.overview-redesign .overview-filterbar select,
  .target-customer-matrix.overview-redesign .overview-filterbar input,
  .target-customer-matrix.overview-redesign .overview-filterbar button {
    height: 30px;
  }

  .target-customer-matrix.overview-redesign .overview-metricbar {
    grid-column: 2;
    grid-row: 2;
    min-height: 40px;
    padding: 4px 7px;
    gap: 12px;
    border: 1px solid rgba(77,157,226,.2);
    border-radius: 7px;
    background: #081727;
  }

  .target-customer-matrix.overview-redesign .overview-metricbar > div:first-child {
    flex: none;
  }

  .target-customer-matrix.overview-redesign .overview-metricbar button {
    height: 30px;
    padding: 0 13px;
  }

  .target-customer-matrix.overview-redesign .overview-metricbar > .overview-status-group {
    min-width: 138px;
    margin: 0;
  }

  .target-customer-matrix.overview-redesign .overview-pan-hint {
    display: none;
  }

  .target-customer-matrix.overview-redesign .overview-data-note {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    margin: 0 2px;
    padding: 0 7px;
    overflow: hidden;
    border-left-width: 1px;
    background: transparent;
    font-size: 8.5px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .target-customer-matrix.overview-redesign .matrix-scroll {
    height: calc(100dvh - 157px);
  }

  .target-customer-matrix.overview-redesign .supplier-leaderboard {
    height: calc(100dvh - 157px);
    margin-top: 0;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable {
    --matrix-fit-row-height: clamp(10px, calc((100dvh - 201px) / 39), 24px);
    --matrix-fit-font-size: clamp(10.5px, calc((100dvh - 201px) / 46.6667), 15.75px);
    height: auto !important;
    font-size: var(--matrix-fit-font-size) !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable thead th {
    height: 42px !important;
    padding: 1px 2px !important;
    font-size: clamp(13.5px, 1.8dvh, 18px) !important;
    line-height: 1.05;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-column-total {
    margin-top: 1px;
    padding: 0 2px;
    font-size: clamp(10.5px, 1.5dvh, 13.5px) !important;
    line-height: 1;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable tbody tr,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary {
    height: var(--matrix-fit-row-height) !important;
    min-height: var(--matrix-fit-row-height) !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .serial-number,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-name,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-cell,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-summary-cell,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .serial-number {
    font-size: var(--matrix-fit-font-size) !important;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .bureau-name {
    padding-right: 4px !important;
    padding-left: 5px !important;
    font-size: var(--matrix-fit-font-size) !important;
    line-height: 1;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-value,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .overview-summary-cell {
    font-size: var(--matrix-fit-font-size) !important;
    line-height: 1;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell > .region-details > .region-summary {
    padding: 0 2px !important;
    font-size: var(--matrix-fit-font-size) !important;
    line-height: 1;
  }

  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-cell.has-supplier-mix > .region-details > .region-summary::after,
  .target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .subtotal-cell.has-supplier-mix::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0;
    opacity: 1;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, .18), 0 0 5px rgba(2, 6, 23, .72);
  }
}

/* Final desktop control-rail treatment. Keep this after viewport overrides. */
@media (min-width: 1200px) {
  .target-customer-matrix .matrix-topbar {
    grid-template-columns: minmax(188px, .54fr) minmax(326px, .92fr) minmax(0, 3.54fr);
    gap: 0;
    padding: 3px;
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(12, 25, 42, .98), rgba(7, 16, 29, .98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 28px -24px rgba(0,0,0,.9);
  }
  .target-customer-matrix .matrix-topbar .matrix-stats,
  .target-customer-matrix .matrix-topbar .matrix-find,
  .target-customer-matrix .matrix-topbar .matrix-toolbar {
    height: 32px; min-height: 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .target-customer-matrix .matrix-topbar .matrix-stats { gap: 0; padding-right: 6px; }
  .target-customer-matrix .matrix-topbar .matrix-stats > div {
    min-height: 32px; padding: 1px 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .target-customer-matrix .matrix-topbar .matrix-stats > div + div { border-left: 1px solid rgba(125,211,252,.13); }
  .target-customer-matrix .matrix-topbar .matrix-stats strong { font-size: 14px; line-height: 1; }
  .target-customer-matrix .matrix-topbar .matrix-stats span { color: #8297af; font-size: 8.5px; line-height: 1.15; }
  .target-customer-matrix .matrix-topbar .matrix-find {
    grid-template-columns: auto minmax(120px,1fr) auto; gap: 7px; padding: 0 10px;
    border-right: 1px solid rgba(125,211,252,.16); border-left: 1px solid rgba(125,211,252,.16);
  }
  .target-customer-matrix .matrix-find-label { color: #a8bad0; font-size: 11px; letter-spacing: .02em; }
  .target-customer-matrix .matrix-row-search {
    height: 28px; padding-right: 48px; border-color: rgba(148,163,184,.2); border-radius: 7px;
    background: rgba(4,12,23,.56); font-size: 11px;
  }
  .target-customer-matrix .matrix-topbar .matrix-find-status { min-width: 92px; color: #7890aa; font-size: 9.5px; }
  .target-customer-matrix .matrix-topbar .matrix-toolbar { gap: 7px; padding: 0 3px 0 10px; }
  .target-customer-matrix .matrix-topbar .matrix-year-filter,
  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch { gap: 2px; }
  .target-customer-matrix .matrix-topbar .matrix-type-filter,
  .target-customer-matrix .matrix-topbar .matrix-metric-switch { padding-left: 7px; border-left: 1px solid rgba(125,211,252,.13); }
  .target-customer-matrix .matrix-topbar .matrix-toolbar-label {
    margin-right: 2px; color: #6f859e; font-size: 9px; letter-spacing: .1em;
  }
  .target-customer-matrix .matrix-topbar .matrix-year-chip,
  .target-customer-matrix .matrix-topbar .matrix-type-chip {
    min-height: 26px; padding: 0 7px; border-color: transparent; border-radius: 7px;
    color: #93a6bc; background: transparent; font-size: 9.5px;
  }
  .target-customer-matrix .matrix-topbar .matrix-year-chip:hover,
  .target-customer-matrix .matrix-topbar .matrix-type-chip:hover { color: #d4e5f7; background: rgba(125,211,252,.07); }
  .target-customer-matrix .matrix-topbar .matrix-year-chip.is-active,
  .target-customer-matrix .matrix-topbar .matrix-type-chip.is-active {
    border-color: rgba(56,189,248,.52); color: #f0f9ff;
    background: linear-gradient(180deg, rgba(14,128,190,.34), rgba(30,99,164,.26));
  }
  .target-customer-matrix .matrix-topbar .matrix-toolbar > label {
    min-height: 26px; padding: 0 10px; border-color: transparent; color: #8195ad; background: transparent; font-size: 9.5px;
  }
  .target-customer-matrix #matrix-metric-count:checked ~ .matrix-topbar label[for="matrix-metric-count"],
  .target-customer-matrix #matrix-metric-amount:checked ~ .matrix-topbar label[for="matrix-metric-amount"] {
    color: #e0f2fe; background: rgba(47,140,255,.2);
  }
}

/* High-contrast supplier-share key. Keep the color contract aligned with the
   bars and the grouped supplier leaderboard. */
.target-customer-matrix.overview-redesign .matrix-supplier-legend {
  display: flex !important;
  min-height: 24px;
  margin: 0 0 4px;
  padding: 3px 9px;
  gap: 5px 14px;
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: 6px;
  color: #c9d8e8;
  background: #081727;
  font-size: 11px;
  font-weight: 650;
  align-items: center;
  flex-wrap: nowrap;
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend::before {
  content: "条形占比";
  margin-right: 2px;
  color: #f4f9ff;
  font-weight: 800;
}

.target-customer-matrix.overview-redesign .matrix-supplier-legend i {
  width: 18px;
  height: 6px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 5px currentColor;
}

.target-customer-matrix.overview-redesign .project-type-share { display:flex; flex:1 1 560px; gap:8px; align-items:center; min-width:0; margin-left:auto; padding-left:12px; border-left:1px solid rgba(125,211,252,.18); }
.target-customer-matrix.overview-redesign .project-type-share > strong { flex:0 0 auto; color:#f4f9ff; font-size:12px; white-space:nowrap; }
.target-customer-matrix.overview-redesign .project-type-share-bar { display:flex; flex:1 1 auto; min-width:0; height:21px; overflow:hidden; border:1px solid rgba(137,189,230,.36); border-radius:4px; background:#102237; box-shadow:inset 0 1px 3px rgba(0,0,0,.35); }
.target-customer-matrix.overview-redesign .project-type-share-bar > span { display:flex; align-items:center; justify-content:center; min-width:0; overflow:hidden; border-right:1px solid rgba(3,12,22,.45); color:#f7fbff; text-shadow:0 1px 2px rgba(0,0,0,.75); }
.target-customer-matrix.overview-redesign .project-type-share-bar b { overflow:hidden; padding:0 4px; font-size:11px; font-weight:800; line-height:1; text-overflow:clip; white-space:nowrap; }
.project-type-share-bar .type-share-1 { background:#1479bd; }
.project-type-share-bar .type-share-2 { background:#1b86c7; }
.project-type-share-bar .type-share-3 { background:#2393d1; }
.project-type-share-bar .type-share-4 { background:#2b9fd8; }
.project-type-share-bar .type-share-5 { background:#2689bb; }
.project-type-share-bar .type-share-6 { background:#317eb0; }
.project-type-share-bar .type-share-7 { background:#3974a4; }
.project-type-share-bar .type-share-8 { background:#416a98; }
.project-type-share-bar .type-share-9 { background:#48608c; }

@media (max-width: 1199px) {
  .target-customer-matrix.overview-redesign .project-type-share { display:none; }
}

/* Region totals use the same type scale and optical center as their headers. */
.target-customer-matrix.overview-redesign #informationProjectsTable#informationProjectsTable .matrix-column-total {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1px;
  padding: 0;
  font-size: inherit !important;
  line-height: 1.05;
  text-align: center;
}

/* The full supplier ranking remains inside the right rail and scrolls
   independently; its controls stay visible while browsing all suppliers. */
.target-customer-matrix.overview-redesign .supplier-leaderboard {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(72, 145, 210, .68) rgba(5, 15, 28, .7);
}

.target-customer-matrix.overview-redesign .supplier-leaderboard-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li {
  min-height: 64px !important;
}

.target-customer-matrix.overview-redesign .supplier-rank-value,
.target-customer-matrix.overview-redesign .supplier-member-value {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: max-content;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.target-customer-matrix.overview-redesign .supplier-member-value {
  color: var(--interactive-accent);
  font-size: 11.5px;
}

.target-customer-matrix.overview-redesign .supplier-rank-share {
  color: #7890aa;
  font-size: 10px !important;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li[data-supplier-color] .supplier-rank-share {
  color: #9fb3c8;
}

.target-customer-matrix.overview-redesign .supplier-group-member {
  min-height: 40px;
}

.target-customer-matrix.overview-redesign .supplier-group-member .supplier-rank-share {
  font-size: 9px !important;
}

/* Reuse the budget view's Shenzhen line-art background for one consistent
   visual language across both dashboards. */
.target-customer-matrix.overview-redesign {
  position: relative;
  isolation: isolate;
}

.target-customer-matrix.overview-redesign::before {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(1672px, 100vw);
  aspect-ratio: 1672 / 941;
  content: "";
  pointer-events: none;
  background: url("/assets/shenzhen-lineart-bg.png") center bottom / contain no-repeat;
  filter: saturate(.9) brightness(1.04);
  opacity: .24;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.target-customer-matrix.overview-redesign .site-header,
.target-customer-matrix.overview-redesign .data-loading,
.target-customer-matrix.overview-redesign .page-main {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign::before {
    top: auto;
    bottom: 0;
    left: 66%;
    width: 210vw;
    opacity: .14;
  }
}

.target-customer-matrix .site-compliance-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 10px;
  width: 100%;
  min-height: 28px;
  margin-top: 2px;
  padding: 4px 14px 6px;
  border-top: 1px solid rgba(125, 211, 252, .12);
  color: #8198ae;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.target-customer-matrix .site-compliance-footer a {
  color: #9dc7ea;
  text-decoration: none;
  text-underline-offset: 3px;
}

.target-customer-matrix .site-compliance-footer a:hover,
.target-customer-matrix .site-compliance-footer a:focus-visible {
  color: #dff3ff;
  text-decoration: underline;
}

.target-customer-matrix .site-compliance-separator {
  color: rgba(125, 211, 252, .38);
}

@media (max-width: 767px) {
  .target-customer-matrix .site-compliance-footer {
    flex-wrap: wrap;
    gap: 2px 8px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 9px;
    text-align: center;
    white-space: normal;
  }
}

/* Keep the ranking column visually uniform; the top-three emphasis belongs to
   the enlarged share value, not to a separate medal treatment. */
.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(-n + 3) > .supplier-rank-index {
  flex-direction: row;
  gap: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  line-height: normal;
  box-shadow: none;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(-n + 3) > .supplier-rank-index::after {
  content: none;
}

.target-customer-matrix.overview-redesign .supplier-rank-share {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.target-customer-matrix.overview-redesign .supplier-rank-share-label {
  font-size: 9px;
  font-weight: 650;
}

.target-customer-matrix.overview-redesign .supplier-rank-share-value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(-n + 3) > .supplier-rank-value .supplier-rank-share-value,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(-n + 3) > .supplier-group-details > .supplier-group-summary > .supplier-rank-value .supplier-rank-share-value {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(1) > .supplier-rank-value .supplier-rank-share-value,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(1) > .supplier-group-details > .supplier-group-summary > .supplier-rank-value .supplier-rank-share-value {
  color: #ffd767;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(2) > .supplier-rank-value .supplier-rank-share-value,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(2) > .supplier-group-details > .supplier-group-summary > .supplier-rank-value .supplier-rank-share-value {
  color: #d8e8f3;
}

.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(3) > .supplier-rank-value .supplier-rank-share-value,
.target-customer-matrix.overview-redesign .supplier-ranking-list > li:nth-child(3) > .supplier-group-details > .supplier-group-summary > .supplier-rank-value .supplier-rank-share-value {
  color: #e4a06d;
}

.target-customer-matrix.overview-redesign .supplier-group-member .supplier-rank-share {
  gap: 3px;
}

.target-customer-matrix.overview-redesign .supplier-group-member .supplier-rank-share-label,
.target-customer-matrix.overview-redesign .supplier-group-member .supplier-rank-share-value {
  font-size: 9px;
}

/* Keep the reporting scope immediately legible beneath the dashboard title:
   period first, source second, with the period carrying the stronger weight. */
.target-customer-matrix.overview-redesign .site-lede {
  display: grid;
  align-items: start;
  gap: 2px;
  margin-top: 4px;
  color: #a9bfd3;
  font-size: 13px;
  line-height: 1.2;
  white-space: normal;
}

.target-customer-matrix.overview-redesign .site-meta-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
}

.target-customer-matrix.overview-redesign .site-meta-label {
  flex: 0 0 auto;
  color: #b9cee0;
  font-size: 13px;
  font-weight: 750;
}

.target-customer-matrix.overview-redesign .site-meta-value {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.target-customer-matrix.overview-redesign .site-period-row .site-meta-label,
.target-customer-matrix.overview-redesign .site-period-row .site-meta-value {
  color: #e1f2ff;
  font-weight: 800;
}

.target-customer-matrix.overview-redesign .site-source-row .site-meta-value {
  color: #9fb7cc;
}

/* Keep the build credit in the open space beside the two metadata rows. */
.target-customer-matrix.overview-redesign .site-brand-copy {
  position: relative;
  width: 100%;
}

.target-customer-matrix.overview-redesign .site-ai-credit {
  display: none;
  margin: 0;
}

@media (min-width: 1200px) {
  .target-customer-matrix.overview-redesign .site-ai-credit {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 265px;
    display: block;
    color: #edf7ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .015em;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 14px rgba(76, 177, 255, .28);
    white-space: nowrap;
  }
}

@media (min-width: 1600px) {
  .target-customer-matrix.overview-redesign .site-ai-credit {
    left: 285px;
    font-size: 13px;
    letter-spacing: .05em;
  }
}

@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign .site-lede,
  .target-customer-matrix.overview-redesign .site-meta-label,
  .target-customer-matrix.overview-redesign .site-meta-value {
    font-size: 12px;
  }

  .target-customer-matrix.overview-redesign .site-meta-row {
    white-space: normal;
  }
}

/* Make the dashboard name the unmistakable first-screen anchor. */
@media (min-width: 768px) {
  .target-customer-matrix.overview-redesign .site-header {
    grid-template-columns: 650px minmax(520px, 1fr) !important;
    grid-template-areas: "brand kpis" !important;
    grid-template-rows: 94px;
    height: 110px;
    max-height: 110px;
  }

  .target-customer-matrix.overview-redesign .site-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
    white-space: nowrap;
  }

  .target-customer-matrix.overview-redesign.overview-redesign .matrix-scroll {
    height: calc(100dvh - 300px);
    min-height: 420px;
  }

  .target-customer-matrix.overview-redesign.overview-redesign .supplier-leaderboard {
    height: calc(100dvh - 300px);
    min-height: 420px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .target-customer-matrix.overview-redesign .site-header {
    grid-template-columns: minmax(480px, 1fr) minmax(420px, 1fr) !important;
  }

  .target-customer-matrix.overview-redesign .site-title {
    font-size: clamp(34px, 3.45vw, 41px);
  }
}

@media (max-width: 767px) {
  .target-customer-matrix.overview-redesign .site-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
  }
}

/* Compact header actions: preserve the KPI scan path while keeping two clear utilities. */
.target-customer-matrix.overview-redesign .top-buttons {
  position: relative;
  z-index: 2301;
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(86px, .72fr) minmax(132px, 1.28fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.target-customer-matrix.overview-redesign .site-header {
  position: relative;
  z-index: 2300;
  overflow: visible !important;
}

.header-utility-wrap {
  position: relative;
  min-width: 0;
}

.header-utility {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 48px;
  padding: 5px 9px;
  border: 1px solid rgba(74, 160, 230, .25);
  border-radius: 9px;
  color: #c9e6fb;
  background: linear-gradient(145deg, rgba(13, 42, 69, .92), rgba(6, 24, 42, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.header-utility:hover {
  border-color: rgba(84, 183, 255, .56);
  background: linear-gradient(145deg, rgba(18, 57, 92, .96), rgba(7, 29, 50, .96));
  box-shadow: 0 8px 22px rgba(0, 8, 18, .22), inset 0 1px rgba(255, 255, 255, .055);
  transform: translateY(-1px);
}

.header-utility:focus-visible {
  outline: 2px solid #67b8ff;
  outline-offset: 2px;
}

.header-utility svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #48b5ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-utility span,
.header-utility strong,
.header-utility small {
  display: block;
  min-width: 0;
}

.header-utility strong {
  overflow: hidden;
  color: #e8f6ff;
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-utility small {
  margin-top: 3px;
  overflow: hidden;
  color: #7f9eb9;
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-mini-program-direct {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: stretch;
  justify-items: center;
  min-width: 0;
  height: 90px;
  margin: 0;
  padding: 4px 8px 5px;
  border: 1px solid rgba(78, 177, 247, .42);
  border-radius: 10px;
  color: #dcebf7;
  background: linear-gradient(155deg, rgba(11, 32, 53, .98), rgba(6, 19, 33, .99));
  box-shadow: 0 9px 24px rgba(0, 5, 12, .3), inset 0 1px rgba(255, 255, 255, .05);
}

.header-mini-program-trigger {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.header-qr-preview {
  position: relative;
  display: block;
  overflow: hidden;
  width: 54px;
  height: 54px;
  border: 3px solid #fff;
  border-radius: 6px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.header-qr-preview > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-correction-direct .header-qr-preview > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 146.5%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -54.4%);
}

.header-mini-program-trigger > small {
  color: #82a9c7;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.header-mini-program-trigger:hover > .header-qr-preview,
.header-mini-program-trigger:focus-visible > .header-qr-preview {
  border-color: #dff4ff;
  box-shadow: 0 0 0 2px rgba(72, 181, 255, .4), 0 4px 14px rgba(0, 7, 16, .34);
  transform: translateY(-1px);
}

.header-mini-program-trigger:focus-visible {
  outline: none;
}

.header-mini-program-direct figcaption {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  color: #d8f2ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 9px rgba(72, 181, 255, .42);
}

.header-qr-drawer {
  position: absolute;
  z-index: 2200;
  top: calc(100% + 8px);
  left: 0;
  width: 212px;
  padding: 10px;
  border: 1px solid rgba(78, 177, 247, .34);
  border-radius: 11px;
  color: #dcebf7;
  background: linear-gradient(155deg, rgba(11, 32, 53, .98), rgba(6, 19, 33, .99));
  box-shadow: 0 16px 38px rgba(0, 5, 12, .5), inset 0 1px rgba(255, 255, 255, .05);
  animation: header-drawer-in 150ms ease-out both;
}

.header-utility-wrap:last-child .header-qr-drawer {
  right: 0;
  left: auto;
}

.header-qr-drawer[hidden] { display: none !important; }

.header-qr-drawer header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 1px 8px;
}

.header-qr-drawer header strong {
  color: #edf8ff;
  font-size: 11px;
}

.header-qr-drawer header small {
  color: #7195b2;
  font-size: 8px;
  white-space: nowrap;
}

.header-qr-drawer img {
  display: block;
  width: 174px;
  height: auto;
  max-height: 222px;
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.mini-program-qr-drawer {
  width: 244px;
}

.mini-program-qr-drawer img {
  width: 220px;
  max-height: none;
}

@keyframes header-drawer-in {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.utility-dialog-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 7, 15, .74);
  backdrop-filter: blur(8px);
}

.utility-dialog-backdrop[hidden] { display: none !important; }

.utility-dialog {
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(78, 177, 247, .34);
  border-radius: 15px;
  color: #dcebf7;
  background: linear-gradient(155deg, #0b2035, #061321 72%);
  box-shadow: 0 28px 80px rgba(0, 5, 12, .66), inset 0 1px rgba(255, 255, 255, .05);
  animation: utility-dialog-in 180ms ease-out both;
}

.utility-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.utility-dialog header span {
  color: #4ab7ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.utility-dialog h2 {
  margin: 3px 0 0;
  color: #f1f8ff;
  font-size: 22px;
}

.utility-dialog header button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(101, 176, 232, .24);
  border-radius: 8px;
  color: #a9bfd2;
  background: rgba(7, 25, 43, .78);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.utility-dialog p {
  margin: 12px 0 14px;
  color: #9db3c7;
  font-size: 11px;
  line-height: 1.6;
}

.utility-dialog img {
  display: block;
  width: min(250px, 100%);
  height: auto;
  margin: 0 auto;
  border: 7px solid #fff;
  border-radius: 10px;
  background: #fff;
}

.utility-dialog > small {
  display: block;
  margin-top: 11px;
  color: #78a9ce;
  font-size: 9px;
  text-align: center;
}

body.has-utility-dialog { overflow: hidden !important; }

@keyframes utility-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .utility-dialog { animation: none; }
  .header-utility { transition: none; }
}

@media (min-width: 1600px) {
  .target-customer-matrix.overview-redesign .site-header {
    grid-template-columns: 640px minmax(560px, 1fr) 310px !important;
    grid-template-areas: "brand kpis actions" !important;
    grid-template-rows: 94px;
    height: 110px;
    max-height: 110px;
    column-gap: 10px;
  }

  .overview-kpis > div { padding-right: 12px; padding-left: 12px; }

  .overview-kpis small { font-size: 15px; }
  .overview-kpis strong { font-size: 27px; }
  .overview-kpis strong em { font-size: 13px; }

  .target-customer-matrix.overview-redesign .top-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-mini-program-direct {
    height: 90px;
  }

  .header-mini-program-trigger > .header-qr-preview {
    width: 56px;
    height: 56px;
  }

  .header-mini-program-direct figcaption { font-size: 12px; }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .target-customer-matrix.overview-redesign .site-header {
    grid-template-columns: 470px minmax(420px, 1fr) 250px !important;
    grid-template-areas: "brand kpis actions" !important;
    grid-template-rows: 94px;
    height: 110px;
    max-height: 110px;
    column-gap: 8px;
  }

  .target-customer-matrix.overview-redesign .top-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-mini-program-direct {
    height: 88px;
  }

  .header-mini-program-trigger > .header-qr-preview {
    width: 54px;
    height: 54px;
  }

  .target-customer-matrix.overview-redesign .site-title { font-size: 36px; }
  .overview-kpis > div { grid-template-columns: 30px minmax(0,1fr) auto; padding-right: 7px; padding-left: 7px; }
  .overview-kpis .overview-kpi-icon { width: 28px; height: 38px; }
  .overview-kpis svg { width: 26px; height: 26px; }
  .overview-kpis [data-kpi="amount"] .overview-kpi-icon svg { transform:scale(1.17); }
  .overview-kpis small { font-size: 11.5px; letter-spacing: -.02em; }
  .overview-kpis strong { font-size: 19px; letter-spacing: 0; }
  .overview-kpis strong em { font-size: 10px; }
  .header-utility { gap: 5px; padding-right: 4px; padding-left: 4px; }
  .header-utility svg { width: 23px; height: 23px; }
  .header-utility strong { font-size: 14px; }
}

@media (max-width: 1199px) {
  .target-customer-matrix.overview-redesign .top-buttons { display: none; }
}

/* Desktop is a fixed-height workspace: the page itself never scrolls, while
   long matrix and supplier content keep their own contained scroll regions. */
@media (min-width: 1200px) {
  html,
  body.target-customer-matrix.overview-redesign {
    height: 100%;
    overflow-y: hidden;
  }

  .target-customer-matrix.overview-redesign .page-main {
    height: calc(100dvh - 110px);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .target-customer-matrix.overview-redesign .matrix-shell {
    display: grid;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    row-gap: 0;
    overflow: hidden;
  }

  .target-customer-matrix.overview-redesign .matrix-content {
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .target-customer-matrix.overview-redesign.overview-redesign .matrix-scroll,
  .target-customer-matrix.overview-redesign.overview-redesign .supplier-leaderboard {
    height: 100%;
    min-height: 0;
  }
}

/* Responsive lock: these rules intentionally remain at EOF because the file
   contains historical cascade layers above. */
@media (max-width: 767px) {
  html,
  body.target-customer-matrix.overview-redesign {
    overflow-x: hidden;
  }

  .target-customer-matrix.overview-redesign .site-header {
    padding: 12px 10px 10px;
  }

  .target-customer-matrix.overview-redesign .site-title {
    max-width: 12em;
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
  }

  .target-customer-matrix.overview-redesign .overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    margin-top: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-rows: 36px 34px;
    min-height: 78px;
    padding: 5px 7px;
    border: 1px solid var(--polish-edge);
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(10, 31, 52, .96), rgba(5, 19, 33, .98));
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div + div {
    border-left: 1px solid var(--polish-edge);
  }

  .target-customer-matrix.overview-redesign .overview-kpis > div:last-child {
    grid-column: 1 / -1;
  }

  .target-customer-matrix.overview-redesign .overview-kpis .overview-kpi-icon {
    width: 24px;
    height: 34px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis svg {
    width: 23px;
    height: 23px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis small {
    font-size: 10px;
    letter-spacing: -.02em;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong {
    font-size: 18px;
  }

  .target-customer-matrix.overview-redesign .overview-kpis strong em,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown b,
  .target-customer-matrix.overview-redesign .overview-kpi-breakdown em {
    font-size: 9px;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::-webkit-scrollbar {
    display: none;
  }

  .target-customer-matrix.overview-redesign .matrix-supplier-legend::before,
  .target-customer-matrix.overview-redesign .matrix-supplier-legend > span {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .target-customer-matrix.overview-redesign .matrix-source {
    display: -webkit-box;
    max-height: 46px;
    margin: 0 0 8px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(103, 174, 229, .16);
    border-radius: 7px;
    background: rgba(5, 18, 31, .72);
    font-size: 9px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .target-customer-matrix.overview-redesign .matrix-scroll {
    height: min(66dvh, 540px) !important;
    min-height: 480px !important;
    overscroll-behavior: contain;
  }

  .target-customer-matrix.overview-redesign .supplier-leaderboard {
    height: min(72dvh, 620px) !important;
    min-height: 520px !important;
    margin-top: 12px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .target-customer-matrix.overview-redesign .supplier-ranking-list > li {
    min-height: 58px !important;
  }

  .target-customer-matrix.overview-redesign .site-compliance-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
}
