:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --line: #d7dee8;
  --panel: #ffffff;
  --soft: #f7fafc;
  --navy: #0f2742;
  --navy-2: #163b63;
  --teal: #00a884;
  --cyan: #2f80ed;
  --amber: #d88a17;
  --red: #c2414b;
  --yellow: #fff4bf;
  --shadow: 0 18px 45px rgba(15, 39, 66, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 360px),
    linear-gradient(180deg, #eef4f8 0%, #f7fafc 46%, #eef3f7 100%);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 54%, #175c62);
  color: #fff;
  box-shadow: var(--shadow);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

.eyebrow {
  color: #6f879f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.topbar .eyebrow {
  color: #b9c8d8;
}

.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 168, 132, 0.18);
}

main {
  width: min(1440px, calc(100% - 32px));
  margin: 18px auto 34px;
}

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

.metric,
.panel,
.method-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
}

.metric span,
.formula-box span,
.result-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.method-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  margin-bottom: 14px;
}

.league-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.league-tab {
  border: 1px solid var(--line);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.league-tab.active {
  color: #fff;
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  box-shadow: 0 10px 24px rgba(47, 128, 237, 0.18);
}

.method-band p {
  max-width: 840px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

.formula-box {
  min-width: 280px;
  padding: 14px;
  background: #edf7f4;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.formula-box strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

button,
select,
input {
  font: inherit;
}

button {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 8px;
}

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

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

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

th {
  background: #eaf1f8;
  color: var(--navy);
  font-size: 12px;
}

tbody tr:hover {
  background: #f8fbff;
}

td.reason {
  min-width: 300px;
  color: #344456;
  line-height: 1.35;
}

.odds-input {
  width: 82px;
  background: var(--yellow);
  border: 1px solid #d2a539;
  padding: 6px;
  border-radius: 6px;
}

.tag {
  display: inline-block;
  min-width: 96px;
  padding: 5px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}

.tag.value {
  color: #075e4c;
  background: #d8f7ef;
}

.tag.fair {
  color: #5f4300;
  background: #fff2c6;
}

.tag.skip {
  color: #842029;
  background: #f8d7da;
}

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

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

.grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.multi-list {
  display: grid;
  gap: 12px;
}

.multi-card {
  border: 1px solid var(--line);
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, var(--soft));
  border-radius: 8px;
}

.multi-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.multi-card ul {
  margin: 8px 0;
  padding-left: 18px;
}

.multi-card li {
  margin: 4px 0;
}

.multi-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.calculator {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
}

.result-card {
  padding: 14px;
  background: linear-gradient(180deg, #eafaf5, #f4fbf8);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.result-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.automation ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.automation li {
  margin: 8px 0;
  line-height: 1.4;
}

.sources ul {
  columns: 2;
  padding-left: 18px;
  margin: 14px 0 0;
}

.sources li {
  margin-bottom: 8px;
  break-inside: avoid;
}

a {
  color: #125f9f;
}

footer {
  padding: 18px 36px 30px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar,
  .method-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .scoreboard,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .formula-box {
    min-width: 0;
    width: 100%;
  }

  .sources ul {
    columns: 1;
  }
}
