/* Multi-lineup optimizer — Clean Pro Light. External file. */
[hidden], .lh-opt-legacy { display: none !important; }
.lh-opt-settings {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.85rem 0.9rem 0.7rem;
  margin: 0 0 0.75rem;
}
.lh-opt-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}
.lh-opt-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.lh-opt-fields input,
.lh-opt-fields select {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg);
  min-height: 2.15rem;
  width: 100%;
}
.lh-opt-fields input:focus,
.lh-opt-fields select:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.lh-opt-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0 !important;
}
.lh-opt-check input { width: auto; min-height: 0; accent-color: var(--navy); }
.lh-opt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}
.lh-opt-hint,
.lh-opt-msg {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  color: var(--ink);
}
.lh-opt-msg[hidden] { display: none; }

.lh-opt-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0.75rem 0 1rem;
}
.lh-lu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.75rem 0.55rem;
  box-shadow: var(--shadow);
}
.lh-lu-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.lh-lu-card h3 {
  margin: 0;
  font-size: 0.95rem;
}
.lh-lu-card header p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}
.lh-lu-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lh-lu-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  padding: 0.28rem 0.2rem 0.28rem 0.45rem;
  border-left: 3px solid var(--lh-rail, var(--line));
  font-size: 0.82rem;
}
.lh-lu-row b {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.lh-lu-name { font-weight: 650; }
.lh-lu-name .sub { display: inline; margin-left: 0.25rem; color: var(--muted); font-weight: 600; font-size: 0.72rem; }
.lh-opt-phone-meta { display: none; }
.lh-lu-row .num { font-variant-numeric: tabular-nums; color: var(--ink); }
.lh-lu-stats { font-variant-numeric: tabular-nums; white-space: nowrap; }

.lh-opt-exposure { margin: 0 0 1.1rem; }
.lh-opt-bar-cell { min-width: 4.5rem; vertical-align: middle; }
.lh-opt-bar {
  display: block;
  height: 0.45rem;
  background: var(--row);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.lh-opt-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--navy);
  border-radius: 999px;
}
[data-opt-exp-table] tr[style*="--lh-rail"] td:first-child {
  box-shadow: inset 3px 0 0 var(--lh-rail);
}

