@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --background: #f7f8fa;
  --foreground: #101114;
  --card: #ffffff;
  --card-foreground: #101114;
  --muted: #eef1f4;
  --muted-foreground: #626a73;
  --border: #dfe3e8;
  --input: #cfd6de;
  --ring: #155dfc;
  --primary: #0f766e;
  --primary-foreground: #ffffff;
  --accent: #f5f7fa;
  --destructive: #c73a35;
  --warning: #b7791f;
  --blue: #155dfc;
  --green: #0f766e;
  --red: #c73a35;
  --gold: #b7791f;
  --ink: var(--foreground);
  --paper: var(--background);
  --panel: var(--card);
  --line: var(--border);
  --charcoal: #1f2328;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(16, 17, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 250, 0.98) 320px),
    var(--background);
  font-family: var(--font-sans);
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

a {
  color: var(--blue);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, rgba(16, 17, 20, 0.025) 0 1px, transparent 1px 15px),
    var(--card);
}

.site-nav,
.hero,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  min-width: 0;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #22262c;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 46% 54%, transparent 54%),
    #101114;
  color: #ffffff;
  box-shadow: inset 0 -12px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
}

.brand-mark::after {
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  background: linear-gradient(180deg, var(--blue), var(--green), var(--red));
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 820;
  line-height: 1;
}

.brand-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.eyebrow,
.field span,
.rule-strip strong,
.kit-card__head small,
.maker-badge,
.stage-tag,
.team small,
.pick-label,
.confidence,
.source-link,
.buy-link,
.source-ribbon,
.buy-ribbon,
.clash-check__top,
.pill,
.stat span,
.match-no,
.sources h2 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 720;
}

.brand-name {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.1;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 560;
  text-decoration: none;
}

.header-actions a:hover,
.brand-chip:hover,
.source-link:hover,
.buy-link:hover {
  border-color: rgba(21, 93, 252, 0.35);
  color: var(--blue);
}

.hero {
  padding: 26px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--border);
}

h1 {
  max-width: 12ch;
  margin: 6px 0 0;
  color: var(--foreground);
  font-size: 4.25rem;
  font-weight: 640;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div,
.rule-strip,
.stat,
.kit-card,
.match-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(16, 17, 20, 0.03);
}

.hero-metrics div {
  min-width: 0;
  padding: 13px 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 680;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 720;
  text-transform: uppercase;
}

main {
  padding: 22px 0 42px;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.rule-strip > div {
  min-width: 0;
  padding: 14px 15px;
}

.rule-strip > div + div {
  border-left: 1px solid var(--border);
}

.rule-strip strong,
.rule-strip span {
  display: block;
}

.rule-strip strong {
  font-size: 0.72rem;
  font-weight: 760;
}

.rule-strip span {
  margin-top: 5px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.toolbar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  align-items: end;
}

.field:first-child {
  grid-column: span 2;
}

.field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 740;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 520;
  padding: 0 11px;
}

input::placeholder {
  color: #8a929b;
}

input:focus,
select:focus {
  border-color: var(--ring);
  outline: 3px solid rgba(21, 93, 252, 0.16);
}

.filter-actions {
  min-width: 0;
  display: grid;
  align-items: end;
}

.reset-button {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101114;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 760;
  text-transform: uppercase;
  cursor: pointer;
}

.reset-button:hover {
  background: #2a2f36;
}

.active-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.active-filters span,
.active-filters b {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 740;
  text-transform: uppercase;
}

.active-filters span {
  padding: 0 9px;
  background: #101114;
  color: #ffffff;
}

.active-filters b {
  padding: 0 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.featured-teams,
.supplier-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-teams {
  margin: 12px 0 0;
}

.supplier-summary {
  margin-bottom: 18px;
}

.brand-chip {
  min-width: 0;
  min-height: 36px;
  padding: 6px 9px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
}

.brand-chip strong {
  font-size: 0.82rem;
  font-weight: 620;
}

.brand-chip span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 760;
}

.brand-chip.selected {
  border-color: rgba(21, 93, 252, 0.42);
  background: rgba(21, 93, 252, 0.08);
  color: #0b49d5;
}

.team-chip.selected {
  border-color: rgba(199, 58, 53, 0.36);
  background: rgba(199, 58, 53, 0.08);
  color: #9e2c28;
}

.stats {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  min-width: 0;
  padding: 14px;
}

.stat b {
  display: block;
  font-size: 1.42rem;
  font-weight: 680;
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 720;
}

.match-section {
  margin: 18px 0 24px;
}

.kit-library {
  margin: 24px 0 20px;
  scroll-margin-top: 16px;
}

.section-head {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.section-head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 620;
  letter-spacing: 0;
}

.section-head > p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 540;
  text-align: right;
}

.section-head .eyebrow {
  margin-bottom: 4px;
  text-align: left;
}

.section-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 118, 110, 0.08);
  color: #0b625b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
  text-decoration: none;
}

.section-action:hover {
  border-color: rgba(21, 93, 252, 0.36);
  color: var(--blue);
  background: rgba(21, 93, 252, 0.08);
}

