:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #eef1eb;
  --ink: #171915;
  --muted: #657060;
  --line: #d8ded2;
  --accent: #ffd229;
  --accent-ink: #211b00;
  --teal: #0f766e;
  --green-surface: #e7f7ed;
  --green-line: #74bf8e;
  --green-deep: #116335;
  --red: #be123c;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(33, 40, 28, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 210, 41, 0.18), transparent 240px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.topbar__meta span,
.badge,
.result-count,
.action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

.backend-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}

.backend-panel h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.backend-panel p {
  margin-bottom: 0;
  font-size: 13px;
}

.backend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-btn,
.secondary-btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-weight: 900;
}

.primary-btn {
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary-btn {
  background: var(--surface);
  color: var(--ink);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab,
.segment {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}

.tab.is-active,
.segment.is-active {
  color: var(--ink);
  background: var(--accent);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

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

.section-head p {
  max-width: 760px;
  margin-bottom: 0;
}

.best-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) 1fr 1fr 1.25fr;
  gap: 12px;
  margin-bottom: 12px;
}

.best-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.suggestion-row {
  margin-bottom: 14px;
}

.suggestion-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.suggestion-row__head h3 {
  margin: 0;
  font-size: 17px;
}

.suggestion-row__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.strategy-grid,
.prop-grid,
.option-grid,
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

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

.best-card,
.prop-card,
.option-card,
.ledger-card,
.summary-card,
.analytics-block,
.risk-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.best-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  border-color: var(--green-line);
  background: linear-gradient(180deg, #f2fff6, var(--green-surface));
  padding: 14px;
}

.option-card,
.ledger-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 14px;
}

.option-card h3,
.ledger-card h3 {
  margin-bottom: 6px;
}

.option-card p,
.ledger-card p {
  margin-bottom: 10px;
  font-size: 13px;
}

