:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e2f0;
  --paper: #f5f8ff;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --blue: #2563eb;
  --gold: #8b5cf6;
  --danger: #b42318;
  --mint: #dbeafe;
  --sun: #eef2ff;
  --coral: #ffe4dc;
  --shadow: 0 18px 44px rgba(30, 64, 175, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(219, 234, 254, 0.65) 48%, rgba(255, 255, 255, 0.4)),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

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

.sidebar {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-right: 1px solid var(--line);
}

.brand-block {
  margin-bottom: 28px;
  border-bottom: 1px solid #e5edf8;
  padding-bottom: 20px;
}

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

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

h1 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.subcopy,
.hint {
  color: var(--muted);
  line-height: 1.45;
}

.hint {
  margin: 8px 0 0;
  font-size: 12px;
}

.control-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  color: #30404f;
  font-size: 13px;
  font-weight: 750;
}

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

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
}

.segment {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.segment.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 8px rgba(37, 99, 235, 0.12);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
}

.primary-button,
.icon-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.icon-button {
  background: #eff6ff;
  color: var(--accent-dark);
  border: 1px solid #bfdbfe;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

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

.status-pill {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent-dark);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: var(--line);
}

.summary-strip div {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.summary-strip span {
  display: block;
  font-size: 25px;
  font-weight: 850;
  color: var(--accent-dark);
}

.summary-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #e5edf8;
  background: linear-gradient(90deg, #ffffff, #f8fbff);
}

.panel-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  padding: 18px;
}

.pick-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.pick-card.live-pick {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.pick-card.model-pick {
  border-color: #d8e2f0;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.pick-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.player-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 850;
}

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

.score-badge {
  display: grid;
  gap: 1px;
  min-width: 54px;
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  text-align: center;
  font-weight: 900;
}

.score-badge strong {
  font-size: 18px;
  line-height: 1;
}

.score-badge span {
  font-size: 11px;
  opacity: .86;
}

.model-pick .score-badge {
  background: linear-gradient(180deg, #64748b, #475569);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.source-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4f1;
  color: #566574;
  font-size: 12px;
  font-weight: 800;
}

.source-row .source-live {
  background: var(--mint);
  color: var(--accent-dark);
}

.source-row .source-model {
  background: var(--sun);
  color: #4f46e5;
}

.source-row .matchup-favorable {
  background: #dbeafe;
  color: var(--accent-dark);
}

.source-row .matchup-neutral {
  background: #e8eef2;
  color: #485765;
}

.source-row .matchup-tough {
  background: #ffe4dc;
  color: #b42318;
}

.prop-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #eff6ff;
  font-size: 14px;
  font-weight: 800;
}

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

.edge-grid div {
  border: 1px solid #dce8e3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

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

.edge-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.positive-edge {
  color: var(--accent-dark);
}

.negative-edge {
  color: var(--danger);
}

.pick-summary {
  margin: 0;
  color: #263746;
  font-size: 13px;
  line-height: 1.42;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-chips span {
  border: 1px solid #d8e2f0;
  border-radius: 999px;
  background: #fbfffd;
  color: #485765;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 750;
}

.risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-row span {
  border-radius: 999px;
  background: var(--coral);
  color: #9f3412;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.risk-row span:only-child {
  background: var(--mint);
  color: var(--accent-dark);
}

.reason-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #435260;
  font-size: 13px;
  line-height: 1.35;
}

.add-pick {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 850;
}

.slip-list {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
}

.slip-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #eef2f5;
  padding-bottom: 10px;
}

.slip-item strong {
  font-size: 14px;
}

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

.remove-pick {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f4f6;
  cursor: pointer;
}

.slip-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.copy-slip {
  width: calc(100% - 36px);
  min-height: 40px;
  margin: 0 18px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 850;
}

.slip-total span {
  color: var(--muted);
  font-weight: 750;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid #dbe5e0;
  border-radius: 8px;
  background: #fbfefd;
  padding: 9px 11px;
}

.toggle-row input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

@media (max-width: 960px) {
  .app-shell,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .sidebar,
  .workspace {
    padding: 18px;
  }

  h1 {
    font-size: 29px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }
}
