:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-soft: #0a1016;
  --panel: #0e151d;
  --panel-2: #121b24;
  --panel-3: #18232d;
  --line: #25313d;
  --line-soft: #1b2630;
  --text: #f3f7fa;
  --muted: #91a0ae;
  --subtle: #5f7080;
  --green: #4ee88a;
  --green-deep: #12a85c;
  --blue: #63c7ff;
  --amber: #ffc861;
  --violet: #a995ff;
  --red: #ff707b;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 55% -18%, rgba(37, 114, 86, .14), transparent 34rem),
    linear-gradient(180deg, #080d13, var(--bg) 34rem);
  color: var(--text);
  font: 14px/1.5 "Manrope", system-ui, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(690px, 1fr) 312px;
}

.sidebar,
.analysis-dock {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(7, 12, 17, .94);
  backdrop-filter: blur(20px);
}

.sidebar {
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 23px 13px 16px;
  border-right: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 53px;
  padding: 4px 8px 23px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.12em;
}
.brand-mark span { color: var(--text); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { letter-spacing: -.035em; }
.brand-copy small,
.sidebar-footer small,
.sidebar-card small { color: var(--muted); font-size: 9px; }

.primary-nav { display: grid; gap: 5px; }
.nav-link {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: .18s ease;
}
.nav-link:hover { color: var(--text); background: var(--panel); }
.nav-link.active {
  border-color: rgba(78, 232, 138, .18);
  background: rgba(78, 232, 138, .08);
  color: var(--green);
}
.nav-link span { font-size: 18px; }
.nav-link b { font-size: 11px; }
.nav-link em {
  color: var(--subtle);
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}
.sidebar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(78, 232, 138, .1);
}
.pulse.frozen { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 200, 97, .1); }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 15px 8px 0;
  border-top: 1px solid var(--line-soft);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.workspace { min-width: 0; padding: 30px clamp(20px, 3.3vw, 48px) 58px; }
.topbar { display: flex; align-items: center; gap: 22px; min-height: 82px; }
.mobile-brand { display: none; }
.topbar-copy { flex: 1; }
.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font: 500 9px/1.4 "DM Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
h1 i { color: var(--muted); font-style: normal; font-weight: 500; }
.source-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.source-state div { display: flex; flex-direction: column; }
.source-state strong { font-size: 10px; }
.source-state small { color: var(--muted); font-size: 8px; }

.integrity-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 25px 0 18px;
  padding: 18px;
  border: 1px solid rgba(78, 232, 138, .23);
  border-radius: 11px;
  background: linear-gradient(100deg, rgba(78, 232, 138, .065), transparent 54%), var(--panel);
}
.integrity-banner::after {
  content: "";
  position: absolute;
  inset: auto 6% 0 35%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .35;
}
.integrity-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(78, 232, 138, .11);
  color: var(--green);
}
.integrity-banner h2 { margin-bottom: 4px; font-size: 14px; }
.integrity-banner p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.integrity-banner a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
}
.integrity-banner a span { margin-left: 5px; color: var(--green); }

.control-deck {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 21, 29, .74);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.search span { color: var(--muted); font-size: 17px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--subtle); }
.filter-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.segmented { display: flex; gap: 6px; min-width: 0; overflow: auto; scrollbar-width: none; }
.chip, .filter-button, .expand-all {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}
.chip:hover, .filter-button:hover, .expand-all:hover { color: var(--text); border-color: var(--line); }
.chip.active { border-color: rgba(78, 232, 138, .38); background: rgba(78, 232, 138, .08); color: var(--green); }
.filter-button { margin-left: auto; border-radius: 7px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0 28px; }
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
}
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: currentColor; }
.metric-card.cyan { color: var(--blue); }
.metric-card.emerald { color: var(--green); }
.metric-card.amber { color: var(--amber); }
.metric-card.violet { color: var(--violet); }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font: 500 8px "DM Mono", monospace; text-transform: uppercase; }
.metric-card strong { display: block; margin: 7px 0 2px; color: var(--text); font-size: 23px; letter-spacing: -.04em; }
.metric-card small { font-size: 8px; line-height: 1.35; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.section-heading h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.035em; }
.section-actions { display: flex; align-items: center; gap: 13px; }
.legend { display: flex; gap: 12px; color: var(--muted); font-size: 8px; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; }
.dot.positive { background: var(--green); }
.dot.observed { background: var(--blue); }
.dot.negative { background: var(--red); }
.expand-all { border-radius: 6px; color: var(--green); }

