@font-face {
  font-family: Inter;
  src: url("../font/site/Inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Metropolis;
  src: url("../font/site/Metropolis-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* Typography and background assets from the current 2026 start page. */
  --font-content: Inter, X-LocaleSpecific, sans-serif;
  --font-heading: Metropolis, var(--font-content);
  /* https://github.com/thunderbird/thunderbird-website/blob/master/assets/less/start.less */
  --bg: #f3f9fb;
  --bg-image: url("../img/backgrounds/bg-start-2026-light.webp");
  --surface-glass: rgba(255, 255, 255, 0.94);
  --surface: #fff;
  --surface-alt: #f3f5fc;
  --text: #24223e;
  --text-muted: #5b5a71;
  --muted: var(--text-muted);
  --line: #e4e6f0;
  --control-border: #767287;
  --accent: #5756d8;
  --accent-bg: #eeedff;
  --gradient-start: #2169ae;
  --gradient-middle: #6748c7;
  --gradient-end: #8a3bae;
  --chart-grid: #e9ebf3;
  --border: var(--line);
  --shadow: 0 14px 55px #312f6210;
  --blue: #277de7;
  --esr: #0B5CBD;
  --release: #2EB6FF;
  --beta: #df9631;
  --nightly: #bb68da;
  --unknown: #8391a6;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1e2f;
    --bg-image: url("../img/backgrounds/bg-start-2026-dark.webp");
    --surface-glass: rgba(0, 6, 22, 0.9);
    --surface: #1a192a;
    --surface-alt: #222136;
    --text: #eeedf8;
    --text-muted: #b0aec6;
    --line: #323047;
    --control-border: #8c88a2;
    --accent: #b1a4ff;
    --accent-bg: #302943;
    --gradient-start: #70b7ff;
    --gradient-middle: #b1a4ff;
    --gradient-end: #ce9cf5;
    --chart-grid: #323047;
    --shadow: 0 16px 60px #0002;
    --blue: #70b7ff;
    --beta: #f0b558;
    --nightly: #dc97f7;
    --unknown: #8f9aaf;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1e2f;
  --bg-image: url("../img/backgrounds/bg-start-2026-dark.webp");
  --surface-glass: rgba(0, 6, 22, 0.9);
  --surface: #1a192a;
  --surface-alt: #222136;
  --text: #eeedf8;
  --text-muted: #b0aec6;
  --line: #323047;
  --control-border: #8c88a2;
  --accent: #b1a4ff;
  --accent-bg: #302943;
  --gradient-start: #70b7ff;
  --gradient-middle: #b1a4ff;
  --gradient-end: #ce9cf5;
  --chart-grid: #323047;
  --shadow: 0 16px 60px #0002;
  --blue: #70b7ff;
  --beta: #f0b558;
  --nightly: #dc97f7;
  --unknown: #8f9aaf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-content);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Keep the landscape framed to the viewport across long chart pages. */
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
label:has(input[type="checkbox"]) {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  outline-offset: 5px;
}
:focus-visible,
:root[data-input-method="keyboard"] :focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* A pointer click clears keyboard styling without removing DOM focus or
   changing selected/pressed states. This includes mouse-focused text fields. */
:root[data-input-method="pointer"] :focus {
  outline: none;
}
.import-label:has(input:focus-visible),
:root[data-input-method="keyboard"] .import-label:has(input:focus) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:root[data-input-method="pointer"] .import-label {
  outline: none;
}
:root[data-input-method="keyboard"] .stats-chart:focus {
  outline-offset: -2px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  color: inherit;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}
h1,
h2 {
  letter-spacing: -0.045em;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
h4 {
  font-size: 17px;
}
p {
  color: var(--text-muted);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1600px, calc(100% - 64px));
  margin-inline: auto;
}
.site-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px 28px;
  padding-top: 24px;
}
#main {
  min-width: 0;
}
.site-sidebar-column {
  min-width: 0;
}
.site-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
}
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.site-nav a,
.site-nav-section-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 150ms, color 150ms;
}
.site-nav a:hover,
.site-nav-section-toggle:hover,
.site-nav-group-toggle:hover {
  background: var(--surface-glass);
  color: var(--text);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: var(--accent);
}
.site-nav-section-toggle {
  width: 100%;
  background: transparent;
  text-align: left;
}
.site-nav-section-toggle > span {
  flex: 1;
}
.site-nav-section[data-active="true"] > .site-nav-section-toggle,
.site-nav-metric-group[data-active="true"] .site-nav-group-toggle {
  color: var(--accent);
  font-weight: 600;
}
.site-nav-section .site-nav-section-chevron {
  width: 15px;
  height: 15px;
}
.site-nav-section-toggle[aria-expanded="true"] .site-nav-section-chevron {
  transform: rotate(180deg);
}
.site-nav-links {
  margin: 3px 4px 8px 22px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}
