/* The New league form's setup and season preview (public/lib/season-setup.js), on the Leagues page.
   Built from the app's tokens (style.css); kept in its own file so the main stylesheet can change around it. */
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 22px; align-items: start; }
.sfield { display: grid; gap: 6px; min-width: 0; }
.sfield .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.sfield .hint, .spreview .hint { font-size: 12.5px; color: var(--muted); }
.sfield .sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg); width: max-content; }
.stepper button { font: inherit; font-size: 17px; width: 36px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--sunk); }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper input, .stepper output { width: 64px; text-align: center; font: inherit; font-family: var(--f-mono); font-size: 17px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--fg); padding: 4px; display: grid; place-items: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.sm button { width: 28px; font-size: 15px; }
.stepper.sm output { width: 44px; font-size: 14px; }
.quick { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.quick button { font: inherit; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 0 9px; cursor: pointer; }
.quick button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: max-content; max-width: 100%; }
.seg button { font: inherit; font-size: 13.5px; border: 0; background: var(--bg); color: var(--muted); padding: 6px 11px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.spreview { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: grid; gap: 16px; }
.spreview .prow { justify-content: space-between; }
.spreview h3 { font-size: 15px; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fact { background: var(--surface); padding: 9px 12px; display: grid; gap: 2px; }
.fact b { font-family: var(--f-mono); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; color: var(--muted); }
.notes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.notes li { font-size: 13.5px; padding: 6px 10px; border-radius: 4px; border-left: 3px solid var(--muted); background: var(--sunk); }
.notes li.warn { border-color: var(--warn); }
.notes li.bad { border-color: var(--bad); color: var(--bad); }
.notes li.ok { border-color: var(--good); }
.scols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .scols { grid-template-columns: minmax(0, 1fr); } }
.seatchips { display: flex; flex-wrap: wrap; gap: 6px; }
.seatchip { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.seatchip.new { border-style: dashed; }
.poolbar { display: flex; height: 24px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.poolbar div { height: 100%; display: grid; place-items: center; font-size: 11px; font-family: var(--f-mono); white-space: nowrap; overflow: hidden; }
.poolbar .d { background: var(--fg); color: var(--bg); }
.poolbar .left { background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, var(--line) 6px 8px); color: var(--fg); }
.poolbar .short { background: var(--bad); color: #fff; }
.spreview .schedscroll { max-height: 380px; overflow: auto; }
.spreview .sched td { font-size: 12.5px; vertical-align: top; }
.spreview .sched td.wk { font-family: var(--f-mono); color: var(--muted); width: 1%; white-space: nowrap; }
.spreview .sched .m { display: inline-block; margin-right: 10px; white-space: nowrap; }
.spreview .sched .bye { color: var(--muted); font-style: italic; }
.spreview .sched tr.cycle td { border-top: 2px solid var(--muted); }
.spreview .sched tr.release td { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.matrix td, .matrix th { text-align: center; padding: 4px; font-family: var(--f-mono); font-size: 12px; min-width: 32px; }
.matrix th.rowh { text-align: right; font-family: var(--f-body); }
.matrix td.self { background: var(--sunk); }
.matrix td.more { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); }
