:root {
  --navy-950: #071426;
  --navy-900: #0b1d33;
  --navy-800: #123154;
  --blue-700: #1858a8;
  --blue-600: #2671d9;
  --blue-100: #e8f1ff;
  --teal-600: #148a86;
  --teal-100: #ddf5f2;
  --amber-600: #a9600b;
  --amber-100: #fff1d9;
  --ink-900: #142033;
  --ink-700: #425069;
  --ink-500: #69758a;
  --line: #dce3ec;
  --line-soft: #e9eef4;
  --surface: #ffffff;
  --surface-subtle: #f5f7fa;
  --canvas: #eef2f6;
  --shadow: 0 12px 36px rgba(15, 32, 54, 0.08);
  --radius-lg: 16px;
  --radius-md: 11px;
  --sidebar-width: 232px;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 17px 14px 14px;
  color: #e8f0fb;
  background:
    radial-gradient(circle at 18% 4%, rgba(38, 113, 217, 0.22), transparent 24%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.brand-lockup, .client-card, .foundation-status, .chart-header, .page-heading, .topbar,
.topbar-actions, .filter-bar, .section-filters, .readiness-banner, .dialog-heading {
  display: flex;
  align-items: center;
}
.brand-lockup { gap: 10px; padding: 0 7px 14px; }
.brand-lockup strong { display: block; font-size: 14px; letter-spacing: .01em; }
.brand-lockup small { display: block; margin-top: 3px; color: #94a8c0; font-size: 11px; }
.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: end center;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  padding: 8px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
}
.brand-mark span { width: 5px; border-radius: 4px 4px 1px 1px; background: #76b2ff; }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 16px; background: #5ce0d6; }
.brand-mark span:nth-child(3) { height: 12px; }

.client-card {
  gap: 10px;
  margin-bottom: 17px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.client-switcher { position: relative; }
button.client-card { width: 100%; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.client-chevron { color: #8fa5be; font-size: 14px; }
.company-picker-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 100%; padding: 10px; border: 1px solid #d8e1ec; border-radius: 10px; background: #fff; color: var(--ink-900); box-shadow: 0 14px 34px rgba(4,25,50,.24); }
.company-picker-menu label { display: block; margin-bottom: 6px; color: var(--ink-500); font-size: 11px; font-weight: 700; }
.company-picker-menu input { width: 100%; padding: 8px 9px; border: 1px solid #cdd8e5; border-radius: 7px; font: inherit; }
.company-picker-list { max-height: 260px; margin-top: 7px; overflow: auto; }
.company-picker-list button { display: block; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-900); text-align: left; cursor: pointer; }
.company-picker-list button:hover, .company-picker-list button:focus-visible { background: #edf5ff; outline: none; }
.company-picker-list button[aria-current="true"] { color: #0f5daf; font-weight: 800; }
.company-picker-menu small { display: block; padding: 7px 4px 0; color: var(--ink-500); }
.client-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #fff; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.client-card div { min-width: 0; flex: 1; }
.client-card span:not(.client-avatar):not(.client-status) { display: block; color: #8fa5be; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.client-card strong { display: block; margin-top: 3px; font-size: 13px; }
.client-status { width: 8px; height: 8px; border-radius: 50%; background: #5ce0b6; box-shadow: 0 0 0 4px rgba(92,224,182,.09); }

.nav-list { display: grid; gap: 3px; min-height: 0; overflow-y: auto; align-content: start; }
.nav-list > p { margin: 0 10px 7px; color: #6f879f; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-group-heading { display: grid; grid-template-columns: minmax(0, 1fr) 28px; border-radius: 9px; }
.nav-group.is-active > .nav-group-heading { background: linear-gradient(90deg, rgba(38,113,217,.42), rgba(38,113,217,.14)); box-shadow: inset 3px 0 #63a5ff; }
.nav-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 9px;
  color: #acbdd0;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  background: transparent;
  transition: color .16s ease, background .16s ease;
}
.nav-item:hover, .nav-toggle:hover, .nav-subitem:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-group.is-active > .nav-group-heading .nav-item { color: #fff; }
.nav-icon { font-size: 17px; color: #77aef5; }
.nav-toggle { min-height: 36px; padding: 0; border: 0; border-radius: 9px; color: #a7bdd7; background: transparent; font-size: 21px; }
.nav-toggle span { display: inline-block; transition: transform .16s ease; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.nav-children { display: grid; gap: 2px; margin: 3px 0 8px 18px; padding-left: 10px; border-left: 1px solid rgba(167,189,215,.22); }
.nav-children[hidden] { display: none; }
.nav-subitem { min-height: 32px; padding: 7px 9px; border: 0; border-radius: 7px; color: #a7bdd7; background: transparent; text-align: left; font-size: 12px; line-height: 1.4; }
.nav-subitem.is-active { color: #fff; background: rgba(38,113,217,.28); }
.nav-item:focus-visible, .nav-toggle:focus-visible, .nav-subitem:focus-visible { outline: 2px solid #77aef5; outline-offset: -2px; }

.sidebar-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.foundation-status { gap: 10px; padding: 0 7px 10px; }
.foundation-dot { width: 9px; height: 9px; border-radius: 50%; background: #5ce0b6; box-shadow: 0 0 0 5px rgba(92,224,182,.08); }
.foundation-status strong, .foundation-status span { display: block; }
.foundation-status strong { font-size: 11px; }
.foundation-status span { margin-top: 3px; color: #7790aa; font-size: 10px; }
.text-button { padding: 7px; border: 0; color: #82b8ff; background: none; font-size: 11px; }
.text-button:hover { color: #fff; }
#glossary-link { display: block; width: fit-content; text-decoration: none; }
#glossary-link.is-active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); padding-bottom: 64px; }
.topbar { justify-content: space-between; height: 50px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.breadcrumb { color: var(--ink-500); font-size: 12px; }
.breadcrumb span { margin: 0 7px; color: #a7b1bf; }
.breadcrumb strong { color: var(--ink-900); }
.topbar-actions { gap: 9px; }
.local-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-700); background: #fff; font-size: 11px; }
.local-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); }
.icon-button, .user-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-700); background: #fff; }
.user-button { border-color: var(--navy-800); color: #fff; background: var(--navy-800); font-size: 11px; font-weight: 800; }

.filter-bar { gap: 9px; padding: 8px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.filter-field { display: grid; gap: 4px; min-width: 145px; }
.filter-field-wide { min-width: 220px; }
.filter-field label { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-field select, .filter-field input {
  min-height: 31px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-900);
  background: #fff;
  font-size: 11px;
}
.filter-field select:disabled {
  cursor: not-allowed;
  color: #7d899a;
  background: #f1f4f7;
}
.filter-field select:focus, .filter-field input:focus, button:focus-visible { outline: 3px solid rgba(38,113,217,.22); outline-offset: 2px; }
.primary-button {
  min-height: 32px;
  align-self: end;
  padding: 0 16px;
  border: 1px solid var(--blue-700);
  border-radius: 8px;
  color: #fff;
  background: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}
.primary-button:hover { background: #134c93; }
.filter-summary { padding: 5px 24px; border-bottom: 1px solid #dce8f6; color: #48617e; background: #edf5ff; font-size: 9px; }

.view-panel { width: 100%; max-width: none; margin: 0; padding: 18px 24px 0; }
.view-panel[hidden] { display: none; }
.glossary-panel { max-width: 1320px; }
.glossary-card { margin-bottom: 18px; }
.glossary-table-scroll { max-width: 100%; overflow-x: auto; }
.glossary-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.glossary-table th, .glossary-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.glossary-table thead, .glossary-table tfoot { background: var(--surface-subtle); }
.glossary-table thead th { color: var(--ink-700); font-size: 11px; }
.glossary-table tbody th { font-weight: 600; }
.glossary-table tbody tr:last-child > * { border-bottom: 0; }
.glossary-definitions th:first-child { width: 31%; min-width: 160px; }
.glossary-definitions a { color: var(--blue-700); text-decoration: none; }
.glossary-definitions a:hover { text-decoration: underline; }
.glossary-details { padding: 6px 24px 24px; }
.glossary-entry { padding: 20px 0; scroll-margin-top: 70px; border-bottom: 1px solid var(--line-soft); }
.glossary-entry:last-child { padding-bottom: 0; border-bottom: 0; }
.glossary-entry h2 { margin: 0 0 8px; font-size: 18px; }
.glossary-entry h3 { margin: 24px 0 8px; font-size: 15px; }
.glossary-entry p { max-width: 100ch; margin: 0 0 12px; color: var(--ink-700); font-size: 14px; line-height: 1.7; }
.glossary-entry p:last-child { margin-bottom: 0; }
.glossary-weights, .glossary-company-example { font-variant-numeric: tabular-nums; }
.glossary-weights { min-width: 580px; }
.glossary-weights tbody th { color: var(--ink-500); font-weight: 400; }
.glossary-weights td { font-weight: 600; }
.glossary-weights td:not(:last-child) { border-right: 1px solid var(--line); }
.glossary-company-example { min-width: 760px; }
.glossary-company-example td:nth-child(3) { white-space: nowrap; }
.glossary-company-example td:last-child { color: var(--blue-700); font-weight: 700; }
.glossary-formula { margin-top: 14px !important; }
.page-heading { justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.page-heading h1 { margin: 2px 0 3px; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--ink-500); font-size: 13px; line-height: 1.55; }
.eyebrow, .chart-kicker, .dialog-kicker { margin: 0; color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scope-chip { white-space: nowrap; padding: 6px 9px; border: 1px solid #c9d9ee; border-radius: 20px; color: var(--blue-700); background: #f5f9ff; font-size: 9px; font-weight: 800; }

.readiness-banner { gap: 10px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid #cce8e4; border-radius: var(--radius-md); background: linear-gradient(90deg, #edfaf8, #f8fcfc); }
.readiness-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-600); font-size: 12px; font-weight: 900; }
.readiness-banner > div:nth-child(2) { flex: 1; }
.readiness-banner strong, .readiness-banner span { display: block; }
.readiness-banner strong { font-size: 12px; }
.readiness-banner div span { margin-top: 3px; color: var(--ink-500); font-size: 11px; }
.readiness-state { color: var(--teal-600); font-size: 10px; font-weight: 800; }

.section-filters { flex-wrap: wrap; gap: 9px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.68); }
.text-filter { position: relative; min-width: 175px; max-width: 240px; flex: 1; align-self: end; }
.text-filter summary { cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; }
.text-filter summary:focus-visible { outline: 3px solid rgba(38,113,217,.22); outline-offset: 2px; }
.text-filter-value { display: block; margin: 3px 0 0 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-500); font-size: 10px; font-weight: 400; }
.text-filter.is-filtered summary { border-color: var(--blue-600); color: var(--blue-700); background: #f5f9ff; }
.text-filter.is-filtered .text-filter-value { color: var(--ink-900); font-size: 14px; font-weight: 700; }
.text-filter-dropdown { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; width: 265px; max-width: calc(100vw - 40px); display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(19,39,66,.15); }
.text-filter-dropdown .filter-field { min-width: 0; }
.text-filter-dropdown input, .text-filter-dropdown select { width: 100%; min-width: 0; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(19, 39, 66, .045);
}
.chart-card-wide { grid-column: 1 / -1; }
.chart-header { justify-content: space-between; gap: 12px; padding: 10px 14px 9px; border-bottom: 1px solid var(--line-soft); }
.chart-header h2 { margin: 2px 0 0; font-size: 14px; letter-spacing: -.015em; }
.chart-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.saturation-basis-control { display: inline-flex; align-items: center; gap: 4px; }
.saturation-basis-control[hidden] { display: none; }
.chart-subtitle { margin: 3px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.4; }
.priority-badge, .queued-badge { padding: 5px 8px; border-radius: 12px; font-size: 9px; font-weight: 800; }
.priority-badge { color: var(--blue-700); background: var(--blue-100); }
.queued-badge { color: #66758a; background: #eef2f6; }

.local-pill[data-state="loading"] span:first-child,
.live-badge[data-state="loading"] { background: var(--amber-100); color: var(--amber-600); }
.local-pill[data-state="error"] span:first-child { background: #c73d4a; }
.live-badge {
  padding: 5px 9px;
  border-radius: 12px;
  color: var(--amber-600);
  background: var(--amber-100);
  font-size: 9px;
  font-weight: 900;
}
.live-badge[data-state="live"] { color: #0c706d; background: var(--teal-100); }
.live-badge[data-state="error"] { color: #a12635; background: #fde8eb; }
.chart-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; align-items: center; gap: 10px; }
.term-mode-switch { display: inline-flex; padding: 2px; border: 1px solid #cfd9e6; border-radius: 9px; background: #eef2f6; }
.term-mode-switch button { min-height: 25px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--ink-500); background: transparent; font-size: 9px; font-weight: 900; }
.term-mode-switch button:hover { color: var(--ink-900); }
.term-mode-switch button.is-active { color: #fff; background: var(--blue-700); box-shadow: 0 1px 4px rgba(17, 66, 124, .22); }
.term-mode-switch button[data-term-mode="blacklist"].is-active { background: #a12635; }
.product-view-switch button { min-height: 28px; font-size: 10px; }
.distribution-toolbar { padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.distribution-toolbar[hidden] { display: none; }
.distribution-toolbar > span { color: var(--ink-500); font-size: 11px; }

.live-chart-card { overflow: hidden; }
.live-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.live-metric-grid > div { min-width: 0; padding: 9px 14px; border-right: 1px solid var(--line-soft); }
.live-metric-grid > div:last-child { border-right: 0; }
.live-metric-grid span, .live-metric-grid strong { display: block; }
.live-metric-grid span { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.live-metric-grid strong { margin-top: 3px; overflow: hidden; color: var(--ink-900); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.live-chart-status, .live-empty-state { padding: 20px 14px; color: var(--ink-500); text-align: center; font-size: 11px; }
.live-empty-state strong, .live-empty-state span { display: block; }
.live-empty-state strong { color: var(--ink-900); font-size: 12px; }
.live-empty-state span { margin-top: 5px; }

.leaderboard { overflow-x: auto; }
.leaderboard-header, .leaderboard-row {
  display: grid;
  min-width: 1180px;
  grid-template-columns: minmax(215px, 1.6fr) minmax(175px, 1.3fr) minmax(110px, .58fr) minmax(135px, .82fr) minmax(110px, .65fr) minmax(120px, .65fr) minmax(100px, .55fr) minmax(80px, .4fr);
  align-items: center;
  column-gap: 12px;
}
.live-chart-card[data-product-table="overview"] .leaderboard-header,
.live-chart-card[data-product-table="overview"] .leaderboard-row {
  min-width: 1000px;
  grid-template-columns: minmax(240px, 2fr) minmax(180px, 1.3fr) minmax(115px, .8fr) minmax(110px, .8fr) minmax(110px, .8fr) minmax(105px, .7fr) minmax(75px, .5fr);
}
.live-chart-card[data-product-table="overview"] .leaderboard-details-row { min-width: 1000px; }
.leaderboard-header {
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  background: #f5f7fa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.leaderboard-product-group:nth-child(odd) { --row-background: #f6f6f6; }
.leaderboard-row { --ink-500: #606b7d; min-height: 50px; padding: 7px 14px; border-bottom: 1px solid var(--line-soft); background: var(--row-background, white); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row:hover { background: #ededed; }
.leaderboard-row.is-expanded { background: #f5f9ff; }
.leaderboard-row > strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.leaderboard-product { position: relative; z-index: 1; display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; overflow: hidden; }
.leaderboard-product div { min-width: 0; }
.leaderboard-product strong, .leaderboard-product span { display: block; }
.leaderboard-product strong { overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-product div > span { margin-top: 4px; overflow: hidden; color: var(--ink-500); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-product:hover { z-index: 6; overflow: visible; }
.leaderboard-product:hover div {
  width: max-content;
  max-width: min(720px, 68vw);
  margin: -7px -10px;
  padding: 7px 10px;
  border: 1px solid #cedaea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 37, 66, .16);
}
.leaderboard-product:hover strong { overflow: visible; white-space: normal; }
.leaderboard-product .product-meta { display: flex; align-items: center; gap: 9px; }
.leaderboard-product .product-sku { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-details-toggle { flex-shrink: 0; padding: 1px 0; border: 0; color: var(--blue-700); background: transparent; font-size: 9px; cursor: pointer; }
.product-details-toggle:hover { text-decoration: underline; }
.leaderboard-details-row { min-width: 1180px; border-bottom: 1px solid var(--line); background: #f5f9ff; }
.leaderboard-details-cell { padding: 10px 14px 10px 50px; }
.movers-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.movers-toolbar[hidden] { display: none; }
.movers-toolbar .filter-field { min-width: 155px; }
.movers-arrow { color: var(--ink-500); padding-top: 15px; }
.movers-scope { flex: 1 1 300px; font-size: 11px; line-height: 1.6; color: #536176; }
.live-chart-card[data-product-table="movers"] .leaderboard-header,
.live-chart-card[data-product-table="movers"] .leaderboard-row { min-width: 850px; grid-template-columns: minmax(300px, 2.8fr) minmax(120px, .8fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr); }
.live-chart-card[data-product-table="movers"] .leaderboard-details-row { min-width: 850px; }
.mover-change[data-direction="favorable"] { color: #17705d; }
.mover-change[data-direction="unfavorable"] { color: #ad384b; }
.mover-change[data-direction="flat"] { color: #68768a; }
.mover-sparkline { display: block; width: 150px; height: 36px; max-width: 100%; }
.mover-detail-content { padding: 15px 18px 18px 50px; }
.mover-detail-note { color: #536176; font-size: 11px; margin: 14px 0 8px; }
.mover-breakdown-scroll { max-height: 320px; overflow: auto; }
.mover-breakdown { border-collapse: collapse; width: 100%; font-size: 11px; background: white; }
.mover-breakdown th, .mover-breakdown td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mover-breakdown th { color: #536176; background: #f0f4f9; position: sticky; top: 0; }
.mover-breakdown th:first-child, .mover-breakdown td:first-child { text-align: left; width: 62%; }
.mover-breakdown tbody tr:nth-child(even) { background: #f6f6f6; }
.leaderboard-detail-metrics { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.leaderboard-detail-metrics span { display: block; color: var(--ink-500); font-size: 9px; font-weight: 700; }
.leaderboard-detail-metrics strong { display: block; margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.leaderboard-details-cell p { margin: 9px 0 0; color: var(--ink-500); font-size: 10px; }
.live-chart-card[data-product-table="distribution"] .leaderboard-header,
.live-chart-card[data-product-table="distribution"] .leaderboard-row { min-width: 1080px; grid-template-columns: minmax(240px, 1.65fr) repeat(5, minmax(94px, .68fr)) minmax(112px, .72fr) minmax(102px, .68fr); column-gap: 12px; }
.live-chart-card[data-product-table="distribution"] .leaderboard-details-row { min-width: 1080px; }
.live-chart-card[data-product-table="distribution"] .leaderboard-row { min-height: 50px; }
.live-chart-card[data-product-table="distribution"] .leaderboard-header > :not(:first-child) { justify-content: center; }
.live-chart-card[data-product-table="distribution"] .leaderboard-row > :not(:first-child) { text-align: center; }
.position-distribution-cell { display: flex; justify-content: center; min-width: 0; }
.position-bin { display: grid; grid-template-rows: 16px 4px; gap: 5px; width: 100%; max-width: 96px; min-width: 0; padding: 3px 2px; border: 0; border-radius: 4px; color: var(--ink-900); background: transparent; cursor: help; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.position-bin:hover, .position-bin:focus-visible { background: #eaf2fd; }
.position-bin:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.position-bin-value { color: var(--ink-900); font-weight: 700; }
.position-bin-track { display: block; height: 4px; overflow: hidden; border-radius: 3px; background: #e7edf4; }
.position-bin-fill { display: block; height: 100%; border-radius: inherit; background: var(--blue-600); }
.live-chart-card[data-term-mode="blacklist"] .position-bin-fill { background: #a12635; }
.distribution-appearance-total strong { font-size: 11px; }
.position-missing-note { display: block; margin-top: 3px; color: var(--ink-500); font-size: 9px; }
.matrix-toolbar { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.matrix-toolbar[hidden] { display: none; }
.matrix-explanation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 11px; }
.matrix-explanation > span { color: var(--ink-500); }
.matrix-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 9px; font-size: 11px; }
.matrix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-500); white-space: nowrap; }
.matrix-legend-group { display: inline-flex; align-items: center; gap: 7px; }
.matrix-legend-scale { width: 76px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, rgb(244, 248, 254), rgb(24, 84, 156)); }
.matrix-legend-red { background: linear-gradient(90deg, rgb(255, 245, 246), rgb(148, 35, 50)); }
.matrix-paging { display: flex; align-items: center; gap: 10px; margin-left: auto; font-variant-numeric: tabular-nums; }
.matrix-paging button { width: 30px; height: 28px; border: 1px solid #cedaea; border-radius: 5px; color: var(--blue-700); background: white; }
.matrix-paging button:disabled { opacity: .35; cursor: default; }
.live-chart-card[data-product-table="terms"] .leaderboard { max-height: 70vh; overflow: auto; }
.live-chart-card[data-product-table="terms"] .leaderboard-header,
.live-chart-card[data-product-table="terms"] .leaderboard-row { min-width: calc(390px + var(--matrix-columns) * 124px); grid-template-columns: 390px repeat(var(--matrix-columns), minmax(124px, 1fr)); gap: 0; padding: 0; }
.live-chart-card[data-product-table="terms"] .leaderboard-header { position: sticky; top: 0; z-index: 12; align-items: stretch; }
.live-chart-card[data-product-table="terms"] .leaderboard-header > :first-child { position: sticky; left: 0; z-index: 13; background: #f5f7fa; }
.live-chart-card[data-product-table="terms"] .leaderboard-header > div { min-height: 62px; padding: 9px 12px; border-right: 1px solid var(--line); }
.live-chart-card[data-product-table="terms"] .leaderboard-header > :not(:first-child) { justify-content: center; text-transform: none; letter-spacing: 0; font-size: 11px; }
.live-chart-card[data-product-table="terms"] .leaderboard-sort { line-height: 1.35; overflow-wrap: anywhere; }
.live-chart-card[data-product-table="terms"] .leaderboard-row { align-items: stretch; border-bottom: 1px solid var(--line-soft); }
.live-chart-card[data-product-table="terms"] .leaderboard-product { position: sticky; left: 0; z-index: 3; padding: 7px 12px; border-right: 1px solid var(--line); background: inherit; }
.live-chart-card[data-product-table="terms"] .leaderboard-product:hover { z-index: 8; }
.live-chart-card[data-product-table="terms"] .matrix-terms-button { min-width: 0; padding: 0; border: 0; background: transparent; font-size: 9px; }
.matrix-value-cell { position: relative; display: flex; align-items: stretch; padding: 5px; border-right: 1px solid var(--line-soft); }
.product-view-switch[hidden] { display: none; }
.live-chart-card[data-product-table="term-visibility"] .leaderboard-header,
.live-chart-card[data-product-table="term-visibility"] .leaderboard-row,
.live-chart-card[data-product-table="term-saturation"] .leaderboard-header,
.live-chart-card[data-product-table="term-saturation"] .leaderboard-row { grid-template-columns: minmax(230px, 1.8fr) minmax(180px, 1.4fr) repeat(3, minmax(115px, .8fr)) repeat(2, minmax(75px, .5fr)) minmax(55px, .4fr); min-width: 1060px; }
.live-chart-card[data-product-table="term-visibility"] .leaderboard,
.live-chart-card[data-product-table="term-saturation"] .leaderboard { overflow-x: auto; }
.live-chart-card[data-product-table="term-visibility"] .leaderboard-details-row,
.live-chart-card[data-product-table="term-saturation"] .leaderboard-details-row { min-width: 1060px; }
#products-panel[data-section="terms"] .chart-card:not(.live-chart-card) { display: none; }
.matrix-product-heading { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.matrix-product-heading .leaderboard-sort > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.matrix-product-heading .matrix-product-meta { display: flex; align-items: center; justify-content: center; gap: 8px; color: #606b7d; font-size: 9px; }
.matrix-product-heading .metric-help { flex: none; }
.matrix-value { flex: 1; min-width: 0; min-height: 38px; border: 1px solid transparent; border-radius: 4px; background: #f8fafc; color: var(--ink-500); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer; }
.matrix-value[data-state="unobserved"] { background: transparent; font-weight: 400; }
.matrix-value[data-intent="blacklist"] { border-color: #d69ca3; background: #fff5f6; }
.matrix-blacklist-label { display: block; margin-top: 2px; font-size: 9px; font-weight: 600; line-height: 11px; }
.matrix-value:hover { border-color: var(--blue-700); }
.has-intent-control .matrix-value { padding-left: 30px; padding-right: 40px; }
.matrix-intent-toggle { position: absolute; top: 5px; right: 5px; bottom: 5px; width: 34px; height: auto; padding: 0; border: 0; border-left: 2px solid #c85c67; border-radius: 0 4px 4px 0; color: #992f3d !important; background: #ffe9eb; box-shadow: none; opacity: 1; font: 18px/1 "Segoe UI Symbol", sans-serif; cursor: pointer; }
.matrix-intent-toggle:hover { border-left-color: #992f3d; color: #7f2030 !important; background: #ffd9dd; box-shadow: inset 0 0 0 1px #c85c67; }
.matrix-intent-toggle:disabled { cursor: wait; opacity: .65; }
.matrix-value:focus-visible, .matrix-intent-toggle:focus-visible, .matrix-detail-blacklist:focus-visible, .matrix-paging button:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 1px; }
.matrix-detail { width: 660px; max-width: calc(100vw - 28px); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border: 1px solid #c4d4e8; border-radius: 12px; color: var(--ink-900); background: white; box-shadow: 0 14px 50px #102b4a30; }
.matrix-detail::backdrop { background: #102b4a55; }
.matrix-detail-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.matrix-detail h2 { margin: 5px 0 0; font-size: 21px; overflow-wrap: anywhere; }
.matrix-detail > p { font-size: 13px; line-height: 1.5; color: var(--ink-500); }
.matrix-detail .matrix-detail-status { color: var(--blue-700); font-weight: 700; }
.matrix-detail-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.matrix-detail-counts strong { display: block; margin-top: 4px; font-size: 19px; font-variant-numeric: tabular-nums; }
.matrix-detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matrix-detail-counts:empty, .matrix-detail-metrics:empty, .matrix-detail-takeaway:empty { display: none; }
.matrix-detail-counts span, .matrix-detail-metrics span { display: block; color: var(--ink-500); font-size: 11px; font-weight: 700; }
.matrix-detail-metrics strong { display: block; margin-top: 7px; font-size: 22px; font-variant-numeric: tabular-nums; }
.matrix-detail-metrics p { margin: 7px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.45; }
.matrix-detail .matrix-detail-takeaway { margin: 12px 0 8px; padding: 10px 12px; border-radius: 6px; background: #f5f7fb; color: var(--ink-900); font-size: 12px; }
#matrix-detail-note { margin: 10px 0; font-size: 11px; }
.matrix-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.matrix-detail-blacklist { min-height: 34px; padding: 7px 12px; border: 1px solid #a12635; border-radius: 7px; color: #a12635; background: #fff5f6; font-size: 12px; font-weight: 700; }
.matrix-detail-blacklist[data-intent="blacklist"] { border-color: var(--blue-700); color: var(--blue-700); background: #f4f8fe; }
.matrix-detail-blacklist:disabled { opacity: .65; cursor: wait; }
#matrix-detail-save-state:empty { display: none; }
@media (max-width: 600px) {
  .matrix-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-paging { margin-left: 0; }
}
.leaderboard-header [data-column="weighted_exposure"] { color: var(--blue-700); }
.leaderboard-rank { display: grid !important; width: 27px; height: 27px; place-items: center; border: 1px solid #d4dfed; border-radius: 7px; color: var(--blue-700); background: #f5f9ff; font-size: 9px; font-weight: 900; }
.leaderboard-header > [role="columnheader"] { display: flex; align-items: center; gap: 4px; min-width: 0; }
.leaderboard-sort { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.leaderboard-sort:hover, .leaderboard-header [aria-sort]:not([aria-sort="none"]) { color: var(--blue-700); }
.metric-help { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--blue-700); cursor: help; }
.metric-help span { display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 11px/1 Georgia, serif; }
.metric-help:hover, .metric-help:focus-visible { background: #e4efff; }
.metric-help:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.metric-tooltip { position: fixed; z-index: 100; width: 400px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 16px 18px; border: 1px solid #b8cce3; border-radius: 10px; color: var(--ink-900); background: #fff; box-shadow: 0 8px 30px rgba(14, 37, 66, .2); font-size: 15px; line-height: 1.55; }
.metric-tooltip strong { display: block; margin-bottom: 7px; color: var(--blue-700); font-size: 16px; }
.metric-tooltip p { margin: 0; }
.sort-indicator { flex-shrink: 0; opacity: .55; font-size: 12px; letter-spacing: 0; }
.leaderboard-header [aria-sort]:not([aria-sort="none"]) .sort-indicator { opacity: 1; }
.visibility-bar-cell { display: grid; grid-template-columns: minmax(65px, 1fr) minmax(50px, max-content); align-items: center; gap: 10px; }
.visibility-bar-cell > strong { color: var(--blue-700); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.visibility-track { height: 8px; overflow: hidden; border-radius: 6px; background: #e7edf4; }
.visibility-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), #55b9b2); }
.live-chart-card[data-term-mode="blacklist"] .visibility-track span { background: linear-gradient(90deg, #a12635, #df7a52); }
.live-chart-card[data-term-mode="blacklist"] .exposure-answer > strong { color: #a12635; }
.live-chart-card[data-term-mode="blacklist"] .term-count-button { border-color: #e5b9c0; color: #a12635; background: #fff5f6; }
.term-count-button {
  justify-self: start;
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid #cbd9e9;
  border-radius: 7px;
  color: var(--blue-700);
  background: #f7faff;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.term-count-button:hover, .term-count-button[aria-expanded="true"] { border-color: var(--blue-600); background: var(--blue-100); }
.term-count-button.has-exclusions { border-color: #e5b9c0; color: #a12635; background: #fff5f6; }

.term-intent-popover {
  position: fixed;
  z-index: 40;
  width: min(390px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid #cbd7e6;
  border-radius: 11px;
  color: var(--ink-900);
  background: #fff;
  box-shadow: 0 18px 55px rgba(8, 28, 52, .24);
}
.term-intent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 9px; border-bottom: 1px solid var(--line-soft); }
.term-intent-heading h2 { margin: 2px 0 0; font-size: 14px; }
.term-intent-close { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-700); background: #fff; font-size: 18px; line-height: 1; }
.term-intent-product { margin: 0; padding: 8px 12px; overflow: hidden; border-bottom: 1px solid var(--line-soft); color: var(--ink-500); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.term-intent-popover:not([hidden]) { display: flex; flex-direction: column; }
.term-intent-popover > :not(.term-intent-list) { flex-shrink: 0; }
.term-intent-list { min-height: 0; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.term-intent-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; }
.term-intent-row.has-price-position { grid-template-columns: 18px minmax(0, 1fr) auto auto; }
.term-intent-price-basis { display: block; width: 100%; max-width: 230px; margin-top: 4px; padding: 3px 5px; border: 1px solid #cad8e9; border-radius: 4px; color: #345471; background: #fff; font: inherit; font-size: 10px; }
.term-intent-price-setting { padding: 8px 12px; border-bottom: 1px solid #e4ebf3; font-size: 11px; }
.term-intent-row:hover { background: #f5f9ff; }
.term-intent-row input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue-600); }
.term-intent-row-main { min-width: 0; }
.term-intent-row-main strong, .term-intent-row-main span { display: block; }
.term-intent-row-main strong { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.term-intent-row-main span { margin-top: 2px; color: var(--ink-500); font-size: 8px; }
.term-intent-status { padding: 3px 6px; border-radius: 10px; color: #0c706d; background: var(--teal-100); font-size: 8px; font-weight: 800; white-space: nowrap; }
.term-intent-price-position { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #b9cce8; border-radius: 5px; color: var(--blue-700); background: #f5f9ff; font-size: 9px; font-weight: 900; line-height: 1; }
.term-intent-row:has(input:not(:checked)) .term-intent-status { color: #a12635; background: #fde8eb; }
.term-intent-footer { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line-soft); color: var(--ink-500); background: #f8fafc; font-size: 8px; }
.term-intent-footer span:first-child { color: var(--blue-700); font-weight: 800; }

.chart-placeholder { position: relative; display: grid; min-height: 230px; place-items: center; overflow: hidden; padding: 24px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.chart-placeholder.compact { min-height: 185px; }
.chart-placeholder::before {
  content: "";
  position: absolute;
  inset: 20px 22px 42px;
  opacity: .55;
  background: repeating-linear-gradient(to bottom, transparent 0 38px, #e9edf3 39px 40px);
}
.chart-placeholder p { position: relative; z-index: 2; margin: 0; padding: 13px 16px; border: 1px solid #e3e8ef; border-radius: 10px; text-align: center; background: rgba(255,255,255,.92); box-shadow: 0 7px 20px rgba(28,50,77,.06); }
.chart-placeholder p strong, .chart-placeholder p span { display: block; }
.chart-placeholder p strong { font-size: 11px; }
.chart-placeholder p span { max-width: 420px; margin-top: 4px; color: var(--ink-500); font-size: 10px; line-height: 1.45; }
.metric-ghosts, .mini-waterfall, .mini-stacks, .mini-gaps { position: absolute; z-index: 1; inset: auto 7% 38px; display: flex; align-items: end; justify-content: space-around; gap: 18px; opacity: .34; }
.metric-ghosts span { width: 20%; height: 62px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #64a4ec, #c8dcf5); }
.metric-ghosts span:nth-child(2) { height: 98px; }
.metric-ghosts span:nth-child(3) { height: 77px; }
.metric-ghosts span:nth-child(4) { height: 115px; }
.mini-waterfall span { width: 19%; height: 65px; background: #7aaae2; }
.mini-waterfall span:nth-child(2) { height: 94px; transform: translateY(-15px); background: #52b8b1; }
.mini-waterfall span:nth-child(3) { height: 48px; transform: translateY(-5px); }
.mini-waterfall span:nth-child(4) { height: 38px; background: #d9a153; }
.mini-stacks span { width: 14%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #2671d9 0 55%, #6fc4bd 55% 100%); }
.mini-stacks span:nth-child(1) { height: 66px; }.mini-stacks span:nth-child(2) { height: 102px; }.mini-stacks span:nth-child(3) { height: 83px; }.mini-stacks span:nth-child(4) { height: 118px; }.mini-stacks span:nth-child(5) { height: 74px; }
.mini-gaps { align-items: center; inset: 50px 8%; }
.mini-gaps span { width: 16%; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #dbe8f8 0 38%, #2671d9 38% 68%, #79c3bd 68%); }

.chart-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px 7px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-500); background: #fbfcfd; font-size: 9px; }
.build-button { padding: 6px 9px; border: 1px solid #cbd8e8; border-radius: 7px; color: var(--blue-700); background: #fff; font-size: 9px; font-weight: 800; }
.build-button:hover { border-color: var(--blue-600); background: var(--blue-100); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 360px; padding: 12px 15px; border: 1px solid #cbd8e8; border-radius: 10px; color: #fff; background: var(--navy-800); box-shadow: var(--shadow); font-size: 11px; }
.foundation-dialog { width: min(520px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-900); box-shadow: 0 24px 80px rgba(7,20,38,.26); }
.foundation-dialog::backdrop { background: rgba(7,20,38,.48); backdrop-filter: blur(3px); }
.foundation-dialog form { padding: 22px; }
.dialog-heading { justify-content: space-between; }
.dialog-heading h2 { margin: 4px 0 0; font-size: 22px; }
.dialog-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-700); background: #fff; font-size: 20px; }
.foundation-dialog > form > p { color: var(--ink-500); font-size: 12px; line-height: 1.55; }
.foundation-dialog ul { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.foundation-dialog li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-subtle); font-size: 11px; }
.foundation-dialog li span { color: var(--ink-500); text-align: right; }
.dialog-action { float: right; padding-inline: 22px; }

@media (max-width: 1000px) {
  :root { --sidebar-width: 214px; }
  .filter-bar { flex-wrap: wrap; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card-wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 14px; }
  .brand-lockup { padding-bottom: 12px; }
  .client-card, .sidebar-footer .foundation-status { display: none; }
  .sidebar-footer { display: flex; gap: 12px; margin-top: 10px; padding-top: 8px; }
  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; align-items: start; }
  .nav-list > p { display: none; }
  .nav-item { grid-template-columns: 20px minmax(0, 1fr); padding: 10px 8px; font-size: 11px; }
  .nav-subitem { font-size: 11px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .local-pill { display: none; }
  .filter-bar, .filter-summary, .view-panel { padding-left: 18px; padding-right: 18px; }
  .filter-field, .filter-field-wide { min-width: calc(50% - 6px); flex: 1; }
  .page-heading { align-items: flex-start; }
  .scope-chip { display: none; }
  .readiness-state { display: none; }
  .live-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .live-metric-grid > div:nth-child(2) { border-right: 0; }
  .live-metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

#custom-period-from-field[hidden], #custom-period-to-field[hidden] { display: none; }
.filter-bar { flex-wrap: wrap; }