.site-nav-links a {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.site-nav-metric-group + .site-nav-metric-group {
  margin-top: 4px;
}
.site-nav-metric-group h3 {
  margin: 0;
}
.site-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
.site-nav-group-toggle > span {
  flex: 1;
}
.site-nav .site-nav-group-chevron {
  width: 12px;
  height: 12px;
}
.site-nav-group-toggle[aria-expanded="true"] .site-nav-group-chevron {
  transform: rotate(180deg);
}
.site-nav-metric-links {
  margin: 0 0 4px 8px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.site-nav-metric-links a {
  padding-inline: 8px;
}
.site-nav-status {
  padding: 8px 10px;
  font-size: 12px;
}
.site-nav svg,
.site-nav-toggle svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-nav-toggle {
  display: none;
}
.site-header {
  height: 100px;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
}
.brand {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-items: center;
  color: var(--text);
}
.brand img {
  width: 174px;
  height: auto;
}
.site-title {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 30px;
  align-items: center;
}
.text-link {
  font-size: 12px;
  color: var(--text-muted);
}
.theme-switch {
  position: relative;
  flex-shrink: 0;
}
.theme-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 38px;
  font-size: 12px;
  line-height: 1;
  background: var(--surface);
  transition: background 150ms, border-color 150ms, box-shadow 150ms;
}
.theme-trigger:hover,
.theme-trigger[aria-expanded="true"] {
  background: var(--surface-alt);
  border-color: var(--accent);
}
:root:not([data-input-method="pointer"]) .theme-trigger:focus-visible,
:root:not([data-input-method="pointer"]) .theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#theme-current-icon {
  display: flex;
}
#theme-current-label {
  min-width: 42px;
  text-align: left;
}
.theme-icon,
.theme-chevron,
.theme-check {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 150ms;
}
.theme-trigger[aria-expanded="true"] .theme-chevron {
  transform: rotate(180deg);
}
.theme-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 9px);
  z-index: 110;
  width: 218px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 35px #16122c24;
  animation: theme-menu-in 130ms ease-out;
}
.theme-menu-heading {
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}
.theme-option:hover,
:root:not([data-input-method="pointer"]) .theme-option:focus-visible {
  background: var(--surface-alt);
}
.theme-option[aria-checked="true"] {
  color: var(--accent);
  background: var(--accent-bg);
}
.theme-option-label {
  flex: 1;
}
.theme-option small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}
.theme-check {
  width: 16px;
  height: 16px;
  opacity: 0;
}
.theme-option[aria-checked="true"] .theme-check {
  opacity: 1;
}
.theme-system {
  margin-top: 6px;
}
@keyframes theme-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
h1 {
  font-size: clamp(45px, 5vw, 69px);
  margin: 17px 0 20px;
  line-height: 1.08;
  font-weight: 600;
}
.gradient-text {
  background: linear-gradient(105deg, var(--gradient-start) 5%, var(--gradient-middle) 58%, var(--gradient-end));
  background-clip: text;
  color: transparent;
}
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 20px;
  background: var(--surface-glass);
  border-radius: var(--radius);
}
.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.stat-value {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 12px 0 5px;
  font-variant-numeric: tabular-nums;
}
.stat-caption {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-explore-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 14px 0 9px;
}
.section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 30px;
  margin-bottom: 16px;
  padding: 12px 24px;
  background: var(--surface-glass);
  border-radius: var(--radius);
}
.section-intro > div {
  flex: 1 1 440px;
  min-width: 0;
}
.section-intro h2 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 600;
}
.section-intro p {
  font-size: 12px;
}
.updated-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 2px;
}
.updated-label::before {
  content: "↻";
  margin-right: 7px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 23px;
  flex-wrap: wrap;
}
.card-top > div:first-child {
  flex: 1 1 300px;
  min-width: 0;
}
.card-top p {
  font-size: 12px;
  margin-top: 7px;
}
#explore-title {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.chart-heading-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
}
.chart-heading-meta p {
  margin-top: 0;
}
.chart-heading-meta .updated-label {
  max-width: none;
  padding-bottom: 0;
  text-align: left;
  white-space: normal;
}
.button,
.icon-button {
  border: 1px solid var(--control-border);
  border-radius: 7px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.button:hover,
.icon-button:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
}
.button.quiet {
  background: var(--surface-alt);
  border-color: var(--control-border);
}
.icon-button {
  font-size: 18px;
  width: 33px;
  height: 33px;
  padding: 0;
}
.chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.channel-set {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.channel-set label,
.release-bucket-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}
.channel-set input,
.release-bucket-toggle input {
  appearance: none;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid var(--control-border);
  border-radius: 3px;
  position: relative;
}
.channel-set input:checked,
.release-bucket-toggle input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.channel-set input:checked::after,
.release-bucket-toggle input:checked::after {
  content: "✓";
  font-size: 9px;
  color: var(--surface);
  position: absolute;
  left: 1px;
  top: -2px;
}
.channel-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--unknown);
}
.channel-dot.esr {
  background: var(--esr);
}
.channel-dot.release {
  background: var(--release);
}
.channel-dot.beta {
  background: var(--beta);
}
.channel-dot.nightly {
  background: var(--nightly);
}
.channel-filter {
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.channel-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.channel-filter h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.channel-filter .channel-set {
  gap: 8px;
  min-width: 0;
}
.channel-filter .channel-set label,
.channel-filter .channel-set button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  gap: 8px;
}
.channel-filter .channel-set label:has(input:checked),
.channel-filter .channel-set button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.channel-filter .channel-set label:hover,
.channel-filter .channel-set button:hover {
  border-color: var(--accent);
}
.channel-filter .channel-set input {
  flex-shrink: 0;
}
.channel-filter p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}
.unknown-channel {
  color: var(--text-muted);
}
.display-controls {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
select,
input[type="date"],
input[type="search"],
input[type="text"],
input[type="number"] {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  max-width: 100%;
}
/* Shared dropdown styling also covers controls created by chart renderers. */
select:not([multiple]):not([size]) {
  appearance: none;
  min-height: 40px;
  min-width: 0;
  padding: 9px 36px 9px 12px;
  border-radius: 10px;
  color: var(--text);
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  line-height: 1.4;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
}
select:not([multiple]):not([size]):hover:not(:disabled) {
  border-color: var(--accent);
  background-color: var(--surface-alt);
}
:root:not([data-input-method="pointer"]) select:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select option {
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-content);
}
/* CSS-customizable native pickers retain labels, keyboard controls and change
   events. Other browsers use the styled control and their native option picker.
   https://developer.chrome.com/blog/a-customizable-select */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }
  select:not([multiple]):not([size]) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background-image: none;
  }
  select::picker-icon {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-inline-start: auto;
    color: var(--text-muted);
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 150ms;
  }
  select:open {
    border-color: var(--accent);
    background-color: var(--surface-alt);
  }
  select:open::picker-icon {
    transform: rotate(180deg);
  }
  select::picker(select) {
    min-width: anchor-size(width);
    max-width: min(32rem, calc(100vw - 24px));
    max-height: min(22rem, calc(100dvh - 32px));
    margin-block: 7px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    font-family: var(--font-content);
    box-shadow: 0 12px 35px #16122c24;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--surface);
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
  }
  select option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  select option:hover,
  select option:focus-visible {
    background: var(--surface-alt);
  }
  select option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  select option:checked {
    color: var(--accent);
    background: var(--accent-bg);
  }
  select option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  select option::checkmark {
    content: "";
    order: 1;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-inline-start: auto;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
@media (pointer: coarse) {
  select:not([multiple]):not([size]),
  select option {
    min-height: 44px;
  }
}
.chart-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 28px;
  border-block: 1px solid var(--line);
}
.chart-style-control {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 100%;
}
.chart-style-buttons {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chart-style-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.chart-style-button svg {
  width: 24px;
  height: 24px;
}
.chart-style-button:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.chart-style-button[aria-pressed="true"] {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}
:root:not([data-input-method="pointer"]) .chart-style-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chart-style-tooltip {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  visibility: hidden;
}
.chart-style-tooltip::after {
  content: "";
  position: absolute;
  inset: 100% 0 -10px;
}
.chart-style-button:first-child .chart-style-tooltip {
  left: 0;
  transform: none;
}
.chart-style-button:last-child .chart-style-tooltip {
  left: auto;
  right: 0;
  transform: none;
}
.chart-style-button:not(.tooltip-dismissed):is(:hover, :focus-visible) .chart-style-tooltip {
  visibility: visible;
}
@media (pointer: coarse) {
  .chart-style-button {
    width: 44px;
    height: 44px;
  }
}
.range-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 18px;
  flex-wrap: wrap;
}
.range-presets {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.range-label {
  margin-right: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.range-help {
  margin: 7px 28px 0;
  font-size: 12px;
}
.range-presets button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 9px;
}
.range-presets button.selected {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}
.date-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}
.date-fields input {
  font-size: 12px;
  padding: 5px 7px;
  background: transparent;
}
.date-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-main {
  width: 100%;
  min-height: 340px;
  padding: 0 14px;
}
.chart-main svg {
  max-width: 100%;
  display: block;
}
.loading-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
}
.chart-warning {
  margin: 0 28px 14px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-alt);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.legend-header {
  padding: 0 28px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.legend-heading,
.legend-tools,
.legend-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.legend-heading strong { color: var(--text); }
.legend-tools { flex: 1 1 620px; justify-content: flex-end; }
.legend-tools .button { min-height: 34px; padding: 6px 10px; border: 1px solid var(--control-border); }
.legend-tools .button:disabled { cursor: default; }
.legend-tools .button:not(:disabled):hover { border-color: var(--accent); background: var(--accent-bg); }
.legend-settings { flex-basis: 100%; justify-content: space-between; }
.legend-settings label { display: inline-flex; align-items: center; gap: 7px; }
.legend-empty { margin: 0 28px 22px; font-size: 13px; }
.legend-search input {
  font-size: 12px;
  padding: 6px 9px;
  width: 210px;
  min-height: 34px;
  background: var(--surface-alt);
  border-color: var(--control-border);
}
.series-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 21px;
  padding: 0 28px 22px;
  max-height: 340px;
  overflow: auto;
}
.series-selection-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 15px 28px;
}
.series-selection-controls label,
.allocation-period {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.secondary-legend {
  max-height: 280px;
  overflow: auto;
}
.chart-data-table {
  margin: 14px 28px 24px;
}
.chart-data-table summary {
  font-size: 12px;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  color: var(--text);
  font-size: 12px;
  min-width: 0;
  cursor: pointer;
  border-radius: 4px;
}
.legend-item * {
  cursor: inherit;
}
.series-legend > .legend-item {
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid var(--control-border);
  background: var(--surface-alt);
}
.series-legend > .legend-item[aria-pressed="true"] {
  border-color: var(--accent);
}
.series-legend:empty {
  display: none;
}
.legend-item.off {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.legend-item.off .legend-swatch {
  opacity: 0.4;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-value {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 28px;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 0;
  white-space: nowrap;
}
.below-chart {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--surface-glass);
  border-radius: var(--radius);
}
.below-chart details {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 250px;
}
.below-chart summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  list-style: none;
  padding-block: 5px;
}
.below-chart summary::before {
  content: "+";
  margin-right: 9px;
  color: var(--accent);
}
.below-chart details[open] summary::before {
  content: "−";
}
.below-chart p {
  margin-top: 9px;
  line-height: 1.8;
}
.community-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 32px 24px;
  background: var(--surface-glass);
  border-radius: var(--radius);
}
.community-footer h2 {
  font-size: 26px;
  margin-top: 12px;
  line-height: 1.3;
}
.community-footer > p {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.9;
}
.community-footer a {
  display: inline-block;
  font-size: 12px;
  margin-top: 13px;
  font-weight: 600;
}
.site-footer {
  grid-column: -2 / -1;
  min-width: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  margin-block: 0 24px;
  background: var(--surface-glass);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 23px;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer p a,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-report-bug {
  margin-inline-start: auto;
  white-space: nowrap;
}
.group-editor {
  background: var(--surface-alt);
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.editor-heading p {
  font-size: 12px;
  margin: 8px 0 16px;
}
.editor-tools {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.editor-tools > label:not(.button) {
  font-size: 12px;
  display: grid;
  gap: 4px;
}
.group-row {
  display: grid;
  grid-template-columns: 27px 1.3fr 1fr 1fr 1.5fr auto;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  align-items: end;
}
.group-row label {
  font-size: 12px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}
.group-row label input {
  width: 100%;
}
.group-row input[type="color"] {
  width: 27px;
  height: 31px;
  padding: 2px;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  background: var(--surface);
}
.group-extra {
  grid-column: 2/-1;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.group-extra label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.group-extra input[type="text"],
.group-extra input[type="number"] {
  width: 125px;
}
.group-actions {
  display: flex;
  gap: 4px;
}
.group-actions button {
  height: 30px;
  width: 27px;
  font-size: 13px;
}
.editor-footnote {
  font-size: 12px;
  margin-top: 13px;
}
.table-scroll {
  overflow: auto;
  max-height: 360px;
  margin-top: 10px;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.table-scroll th,
.table-scroll td {
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.table-scroll th:first-child,
.table-scroll td:first-child {
  text-align: left;
}
.table-scroll thead {
  position: sticky;
  top: 0;
  background: var(--surface);
}
.table-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
.notice {
  background: var(--accent-bg);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 22px;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
}
.archive-control {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}
.secondary-card {
  margin-bottom: 22px;
}
.secondary-chart {
  min-height: 310px;
  padding: 0 15px;
}
.secondary-meta {
  padding: 0 28px 18px;
  font-size: 12px;
}
.empty-state {
  padding: 60px 35px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state h3 {
  margin-bottom: 12px;
}
.empty-state p {
  max-width: 550px;
  margin-inline: auto;
  font-size: 12px;
}
:root:not([data-input-method="pointer"]) .site-nav-section-toggle:focus-visible,
:root:not([data-input-method="pointer"]) .site-nav-group-toggle:focus-visible,
:root:not([data-input-method="pointer"]) .site-nav a:focus-visible,
:root:not([data-input-method="pointer"]) .site-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.oauth-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 24px;
}
.oauth-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: var(--text-muted);
}
.oauth-controls select {
  min-width: 0;
  max-width: 100%;
}
.mini-stats {
  display: flex;
  gap: 32px;
  padding: 0 28px 20px;
}
.mini-stats strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mini-stats span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.secondary-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 28px 18px;
}
.chart-tooltip,
.d3-tooltip {
  font-size: 12px;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  background: var(--surface);
  padding: 12px;
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .site-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .stat-label {
    letter-spacing: 0.06em;
  }
  .stat-value {
    font-size: 34px;
  }
  .stat-explore-link {
    font-size: 19px;
  }
  .chart-controls {
    align-items: flex-start;
  }
  .chart-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .channel-set {
    gap: 11px;
  }
  .display-controls {
    margin-left: auto;
  }
  .group-row {
    grid-template-columns: 27px 1.4fr 1fr 1fr;
  }
  .group-row > label:nth-of-type(4) {
    grid-column: 2/4;
  }
  .group-actions {
    grid-column: 4;
    justify-self: end;
  }
  .stat + .stat {
    padding-left: 25px;
  }
  .series-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .site-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
  }
  .site-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--control-border);
    border-radius: 10px;
    background: var(--surface);
    text-align: left;
    line-height: 1.5;
  }
  .site-nav-toggle > span {
    flex: 1;
    min-width: 0;
  }
  .site-nav-caption {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
  }
  #site-nav-current {
    display: block;
    font-size: 13px;
    font-weight: 600;
  }
  .site-nav-toggle[aria-expanded="true"] .site-nav-chevron {
    transform: rotate(180deg);
  }
  .site-nav {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .site-sidebar[data-open="true"] .site-nav {
    display: flex;
  }
  .site-header {
    height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 24px;
    padding-block: 16px;
  }
  .site-title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 28px;
  }
  .header-actions {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    padding-inline: 16px;
  }
  .brand img {
    width: 145px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions > .text-link {
    display: none;
  }
  .stats-strip {
    gap: 15px;
    padding: 20px 12px;
    grid-template-columns: 1fr 1fr;
  }
  .stat + .stat {
    padding-left: 17px;
  }
  .stat:last-child {
    display: none;
  }
  .stat-label {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .stat-value {
    font-size: 32px;
  }
  .stat-caption {
    font-size: 12px;
  }
  .section-intro {
    align-items: flex-start;
    gap: 13px;
    padding-inline: 17px;
  }
  .updated-label {
    font-size: 12px;
    white-space: normal;
    text-align: right;
    max-width: 110px;
  }
  .card-top {
    padding: 20px 17px;
    gap: 12px;
  }
  .card-top h3 {
    font-size: 17px;
  }
  .chart-toolbar {
    padding: 13px 17px;
    gap: 12px;
  }
  .chart-data-table {
    margin-inline: 17px;
  }
  .chart-controls {
    padding: 13px 17px;
    gap: 15px;
  }
  .display-controls {
    margin: 0;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .channel-set {
    gap: 10px;
  }
  .channel-set label {
    font-size: 12px;
  }
  .unknown-channel {
    font-size: 12px !important;
  }
  .range-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .date-fields {
    width: 100%;
    margin-left: 0;
  }
  .date-fields label {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .date-fields > span {
    align-self: flex-end;
    padding-bottom: 5px;
  }
  .date-fields input,
  .date-fields select {
    font-size: 12px;
    padding: 4px;
    width: 100%;
    min-width: 0;
  }
  .range-presets button {
    font-size: 12px;
    padding: 4px 7px;
  }
  .chart-main {
    padding: 0 4px;
    min-height: 300px;
  }
  .chart-warning {
    margin-inline: 15px;
  }
  .legend-header {
    padding-inline: 17px;
  }
  .legend-tools { justify-content: flex-start; }
  .legend-tools .legend-search { flex: 1 1 100%; }
  .legend-tools .legend-search input { width: 100%; }
  .legend-empty { margin-inline: 17px; }
  .series-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 17px 20px;
    gap: 12px;
  }
  .legend-search input {
    width: 155px;
  }
  .card-bottom {
    padding: 12px 17px;
    align-items: flex-start;
    font-size: 12px;
  }
  .community-footer {
    gap: 25px;
    margin-top: 40px;
    padding: 28px 0;
    align-items: flex-start;
  }
  .community-footer h2 {
    font-size: 21px;
  }
  .community-footer > p {
    font-size: 12px;
    max-width: 45%;
  }
  .site-footer {
    padding-inline: 17px;
  }
  .group-editor {
    padding: 20px 17px;
  }
  .editor-tools {
    gap: 7px;
  }
  .group-row {
    grid-template-columns: 25px 1fr 1fr;
  }
  .group-row > label:nth-of-type(3) {
    grid-column: 2;
  }
  .group-row > label:nth-of-type(4) {
    grid-column: 3;
  }
  .group-row > label:nth-of-type(5) {
    grid-column: 2 / -1;
  }
  .group-actions {
    grid-column: 3;
  }
  .group-extra {
    grid-column: 2/-1;
  }
  .secondary-chart {
    padding: 0 5px;
  }
  .below-chart {
    gap: 10px;
  }
  .archive-control {
    font-size: 12px;
  }
  .archive-control select {
    max-width: 158px;
  }
  .secondary-meta {
    padding-inline: 18px;
  }
}
@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
    column-gap: 12px;
  }
  .brand img {
    width: 124px;
  }
  .updated-label {
    max-width: none;
    text-align: left;
  }
  .date-fields {
    margin-left: 0;
  }
  .legend-search input {
    width: 135px;
  }
  .channel-set {
    gap: 9px;
  }
  .channel-set label {
    font-size: 12px;
  }
  .community-footer {
    display: block;
  }
  .community-footer > p {
    max-width: none;
    margin-top: 20px;
  }
  .group-row {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.spending-allocation {
  padding: 0 28px 28px;
}
.spending-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr 50px;
  align-items: center;
  gap: 20px;
  margin: 17px 0;
  font-size: 12px;
}
.spending-track {
  height: 9px;
  border-radius: 5px;
  background: var(--surface-alt);
  overflow: hidden;
}
.spending-track > div {
  height: 100%;
  border-radius: 5px;
}
.spending-row strong {
  text-align: right;
  font-size: 12px;
}
@media (max-width: 600px) {
  .spending-row {
    grid-template-columns: 1.5fr 1fr 38px;
    gap: 12px;
    font-size: 12px;
  }
}

.series-help {
  margin: -4px 28px 20px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.version-suggestion {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 6px;
}
@media (max-width: 650px) {
  .series-help {
    margin-inline: 17px;
  }
}

/* Shared secondary-chart controls and full-category comparison views. */
.secondary-card .chart-controls,
.funding-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 24px;
  padding: 16px 28px;
}
.secondary-card .chart-controls label,
.funding-control {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: var(--text-muted);
}
.secondary-card select { max-width: 100%; }
.chart-controls .series-grouping-control,
.secondary-card .chart-controls .series-grouping-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--text);
}
.series-grouping-control input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--accent);
}
.secondary-card[tabindex="-1"] { scroll-margin-top: 16px; }
.chart-exports { display: flex; flex-wrap: wrap; gap: 6px; }
.secondary-legend button.legend-item {
  appearance: none;
  border: 0;
  padding: 5px 2px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.secondary-legend button.legend-item.off { text-decoration: line-through; }
.legend-swatch,
.chart-tooltip-swatch,
.channel-dot {
  box-shadow: 0 0 0 1px var(--surface), 0 0 0 2px var(--text-muted);
}
.chart-crosshair-line {
  position: absolute;
  width: 3px;
  margin-left: -1px;
  background: #fff;
  border-inline: 1px solid #000;
}
button.legend-item:hover,
:root:not([data-input-method="pointer"]) button.legend-item:focus-visible {
  background: var(--accent-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-scope { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 10px 28px; }
.data-scope label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.chart-data-table .data-scope { padding: 10px 0; }
.funding-coverage-note {
  margin: 0 28px 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  font-size: 12px;
}
.breakdown-chart { padding: 0 10px 20px; }
.breakdown-row:focus,
:root[data-input-method="keyboard"] .breakdown-row:focus { outline: none; }
:root:not([data-input-method="pointer"]) .breakdown-row:focus-visible .breakdown-hit,
:root[data-input-method="keyboard"] .breakdown-row:focus .breakdown-hit {
  stroke: var(--accent);
  stroke-width: 2px;
  fill: var(--chart-grid);
  fill-opacity: 0.45;
}
@media (max-width: 600px) {
  .secondary-card .card-top { flex-wrap: wrap; }
  .secondary-card .chart-controls, .funding-controls { padding: 13px 17px; gap: 12px; }
  .secondary-card .chart-controls label, .funding-control { flex: 1 1 120px; }
  .secondary-card .chart-controls select, .funding-control select { width: 100%; }
  .chart-exports { width: 100%; }
  .chart-exports .button { flex: 1; }
  .funding-coverage-note { margin-inline: 17px; }
  .data-scope { padding-inline: 17px; }
  .breakdown-chart { padding-inline: 0; }
}
.channel-coverage-action { padding: 0 28px 16px; }
.table-actions label { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.coverage-note {
  padding: 13px 20px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.6;
}
