.sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin-bottom: 14px; }
.sec > h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.row { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 8px; align-items: stretch; margin-bottom: 8px; }
.row.d { max-width: 66%; }
.row .lbl { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); font-size: 12px; }
.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.unit-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.unit { display: grid; gap: 6px; margin-bottom: 8px; }
.slot { container-type: inline-size; min-height: 74px; border: 1.5px dashed var(--line); border-radius: 10px; position: relative; display: flex; }
.slot .ph { margin: auto; color: #4b5877; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.slot.over, .bench.over { border-color: var(--accent); background: #4aa3ff14; }
.slot > .tile { flex: 1; }
.slot-tag { position: absolute; top: -8px; left: 8px; background: var(--panel); padding: 0 5px; font-size: 10px; letter-spacing: .06em; color: #5f6d8e; font-weight: 700; z-index: 1; }
.compact .slot { min-height: 52px; }
@media (max-width: 700px) { .row.d { max-width: none; } }

/* ---- light ice theme (NHL only; shared styles read these variables) ---- */
:root {
  --bg: #e6eff8; --panel: #f8fbfe; --panel-2: #e3edf7; --tile: #ffffff; --line: #c3d5e6;
  --text: #0f2236; --muted: #587089; --accent: #1f5fbf; --warn: #d98a00;
  color-scheme: light;
}
body { background: linear-gradient(180deg, #f3f9fe, #dce8f3) fixed; }
.topbar { box-shadow: 0 1px 0 #c3d5e6, 0 4px 14px #1f5fbf14; border-top: 3px solid #c8102e; }
.brand span { color: #c8102e; }
.sports a.on { background: #e3edf7; }
.btn { background: #fff; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.changes { color: #c8102e; }
.banner { background: #fff3d1; border-color: #e6c36a; color: #6b4a00; }
.source a { color: #1f5fbf; }
.sec { background: linear-gradient(180deg, #ffffff, #eef5fb); box-shadow: 0 1px 6px #1f5fbf14; }
.sec > h3 { color: #1f5fbf; }
.slot { border-color: #b3c9de; background: #ffffff55; }
.slot .ph { color: #8aa3bd; }
.slot-tag { color: #6f8aa6; background: #f4f9fd; }
.unit-title, .row .lbl { color: #587089; }
.bench { box-shadow: 0 2px 10px #1f5fbf18; }
.bench h5, .bench .empty { color: #6f8aa6; }
.tile { box-shadow: 0 1px 3px #1f3a5a22; }
.tile:hover { border-color: #1f5fbf; }
.tile.changed { box-shadow: inset 3px 0 0 #1f5fbf, 0 1px 3px #1f3a5a22; }
.tile .face { background: #d6e4f1; color: #587089; }
.tile .num { color: #587089; }
.chip { background: #14304f; color: #fff; }
.chip.alt { background: transparent; border: 1px solid #a9c0d6; color: #587089; }
.chip.hand { background: #e3edf7; color: #3d5a78; }
.chip.inj { background: #fbdcd8; color: #a1231a; }
.chip.gtd { background: #fdecc4; color: #8a5600; }
.chip.new { background: #d4f0e1; color: #14663f; }
.stats b { color: var(--text); }
.tile .x { background: #0000000f; }
.tile.ghost { box-shadow: 0 14px 34px #14304f66; }
.popover, .modal-card { box-shadow: 0 18px 50px #14304f44; }
.popover input, .modal input, .modal select { background: #fff; }
.team-grid button:hover { background: #e3edf7; }
.results button { background: #fff; }