.fixture-list { display: grid; gap: 10px; }
.fixture-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(130deg, rgba(18, 27, 36, .98), rgba(10, 16, 22, .98));
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fixture-card:hover { border-color: #344452; }
.fixture-card.is-open { border-color: rgba(78, 232, 138, .34); box-shadow: var(--shadow); }
.fixture-accent { position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(var(--green), rgba(78, 232, 138, 0)); }
.fixture-header { border-bottom: 0 solid var(--line); }
.fixture-card.is-open .fixture-header { border-bottom-width: 1px; }
.fixture-toggle {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) minmax(150px, auto) 112px 28px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 74px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.match-number { color: var(--subtle); font: 500 10px "DM Mono", monospace; }
.teams-stack { display: grid; gap: 5px; min-width: 0; }
.team-row { display: grid; grid-template-columns: 24px minmax(0, auto) auto 1fr; align-items: center; gap: 7px; min-width: 0; }
.team-row i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-3);
  color: var(--green);
  font: 600 7px "DM Mono", monospace;
  font-style: normal;
}
.team-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-row small { color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.fixture-context { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; text-align: right; }
.fixture-context small { color: var(--muted); font-size: 8px; }
.fixture-context strong { margin: 2px 0; font: 500 9px "DM Mono", monospace; }
.fixture-context em { color: var(--green); font-size: 8px; font-style: normal; }
.decision-pill { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 8px; border: 1px solid rgba(255, 200, 97, .23); border-radius: 6px; background: rgba(255, 200, 97, .06); }
.decision-pill small { color: var(--muted); font-size: 7px; }
.decision-pill strong { color: var(--amber); font-size: 9px; }
.toggle-icon { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); font-size: 16px; }

