/* Smart Builder (PRO, 2026-11-24). Dark design language of the app pages
   (shared.css tokens); blue primary actions, gold PRO accents. */
body { display: flex; flex-direction: column; min-height: 100vh; }
.sb-main { flex: 1 0 auto; width: 100%; max-width: 1400px; margin: 0 auto; padding: 22px 24px 40px; }
.sb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.sb-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sb-pro { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #1c1917; background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.sb-h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.sb-sub { max-width: 82ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.sb-link { color: var(--accent2); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.sb-link:hover { text-decoration: underline; }
.sb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Workspace (v2.3.0): settings | results. Wide screens put the modular
   settings panel beside the results; below 1200 px the settings span the
   page and the results follow. RC2: the settings card is in the normal page
   flow (no sticky panel, no inner scroll) — opening Advanced options simply
   makes it taller, and the page scrolls. ── */
.sb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1200px) {
  .sb-layout { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 20px; }
}
@media (min-width: 1360px) { .sb-layout { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } }
.sb-card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 4px 16px rgba(0,0,0,.25); }
.sb-loading, .sb-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* settings modules */
.sb-config-card { padding: 16px; }
.sb-mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sb-mod { min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid rgba(148,163,184,.14); background: rgba(2,6,23,.28); }
@media (min-width: 640px) {
  .sb-mods { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "when legs" "games games" "props props" "profile profile" "sides money"; }
  .sb-mod--when { grid-area: when; } .sb-mod--games { grid-area: games; } .sb-mod--legs { grid-area: legs; }
  .sb-mod--sides { grid-area: sides; } .sb-mod--props { grid-area: props; } .sb-mod--profile { grid-area: profile; } .sb-mod--money { grid-area: money; }
}
/* Tablet / small laptop: settings span the page — three columns of modules. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .sb-mods { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "when games games" "legs games games" "sides props props" "money profile profile"; }
}
.sb-field { margin-bottom: 14px; min-width: 0; }
.sb-lab { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.sb-lab label { cursor: pointer; }
.sb-lab-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sb-mini { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sb-opt { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .8; }
.sb-hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.sb-hint:empty { display: none; }
.sb-center { text-align: center; }
.sb-input { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15,23,42,.85); color: var(--text); font: inherit; font-size: 14px; }
.sb-date { margin-top: 8px; }
.sb-input:focus-visible, .sb-seg-btn:focus-visible, .sb-profile:focus-visible, .sb-step:focus-visible, .sb-preset:focus-visible, .sb-btn:focus-visible, .sb-act:focus-visible, .sb-build:focus-visible, .sb-sum:focus-visible, .sb-textbtn:focus-visible, .sb-chip:focus-within, .sb-game:focus-within { outline: 2px solid var(--accent2); outline-offset: 2px; }
.sb-textbtn { background: none; border: 0; padding: 0; color: var(--accent2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sb-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; border: 1px solid var(--border); background: rgba(15,23,42,.6); }
.sb-seg-btn { flex: 1 1 auto; min-height: 34px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-seg-btn.is-on { background: rgba(59,130,246,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(96,165,250,.45); }
/* Games: one game or a full slate — the list scrolls inside its module past three rows. */
.sb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 6px; max-height: 178px; overflow-y: auto; scrollbar-width: thin; padding: 1px; overscroll-behavior: contain; }
.sb-game { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15,23,42,.5); cursor: pointer; }
.sb-game.is-on { border-color: rgba(96,165,250,.6); background: rgba(59,130,246,.12); }
.sb-game input, .sb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-game-t { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.sb-at { color: var(--muted); font-weight: 500; }
.sb-game-time { font-size: 11.5px; color: var(--muted); }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chip { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(15,23,42,.5); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-chip.is-on { border-color: rgba(96,165,250,.6); background: rgba(59,130,246,.16); color: #fff; }
.sb-chip--x.is-on { border-color: rgba(248,113,113,.5); background: rgba(239,68,68,.12); color: #fecaca; }
/* Legs: exact stepper (2–20) + quick presets. */
.sb-legs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sb-stepper { display: flex; align-items: stretch; gap: 4px; flex: 0 0 auto; }
.sb-step { width: 38px; min-height: 38px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15,23,42,.6); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; }
.sb-step[disabled] { opacity: .4; cursor: not-allowed; }
.sb-legs-in { width: 56px; min-height: 38px; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.sb-legs-in::-webkit-outer-spin-button, .sb-legs-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sb-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.sb-preset { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--border); background: rgba(15,23,42,.5); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.sb-preset.is-on { color: #fff; border-color: rgba(96,165,250,.6); background: rgba(59,130,246,.2); }
@media (hover: hover) { .sb-preset:hover:not(.is-on), .sb-step:hover:not([disabled]) { background: rgba(148,163,184,.12); color: var(--text); } }
/* Profiles: three selectable cards side by side; phones show names + the chosen profile's note. */
.sb-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sb-profile { text-align: left; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--border); background: rgba(15,23,42,.5); color: var(--text); font: inherit; cursor: pointer; }
.sb-profile.is-on { border-color: rgba(96,165,250,.65); background: rgba(59,130,246,.12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.25); }
.sb-profile-name { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.sb-profile-copy { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.sb-def { font-size: 10.5px; font-weight: 600; color: var(--accent2); margin-left: 2px; }
.sb-profile-note { display: none; }
.sb-money { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.sb-money .sb-seg { margin-bottom: 6px; }
.sb-money .sb-seg-btn { min-height: 30px; }
.sb-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(15,23,42,.85); padding-left: 10px; }
.sb-prefix span { color: var(--muted); font-weight: 600; }
.sb-prefix .sb-input { border: 0; background: transparent; padding-left: 4px; }
/* Footer: advanced options (collapsed) and the build action. */
.sb-config-foot { display: grid; gap: 12px; margin-top: 12px; }
.sb-adv { border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.sb-adv summary { cursor: pointer; padding: 11px 0; font-weight: 700; font-size: 13px; color: var(--text); }
.sb-adv-n { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--accent2); background: rgba(59,130,246,.14); }
.sb-adv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; padding-bottom: 4px; }
@media (min-width: 640px) { .sb-adv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sb-adv-grid .sb-wide { grid-column: 1 / -1; } }
.sb-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sb-err { color: #fca5a5; font-size: 13px; margin: 0 0 8px; }
.sb-err:empty { display: none; }
.sb-build { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.sb-build[disabled] { opacity: .6; cursor: progress; }
.sb-build--pro { box-shadow: inset 0 0 0 1px rgba(252,211,77,.35); }
.sb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sbspin .8s linear infinite; flex: 0 0 auto; }
@keyframes sbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sb-spin { animation-duration: 2.4s; } }

/* ── Results workspace ── */
.sb-ws-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.sb-ws-title { font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.sb-how { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; }
.sb-how li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sb-how svg { color: var(--accent2); flex: 0 0 auto; }
.sb-how b { color: var(--text); font-weight: 700; }
.sb-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sb-sum { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--panel2)); cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.sb-sum.is-on { border-color: rgba(96,165,250,.7); background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(59,130,246,.06)); box-shadow: inset 0 0 0 1px rgba(96,165,250,.25); }
@media (hover: hover) { .sb-sum[data-opt]:not(.is-on):hover { border-color: rgba(96,165,250,.45); } }
.sb-sum-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sb-sum-opt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.sb-sum-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sb-sum-nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sb-sum-nums > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-sum-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-sum-v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-sum-target { align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.sb-sum-target.is-on { color: #86efac; background: rgba(34,197,94,.12); }
.sb-sum-target.is-off { color: #fcd34d; background: rgba(251,191,36,.1); }
.sb-sum-legs { list-style: none; display: grid; gap: 4px; margin: 0; padding: 8px 0 0; border-top: 1px solid rgba(148,163,184,.14); }
.sb-sum-legs li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; min-width: 0; }
.sb-sum-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sb-sum-pick { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.sb-sum-pick .sb-side--over, .sb-sum-pick .sb-side--under { font-weight: 800; }
.sb-sum-more { color: var(--muted); font-size: 12px !important; }
.sb-sum-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 12px; }
.sb-sum-state { font-weight: 700; color: var(--accent2); }
.sb-sum.is-on .sb-sum-state { color: #93c5fd; }
.sb-sum-noest { color: var(--muted); }
.sb-sum--gap { cursor: default; border-style: dashed; background: transparent; justify-content: center; }
.sb-sum--gap p { font-size: 12.5px; color: var(--muted); line-height: 1.5; text-align: center; }
/* The empty state: static placeholders — the shapes of what will appear. */
.sb-sum--ph { cursor: default; border-style: dashed; border-color: rgba(148,163,184,.22); background: rgba(2,6,23,.22); }
.sb-sum--ph .sb-sum-opt { color: var(--muted); }
.sb-ph { display: block; height: 10px; width: 100%; border-radius: 6px; background: rgba(148,163,184,.12); }
.sb-ph--xs { width: 64px; height: 8px; }
.sb-ph--num { width: 72%; height: 18px; border-radius: 6px; }
.sb-ph--m { width: 78%; } .sb-ph--s { width: 56%; }
.sb-sum-legs-ph { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed rgba(148,163,184,.16); }
.sb-sum-acts-ph { display: flex; gap: 6px; margin-top: auto; }
.sb-ph--btn { width: 92px; height: 26px; border-radius: 8px; }
.sb-ph--btn2 { width: 64px; }
.sb-empty-note { font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 70ch; }
.sb-empty-note b { color: var(--text); }
/* Loading (a request is running): the same three slots, shimmering. */
.sb-sum--ph.sb-skel { display: grid; gap: 10px; min-height: 196px; }
.sb-busy-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sb-busy-note .sb-spin { border-color: rgba(147,197,253,.3); border-top-color: #93c5fd; }
@media (max-width: 899.98px) {
  .sb-sums { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* Phones / tablets: compact option cards — the detail below lists every leg. */
  .sb-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 11px 12px; }
  .sb-sum-top { grid-column: 1 / -1; }
  .sb-sum-nums { grid-column: 1 / -1; }
  .sb-sum-legs, .sb-sum-legs-ph { display: none; }
  .sb-sum-target { grid-column: 1; }
  .sb-sum-foot { grid-column: 1 / -1; margin-top: 0; }
  .sb-sum-acts-ph { display: none; }
  .sb-sum--ph.sb-skel { min-height: 92px; }
  .sb-sum--gap { display: none; }
}
@media (min-width: 640px) and (max-width: 899.98px) {
  .sb-sums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sb-sum { display: flex; }
}
/* Phones: modules stack; profile cards show names, the note below names the chosen one. */
@media (max-width: 639.98px) {
  .sb-main { padding: 16px 16px 32px; }
  .sb-h1 { font-size: 21px; }
  .sb-sub { font-size: 13.5px; }
  .sb-config-card { padding: 12px; }
  .sb-mods { gap: 10px; }
  .sb-mod { padding: 11px; }
  .sb-games { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 164px; }
  .sb-profile { padding: 9px 8px; text-align: center; }
  .sb-profile-copy { display: none; }
  .sb-profile-name { margin: 0; font-size: 13px; }
  .sb-def { display: none; }
  .sb-profile-note { display: block; }
  .sb-profile-rule { display: none; }
  .sb-how { display: none; }
  .sb-money { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* results */
.sb-results { min-width: 0; }
.sb-skel { display: grid; gap: 10px; }
.sb-skel div { height: 64px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sbsk 1.2s infinite linear; }
@keyframes sbsk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sb-skel div { animation: none; } }
.sb-note { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.sb-none h2 { font-size: 16px; margin-bottom: 6px; }
.sb-none p, .sb-none li { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.sb-none ul { margin: 8px 0 0 18px; }
.sb-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.sb-tab { flex: none; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15,23,42,.5); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sb-tab span { font-weight: 600; opacity: .85; margin-left: 4px; }
.sb-tab.is-on { color: #fff; border-color: rgba(96,165,250,.6); background: rgba(59,130,246,.16); }
.sb-combo { position: relative; }
.sb-combo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-combo-head h2 { font-size: 17px; font-weight: 800; }
.sb-combo-actions, .sb-combo-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-combo-foot { margin-top: 14px; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.sb-btn--primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; }
.sb-btn[disabled] { opacity: .55; cursor: progress; }
.sb-est { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(96,165,250,.28); background: rgba(59,130,246,.07); margin-bottom: 10px; }
.sb-est--none { border-color: var(--border); background: rgba(255,255,255,.02); color: var(--muted); font-size: 13px; }
.sb-est-main { display: flex; flex-direction: column; gap: 1px; }
.sb-est-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-est-v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-est-v.is-on { color: #4ade80; }
.sb-est-v.is-off { color: #fbbf24; }
.sb-est-s { font-size: 12px; color: var(--muted); }
.sb-est-note { flex-basis: 100%; font-size: 12px; color: var(--muted); line-height: 1.5; }
.sb-note--markets { border-color: rgba(148,163,184,.32); background: rgba(148,163,184,.07); }
.sb-note--markets .sb-note-title { font-weight: 700; margin: 0 0 4px; }
.sb-note--markets ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.sb-notes { list-style: none; display: grid; gap: 4px; margin-bottom: 10px; }
.sb-notes li { font-size: 12.5px; color: #fcd34d; line-height: 1.45; padding-left: 14px; position: relative; }
.sb-notes li::before { content: '•'; position: absolute; left: 2px; }
.sb-legs { list-style: none; display: grid; gap: 8px; }
.sb-leg { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2,6,23,.45); }
.sb-leg.is-locked { border-color: rgba(252,211,77,.45); }
.sb-leg-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.sb-leg-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sb-leg-name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.sb-pos { font-size: 11px; color: var(--muted); font-weight: 600; }
.sb-leg-sub { font-size: 12px; color: var(--muted); }
.sb-team { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 6px; background: rgba(148,163,184,.16); font-size: 11px; font-weight: 800; }
.sb-leg-pick { font-size: 13.5px; }
.sb-side { font-weight: 800; }
.sb-side--over { color: #86efac; }
.sb-side--under { color: #93c5fd; }
.sb-mkt { color: var(--text); }
.sb-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(148,163,184,.4); color: var(--muted); white-space: nowrap; }
.sb-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.sb-price-n { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.sb-price--none { color: var(--muted); font-size: 12px; font-weight: 600; }
.sb-cells { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sb-cell { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 4px 8px; border-radius: 8px; background: rgba(148,163,184,.08); }
.sb-cell-k { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.sb-cell-v { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-warn { list-style: none; display: grid; gap: 3px; margin-top: 8px; }
.sb-warn li { font-size: 12px; color: #fcd34d; line-height: 1.4; }
.sb-warn li.sb-warn--availability { color: #fca5a5; }
.sb-why { margin-top: 8px; }
.sb-why summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent2); }
.sb-why p { font-size: 13px; color: #cbd5e1; line-height: 1.5; margin-top: 6px; }
.sb-books { font-size: 12px !important; color: var(--muted) !important; }
.sb-links a { color: var(--accent2); font-weight: 600; text-decoration: none; }
.sb-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.sb-dot { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-dot.is-hit { background: rgba(34,197,94,.18); color: #86efac; }
.sb-dot.is-miss { background: rgba(239,68,68,.16); color: #fca5a5; }
.sb-dot.is-push { background: rgba(148,163,184,.16); color: var(--muted); }
.sb-leg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sb-act { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sb-act:hover:not([disabled]) { color: var(--text); background: rgba(148,163,184,.1); }
.sb-act.is-on { color: #fcd34d; border-color: rgba(252,211,77,.45); }
.sb-act[disabled] { opacity: .45; cursor: not-allowed; }
.sb-swap { margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px dashed rgba(96,165,250,.4); display: grid; gap: 6px; font-size: 13px; }
.sb-swap-t { font-weight: 700; font-size: 12.5px; color: var(--muted); }
.sb-swap-opt { text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: rgba(15,23,42,.6); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sb-swap-opt:hover { border-color: rgba(96,165,250,.6); }
.sb-disclaimer { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.sb-preview { overflow: hidden; }
.sb-preview .sb-legs { filter: saturate(.85); opacity: .85; }
.sb-example { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fcd34d; border: 1px solid rgba(252,211,77,.45); border-radius: 999px; padding: 2px 8px; }
.sb-lock { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(252,211,77,.35); background: rgba(245,158,11,.06); display: grid; gap: 10px; font-size: 13.5px; line-height: 1.55; }
@media (max-width: 640px) {
  .sb-main { padding-top: 16px; }
  .sb-h1 { font-size: 20px; }
  .sb-card { padding: 14px; border-radius: 14px; }
  .sb-leg-main { grid-template-columns: minmax(0, 1fr) auto; }
  .sb-leg-pick { grid-column: 1 / 2; }
  .sb-price { grid-row: 1 / 3; grid-column: 2; }
  .sb-money { grid-template-columns: minmax(0, 1fr); }
  .sb-combo-actions { width: 100%; }
  .sb-combo-actions .sb-btn { flex: 1 1 auto; }
  .sb-example { position: static; display: inline-block; margin-bottom: 8px; }
}
.sb-results { scroll-margin-top: 84px; }
.sb-sums--loading .sb-skel div { height: 14px; border-radius: 6px; }
.sb-sums--loading .sb-skel div:nth-child(1) { width: 40%; }
.sb-sums--loading .sb-skel div:nth-child(2) { height: 26px; width: 70%; }
.sb-sums--loading .sb-skel div:nth-child(3) { height: 64px; }
@media (max-width: 899.98px) { .sb-sums--loading .sb-skel div:nth-child(3) { display: none; } }
.sb-combo-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.sb-est-tag { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #93c5fd; border: 1px solid rgba(147,197,253,.35); }
.sb-sum-v--na { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 4px; }
@media (max-width: 639.98px) {
  .sb-profile { padding: 9px 4px; }
  .sb-profile-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-mod--props .sb-chip { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
}

/* ── v2.3.0 RC2 ── */
/* Dropdowns: ParlayDesk select (pd-select.js opens the themed menu); the closed
   control matches the app's selects — no native arrow, our chevron. */
select.sb-input { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.sb-input.pd-select-open, select.sb-input:focus-visible { border-color: rgba(96,165,250,.6); }
select.sb-input option { background: #0b1020; color: #e5e7eb; }
/* Advanced options: one consistent focus ring (keyboard only), no browser default. */
.sb-adv summary { list-style: none; display: flex; align-items: center; gap: 8px; border-radius: 10px; margin: 0 -8px; padding: 11px 8px; }
.sb-adv summary::-webkit-details-marker { display: none; }
.sb-adv summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px; }
.sb-adv[open] summary::before { transform: rotate(45deg); }
.sb-adv summary:focus { outline: none; }
.sb-adv summary:focus-visible { outline: 2px solid var(--accent2); outline-offset: 0; }
/* Team distribution: badge + count chips. */
.sb-teams { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sb-tcount { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; border-radius: 999px; background: rgba(148,163,184,.1); font-size: 12px; }
.sb-tcount b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-tcount.is-zero { opacity: .55; }
.sb-teams--compact .sb-tcount { padding: 1px 6px 1px 2px; font-size: 11.5px; }
.sb-dist { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(148,163,184,.18); background: rgba(2,6,23,.3); }
.sb-dist-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sb-dist-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sb-dist-games { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sb-dist-game { display: inline-flex; align-items: center; gap: 4px; }
.sb-dist-vs { color: var(--muted); font-size: 11px; }
.sb-dist-list { list-style: none; display: grid; gap: 5px; margin: 9px 0 0; padding: 0; }
.sb-dist-list li { font-size: 12.5px; line-height: 1.45; color: #cbd5e1; }
.sb-dist-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fcd34d; border: 1px solid rgba(252,211,77,.35); vertical-align: 1px; }
.sb-dist-tag--link { color: #93c5fd; border-color: rgba(147,197,253,.35); }
.sb-dist-foot { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* v2.3.0 RC3 — research explanations, combination why, edit validation */
.sb-why-meta { margin-left: 6px; font-weight: 600; color: var(--muted, #94a3b8); font-size: 11.5px; }
.sb-why-list { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.sb-why-list li { font-size: 12.5px; color: #cbd5e1; line-height: 1.45; }
.sb-why-list li.is-for::marker { color: #4ade80; }
.sb-why-list li.is-against::marker { color: #f87171; }
.sb-why-list .sb-why-limit { color: #fcd34d; }
.sb-why-list .sb-why-fit { color: var(--muted, #94a3b8); }
.sb-cwhy { margin: 10px 0; padding: 8px 12px; border: 1px solid rgba(148,163,184,.18); border-radius: 10px; }
.sb-cwhy summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent2); }
.sb-cwhy summary:focus { outline: none; }
.sb-cwhy summary:focus-visible { outline: 2px solid var(--accent, #60a5fa); outline-offset: 2px; border-radius: 4px; }
.sb-cwhy ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; font-size: 12.5px; color: #cbd5e1; line-height: 1.45; }
.sb-cwhy-h { margin: 8px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #94a3b8); }
.sb-edits { margin: 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(252,211,77,.4); background: rgba(252,211,77,.07); }
.sb-edits-h { margin: 0; font-size: 13px; font-weight: 700; color: #fcd34d; }
.sb-edits ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: #e2e8f0; line-height: 1.45; }
.sb-edits-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sb-edits--ok { margin: 8px 0; font-size: 12.5px; color: #86efac; border: 0; background: none; padding: 0; }
.sb-dist-tag--link.is-complementary { color: #86efac; border-color: rgba(134,239,172,.35); }
.sb-dist-tag--link.is-competing { color: #fca5a5; border-color: rgba(252,165,165,.35); }
.sb-dist-tag--link.is-shared_exposure { color: #fcd34d; border-color: rgba(252,211,77,.35); }
.sb-dist-tag--link.is-lineup { color: #c4b5fd; border-color: rgba(196,181,253,.35); }
.sb-why-list .sb-why-role { color: #c4b5fd; }
/* v2.3.0 RC8: linemate explanation — listing / recorded history / historical context on separate lines. */
.sb-dist-pair-h { font-weight: 700; color: #e2e8f0; }
.sb-dist-parts { margin: 4px 0 2px; display: grid; gap: 3px; }
.sb-dist-parts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.sb-dist-parts dt { color: var(--muted, #94a3b8); font-size: 11.5px; font-weight: 600; }
.sb-dist-parts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sb-dist-parts > div { grid-template-columns: 1fr; gap: 0; } }

/* ── v2.3.0 RC9 (2026-11-26): less reading — compact settings, results hierarchy, leg cards, relationships ── */
.sb-sub { max-width: 64ch; }
.sb-mod { padding: 10px 12px; }
.sb-mods { gap: 10px; }
.sb-lab .sb-opt, .sb-lab-row .sb-opt { margin-left: 4px; }
.sb-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: .02em; text-transform: none; color: #93c5fd; background: rgba(59,130,246,.14); }
.sb-count--all { color: #86efac; background: rgba(34,197,94,.12); }
/* Prop chips: a check mark on chosen ones; "all included" = every chip shows as included. */
.sb-chk { display: none; width: 9px; height: 5px; margin-right: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.sb-chip.is-on .sb-chk { display: inline-block; }
.sb-chips--props.is-all .sb-chip { border-color: rgba(134,239,172,.35); background: rgba(34,197,94,.07); color: #d1fae5; }
.sb-chips--props.is-all .sb-chk { display: inline-block; opacity: .7; }
/* Profiles: one short line each on every width. */
.sb-profile { padding: 9px 10px; }
.sb-profile-copy { font-size: 11.5px; }
@media (max-width: 639.98px) { .sb-profile-copy { display: block; font-size: 10.5px; line-height: 1.3; } .sb-profile { text-align: center; } }
/* Optional information (progressive disclosure). */
.sb-info { margin-top: 8px; font-size: 12px; color: var(--muted); }
.sb-info summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--accent2); font-weight: 600; }
.sb-info summary::-webkit-details-marker { display: none; }
.sb-info summary::before { content: 'i'; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; font: italic 700 10px/1 Georgia, serif; }
.sb-info ul, .sb-info p { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; line-height: 1.45; }
.sb-info p { padding-left: 0; }
/* Advanced: selects never truncate their (now short) values. */
.sb-adv-grid .sb-field { margin-bottom: 10px; }
.sb-adv-grid .sb-hint { margin-top: 4px; }
select.sb-input { text-overflow: clip; }
.sb-foot-links { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.sb-textbtn--muted { color: var(--muted); font-weight: 600; }
.sb-stale-hint { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: #fcd34d; }
/* Collapsed settings summary (after a build). */
.sb-cfg-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; }
.sb-cfg-sum .sb-lab { margin: 0 0 6px; }
.sb-cfg-sum-t { min-width: 0; flex: 1 1 260px; }
.sb-cfg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.sb-cfg-chips li { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(148,163,184,.1); color: var(--text); }
.sb-cfg-sum-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-cfg-sum .sb-stale-hint { flex-basis: 100%; margin: 0; }
@media (min-width: 1200px) {
  body.sb-is-collapsed .sb-layout { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  body.sb-is-collapsed .sb-cfg-sum { position: sticky; top: 84px; flex-direction: column; align-items: stretch; }
  body.sb-is-collapsed .sb-cfg-sum-act { flex-direction: column; }
  body.sb-is-collapsed .sb-cfg-sum-act .sb-btn { width: 100%; }
}
/* Results header + stale results. */
.sb-ws-head { margin-bottom: 10px; }
.sb-ws-prof { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.sb-stale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(252,211,77,.45); background: rgba(251,191,36,.08); font-size: 13px; font-weight: 600; color: #fde68a; }
.sb-stale[hidden] { display: none; }
.sb-results.is-stale .sb-sums, .sb-results.is-stale .sb-combo { opacity: .55; filter: saturate(.6); }
.sb-gap-m { display: none; font-size: 12.5px; color: var(--muted); margin: -6px 0 10px; }
@media (max-width: 899.98px) { .sb-gap-m { display: block; } }
.sb-sum { gap: 8px; }
/* Selected combination. */
.sb-combo { padding: 16px; }
.sb-combo-head { align-items: center; margin-bottom: 10px; }
.sb-est { align-items: flex-end; gap: 8px 22px; padding: 10px 14px; }
.sb-est-info { flex-basis: 100%; margin-top: 2px; }
.sb-notes { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.22); }
.sb-note--markets { padding: 8px 12px; font-size: 12.5px; }
.sb-note--markets summary { cursor: pointer; font-weight: 600; }
.sb-note--markets ul { margin-top: 6px; }
/* Team distribution. */
.sb-tdist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.sb-tdist-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-tdist-g { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 3px; align-items: center; }
.sb-tdist-t { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.sb-tdist-t:nth-child(2) { justify-self: end; flex-direction: row-reverse; }
.sb-tdist-t b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-tdist-t.is-zero { opacity: .5; }
.sb-tdist-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 5px; min-width: 96px; border-radius: 3px; overflow: hidden; background: rgba(148,163,184,.14); }
.sb-tdist-bar i { display: block; height: 100%; }
/* Leg cards. */
.sb-legs { gap: 8px; }
.sb-leg { padding: 10px 12px; }
.sb-leg-top { display: grid; grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.sb-num { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--tb-bg); color: var(--tb-fg); line-height: 1; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sb-num-n { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-num-t { font-size: 8.5px; font-weight: 800; letter-spacing: .04em; opacity: .85; margin-top: 2px; }
.sb-num:not(:has(.sb-num-n)) .sb-num-t { font-size: 11px; margin: 0; }
.sb-leg-id { min-width: 0; }
.sb-leg-name { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; }
.sb-leg-name:hover { text-decoration: underline; color: #bfdbfe; }
.sb-leg-pick { font-size: 14px; }
.sb-leg-pick .sb-side { font-size: 14.5px; }
.sb-price { align-items: flex-end; }
.sb-price-v { font-size: 16px; font-weight: 800; }
.sb-price--none .sb-price-v { color: var(--muted); }
.sb-leg-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.sb-cells { margin-top: 0; gap: 4px; }
.sb-cell { min-width: 52px; padding: 3px 6px; }
.sb-cell.is-hi { background: rgba(34,197,94,.14); } .sb-cell.is-hi .sb-cell-v { color: #86efac; }
.sb-cell.is-mid { background: rgba(251,191,36,.1); } .sb-cell.is-mid .sb-cell-v { color: #fde68a; }
.sb-cell.is-lo { background: rgba(239,68,68,.12); } .sb-cell.is-lo .sb-cell-v { color: #fca5a5; }
.sb-warn { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.sb-warn li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(251,191,36,.08); font-size: 11.5px; }
.sb-warn-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(251,191,36,.25); font-size: 9.5px; font-weight: 800; }
.sb-warn li.sb-warn--availability { background: rgba(239,68,68,.1); }
.sb-leg-bot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; margin-top: 8px; }
.sb-leg-bot .sb-why { margin: 0; flex: 1 1 220px; min-width: 0; order: 2; }
.sb-leg-bot .sb-why[open] { flex-basis: 100%; }
.sb-leg-actions { margin: 0; gap: 4px; order: 1; }
.sb-act { min-height: 30px; padding: 0 9px; font-size: 12px; }
.sb-why summary { padding: 6px 0; }
.sb-why-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.sb-why-stats > div { padding: 5px 9px; border-radius: 8px; background: rgba(148,163,184,.08); }
.sb-why-stats dt { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.sb-why-stats dd { margin: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-why-stats dd small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sb-why-stats dd.is-high { color: #86efac; } .sb-why-stats dd.is-medium { color: #fde68a; } .sb-why-stats dd.is-low { color: #fca5a5; }
.sb-why-def { font-size: 11.5px !important; color: var(--muted) !important; margin: 0 0 4px !important; }
.sb-why-fit { font-size: 11.5px !important; color: var(--muted) !important; }
/* Footer actions + expandable sections. */
.sb-combo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0 0; }
.sb-sec { margin-top: 10px; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; }
.sb-sec > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 11px 12px; cursor: pointer; list-style: none; }
.sb-sec > summary::-webkit-details-marker { display: none; }
.sb-sec > summary::before { content: ''; align-self: center; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; }
.sb-sec[open] > summary::before { transform: rotate(45deg); }
.sb-sec > summary:focus { outline: none; } .sb-sec > summary:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; border-radius: 12px; }
.sb-sec-t { font-weight: 800; font-size: 13.5px; }
.sb-sec-s { font-size: 12px; color: var(--muted); }
.sb-sec-b { padding: 0 12px 12px; }
.sb-plain { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: 12.5px; color: #cbd5e1; line-height: 1.45; }
/* Player relationships. */
.sb-rgame + .sb-rgame { margin-top: 10px; }
.sb-rgame-h { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 11px; color: var(--muted); }
.sb-rels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.sb-rel { padding: 10px; border-radius: 10px; background: rgba(2,6,23,.35); border: 1px solid rgba(148,163,184,.14); display: grid; gap: 6px; align-content: start; }
.sb-rel[hidden] { display: none; }
.sb-rel-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sb-rplus { color: var(--muted); font-weight: 700; }
.sb-rwho { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sb-rwho .sb-num { width: 28px; height: 28px; border-radius: 7px; }
.sb-rwho .sb-num-n { font-size: 12px; } .sb-rwho .sb-num-t { font-size: 7px; }
.sb-rwho-t { display: flex; flex-direction: column; min-width: 0; }
.sb-rwho a { font-weight: 700; font-size: 13px; color: var(--text); text-decoration: none; }
.sb-rwho a:hover { text-decoration: underline; }
.sb-rwho small { font-size: 11px; color: var(--muted); }
.sb-rel-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sb-rtag { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid rgba(148,163,184,.35); color: #cbd5e1; }
.sb-rtag--proj { color: #c4b5fd; border-color: rgba(196,181,253,.4); }
.sb-rtag--rec { color: #93c5fd; border-color: rgba(147,197,253,.4); }
.sb-rtag--ctx { color: #fde68a; border-color: rgba(253,230,138,.35); }
.sb-rtag--same { color: #fcd34d; border-color: rgba(252,211,77,.35); }
.sb-rstats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.sb-rstats dt { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.sb-rstats dd { margin: 0; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-rstats dd small { font-weight: 600; font-size: 11px; color: var(--muted); }
.sb-rel-note { margin: 0; font-size: 12px; color: #cbd5e1; line-height: 1.4; }
.sb-rel-more summary { cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--accent2); }
.sb-rel-more .sb-dist-parts, .sb-rel-more p { font-size: 12px; color: #cbd5e1; line-height: 1.45; }
.sb-rel-all { margin-top: 8px; }
.sb-rfoot { margin-top: 10px; display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.sb-rfoot p { margin: 0; }
/* Phones. */
@media (max-width: 640px) {
  .sb-combo { padding: 12px; }
  .sb-leg-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sb-leg-pick { grid-column: 2 / 3; grid-row: 2; }
  .sb-price { grid-column: 3; grid-row: 1 / 3; }
  .sb-num { grid-row: 1 / 3; }
  .sb-leg-actions { width: 100%; }
  .sb-act { flex: 1 1 0; min-height: 36px; }
  .sb-combo-foot .sb-combo-actions { width: 100%; }
  .sb-combo-foot .sb-btn { flex: 1 1 auto; }
  .sb-est-v { font-size: 18px; }
}
/* Light theme (where the app sets it). */
:root[data-theme="light"] .sb-cell.is-hi .sb-cell-v { color: #15803d; }
:root[data-theme="light"] .sb-cell.is-mid .sb-cell-v { color: #a16207; }
:root[data-theme="light"] .sb-cell.is-lo .sb-cell-v { color: #b91c1c; }
:root[data-theme="light"] .sb-stale { color: #92400e; }

/* ── v2.3.0 RC10: money / odds fields ──
   One visible field = the .sb-prefix box (currency prefix + bare input).
   The focus ring belongs to that box (:focus-within), never to the inner
   input, so prefix, text, border and ring line up; Target odds uses the same
   box without a prefix. Empty optional fields show a muted italic "e.g."
   example (never a value: an empty field is sent as null) and a dimmed "$";
   typed values use the normal text colour. iOS focus zoom is handled by the
   shared 16 px rule in navbar.css. */
.sb-prefix { min-height: 40px; transition: border-color .12s; }
.sb-prefix--none { padding-left: 0; }
.sb-prefix--none .sb-input { padding-left: 10px; }
.sb-prefix .sb-input { min-height: 38px; outline: none; box-shadow: none; }
.sb-prefix .sb-input:focus, .sb-prefix .sb-input:focus-visible { outline: none; }
.sb-prefix:focus-within { border-color: rgba(96,165,250,.6); outline: 2px solid var(--accent2); outline-offset: 2px; }
.sb-input::placeholder { color: rgba(148,163,184,.55); font-style: italic; font-weight: 400; opacity: 1; }
.sb-prefix:has(.sb-input:placeholder-shown) > span { color: rgba(148,163,184,.5); }
.sb-prefix > span { color: #cbd5e1; }
/* Profiles on phones: the full names, never "Conserva…". The three-card row
   stays; the name may shrink a little but never truncates. */
@media (max-width: 639.98px) {
  .sb-profiles { gap: 5px; }
  .sb-profile { padding: 9px 2px; min-width: 0; }
  .sb-profile-name { white-space: nowrap; overflow: visible; text-overflow: clip; font-size: min(12.5px, 3vw); letter-spacing: -.015em; }
}