/* Pool lock / exclude — first column, high contrast, easy to find. */
.lh-opt-pickbar {
  scroll-margin-top: 8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
}
.lh-opt-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}
.lh-opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  padding: 0.3rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}
.lh-opt-pill-lock.is-on {
  background: #0d7a3d;
  border-color: #0a5c2e;
  color: #fff;
}
.lh-opt-pill-ex.is-on {
  background: #b42318;
  border-color: #7a160f;
  color: #fff;
}
.lh-opt-clear-locks {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}
.lh-opt-clear-locks:hover { background: var(--ink); color: #fff; }
.lh-opt-clear-locks:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lh-opt-pick-help {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.lh-opt-acts, .lh-opt-acts-col {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.lh-opt-act-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 7.1rem;
}
.lh-opt-lock,
.lh-opt-ex,
.lh-opt-more {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  white-space: nowrap;
}
.lh-opt-act-group .lh-opt-lock,
.lh-opt-act-group .lh-opt-ex { width: 100%; }
.lh-opt-more { width: auto; min-width: 3.4rem; }
.lh-opt-ico { flex: 0 0 auto; display: block; }
.lh-opt-act-label { line-height: 1; }
.lh-opt-lab-on, .lh-opt-lab-undo { display: none; }
.lh-opt-lock[aria-pressed="true"] .lh-opt-lab-off { display: none; }
.lh-opt-lock[aria-pressed="true"] .lh-opt-lab-on { display: inline; }
.lh-opt-lock:hover, .lh-opt-ex:hover, .lh-opt-more:hover { background: #f4f1ea; }
.lh-opt-lock:focus-visible,
.lh-opt-ex:focus-visible,
.lh-opt-more:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lh-opt-lock[aria-pressed="true"] {
  background: #0d7a3d;
  border-color: #e8a01a;
  color: #fff;
}
.lh-opt-ex[aria-pressed="true"] {
  background: #b42318;
  border-color: #7a160f;
  color: #fff;
}
@media (hover: hover) {
  .lh-opt-lock[aria-pressed="true"]:hover .lh-opt-lab-on { display: none; }
  .lh-opt-lock[aria-pressed="true"]:hover .lh-opt-lab-undo { display: inline; }
}
tr.lh-opt-is-lock > td { background: #d8f5e4; }
tr.lh-opt-is-ex > td { background: #fde8e6; }
tr.lh-opt-is-ex { opacity: 1; }
tr.lh-opt-out td.player-cell .sub { color: #9a3b3b; font-weight: 700; }
.lh-opt-ov {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  margin-left: 0.15rem;
}
[data-opt-pool] input[type="number"] {
  width: 3.6rem;
  max-width: 100%;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.15rem 0.3rem;
  background: var(--bg);
}
[data-opt-pool] input[type="number"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* Phone: hide wide exposure/override/matchup/value columns; More opens a sheet. */
.lh-opt-more-col { display: none; }

.lh-opt-sheet {
  position: fixed;
  inset: 0;
  background: rgba(19, 32, 51, 0.35);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
}
.lh-opt-sheet-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem 0.85rem 0.5rem 0.5rem;
  padding: 1rem 1rem 0.9rem;
  width: min(100%, 26rem);
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}
.lh-opt-sheet-name { margin: 0 0 0.2rem; font-weight: 800; }
.lh-opt-sheet-card label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.lh-opt-sheet-card input {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.45rem 0.5rem;
}

@media (min-width: 720px) {
  .lh-opt-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lh-opt-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .lh-opt-fields { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lh-opt-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lh-opt-check { grid-column: span 2; }
}

/* Side-by-side Lock + Exclude on wide desktops; stack below that so the first column stays narrow. */
@media (min-width: 1100px) {
  .lh-opt-act-group {
    flex-direction: row;
    min-width: 12.2rem;
    align-items: stretch;
  }
}
/* Keep Min % / Max % / Override behind the More sheet until the viewport is wide enough. */
@media (max-width: 1399px) {
  .lh-opt-wide { display: none !important; }
  .lh-opt-more-col { display: table-cell; vertical-align: middle; }
}
@media (max-width: 639px) {
  .lh-opt-wide,
  .lh-opt-desk,
  [data-opt-pool] th.pos,
  [data-opt-pool] td.pos { display: none !important; }
  /* Player is column 3; keep it visible and un-stick so names aren't covered. */
  [data-opt-pool] th.player-cell,
  [data-opt-pool] td.player-cell,
  [data-opt-pool] th:nth-child(3),
  [data-opt-pool] td:nth-child(3) { display: table-cell !important; min-width: 0 !important; max-width: none; }
  [data-opt-pool].lh-table th.player-cell,
  [data-opt-pool].lh-table td.player-cell,
  [data-opt-pool].lh-table th.pos,
  [data-opt-pool].lh-table td.pos {
    position: static;
    left: auto;
    box-shadow: none;
  }
  [data-opt-pool] td.player-cell .sub { font-size: 0.9rem !important; color: var(--ink) !important; }
  [data-opt-pool] { table-layout: fixed; }
  [data-opt-pool] .lh-opt-acts,
  [data-opt-pool] .lh-opt-acts-col { width: 7.6rem; }
  [data-opt-pool] .player-cell { width: auto; }
  [data-opt-pool] .lh-opt-more-col { width: 3.8rem; }
  [data-opt-pool] .lh-opt-more { width: 100%; }

  .lh-opt-phone-meta { display: block !important; font-size: 0.9rem; color: var(--ink); font-weight: 700; margin-top: 0.1rem; }
  .lh-opt-more-col { display: table-cell; vertical-align: middle; }
  .lh-opt-act-group { min-width: 6.8rem; }
  .lh-opt-lock, .lh-opt-ex, .lh-opt-more { padding: 0.3rem 0.4rem; font-size: 0.9rem; min-height: 36px; }
  .lh-opt-pickbar { padding: 0.65rem 0.7rem; }
  .lh-opt-pick-help { font-size: 0.95rem; }

  [data-opt-exp-table] th:nth-child(3),
  [data-opt-exp-table] td:nth-child(3),
  [data-opt-exp-table] th:nth-child(5),
  [data-opt-exp-table] td:nth-child(5) { display: none !important; }
  .lh-opt-bar-cell { min-width: 3.2rem; }
  .lh-opt-actions .btn { flex: 1 1 auto; }
  .lh-lu-row { grid-template-columns: 2.2rem 1fr; align-items: start; }
  .lh-lu-stats { grid-column: 2; font-size: 0.9rem; color: var(--ink); }
  .lh-lu-card header { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .lh-lu-card header p { text-align: left; }
}

/* Keep pool toggles usable when table-ui densifies cells */
[data-opt-pool].lh-table .lh-opt-acts,
[data-opt-pool].lh-table .lh-opt-more-col { padding-left: 0.3rem; padding-right: 0.3rem; }

/* Nov 26 2026: no overflow on phones once lineups are built, and no tiny text in the pool. */
.lh-opt-chrome, .lh-opt-settings, .lh-opt-results, .lh-lu-card, .lh-lu-card ol, .lh-lu-row, .lh-opt-pickbar { min-width: 0; max-width: 100%; }
[data-opt-board] .table-wrap { max-width: 100%; overflow-x: auto; }
[data-opt-pool] { width: 100%; max-width: 100%; }
[data-opt-pool] th, [data-opt-pool] td { box-sizing: border-box; }
[data-opt-pool] .player-cell { min-width: 0; overflow-wrap: anywhere; }
[data-opt-pool] .lh-opt-desk { overflow-wrap: anywhere; }
.lh-opt-results { grid-template-columns: minmax(0, 1fr); }
.lh-lu-name { min-width: 0; overflow-wrap: anywhere; }
.lh-opt-actions { flex-wrap: wrap; }
@media (min-width: 720px) { .lh-opt-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .lh-opt-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .lh-lu-row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .lh-opt-fields label { min-width: 0; }
  .lh-opt-fields input, .lh-opt-fields select { min-width: 0; max-width: 100%; }
  .lh-opt-actions .btn { white-space: normal; }
  .lh-opt-phone-meta { font-size: 0.9rem !important; color: var(--ink) !important; }
  .lh-lu-stats { font-size: 0.9rem; color: var(--ink); }
  .lh-opt-lock, .lh-opt-ex, .lh-opt-more { font-size: 0.9rem; padding: 0.3rem 0.4rem; min-height: 36px; color: var(--ink); }
  [data-opt-pool] td, [data-opt-pool] td span, [data-opt-pool] td div, [data-opt-pool] td small,
  .lh-opt-results li, .lh-opt-results li span { font-size: max(0.9rem, 1em) !important; }
  [data-opt-pool] { table-layout: fixed !important; width: 100% !important; }
  [data-opt-pool] .lh-opt-acts,
  [data-opt-pool] .lh-opt-acts-col { width: 7.6rem !important; }
  [data-opt-pool] .lh-opt-acts-col {
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
  }
  [data-opt-pool] .lh-opt-more-col { width: 3.8rem !important; }
  [data-opt-pool] .player-cell { min-width: 0 !important; width: auto; }
}
.lh-lu-row { font-size: 0.95rem; }
.lh-lu-row b { font-size: 0.85rem; color: var(--ink); }
.lh-lu-name .sub { font-size: 0.9rem; color: #334155; }
.lh-opt-lock[aria-pressed="true"] { color: #fff; }
.lh-opt-ex[aria-pressed="true"] { color: #fff; }

/* NFL Showdown slate switcher + CPT/FLEX badges (Nov 27 2026) */
.lh-opt-slates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 0.7rem;
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: calc(var(--header-h, 4.4rem) + 4.2rem);
  position: relative;
  z-index: 1;
}
.lh-opt-slates[hidden] { display: none !important; }
.lh-opt-slates-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.lh-opt-slate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}
.lh-opt-slate-btn {
  appearance: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  min-height: 2.6rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  white-space: normal;
}
.lh-opt-slate-btn:hover, .lh-opt-slate-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}
.lh-opt-slate-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.lh-opt-slate-short { display: none; }
.lh-opt-slate-more-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  max-width: 100%;
}
.lh-opt-slate-more-wrap[hidden] { display: none !important; }
.lh-opt-slate-more {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 0.5rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.6rem;
  max-width: 100%;
}
.lh-opt-slate-hint {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.lh-opt-slate-hint[hidden] { display: none !important; }
.lh-lu-row {
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
}
.lh-lu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.lh-lu-badge-cpt {
  background: var(--gold);
  color: var(--navy);
}
.lh-lu-badge-flex {
  background: var(--navy);
  color: #fff;
}
.lh-lu-row-cpt { background: rgba(201, 162, 39, 0.12); }
.lh-lu-mult {
  font-weight: 800;
  color: var(--navy);
}
@media (max-width: 639px) {
  .lh-opt-slate-full { display: none; }
  .lh-opt-slate-short { display: inline; }
  .lh-opt-slate-btn, .lh-opt-slate-more { width: 100%; }
  .lh-opt-slate-pills { flex-direction: column; width: 100%; }
  .lh-opt-slates { padding: 0.65rem 0.7rem; }
  .lh-lu-row { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .lh-lu-badge { font-size: 0.85rem; min-width: 3.6rem; }
}
/* Cash mode (optimizer, owner only) */
.lh-opt-cash { display: flex; flex-direction: column; gap: .35rem; background: #fff6dc; border: 2px solid var(--gold); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 .8rem; font-size: 1.05rem; }
.lh-opt-cash label { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.lh-opt-cash input { width: 1.3rem; height: 1.3rem; }
.lh-opt-cash p { margin: 0; font-size: 1.05rem; color: var(--ink); }

/* Sport switcher on /{sport}/optimizer — large enough to tap, stays on this tool */
.lh-opt-sports { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0 0 0.9rem; }
.lh-opt-sports-label { font-size: 1rem; font-weight: 800; color: var(--ink); margin-right: 0.15rem; }
a.lh-opt-sport { display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 800; line-height: 1.2; padding: 0.55rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
a.lh-opt-sport.is-on, a.lh-opt-sport[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 639px) {
  .lh-opt-sports { width: 100%; }
  a.lh-opt-sport { flex: 1 1 auto; min-height: 2.75rem; }
}

/* Games filter: All / Early / Late / Night — always visible, large, solid ink */
.lh-opt-windows {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  margin: 0.35rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.lh-opt-windows[hidden] { display: none !important; }
/* When the row sits under the full-bleed game strip, match that strip's width. */
.lh-opt-windows-top {
  width: min(100% - 1.5rem, var(--max, 80rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.lh-opt-windows-label {
  font-size: max(16px, 1.05rem);
  font-weight: 800;
  color: var(--ink);
  margin-right: 0.2rem;
}
.lh-opt-windows-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  flex: 1 1 auto;
}
button.lh-opt-window {
  font: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  font-size: max(16px, 1.05rem);
  font-weight: 800;
  line-height: 1.2;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  min-height: 3.1rem;
  opacity: 1;
}
button.lh-opt-window .lh-opt-window-name {
  font-size: max(16px, 1.05rem);
  font-weight: 800;
  color: inherit;
}
button.lh-opt-window .lh-opt-window-meta {
  font-size: max(15px, 1rem);
  font-weight: 700;
  color: inherit;
}
button.lh-opt-window.is-on,
button.lh-opt-window[aria-pressed="true"]:not(:disabled) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
button.lh-opt-window:disabled,
button.lh-opt-window.is-off,
button.lh-opt-window[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1 !important;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  background: #e2e8f0;
  border-color: #1e293b;
}
.lh-opt-windows-note {
  flex: 1 0 100%;
  margin: 0;
  font-size: max(15px, 1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.lh-opt-window-hide { display: none !important; }
button.lh-opt-go-classic {
  margin-left: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: max(15px, 1rem);
  font-weight: 800;
  color: #0b1220;
  background: #fbbf24;
  border: 2px solid #0b1220;
  border-radius: 999px;
  cursor: pointer;
}
@media (max-width: 639px) {
  .lh-opt-windows { width: 100%; padding: 0.7rem; }
  .lh-opt-windows-pills { width: 100%; }
  button.lh-opt-window { flex: 1 1 calc(50% - 0.5rem); min-height: 3.25rem; }
}


/* Nov 28 typography polish: no text under 15px, no faint placeholders or muted labels.
   Lineup cards stay two-wide at 1280 so titles and names fit on one line. */
.lh-opt-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.65rem;
}
.lh-opt-fields label {
  font-size: max(15px, 1rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.25;
}
.lh-opt-fields input,
.lh-opt-fields select {
  font-size: max(16px, 1rem);
  font-weight: 600;
  color: var(--ink);
  min-height: 2.5rem;
}
.lh-opt-fields input::placeholder {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  font-weight: 700;
}
.lh-opt-fields input::-webkit-input-placeholder {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  font-weight: 700;
}
.lh-opt-fields input::-moz-placeholder {
  color: #334155 !important;
  opacity: 1 !important;
  font-weight: 700;
}
.lh-opt-check {
  flex-direction: row !important;
  font-size: max(16px, 1rem) !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  grid-column: 1 / -1;
}
.lh-opt-check input { width: 1.15rem; height: 1.15rem; min-height: 0; }

@media (min-width: 720px) {
  .lh-opt-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Keep four-up on desktop so 15px labels and 16px inputs have room; checkbox stays full width. */
@media (min-width: 980px) {
  .lh-opt-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lh-opt-check { grid-column: 1 / -1; }
}

.lh-opt-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 800px) {
  .lh-opt-results { grid-template-columns: repeat(2, minmax(20rem, 1fr)); }
}
@media (min-width: 980px) {
  .lh-opt-results { grid-template-columns: repeat(2, minmax(20rem, 1fr)); }
}

.lh-lu-card header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
}
.lh-lu-card h3 {
  font-size: max(16px, 1rem);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.lh-lu-card header p {
  font-size: max(15px, 1rem);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}
.lh-lu-row { font-size: max(16px, 1rem); }
.lh-lu-row b { font-size: max(15px, 1rem); font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.lh-lu-name {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lh-lu-name .sub { font-size: max(15px, 1rem); font-weight: 700; color: #334155; }
.lh-lu-stats { font-size: max(16px, 1rem); color: var(--ink); white-space: nowrap; }
.lh-lu-badge { font-size: max(15px, 1rem); }

.opt-status { font-size: max(16px, 1rem); font-weight: 700; color: var(--ink); }
[data-dfs-optimizer] .section-note,
[data-dfs-optimizer] .st-lede { font-size: max(16px, 1rem); color: var(--ink); }
[data-dfs-optimizer] .pill-row .pill-label {
  font-size: max(15px, 1rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}
[data-dfs-optimizer] .plan-flag {
  font-size: max(15px, 1rem);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
}
[data-dfs-optimizer] .salary-bar,
[data-opt-bar] { font-size: max(16px, 1rem); font-weight: 800; color: var(--ink); }
[data-dfs-optimizer] table.data caption,
[data-opt-pool] caption {
  font-size: max(15px, 1rem);
  font-weight: 700;
  color: #334155;
}
[data-opt-pool],
[data-opt-pool].lh-table { font-size: max(16px, 1rem); }
[data-opt-pool] th,
[data-opt-pool].lh-table thead th { font-size: max(15px, 1rem); }
[data-opt-pool] td.pos,
[data-opt-pool] .pos { font-size: max(15px, 1rem); }
[data-opt-pool] td.player-cell .sub,
[data-opt-pool] .player-cell .sub { font-size: max(15px, 1rem) !important; color: #334155 !important; }
[data-opt-pool] input[type="number"] { font-size: max(16px, 1rem); }
[data-opt-exp-table],
[data-opt-exp-table].lh-table,
[data-opt-exp-table].data { font-size: max(16px, 1rem); }
[data-opt-exp-table] th { font-size: max(15px, 1rem); }
.lh-opt-ov { font-size: max(15px, 1rem); }
.lh-opt-lock, .lh-opt-ex, .lh-opt-more { font-size: max(15px, 1rem); }
.lh-opt-pill { font-size: max(15px, 1rem); }
.lh-opt-pick-help { font-size: max(16px, 1rem); font-weight: 700; color: var(--ink); }
.lh-opt-sheet-card label { font-size: max(15px, 1rem); color: var(--ink); }
.lh-opt-sheet-card input { font-size: max(16px, 1rem); }
.lh-opt-phone-meta { font-size: max(15px, 1rem) !important; color: var(--ink) !important; }
.lh-opt-slates-label,
.lh-opt-slate-btn,
.lh-opt-slate-more,
.lh-opt-slate-hint { font-size: max(16px, 1rem); color: var(--ink); }
.lh-opt-slate-btn[aria-pressed="true"] { color: #fff; }

/* Game strip on the optimizer page only (this stylesheet is not loaded elsewhere). */
.st-slate-time { font-size: max(15px, 1rem); font-weight: 800; color: #334155; text-transform: none; letter-spacing: 0; }
.st-slate button.is-active .st-slate-time { color: #fff; }
.st-slate-teams { font-size: max(16px, 1rem); }
.st-slate-line { font-size: max(15px, 1rem); font-weight: 700; color: #334155; }
.st-slate button.is-active .st-slate-line { color: #fff; }
.st-slate-all { font-size: max(16px, 1rem); }
.st-slate-count { font-size: max(15px, 1rem); font-weight: 700; color: #334155; }
.st-slate-label { font-size: max(15px, 1rem); font-weight: 800; color: #334155; }

[data-dfs-optimizer] .play-notice,
[data-dfs-optimizer] .play-notice-short { font-size: max(15px, 1rem); color: var(--ink); }

@media (max-width: 639px) {
  .lh-opt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-opt-check { grid-column: 1 / -1; }
  .lh-opt-results { grid-template-columns: 1fr; }
  .lh-lu-card header p { white-space: normal; }
  [data-opt-pool] td, [data-opt-pool] td span, [data-opt-pool] td div, [data-opt-pool] td small,
  .lh-opt-results li, .lh-opt-results li span { font-size: max(16px, 1rem) !important; }
  .lh-opt-lock, .lh-opt-ex, .lh-opt-more { font-size: max(15px, 1rem); }
  .lh-lu-badge { font-size: max(15px, 1rem); }
  .lh-opt-phone-meta { font-size: max(15px, 1rem) !important; }
}
/* Off-day / no-slate message: solid ink, 16px+. */
p[data-opt-empty] { font-size: 17px; font-weight: 700; color: #0b1f3a; }

/* ---------- Lineup style selector + Tournament mode (owner only) ---------- */
fieldset.lh-opt-mode { min-width: 0; }
.lh-opt-mode legend { font-weight: 800; font-size: 1.1rem; color: var(--ink); padding: 0 .3rem; }
.lh-opt-mode-tag { font-size: 1rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; }
.lh-opt-mode-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.lh-opt-cash .lh-opt-mode-pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .85rem; background: #fff; border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
.lh-opt-cash .lh-opt-mode-pill:has(input:checked) { background: var(--navy); color: #fff; }
.lh-opt-cash .lh-opt-mode-pill input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); margin: 0; }
.lh-opt-gpp-opts { display: flex; flex-direction: column; gap: .55rem; margin-top: .3rem; padding-top: .6rem; border-top: 1px solid var(--gold); }
.lh-opt-gpp-opts[hidden] { display: none; }
.lh-opt-gpp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.lh-opt-gpp-grid label { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: default; }
.lh-opt-gpp-grid label[hidden] { display: none; }
.lh-opt-gpp-grid select, .lh-opt-gpp-grid input { font-size: 1rem; min-height: 44px; padding: .35rem .5rem; border: 1px solid #8a94a6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; height: auto; }
.lh-opt-cash .lh-opt-gpp-opts .lh-opt-check { font-weight: 700; font-size: 1rem; }
.lh-opt-cash .lh-opt-gpp-opts .lh-opt-check[hidden] { display: none; }
.lh-opt-cash .lh-opt-gpp-opts .lh-opt-check input { width: 1.15rem; height: 1.15rem; }
.lh-opt-cash p.lh-opt-gpp-how, .lh-opt-cash p.lh-opt-gpp-chalk { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.lh-opt-gpp-chalk { background: #fff; border-radius: 8px; padding: .5rem .65rem; }
.lh-lu-gpp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .2rem 0 .4rem; }
.lh-lu-gpp-nums div { background: #f3f5f9; border-radius: 8px; padding: .35rem .5rem; }
.lh-lu-gpp-nums dt { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.lh-lu-gpp-nums dd { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.lh-lu-stack { font-size: 1rem; color: var(--ink); margin: 0 0 .4rem; line-height: 1.4; }
.lh-lu-gpp .lh-lu-stats, .lh-lu-gpp .lh-lu-stats .num { font-size: 15px; color: var(--ink); }
@media (max-width: 639px) {
  .lh-opt-mode-pills { flex-direction: column; }
  .lh-opt-cash .lh-opt-mode-pill { width: 100%; }
  .lh-opt-gpp-grid { grid-template-columns: 1fr; }
  .lh-lu-gpp .lh-lu-stats { white-space: normal; }
}
.lh-opt-mode, .lh-opt-gpp-opts, .lh-opt-gpp-grid label { text-align: left; }
.lh-opt-gpp-grid { align-items: end; }
.lh-opt-cash .lh-opt-gpp-opts .lh-opt-check input[type="checkbox"] { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
[data-opt-mode-on="gpp"] .lh-opt-fields label:has([data-opt-stack-team]),
[data-opt-mode-on="gpp"] .lh-opt-fields label:has([data-opt-stack-min]) { display: none; }
.lh-opt-cash .lh-opt-gpp-grid label { align-items: stretch; justify-content: flex-end; text-align: left; }

/* Track this lineup (owner) — Nov 29 2026 */
.lh-lu-track { margin: 0.35rem 0 0.5rem; padding: 0.55rem 0.7rem; border: 2px solid #1f4e8c; border-radius: 8px; background: #eef4ff; }
.lh-lu-track label { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 16px; font-weight: 700; color: #0b1f3a; cursor: pointer; line-height: 1.35; min-height: 32px; }
.lh-lu-track input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: #1f4e8c; cursor: pointer; }
.lh-lu-track-sub { font-weight: 400; color: #0b1f3a; }
.lh-lu-track-msg { margin: 0.4rem 0 0; font-size: 15px; line-height: 1.4; color: #0b1f3a; }
.lh-lu-track-msg.is-on { color: #0b5a2a; font-weight: 600; }
.lh-lu-track-msg.is-err { color: #9b1c1c; font-weight: 600; }
.lh-lu-card.is-tracked .lh-lu-track { background: #e8f7ee; border-color: #0b7a3b; }

/* owner-side injury tag on built lineup rows (Dec 1 2026) */
.lh-lu-inj { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; font-size: 15px; font-weight: 800; line-height: 1.35; vertical-align: middle; }
.lh-lu-inj-q { background: #fff1cc; color: #6b4500; }
.lh-lu-inj-d, .lh-lu-inj-out { background: #fde2e1; color: #8a1410; }
/* Pre-lock late news (Dec 4 2026) */
.lh-prelock { margin: 1rem 0; padding: 0.9rem 1rem; border: 2px solid #0b1f3a; border-radius: 10px; background: #fff; color: #0b1f3a; }
.lh-prelock h3 { margin: 0 0 0.35rem; font-size: 19px; }
.lh-prelock-sub, .lh-prelock-ok { margin: 0.2rem 0 0.5rem; font-size: 15px; line-height: 1.45; color: #0b1f3a; }
.lh-prelock-flag { border-top: 1px solid #c9d3e0; padding: 0.55rem 0; }
.lh-prelock-flag p { margin: 0.15rem 0; font-size: 16px; line-height: 1.45; color: #0b1f3a; }
.lh-prelock-where { font-size: 15px; color: #33475f; }
.lh-prelock-swap { font-weight: 500; }
.lh-prelock-swap.is-none { color: #8a1410; }
.lh-ls-news { margin: 0.75rem 0; padding: 0.75rem 0.9rem; border: 2px solid #0b1f3a; border-radius: 10px; background: #fff; }
.lh-ls-news h4 { margin: 0 0 0.3rem; font-size: 17px; color: #0b1f3a; }
.lh-opt-oc-tag { font-weight: 700; color: #0b5a2a; }
.lh-opt-sheet-oc { font-size: 15px; line-height: 1.4; }
.lh-ls-news .btn { max-width: 100%; white-space: normal; text-align: left; }
