/* Data Infrastructure / Sources page — restrained editorial register, consumes styles.css tokens */
:root {
  --ink-bar-primary: oklch(30% 0.065 255);
  --ink-bar-mid: oklch(48% 0.045 255);
  --ink-bar-soft: oklch(68% 0.025 252);
  --ink-bar-faint: oklch(84% 0.012 252);

  /* Crisp cool-slate tint ramp for institution × month matrix */
  --tint-0: transparent;
  --tint-1: oklch(96.2% 0.008 252);
  --tint-2: oklch(92.8% 0.016 254);
  --tint-3: oklch(88.2% 0.028 255);
  --tint-4: oklch(82.5% 0.042 255);
  --tint-5: oklch(76.0% 0.056 255);
}

.sources-page {
  background: var(--color-bg);
  color: var(--color-text);
}

.sources-page [hidden] {
  display: none !important;
}

.sources-page h1,
.sources-page h2,
.sources-page h3 {
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 16px;
  transform: translateY(-160%);
  padding: 8px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: none;
}

.sources-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: 24px var(--page-x) 48px;
}

/* ── Masthead ── */
.src-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 18px;
}

.src-masthead h1 {
  margin: 0 0 8px;
  font: 700 32px/1.22 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.src-lede {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  max-width: 72ch;
}

.src-snapshot-meta {
  flex-shrink: 0;
  text-align: right;
  font: 12px/1.6 var(--font-mono);
  color: var(--color-muted);
}

.src-snapshot-date {
  display: block;
  font-weight: 600;
  color: var(--color-text);
}

.src-snapshot-sub {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
}

/* ── 5-column Typographic KPI Strip ── */
.kpi-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 15px 0 16px;
  border-top: 2px solid var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.kpi-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
}

.kpi-value {
  font: 700 22px/1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.kpi-value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 3px;
}

.kpi-sub {
  font: 12px/1.45 var(--font-mono);
  color: var(--color-muted);
}

/* ── Hairline Tabs (matches data.html rhythm) ── */
.src-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border-strong);
  margin: 18px 0 22px;
}

.src-tabs button {
  position: relative;
  padding: 9px 0 11px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.src-tabs button:hover {
  color: var(--color-text);
}

.src-tabs button[aria-selected="true"] {
  color: var(--color-text);
  font-weight: 600;
}

.src-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-text);
}

.src-tabs button span {
  margin-left: 5px;
  font: 11px var(--font-mono);
  color: var(--color-dim);
}

.tab-panel {
  min-width: 0;
}

/* ── Layouts ── */
.grid-2-asym {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.grid-2-eq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.block {
  min-width: 0;
}

.block + .block {
  margin-top: 26px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border-strong);
}

.block-head h2 {
  margin: 0;
  font: 600 15.5px/1.35 var(--font-serif);
  color: var(--color-text);
}

.block-meta {
  font: 12px var(--font-mono);
  color: var(--color-muted);
  white-space: nowrap;
}

.quiet-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ── Plain Hairline Ledger Tables ── */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.ledger-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  padding: 7px 8px;
  border-bottom: 1px solid var(--color-border-strong);
  white-space: nowrap;
}

.ledger-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.ledger-table th:first-child,
.ledger-table td:first-child {
  padding-left: 0;
}

.ledger-table th:last-child,
.ledger-table td:last-child {
  padding-right: 0;
}

.ledger-table th.num,
.ledger-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-table th.ctr,
.ledger-table td.ctr {
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-table tr.total-row td {
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-text);
  font-weight: 600;
  color: var(--color-text);
}

.row-title {
  display: block;
  font-weight: 500;
  color: var(--color-text);
}

.row-sub {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* ── Restrained inline bars ── */
.stacked-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-soft);
  margin-bottom: 12px;
}

.stacked-seg { height: 100%; }
.seg-official { background: var(--ink-bar-primary); }
.seg-transcript { background: oklch(46% 0.04 75); }
.seg-media { background: var(--ink-bar-mid); }
.seg-proprietary { background: var(--color-accent); }
.seg-market_agg { background: var(--ink-bar-faint); }

.inline-bar-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-track {
  width: 72px;
  height: 5px;
  background: var(--color-bg-soft);
  overflow: hidden;
  display: inline-block;
}

.inline-fill {
  height: 100%;
  background: var(--ink-bar-primary);
  display: block;
}

.inline-fill.muted {
  background: var(--ink-bar-mid);
}

.sec-pair-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 12px;
}

.sec-pair-cell {
  padding: 10px 12px;
}

.sec-pair-cell:first-child {
  border-right: 1px solid var(--color-border);
}

.sec-pair-cell span {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
}

