@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f2f3ed;
  --surface: #ffffff;
  --surface-2: #f7f8f3;
  --ink: #17231b;
  --muted: #6d756e;
  --line: #dfe3da;
  --line-dark: #cbd1c5;
  --accent: #c9f45b;
  --accent-dark: #375213;
  --green: #2f6b45;
  --green-soft: #eaf4e8;
  --amber: #9b641c;
  --amber-soft: #fff4dc;
  --red: #a6463d;
  --red-soft: #fbeceb;
  --blue: #3c6370;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(30, 43, 30, .06);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(47,107,69,.28); outline-offset: 3px;
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 235px 1fr auto; align-items: center;
  min-height: 78px; padding: 0 34px;
  background: rgba(242,243,237,.93); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; width: fit-content; }
.brand-mark {
  display: flex; align-items: center; justify-content: center; gap: 1px;
  width: 41px; height: 41px; background: var(--ink); color: var(--accent);
  border-radius: 12px; font: 800 1.15rem 'Manrope', sans-serif; letter-spacing: -2px;
}
.brand-mark span { font-size: .9rem; align-self: flex-start; margin-top: 9px; }
.brand-copy { font: 800 1.04rem 'Manrope', sans-serif; letter-spacing: 1.8px; line-height: 1.05; }
.brand-copy small { display: block; margin-top: 5px; font: 600 .52rem 'DM Sans', sans-serif; letter-spacing: 1.45px; color: var(--muted); }
.tabs { display: flex; justify-content: center; gap: 5px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--muted); font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: .18s ease;
}
.tab-btn:hover { background: #e9ece4; color: var(--ink); }
.tab-btn.active { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 3px 12px rgba(23,35,27,.04); }
.nav-icon { font-size: 1.03rem; line-height: 1; }
.badge { min-width: 18px; padding: 1px 5px; border-radius: 20px; background: var(--accent); color: var(--ink); font-size: .68rem; text-align: center; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.responsible-pill { display: flex; align-items: center; gap: 7px; font-size: .71rem; color: var(--muted); white-space: nowrap; }
.responsible-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.select-sm, .select-full { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: .78rem; cursor: pointer; }

main { flex: 1; width: min(1460px, 100%); margin: 0 auto; padding: 38px 40px 64px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero { display: grid; grid-template-columns: 1fr 365px; gap: 60px; align-items: end; padding: 22px 0 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: .65rem; font-weight: 700; letter-spacing: 1.6px; }
.eyebrow i { width: 18px; height: 1px; background: var(--green); }
h1, h2, h3 { font-family: 'Manrope', sans-serif; }
h1 { margin-top: 13px; font-size: clamp(2.4rem, 4.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.hero-copy > p { max-width: 590px; margin-top: 19px; color: var(--muted); font-size: .96rem; line-height: 1.7; }
.hero-note { display: flex; gap: 17px; padding: 21px 0 4px 23px; border-left: 1px solid var(--line-dark); }
.note-number { color: var(--green); font: 500 .68rem 'Manrope', sans-serif; }
.hero-note strong { font: 600 .84rem 'Manrope', sans-serif; }
.hero-note p { margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.page-intro { max-width: 800px; padding: 22px 0 36px; }
.page-intro p { max-width: 600px; margin-top: 17px; color: var(--muted); line-height: 1.65; }

.builder-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 28px; align-items: start; }
.card, .slip-card, .daily-card, .pick-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.controls { padding: 23px; position: sticky; top: 99px; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--green); font: 600 .61rem 'Manrope', sans-serif; }
.section-heading h2, .results-heading h2 { font-size: 1rem; letter-spacing: -.02em; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: .73rem; }
.data-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pool-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--green); font-size: .68rem; font-weight: 600; }
.pool-chip:before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pool-chip.demo { color: var(--amber); }
.pool-chip.error { color: var(--red); }
.pool-chip.loading { color: var(--muted); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: 0 0 auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-dark); background: #edf0e8; }
.segmented { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.seg-btn { flex: 1; padding: 8px 5px; background: transparent; border: 0; border-radius: 7px; color: var(--muted); font-size: .75rem; font-weight: 600; cursor: pointer; transition: .15s; }
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px rgba(23,35,27,.1); }
.day-toggle { margin-bottom: 3px; }
.field-label { display: block; margin: 18px 0 8px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.target-wrap { position: relative; }
.target-wrap > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--green); font: 500 1.5rem 'Manrope', sans-serif; }
.target-input { width: 100%; padding: 9px 42px 9px 14px; border: 1px solid var(--line-dark); border-radius: 11px; background: var(--surface-2); color: var(--ink); font: 700 2rem 'Manrope', sans-serif; letter-spacing: -.05em; outline: none; }
.target-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,107,69,.08); }
.target-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.chips { display: flex; gap: 5px; margin-top: 8px; }
.chip { flex: 1; padding: 6px 2px; background: transparent; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .7rem; font-weight: 600; cursor: pointer; }
.chip:hover, .chip.active { border-color: #a4bd78; background: #f0f7df; color: var(--accent-dark); }
.hint { margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.range-row { display: flex; gap: 8px; }
.mini-field { flex: 1; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.mini-field span { display: block; color: var(--muted); font-size: .61rem; }
.mini-field input { width: 100%; margin-top: 2px; border: 0; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 600; outline: none; }
.advanced { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
.advanced summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: .74rem; font-weight: 600; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary span { color: var(--green); font-size: .66rem; font-weight: 500; }
.market-presets { display: flex; gap: 7px; margin-bottom: 8px; }
.btn-xs { padding: 5px 9px; font-size: .66rem; }
.hint-inline { font-size: .61rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.market-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 130px; overflow-y: auto; }
.mchip { padding: 5px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: .64rem; cursor: pointer; }
.mchip.on { background: var(--green-soft); border-color: #b9d0b5; color: var(--green); }
.seg-sub { display: block; margin-top: 2px; font-size: .54rem; font-weight: 400; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 17px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 10px; font-size: .79rem; font-weight: 600; cursor: pointer; transition: .16s; }
.btn-primary:hover { background: #2a3c2f; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23,35,27,.14); }
.btn-primary:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-big { width: 100%; justify-content: space-between; margin-top: 18px; padding: 13px 15px; background: var(--accent); border-color: #b8dd5c; color: var(--ink); }
.btn-big:hover { background: #d3fa72; }
.control-foot { margin-top: 9px; color: var(--muted); text-align: center; font-size: .62rem; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .71rem; font-weight: 600; cursor: pointer; transition: .15s; text-decoration: none; }
.btn-ghost:hover { border-color: var(--line-dark); color: var(--ink); background: var(--surface-2); }
.btn-ghost.danger:hover { color: var(--red); border-color: #dfb5b1; }

.results-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.results-heading > div { display: flex; align-items: center; gap: 10px; }
.results-caption { color: var(--muted); font-size: .67rem; }
#results, #savedSlips { display: flex; flex-direction: column; gap: 16px; }
.empty-state { min-height: 405px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 30px; border: 1px dashed var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.38); text-align: center; }
.empty-state.compact { min-height: 290px; }
.empty-state h3 { margin-top: 13px; font-size: 1.28rem; letter-spacing: -.03em; }
.empty-state p { max-width: 480px; margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.empty-state strong { color: var(--green); }
.empty-icon { color: var(--green); font-size: 2rem; }
.empty-visual { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.empty-visual span { padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font: 600 .78rem 'Manrope', sans-serif; box-shadow: 0 4px 10px rgba(23,35,27,.04); }
.empty-visual span:nth-of-type(2) { background: var(--accent); border-color: #b8dd5c; transform: translateY(-8px); }
.empty-visual i { width: 15px; height: 1px; background: var(--line-dark); }
.empty-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 23px; color: var(--green); font-size: .67rem; }
#builderMessage { padding: 11px 14px; border: 1px solid #ead6ac; border-radius: 10px; background: var(--amber-soft); color: #75501e; font-size: .75rem; line-height: 1.5; }
#builderMessage.ok { background: var(--green-soft); border-color: #c4d9be; color: var(--green); }
#builderMessage .btn-ghost { margin-top: 7px; }

.slip-card { overflow: hidden; }
.slip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.slip-title { color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.slip-odds { font: 700 1.4rem 'Manrope', sans-serif; letter-spacing: -.04em; }
.acc-badge, .slip-verdict { padding: 4px 8px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: .63rem; font-weight: 600; }
.acc-badge.off { background: var(--amber-soft); color: var(--amber); }
.spacer { flex: 1; }
.saved-meta { color: var(--muted); font-size: .65rem; }
.slip-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.slip-metric { padding: 13px 18px; background: var(--surface-2); }
.slip-metric span { display: block; color: var(--muted); font-size: .61rem; }
.slip-metric strong { display: block; margin-top: 4px; font: 600 .89rem 'Manrope', sans-serif; }
.slip-metric strong.good { color: var(--green); }
.slip-metric strong.warn { color: var(--amber); }
.legs { list-style: none; }
.leg { display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px 19px; border-bottom: 1px solid #eceee8; }
.leg:last-child { border-bottom: 0; }
.leg.weakest { background: #fffaf0; }
.leg-time { color: var(--muted); font-size: .68rem; font-weight: 600; }
.leg-main { min-width: 0; }
.leg-match { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .81rem; font-weight: 600; }
.leg-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: var(--muted); font-size: .63rem; }
.leg-pick { display: inline-block; margin-top: 6px; color: var(--green); font-size: .69rem; font-weight: 600; }
.leg-odd { font: 600 .84rem 'Manrope', sans-serif; }
.leg-prob { display: block; margin-top: 3px; color: var(--muted); font-size: .57rem; font-weight: 400; text-align: right; }
.leg-actions { display: flex; gap: 5px; }
.leg-status { align-self: center; }
.slip-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 18px; background: var(--surface-2); border-top: 1px solid var(--line); }
.stake-box { display: flex; align-items: center; gap: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stake-box .cur { color: var(--muted); font-size: .75rem; }
.stake-box input { width: 65px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .75rem; font-weight: 600; }
.payout { color: var(--muted); font-size: .67rem; }
.payout strong { margin-left: 3px; color: var(--ink); font-size: .75rem; }
.risk-summary { display: flex; gap: 10px; padding: 12px 18px; background: #fffaf0; border-top: 1px solid #eee3ca; color: #775a2a; font-size: .69rem; line-height: 1.5; }
.risk-summary b { flex: 0 0 auto; }

.picks-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 17px; padding: 19px 21px; }
.picks-head h2 { font-size: 1rem; }
.muted { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.head-actions, .daily-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.disclaimer { margin-bottom: 16px; padding: 12px 15px; border: 1px solid #ead6ac; border-radius: 10px; background: var(--amber-soft); color: #75501e; font-size: .75rem; line-height: 1.5; }
.daily-card { margin-bottom: 13px; padding: 19px 21px; }
.daily-card.top { border-color: #b8cdaa; }
.daily-rank { margin-bottom: 8px; color: var(--green); font-size: .61rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.daily-top-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.daily-top-row > div:first-child { flex: 1; min-width: 220px; }
.daily-match { font: 600 .93rem 'Manrope', sans-serif; }
.daily-meta { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.daily-pick-chip, .bet-chip { padding: 5px 9px; background: var(--green-soft); border-radius: 6px; color: var(--green); font-size: .7rem; font-weight: 600; }
.daily-odd { font: 600 .87rem 'Manrope', sans-serif; }
.daily-probs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.prob-wrap { display: flex; align-items: center; gap: 8px; width: 170px; }
.prob-bar, .conf-bar { flex: 1; height: 5px; overflow: hidden; border-radius: 10px; background: #e8ebe3; }
.prob-bar i, .conf-fill { display: block; height: 100%; border-radius: 10px; background: var(--green); }
.prob-num, .conf-num { color: var(--green); font-size: .7rem; font-weight: 700; }
.value-badge { padding: 4px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: .62rem; font-weight: 600; }
.value-badge.neg { background: var(--red-soft); color: var(--red); }
.daily-why { margin: 12px 0 0 17px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.daily-actions { margin-top: 14px; }
.loading-row { display: flex; align-items: center; gap: 9px; padding: 18px 3px; color: var(--muted); font-size: .78rem; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.oracle-loading { margin-bottom: 18px; padding: 40px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.oracle-orb { color: var(--green); font-size: 2.2rem; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }
.oracle-title { margin-top: 10px; font: 600 1.1rem 'Manrope', sans-serif; }
.oracle-sub { margin-top: 7px; color: var(--muted); font-size: .72rem; }
.oracle-bar { width: min(300px,80%); height: 3px; margin: 20px auto 0; overflow: hidden; background: var(--line); }
.oracle-bar i { display: block; width: 35%; height: 100%; background: var(--green); animation: scan 1.3s ease-in-out infinite; }
@keyframes scan { from { margin-left: -35%; } to { margin-left: 100%; } }
.match-group { margin-bottom: 20px; }
.match-group h3 { margin-bottom: 9px; color: var(--muted); font-size: .67rem; letter-spacing: .7px; text-transform: uppercase; }
.pick-card { margin-bottom: 10px; padding: 17px 19px; border-left: 3px solid #9eb899; }
.pick-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pick-match { flex: 1; min-width: 200px; font-size: .84rem; font-weight: 600; }
.conf-wrap { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.pick-reason { margin-top: 10px; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.pick-result { margin-top: 8px; font-size: .73rem; }
.status-won { color: var(--green); }.status-lost { color: var(--red); }.status-pending { color: var(--amber); }
.slip-verdict.won { background: var(--green-soft); color: var(--green); }.slip-verdict.lost { background: var(--red-soft); color: var(--red); }.slip-verdict.pending { background: var(--amber-soft); color: var(--amber); }

.ai-review { margin: 0 18px 15px; padding: 13px 15px; border: 1px solid #d4e0df; border-radius: 10px; background: #f2f7f6; color: var(--blue); font-size: .74rem; line-height: 1.55; }
.ai-review h4 { margin-bottom: 6px; font-size: .73rem; }
.ai-review ul { margin: 8px 0 0 17px; color: var(--muted); }
.risk-tag { display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 10px; font-size: .6rem; }
.risk-Low { background: var(--green-soft); color: var(--green); }.risk-Medium { background: var(--amber-soft); color: var(--amber); }.risk-High { background: var(--red-soft); color: var(--red); }
.sporty-slot:not(:empty) { margin: 0 18px 15px; }
.daily-card .sporty-slot:not(:empty) { margin: 13px 0 0; }
.sporty-box { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: .74rem; }
.sporty-box h4 { margin-bottom: 9px; font-size: .7rem; }
.sporty-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.sporty-code { padding: 7px 12px; border: 1px dashed var(--line-dark); border-radius: 7px; background: var(--surface); font: 700 1.1rem monospace; letter-spacing: 3px; }
.sporty-meta { margin-top: 8px; color: var(--muted); font-size: .67rem; }

.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; }
.site-footer b { color: var(--ink); letter-spacing: 1px; }.site-footer .resp { color: #765d34; }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 110; transform: translateX(-50%); max-width: calc(100vw - 30px); padding: 11px 17px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(23,35,27,.25); font-size: .75rem; animation: enter .2s ease; }
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 18px; background: rgba(20,29,22,.55); backdrop-filter: blur(5px); }
.modal-box { position: relative; width: 100%; max-width: 730px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 16px; right: 16px; }
#modalBody { padding-right: 25px; }
.ana-head h3 { font-size: 1.2rem; }
.ana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.ana-grid .full { grid-column: 1 / -1; }
.ana-block { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.ana-block h4 { margin-bottom: 11px; color: var(--muted); font-size: .62rem; letter-spacing: .7px; text-transform: uppercase; }
.form-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: .74rem; }
.form-line .team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-chips { display: flex; gap: 3px; }.fchip { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 4px; font-size: .58rem; font-weight: 700; }
.fchip.W { background: var(--green-soft); color: var(--green); }.fchip.D { background: var(--amber-soft); color: var(--amber); }.fchip.L { background: var(--red-soft); color: var(--red); }
.stat-row { display: grid; grid-template-columns: 38px 1fr 85px 1fr 38px; align-items: center; gap: 7px; margin-bottom: 9px; }
.stat-row .num { font-size: .72rem; font-weight: 600; }.stat-row .num.r { text-align: right; }.stat-row .lbl { color: var(--muted); font-size: .58rem; text-align: center; text-transform: uppercase; }
.stat-bar { height: 5px; background: var(--line); }.stat-bar i { display: block; height: 100%; background: var(--green); }.stat-bar.mirror { transform: scaleX(-1); }
.h2h-list, .inj-list { list-style: none; color: var(--muted); font-size: .7rem; }.h2h-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); }.h2h-list .score { color: var(--ink); }.inj-list li { padding: 3px 0; }.inj-list b { color: var(--ink); }.inj-none { color: var(--green); font-size: .7rem; }
.rec-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); }.rec-pick { flex: 1; min-width: 130px; font-size: .75rem; font-weight: 600; }
.ai-box { padding: 14px; border: 1px solid #d4e0df; border-radius: 11px; background: #f2f7f6; color: var(--blue); font-size: .74rem; line-height: 1.55; }.ai-box h4 { margin-bottom: 7px; font-size: .69rem; }.ai-box .danger { margin-top: 6px; color: var(--amber); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 190px 1fr auto; padding: 0 22px; }
  .responsible-pill { display: none; }
  .tab-btn { padding: 9px 10px; }
  main { padding: 30px 26px 55px; }
  .hero { grid-template-columns: 1fr 300px; gap: 35px; }
  .builder-grid { grid-template-columns: 310px minmax(0,1fr); gap: 20px; }
  .results-caption { display: none; }
  .slip-foot .spacer { display: none; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 12px 20px 0; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; margin-top: 10px; padding-bottom: 9px; }
  .brand-copy small { display: none; }
  .controls { position: static; }
  .builder-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 15px; }
  .hero-note { max-width: 500px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .section-heading, .data-status, .day-toggle, .advanced, .btn-big, .control-foot { grid-column: 1 / -1; }
  .controls .field-label, .controls .target-wrap, .controls .chips, .controls > .hint, .controls > .segmented, .controls > .range-row { grid-column: auto; }
  .section-heading { margin-top: 0; }
}
@media (max-width: 620px) {
  .topbar { padding: 10px 14px 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy { font-size: .9rem; }
  .tab-btn { padding: 9px; font-size: .75rem; }
  .nav-icon { display: none; }
  main { padding: 22px 14px 45px; }
  h1 { font-size: 2.55rem; }
  .hero { padding-top: 12px; }
  .hero-note { display: none; }
  .controls { display: block; padding: 19px; }
  .results-heading { margin-top: 5px; }
  .empty-state { min-height: 350px; padding: 35px 20px; }
  .empty-features { flex-direction: column; gap: 7px; }
  .slip-head { padding: 14px; }
  .slip-head .saved-meta { width: 100%; }
  .slip-metric { padding: 11px; }.slip-metric span { font-size: .55rem; }.slip-metric strong { font-size: .75rem; }
  .leg { grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; padding: 13px 14px; }
  .leg-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .leg-match { white-space: normal; line-height: 1.4; }
  .slip-foot { padding: 12px 14px; }
  .payout { width: 100%; }
  .picks-head { align-items: flex-start; padding: 17px; }
  .daily-card { padding: 17px; }
  .daily-top-row > div:first-child { min-width: 100%; }
  .prob-wrap { width: 145px; }
  .ana-grid { grid-template-columns: 1fr; }.ana-grid .full { grid-column: auto; }
  .modal-box { padding: 19px 15px; }#modalBody { padding-right: 15px; }
  .stat-row { grid-template-columns: 32px 1fr 70px 1fr 32px; }
  .site-footer { padding: 18px 15px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