.option-card__top,
.ledger-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.option-pick {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.option-pick span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-line {
  display: grid;
  gap: 4px;
  min-height: 54px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
}

.market-line span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-line strong {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prop-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.prop-card.is-betted {
  border-color: var(--green-deep);
  background: var(--green-surface);
}

.best-card.is-declined,
.prop-card.is-declined,
.ledger-card.is-declined {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.prop-type {
  min-width: 74px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.prop-corners {
  background: #dff7ea;
  color: #105b35;
}

.prop-shots {
  background: #e0edff;
  color: #174ea6;
}

.prop-passes {
  background: #fff1c7;
  color: #7a4b00;
}

.prop-under {
  background: #e4f7f2;
  color: #0d5c4c;
}

.best-card.is-betted {
  border-color: var(--green-deep);
  box-shadow: 0 18px 45px rgba(17, 99, 53, 0.18);
}

.summary-card {
  min-height: 178px;
  padding: 14px;
}

.summary-card p {
  margin-bottom: 10px;
  font-size: 13px;
}

.main-desk__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-desk__title h3 {
  margin-bottom: 0;
}

.desk-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.desk-list span {
  min-height: 28px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 6px 8px;
}

.desk-list .warning {
  border-color: #f3c85f;
  background: #fff8dc;
  color: #665000;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-tile {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.best-card__top,
.best-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grade {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.grade.grade-a {
  background: var(--teal);
}

.grade.grade-b {
  background: var(--blue);
}

.grade.grade-c {
  background: #a16207;
}

.score {
  font-weight: 900;
  color: var(--muted);
}

.best-card h3 {
  min-height: 42px;
  margin: 14px 0 6px;
}

.prop-card h3 {
  min-height: 42px;
  margin: 14px 0 6px;
}

.subline {
  min-height: 42px;
  margin-bottom: 12px;
  font-size: 13px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

dl div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-2);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.best-card__footer {
  margin-top: auto;
}

.case-box {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  border: 1px solid #d8ded2;
  border-radius: 8px;
  background: #fbfcf8;
  padding: 10px;
}

.case-box--edge {
  border-color: var(--green-line);
  background: #f2fff6;
}

.case-box--manual {
  border-color: #c7d2fe;
  background: #f7f9ff;
}

.case-verdict {
  font-size: 13px;
  line-height: 1.2;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-metrics span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3d3;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
}

.case-metrics--compact {
  margin-bottom: 8px;
}

.red-flag-line {
  margin: 0 0 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.case-reasons {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.case-caveats,
.case-mini {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.case-mini {
  min-height: 32px;
  margin-bottom: 10px;
}

.neutral {
  color: var(--muted);
}

.action {
  background: #f9fbf7;
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-btn,
.mark-btn,
.tipsport-link {
  min-width: 74px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  padding: 0 10px;
  text-decoration: none;
}

.mark-btn {
  min-width: 120px;
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.best-card.is-betted .mark-btn {
  background: #ffffff;
  color: var(--green-deep);
}

.decline-btn {
  min-width: 86px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  padding: 0 10px;
}

.best-card.is-declined .decline-btn,
.prop-card.is-declined .decline-btn {
  background: #334155;
  color: #ffffff;
}

.tipsport-link {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.tipsport-link.is-direct {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.tipsport-link.is-search {
  border-color: var(--accent);
  background: #fff7cc;
  color: var(--ink);
}

.copy-btn:focus-visible,
.mark-btn:focus-visible,
.decline-btn:focus-visible,
.tipsport-link:focus-visible,
.tab:focus-visible,
.segment:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 210, 41, 0.8);
  outline-offset: 2px;
}

.options-section {
  margin-top: 8px;
}

.section-head--compact {
  margin-top: 6px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 18px;
}

.validation-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.validation-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.validation-summary__head h3,
.validation-queue h3 {
  margin-bottom: 4px;
}

.validation-summary__head p {
  margin-bottom: 0;
  font-size: 13px;
}

.validation-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.validation-metric {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.validation-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.validation-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.validation-queue {
  display: grid;
  gap: 8px;
}

.validation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 10px;
}

.validation-row strong,
.validation-row span {
  display: block;
}

.validation-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.ledger-market {
  grid-column: 1 / -1;
}

.ledger-note {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-pending {
  background: #fff8dc;
  color: #665000;
}

.status-win {
  background: var(--green-surface);
  color: var(--green-deep);
}

.status-loss {
  background: #ffe4e6;
  color: #9f1239;
}

.status-void {
  background: #e2e8f0;
  color: #334155;
}

.phase-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.phase-upcoming {
  background: #e0edff;
  color: #174ea6;
}

.phase-live {
  background: #fff8dc;
  color: #665000;
}

.phase-needs-result {
  background: #ffe4e6;
  color: #9f1239;
}

.phase-settled {
  background: var(--green-surface);
  color: var(--green-deep);
}

.settlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.settlement-actions button,
.settlement-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
  text-decoration: none;
}

.settlement-actions button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.control {
  display: grid;
  gap: 6px;
}

.control span,
.toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segment {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
}

.toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
}

.toggle input {
  width: 18px;
  min-height: 18px;
}

.table-wrap {
  max-height: 660px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcf8;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.score-pill {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 900;
}

.event-cell strong,
.market-cell strong {
  display: block;
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.positive {
  color: var(--teal);
  font-weight: 900;
}

.negative {
  color: var(--red);
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.breakdown-table {
  overflow-x: auto;
}

.breakdown-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.breakdown-table th,
.breakdown-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  white-space: nowrap;
}

.breakdown-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-block {
  min-height: 320px;
  padding: 14px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(160px, 1.5fr) 56px;
  gap: 10px;
  align-items: center;
  min-height: 26px;
}

.bar-label {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.bar-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.analytics-block--wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.proof-list,
.agent-list,
.betted-list {
  display: grid;
  gap: 8px;
}

.proof-item,
.agent-item,
.betted-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 10px;
}

.proof-item strong,
.agent-item strong,
.betted-item strong {
  display: block;
  margin-bottom: 4px;
}

.proof-item span,
.agent-item span,
.betted-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.agent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.prop-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prop-note strong {
  color: var(--ink);
}

.prop-note span {
  display: block;
  margin-top: 4px;
}

.agent-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #d97706;
}

.agent-dot.green {
  background: var(--green-deep);
}

.agent-dot.yellow {
  background: #d97706;
}

.risk-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 12px;
}

.risk-box {
  padding: 16px;
}

.unit-output {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.unit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.guardrails {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  max-width: 860px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.legal-card h2 {
  margin-top: 22px;
}

.legal-card ul {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .best-grid,
  .best-summary-grid,
  .strategy-grid,
  .prop-grid,
  .option-grid,
  .ledger-grid,
  .validation-metrics,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .backend-panel,
  .site-footer,
  .validation-summary__head,
  .validation-row,
  .risk-layout {
    display: grid;
  }

  .topbar__meta {
    justify-content: flex-start;
  }

  .best-grid,
  .best-summary-grid,
  .strategy-grid,
  .prop-grid,
  .option-grid,
  .ledger-grid,
  .analytics-grid,
  .metric-grid,
  .validation-metrics,
  .controls {
    grid-template-columns: 1fr;
  }

  .best-card {
    min-height: 260px;
  }
}
