:root {
  color-scheme: dark;
  --background: #101211;
  --surface: #171a18;
  --surface-raised: #1d211e;
  --border: #343a35;
  --border-strong: #4a514b;
  --text: #f0f2ed;
  --muted: #a1a89f;
  --quiet: #747c74;
  --accent: #c9ff62;
  --accent-dark: #28331b;
  --favorable: #bff17a;
  --favorable-bg: #20301f;
  --even: #f1d884;
  --even-bg: #332e1f;
  --unfavorable: #ff9d91;
  --unfavorable-bg: #39221f;
  --focus: #e6ffad;
  --radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--background); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button, input, select { font: inherit; }
button, select, input[type="date"] { min-height: 44px; }

.shell { width: min(1480px, calc(100% - 48px)); margin-inline: auto; }
.page-stack { display: grid; gap: 20px; padding-block: 38px 70px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; background: var(--accent); color: #111; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--border); background: var(--background); }
.header-filter-inner { min-height: 92px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.94rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; }
.beta-badge, .status-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); border-radius: 999px; padding: 2px 7px; color: var(--accent); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; }
.header-nav-shell { border-top: 1px solid var(--border); background: var(--background); }
.primary-nav { min-height: 48px; display: flex; align-items: stretch; justify-content: flex-end; gap: 2px; }
.primary-nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; padding: 0 16px; color: var(--muted); font-size: 0.78rem; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.global-filter-shell { background: var(--surface); }

.eyebrow { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 28ch; margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -0.045em; }
h2 { margin-bottom: 0; font-size: 1rem; line-height: 1.3; letter-spacing: -0.015em; }
h3 { margin-bottom: 4px; font-size: 0.94rem; }
p { color: var(--muted); }

.page-heading, .detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; min-height: 100px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.page-heading p, .detail-heading p { max-width: 72ch; margin-bottom: 0; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-weight: 700; white-space: nowrap; }

