:root {
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --panel: #ffffff;
  --soft: #f6f8fb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --pin: #d81b60;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #eef2f6; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 360px; overflow: hidden; }
.map-shell { position: relative; min-width: 0; height: 100%; }
#map { position: absolute; inset: 0; background: #dfe8ef; }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-left { bottom: 88px; }
.county-popup .maplibregl-popup-content { padding: 5px 7px; border-radius: 5px; color: #2f3b4d; font-size: 10px; font-weight: 750; box-shadow: 0 2px 10px rgba(15,23,42,.12); }
.county-popup .maplibregl-popup-tip { display: none; }
.topbar { position: absolute; z-index: 700; top: 10px; left: 14px; right: 14px; height: 26px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.brand { display: flex; align-items: baseline; gap: 7px; max-width: calc(100% - 100px); padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.88); line-height: 1.1; pointer-events: auto; }
.brand strong { flex: 0 0 auto; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.brand span { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.icon-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: white; box-shadow: 0 4px 14px rgba(15,23,42,.09); color: var(--ink); font-weight: 800; pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; }
.settings-button { font-size: 17px; line-height: 1; }

.settings-panel { position: absolute; z-index: 820; top: 52px; right: 14px; width: min(340px, calc(100% - 28px)); padding: 14px; border: 1px solid rgba(203,213,225,.98); border-radius: 14px; background: rgba(255,255,255,.985); box-shadow: 0 18px 48px rgba(15,23,42,.20); }
.settings-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #e8edf3; }
.settings-heading-row strong { font-size: 14px; }
.settings-eyebrow { margin-bottom: 2px; color: #748195; font-size: 9.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.settings-close { width: 30px; height: 30px; margin: -5px -5px 0 0; border: 0; border-radius: 8px; background: transparent; color: #7b8798; font-size: 22px; line-height: 1; }
.settings-close:hover { background: #f1f4f8; }
.settings-toggle-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e8edf3; cursor: pointer; }
.settings-toggle-row strong { display: block; color: #344054; font-size: 12px; }
.settings-toggle-row small { display: block; margin-top: 3px; color: #738094; font-size: 10.5px; line-height: 1.35; }
.switch-control { position: relative; width: 38px; height: 22px; flex: 0 0 auto; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #cfd6e1; transition: background .15s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.25); transition: transform .15s ease; }
.switch-control input:checked + .switch-track { background: var(--blue); }
.switch-control input:checked + .switch-track .switch-thumb { transform: translateX(16px); }
.switch-control input:focus-visible + .switch-track { outline: 3px solid rgba(37,99,235,.20); outline-offset: 2px; }
.palette-fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.palette-fieldset legend { padding: 0; color: #344054; font-size: 12px; font-weight: 800; }
.palette-fieldset p { margin: 3px 0 9px; color: #738094; font-size: 10.5px; line-height: 1.35; }
.palette-options { display: grid; gap: 6px; }
.palette-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #e0e6ee; border-radius: 9px; background: #fbfcfe; cursor: pointer; }
.palette-option:hover { border-color: #c7d3e4; background: #f7f9fc; }
.palette-option:has(input:checked) { border-color: #9db6ed; background: #eef4ff; }
.palette-option input { margin: 0; accent-color: var(--blue); }
.palette-option-copy { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 8px; }
.palette-option-copy strong { color: #475467; font-size: 11px; }
.palette-strip { display: grid; grid-template-columns: repeat(9,1fr); height: 13px; overflow: hidden; border: 1px solid rgba(15,23,42,.09); border-radius: 4px; }
.palette-strip span { min-width: 0; }

.search-wrap { position: absolute; z-index: 750; top: 43px; left: 14px; width: min(770px, calc(100% - 28px)); }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) 144px 158px; gap: 8px; align-items: stretch; }
.search-row { position: relative; min-width: 0; }
#search-input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #cbd5e1; background: rgba(255,255,255,.97); box-shadow: var(--shadow); padding: 0 44px 0 14px; color: var(--ink); outline: none; }
#search-input:focus { border-color: #8fb2ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12), var(--shadow); }

.state-filter-wrap, .scope-filter-wrap { display: block; }
#state-filter, #scope-filter { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #cbd5e1; background: rgba(255,255,255,.97); box-shadow: var(--shadow); padding: 0 32px 0 11px; color: var(--ink); outline: none; font-size: 12px; font-weight: 700; }
#state-filter:focus, #scope-filter:focus { border-color: #8fb2ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12), var(--shadow); }
#scope-filter:disabled { color: #7b8798; background: rgba(248,250,252,.95); cursor: default; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#search-clear { position: absolute; right: 7px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; color: #7b8798; font-size: 24px; line-height: 1; border-radius: 8px; }
#search-clear:hover { background: #f0f3f7; }
.search-hint { display: inline-block; margin: 7px 0 0 8px; padding: 4px 8px; border-radius: 999px; font-size: 11px; color: #536174; background: rgba(255,255,255,.88); }
.search-results { margin-top: 7px; max-height: min(430px, 52vh); overflow: auto; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 5px; }
.search-result { display: block; width: 100%; border: 0; border-radius: 9px; background: white; padding: 9px 10px; text-align: left; color: var(--ink); }
.search-result:hover, .search-result.active { background: #f0f5ff; }
.search-disclaimer { margin: 5px 6px 3px; padding: 9px 7px 5px; border-top: 1px solid var(--line); color: #66758a; font-size: 10.5px; line-height: 1.4; }
.result-name { display: block; font-size: 14px; font-weight: 700; }
.result-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.result-badge { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 999px; background: #fef3c7; color: #7c5700; font-size: 10px; font-weight: 700; }
.pinned-badge { position: absolute; z-index: 690; top: 14px; left: 50%; transform: translateX(-50%); max-width: 50%; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(216,27,96,.28); background: rgba(255,255,255,.95); color: #9f1448; box-shadow: 0 4px 14px rgba(15,23,42,.08); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline { position: absolute; z-index: 680; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.96); border: 1px solid rgba(203,213,225,.95); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px 8px; }
.timeline-top { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: stretch; }
.change-button { width: 100% !important; min-width: 0; min-height: 38px; border: 0; background: transparent; color: #344054; font-size: 12px; font-weight: 650; padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; justify-self: stretch !important; align-self: stretch; }
.change-button:hover { background: #f1f4f8; }
#prev-change { grid-column: 1; }
#next-change { grid-column: 3; }
.date-readout { display: flex; align-items: center; gap: 10px; }
.date-readout strong { font-size: 21px; min-width: 48px; text-align: right; }
#date-input { border: 1px solid #d2d9e3; border-radius: 8px; padding: 5px 7px; color: var(--ink); background: #fff; font-size: 12px; }
.date-slider { width: 100%; margin: 6px 0 0; accent-color: var(--blue); }
.timeline-years { display: flex; justify-content: space-between; margin-top: -1px; font-size: 10px; color: #8994a4; }
.side-panel { min-width: 0; height: 100%; display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid #d9e0e8; overflow: auto; }
.panel-section { padding: 18px 20px; border-bottom: 1px solid #e7ebf0; }
.panel-summary-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 1px solid #e7ebf0; }
.panel-summary-card { min-width: 0; padding: 18px 14px 16px; }
.panel-summary-card + .panel-summary-card { border-left: 1px solid #e7ebf0; }
.place-heading { padding-top: 22px; }
.panel-summary-card h1 { font-size: 19px; overflow-wrap: anywhere; }
.panel-summary-card .muted { font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.panel-summary-card .active-jurisdiction .jurisdiction-name { font-size: 18px; overflow-wrap: anywhere; }
.panel-summary-card .active-jurisdiction .jurisdiction-date { font-size: 10.5px; }
.panel-summary-card .county-actions { margin-top: 7px; }
.panel-summary-card .county-choice-button { padding: 6px 7px; font-size: 10.5px; }
.census-search-section { padding-top: 12px; padding-bottom: 12px; }
.census-search-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.census-search-heading-row .eyebrow { margin-bottom: 2px; }
.census-search-heading-row strong { display: block; font-size: 12.5px; color: #344054; }
.census-search-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 8px; min-width: 0; }
.census-search-section.wiki-only .census-search-links { grid-template-columns: minmax(0,1fr); }
.census-link-button { display: inline-flex; width: 100%; min-width: 0; box-sizing: border-box; align-items: center; justify-content: center; gap: 3px; padding: 8px 3px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #28415f; text-decoration: none; text-align: center; font-size: 10px; line-height: 1.15; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.census-search-section.wiki-only .census-link-button { font-size: 10.5px; }
.census-link-button:hover { border-color: #9db6ed; background: #f3f7ff; color: var(--blue); }
.census-link-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.census-link-button.disabled { cursor: default; color: #98a2b3; background: #f7f8fa; border-color: #e1e5eb; pointer-events: none; }
.census-search-note { margin-top: 5px; color: #758195; font-size: 9px; line-height: 1.3; }
.eyebrow { margin-bottom: 5px; color: #6f7b8c; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .085em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 23px; line-height: 1.14; }
h2 { margin-bottom: 5px; font-size: 17px; line-height: 1.2; }
.muted { color: var(--muted); font-size: 12.5px; }
.small { font-size: 11.5px; }
.active-jurisdiction .jurisdiction-name { font-size: 21px; font-weight: 800; line-height: 1.15; }
.active-jurisdiction .jurisdiction-date { margin-top: 5px; color: var(--muted); font-size: 12px; }
.notice { margin-top: 8px; padding: 8px 9px; border-radius: 8px; background: #fff8e6; color: #73510b; font-size: 11.5px; line-height: 1.4; }
.primary-button, .secondary-button { border-radius: 9px; padding: 9px 11px; font-weight: 750; font-size: 12.5px; }
.primary-button { width: 100%; margin-top: 12px; border: 1px solid var(--blue); background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { border: 1px solid #cbd5e1; background: white; color: #344054; }
.secondary-button:hover { background: #f7f9fc; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 4px; font-size: 11.5px; font-weight: 750; }
.county-actions { margin-top: 10px; }
.county-choice-label { margin-bottom: 6px; color: #6b7687; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.county-choice-button { display: block; width: 100%; margin-top: 6px; padding: 7px 9px; border: 1px solid #dbe2eb; border-radius: 9px; background: #fbfcfe; color: #344054; text-align: left; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.county-choice-button:hover { border-color: #b9c7dc; background: #f5f8fd; }
.county-choice-button.active { border-color: #9db6ed; background: #eef4ff; color: var(--blue); }
.source-details { margin-top: 10px; font-size: 11.5px; color: #465367; }
.source-details summary { cursor: pointer; color: #44536a; font-weight: 700; }
.source-details p { margin: 8px 0 0; line-height: 1.45; }
.citation { color: #6b7687; }
.pinned-section { border-left: 4px solid var(--pin); padding-left: 16px; }
.pinned-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.compact-copy { margin: 10px 0; color: #59667a; font-size: 11.5px; line-height: 1.45; }
.overlap-label { margin: 13px 0 7px; font-size: 11px; font-weight: 800; color: #485468; }
.overlap-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 11.5px; border-top: 1px solid #eef1f5; }
.overlap-row:first-child { border-top: 0; }
.overlap-pct { font-variant-numeric: tabular-nums; font-weight: 800; }
.history-list { display: grid; gap: 5px; }
.history-item { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border: 0; border-left: 3px solid #d9e0e8; padding: 7px 8px 7px 9px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.history-item:hover { border-left-color: #9db6ed; background: rgba(37,99,235,.045); }
.history-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.history-item.active { border-left-color: var(--blue); background: linear-gradient(90deg, rgba(37,99,235,.08), transparent); }
.history-copy { min-width: 0; display: block; }
.history-name { display: block; font-size: 12px; font-weight: 750; }
.history-dates { display: block; margin-top: 2px; color: #758195; font-size: 10.5px; }
.history-jump { color: #8a95a5; font-size: 16px; font-weight: 700; line-height: 1; transition: transform .12s ease, color .12s ease; }
.history-item:hover .history-jump, .history-item.active .history-jump { color: var(--blue); transform: translateX(2px); }
.empty-state { margin: auto 0; padding: 36px 26px; text-align: center; }
.empty-icon { width: 36px; height: 36px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e9efff; color: var(--blue); font-size: 14px; }
.empty-state h1 { font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.panel-footer { margin-top: auto; padding: 12px 18px; color: #8a95a5; font-size: 9.5px; text-align: center; }
dialog { width: min(560px, calc(100% - 30px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
dialog::backdrop { background: rgba(15,23,42,.42); }
.about-card { position: relative; padding: 25px; }
.about-card h2 { font-size: 21px; }
.about-card p { color: #4a586d; font-size: 12.5px; line-height: 1.55; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 24px; color: #7b8798; }
.dialog-done { width: auto; min-width: 90px; float: right; }
.county-label { background: rgba(255,255,255,.86); border: 0; border-radius: 4px; box-shadow: none; color: #2f3b4d; font-size: 10px; font-weight: 750; padding: 2px 4px; }
.county-label:before { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: minmax(460px, 66vh) auto; height: auto; min-height: 100%; overflow: visible; }
  .map-shell { height: 66vh; min-height: 460px; }
  .side-panel { height: auto; min-height: 34vh; border-left: 0; border-top: 1px solid #d9e0e8; overflow: visible; }
  .pinned-badge { display: none !important; }
  .brand span { display: none; }
  .search-wrap { width: calc(100% - 28px); }
  .search-controls { grid-template-columns: minmax(0, 1fr) 126px 142px; }
  #state-filter, #scope-filter { font-size: 11px; padding-left: 8px; }
  .timeline { padding-left: 9px; padding-right: 9px; }
  .timeline-mode-row { grid-template-columns: auto minmax(0,1fr); }
  .population-mode-note { display: none; }
  .population-legend { max-height: 31px; overflow-x: auto; overflow-y: hidden; }
  .timeline-top { grid-template-columns: minmax(34px,1fr) auto minmax(34px,1fr); }
  .change-button { font-size: 0; }
  #prev-change:after { content: '←'; font-size: 18px; }
  #next-change:after { content: '→'; font-size: 18px; }
  .date-readout { justify-content: center; gap: 5px; }
}

@media (max-width: 520px) {
  .panel-summary-grid { grid-template-columns: 1fr; }
  .panel-summary-card + .panel-summary-card { border-left: 0; border-top: 1px solid #e7ebf0; }
  .search-controls { grid-template-columns: 1fr 1fr; }
  .search-row { grid-column: 1 / -1; }
  #state-filter, #scope-filter { height: 40px; }
  .search-results { max-height: 42vh; }
}

/* Census population mode */
.timeline-mode-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin-bottom: 6px; }
.map-mode-toggle { display: inline-flex; padding: 2px; border: 1px solid #d5dce6; border-radius: 9px; background: #f3f6fa; }
.mode-button { border: 0; border-radius: 7px; padding: 5px 9px; background: transparent; color: #5e6a7c; font-size: 10.5px; font-weight: 800; }
.mode-button:hover:not(:disabled) { background: #fff; }
.mode-button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(15,23,42,.10); }
.mode-button:disabled { opacity: .45; cursor: not-allowed; }
.population-mode-note { min-width: 0; color: #738094; font-size: 10.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.population-legend { min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 3px 8px; margin: 0; padding: 5px 8px; border-radius: 8px; background: #f7f9fc; border: 1px solid #e3e8ef; overflow-x: auto; scrollbar-width: thin; }
.population-legend-title { margin-right: 3px; color: #4c596d; font-size: 10px; font-weight: 800; }
.population-legend-item { display: inline-flex; align-items: center; gap: 4px; color: #69768a; font-size: 9.5px; }
.population-swatch { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(15,23,42,.10); flex: 0 0 auto; }
.population-current-value { font-size: 25px; line-height: 1.05; font-weight: 850; letter-spacing: -.02em; }
.population-current-label { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.population-history-details { margin-top: 12px; font-size: 11.5px; color: #465367; }
.population-history-details summary { cursor: pointer; color: #44536a; font-weight: 750; }
.population-history { margin-top: 3px; max-height: 270px; overflow: auto; }
.population-history-head { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 88px; gap: 7px; margin-top: 7px; padding: 0 0 4px; color: #8993a3; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.population-history-head span:nth-child(3), .population-history-head span:nth-child(4) { text-align: right; }
.population-history-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 88px; gap: 7px; align-items: baseline; padding: 5px 0; border-top: 1px solid #eef1f5; font-size: 11px; }
.population-history-row:first-child { border-top: 0; }
.population-history-year { font-weight: 800; color: #435066; }
.population-history-name { min-width: 0; color: #687589; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.population-history-value { font-variant-numeric: tabular-nums; font-weight: 800; color: #243149; text-align: right; }
.population-history-change { font-variant-numeric: tabular-nums; color: #5d697b; text-align: right; white-space: nowrap; }
.population-history-change.warning { color: #8a5c00; font-size: 9.5px; font-weight: 800; }
.population-history-warning { color: #9a6700; font-size: 9.5px; }
.population-boundary-warning { margin-top: 8px; padding: 7px 8px; border-radius: 7px; background: #fff8e6; color: #73510b; font-size: 10.5px; line-height: 1.4; }
.county-ancestry-details { margin-top: 9px; }
.county-ancestry { margin-top: 7px; }
.county-ancestry-context { color: #465367; font-size: 10.8px; line-height: 1.45; }
.county-ancestry-caveat { margin: 7px 0 6px; padding: 7px 8px; border-radius: 7px; background: #f5f8fc; color: #657286; font-size: 10px; line-height: 1.4; }
.county-ancestry-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #eef1f5; }
.county-ancestry-main { min-width: 0; display: grid; gap: 2px; }
.county-ancestry-name { color: #344156; font-size: 11px; font-weight: 800; }
.county-ancestry-pop { color: #778397; font-size: 9.8px; }
.county-ancestry-pct { color: #243149; font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.population-no-data { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .timeline-mode-row { grid-template-columns: auto minmax(0,1fr); }
  .population-mode-note { display: none; }
  .population-legend { max-height: 31px; overflow-x: auto; overflow-y: hidden; }
  .population-history-head, .population-history-row { grid-template-columns: 38px minmax(0,1fr) auto 76px; gap: 5px; }
}

/* TreeTracingTools credit inside the timeline panel */
.timeline-copyright {
  margin: 2px 0 0;
  padding: 0 0 2px;
  text-align: center;
  color: #8b9098;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
  pointer-events: none;
  user-select: none;
}