.fixture-body { background: rgba(7, 11, 16, .24); }
.match-brief {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(240px, 1.5fr) 95px 95px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(78, 232, 138, .055), transparent 64%);
}
.match-brief > div:first-child > strong { display: block; font-size: 17px; letter-spacing: -.035em; }
.match-brief p { margin: 0; color: var(--muted); font-size: 9px; }
.brief-stat { padding-left: 12px; border-left: 1px solid var(--line); }
.brief-stat small, .brief-stat strong { display: block; }
.brief-stat small { color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.brief-stat strong { margin-top: 3px; font-size: 9px; }

.fixture-tabs { display: grid; grid-template-columns: repeat(5, 1fr); min-height: 39px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.fixture-tabs span { display: flex; align-items: center; justify-content: center; position: relative; color: var(--muted); font-size: 9px; }
.fixture-tabs span.active { color: var(--green); }
.fixture-tabs span.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--green); }
.fixture-tabs b { display: grid; place-items: center; min-width: 17px; height: 17px; margin-left: 5px; border-radius: 999px; background: rgba(78, 232, 138, .1); font-size: 7px; }
.market-explainer { display: flex; align-items: center; gap: 14px; min-height: 34px; padding: 0 17px; border-bottom: 1px solid var(--line-soft); color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.market-explainer > span { font: 500 7px "DM Mono", monospace; letter-spacing: .12em; }
.market-explainer b { color: var(--muted); font-weight: 500; }
.swatch { display: inline-block; width: 11px; height: 5px; margin-right: 4px; border-radius: 2px; }
.swatch.model { background: var(--green); }
.swatch.odds { background: var(--blue); }
.swatch.negative { background: rgba(255, 112, 123, .55); }

.markets-grid { display: grid; gap: 8px; padding: 9px; }
.market-block { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: rgba(14, 21, 29, .74); }
.market-block-header { display: grid; grid-template-columns: 58px 1fr auto 28px; align-items: center; gap: 9px; min-height: 39px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
.market-code { display: grid; place-items: center; height: 20px; border-radius: 4px; background: #091016; color: var(--blue); font: 500 7px "DM Mono", monospace; letter-spacing: .09em; }
.market-block-header > div { display: flex; align-items: baseline; gap: 7px; }
.market-block-header strong { font-size: 9px; }
.market-block-header small { color: var(--subtle); font-size: 7px; }
.market-book { color: var(--muted); font-size: 8px; }
.market-index { color: #334351; font: 500 9px "DM Mono", monospace; }
.selection-stack { display: grid; gap: 1px; padding: 4px; }
.selection-line {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(150px, 1.8fr) repeat(3, 54px) 26px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  width: 100%;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .16s ease;
}
.selection-line:hover, .selection-line.selected { border-color: rgba(78, 232, 138, .26); background: rgba(78, 232, 138, .045); }
.selection-line.selected { box-shadow: inset 2px 0 var(--green); }
.selection-identity { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 8px; min-width: 0; }
.selection-identity > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; background: var(--panel-3); font-size: 9px; }
.selection-identity > span { display: flex; flex-direction: column; min-width: 0; }
.selection-identity strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selection-identity small { color: var(--subtle); font-size: 7px; }
.probability-rail { position: relative; display: block; height: 22px; border-radius: 4px; background: #071017; }
.probability-rail i { position: absolute; inset: 0 auto 0 0; width: var(--probability-fill); border-radius: inherit; background: linear-gradient(90deg, rgba(78, 232, 138, .2), rgba(78, 232, 138, .72)); }
.probability-rail em { position: relative; z-index: 1; display: block; padding: 5px 7px; color: var(--text); font: 500 8px "DM Mono", monospace; font-style: normal; }
.probability-rail.unavailable { border: 1px dashed var(--line); background: transparent; }
.probability-rail.unavailable em { color: var(--subtle); }
.quote-cell { text-align: right; }
.quote-cell small, .quote-cell strong { display: block; }
.quote-cell small { color: var(--subtle); font-size: 6px; text-transform: uppercase; }
.quote-cell strong { font: 500 9px "DM Mono", monospace; }
.ev-cell strong { color: var(--red); }
.selection-line.positive .ev-cell strong { color: var(--green); }
.selection-line.neutral .ev-cell strong { color: var(--muted); }
.selection-plus { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 5px; color: var(--green); }
.market-block-footer { display: flex; justify-content: space-between; padding: 5px 10px; border-top: 1px solid var(--line-soft); color: var(--subtle); font: 500 6px "DM Mono", monospace; text-transform: uppercase; }
.fixture-footer { display: flex; align-items: center; gap: 17px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 7px; }
.fixture-footer b { color: var(--muted); font-weight: 600; }
.inspect-button { margin-left: auto; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 8px; font-weight: 700; }

.empty-state { padding: 48px 18px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 5px; color: var(--text); }
.lineage-footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.lineage-footer strong { font: 500 10px "DM Mono", monospace; }
.lineage-footer p { max-width: 68%; margin-bottom: 0; color: var(--subtle); font: 400 7px/1.6 "DM Mono", monospace; text-align: right; }

.analysis-dock { z-index: 4; display: flex; flex-direction: column; padding: 26px 18px 19px; border-left: 1px solid var(--line-soft); }
.dock-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.dock-header h2 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.selection-count { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(78, 232, 138, .1); color: var(--green); font: 500 9px "DM Mono", monospace; }
.dock-empty { margin: auto 0; padding: 38px 16px; color: var(--muted); text-align: center; }
.dock-orbit { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 17px; border: 1px dashed var(--line); border-radius: 50%; }
.dock-orbit span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(78, 232, 138, .1); color: var(--green); font-size: 18px; }
.dock-empty strong { color: var(--text); }
.dock-empty p { margin: 7px 0 0; font-size: 10px; }
.dock-detail { position: relative; padding: 22px 0; }
.dock-close { position: absolute; top: 12px; right: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; }
.dock-market { color: var(--green); font: 500 7px "DM Mono", monospace; text-transform: uppercase; }
.dock-detail h3 { max-width: 88%; margin: 6px 0 15px; font-size: 14px; line-height: 1.3; }
.dock-detail h3 i { color: var(--subtle); font-size: 9px; font-style: normal; }
.selected-outcome { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid rgba(78, 232, 138, .24); border-radius: 8px; background: rgba(78, 232, 138, .055); }
.selected-outcome > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 5px; background: var(--panel-3); font-weight: 800; }
.selected-outcome div { display: flex; flex-direction: column; min-width: 0; }
.selected-outcome div strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selected-outcome small { color: var(--muted); font-size: 7px; }
.selected-outcome > b { color: var(--blue); font: 500 11px "DM Mono", monospace; }
.price-breakdown { display: grid; gap: 0; margin: 14px 0; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.price-breakdown dt { color: var(--muted); font-size: 8px; }
.price-breakdown dd { margin: 0; font: 500 8px "DM Mono", monospace; }
.price-breakdown dd.positive { color: var(--green); }
.price-breakdown dd.negative { color: var(--red); }
.audit-box { display: grid; grid-template-columns: 52px 1fr; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-soft); }
.audit-box span { color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.audit-box code { overflow: hidden; color: var(--muted); font: 400 7px "DM Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.blocked-action { margin-top: 11px; padding: 9px; border: 1px solid rgba(255, 200, 97, .2); border-radius: 6px; background: rgba(255, 200, 97, .05); color: var(--amber); font-size: 8px; text-align: center; }
.dock-note { display: flex; gap: 8px; margin-top: auto; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.dock-note > span { color: var(--amber); }
.dock-note p { margin: 0; font-size: 8px; }
.dock-note strong { color: var(--text); }

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 82px minmax(650px, 1fr) 285px; }
  .brand-copy, .nav-link b, .nav-link em, .sidebar-card div, .sidebar-footer > div { display: none; }
  .brand, .nav-link, .sidebar-card, .sidebar-footer { justify-content: center; }
  .nav-link { grid-template-columns: 1fr; text-align: center; }
  .market-explainer { overflow: auto; white-space: nowrap; }
}

@media (max-width: 1030px) {
  .app-shell { grid-template-columns: 74px minmax(0, 1fr); }
  .analysis-dock { position: fixed; z-index: 20; right: 14px; bottom: 14px; top: auto; width: min(340px, calc(100vw - 100px)); height: auto; max-height: 76vh; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .analysis-dock.is-empty { display: none; }
  .dock-empty, .dock-note { display: none; }
  .dock-header { padding-bottom: 9px; }
  .dock-detail { padding-bottom: 0; }
  .selection-line { grid-template-columns: minmax(160px, 1fr) minmax(120px, 1.6fr) repeat(3, 50px) 25px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .brand { justify-content: flex-start; min-height: auto; padding: 0; }
  .brand-copy { display: flex; }
  .primary-nav, .sidebar-card, .sidebar-footer { display: none; }
  .workspace { padding: 18px 12px 80px; }
  .topbar { align-items: flex-start; min-height: auto; }
  .source-state { min-width: 0; }
  .source-state div { display: none; }
  .integrity-banner { grid-template-columns: 35px 1fr; }
  .integrity-banner a { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; }
  .legend { display: none; }
  .fixture-toggle { grid-template-columns: 28px 1fr 25px; }
  .fixture-context, .decision-pill { display: none; }
  .match-brief { grid-template-columns: 1fr 1fr; }
  .match-brief p { grid-column: 1 / -1; grid-row: 2; }
  .fixture-tabs { grid-template-columns: repeat(3, 1fr); }
  .fixture-tabs span:nth-child(n+4) { display: none; }
  .market-block-header { grid-template-columns: 53px 1fr auto; }
  .market-index { display: none; }
  .selection-line { grid-template-columns: minmax(145px, 1fr) 80px 46px 24px; }
  .probability-rail, .quote-cell:nth-of-type(4) { display: none; }
  .quote-cell.ev-cell { display: block; }
  .market-explainer { display: none; }
  .fixture-footer { flex-wrap: wrap; }
  .fixture-footer span:nth-child(2) { display: none; }
  .analysis-dock { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: 82vh; }
  .lineage-footer { display: block; }
  .lineage-footer p { max-width: none; margin-top: 8px; text-align: left; }
}

@media (max-width: 460px) {
  h1 { font-size: 25px; }
  .topbar-copy .section-kicker { display: none; }
  .integrity-banner p { display: none; }
  .metric-card { min-height: 86px; }
  .section-actions { display: block; }
  .fixture-toggle { padding: 9px; }
  .team-row small { display: none; }
  .match-brief { grid-template-columns: 1fr 1fr; padding: 13px; }
  .match-brief > div:first-child { grid-column: 1 / -1; }
  .selection-line { grid-template-columns: 1fr 45px 24px; }
  .quote-cell:nth-of-type(3), .quote-cell:nth-of-type(4) { display: none; }
  .selection-identity small { display: none; }
}