.kit-grid,
.matches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kit-card,
.match-card {
  min-width: 0;
  overflow: hidden;
}

.kit-card__head,
.card-head {
  border-bottom: 1px solid var(--border);
  background: var(--accent);
}

.kit-card__head {
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.kit-card__head small {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 760;
}

.kit-card__head h3 {
  margin: 3px 0 0;
  font-size: 1rem;
  font-weight: 640;
  line-height: 1.15;
}

.maker-badge {
  max-width: 124px;
  padding: 4px 7px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0b625b;
  font-size: 0.66rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.kit-slots {
  padding: 10px;
  display: grid;
  gap: 9px;
}

.kit-slot {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kit-slot strong,
.kit-slot span,
.kit-slot a {
  display: block;
}

.kit-slot strong {
  font-size: 0.9rem;
  font-weight: 640;
}

.kit-slot span {
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.kit-slot a {
  margin-top: 5px;
}

.match-card[data-risk="watch"] {
  border-color: rgba(183, 121, 31, 0.5);
}

.match-card[data-risk="alternate"] {
  border-color: rgba(199, 58, 53, 0.42);
}

.match-card[data-risk="tbd"] {
  opacity: 0.82;
}

.card-head {
  padding: 11px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.card-head__right {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.match-no {
  font-size: 0.78rem;
  font-weight: 780;
}

.stage-tag {
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 740;
  text-align: right;
}

.sanction-pill {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 780;
  text-transform: uppercase;
}

.sanction-pill.strong,
.sanction-pill.brand {
  background: rgba(15, 118, 110, 0.1);
  color: #0b625b;
}

.sanction-pill.warn {
  background: rgba(183, 121, 31, 0.12);
  color: #7a4f0f;
}

.sanction-pill.alt,
.sanction-pill.low {
  background: rgba(199, 58, 53, 0.1);
  color: #9e2c28;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
}

.team {
  min-width: 0;
}

.team small {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 740;
}

.team strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 640;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.versus {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 760;
}

.kit-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border-top: 1px solid var(--border);
}

.game-kits {
  border-top: 1px solid var(--border);
}

.game-kits .kit-panel {
  border-top: 0;
}

.game-kits .kit-panel + .kit-panel {
  border-top: 1px solid var(--border);
  background: #fbfcfd;
}

.sanction-check {
  margin: 0;
  padding: 10px 13px 12px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.sanction-check__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.sanction-check__top span {
  color: var(--muted-foreground);
  text-align: right;
}

.sanction-bar {
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: #dfe5eb;
  overflow: hidden;
}

.sanction-bar span {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.sanction-check.warn .sanction-bar span {
  background: var(--gold);
}

.sanction-check.alt .sanction-bar span,
.sanction-check.low .sanction-bar span {
  background: var(--red);
}

.sanction-check p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.kit-buy-link {
  position: relative;
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.kit-visual {
  position: relative;
  min-height: 114px;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #eef2f6);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kit-buy-link:hover .kit-visual {
  border-color: rgba(21, 93, 252, 0.38);
  box-shadow: 0 10px 22px rgba(21, 93, 252, 0.12);
  transform: translateY(-1px);
}

.kit-buy-link:focus-visible {
  border-radius: var(--radius);
  outline: 3px solid rgba(21, 93, 252, 0.24);
  outline-offset: 3px;
}

.kit-visual.sourced {
  background: #edf1f5;
}

.kit-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  display: block;
  padding: 4px;
}

.source-ribbon,
.buy-ribbon {
  position: absolute;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 780;
}

.source-ribbon {
  right: 6px;
  bottom: 6px;
  background: rgba(16, 17, 20, 0.78);
  color: #ffffff;
}

.buy-ribbon {
  left: 6px;
  bottom: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.kit-visual.compact {
  min-height: 76px;
}

.kit-visual.compact .shirt {
  width: 48px;
  height: 56px;
}

.kit-visual.compact .shirt::after {
  inset: auto 18px 6px;
  width: 12px;
  height: 12px;
}

.kit-visual.compact .source-ribbon,
.kit-visual.compact + .buy-ribbon,
.kit-buy-link:has(.kit-visual.compact) .buy-ribbon {
  display: none;
}

.shirt {
  width: 76px;
  height: 86px;
  position: relative;
  clip-path: polygon(28% 0, 72% 0, 100% 18%, 88% 38%, 78% 30%, 78% 100%, 22% 100%, 22% 30%, 12% 38%, 0 18%);
  background: var(--base);
  border: 1px solid rgba(16, 17, 20, 0.18);
  box-shadow: 0 10px 20px rgba(16, 17, 20, 0.13);
}

.supplier-mark,
.crest-mark,
.kit-number {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 820;
  line-height: 1;
  pointer-events: none;
}

.supplier-mark {
  top: 19px;
  left: 20px;
  min-width: 20px;
  max-width: 28px;
  height: 10px;
  color: var(--accent2);
  font-size: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.crest-mark {
  top: 17px;
  right: 20px;
  width: 17px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px 7px 8px 8px;
  background: var(--accent2);
  color: var(--base);
  font-size: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.kit-number {
  top: 39px;
  left: 50%;
  translate: -50% 0;
  color: var(--accent2);
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.kit-visual.compact .supplier-mark {
  top: 13px;
  left: 12px;
  font-size: 4px;
  max-width: 20px;
}

.kit-visual.compact .crest-mark {
  top: 11px;
  right: 12px;
  width: 12px;
  height: 14px;
  font-size: 4px;
  border-radius: 5px 5px 7px 7px;
}

.kit-visual.compact .kit-number {
  top: 25px;
  font-size: 13px;
}

.shirt::before,
.shirt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shirt::before {
  background: linear-gradient(90deg, transparent 0 16%, var(--accent) 16% 22%, transparent 22% 78%, var(--accent) 78% 84%, transparent 84%);
  opacity: 0.8;
}

.shirt::after {
  inset: auto 29px 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0.95;
}

.shirt.pattern-stripes {
  background: repeating-linear-gradient(90deg, var(--base) 0 12px, var(--accent) 12px 24px);
}

.shirt.pattern-hoops {
  background: repeating-linear-gradient(180deg, var(--base) 0 12px, var(--accent) 12px 22px);
}

.shirt.pattern-checker {
  background:
    linear-gradient(45deg, var(--base) 25%, transparent 25% 75%, var(--base) 75%),
    linear-gradient(45deg, var(--base) 25%, transparent 25% 75%, var(--base) 75%),
    var(--accent);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.shirt.pattern-sash {
  background:
    linear-gradient(135deg, transparent 0 39%, var(--accent) 39% 52%, transparent 52%),
    var(--base);
}

.shirt.pattern-gradient {
  background: linear-gradient(135deg, var(--base), var(--accent));
}

.kit-copy {
  min-width: 0;
}

.pick-label {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 760;
}

.pick-name {
  margin: 3px 0 0;
  font-size: 1.12rem;
  font-weight: 680;
  line-height: 1.12;
}

.confidence {
  min-height: 24px;
  margin-top: 8px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0b625b;
  font-size: 0.68rem;
  font-weight: 760;
}

.confidence.medium {
  background: rgba(183, 121, 31, 0.13);
  color: #7a4f0f;
}

.confidence.low {
  background: rgba(199, 58, 53, 0.1);
  color: #9e2c28;
}

.notes {
  margin: 9px 0 0;
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

.source-link,
.buy-link {
  min-height: 25px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 760;
  text-decoration: none;
}

.buy-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-link {
  padding: 0;
  color: var(--blue);
}

.buy-link {
  margin-top: 0;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.09);
  color: #0b625b;
}

.buy-link.match-shirt {
  border-color: rgba(21, 93, 252, 0.22);
  background: rgba(21, 93, 252, 0.08);
  color: #0b49d5;
}

.buy-link.custom {
  border-color: rgba(183, 121, 31, 0.28);
  background: rgba(183, 121, 31, 0.1);
  color: #7a4f0f;
}

.kit-copy .buy-link {
  margin-left: 0;
}

.clash-check {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.match-card > .clash-check {
  margin: 0 13px 13px;
}

.clash-check__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 760;
}

.clash-check__top span {
  color: var(--muted-foreground);
}

.clash-bar {
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: #dfe5eb;
  overflow: hidden;
}

.clash-bar span {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.clash-check[data-level="borderline"] .clash-bar span {
  background: var(--gold);
}

.clash-check[data-level="clash"] .clash-bar span {
  background: var(--red);
}

.clash-check p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 13px 13px;
}

.pill {
  max-width: 100%;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.66rem;
  font-weight: 720;
}

.pill.strong,
.pill.source {
  border-color: rgba(21, 93, 252, 0.24);
  color: #0b49d5;
  background: rgba(21, 93, 252, 0.08);
}

.pill.warn {
  border-color: rgba(183, 121, 31, 0.38);
  color: #7a4f0f;
  background: rgba(183, 121, 31, 0.1);
}

.pill.alt {
  border-color: rgba(199, 58, 53, 0.28);
  color: #9e2c28;
  background: rgba(199, 58, 53, 0.08);
}

.pill.brand {
  border-color: rgba(15, 118, 110, 0.22);
  color: #0b625b;
  background: rgba(15, 118, 110, 0.08);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #b8c1cc;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted-foreground);
  background: rgba(255, 255, 255, 0.72);
}

.sources {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.sources h2 {
  margin: 0 4px 0 0;
  font-size: 0.78rem;
  font-weight: 760;
}

.sources a {
  font-size: 0.88rem;
  font-weight: 540;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 {
    font-size: 3.4rem;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats,
  .kit-grid,
  .matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-nav,
  .hero,
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-nav {
    min-height: auto;
    padding: 14px 0;
    display: grid;
  }

  .header-actions {
    justify-content: start;
  }

  .hero {
    padding: 20px 0 22px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-metrics,
  .rule-strip,
  .toolbar,
  .stats,
  .kit-grid,
  .matches {
    grid-template-columns: 1fr;
  }

  .field:first-child {
    grid-column: auto;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 4px;
    text-align: left;
  }

  .rule-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .kit-panel {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
