:root {
  color-scheme: light;
  --ink: #16201f;
  --muted: #60716d;
  --line: #d8e1de;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #b88116;
  --danger: #b42318;
  --win: #147a42;
  --shadow: 0 16px 45px rgba(38, 55, 51, 0.09);
  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(15, 118, 110, 0.1), transparent 360px),
    var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.subcopy {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

button,
.button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.button.secondary {
  background: white;
  color: var(--accent-dark);
}

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

.metric-grid article,
.toolbar,
.sidebar,
.pick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metric-grid article {
  min-height: 104px;
  padding: 18px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.sidebar h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.break-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.break-row span {
  color: var(--muted);
}

.feed {
  display: grid;
  gap: 14px;
}

.pick-card {
  overflow: hidden;
}

.card-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e9f4f1;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.gold {
  background: #fff0c9;
  color: #805a0b;
}

.pill.win {
  background: #ddf7e8;
  color: var(--win);
}

.pill.loss {
  background: #ffe2df;
  color: var(--danger);
}

.pick-card h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.odds {
  align-self: start;
  min-width: 88px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  text-align: right;
}

.odds span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.odds strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.legs {
  display: grid;
}

.leg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.leg:first-child {
  border-top: 0;
}

.leg h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.leg p {
  margin-bottom: 8px;
  color: var(--muted);
}

.research {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #344642;
}

.research li {
  margin: 6px 0;
}

.leg-side {
  color: var(--muted);
  font-size: 0.88rem;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.media-strip img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .masthead,
  .card-top,
  .leg {
    grid-template-columns: 1fr;
  }

  .masthead {
    display: grid;
    min-height: auto;
    padding-top: 28px;
  }

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

  .metric-grid,
  .toolbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .odds {
    text-align: left;
  }
}

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

  h1 {
    font-size: 2.35rem;
  }

  .metric-grid article,
  .toolbar,
  .sidebar,
  .card-top,
  .leg,
  .media-strip {
    padding: 14px;
  }
}