.sec-pair-cell strong {
  display: block;
  margin-top: 2px;
  font: 600 17px var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.sec-pair-cell small {
  display: block;
  margin-top: 2px;
  font: 10.5px var(--font-mono);
  color: var(--color-dim);
}

/* ── Disclosure (default collapsed secondary modules) ── */
details.fold {
  margin-top: 18px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

details.fold summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-soft);
  cursor: pointer;
  list-style: none;
}

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

details.fold summary .fold-hint {
  font: 11px var(--font-mono);
  color: var(--color-muted);
}

details.fold[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.fold-body {
  padding: 14px 0 16px;
}

.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.hbar-row.wide {
  grid-template-columns: 156px minmax(0, 1fr) 48px;
}

.hbar-label {
  color: var(--color-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbar-label.mono {
  font: 500 11.5px var(--font-mono);
}

.hbar-track {
  height: 6px;
  background: var(--color-bg-soft);
}

.hbar-fill {
  height: 100%;
  background: var(--ink-bar-primary);
}

.hbar-val {
  font: 500 12px var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--color-text);
}

/* ── Understated Institution × Month Table ── */
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.meta-line strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text);
}

.table-scroll {
  overflow-x: auto;
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.heatmap-table th {
  font: 500 10.5px var(--font-mono);
  color: var(--color-muted);
  padding: 6px 4px;
  text-align: right;
  border-bottom: 1px solid var(--color-border-strong);
  white-space: nowrap;
}

.heatmap-table th.inst-col {
  text-align: left;
  padding-left: 0;
  min-width: 152px;
  font-family: var(--font-sans);
  font-size: 11.5px;
}

.heatmap-table td {
  padding: 5px 4px;
  border-bottom: 1px solid var(--color-border);
  font: 11.5px var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.heatmap-table td.inst-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  padding-left: 0;
  padding-right: 10px;
  white-space: nowrap;
}

.heatmap-table td.hm-0 { background: var(--tint-0); color: var(--color-dim); }
.heatmap-table td.hm-1 { background: var(--tint-1); color: var(--color-text-soft); }
.heatmap-table td.hm-2 { background: var(--tint-2); color: var(--color-text); }
.heatmap-table td.hm-3 { background: var(--tint-3); color: var(--color-text); }
.heatmap-table td.hm-4 { background: var(--tint-4); color: var(--color-text); font-weight: 600; }
.heatmap-table td.hm-5 { background: var(--tint-5); color: var(--color-text); font-weight: 700; }

.heatmap-table td.hm-total {
  font-weight: 600;
  color: var(--color-text);
  padding-left: 10px;
  padding-right: 0;
  background: transparent;
}

.heatmap-table tr.hm-footer td {
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-text);
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
}

/* ── D3 Short Comments Chart (muted 3-tone gray-stone) ── */
.d3-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 190px;
}

.d3-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.d3-axis text {
  font: 10.5px var(--font-mono);
  fill: var(--color-muted);
}

.d3-axis path,
.d3-axis line {
  stroke: var(--color-border);
}

.d3-grid line {
  stroke: var(--color-border);
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font: 11px/1.5 var(--font-mono);
  z-index: 20;
  white-space: nowrap;
}

.legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--color-muted);
}

.legend-inline strong {
  font-family: var(--font-mono);
  color: var(--color-text);
}

.legend-sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  vertical-align: baseline;
}

/* ── Matrix Tab ── */
.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.layer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-soft);
  font-size: 12px;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.filter-tab.is-active {
  border-color: var(--color-text);
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-weight: 600;
}

.filter-tab .cnt {
  font: 10.5px var(--font-mono);
  color: var(--color-muted);
}

.dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.matrix-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-inputs input,
.matrix-inputs select {
  min-height: 33px;
  padding: 5px 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  color: var(--color-text);
  font-size: 12px;
}

.matrix-inputs input {
  width: 195px;
}

.matrix-table tbody tr {
  cursor: pointer;
}

.matrix-table tbody tr:hover {
  background: var(--color-bg-soft);
}

.co-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.co-ticker {
  font: 600 12px var(--font-mono);
  color: var(--color-text);
  min-width: 56px;
}

.co-name {
  color: var(--color-text-soft);
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-mkt {
  font: 10.5px var(--font-mono);
  color: var(--color-dim);
}

.txt-na {
  color: var(--color-dim);
  font: 11px var(--font-sans);
}

.txt-uncovered {
  color: var(--color-muted);
  font: 11px var(--font-sans);
}

.sec-sub-links {
  color: var(--color-dim);
  font-size: 10.5px;
  margin-left: 3px;
}

.matrix-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-muted);
}

.plain-btn {
  padding: 5px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 12px;
  cursor: pointer;
}

.plain-btn:hover {
  background: var(--color-bg-soft);
}

/* ── Relations & Evidence Showcases (plain editorial list) ── */
.showcase-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.showcase-item:first-child {
  padding-top: 2px;
}

.showcase-edge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.showcase-edge a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
}