.filter-bar { min-width: 0; flex: 1; display: grid; grid-template-columns: auto minmax(180px, 1.3fr) minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 12px; align-items: end; padding-block: 12px; }
.filter-context { min-width: 124px; align-self: center; padding-right: 16px; border-right: 1px solid var(--border); }
.filter-context .eyebrow { margin-bottom: 1px; color: var(--text); }
.filter-context small { color: var(--quiet); font-size: 0.65rem; white-space: nowrap; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
label small { color: var(--quiet); font-size: inherit; }
select, input[type="date"] { width: 100%; height: 44px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 8px 10px; background: #111412; color: var(--text); }
button, .button-primary, .button-secondary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: var(--radius); padding: 8px 16px; background: var(--accent); color: #121511; font-weight: 800; text-decoration: none; cursor: pointer; }
button:hover, .button-primary:hover { background: #dcff9d; color: #121511; }
button:disabled { cursor: wait; opacity: 0.72; }
main:focus { outline: none; }
main[aria-busy="true"] { opacity: 0.58; pointer-events: none; }
.button-secondary { background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--accent-dark); }

.coverage { display: grid; grid-template-columns: minmax(230px, 1fr) 2.4fr; gap: 22px 36px; align-items: end; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.coverage > div { display: grid; gap: 3px; }
.coverage > div strong { font-size: 1.1rem; }
.coverage > div > span:last-child { color: var(--muted); font-size: 0.74rem; }
.coverage dl, .detail-metrics { display: grid; grid-template-columns: repeat(6, minmax(76px, 1fr)); margin: 0; }
.coverage dl div, .detail-metrics div { border-left: 1px solid var(--border); padding: 2px 14px; }
dt { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.07em; text-transform: uppercase; }
dd { margin: 3px 0 0; color: var(--text); font-size: 0.94rem; font-weight: 700; }
dd small { color: var(--muted); font-weight: 400; }
.updated { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px solid var(--border); color: var(--quiet); font-size: 0.68rem; }

.panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-heading { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--border); padding: 15px 18px; }
.panel-heading p { max-width: 62ch; margin-bottom: 0; font-size: 0.72rem; text-align: right; }
.panel-heading form { display: flex; align-items: end; gap: 8px; }
.panel-heading form label { min-width: 140px; }
.panel-heading form button { min-height: 40px; }

.table-scroll { isolation: isolate; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--border); padding: 13px 15px; text-align: left; vertical-align: middle; }
thead th { background: var(--surface-raised); color: var(--muted); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: #1a1e1b; }
td small, th small { display: block; color: var(--quiet); font-size: 0.65rem; font-weight: 400; }
.archetype-name { display: block; min-width: 180px; }
.share-cell { min-width: 210px; display: grid; grid-template-columns: minmax(120px, 1fr) 54px; align-items: center; gap: 12px; }
progress { width: 100%; height: 7px; appearance: none; border: 0; background: var(--border); }
progress::-webkit-progress-bar { background: var(--border); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.rate { display: inline-flex; min-width: 70px; justify-content: center; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; font-weight: 800; }
.low-sample { margin-top: 4px; color: var(--muted); }

.tone-favorable { color: var(--favorable); background-color: var(--favorable-bg); }
.tone-even { color: var(--even); background-color: var(--even-bg); }
.tone-unfavorable { color: var(--unfavorable); background-color: var(--unfavorable-bg); }
.tone-insufficient { color: var(--muted); background-color: #222623; }
.method-note { border-left: 2px solid var(--border-strong); padding: 4px 0 4px 14px; color: var(--muted); font-size: 0.72rem; }
.method-note strong { color: var(--text); }

.matrix-legend { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); padding: 10px 14px; }
.matrix-legend span { border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; font-size: 0.64rem; }
.matrix-table { width: max-content; min-width: 100%; }
.matrix-table th:first-child { position: sticky; z-index: 4; left: 0; min-width: 190px; background: var(--surface-raised); }
.matrix-table thead th:first-child { z-index: 5; }
.matrix-table thead th:not(:first-child) { width: 92px; max-width: 92px; height: 140px; padding: 8px; vertical-align: bottom; }
.matrix-table thead th:not(:first-child) span { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: rotate(-55deg); transform-origin: left bottom; }
.matrix-table td { min-width: 92px; height: 68px; padding: 7px; text-align: center; }
.matrix-table td > span { display: grid; gap: 2px; font-weight: 800; }
.matrix-table .mirror { box-shadow: inset 0 0 0 1px var(--border-strong); background: #202421; color: var(--muted); }
.matrix-mobile { display: none; }

.challenge-list { display: grid; }
.challenge-row { display: grid; grid-template-columns: minmax(260px, 1.5fr) 2fr auto; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); padding: 18px; }
.challenge-row:last-child { border-bottom: 0; }
.challenge-row:hover { background: #1a1e1b; }
.challenge-primary h3 a { text-decoration: none; }
.challenge-primary > span:last-child { color: var(--muted); font-size: 0.72rem; }
.challenge-row dl { display: grid; grid-template-columns: repeat(5, minmax(62px, 1fr)); gap: 0; margin: 0; }
.challenge-row dl div { border-left: 1px solid var(--border); padding-left: 12px; }
.row-action { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-weight: 700; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding: 14px 18px; color: var(--muted); font-size: 0.72rem; }
.pagination-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.breadcrumbs { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.72rem; }
.detail-heading { align-items: center; }
.detail-metrics { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 4px; background: var(--surface); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; padding: 9px 16px; color: var(--muted); font-size: 0.74rem; text-decoration: none; text-transform: uppercase; }
.tabs a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.deck-grid { display: grid; }
.deck-card { border-bottom: 1px solid var(--border); }
.deck-card:last-child { border-bottom: 0; }
.deck-card summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; cursor: pointer; }
.deck-card summary > span:first-child { display: grid; grid-template-columns: 74px minmax(160px, 1fr) minmax(180px, 1fr); align-items: center; gap: 16px; }
.deck-card summary > span:last-child { color: var(--muted); font-size: 0.7rem; }
.deck-card summary small { color: var(--muted); }
.deck-card-body { border-top: 1px solid var(--border); padding: 18px; background: #131614; }
.deck-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.deck-columns h3 { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.deck-columns ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 20px; }
.deck-columns li { display: flex; break-inside: avoid; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--muted); font-size: 0.7rem; }
.deck-columns li small { color: var(--quiet); }
.match-list { display: grid; }
.match-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); padding: 14px 18px; }
.match-row:last-child { border-bottom: 0; }
.match-id { overflow: hidden; color: var(--quiet); font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.match-row > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.match-row p { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(140px, 1fr) auto; gap: 12px; align-items: center; margin: 0; }
.match-row p > span { font-size: 0.7rem; }
.result { border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; text-align: center; text-transform: uppercase; }
.result-win { color: var(--favorable); }
.result-loss { color: var(--unfavorable); }

.state-panel { min-height: 300px; display: grid; place-items: center; align-content: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 40px 20px; text-align: center; }
.state-panel .state-mark { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 12px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--accent); font-size: 1.2rem; }
.state-panel h1, .state-panel h2 { margin-bottom: 8px; }
.state-panel p { max-width: 62ch; }
.error-page { min-height: calc(100vh - 150px); display: grid; align-items: center; padding-block: 40px; }

.site-footer { border-top: 1px solid var(--border); color: var(--quiet); font-size: 0.65rem; }
.site-footer .shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-actions { display: inline-flex; align-items: center; gap: 14px; }
.footer-button { min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--quiet); font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 0.22em; }
.footer-button:hover { background: transparent; color: var(--accent); }

