:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-raised: #15181b;
  --panel: #181b1e;
  --panel-strong: #1d2125;
  --line: #363c42;
  --line-soft: #292e33;
  --text: #e8e8e4;
  --muted: #9ba2a7;
  --muted-strong: #c2c6c7;
  --orange: #b69a6b;
  --orange-soft: #302a20;
  --lime: #a9b89c;
  --cyan: #a6b6c0;
  --danger: #c58e88;
  --focus: #d9c8a8;
  --shadow: 0 10px 30px rgb(0 0 0 / 16%);
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --max-width: 1480px;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.meta-background {
  position: absolute;
  top: 72px;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: clamp(650px, 82vh, 850px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
}

body.filters-open,
body.detail-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgb(16 18 20 / 94%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
}

.mobile-nav-link {
  display: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #5a5142;
  border-radius: 8px;
  background: #1b1d1f;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions > a:not(.button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-actions > a:not(.button):hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover {
  transform: none;
}

.button-accent {
  background: var(--orange);
  color: #1d1008;
}

.button-accent:hover {
  background: #c2a878;
}

.button-quiet {
  border-color: var(--line);
  background: #171a1d;
  color: var(--text);
}

.button-quiet:hover {
  border-color: #596067;
  background: #1d2125;
}

main > section,
footer {
  width: min(var(--max-width), calc(100vw - 40px));
  margin-inline: auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  min-height: 480px;
  padding: clamp(56px, 8vw, 96px) 0 54px;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .035em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.8vw, 78px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.01;
}

h1 em {
  color: var(--muted-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
}

.hero-deck {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.hero-actions .button span {
  margin-left: 9px;
}

.scope-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #181b1e;
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-approved {
  border-color: #56614f;
  background: #1d241d;
  color: var(--lime);
}

.release-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.release-card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: none;
}

.release-card h2 {
  margin: 22px 0 12px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.release-card > p {
  color: var(--muted);
}

.release-facts {
  margin: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.release-facts div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.release-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.release-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 5px;
}

.working-warning {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid #665847;
  border-radius: var(--radius);
  background: #211e19;
  padding: 14px 18px;
  color: #d6c7b1;
}

.working-warning span {
  color: #b8aca0;
  font-size: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 96px;
}

.metric-card {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 20px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 6%) 45%, transparent 70%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.explorer {
  scroll-margin-top: 88px;
  margin-bottom: 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-status,
.panel-count {
  color: var(--muted);
  font-size: 13px;
}

.filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-color: var(--line);
  background: #171a1d;
  color: var(--text);
  padding: 0 12px;
  font-weight: 650;
  box-shadow: none;
}

.filter-toggle:hover,
.filter-toggle:focus-visible {
  border-color: var(--orange);
  background: #1d2125;
  color: var(--text);
}

.filter-toggle-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.filter-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #17100c;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
}

.filter-count[hidden] {
  display: none;
}

.filter-drawer-heading,
.filter-done {
  display: none;
}

.filter-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 13px;
}

.filter-grid label:not(.working-toggle) {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-grid label > span:first-child {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.filter-grid label small {
  color: #727b88;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0e1014;
  color: var(--text);
  padding: 0 12px;
}

select:hover,
input[type="number"]:hover {
  border-color: #525a68;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 48px;
}

.input-with-suffix > span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.working-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  align-self: end;
  border: 1px solid #5c5140;
  border-radius: 11px;
  background: #211e19;
  padding: 0 12px;
  cursor: pointer;
}

.working-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.working-toggle span,
.working-toggle strong,
.working-toggle small {
  display: block;
}

.working-toggle strong {
  color: var(--text);
  font-size: 12px;
}

.working-toggle small {
  color: var(--muted);
  font-size: 10px;
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.filter-footer-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.filter-chip {
  min-height: 44px;
  border: 1px solid #434a56;
  border-radius: 999px;
  background: #1b1f26;
  color: var(--muted-strong);
  padding: 0 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.mobile-filter-summary,
.rail-hint {
  display: none;
}

.filter-chip:hover {
  border-color: var(--orange);
  color: var(--text);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 14px;
}

.hero-monogram {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #49505d;
  border-radius: 14px;
  background: #20242b;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.role-tank { border-color: #596a76; background: #1c2429; color: #b1bdc5; }
.role-damage { border-color: #765e58; background: #251e1d; color: #c4aaa4; }
.role-support { border-color: #5e6852; background: #20231d; color: #b4beaa; }

.insight-card > div span,
.insight-card > div strong,
.insight-card > div small {
  display: block;
}

.insight-card > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
}

.insight-card > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.insight-card > div small {
  color: var(--muted);
  font-size: 11px;
}

.insight-value {
  color: var(--orange);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(360px, .62fr);
  gap: 18px;
  align-items: start;
  scroll-margin-top: 76px;
}

.echo-copy-panel {
  margin-top: 18px;
}

.echo-copy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  border-bottom: 1px solid transparent;
  background: #171a1d;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
}

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

.echo-copy-panel[open] .echo-copy-summary {
  border-bottom-color: var(--line-soft);
}

.echo-copy-summary-copy,
.echo-copy-summary-meta {
  display: flex;
  align-items: center;
}

.echo-copy-summary-copy {
  gap: 10px;
}

.echo-copy-summary-copy .panel-kicker {
  margin: 0;
}

.echo-copy-summary-copy strong {
  font-size: 14px;
  font-weight: 650;
}

.echo-copy-summary-meta {
  gap: 10px;
}

.echo-copy-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.echo-copy-panel[open] .echo-copy-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.echo-copy-table {
  min-width: 0;
}

.echo-copy-table th:first-child,
.echo-copy-table td:first-child {
  text-align: left;
}

.panel,
.health-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 4px 18px rgb(0 0 0 / 12%);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #171a1d;
}

.panel-heading.compact {
  min-height: 78px;
}

.panel-kicker {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.panel-heading-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.sort-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8d96a3;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.sort-hint-icon {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  max-height: 780px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  height: 58px;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 12px;
  text-align: right;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 48px;
  background: #1b1f22;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .01em;
}

th:first-child,
td:first-child {
  text-align: left;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: right;
  text-transform: inherit;
}

.sort-button:hover,
.sort-button:focus-visible {
  background: rgb(255 255 255 / 4%);
  color: var(--text);
}

th:first-child .sort-button {
  justify-content: flex-start;
  text-align: left;
}

.sort-copy {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 0;
}

.sort-copy small {
  color: #737d89;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1;
  text-transform: none;
}

th:first-child .sort-copy {
  justify-items: start;
}

.sort-indicator {
  display: grid;
  place-items: center;
  width: 12px;
  height: 18px;
  flex: 0 0 12px;
}

.sort-indicator::before {
  content: "↕";
  color: #717b88;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

th[aria-sort="descending"] .sort-indicator::before {
  content: "↓";
  color: var(--orange);
}

th[aria-sort="ascending"] .sort-indicator::before {
  content: "↑";
  color: var(--orange);
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover,
tbody tr.is-selected {
  background: #20242c;
}

tbody tr.is-selected {
  box-shadow: inset 3px 0 var(--orange);
}

.hero-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.hero-button .hero-monogram {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 10px;
}

.hero-button strong,
.hero-button small {
  display: block;
}

.hero-button strong {
  font-size: 14px;
}

.hero-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}

.metric-number {
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.rate-overall,
.rate-split {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.rate-overall strong {
  font-size: 12px;
}

.rate-overall small,
.rate-line small {
  color: #727c88;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none;
}

.rate-line {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  line-height: 1.05;
  white-space: nowrap;
}

.rate-line + .rate-line {
  border-top: 1px solid rgb(255 255 255 / 5%);
  padding-top: 3px;
}

.rate-line strong {
  min-width: 42px;
  color: #b7bec8;
  font-size: 11px;
}

.rate-line.is-team strong {
  color: var(--text);
}

.mobile-sample {
  display: none;
}

.sample-note {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: #2c2820;
  color: #e7c98b;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 650;
}

.empty-row td {
  height: 180px;
  color: var(--muted);
  text-align: center;
}

.detail-panel {
  position: sticky;
  top: 90px;
  scroll-margin-top: 90px;
}

.detail-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-close,
.detail-scrim {
  display: none;
}

.table-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  background: #171a1d;
  padding: 12px 15px;
}

.detail-content {
  padding: 20px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-hero .hero-monogram {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 15px;
}

.detail-hero h4 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.detail-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-metric {
  min-height: 88px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #111419;
  padding: 13px;
}

.detail-metric span,
.detail-metric strong,
.detail-metric small {
  display: block;
}

.detail-metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .01em;
}

.detail-metric strong {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.detail-metric small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.method-note {
  margin: 0 0 16px;
  border-left: 2px solid var(--orange);
  background: #191711;
  color: #c7bcae;
  padding: 11px 12px;
  font-size: 12px;
}

.breakdown-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 8px;
}

.breakdown-heading h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.breakdown-list {
  display: grid;
  gap: 7px;
}

.breakdown-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #14171c;
  padding: 11px 12px;
}

.breakdown-main,
.breakdown-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.breakdown-main {
  font-size: 12px;
  font-weight: 800;
}

.breakdown-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.outcome-win { color: var(--lime); }
.outcome-loss { color: #d7a89c; }
.outcome-na { color: var(--muted); }

.show-more {
  width: 100%;
  margin-top: 10px;
}

.error-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #743f3a;
  border-radius: var(--radius);
  background: #281615;
  padding: 18px;
}

.error-panel p {
  margin: 3px 0 0;
  color: #d9aaa5;
}

.methodology {
  scroll-margin-top: 88px;
  margin-bottom: 100px;
  padding-top: 22px;
}

.methodology-heading {
  align-items: end;
}

.methodology-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 32px 0 18px;
}

.definition-grid article {
  min-height: 250px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #111419;
  padding: 22px;
}

.definition-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-weight: 650;
}

.definition-grid h3 {
  margin: 58px 0 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.definition-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.health-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  padding: 10px 20px 20px;
}

.health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.health-row strong {
  color: var(--text);
}

.health-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #537233;
  border-radius: 999px;
  background: #1c2816;
  color: var(--lime);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
}

.health-state.warning {
  border-color: #77512f;
  background: #2c1e13;
  color: #ffd0a7;
}

.lineage-card > div:last-child {
  padding: 20px;
}

.lineage-card p {
  color: var(--muted);
}

.lineage-callout {
  margin: 14px 0 0;
  border: 1px solid #6a4b32;
  border-radius: 12px;
  background: #201812;
  padding: 13px;
  color: #e0c2a8;
  font-size: 12px;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.method-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111419;
  padding: 6px 9px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 750;
}

.release-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: 26px;
}

.release-note h3 {
  margin-bottom: 8px;
}

.release-note p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.download-group {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 40px));
  border: 1px solid #59626f;
  border-radius: 12px;
  background: #20242b;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: 1fr minmax(300px, .55fr);
    gap: 40px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .results-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .definition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .definition-grid article {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .header-actions > a:not(.button),
  .header-actions .button-quiet {
    display: none;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 82px;
  }

  .release-card {
    max-width: 620px;
  }

  .results-layout,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .methodology-heading {
    display: block;
  }

  .methodology-heading > p {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .meta-background {
    top: 62px;
    height: 760px;
    opacity: .7;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  }

  .site-header {
    min-height: 62px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .header-actions .button-accent {
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }

  main > section,
  footer {
    width: calc(100% - 24px);
  }

  .hero-shell {
    gap: 22px;
    padding: 44px 0 32px;
  }

  .hero-shell,
  .hero-copy,
  .release-card {
    min-width: 0;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
    margin-bottom: 18px;
  }

  .hero-deck {
    margin-bottom: 18px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  h1 em {
    display: block;
    max-width: 100%;
    font-size: .72em;
    letter-spacing: -.03em;
    white-space: nowrap;
  }

  .release-card {
    width: 100%;
    border-radius: 20px;
    padding: 18px;
  }

  .release-card h2 {
    margin: 16px 0 10px;
    font-size: 24px;
  }

  .release-card > p {
    display: none;
  }

  .release-facts {
    margin: 14px 0 4px;
  }

  .release-facts div {
    padding: 9px 0;
  }

  .release-card > p,
  .release-facts dd {
    overflow-wrap: anywhere;
  }

  .release-facts div {
    grid-template-columns: minmax(72px, 94px) minmax(0, 1fr);
  }

  .scope-badges,
  .badge {
    max-width: 100%;
  }

  .working-warning {
    display: block;
  }

  .working-warning span {
    display: block;
    margin-top: 4px;
  }

  .summary-grid {
    display: flex;
    width: 100%;
    gap: 10px;
    margin: 0 0 58px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 12px 8px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
  }

  .metric-card {
    flex: 0 0 min(72vw, 260px);
    min-height: 116px;
    padding: 16px;
    scroll-snap-align: start;
  }

  .metric-card strong {
    margin-top: 14px;
    font-size: 29px;
  }

  .section-heading {
    align-items: start;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .results-status {
    display: block;
    max-width: 140px;
    font-size: 11px;
    line-height: 1.3;
    text-align: right;
  }

  .section-heading-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 7px;
  }

  .filter-toggle {
    display: inline-flex;
    min-width: 108px;
  }

  .filter-panel {
    display: none;
  }

  .filter-panel.is-open {
    position: fixed;
    inset: 62px 0 0;
    z-index: 55;
    display: block;
    width: 100%;
    max-height: calc(100dvh - 62px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--bg-raised);
    box-shadow: 0 -12px 36px rgb(0 0 0 / 28%);
    padding: 16px 12px max(16px, env(safe-area-inset-bottom));
  }

  .filter-drawer-heading {
    position: sticky;
    top: -16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -16px -12px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: rgb(18 20 25 / 96%);
    padding: 12px;
    backdrop-filter: blur(14px);
  }

  .filter-drawer-heading .panel-kicker {
    margin-bottom: 2px;
  }

  .filter-drawer-heading h3 {
    margin: 0;
    font-size: 24px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-footer {
    position: sticky;
    bottom: -16px;
    z-index: 3;
    align-items: stretch;
    flex-direction: column;
    margin: 16px -4px -16px;
    border: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    background: rgb(20 23 28 / 97%);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 18%);
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .filter-footer-actions {
    width: 100%;
  }

  .filter-footer-actions .button {
    flex: 1 1 0;
  }

  .filter-done {
    display: inline-flex;
  }

  .mobile-filter-summary:not([hidden]) {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 44px;
    margin: -12px 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #12151a;
    padding: 8px 12px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-filter-summary strong {
    color: var(--orange);
  }

  .rail-hint {
    display: flex;
    justify-content: space-between;
    margin: 0 2px 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
  }

  .insight-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .insight-card {
    min-width: min(82vw, 330px);
    scroll-snap-align: start;
  }

  .panel,
  .health-card {
    border-radius: 18px;
  }

  .panel-heading {
    min-height: 72px;
    padding: 14px 15px;
  }

  .panel-heading-meta {
    gap: 4px;
    max-width: 142px;
  }

  .sort-hint {
    font-size: 9px;
    line-height: 1.2;
    text-align: right;
  }

  .table-wrap {
    max-height: none;
  }

  .table-actions:not([hidden]) {
    display: flex;
  }

  .table-actions .results-status {
    max-width: none;
    text-align: left;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    height: 64px;
    padding: 7px 6px;
    font-size: 11px;
  }

  th {
    height: 56px;
  }

  th:first-child,
  td:first-child {
    width: 36%;
    padding-left: 10px;
  }

  .col-time,
  .col-sample,
  .col-maps {
    display: none;
  }

  .hero-button {
    gap: 6px;
  }

  .hero-button .hero-monogram {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 9px;
    font-size: 8px;
  }

  .hero-button strong {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .hero-button small,
  .sample-note {
    display: none;
  }

  .sort-button {
    min-height: 50px;
    gap: 2px;
    padding-inline: 1px;
  }

  .sort-copy {
    gap: 3px;
    line-height: 1.08;
  }

  .sort-copy small {
    font-size: 7px;
  }

  .sort-indicator {
    width: 9px;
    flex-basis: 9px;
  }

  .sort-indicator::before {
    font-size: 10px;
  }

  .rate-overall strong {
    font-size: 11px;
  }

  .rate-overall small,
  .rate-line small {
    font-size: 7px;
  }

  .rate-line {
    gap: 3px;
  }

  .rate-line strong {
    min-width: 35px;
    font-size: 10px;
  }

  .mobile-sample {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
  }

  .mobile-sample.is-low {
    color: #e7c98b;
  }

  .detail-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgb(0 0 0 / 66%);
    padding: 0;
  }

  .detail-panel {
    display: none;
  }

  .detail-panel.is-mobile-open {
    position: fixed;
    inset: auto 0 0;
    z-index: 75;
    display: flex;
    width: 100%;
    height: min(88dvh, 760px);
    max-height: calc(100dvh - 44px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px rgb(0 0 0 / 38%);
  }

  .detail-panel .panel-heading {
    flex: 0 0 auto;
  }

  .detail-panel .detail-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .detail-close {
    display: inline-flex;
  }

  #detail-title:focus {
    outline: none;
  }

  .detail-content {
    padding: 15px;
  }

  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid article {
    min-height: 0;
  }

  .definition-grid h3 {
    margin-top: 38px;
  }

  .health-list {
    grid-template-columns: 1fr;
  }

  .release-note {
    display: block;
    padding: 20px;
  }

  .download-group {
    margin-top: 20px;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 480px) {
  .header-actions {
    display: none;
  }

  .mobile-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
  }

  .download-group {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(40px, 13vw, 48px);
  }

  h1 em {
    max-width: 100%;
    font-size: .68em;
    white-space: normal;
  }

  .badge {
    height: auto;
    min-height: 34px;
    padding-block: 7px;
    line-height: 1.2;
    white-space: normal;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .hero-button strong {
    max-width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