.showcase-edge a:hover {
  color: var(--color-accent-strong);
  text-decoration-color: currentColor;
}

.showcase-edge code {
  font: 600 11.5px var(--font-mono);
  margin-right: 4px;
}

.showcase-rel {
  font-size: 12px;
  color: var(--color-muted);
}

.showcase-summary {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-text-soft);
}

.ev-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 11.5px/1.5 var(--font-mono);
  color: var(--color-muted);
}

.ev-list a {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
}

.ev-list a:hover {
  text-decoration-color: currentColor;
}

.ev-tag {
  color: var(--color-text);
  font-weight: 600;
  margin-right: 6px;
}

/* ── Authority Hierarchy (inside fold) ── */
.auth-list {
  display: flex;
  flex-direction: column;
}

.auth-row {
  display: grid;
  grid-template-columns: 30px 175px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
}

.auth-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.auth-rank {
  font: 600 12px var(--font-mono);
  color: var(--color-muted);
}

.auth-name {
  font-weight: 600;
  color: var(--color-text);
}

.auth-desc {
  color: var(--color-muted);
}

.sources-footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--color-muted);
}

/* ── Live MCP Telemetry Dashboard (Tab 5) ── */
.src-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: 99px;
  background: var(--color-surface);
  color: var(--color-text);
  font: 500 11px/1.4 var(--font-mono);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.src-live-pill:hover {
  border-color: var(--color-text);
  background: var(--tint-1);
}

.tel-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-dim);
  flex-shrink: 0;
}

.tel-dot.ok {
  background: #1d7a4c;
  box-shadow: 0 0 0 3px rgba(29, 122, 76, 0.16);
}

.tel-dot.warn {
  background: #a16207;
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.16);
}

.tel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.tel-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--color-muted);
}

.tel-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel-seg {
  display: inline-flex;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}

.tel-seg button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  font: 500 11.5px var(--font-mono);
  color: var(--color-muted);
  cursor: pointer;
}

.tel-seg button + button {
  border-left: 1px solid var(--color-border);
}

.tel-seg button[aria-pressed="true"] {
  background: var(--color-text);
  color: var(--color-bg);
}

.tel-refresh {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 4px 10px;
  font: 500 11.5px var(--font-mono);
  cursor: pointer;
}

.tel-refresh:hover {
  border-color: var(--color-text);
}

.tel-refresh:disabled {
  opacity: 0.55;
  cursor: default;
}

.tel-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.tel-svc {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tel-svc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tel-svc-name {
  font: 600 13.5px/1.3 var(--font-serif);
  color: var(--color-text);
}

.tel-svc-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 11px var(--font-mono);
  color: var(--color-muted);
  white-space: nowrap;
}

.tel-svc-path {
  font: 11px/1.4 var(--font-mono);
  color: var(--color-dim);
  overflow-wrap: anywhere;
}

.tel-svc-stats {
  font: 12px/1.5 var(--font-mono);
  color: var(--color-text);
  margin-top: 2px;
}

.tel-svc-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 11px var(--font-mono);
  color: var(--color-muted);
}

.tel-bar-track {
  width: 100%;
  height: 4px;
  background: var(--tint-1);
  border-radius: 2px;
  overflow: hidden;
}

.tel-bar-fill {
  height: 100%;
  background: var(--ink-bar-primary);
  border-radius: 2px;
}

.tel-chart-wrap {
  width: 100%;
  min-height: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 10px;
}

.tel-chart-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font: 11.5px var(--font-mono);
  color: var(--color-muted);
  margin-bottom: 6px;
}

.tel-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: 12px var(--font-mono);
}

.tel-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--tint-2);
  color: var(--color-text);
  font: 500 10.5px var(--font-mono);
}

.tel-banner {
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--tint-1);
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tel-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi-cell {
    border-bottom: 1px solid var(--color-border);
  }
  .kpi-cell:nth-child(3n) {
    border-right: 0;
  }
  .grid-2-asym,
  .grid-2-eq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sources-shell {
    padding: 18px var(--page-x) 36px;
  }
  .src-masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .src-snapshot-meta {
    text-align: left;
  }
  .kpi-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-cell {
    padding: 11px 12px;
  }
  .kpi-cell:nth-child(3n) {
    border-right: 1px solid var(--color-border);
  }
  .kpi-cell:nth-child(2n) {
    border-right: 0;
  }
  .kpi-cell:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  .kpi-value {
    font-size: 19px;
  }
  .src-tabs {
    gap: 18px;
  }
  .inline-track {
    display: none;
  }
  .matrix-inputs {
    width: 100%;
  }
  .matrix-inputs input {
    flex: 1;
    width: auto;
  }
  .auth-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 3px 8px;
  }
  .auth-desc {
    grid-column: 2;
  }
  .tel-service-grid {
    grid-template-columns: 1fr;
  }
}