.consent-dialog { position: fixed; z-index: 60; right: 18px; bottom: 18px; left: 18px; width: min(1180px, calc(100% - 36px)); max-height: calc(100vh - 36px); display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(280px, 1fr) auto; gap: 18px 28px; align-items: center; margin-inline: auto; overflow-y: auto; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; background: var(--surface-raised); box-shadow: 0 12px 40px rgb(0 0 0 / 45%); }
.consent-copy h2 { margin-bottom: 5px; }
.consent-copy p { max-width: 64ch; margin-bottom: 5px; font-size: 0.75rem; }
.consent-copy a { color: var(--accent); font-size: 0.7rem; }
.consent-dialog fieldset { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
.consent-option { grid-template-columns: auto 1fr; align-items: start; gap: 10px; border: 1px solid var(--border); padding: 10px; color: var(--text); font-size: 0.72rem; letter-spacing: 0; text-transform: none; cursor: pointer; }
.consent-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent-option span { display: grid; gap: 2px; }
.consent-option small { color: var(--muted); font-weight: 400; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions button:last-child { grid-column: 1 / -1; }
.privacy-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
.privacy-copy > div { min-height: 190px; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-copy > div:nth-child(even) { border-right: 0; }
.privacy-copy > div:nth-last-child(-n + 2) { border-bottom: 0; }
.privacy-copy p:last-child { margin-bottom: 0; }

.nav-form { display: flex; align-items: stretch; }
.nav-button { min-height: 46px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 16px; background: transparent; color: var(--muted); font-size: 0.78rem; font-weight: 400; text-transform: uppercase; }
.nav-button:hover { background: transparent; color: var(--text); }
.account-shell { width: min(100% - 36px, 1120px); }
.auth-panel { max-width: 680px; display: grid; gap: 24px; margin-inline: auto; border: 1px solid var(--border); padding: 28px; background: var(--surface); }
.account-form { display: grid; gap: 14px; }
.account-form input, .upload-form input[type="file"] { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 8px 10px; background: #111412; color: var(--text); }
.account-form button { justify-self: start; }
.account-help { border-top: 1px solid var(--border); padding-top: 20px; }
.account-help h2 { font-size: 0.92rem; }
.account-help code { color: var(--accent); }
.account-help ol { display: grid; gap: 8px; margin: 12px 0 16px; padding-left: 24px; color: var(--muted); }
.account-help li::marker { color: var(--accent); font-weight: 700; }
.notice, .form-error { margin: 0; border-left: 3px solid var(--accent); padding: 12px 14px; background: var(--surface-raised); color: var(--text); }
.form-error { border-left-color: var(--unfavorable); }
.panel-body { padding: 20px; }
.upload-form { display: grid; grid-template-columns: minmax(240px, 1.5fr) minmax(220px, 1fr) auto; align-items: end; gap: 14px; }
.upload-form label small { color: var(--quiet); font-weight: 400; letter-spacing: 0; text-transform: none; }
.account-challenge-list .challenge-row { grid-template-columns: 1fr minmax(320px, 0.8fr) auto; }
.compact-form { max-width: 520px; }
.button-danger { border-color: var(--unfavorable); background: transparent; color: var(--unfavorable); }
.button-danger:hover { background: var(--unfavorable); color: #121511; }
.danger-zone { margin-top: 24px; }
.delete-submission { display: flex; justify-content: flex-end; }
.confirmation { grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--text); letter-spacing: 0; text-transform: none; }
.confirmation input { width: 18px; min-height: 18px; }

@media (max-width: 1040px) {
  .header-filter-inner { display: grid; gap: 4px; padding-block: 12px; }
  .brand { min-height: 36px; }
  .filter-bar { width: 100%; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; padding-block: 0; }
  .filter-context { display: none; }
  .coverage { grid-template-columns: 1fr; }
  .coverage dl { grid-template-columns: repeat(3, 1fr); }
  .coverage dl div:nth-child(4) { border-left: 0; }
  .challenge-row { grid-template-columns: 1fr auto; }
  .challenge-row dl { grid-column: 1 / -1; grid-row: 2; }
  .detail-metrics { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .detail-metrics div:nth-child(4) { border-left: 0; }
  .match-row { grid-template-columns: 110px 1fr; }
  .match-row > .status-badge { grid-column: 2; justify-self: start; }
  .match-row > div { grid-template-columns: 1fr; }
  .consent-dialog { grid-template-columns: 1fr 1fr; }
  .consent-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .consent-actions button:last-child { grid-column: auto; }
  .upload-form { grid-template-columns: 1fr; }
  .account-challenge-list .challenge-row { grid-template-columns: 1fr; }
  .nav-button { padding-inline: 12px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1480px); }
  .site-header { position: static; }
  .header-filter-inner { min-height: auto; padding-block: 14px; }
  .primary-nav { width: min(100% - 28px, 1480px); min-height: 46px; overflow-x: auto; }
  .primary-nav a { min-height: 46px; padding: 0 12px; }
  .page-stack { padding-block: 24px 50px; }
  .page-heading, .detail-heading { align-items: start; flex-direction: column; gap: 16px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar button { grid-column: 1 / -1; }
  .coverage dl { grid-template-columns: repeat(2, 1fr); }
  .coverage dl div:nth-child(3), .coverage dl div:nth-child(5) { border-left: 0; }
  .coverage dl div:nth-child(4) { border-left: 1px solid var(--border); }
  .panel-heading { align-items: start; flex-direction: column; gap: 10px; }
  .panel-heading p { text-align: left; }
  .panel-heading form { width: 100%; }
  .panel-heading form label { flex: 1; }
  .matrix-desktop { display: none; }
  .matrix-mobile { display: grid; }
  .matrix-mobile details { border-bottom: 1px solid var(--border); }
  .matrix-mobile details:last-child { border-bottom: 0; }
  .matrix-mobile summary { display: flex; justify-content: space-between; gap: 20px; padding: 15px; font-weight: 700; cursor: pointer; }
  .matrix-mobile summary span { color: var(--muted); font-size: 0.66rem; font-weight: 400; }
  .matrix-mobile dl { margin: 0; border-top: 1px solid var(--border); }
  .matrix-mobile dl div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 10px 15px; }
  .matrix-mobile dl div:last-child { border-bottom: 0; }
  .matrix-mobile dd { border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; font-size: 0.75rem; }
  .challenge-row { grid-template-columns: 1fr; gap: 14px; }
  .challenge-row dl { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .challenge-row dl div:nth-child(odd) { border-left: 0; }
  .row-action { justify-self: start; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics div:nth-child(odd) { border-left: 0; }
  .detail-metrics div:nth-child(4) { border-left: 1px solid var(--border); }
  .tabs { overflow-x: auto; }
  .tabs a { min-width: max-content; }
  .deck-card summary { align-items: start; flex-direction: column; }
  .deck-card summary > span:first-child { grid-template-columns: 60px 1fr; width: 100%; }
  .deck-card summary > span:first-child > span { grid-column: 2; }
  .deck-columns { grid-template-columns: 1fr; }
  .deck-columns ul { columns: 1; }
  .match-row { grid-template-columns: 1fr; }
  .match-row > .status-badge { grid-column: auto; }
  .match-row p { grid-template-columns: 1fr; gap: 2px; }
  .result { justify-self: start; margin-top: 4px; }
  .site-footer .shell { align-items: start; flex-direction: column; justify-content: center; padding-block: 16px; }
  .footer-actions { flex-wrap: wrap; }
  .consent-dialog { grid-template-columns: 1fr; }
  .consent-actions { grid-column: auto; grid-template-columns: 1fr; }
  .consent-actions button:last-child { grid-column: auto; }
  .privacy-copy { grid-template-columns: 1fr; }
  .privacy-copy > div, .privacy-copy > div:nth-child(even), .privacy-copy > div:nth-last-child(-n + 2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .privacy-copy > div:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar label, .filter-bar button { grid-column: auto; }
  .coverage dl, .detail-metrics { grid-template-columns: 1fr; }
  .coverage dl div, .coverage dl div:nth-child(n), .detail-metrics div, .detail-metrics div:nth-child(n) { border-left: 0; border-top: 1px solid var(--border); padding-block: 8px; }
  .challenge-row dl { grid-template-columns: 1fr; }
  .challenge-row dl div { border-left: 0; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
