/* League manager pages (separate from archive stats) */

.lg-wrap {
  max-width: 52rem;
  margin: 0 auto;
}
.lg-wrap.lg-community {
  max-width: 68rem;
}

/* ===== Community league home ===== */
.cm-hero {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(135deg, #0b3d91 0%, #1a73e8 48%, #3b82f6 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.2rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.22);
}
.cm-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.cm-hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cm-hero-tag {
  margin: 0;
  opacity: 0.92;
  font-size: 0.92rem;
  max-width: 28rem;
  line-height: 1.45;
}
.cm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.cm-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}
.cm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.cm-hero-actions .lg-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.cm-hero-actions .lg-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.cm-hero-actions .lg-btn.primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1a1a1a;
}
.cm-hero-actions .lg-btn.primary:hover {
  filter: brightness(1.05);
  background: #fbbf24;
}

.cm-you {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
  align-items: center;
  padding: 1rem 1.15rem !important;
  border: 1px solid var(--chip-border, #bfdbfe);
  background: linear-gradient(180deg, var(--chip-bg, #eff6ff) 0%, var(--main-surface, #fff) 70%);
}
@media (max-width: 700px) {
  .cm-you { grid-template-columns: 1fr; }
}
.cm-you-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.cm-you-avatar { flex-shrink: 0; }
.cm-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.cm-you-team {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
  line-height: 1.2;
}
.cm-you-sub {
  font-size: 0.82rem;
  color: var(--main-text-muted, #6b7280);
  margin-top: 0.15rem;
}
.cm-you-vs { min-width: 0; }
.cm-you-opp { margin-top: 0.25rem; font-size: 0.9rem; }
.cm-vs-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.cm-vs-badge {
  font-size: 0.65rem;
  font-weight: 900;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
  letter-spacing: 0.04em;
}
html[data-theme="dark"] .cm-vs-badge {
  background: #422006;
  border-color: #92400e;
  color: #fcd34d;
}
.cm-av-lg {
  width: 3.25rem !important;
  height: 3.25rem !important;
  font-size: 0.85rem !important;
}
.cm-av-sm {
  width: 1.55rem !important;
  height: 1.55rem !important;
  font-size: 0.55rem !important;
}

.cm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.9fr);
  gap: 0.85rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cm-layout { grid-template-columns: 1fr; }
}
.cm-section { margin: 0; }
.cm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.cm-section-head h2 { margin: 0; }
.cm-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--link, #1a73e8);
  text-decoration: none;
}
.cm-link:hover { text-decoration: underline; }

.cm-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cm-game {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cm-game:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.15);
}
/* Your matchup — green (unless it's also MOTW) */
.cm-game.is-mine:not(.is-motw) {
  border-color: #22c55e;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), var(--main-surface-2, #f8fafc) 45%);
  box-shadow: inset 3px 0 0 #22c55e;
}
.cm-game.is-mine:not(.is-motw):hover {
  border-color: #16a34a;
  box-shadow: inset 3px 0 0 #16a34a, 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.cm-game-side {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.cm-game-side.is-right {
  justify-content: flex-end;
  text-align: right;
}
.cm-game-name {
  font-weight: 700;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-game-mid { text-align: center; }

.cm-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cm-post {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
}
.cm-post-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.cm-post p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--main-text, #1f2937);
}

.cm-members {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 22rem;
  overflow: auto;
  scrollbar-width: thin;
}
.cm-member {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
}
.cm-member.is-mine {
  background: rgba(26, 115, 232, 0.08);
}
.cm-member-name {
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.cm-member-meta {
  font-size: 0.72rem;
}

.cm-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.cm-tile {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  text-decoration: none;
  color: var(--main-text-strong, #111827);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cm-tile:hover {
  border-color: #93c5fd;
  background: var(--chip-bg, #eff6ff);
}
.cm-tile-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: #1a73e8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cm-footnote h2 { font-size: 0.88rem; }

/* Recent transactions (right rail) */
.cm-tx-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.cm-tx-tool {
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
  color: var(--link, #1a73e8);
  background: var(--chip-bg, #eff6ff);
  border: 1px solid var(--chip-border, #bfdbfe);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}
.cm-tx-tool:hover {
  filter: brightness(0.97);
}
.cm-tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 18rem;
  overflow: auto;
  scrollbar-width: thin;
}
.cm-tx-row {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: start;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
  width: 100%;
  box-sizing: border-box;
}
.cm-tx-body {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cm-tx-type {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.2rem 0.15rem;
  border-radius: 5px;
  background: #e2e8f0;
  color: #334155;
  line-height: 1.2;
}
.cm-tx-add .cm-tx-type { background: #dcfce7; color: #166534; }
.cm-tx-drop .cm-tx-type { background: #fee2e2; color: #991b1b; }
.cm-tx-claim .cm-tx-type { background: #dbeafe; color: #1e40af; }
.cm-tx-trade .cm-tx-type { background: #fef3c7; color: #92400e; }
.cm-tx-main {
  font-size: 0.8rem;
  color: var(--main-text-strong, #111827);
  line-height: 1.25;
}
.cm-tx-pos {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--main-text-muted, #6b7280);
}
.cm-tx-sub {
  font-size: 0.7rem;
  color: var(--main-text-muted, #6b7280);
  margin-top: 0.1rem;
  line-height: 1.3;
}
.cm-tx-when {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--main-text-muted, #6b7280);
  white-space: nowrap;
  padding-top: 0.1rem;
}
html[data-theme="dark"] .cm-tx-row {
  background: var(--main-surface-2);
  border-color: var(--main-border);
}
html[data-theme="dark"] .cm-tx-tool {
  color: var(--chip-text, #dbeafe);
  background: var(--chip-bg);
  border-color: var(--chip-border);
}
html[data-theme="dark"] .cm-tx-type { background: #3f3f46; color: #e4e4e7; }
html[data-theme="dark"] .cm-tx-add .cm-tx-type { background: #064e3b; color: #86efac; }
html[data-theme="dark"] .cm-tx-drop .cm-tx-type { background: #450a0a; color: #fca5a5; }
html[data-theme="dark"] .cm-tx-claim .cm-tx-type { background: #1e3a5f; color: #93c5fd; }
html[data-theme="dark"] .cm-tx-trade .cm-tx-type { background: #422006; color: #fcd34d; }
html[data-theme="dark"] .cm-tx-main { color: var(--main-text-strong); }

/* ----- Matchup of the Week (compact bar) ----- */
.cm-motw {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem !important;
  border: 1px solid #fcd34d;
  background:
    linear-gradient(90deg, rgba(254, 243, 199, 0.65) 0%, var(--main-surface, #fff) 42%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}
html[data-theme="dark"] .cm-motw {
  background: linear-gradient(90deg, rgba(66, 32, 6, 0.55) 0%, var(--main-surface) 50%);
  border-color: #92400e;
  box-shadow: none;
}
.cm-motw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}
.cm-motw-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
}
html[data-theme="dark"] .cm-motw-badge {
  color: #fcd34d;
  background: #422006;
  border-color: #92400e;
}
.cm-motw-pairs {
  flex: 1 1 auto;
  min-width: 12rem;
}
.cm-motw-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
}
.cm-motw-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
  line-height: 1.15;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-motw-week {
  font-size: 0.65rem;
  font-weight: 750;
  color: var(--main-text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.15rem;
}
.cm-motw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 12rem;
}
.cm-motw-pill {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--main-text, #1f2937);
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.cm-motw-pill b {
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  margin-right: 0.25rem;
}
html[data-theme="dark"] .cm-motw-pill {
  background: var(--main-surface-2);
  border-color: var(--main-border);
  color: var(--main-text);
}
.cm-motw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}
.cm-motw-actions .lg-btn {
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}
.cm-motw-foot {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--main-border, #e5e7eb);
}
.cm-motw-foot[hidden] { display: none !important; }
.cm-motw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cm-motw-chip {
  font-size: 0.68rem;
  font-weight: 650;
  color: #92400e;
  background: rgba(254, 243, 199, 0.7);
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.12rem 0.4rem;
}
html[data-theme="dark"] .cm-motw-chip {
  color: #fde68a;
  background: rgba(66, 32, 6, 0.65);
  border-color: #92400e;
}
.cm-motw-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--main-text-muted, #6b7280);
}
/* MOTW keeps gold look — overrides mine green when both apply */
.cm-game.is-motw {
  border-color: #f59e0b !important;
  box-shadow: inset 3px 0 0 #f59e0b !important;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), var(--main-surface-2, #f8fafc) 50%) !important;
}
.cm-game.is-motw:hover {
  border-color: #f59e0b !important;
  box-shadow: inset 3px 0 0 #f59e0b, 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
}
.cm-game.is-motw::after {
  content: '★ MOTW';
  display: block;
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #b45309;
  margin-top: 0.1rem;
}
html[data-theme="dark"] .cm-game.is-motw::after {
  color: #fcd34d;
}
@media (max-width: 720px) {
  .cm-motw-row { gap: 0.45rem; }
  .cm-motw-actions { margin-left: 0; width: 100%; }
  .cm-motw-actions .lg-btn { flex: 1; justify-content: center; }
  .cm-motw-name { max-width: 7.5rem; font-size: 0.82rem; }
}

/* Key matchup history cards */
.cm-history {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cm-hist-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
}
.cm-hist-card.is-mine {
  border-color: #fbbf24;
  box-shadow: inset 3px 0 0 #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), var(--main-surface-2, #f8fafc) 40%);
}
.cm-hist-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--main-text-strong, #111827);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.cm-hist-records {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}
.cm-hist-stat strong {
  font-weight: 800;
  margin-right: 0.25rem;
  color: var(--main-text-muted, #6b7280);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.cm-hist-edge {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--main-text, #1f2937);
}
.cm-hist-notes {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--main-text, #1f2937);
}
.cm-hist-notes li { margin-bottom: 0.25rem; }
.cm-hist-recent {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.cm-hist-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  color: var(--main-text-muted, #6b7280);
  font-variant-numeric: tabular-nums;
}
.cm-hist-chip.is-w {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.cm-hist-chip.is-l {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
html[data-theme="dark"] .cm-hist-chip.is-w {
  background: #064e3b;
  border-color: #065f46;
  color: #6ee7b7;
}
html[data-theme="dark"] .cm-hist-chip.is-l {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* Profile page */
.pf-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pf-avatar-preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--main-surface-2, #f1f5f9);
  border: 2px solid var(--main-border, #e5e7eb);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--main-text-muted, #64748b);
  position: relative;
}
.pf-avatar-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-avatar-actions {
  flex: 1;
  min-width: 10rem;
}
.pf-divider {
  border: none;
  border-top: 1px solid var(--main-border, #e5e7eb);
  margin: 1rem 0;
}

/* League team avatar badge */
.lg-team-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f1f5f9);
}
.lg-team-avatar-fallback {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: #1a73e8;
  color: #fff;
}

/* My Team / Matchup — compact slot list (matchup page) */
.mt-roster {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.mt-slot {
  display: grid;
  grid-template-columns: 2.6rem 1fr 2.6rem;
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
  font-size: 0.82rem;
}
.mt-slot.is-empty {
  opacity: 0.55;
}
.mt-pos {
  font-weight: 800;
  font-size: 0.68rem;
  color: var(--main-text-muted, #6b7280);
  letter-spacing: 0.02em;
}
.mt-name {
  font-weight: 650;
  color: var(--main-text-strong, #111827);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-nfl {
  font-weight: 500;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.72rem;
}
.mt-pts {
  text-align: right;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--accent-num, var(--link, #1a73e8));
}

/* ── ESPN-style My Team ───────────────────────────────────────── */
.lg-wrap.lg-wrap-wide {
  max-width: 72rem;
}
.espn-team-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.05rem 1.15rem;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 55%, #3b8ef0 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.espn-team-head-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 14rem;
}
.espn-team-logo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.espn-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.espn-team-logo.is-fallback {
  background: rgba(0, 0, 0, 0.18);
}
.espn-team-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.espn-team-name {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.espn-team-sub {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}
.espn-team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}
.espn-stat {
  min-width: 3.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}
.espn-stat-accent {
  background: rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.28);
}
.espn-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.espn-stat-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.espn-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.55rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-top: none;
  margin-bottom: 0.75rem;
}
.espn-subnav a,
.espn-subnav-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #4b5563);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.espn-subnav a:hover,
.espn-subnav-more:hover {
  background: var(--main-surface-2, #f3f4f6);
  color: var(--main-text-strong, #111827);
}
.espn-subnav a.is-active {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
}
.espn-subnav-more {
  margin-left: auto;
  color: var(--link, #1a73e8);
}

.espn-link-panel {
  margin-bottom: 0.75rem;
}
.espn-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.espn-link-row select {
  flex: 1 1 12rem;
  min-width: 0;
}

/* Matchup strip under subnav */
.espn-matchup-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.espn-ms-side {
  min-width: 0;
  text-align: center;
}
.espn-ms-side.is-mine .espn-ms-team {
  color: #1a73e8;
}
.espn-ms-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.espn-ms-team {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
  margin: 0.15rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.espn-ms-score {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--main-text-strong, #111827);
  line-height: 1.05;
}
.espn-ms-note {
  font-size: 0.68rem;
  color: var(--main-text-muted, #6b7280);
  font-weight: 600;
}
.espn-ms-mid {
  text-align: center;
  padding: 0 0.35rem;
}
.espn-ms-week {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.espn-ms-vs {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--main-text-muted, #9ca3af);
  margin: 0.15rem 0;
}
.espn-ms-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--link, #1a73e8);
  text-decoration: none;
}
.espn-ms-link:hover { text-decoration: underline; }

/* Roster table card */
.espn-roster-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.espn-roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
}
.espn-roster-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.espn-roster-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--main-text-muted, #6b7280);
}
.espn-roster-tools {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.espn-view-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--main-border, #e5e7eb);
  color: var(--main-text-muted, #6b7280);
  background: var(--main-surface-2, #f8fafc);
  user-select: none;
}
.espn-view-chip.is-active {
  color: #1a73e8;
  border-color: rgba(26, 115, 232, 0.35);
  background: rgba(26, 115, 232, 0.08);
}

.espn-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.espn-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 36rem;
}
.espn-roster-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  background: var(--main-surface-2, #f3f4f6);
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  padding: 0.45rem 0.55rem;
  white-space: nowrap;
}
.espn-roster-table .col-proj,
.espn-roster-table .col-score {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.espn-roster-table .col-action {
  width: 3.5rem;
  text-align: right;
}
.espn-roster-table .col-slot { width: 3.4rem; }
.espn-roster-table .col-opp { width: 5rem; white-space: nowrap; }
.espn-roster-table .col-status { width: 4.6rem; }
.espn-roster-table .col-proj,
.espn-roster-table .col-score { width: 3.6rem; }

.espn-sec-row td {
  padding: 0.4rem 0.55rem;
  background: #e8eef8;
  border-top: 1px solid #d4deef;
  border-bottom: 1px solid #d4deef;
  font-weight: 800;
  color: #1e3a5f;
}
.espn-sec-row.is-bench-sec td,
.espn-sec-row.is-ir-sec td {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
.espn-sec-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.espn-sec-total {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.espn-player-row td {
  padding: 0.48rem 0.55rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  vertical-align: middle;
  color: var(--main-text, #1f2937);
}
.espn-player-row:hover td {
  background: rgba(26, 115, 232, 0.04);
}
.espn-player-row.is-empty {
  opacity: 0.55;
}
.espn-player-row.is-out .espn-player-name {
  color: var(--main-text-muted, #6b7280);
}
.espn-player-row.is-bench td {
  background: rgba(248, 250, 252, 0.65);
}

.espn-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.18rem 0.28rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: #64748b;
}
.espn-slot.pos-qb { background: #7c3aed; }
.espn-slot.pos-rb { background: #059669; }
.espn-slot.pos-wr { background: #2563eb; }
.espn-slot.pos-te { background: #d97706; }
.espn-slot.pos-flex { background: #0d9488; }
.espn-slot.pos-dst { background: #475569; }
.espn-slot.pos-k { background: #db2777; }
.espn-slot.pos-bn { background: #94a3b8; color: #0f172a; }
.espn-slot.pos-ir { background: #b91c1c; }

.espn-player-name {
  font-weight: 700;
  color: var(--main-text-strong, #0f172a);
  line-height: 1.2;
}
.espn-player-meta {
  margin-top: 0.08rem;
  font-size: 0.7rem;
  color: var(--main-text-muted, #6b7280);
  font-weight: 600;
}
.espn-nfl { font-weight: 700; }
.espn-dot { margin: 0 0.2rem; opacity: 0.55; }

.espn-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: #ecfdf5;
  color: #16a34a; /* Active · green */
}
.espn-status.is-q {
  background: #fefce8;
  color: #ca8a04; /* Questionable · yellow */
}
.espn-status.is-d {
  background: #fff7ed;
  color: #ea580c; /* Doubtful · orange */
}
.espn-status.is-o,
.espn-status.is-ir {
  background: #fef2f2;
  color: #dc2626; /* Out / IR · red */
}
.espn-status.is-bye {
  background: #f1f5f9;
  color: #475569;
}

.col-proj { font-weight: 650; color: var(--main-text-muted, #4b5563); }
.col-score { font-weight: 750; color: var(--main-text-muted, #9ca3af); }
.col-score.has-score {
  color: var(--accent-num, #1a73e8);
  font-weight: 800;
}

.espn-action {
  appearance: none;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface, #fff);
  color: var(--link, #1a73e8);
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.22rem 0.45rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}
.espn-action:hover {
  background: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.35);
}
.espn-action.is-muted {
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #9ca3af);
  cursor: default;
  padding: 0;
}

/* Dark mode · ESPN My Team */
html[data-theme="dark"] .espn-team-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 50%, #1a4fa0 100%);
  box-shadow: none;
}
html[data-theme="dark"] .espn-subnav {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-subnav a.is-active {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}
html[data-theme="dark"] .espn-matchup-strip,
html[data-theme="dark"] .espn-roster-card {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  box-shadow: none;
}
html[data-theme="dark"] .espn-ms-side.is-mine .espn-ms-team {
  color: #93c5fd;
}
html[data-theme="dark"] .espn-ms-team,
html[data-theme="dark"] .espn-ms-score,
html[data-theme="dark"] .espn-roster-title,
html[data-theme="dark"] .espn-player-name {
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-roster-toolbar {
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-roster-table thead th {
  background: #1f1f24;
  color: #a1a1aa;
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-sec-row td {
  background: #1e3a5f;
  color: #dbeafe;
  border-color: #3b6ea8;
}
html[data-theme="dark"] .espn-sec-row.is-bench-sec td,
html[data-theme="dark"] .espn-sec-row.is-ir-sec td {
  background: #27272a;
  color: #e4e4e7;
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-player-row td {
  border-color: #2e2e33;
  color: #e4e4e7;
}
html[data-theme="dark"] .espn-player-row:hover td {
  background: rgba(59, 130, 246, 0.08);
}
html[data-theme="dark"] .espn-player-row.is-bench td {
  background: rgba(24, 24, 27, 0.5);
}
html[data-theme="dark"] .espn-view-chip {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}
html[data-theme="dark"] .espn-view-chip.is-active {
  color: #93c5fd;
  border-color: #3b6ea8;
  background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .espn-status {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}
html[data-theme="dark"] .espn-status.is-d {
  background: rgba(234, 88, 12, 0.18);
  color: #fb923c;
}
html[data-theme="dark"] .espn-status.is-q {
  background: rgba(202, 138, 4, 0.15);
  color: #facc15;
}
html[data-theme="dark"] .espn-status.is-o,
html[data-theme="dark"] .espn-status.is-ir {
  background: rgba(220, 38, 38, 0.18);
  color: #f87171;
}
html[data-theme="dark"] .espn-action {
  background: #18181b;
  border-color: #3f3f46;
  color: #93c5fd;
}
html[data-theme="dark"] .col-proj { color: #a1a1aa; }
html[data-theme="dark"] .col-score.has-score { color: #93c5fd; }

@media (max-width: 640px) {
  .espn-team-name { font-size: 1.2rem; }
  .espn-team-logo { width: 2.85rem; height: 2.85rem; }
  .espn-stat { min-width: 3.1rem; padding: 0.32rem 0.4rem; }
  .espn-stat-val { font-size: 0.95rem; }
  .espn-matchup-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .espn-ms-mid { order: -1; padding-bottom: 0.25rem; }
  .espn-ms-score { font-size: 1.35rem; }
  .espn-subnav-more { margin-left: 0; }
}

.mu-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1.1rem 1rem !important;
}
.mu-side {
  text-align: center;
  min-width: 0;
}
.mu-side.is-mine .mu-team {
  color: var(--link, #1a73e8);
}
.mu-avatar-row {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.15rem;
  min-height: 0;
}
.mu-avatar-row .lg-team-avatar {
  width: 2.5rem;
  height: 2.5rem;
}
.mt-lineup-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.mt-head-avatar {
  display: inline-flex;
  align-items: center;
}
.mu-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.mu-team {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0.25rem 0 0.15rem;
  color: var(--main-text-strong, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-score {
  font-size: 1.75rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--main-text-strong, #111827);
}
.mu-vs {
  text-align: center;
  padding: 0 0.35rem;
}
.mu-week {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--main-text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mu-vs-text {
  font-size: 1.1rem;
  font-weight: 900;
  color: #f59e0b;
  margin-top: 0.15rem;
}
@media (max-width: 560px) {
  .mu-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mu-vs { order: -1; }
}

/* Auth */
.lg-auth-note {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--chip-bg, #eff6ff);
  border: 1px solid var(--chip-border, #bfdbfe);
  color: var(--main-text, #1f2937);
}
.lg-auth-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
html[data-theme="dark"] .lg-auth-error {
  color: #fecaca;
  background: #450a0a;
  border-color: #7f1d1d;
}
.lg-gate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: var(--chip-bg, #eff6ff);
  border: 1px solid var(--chip-border, #bfdbfe);
  color: var(--main-text, #1e3a8a);
  font-size: 0.85rem;
}

.lg-hero {
  background: linear-gradient(135deg, #0d5fd1 0%, #1a73e8 50%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.2);
}
.lg-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.lg-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 36rem;
}
.lg-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

.lg-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .lg-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .lg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.lg-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,0.05));
  color: var(--main-text, #1f2937);
}
.lg-card h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--main-text-strong, #111827);
}
.lg-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--main-text-strong, #111827);
}
.lg-muted {
  color: var(--main-text-muted, #6b7280);
  font-size: 0.82rem;
  line-height: 1.45;
}
.lg-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
}
.lg-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-num, var(--link, #1a73e8));
  letter-spacing: -0.02em;
}
.lg-stat .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--main-text-muted, #6b7280);
  font-weight: 650;
  margin-top: 0.15rem;
}

.lg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  font-size: 0.88rem;
}
.lg-list li:last-child { border-bottom: none; }
.lg-rank {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text-muted, #6b7280);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lg-rank.gold { background: #fef3c7; color: #92400e; }
.lg-team { font-weight: 600; flex: 1; min-width: 0; }
.lg-rec { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--main-text-muted, #6b7280); }

.lg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 28rem;
}
.lg-table th,
.lg-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  white-space: nowrap;
}
.lg-table th {
  background: var(--table-head, #f3f4f6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--main-text-muted, #6b7280);
  font-weight: 700;
}
.lg-table tr:last-child td { border-bottom: none; }
.lg-table .you {
  background: color-mix(in srgb, var(--link, #1a73e8) 10%, transparent);
  font-weight: 650;
}

.lg-form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.lg-form-row label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--main-text-muted, #6b7280);
}
.lg-form-row input,
.lg-form-row select,
.lg-form-row textarea {
  width: 100%;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface, #fff);
  color: var(--main-text, #1f2937);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
}
.lg-form-row textarea { min-height: 4.5rem; resize: vertical; }
.lg-form-hint {
  font-size: 0.72rem;
  color: var(--main-text-muted, #6b7280);
}

.lg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.lg-btn {
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface, #fff);
  color: var(--main-text, #1f2937);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 38px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lg-btn:hover { background: var(--main-surface-2, #f8fafc); }
.lg-btn.primary {
  background: var(--link, #1a73e8);
  border-color: var(--link, #1a73e8);
  color: #fff;
}
.lg-btn.primary:hover { filter: brightness(1.05); }
.lg-btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
html[data-theme="dark"] .lg-btn.danger {
  color: #fca5a5;
  border-color: #7f1d1d;
  background: #450a0a;
}

.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--chip-bg, #eff6ff);
  color: var(--chip-text, var(--link, #1a73e8));
  border: 1px solid var(--chip-border, #bfdbfe);
}

.lg-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.88rem;
}

.lg-draft-board {
  display: grid;
  gap: 0.45rem;
}
.lg-pick {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 10px;
  background: var(--main-surface, #fff);
  font-size: 0.85rem;
}
.lg-pick .slot {
  font-weight: 800;
  color: var(--link, #1a73e8);
  font-variant-numeric: tabular-nums;
}
.lg-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lg-toast.show { opacity: 1; }

@media (max-width: 639px) {
  .lg-hero { padding: 1rem 1.05rem; }
  .lg-hero h1 { font-size: 1.25rem; }
  .lg-table { min-width: 24rem; font-size: 0.8rem; }
}

/* ----- Settings layout: content + sticky jump nav ----- */
.lg-settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 68rem;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .lg-settings-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 1.25rem;
  }
}
.lg-settings-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.lg-settings-main .lg-section {
  scroll-margin-top: 1rem;
}
.lg-settings-nav {
  position: sticky;
  top: 0.75rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,0.05));
}
.lg-settings-nav h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.lg-settings-nav a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--main-text, #1f2937);
  text-decoration: none;
  margin-bottom: 2px;
}
.lg-settings-nav a:hover {
  background: var(--main-surface-2, #f8fafc);
  color: var(--link, #1a73e8);
}
.lg-settings-nav a.is-active {
  background: var(--chip-bg, #eff6ff);
  color: var(--link, #1a73e8);
}
@media (max-width: 959px) {
  .lg-settings-nav {
    position: relative;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
  }
  .lg-settings-nav h3 {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .lg-settings-nav a {
    display: inline-flex;
    margin: 0;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--main-border, #e5e7eb);
    border-radius: 999px;
    background: var(--main-surface-2, #f8fafc);
  }
}

/* Sticky save bar */
.lg-settings-savebar {
  position: sticky;
  bottom: 0.5rem;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* Draft order drag list */
.lg-drag-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.lg-drag-item {
  display: grid;
  grid-template-columns: 1.5rem 2.25rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 10px;
  background: var(--main-surface, #fff);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.lg-drag-item:active { cursor: grabbing; }
.lg-drag-item.is-dragging {
  opacity: 0.55;
  border-color: var(--link, #1a73e8);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.2);
}
.lg-drag-handle {
  color: var(--main-text-muted, #9ca3af);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.lg-drag-pick {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--link, #1a73e8);
  font-size: 0.85rem;
}
.lg-drag-name {
  font-weight: 650;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-drag-actions {
  display: flex;
  gap: 0.2rem;
}
.lg-drag-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text, #1f2937);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}
.lg-drag-btn:hover {
  border-color: var(--link, #1a73e8);
  color: var(--link, #1a73e8);
}
.lg-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--main-text-strong, #111827);
  letter-spacing: -0.01em;
}
.lg-section-desc {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--main-text-muted, #6b7280);
  line-height: 1.4;
}

/* ── Waivers (deep ESPN-style wire) ───────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 55%, #3b8ef0 100%);
  color: #fff;
}
.wv-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.wv-head h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wv-head p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
  max-width: 36rem;
  line-height: 1.4;
}
.wv-head-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}
.wv-stat {
  min-width: 4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}
.wv-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.wv-stat-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.wv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 0.75rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.wv-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #4b5563);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wv-tab:hover {
  background: var(--main-surface-2, #f3f4f6);
  color: var(--main-text-strong, #111827);
}
.wv-tab.is-active {
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}
.wv-tab-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.wv-tab:not(.is-active) .wv-tab-count {
  background: #94a3b8;
}

.wv-panel { margin-bottom: 1rem; }
.wv-section-head {
  margin-bottom: 0.55rem;
  padding: 0 0.1rem;
}
.wv-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.wv-section-head .lg-muted {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.wv-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.75rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.wv-search-wrap input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text-strong, #111827);
  font-size: 0.9rem;
  font-family: inherit;
}
.wv-search-wrap input:focus {
  outline: 2px solid rgba(26, 115, 232, 0.35);
  border-color: #1a73e8;
}
.wv-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.wv-pos-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.wv-pill {
  appearance: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text-muted, #4b5563);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.wv-pill:hover { border-color: rgba(26, 115, 232, 0.4); color: #1a73e8; }
.wv-pill.is-active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
.wv-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.wv-sort-label select {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  font-size: 0.82rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface, #fff);
  color: var(--main-text-strong, #111827);
  font-family: inherit;
}

.wv-wire-card,
.wv-order-card,
.wv-faab-card,
.wv-activity-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.wv-wire-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--main-text-strong, #111827);
}
.wv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wv-wire-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 42rem;
}
.wv-wire-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  background: var(--main-surface-2, #f3f4f6);
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  padding: 0.45rem 0.55rem;
  white-space: nowrap;
}
.wv-wire-table tbody td {
  padding: 0.55rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  vertical-align: middle;
  color: var(--main-text, #1f2937);
}
.wv-player-row:hover td { background: rgba(26, 115, 232, 0.04); }
.wv-player-row.is-pending td { opacity: 0.85; }
.wv-wire-table .col-stat {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  width: 4rem;
}
.wv-wire-table .col-pos { width: 3.2rem; }
.wv-wire-table .col-opp { width: 4.5rem; white-space: nowrap; }
.wv-wire-table .col-action { width: 5.2rem; text-align: right; }
.wv-proj { color: var(--accent-num, #1a73e8); font-weight: 800 !important; }
.wv-player-name {
  font-weight: 750;
  color: var(--main-text-strong, #0f172a);
}
.wv-player-meta {
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--main-text-muted, #6b7280);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}
.wv-note {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wv-dot { opacity: 0.5; }
.wv-inj {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  background: #fffbeb;
  color: #b45309;
  vertical-align: middle;
}
.wv-inj.is-o { background: #fef2f2; color: #b91c1c; }
.wv-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: #64748b;
}
.wv-pos.pos-qb { background: #7c3aed; }
.wv-pos.pos-rb { background: #059669; }
.wv-pos.pos-wr { background: #2563eb; }
.wv-pos.pos-te { background: #d97706; }
.wv-pos.pos-dst { background: #475569; }
.wv-pos.pos-k { background: #db2777; }
.wv-trend { font-weight: 800; font-size: 0.75rem; }
.wv-trend.is-up { color: #059669; }
.wv-trend.is-down { color: #dc2626; }
.wv-trend.is-flat { color: #9ca3af; }
.wv-claim-btn { min-height: 32px; padding: 0.25rem 0.65rem !important; font-size: 0.75rem; }
.wv-pending-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.wv-footnote {
  margin: 0;
  padding: 0.5rem 0.85rem 0.65rem;
  font-size: 0.72rem;
  border-top: 1px solid var(--main-border, #eef0f3);
}
.wv-empty-cell {
  text-align: center !important;
  padding: 1.5rem !important;
  color: var(--main-text-muted, #6b7280);
}

/* Claims */
.wv-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--main-surface, #fff);
  border: 1px dashed var(--main-border, #d1d5db);
  border-radius: 12px;
}
.wv-empty strong {
  display: block;
  font-size: 1rem;
  color: var(--main-text-strong, #111827);
}
.wv-empty p {
  margin: 0.35rem 0 0.85rem;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.85rem;
}
.wv-claims-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wv-claim-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.wv-claim-pri {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  border: 1px solid rgba(26, 115, 232, 0.25);
}
.wv-claim-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  margin-right: 0.2rem;
}
.wv-claim-add { font-size: 0.92rem; margin-bottom: 0.15rem; }
.wv-claim-drop { font-size: 0.84rem; color: var(--main-text, #374151); }
.wv-claim-meta { margin-top: 0.3rem; font-size: 0.75rem; }
.wv-claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

/* Order */
.wv-order-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wv-order-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
}
.wv-order-list li:last-child { border-bottom: none; }
.wv-order-list li.is-mine {
  background: rgba(26, 115, 232, 0.07);
}
.wv-rank {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-num, var(--link, #1a73e8));
  flex-shrink: 0;
}
.wv-order-team strong {
  color: var(--main-text-strong, #111827);
  font-size: 0.92rem;
}
.wv-you {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: #1a73e8;
  color: #fff;
  vertical-align: middle;
}

/* FAAB */
.wv-faab-card { padding: 0.5rem 0.65rem; }
.wv-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) 3rem;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.84rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
}
.wv-budget-row.is-mine {
  background: rgba(26, 115, 232, 0.08);
}
.wv-budget-team {
  font-weight: 700;
  min-width: 0;
  color: var(--main-text-strong, #111827);
}
.wv-budget-spent {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.1rem;
}
.wv-budget-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--main-surface-2, #e5e7eb);
  overflow: hidden;
}
.wv-budget-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a73e8, #60a5fa);
  border-radius: inherit;
}
.wv-budget-amt {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-num, var(--link, #1a73e8));
  text-align: right;
}

/* Activity */
.wv-act-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  font-size: 0.84rem;
}
.wv-act-row:last-child { border-bottom: none; }
.wv-act-badge {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.25rem 0.3rem;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
}
.wv-act-badge.is-won { background: #ecfdf5; color: #047857; }
.wv-act-badge.is-lost { background: #fef2f2; color: #b91c1c; }
.wv-act-badge.is-pending { background: #eff6ff; color: #1d4ed8; }
.wv-act-badge.is-free,
.wv-act-badge.is-add { background: #f0fdf4; color: #15803d; }
.wv-act-badge.is-drop { background: #fff7ed; color: #c2410c; }
.wv-act-main { min-width: 0; color: var(--main-text, #1f2937); }
.wv-act-when {
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Claim modal */
body.wv-modal-open { overflow: hidden; }
.wv-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
}
.wv-modal[hidden] { display: none !important; }
.wv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.wv-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: var(--main-surface, #fff);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .wv-modal { place-items: center; padding: 1rem; }
  .wv-modal-sheet {
    border-radius: 14px;
    margin: 0;
  }
}
.wv-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 80%);
  color: #fff;
}
.wv-modal-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}
.wv-modal-head h3 {
  margin: 0.15rem 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.wv-modal-head .lg-muted { color: rgba(255, 255, 255, 0.85) !important; margin: 0; font-size: 0.78rem; }
.wv-modal-x {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.wv-modal-x:hover { background: rgba(255, 255, 255, 0.28); }
.wv-modal-body { padding: 0.9rem 1rem 1rem; }
.wv-form-grid {
  display: grid;
  gap: 0.75rem;
}
.wv-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  margin-bottom: 0.3rem;
}
.wv-field select,
.wv-field input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface, #fff);
  color: var(--main-text-strong, #111827);
  font-size: 0.9rem;
  font-family: inherit;
}
.wv-field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--main-text-muted, #6b7280);
}
.wv-form-error {
  margin: 0.65rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 650;
}
.wv-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 1rem;
}

/* Dark · waivers */
html[data-theme="dark"] .wv-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 50%, #1a4fa0 100%);
}
html[data-theme="dark"] .wv-tabs,
html[data-theme="dark"] .wv-toolbar,
html[data-theme="dark"] .wv-wire-card,
html[data-theme="dark"] .wv-order-card,
html[data-theme="dark"] .wv-faab-card,
html[data-theme="dark"] .wv-activity-card,
html[data-theme="dark"] .wv-claim-card,
html[data-theme="dark"] .wv-empty,
html[data-theme="dark"] .wv-modal-sheet {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  box-shadow: none;
}
html[data-theme="dark"] .wv-tab.is-active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
html[data-theme="dark"] .wv-pill {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}
html[data-theme="dark"] .wv-pill.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
html[data-theme="dark"] .wv-search-wrap input,
html[data-theme="dark"] .wv-sort-label select,
html[data-theme="dark"] .wv-field select,
html[data-theme="dark"] .wv-field input {
  background: #18181b;
  border-color: #3f3f46;
  color: #f4f4f5;
}
html[data-theme="dark"] .wv-wire-table thead th {
  background: #1f1f24;
  color: #a1a1aa;
  border-color: #3f3f46;
}
html[data-theme="dark"] .wv-wire-table tbody td,
html[data-theme="dark"] .wv-order-list li,
html[data-theme="dark"] .wv-act-row,
html[data-theme="dark"] .wv-wire-meta,
html[data-theme="dark"] .wv-footnote {
  border-color: #2e2e33;
  color: #e4e4e7;
}
html[data-theme="dark"] .wv-player-name,
html[data-theme="dark"] .wv-section-head h2,
html[data-theme="dark"] .wv-order-team strong,
html[data-theme="dark"] .wv-budget-team,
html[data-theme="dark"] .wv-empty strong {
  color: #f4f4f5;
}
html[data-theme="dark"] .wv-player-row:hover td {
  background: rgba(59, 130, 246, 0.08);
}
html[data-theme="dark"] .wv-order-list li.is-mine,
html[data-theme="dark"] .wv-budget-row.is-mine {
  background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .wv-budget-bar { background: #3f3f46; }
html[data-theme="dark"] .wv-proj,
html[data-theme="dark"] .wv-budget-amt { color: #93c5fd; }
html[data-theme="dark"] .wv-claim-pri {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b6ea8;
}
html[data-theme="dark"] .wv-modal-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 80%);
}
html[data-theme="dark"] .wv-form-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
html[data-theme="dark"] .wv-act-badge.is-pending {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
html[data-theme="dark"] .wv-trend.is-up { color: #34d399; }
html[data-theme="dark"] .wv-trend.is-down { color: #f87171; }

@media (max-width: 640px) {
  .wv-claim-card {
    grid-template-columns: auto 1fr;
  }
  .wv-claim-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .wv-claim-actions .lg-btn { flex: 1; }
  .wv-act-row {
    grid-template-columns: 4.5rem 1fr;
  }
  .wv-act-when {
    grid-column: 2;
  }
}

/* =========================================================
   Dark mode: league / community / matchup readability
   ========================================================= */
html[data-theme="dark"] .cm-you {
  background: linear-gradient(180deg, #1e3a5f 0%, var(--main-surface) 72%);
  border-color: var(--chip-border);
}
html[data-theme="dark"] .cm-you-team,
html[data-theme="dark"] .cm-motw-name,
html[data-theme="dark"] .cm-hist-title,
html[data-theme="dark"] .cm-game-name,
html[data-theme="dark"] .cm-member-name {
  color: var(--main-text-strong);
}
html[data-theme="dark"] .cm-you-sub,
html[data-theme="dark"] .cm-kicker,
html[data-theme="dark"] .cm-member-meta,
html[data-theme="dark"] .cm-hist-edge {
  color: var(--main-text-muted);
}
html[data-theme="dark"] .cm-game,
html[data-theme="dark"] .cm-post,
html[data-theme="dark"] .cm-tile,
html[data-theme="dark"] .cm-hist-card {
  background: var(--main-surface-2);
  border-color: var(--main-border);
  color: var(--main-text);
}
html[data-theme="dark"] .cm-game:hover,
html[data-theme="dark"] .cm-tile:hover {
  border-color: #60a5fa;
  background: #1e293b;
}
html[data-theme="dark"] .cm-game.is-mine:not(.is-motw) {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), var(--main-surface-2) 50%);
  border-color: #22c55e;
  box-shadow: inset 3px 0 0 #22c55e;
}
html[data-theme="dark"] .cm-game.is-motw {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), var(--main-surface-2) 55%) !important;
  border-color: #f59e0b !important;
  box-shadow: inset 3px 0 0 #f59e0b !important;
}
html[data-theme="dark"] .cm-game.is-motw::after {
  color: #fcd34d;
}
html[data-theme="dark"] .cm-hist-card.is-mine {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), var(--main-surface-2) 45%);
  border-color: #fbbf24;
}
html[data-theme="dark"] .cm-hist-stat,
html[data-theme="dark"] .cm-motw-stats,
html[data-theme="dark"] .cm-motw-why,
html[data-theme="dark"] .cm-hist-notes,
html[data-theme="dark"] .cm-post p {
  color: var(--main-text);
}
html[data-theme="dark"] .cm-hist-stat strong {
  color: #a1a1aa;
}
html[data-theme="dark"] .cm-hist-chip {
  background: var(--main-surface);
  border-color: var(--main-border);
  color: var(--main-text-muted);
}
html[data-theme="dark"] .cm-member.is-mine {
  background: rgba(96, 165, 250, 0.12);
}
html[data-theme="dark"] .cm-link {
  color: var(--link);
}
html[data-theme="dark"] .cm-motw {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .cm-motw-why li,
html[data-theme="dark"] .cm-hist-notes li {
  color: #e4e4e7;
}

/* Stats / scores / pick numbers */
html[data-theme="dark"] .lg-stat .num,
html[data-theme="dark"] .mt-pts,
html[data-theme="dark"] .lg-pick .slot,
html[data-theme="dark"] .lg-drag-pick,
html[data-theme="dark"] .mu-side.is-mine .mu-team {
  color: var(--accent-num) !important;
}
html[data-theme="dark"] .mu-score {
  color: var(--main-text-strong);
}
html[data-theme="dark"] .lg-rec {
  color: var(--main-text-muted);
}
html[data-theme="dark"] .lg-rank {
  background: var(--main-surface-2);
  color: var(--main-text-muted);
}
html[data-theme="dark"] .lg-rank.gold {
  background: #3f3a1a;
  color: #fde68a;
}
html[data-theme="dark"] .lg-gate-banner {
  color: #dbeafe;
}
html[data-theme="dark"] .lg-auth-note {
  color: #e0e7ff;
}
html[data-theme="dark"] .lg-chip {
  color: var(--chip-text);
}
html[data-theme="dark"] .lg-btn {
  background: var(--main-surface-2);
  border-color: var(--main-border);
  color: var(--main-text-strong);
}
html[data-theme="dark"] .lg-btn:hover {
  background: #2a2a30;
}
html[data-theme="dark"] .lg-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
html[data-theme="dark"] .lg-form-row input,
html[data-theme="dark"] .lg-form-row select,
html[data-theme="dark"] .lg-form-row textarea {
  background: var(--main-surface-2);
  color: var(--main-text-strong);
  border-color: var(--main-border);
}
html[data-theme="dark"] .lg-form-row input:focus,
html[data-theme="dark"] .lg-form-row select:focus,
html[data-theme="dark"] .lg-form-row textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}
html[data-theme="dark"] .lg-table th {
  color: #e4e4e7;
}
html[data-theme="dark"] .lg-table td {
  color: var(--main-text);
}
html[data-theme="dark"] .lg-pick {
  background: var(--main-surface-2);
}
html[data-theme="dark"] .mt-slot {
  background: var(--main-surface-2);
  border-color: var(--main-border);
}
html[data-theme="dark"] .mt-name {
  color: var(--main-text-strong);
}
html[data-theme="dark"] .mt-slot.is-empty {
  opacity: 0.7;
}
html[data-theme="dark"] .lg-section-title {
  color: var(--main-text-strong);
}
html[data-theme="dark"] .lg-drag-btn {
  background: var(--main-surface-2);
  border-color: var(--main-border);
  color: var(--main-text);
}
html[data-theme="dark"] .lg-settings-nav a {
  color: var(--main-text-muted);
}
html[data-theme="dark"] .lg-settings-nav a:hover,
html[data-theme="dark"] .lg-settings-nav a.is-active {
  color: var(--link);
  background: var(--main-surface-2);
}

/* Jump-nav / toast stay readable */
html[data-theme="dark"] .lg-toast {
  background: #27272a;
  color: #fafafa;
  border: 1px solid #52525b;
}

/* Settings jump list if present */
html[data-theme="dark"] .lg-jump a {
  color: var(--main-text-muted);
}
html[data-theme="dark"] .lg-jump a:hover {
  color: var(--link);
}

/* ── ESPN-style Schedule ──────────────────────────────────────── */
.espn-sched-head {
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 55%, #3b8ef0 100%);
  color: #fff;
}
.espn-sched-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.espn-sched-head h1 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.espn-sched-head p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
  max-width: 40rem;
  line-height: 1.4;
}

.espn-sched-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.espn-mode-btn {
  appearance: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface, #fff);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.espn-mode-btn:hover {
  border-color: rgba(26, 115, 232, 0.4);
  background: rgba(26, 115, 232, 0.04);
}
.espn-mode-btn.is-active {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.25);
  color: #1a73e8;
}
.espn-mode-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--main-text-muted, #6b7280);
}
.espn-mode-btn.is-active .espn-mode-hint {
  color: rgba(26, 115, 232, 0.85);
}

.espn-sched-panel {
  margin-bottom: 1rem;
}
.espn-sched-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  margin-bottom: 0.65rem;
}
.espn-sched-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.espn-week-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.espn-week-chip {
  appearance: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text-muted, #4b5563);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.espn-week-chip:hover {
  border-color: rgba(26, 115, 232, 0.4);
  color: #1a73e8;
}
.espn-week-chip.is-active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
.espn-week-chip.is-current:not(.is-active) {
  border-color: rgba(26, 115, 232, 0.55);
  color: #1a73e8;
}

.espn-week-block {
  margin-bottom: 0.85rem;
}
.espn-week-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding: 0 0.15rem;
}
.espn-week-block-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}

.espn-mu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .espn-mu-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .espn-mu-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.espn-mu-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.55rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.espn-mu-card.is-mine {
  border-color: rgba(26, 115, 232, 0.45);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.12);
}
.espn-mu-status {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  margin-bottom: 0.35rem;
}
.espn-mu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
}
.espn-mu-row.is-hl .espn-mu-name {
  color: #1a73e8;
}
.espn-mu-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.espn-mu-name {
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--main-text-strong, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.espn-mu-you {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  background: #1a73e8;
  color: #fff;
  flex-shrink: 0;
}
.espn-mu-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--main-text-muted, #9ca3af);
  min-width: 2.4rem;
  text-align: right;
}
.espn-mu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--main-border, #eef0f3);
}
.espn-mu-vs {
  font-size: 0.68rem;
  color: var(--main-text-muted, #6b7280);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.espn-mu-link {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--link, #1a73e8);
  text-decoration: none;
  flex-shrink: 0;
}
.espn-mu-link:hover { text-decoration: underline; }

/* Team schedule */
.espn-team-toolbar .espn-team-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.espn-team-picker label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.espn-team-picker select {
  min-width: 12rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface, #fff);
  color: var(--main-text-strong, #111827);
  font-weight: 650;
  font-size: 0.88rem;
  font-family: inherit;
}

.espn-team-sched-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.espn-team-sched-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
}
.espn-team-sched-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.espn-team-sched-banner h2 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.espn-team-sched-rec {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1a73e8;
  min-width: 3.5rem;
  text-align: right;
}

.espn-team-sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 28rem;
}
.espn-team-sched-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  background: var(--main-surface-2, #f3f4f6);
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  padding: 0.45rem 0.65rem;
}
.espn-team-sched-table tbody td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  color: var(--main-text, #1f2937);
  vertical-align: middle;
}
.espn-team-sched-table tbody tr:hover td {
  background: rgba(26, 115, 232, 0.04);
}
.espn-team-sched-table tr.is-current-week td {
  background: rgba(26, 115, 232, 0.07);
}
.espn-team-sched-table .col-wk { width: 4.5rem; white-space: nowrap; }
.espn-team-sched-table .col-ha { width: 3.5rem; }
.espn-team-sched-table .col-res { width: 3.5rem; }
.espn-team-sched-table .col-score {
  width: 5.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--main-text-muted, #6b7280);
}
.espn-team-sched-table .col-link { width: 4.5rem; text-align: right; }
.espn-wk-num {
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.espn-wk-now {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  background: #1a73e8;
  color: #fff;
  vertical-align: middle;
}
.espn-ha {
  font-weight: 700;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.78rem;
}
.espn-bye {
  font-weight: 800;
  color: var(--main-text-muted, #9ca3af);
  letter-spacing: 0.04em;
}
.espn-res {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--main-text-muted, #9ca3af);
}
.espn-res.is-w { color: #059669; }
.espn-res.is-l { color: #dc2626; }
.espn-res.is-t { color: #d97706; }
.espn-row-link {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--link, #1a73e8);
  text-decoration: none;
}
.espn-row-link:hover { text-decoration: underline; }

/* Dark · schedule */
html[data-theme="dark"] .espn-sched-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 50%, #1a4fa0 100%);
}
html[data-theme="dark"] .espn-mode-btn {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-mode-btn.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}
html[data-theme="dark"] .espn-mode-btn.is-active .espn-mode-hint {
  color: #93c5fd;
}
html[data-theme="dark"] .espn-sched-toolbar,
html[data-theme="dark"] .espn-mu-card,
html[data-theme="dark"] .espn-team-sched-card {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  box-shadow: none;
}
html[data-theme="dark"] .espn-week-chip {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}
html[data-theme="dark"] .espn-week-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
html[data-theme="dark"] .espn-week-chip.is-current:not(.is-active) {
  border-color: #3b82f6;
  color: #93c5fd;
}
html[data-theme="dark"] .espn-week-block-head h2,
html[data-theme="dark"] .espn-mu-name,
html[data-theme="dark"] .espn-team-sched-banner h2,
html[data-theme="dark"] .espn-wk-num {
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-mu-card.is-mine {
  border-color: #3b6ea8;
}
html[data-theme="dark"] .espn-mu-row.is-hl .espn-mu-name {
  color: #93c5fd;
}
html[data-theme="dark"] .espn-mu-foot {
  border-color: #2e2e33;
}
html[data-theme="dark"] .espn-team-sched-banner {
  background: #1f1f24;
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-team-sched-rec {
  color: #93c5fd;
}
html[data-theme="dark"] .espn-team-picker select {
  background: #18181b;
  border-color: #3f3f46;
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-team-sched-table thead th {
  background: #1f1f24;
  color: #a1a1aa;
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-team-sched-table tbody td {
  border-color: #2e2e33;
  color: #e4e4e7;
}
html[data-theme="dark"] .espn-team-sched-table tbody tr:hover td,
html[data-theme="dark"] .espn-team-sched-table tr.is-current-week td {
  background: rgba(59, 130, 246, 0.1);
}
html[data-theme="dark"] .espn-res.is-w { color: #34d399; }
html[data-theme="dark"] .espn-res.is-l { color: #f87171; }

@media (max-width: 640px) {
  .espn-sched-modes { grid-template-columns: 1fr; }
  .espn-team-picker select { min-width: 0; width: 100%; }
  .espn-team-toolbar .espn-team-picker { width: 100%; }
}
/* ── Inline box score (schedule expand) ───────────────────────── */
.espn-mu-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.espn-mu-wrap.is-expanded,
.espn-mu-wrap:has(.espn-box-inline) {
  grid-column: 1 / -1;
}
.espn-mu-card.is-open {
  border-color: rgba(26, 115, 232, 0.55);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.espn-mu-link {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--link, #1a73e8);
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.espn-mu-link:hover { text-decoration: underline; }

.espn-box-inline {
  border: 1px solid rgba(26, 115, 232, 0.35);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--main-surface, #fff);
  overflow: hidden;
  margin-bottom: 0.15rem;
}
.espn-box-host {
  margin-top: 0.75rem;
  border: 1px solid rgba(26, 115, 232, 0.35);
  border-radius: 12px;
  background: var(--main-surface, #fff);
  overflow: hidden;
}
.espn-box {
  padding: 0;
}
.espn-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 70%);
  color: #fff;
}
.espn-box-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}
.espn-box-title {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.espn-box-title .is-you {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.espn-box-at {
  opacity: 0.7;
  font-weight: 700;
  font-size: 0.85rem;
}
.espn-box-scoreline {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.espn-box-sep { opacity: 0.65; }
.espn-box-proj-note {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-left: 0.15rem;
}
.espn-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.espn-box-actions .lg-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.espn-box-actions .lg-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.espn-box-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .espn-box-cols { grid-template-columns: 1fr 1fr; }
}
.espn-box-col {
  min-width: 0;
  border-top: 1px solid var(--main-border, #e5e7eb);
}
@media (min-width: 720px) {
  .espn-box-col + .espn-box-col {
    border-left: 1px solid var(--main-border, #e5e7eb);
  }
}
.espn-box-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--main-surface-2, #f3f4f6);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--main-text-strong, #111827);
  border-bottom: 1px solid var(--main-border, #e5e7eb);
}
.espn-box-col-head.is-you {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
}
.espn-box-col-head strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.espn-box-lines {
  padding: 0.25rem 0;
  max-height: 22rem;
  overflow-y: auto;
}
.espn-box-line {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.6rem;
  gap: 0.35rem;
  align-items: center;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
}
.espn-box-line:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}
.espn-box-line.is-bn {
  opacity: 0.85;
}
.espn-box-line.is-empty {
  opacity: 0.5;
}
.espn-box-pos {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--main-text-muted, #6b7280);
}
.espn-box-player {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
}
.espn-box-name {
  font-weight: 700;
  color: var(--main-text-strong, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.espn-box-nfl {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--main-text-muted, #6b7280);
}
.espn-box-pts {
  text-align: right;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--accent-num, #1a73e8);
}
.espn-box-foot {
  margin: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  font-size: 0.72rem;
  border-top: 1px solid var(--main-border, #eef0f3);
}

.espn-team-sched-table tr.is-box-open td {
  background: rgba(26, 115, 232, 0.08);
}
.espn-row-link {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--link, #1a73e8);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.espn-row-link:hover { text-decoration: underline; }

html[data-theme="dark"] .espn-box-inline,
html[data-theme="dark"] .espn-box-host {
  background: var(--main-surface, #18181b);
  border-color: #3b6ea8;
}
html[data-theme="dark"] .espn-box-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 70%);
}
html[data-theme="dark"] .espn-box-col,
html[data-theme="dark"] .espn-box-col-head,
html[data-theme="dark"] .espn-box-foot {
  border-color: #3f3f46;
}
html[data-theme="dark"] .espn-box-col-head {
  background: #1f1f24;
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-box-col-head.is-you {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .espn-box-line:nth-child(even) {
  background: rgba(39, 39, 42, 0.55);
}
html[data-theme="dark"] .espn-box-name {
  color: #f4f4f5;
}
html[data-theme="dark"] .espn-box-pts {
  color: #93c5fd;
}
html[data-theme="dark"] .espn-mu-card.is-open {
  border-color: #3b6ea8;
}
html[data-theme="dark"] .espn-team-sched-table tr.is-box-open td {
  background: rgba(59, 130, 246, 0.12);
}
/* ── Standings (deep ESPN-style board) ────────────────────────── */
.st-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 55%, #3b8ef0 100%);
  color: #fff;
}
.st-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.st-head h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.st-head p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
  max-width: 36rem;
  line-height: 1.4;
}
.st-head-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.st-stat {
  min-width: 3.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}
.st-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.st-stat-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.st-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.st-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #4b5563);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.st-tab:hover {
  background: var(--main-surface-2, #f3f4f6);
  color: var(--main-text-strong, #111827);
}
.st-tab.is-active {
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}
.st-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.st-mode-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  padding: 0 0.35rem;
}
.st-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #4b5563);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.st-mode-btn.is-active {
  background: #1a73e8;
  color: #fff;
}

.st-panel { margin-bottom: 1rem; }
.st-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.st-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem 0.55rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
}
.st-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.st-card-head .lg-muted {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
}

.st-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 52rem;
}
.st-table-compact { min-width: 28rem; }
.st-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
  background: var(--main-surface-2, #f3f4f6);
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  padding: 0.45rem 0.5rem;
  white-space: nowrap;
  user-select: none;
}
.st-table thead th[data-sort] {
  cursor: pointer;
}
.st-table thead th[data-sort]:hover,
.st-table thead th.is-sorted {
  color: #1a73e8;
}
.st-table tbody td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  vertical-align: middle;
  color: var(--main-text, #1f2937);
}
.st-table tbody tr:hover td {
  background: rgba(26, 115, 232, 0.04);
}
.st-table tr.is-mine td {
  background: rgba(26, 115, 232, 0.07);
}
.st-table .col-rk { width: 2.4rem; }
.st-table .col-num,
.st-table .col-rec,
.st-table .col-streak,
.st-table .col-div,
.st-table .col-seed {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-table .col-num { text-align: right; font-weight: 650; }
.st-table .col-rec { font-weight: 750;  white-space: nowrap; letter-spacing: 0.02em;}
.st-rk {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.25rem;
  border-radius: 6px;
  background: var(--main-surface-2, #f1f5f9);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--main-text-muted, #475569);
}
.st-table tr.is-playoff .st-rk {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}
.st-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.st-team strong {
  color: var(--main-text-strong, #0f172a);
  font-weight: 750;
}
.st-team-sub {
  font-size: 0.7rem;
  margin-top: 0.1rem;
}
.st-you {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  background: #1a73e8;
  color: #fff;
}
.st-mini-in {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  background: #059669;
  color: #fff;
}
.st-diff.is-pos { color: #059669; font-weight: 800; }
.st-diff.is-neg { color: #dc2626; font-weight: 800; }
.st-streak {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--main-text-muted, #6b7280);
}
.st-streak.is-w { color: #059669; }
.st-streak.is-l { color: #dc2626; }
.st-seed-pill {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--main-surface-2, #f1f5f9);
  color: var(--main-text-muted, #94a3b8);
}
.st-seed-pill.is-in {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}
.st-cut-row td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.st-cut-row span {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  background: repeating-linear-gradient(
    -45deg,
    #fffbeb,
    #fffbeb 8px,
    #fef3c7 8px,
    #fef3c7 16px
  );
  border-top: 2px dashed #f59e0b;
  border-bottom: 2px dashed #f59e0b;
  padding: 0.28rem 0.5rem;
}
.st-footnote {
  margin: 0;
  padding: 0.5rem 0.9rem 0.65rem;
  font-size: 0.72rem;
  border-top: 1px solid var(--main-border, #eef0f3);
}

/* Divisions */
.st-div-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .st-div-grid { grid-template-columns: 1fr 1fr; }
}

/* Playoff picture */
.st-playoff-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 900px) {
  .st-playoff-layout { grid-template-columns: 1fr 1fr; }
}
.st-seed-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem;
}
.st-seed-card {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
}
.st-seed-card.is-in {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}
.st-seed-card.is-out {
  opacity: 0.92;
}
.st-seed-card.is-mine {
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.35);
}
.st-seed-num {
  font-weight: 900;
  font-size: 0.95rem;
  color: #1a73e8;
  text-align: center;
}
.st-seed-card.is-in .st-seed-num { color: #047857; }
.st-seed-card.is-out .st-seed-num { color: #94a3b8; }
.st-seed-team {
  font-weight: 750;
  color: var(--main-text-strong, #0f172a);
}
.st-seed-meta { font-size: 0.72rem; margin-top: 0.1rem; }
.st-seed-gb {
  font-size: 0.75rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--main-text-muted, #6b7280);
}
.st-cut-card { padding: 0.85rem 1rem; }
.st-cut-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
.st-cut-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.st-cut-text {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--main-text-strong, #111827);
}
.st-cut-vs {
  font-weight: 900;
  color: var(--main-text-muted, #9ca3af);
  letter-spacing: 0.06em;
}

/* Points leaders */
.st-points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .st-points-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .st-points-grid { grid-template-columns: repeat(3, 1fr); }
}
.st-pts-list { padding: 0.35rem 0.5rem 0.55rem; }
.st-pts-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  font-size: 0.84rem;
}
.st-pts-row:hover { background: rgba(26, 115, 232, 0.04); }
.st-pts-row.is-mine { background: rgba(26, 115, 232, 0.08); }
.st-pts-rk {
  font-weight: 800;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.75rem;
}
.st-pts-team {
  font-weight: 700;
  color: var(--main-text-strong, #0f172a);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-pts-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-num, #1a73e8);
}

html[data-theme="dark"] .st-head {
  background: linear-gradient(135deg, #0a1f44 0%, #123a7a 50%, #1a4fa0 100%);
}
html[data-theme="dark"] .st-tabs,
html[data-theme="dark"] .st-mode,
html[data-theme="dark"] .st-card {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  box-shadow: none;
}
html[data-theme="dark"] .st-tab.is-active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
html[data-theme="dark"] .st-mode-btn.is-active {
  background: #2563eb;
}
html[data-theme="dark"] .st-card-head,
html[data-theme="dark"] .st-footnote {
  border-color: #2e2e33;
}
html[data-theme="dark"] .st-card-head h2,
html[data-theme="dark"] .st-team strong,
html[data-theme="dark"] .st-seed-team,
html[data-theme="dark"] .st-pts-team,
html[data-theme="dark"] .st-cut-text {
  color: #f4f4f5;
}
html[data-theme="dark"] .st-table thead th {
  background: #1f1f24;
  color: #a1a1aa;
  border-color: #3f3f46;
}
html[data-theme="dark"] .st-table thead th[data-sort]:hover,
html[data-theme="dark"] .st-table thead th.is-sorted {
  color: #93c5fd;
}
html[data-theme="dark"] .st-table tbody td {
  border-color: #2e2e33;
  color: #e4e4e7;
}
html[data-theme="dark"] .st-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.08);
}
html[data-theme="dark"] .st-table tr.is-mine td {
  background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .st-rk {
  background: #27272a;
  color: #a1a1aa;
}
html[data-theme="dark"] .st-table tr.is-playoff .st-rk,
html[data-theme="dark"] .st-seed-pill.is-in {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
html[data-theme="dark"] .st-diff.is-pos,
html[data-theme="dark"] .st-streak.is-w { color: #34d399; }
html[data-theme="dark"] .st-diff.is-neg,
html[data-theme="dark"] .st-streak.is-l { color: #f87171; }
html[data-theme="dark"] .st-cut-row span {
  color: #fcd34d;
  background: repeating-linear-gradient(
    -45deg,
    #422006,
    #422006 8px,
    #78350f 8px,
    #78350f 16px
  );
  border-color: #d97706;
}
html[data-theme="dark"] .st-seed-card {
  background: #1f1f24;
  border-color: #3f3f46;
}
html[data-theme="dark"] .st-seed-card.is-in {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
}
html[data-theme="dark"] .st-pts-val { color: #93c5fd; }

@media (max-width: 640px) {
  .st-cut-inner { grid-template-columns: 1fr; text-align: center; }
  .st-cut-vs { display: none; }
}
/* ── Matchup v2 (clean ESPN-style box) ────────────────────────── */
.mu2-board {
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b3d91 0%, #1a73e8 52%, #3b8ef0 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.22);
}
.mu2-board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.mu2-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}
.mu2-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.mu2-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
  opacity: 0.9;
}
.mu2-links a:hover { text-decoration: underline; opacity: 1; }

.mu2-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.mu2-side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.mu2-side.is-opp {
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
}
.mu2-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
}
.mu2-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mu2-avatar-fb {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.mu2-meta { min-width: 0; }
.mu2-meta.is-right { text-align: right; }
.mu2-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mu2-team {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu2-rec {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 650;
  opacity: 0.88;
}
.mu2-score {
  font-size: 1.85rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3.2rem;
}
.mu2-side.is-mine .mu2-score { text-align: right; }
.mu2-side.is-opp .mu2-score { text-align: left; order: -1; }

.mu2-mid {
  text-align: center;
  padding: 0 0.25rem;
}
.mu2-week {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mu2-vs {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0.15rem 0;
  opacity: 0.9;
}
.mu2-margin {
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.9;
  white-space: nowrap;
}

.mu2-winbar {
  display: flex;
  height: 0.4rem;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
}
.mu2-winbar-fill { height: 100%; transition: width 0.25s ease; }
.mu2-winbar-fill.is-mine { background: #86efac; }
.mu2-winbar-fill.is-opp { background: rgba(255, 255, 255, 0.35); }
.mu2-winlbl {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.9;
}

.mu2-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
}
.mu2-week-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28rem;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.mu2-week-chip {
  appearance: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  color: var(--main-text-muted, #4b5563);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.mu2-week-chip:hover { border-color: rgba(26, 115, 232, 0.4); color: #1a73e8; }
.mu2-week-chip.is-active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
.mu2-week-chip.is-current:not(.is-active) {
  border-color: rgba(26, 115, 232, 0.5);
  color: #1a73e8;
}
.mu2-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mu2-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.mu2-chip {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  color: var(--main-text, #374151);
}
.mu2-chip.is-good {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.mu2-chip.is-bad {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.mu2-lineups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 860px) {
  .mu2-lineups { grid-template-columns: 1fr 1fr; }
}
.mu2-col {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mu2-col.is-mine {
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mu2-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem 0.55rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
  background: var(--main-surface-2, #f8fafc);
}
.mu2-col.is-mine .mu2-col-head {
  background: rgba(26, 115, 232, 0.06);
}
.mu2-col-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--main-text-muted, #6b7280);
}
.mu2-col-head h2 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--main-text-strong, #0f172a);
}
.mu2-col-total {
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1a73e8;
}
.mu2-lines { padding: 0.25rem 0; }
.mu2-line {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid transparent;
}
.mu2-line:nth-child(even) { background: rgba(248, 250, 252, 0.75); }
.mu2-line.is-win { border-left-color: #10b981; }
.mu2-line.is-lose { border-left-color: #f87171; }
.mu2-line.is-tie { border-left-color: #cbd5e1; }
.mu2-line.is-bench { opacity: 0.88; }
.mu2-line.is-empty { opacity: 0.5; }
.mu2-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.14rem 0.22rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: #64748b;
}
.mu2-pos.pos-qb { background: #7c3aed; }
.mu2-pos.pos-rb { background: #059669; }
.mu2-pos.pos-wr { background: #2563eb; }
.mu2-pos.pos-te { background: #d97706; }
.mu2-pos.pos-flex { background: #0d9488; }
.mu2-pos.pos-dst { background: #475569; }
.mu2-pos.pos-k { background: #db2777; }
.mu2-pos.pos-bn { background: #94a3b8; color: #0f172a; }
.mu2-player { min-width: 0; }
.mu2-pname {
  font-weight: 750;
  font-size: 0.86rem;
  color: var(--main-text-strong, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu2-pmeta {
  margin-top: 0.08rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--main-text-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.3rem;
}
.mu2-dot { opacity: 0.5; }
.mu2-inj {
  font-size: 0.58rem;
  font-weight: 900;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  background: #fffbeb;
  color: #b45309;
  vertical-align: middle;
}
.mu2-inj.is-o, .mu2-inj.is-ir { background: #fef2f2; color: #b91c1c; }
.mu2-pts-wrap { text-align: right; }
.mu2-pts {
  display: block;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--accent-num, #1a73e8);
}

.mu2-pts.mu2-pts--proj {
  color: var(--main-text-muted, #6b7280);
  font-weight: 700;
}
.mu2-pts.mu2-pts--empty {
  color: var(--main-text-muted, #9ca3af);
  font-weight: 600;
}
html[data-theme="dark"] .mu2-pts.mu2-pts--proj {
  color: #9ca3af;
}
.mu2-pts-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-text-muted, #9ca3af);
}
.mu2-bye-note {
  padding: 1.25rem 0.85rem;
  text-align: center;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.88rem;
  font-weight: 650;
}

/* Slot compare */
.mu2-compare-card {
  background: var(--main-surface, #fff);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.mu2-compare-head {
  padding: 0.7rem 0.9rem 0.45rem;
  border-bottom: 1px solid var(--main-border, #eef0f3);
}
.mu2-compare-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--main-text-strong, #111827);
}
.mu2-compare-head .lg-muted {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
}
.mu2-compare-list { padding: 0.35rem 0.5rem 0.55rem; }
.mu2-cmp-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  margin-bottom: 0.2rem;
}
.mu2-cmp-row.is-mine { background: rgba(16, 185, 129, 0.08); }
.mu2-cmp-row.is-opp { background: rgba(248, 113, 113, 0.08); }
.mu2-cmp-row.is-tie { background: var(--main-surface-2, #f8fafc); }
.mu2-cmp-side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mu2-cmp-side.is-opp { justify-content: flex-end; text-align: right; }
.mu2-cmp-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--main-text-strong, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu2-cmp-pts {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  color: var(--accent-num, #1a73e8);
  flex-shrink: 0;
}
.mu2-cmp-slot {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--main-text-muted, #6b7280);
  min-width: 2.4rem;
  text-align: center;
}
.mu2-foot {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  padding: 0 0.15rem;
}
.mu2-foot a {
  color: var(--link, #1a73e8);
  font-weight: 700;
  text-decoration: none;
}
.mu2-foot a:hover { text-decoration: underline; }

html[data-theme="dark"] .mu2-board {
  background: linear-gradient(145deg, #0a1f44 0%, #123a7a 55%, #1a4fa0 100%);
  box-shadow: none;
}
html[data-theme="dark"] .mu2-toolbar,
html[data-theme="dark"] .mu2-col,
html[data-theme="dark"] .mu2-compare-card {
  background: var(--main-surface, #18181b);
  border-color: #3f3f46;
  box-shadow: none;
}
html[data-theme="dark"] .mu2-week-chip {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}
html[data-theme="dark"] .mu2-week-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
html[data-theme="dark"] .mu2-chip {
  background: #18181b;
  border-color: #3f3f46;
  color: #e4e4e7;
}
html[data-theme="dark"] .mu2-chip.is-good {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
html[data-theme="dark"] .mu2-chip.is-bad {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
html[data-theme="dark"] .mu2-col-head {
  background: #1f1f24;
  border-color: #2e2e33;
}
html[data-theme="dark"] .mu2-col.is-mine .mu2-col-head {
  background: rgba(59, 130, 246, 0.1);
}
html[data-theme="dark"] .mu2-col-head h2,
html[data-theme="dark"] .mu2-pname,
html[data-theme="dark"] .mu2-cmp-name,
html[data-theme="dark"] .mu2-compare-head h2 {
  color: #f4f4f5;
}
html[data-theme="dark"] .mu2-col-total,
html[data-theme="dark"] .mu2-pts,
html[data-theme="dark"] .mu2-cmp-pts {
  color: #93c5fd;
}
html[data-theme="dark"] .mu2-line:nth-child(even) {
  background: rgba(39, 39, 42, 0.55);
}
html[data-theme="dark"] .mu2-cmp-row.is-mine {
  background: rgba(16, 185, 129, 0.1);
}
html[data-theme="dark"] .mu2-cmp-row.is-opp {
  background: rgba(248, 113, 113, 0.1);
}
html[data-theme="dark"] .mu2-cmp-row.is-tie {
  background: #1f1f24;
}

@media (max-width: 700px) {
  .mu2-score-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mu2-side,
  .mu2-side.is-opp {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  .mu2-side.is-opp .mu2-score { order: 0; }
  .mu2-meta.is-right { text-align: center; }
  .mu2-mid { order: -1; padding-bottom: 0.25rem; }
  .mu2-score { font-size: 1.6rem; }
}
/* ── My Team drag/drop + save bar ─────────────────────────────── */
.espn-roster-table.is-editable .mt-slot-row.is-filled {
  cursor: grab;
}
.espn-roster-table.is-editable .mt-slot-row.is-filled:active {
  cursor: grabbing;
}
.mt-slot-row.is-dragging {
  opacity: 0.45;
}
.mt-slot-row.is-drop-ok {
  outline: 1px dashed rgba(16, 185, 129, 0.7);
  outline-offset: -2px;
  background: rgba(16, 185, 129, 0.06) !important;
}
.mt-slot-row.is-drop-bad {
  opacity: 0.55;
}
.mt-slot-row.is-drag-over.is-drop-ok {
  outline: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.14) !important;
}
.mt-slot-row.is-empty .mt-empty-label {
  color: var(--main-text-muted, #9ca3af);
  font-weight: 650;
  font-style: italic;
}
.mt-drag-handle {
  cursor: grab;
  letter-spacing: -0.08em;
  user-select: none;
  color: var(--main-text-muted, #94a3b8) !important;
  border-color: transparent !important;
  background: transparent !important;
}
.mt-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08) 30%, rgba(15, 23, 42, 0.12));
  pointer-events: none;
}
.mt-savebar-inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #052e16;
  border: 1px solid #16a34a;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35);
  color: #ecfdf5;
}
.mt-savebar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.mt-savebar-text strong {
  font-size: 0.92rem;
  font-weight: 800;
}
.mt-savebar-text span {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 600;
}
.mt-savebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.mt-savebar-actions .lg-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ecfdf5;
}
.mt-savebar-actions .lg-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.mt-cancel-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 2px 0 #991b1b, 0 6px 16px rgba(220, 38, 38, 0.35);
}
.mt-cancel-btn:hover {
  filter: brightness(1.06);
}
.mt-cancel-btn:active {
  transform: translateY(1px);
}
.mt-save-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  color: #052e16;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 2px 0 #15803d, 0 6px 16px rgba(34, 197, 94, 0.35);
}
.mt-save-btn:hover {
  filter: brightness(1.05);
}
.mt-save-btn:active {
  transform: translateY(1px);
}
body.mt-has-dirty {
  padding-bottom: 5.5rem;
}
body.app-ready.mt-has-dirty .mt-savebar {
  /* sit above mobile bottom nav if present */
  bottom: 0;
}
html[data-theme="dark"] .mt-slot-row.is-drop-ok {
  background: rgba(16, 185, 129, 0.12) !important;
}
html[data-theme="dark"] .mt-slot-row.is-drag-over.is-drop-ok {
  background: rgba(16, 185, 129, 0.2) !important;
}
html[data-theme="dark"] .mt-savebar {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
/* Notifications strip */
.cm-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
/* phones: hide the chip strip (user: too intrusive on mobile); desktop keeps it */
@media (max-width: 767px) { .cm-notes, body.mobile-v3 .cm-notes { display: none !important; } }
.cm-note {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface, #fff);
  color: var(--main-text, #374151);
}
.cm-note.is-info { border-color: rgba(26, 115, 232, 0.35); color: #1a73e8; background: rgba(26, 115, 232, 0.06); }
.cm-note.is-warn { border-color: #fbbf24; color: #b45309; background: #fffbeb; }
.cm-note.is-alert { border-color: #f87171; color: #b91c1c; background: #fef2f2; }
.cm-chat-form {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.cm-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  background: var(--main-surface-2, #f8fafc);
  font-family: inherit;
  font-size: 0.88rem;
}

/* Trades */
.tr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d91, #1a73e8);
  color: #fff;
}
.tr-head-actions { flex-shrink: 0; }
.tr-head-actions .lg-btn {
  background: #fff;
  color: #0b3d91;
  border-color: transparent;
  font-weight: 800;
}
.tr-head-actions .lg-btn:hover { filter: brightness(0.96); }
.tr-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.tr-head h1 { margin: 0.15rem 0 0.25rem; font-size: 1.35rem; font-weight: 800; }
.tr-head p { margin: 0; opacity: 0.92; font-size: 0.88rem; }
.tr-layout { display: grid; gap: 0.75rem; }
@media (min-width: 960px) { .tr-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.tr-cols { display: grid; gap: 0.65rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .tr-cols { grid-template-columns: 1fr 1fr; } }
.tr-lab { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--main-text-muted, #6b7280); margin-bottom: 0.35rem; }
.tr-check-list { max-height: 14rem; overflow: auto; border: 1px solid var(--main-border, #e5e7eb); border-radius: 8px; padding: 0.35rem; }
.tr-check { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.35rem; font-size: 0.82rem; font-weight: 650; }
.tr-pos { font-size: 0.65rem; font-weight: 800; color: #1a73e8; min-width: 1.8rem; }
.tr-error { color: #b91c1c; font-weight: 650; font-size: 0.82rem; margin-top: 0.5rem; }
.tr-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.55rem; }
.tr-card { border: 1px solid var(--main-border, #e5e7eb); border-radius: 10px; padding: 0.7rem 0.8rem; background: var(--main-surface-2, #f8fafc); }
.tr-card.is-accepted { border-color: rgba(16, 185, 129, 0.45); }
.tr-card.is-pending { border-color: rgba(26, 115, 232, 0.35); }
.tr-card-top { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.tr-status { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: #1a73e8; }
.tr-card-teams { font-size: 0.95rem; margin-bottom: 0.35rem; }
.tr-card-assets { font-size: 0.82rem; margin-top: 0.15rem; }
.tr-dir { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--main-text-muted, #6b7280); margin-right: 0.25rem; }
.tr-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.tr-filters { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Playoffs */
.po-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.1rem; margin-bottom: 0.75rem; border-radius: 12px;
  background: linear-gradient(135deg, #3b0764, #6d28d9 55%, #7c3aed); color: #fff;
}
.po-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.po-head h1 { margin: 0.15rem 0 0.25rem; font-size: 1.35rem; font-weight: 800; }
.po-head p { margin: 0; opacity: 0.92; font-size: 0.88rem; }
.po-seeds { padding: 0.75rem 0.9rem; margin-bottom: 0.75rem; }
.po-seeds-head { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--main-text-muted, #6b7280); margin-bottom: 0.45rem; }
.po-seed-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.po-seed { display: flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.55rem; border-radius: 8px; background: var(--main-surface-2, #f3f4f6); border: 1px solid var(--main-border, #e5e7eb); font-size: 0.82rem; }
.po-seed.is-mine { border-color: rgba(26, 115, 232, 0.45); background: rgba(26, 115, 232, 0.08); }
.po-seed-num { font-weight: 900; color: #1a73e8; }
.po-seed-team { font-weight: 750; }
.po-seed-rec { color: var(--main-text-muted, #6b7280); font-weight: 650; font-size: 0.75rem; }
.po-bracket { display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .po-bracket { grid-template-columns: repeat(3, 1fr); } }
.po-round { background: var(--main-surface, #fff); border: 1px solid var(--main-border, #e5e7eb); border-radius: 12px; padding: 0.7rem; }
.po-round-name { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--main-text-muted, #6b7280); margin-bottom: 0.5rem; }
.po-game { border: 1px solid var(--main-border, #e5e7eb); border-radius: 10px; padding: 0.5rem 0.6rem; margin-bottom: 0.45rem; background: var(--main-surface-2, #f8fafc); }
.po-game-label { font-size: 0.65rem; font-weight: 800; color: var(--main-text-muted, #6b7280); margin-bottom: 0.3rem; }
.po-team { font-weight: 750; font-size: 0.86rem; padding: 0.25rem 0; color: var(--main-text-strong, #0f172a); }
.po-team.is-mine { color: #1a73e8; }
.po-s { font-size: 0.72rem; font-weight: 900; color: var(--main-text-muted, #6b7280); margin-right: 0.2rem; }

/* My Team filters / move / saved */
.mt-lock-banner {
  margin: 0 0.85rem 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 0.82rem;
  font-weight: 750;
}
.mt-roster-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem 0.55rem;
}
.mt-roster-filters input {
  flex: 1;
  min-width: 10rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #d1d5db);
  font-family: inherit;
  font-size: 0.85rem;
}
.mt-move-btn { margin-right: 0.25rem; }
.mt-move-targets { display: flex; flex-direction: column; gap: 0.35rem; max-height: 18rem; overflow: auto; }
.mt-move-target {
  appearance: none; border: 1px solid var(--main-border, #e5e7eb); background: var(--main-surface-2, #f8fafc);
  border-radius: 8px; padding: 0.5rem 0.65rem; text-align: left; cursor: pointer; font-family: inherit; font-weight: 650; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.mt-move-target:hover { border-color: #1a73e8; background: rgba(26, 115, 232, 0.06); }
.mt-slot-row.is-locked { cursor: default !important; opacity: 0.92; }
.mt-save-btn.is-saved {
  background: linear-gradient(180deg, #86efac 0%, #4ade80 100%) !important;
}

html[data-theme="dark"] .cm-note {
  background: #18181b; border-color: #3f3f46; color: #e4e4e7;
}
html[data-theme="dark"] .cm-note.is-info { color: #93c5fd; background: rgba(59, 130, 246, 0.12); border-color: #3b6ea8; }
html[data-theme="dark"] .cm-note.is-warn { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: #b45309; }
html[data-theme="dark"] .cm-note.is-alert { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: #b91c1c; }
html[data-theme="dark"] .cm-chat-form input,
html[data-theme="dark"] .mt-roster-filters input,
html[data-theme="dark"] .tr-check-list,
html[data-theme="dark"] .tr-card,
html[data-theme="dark"] .po-round,
html[data-theme="dark"] .po-game,
html[data-theme="dark"] .mt-move-target {
  background: #18181b; border-color: #3f3f46; color: #f4f4f5;
}
html[data-theme="dark"] .mt-lock-banner {
  background: rgba(239, 68, 68, 0.12); border-color: #7f1d1d; color: #fca5a5;
}
html[data-theme="dark"] .po-team { color: #f4f4f5; }
html[data-theme="dark"] .po-seed { background: #1f1f24; border-color: #3f3f46; }
/* ── ESPN-style player card modal ─────────────────────────────── */
body.pc-open { overflow: hidden; }
.pc-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.pc-root[hidden] { display: none !important; }
.pc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.pc-sheet {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: #f4f6f8;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: #111827;
}
.pc-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}
.pc-close:hover { background: rgba(0, 0, 0, 0.06); color: #111; }

.pc-hero {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1rem 0.85rem;
  border-radius: 14px 14px 0 0;
}
.pc-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 0.9rem;
  align-items: start;
}
@media (max-width: 560px) {
  .pc-hero-inner { grid-template-columns: auto 1fr; }
  .pc-ranks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
.pc-photo-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}
.pc-headshot {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  background: #e5e7eb;
  display: block;
}
.pc-headshot-fallback {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a73e8, #0b3d91);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
}
.pc-team-logo {
  position: absolute;
  left: -0.35rem;
  bottom: -0.25rem;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  padding: 0.1rem;
}
.pc-identity { min-width: 0; }
.pc-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 0.05rem;
}
.pc-identity h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.pc-team-full {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: 600;
}
.pc-kv-grid {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.2rem;
}
.pc-kv {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.78rem;
}
.pc-k {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}
.pc-v { font-weight: 700; color: #111827; }
.pc-v.is-link { color: #1a73e8; }
/* Status: Active green · Q yellow · Doubtful orange · Out/IR red */
.pc-v.pc-status.is-active,
.pc-status.is-active {
  color: #16a34a !important;
}
.pc-v.pc-status.is-q,
.pc-status.is-q {
  color: #ca8a04 !important; /* yellow */
}
.pc-v.pc-status.is-d,
.pc-status.is-d {
  color: #ea580c !important; /* orange */
}
.pc-v.pc-status.is-o,
.pc-v.pc-status.is-ir,
.pc-status.is-o,
.pc-status.is-ir {
  color: #dc2626 !important; /* red */
}
.pc-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin-left: 0.2rem;
}
.pc-ranks {
  text-align: right;
  min-width: 7.5rem;
}
.pc-rank { margin-bottom: 0.45rem; }
.pc-rank .pc-k { display: block; margin-bottom: 0.1rem; }
.pc-rank-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.pc-rank-val small {
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.15rem;
}
.pc-rank-val small.is-down { color: #dc2626; }
.pc-rank-val small.is-up { color: #059669; }

.pc-section {
  margin: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.65rem 0.75rem 0.75rem;
}
.pc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.pc-linkish { font-size: 0.78rem; font-weight: 700; color: #1a73e8; }
.pc-source { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; color: #9ca3af; }
.pc-table-wrap { overflow-x: auto; }
.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  min-width: 22rem;
}
.pc-table th {
  text-align: right;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.25rem 0.3rem;
  border-bottom: 1px solid #eef0f3;
  white-space: nowrap;
}
.pc-table th:first-child,
.pc-table td:first-child { text-align: left; }
.pc-table td {
  text-align: right;
  padding: 0.4rem 0.3rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.pc-row-lab { font-weight: 750 !important; color: #4b5563 !important; }
.pc-opp { color: #1a73e8 !important; font-weight: 750 !important; }
.pc-news-when {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pc-news p {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1f2937;
}
.pc-spin { color: #374151; }
.pc-spin strong { color: #0f172a; }

/* Clickable player names */
[data-player-card] {
  cursor: pointer;
}
[data-player-card]:hover {
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-theme="dark"] .pc-sheet { background: #18181b; color: #e4e4e7; }
html[data-theme="dark"] .pc-hero,
html[data-theme="dark"] .pc-section {
  background: #1f1f24;
  border-color: #3f3f46;
}
html[data-theme="dark"] .pc-identity h2,
html[data-theme="dark"] .pc-rank-val,
html[data-theme="dark"] .pc-section-head,
html[data-theme="dark"] .pc-v,
html[data-theme="dark"] .pc-table td,
html[data-theme="dark"] .pc-spin strong {
  color: #f4f4f5;
}
html[data-theme="dark"] .pc-team-full,
html[data-theme="dark"] .pc-k,
html[data-theme="dark"] .pc-table th,
html[data-theme="dark"] .pc-source,
html[data-theme="dark"] .pc-news-when {
  color: #a1a1aa;
}
html[data-theme="dark"] .pc-table td,
html[data-theme="dark"] .pc-table th {
  border-color: #2e2e33;
}
html[data-theme="dark"] .pc-news p { color: #d4d4d8; }
html[data-theme="dark"] .pc-close { color: #a1a1aa; }
html[data-theme="dark"] .pc-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
html[data-theme="dark"] [data-player-card]:hover { color: #93c5fd; }
.pc-row-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #e5e7eb;
  flex-shrink: 0;
}
.pc-row-thumb.is-fb {
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #1a73e8, #0b3d91);
}
.espn-player.has-thumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.espn-player.has-thumb .espn-player-name,
.espn-player.has-thumb .espn-player-meta {
  /* keep stack */
}
.espn-player-text { min-width: 0; flex: 1; }
.espn-player.has-thumb { display: flex; align-items: center; gap: 0.5rem; }

.pc-show-more {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-size: 0.88rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
}
.pc-show-more:hover {
  background: rgba(26, 115, 232, 0.08);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] .pc-show-more {
  color: #93c5fd;
}
html[data-theme="dark"] .pc-show-more:hover {
  background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .pc-v.pc-status.is-active,
html[data-theme="dark"] .pc-status.is-active { color: #4ade80 !important; }
html[data-theme="dark"] .pc-v.pc-status.is-q,
html[data-theme="dark"] .pc-status.is-q { color: #facc15 !important; }
html[data-theme="dark"] .pc-v.pc-status.is-d,
html[data-theme="dark"] .pc-status.is-d { color: #fb923c !important; }
html[data-theme="dark"] .pc-v.pc-status.is-o,
html[data-theme="dark"] .pc-v.pc-status.is-ir,
html[data-theme="dark"] .pc-status.is-o,
html[data-theme="dark"] .pc-status.is-ir { color: #f87171 !important; }
/* Team page */
.tp-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1000px) {
  .tp-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
}
a.tp-team-link,
.tp-team-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  cursor: pointer;
}
a.tp-team-link:hover,
.tp-team-link:hover {
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] a.tp-team-link:hover,
html[data-theme="dark"] .tp-team-link:hover {
  color: #93c5fd;
}
/* Manager link on player cards */
.pc-v.is-link.pc-team-link {
  cursor: pointer;
  text-decoration: none;
}
.pc-v.is-link.pc-team-link:hover {
  text-decoration: underline;
}
.cm-game-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cm-game-meta.is-right { align-items: flex-end; text-align: right; }
.cm-game-score {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-num, #1a73e8);
}
a.cm-game-name {
  color: inherit;
  text-decoration: none;
}
a.cm-game-name:hover {
  color: #1a73e8;
  text-decoration: underline;
}
a.cm-vs-badge {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
a.cm-vs-badge:hover {
  color: #1a73e8;
}
html[data-theme="dark"] a.cm-game-name:hover,
html[data-theme="dark"] a.cm-vs-badge:hover {
  color: #93c5fd;
}
html[data-theme="dark"] .cm-game-score {
  color: #93c5fd;
}
/* Trade analyzer */
.tr-layout-3 {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1100px) {
  .tr-layout-3 {
    grid-template-columns: 1.05fr 1.15fr 1fr;
    align-items: start;
  }
}
@media (min-width: 800px) and (max-width: 1099px) {
  .tr-layout-3 { grid-template-columns: 1fr 1fr; }
  .tr-list-card { grid-column: 1 / -1; }
}
.tr-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  padding-right: 2.2rem;
}
.tr-check-val {
  margin-left: auto;
  position: absolute;
  right: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}
.tr-an-body { min-height: 8rem; }
.tr-an-grade-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tr-an-grade {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
  background: #f8fafc;
}
.tr-an-letter { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.tr-an-grade-lab {
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
  padding: 0 0.2rem;
}
.tr-an-grade.is-great { border-color: #22c55e; background: #ecfdf5; color: #15803d; }
.tr-an-grade.is-good { border-color: #4ade80; background: #f0fdf4; color: #166534; }
.tr-an-grade.is-fair { border-color: #94a3b8; background: #f8fafc; color: #475569; }
.tr-an-grade.is-meh { border-color: #fbbf24; background: #fffbeb; color: #b45309; }
.tr-an-grade.is-bad { border-color: #f97316; background: #fff7ed; color: #c2410c; }
.tr-an-grade.is-awful { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }
.tr-an-verdict { min-width: 0; flex: 1; }
.tr-an-verdict-text { font-weight: 750; font-size: 0.92rem; color: var(--main-text-strong, #0f172a); }
.tr-an-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tr-an-deltas .is-up { color: #16a34a; }
.tr-an-deltas .is-down { color: #dc2626; }
.tr-an-meter { margin-bottom: 0.75rem; }
.tr-an-meter-lab {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-text-muted, #9ca3af);
  margin-bottom: 0.25rem;
}
.tr-an-meter-track {
  position: relative;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #e5e7eb 50%, #ef4444);
}
.tr-an-meter-fill {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.tr-an-sides {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.55rem;
}
.tr-an-side {
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: var(--main-surface-2, #f8fafc);
}
.tr-an-side.is-get { border-color: rgba(34, 197, 94, 0.35); }
.tr-an-side.is-give { border-color: rgba(239, 68, 68, 0.25); }
.tr-an-side-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--main-text-muted, #6b7280);
}
.tr-an-asset {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.15rem 0;
}
.tr-an-asset-val { font-weight: 800; font-variant-numeric: tabular-nums; color: #1a73e8; }
.tr-an-pos { font-size: 0.65rem; font-weight: 800; color: #6b7280; }
.tr-an-side-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--main-border, #e5e7eb);
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--main-text-muted, #6b7280);
}
.tr-an-partner {
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
  color: var(--main-text, #374151);
}
.tr-an-partner .is-great { color: #15803d; }
.tr-an-partner .is-good { color: #166534; }
.tr-an-partner .is-fair { color: #475569; }
.tr-an-partner .is-meh { color: #b45309; }
.tr-an-partner .is-bad,
.tr-an-partner .is-awful { color: #b91c1c; }
.tr-an-notes {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--main-text-muted, #4b5563);
}
.tr-an-notes li { margin: 0.15rem 0; }
.tr-chip-great { background: #ecfdf5 !important; color: #15803d !important; }
.tr-chip-good { background: #f0fdf4 !important; color: #166534 !important; }
.tr-chip-fair { background: #f1f5f9 !important; color: #475569 !important; }
.tr-chip-meh { background: #fffbeb !important; color: #b45309 !important; }
.tr-chip-bad, .tr-chip-awful { background: #fef2f2 !important; color: #b91c1c !important; }

.tr-card-analysis {
  margin-top: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
}
.tr-card-analysis.is-great { border-color: #86efac; background: #f0fdf4; }
.tr-card-analysis.is-good { border-color: #bbf7d0; background: #f7fef9; }
.tr-card-analysis.is-meh { border-color: #fde68a; background: #fffbeb; }
.tr-card-analysis.is-bad,
.tr-card-analysis.is-awful { border-color: #fecaca; background: #fef2f2; }
.tr-card-an-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.tr-card-grade {
  font-size: 0.95rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
}
.tr-card-delta { font-weight: 800; font-variant-numeric: tabular-nums; margin-left: auto; }
.tr-card-delta.is-up { color: #16a34a; }
.tr-card-delta.is-down { color: #dc2626; }
.tr-card-an-bars { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.25rem; }
.tr-card-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--main-text-muted, #6b7280);
}
.tr-card-bar span { min-width: 3.8rem; }
.tr-card-bar i {
  display: block;
  height: 0.35rem;
  border-radius: 999px;
  background: #f87171;
  max-width: 100%;
}
.tr-card-bar.is-get i { background: #22c55e; }
.tr-card-an-meta {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--main-text-muted, #6b7280);
}
html[data-theme="dark"] .tr-an-side,
html[data-theme="dark"] .tr-card-analysis {
  background: #1f1f24;
  border-color: #3f3f46;
}
html[data-theme="dark"] .tr-an-verdict-text { color: #f4f4f5; }
html[data-theme="dark"] .tr-check-val { color: #93c5fd; background: rgba(59, 130, 246, 0.15); }
html[data-theme="dark"] .tr-an-meter-fill { background: #f4f4f5; border-color: #18181b; }

/* -- Trade compare modal (3v3) ----------------------------------- */
body.tc-open { overflow: hidden; }
.tc-root {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.tc-root[hidden] { display: none !important; }
.tc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.tc-sheet {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  max-height: min(94vh, 56rem);
  overflow: auto;
  background: var(--main-surface, #fff);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--main-text, #111827);
  padding: 1rem 1.1rem 1rem;
  border: 1px solid var(--main-border, #e5e7eb);
}
.tc-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--main-text-muted, #6b7280);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}
.tc-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--main-text, #111);
}
.tc-head { padding-right: 2rem; margin-bottom: 0.65rem; }
.tc-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a73e8;
}
.tc-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.tc-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--main-text-muted, #6b7280);
  line-height: 1.4;
}
.tc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--main-surface-2, #f8fafc);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 10px;
}
.tc-team-pick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.tc-team-pick select {
  min-width: 10rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface, #fff);
  color: inherit;
  font-weight: 650;
}
.tc-count {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--main-text-muted, #6b7280);
  letter-spacing: 0.02em;
}
.tc-cols {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .tc-cols {
    grid-template-columns: 1fr minmax(11rem, 15rem) 1fr;
  }
}
.tc-col {
  min-width: 0;
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 12px;
  background: var(--main-surface-2, #f8fafc);
  padding: 0.55rem;
}
.tc-col.is-mine { border-color: rgba(26, 115, 232, 0.35); }
.tc-col.is-them { border-color: rgba(239, 68, 68, 0.28); }
.tc-col.is-mid {
  background: transparent;
  border: 0;
  padding: 0;
  position: sticky;
  top: 0;
}
.tc-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 850;
}
.tc-col-hint {
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--main-text-muted, #6b7280);
}
.tc-slots {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.tc-slot {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.4rem 0.45rem;
  border-radius: 9px;
  border: 1px dashed var(--main-border, #cbd5e1);
  background: var(--main-surface, #fff);
}
.tc-slot.is-filled {
  border-style: solid;
  border-color: rgba(26, 115, 232, 0.35);
  background: #eff6ff;
}
.tc-col.is-them .tc-slot.is-filled {
  border-color: rgba(239, 68, 68, 0.3);
  background: #fef2f2;
}
.tc-slot-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
  background: #e2e8f0;
  color: #475569;
}
.tc-slot.is-filled .tc-slot-num {
  background: #1a73e8;
  color: #fff;
}
.tc-col.is-them .tc-slot.is-filled .tc-slot-num { background: #dc2626; }
.tc-slot-empty {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--main-text-muted, #94a3b8);
  grid-column: 2 / -1;
}
.tc-slot-body { min-width: 0; }
.tc-slot-name {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}
.tc-slot-meta {
  font-size: 0.7rem;
  color: var(--main-text-muted, #6b7280);
  font-weight: 650;
  margin-top: 0.1rem;
}
.tc-pos {
  font-size: 0.65rem;
  font-weight: 850;
  color: #1a73e8;
  letter-spacing: 0.02em;
}
.tc-slot-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  padding: 0;
}
.tc-slot-x:hover { background: rgba(0,0,0,0.06); color: #b91c1c; }
.tc-pool {
  max-height: 16rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--main-border, #e5e7eb);
  padding-top: 0.4rem;
}
.tc-pool-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.35rem;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0.38rem 0.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--main-surface, #fff);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.tc-pool-row:hover:not(:disabled) {
  border-color: rgba(26, 115, 232, 0.4);
  background: #eff6ff;
}
.tc-pool-row.is-on {
  border-color: #1a73e8;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.25);
}
.tc-col.is-them .tc-pool-row.is-on {
  border-color: #dc2626;
  background: #fee2e2;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.2);
}
.tc-pool-row:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tc-pool-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-pool-val {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: #1a73e8;
  font-size: 0.78rem;
}
.tc-grade-wrap { min-height: 12rem; }
.tc-grade-empty {
  border: 1px dashed var(--main-border, #cbd5e1);
  border-radius: 12px;
  padding: 1.25rem 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--main-text-muted, #94a3b8);
  background: var(--main-surface-2, #f8fafc);
}
.tc-grade-card {
  border-radius: 12px;
  border: 2px solid var(--main-border, #e5e7eb);
  padding: 0.85rem 0.75rem;
  text-align: center;
  background: var(--main-surface, #fff);
}
.tc-grade-card.is-great { border-color: #22c55e; background: #ecfdf5; }
.tc-grade-card.is-good { border-color: #4ade80; background: #f0fdf4; }
.tc-grade-card.is-fair { border-color: #94a3b8; background: #f8fafc; }
.tc-grade-card.is-meh { border-color: #fbbf24; background: #fffbeb; }
.tc-grade-card.is-bad { border-color: #f97316; background: #fff7ed; }
.tc-grade-card.is-awful { border-color: #ef4444; background: #fef2f2; }
.tc-grade-letter {
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tc-grade-card.is-great .tc-grade-letter { color: #15803d; }
.tc-grade-card.is-good .tc-grade-letter { color: #166534; }
.tc-grade-card.is-fair .tc-grade-letter { color: #475569; }
.tc-grade-card.is-meh .tc-grade-letter { color: #b45309; }
.tc-grade-card.is-bad .tc-grade-letter,
.tc-grade-card.is-awful .tc-grade-letter { color: #b91c1c; }
.tc-grade-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  opacity: 0.9;
}
.tc-grade-verdict {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--main-text-strong, #0f172a);
}
.tc-grade-deltas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem;
}
.tc-grade-deltas .is-up { color: #16a34a; }
.tc-grade-deltas .is-down { color: #dc2626; }
.tc-grade-meter { margin-bottom: 0.65rem; }
.tc-grade-meter-track {
  position: relative;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #e2e8f0 50%, #ef4444 100%);
  margin-bottom: 0.25rem;
}
.tc-grade-meter-track i {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  margin-top: -0.35rem;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.tc-grade-meter-lab {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--main-text-muted, #6b7280);
}
.tc-grade-totals {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: left;
  margin-bottom: 0.45rem;
  color: var(--main-text-muted, #475569);
}
.tc-grade-totals b { color: var(--main-text, #111); }
.tc-grade-partner {
  font-size: 0.72rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.tc-grade-partner .is-great,
.tc-grade-partner .is-good { color: #15803d; }
.tc-grade-partner .is-fair { color: #475569; }
.tc-grade-partner .is-meh { color: #b45309; }
.tc-grade-partner .is-bad,
.tc-grade-partner .is-awful { color: #b91c1c; }
.tc-grade-notes {
  margin: 0;
  padding: 0.4rem 0 0 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--main-text-muted, #64748b);
  line-height: 1.35;
}
.tc-grade-notes li { margin: 0.12rem 0; }
.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--main-border, #e5e7eb);
}
.tc-actions .lg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html[data-theme="dark"] .tc-sheet {
  background: #18181b;
  border-color: #3f3f46;
  color: #f4f4f5;
}
html[data-theme="dark"] .tc-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
html[data-theme="dark"] .tc-toolbar,
html[data-theme="dark"] .tc-col {
  background: #1f1f24;
  border-color: #3f3f46;
}
html[data-theme="dark"] .tc-col.is-mid { background: transparent; border: 0; }
html[data-theme="dark"] .tc-team-pick select,
html[data-theme="dark"] .tc-slot,
html[data-theme="dark"] .tc-pool-row {
  background: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
}
html[data-theme="dark"] .tc-slot.is-filled { background: rgba(26, 115, 232, 0.18); border-color: rgba(96, 165, 250, 0.45); }
html[data-theme="dark"] .tc-col.is-them .tc-slot.is-filled { background: rgba(239, 68, 68, 0.15); border-color: rgba(248, 113, 113, 0.4); }
html[data-theme="dark"] .tc-pool-row:hover:not(:disabled) { background: rgba(26, 115, 232, 0.2); }
html[data-theme="dark"] .tc-pool-row.is-on { background: rgba(26, 115, 232, 0.28); border-color: #60a5fa; }
html[data-theme="dark"] .tc-col.is-them .tc-pool-row.is-on { background: rgba(239, 68, 68, 0.22); border-color: #f87171; }
html[data-theme="dark"] .tc-grade-empty { background: #1f1f24; border-color: #3f3f46; }
html[data-theme="dark"] .tc-grade-card { background: #1f1f24; }
html[data-theme="dark"] .tc-grade-card.is-great { background: rgba(34, 197, 94, 0.12); }
html[data-theme="dark"] .tc-grade-card.is-good { background: rgba(74, 222, 128, 0.1); }
html[data-theme="dark"] .tc-grade-card.is-fair { background: #27272a; }
html[data-theme="dark"] .tc-grade-card.is-meh { background: rgba(251, 191, 36, 0.1); }
html[data-theme="dark"] .tc-grade-card.is-bad { background: rgba(249, 115, 22, 0.12); }
html[data-theme="dark"] .tc-grade-card.is-awful { background: rgba(239, 68, 68, 0.12); }
html[data-theme="dark"] .tc-grade-verdict { color: #f4f4f5; }
html[data-theme="dark"] .tc-grade-meter-track i { background: #f4f4f5; border-color: #18181b; }
html[data-theme="dark"] .tc-slot-x:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 899px) {
  .tc-col.is-mid { order: -1; }
  .tc-grade-wrap { min-height: auto; }
  .tc-pool { max-height: 12rem; }
}

/* Trade compare entry points */
.tr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.tr-head-actions { flex-shrink: 0; }
.espn-subnav-btn {
  margin-left: auto;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.7rem !important;
}
.pc-trade-bar {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 0 0 14px 14px;
  display: flex;
  justify-content: stretch;
}
.pc-trade-bar .lg-btn { width: 100%; justify-content: center; }
html[data-theme="dark"] .pc-trade-bar {
  background: #18181b;
  border-color: #3f3f46;
}
@media (max-width: 640px) {
  .espn-subnav-btn { margin-left: 0; width: 100%; }
}

/* ===== Trades page cleanup (2026-09-26) ===== */
.tr-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
}
.tr-head h1 { margin: 0.1rem 0 0.2rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.tr-head p { margin: 0; font-size: 0.86rem; opacity: 0.85; max-width: 36rem; }
.tr-kicker { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.tr-section-sub { margin: 0 0 0.75rem !important; font-size: 0.78rem !important; line-height: 1.35; }
.tr-layout-3 {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .tr-layout-3 { grid-template-columns: 1.05fr 1fr 1.15fr; }
  .tr-list-card { grid-column: auto; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .tr-layout-3 { grid-template-columns: 1fr 1fr; }
  .tr-list-card { grid-column: 1 / -1; }
}
.tr-propose h2,
.tr-analyzer h2,
.tr-list-card h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.tr-propose,
.tr-analyzer,
.tr-list-card {
  padding: 0.9rem 1rem;
}
.tr-check-list {
  max-height: 12.5rem;
  border-radius: 10px;
  background: var(--main-surface-2, #f8fafc);
}
.tr-check {
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
}
.tr-check:hover { background: rgba(26, 115, 232, 0.06); }
.tr-list-head { align-items: center; gap: 0.65rem; }
.tr-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  background: var(--main-surface-2, #f3f4f6);
  border: 1px solid var(--main-border, #e5e7eb);
}
.tr-filter {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--main-text-muted, #6b7280);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.tr-filter.is-on,
.tr-filter.primary {
  background: var(--main-surface, #fff);
  color: var(--main-text, #111827);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.tr-card {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tr-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.tr-card-teams { font-weight: 750; font-size: 0.92rem; }
.tr-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--main-surface-2, #f3f4f6);
}
.tr-card.is-pending .tr-status { background: rgba(26, 115, 232, 0.12); color: #1a73e8; }
.tr-card.is-accepted .tr-status { background: rgba(16, 185, 129, 0.14); color: #059669; }
.tr-an-body { min-height: 6.5rem; }
html[data-theme="dark"] .tr-check-list { background: #18181b; }
html[data-theme="dark"] .tr-filters { background: #18181b; border-color: #3f3f46; }
html[data-theme="dark"] .tr-filter.is-on,
html[data-theme="dark"] .tr-filter.primary {
  background: #27272a;
  color: #f4f4f5;
  box-shadow: none;
}
html[data-theme="dark"] .tr-head { border-bottom-color: #3f3f46; }
html[data-theme="dark"] .tr-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.25); }


/* —— Soft perspective picker (Whose perspective?) —— */
/* Soft perspective picker (Whose perspective?) */
.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: auto;
}
.pp-modal[hidden] { display: none !important; }
.pp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}
.pp-sheet {
  position: relative;
  z-index: 1;
  width: min(24rem, 100%);
  max-height: min(88vh, 34rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--main-surface, #fff);
  color: var(--main-text, #0f172a);
  border: 1px solid var(--main-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .pp-sheet {
  background: var(--main-surface, #18181b);
  border-color: var(--main-border, #3f3f46);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.pp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.75rem;
  border-bottom: 1px solid var(--main-border, #e5e7eb);
  background: linear-gradient(135deg, #0b3d91 0%, #1a73e8 85%);
  color: #fff;
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}
.pp-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}
.pp-head h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.pp-lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
}
.pp-x {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.pp-x:hover { background: rgba(255, 255, 255, 0.28); }
.pp-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0.85rem 1rem 0.35rem;
}
.pp-list {
  list-style: none;
  flex: 1;
  min-height: 0;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  overflow: auto;
}
.pp-team {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid var(--main-border, #e5e7eb);
  background: var(--main-surface-2, #f8fafc);
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.pp-team:hover { border-color: #1a73e8; }
.pp-team.is-selected {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.12);
  box-shadow: inset 0 0 0 1px #1a73e8;
}
html[data-theme="dark"] .pp-team {
  background: #27272a;
  border-color: #3f3f46;
}
html[data-theme="dark"] .pp-team.is-selected {
  background: rgba(26, 115, 232, 0.22);
}
.pp-hint { margin: 0 0 0.25rem; font-size: 0.75rem; flex-shrink: 0; }
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.65rem 1rem 1rem;
  flex-shrink: 0;
}.cm-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.cm-you-actions .lg-btn { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

/* ----- League Home week picker (2026-09-29) ----- */
.cm-weeks { margin-bottom: 0.75rem; padding: 0.6rem 0.75rem !important; }
.cm-weeks-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.cm-weeks-status { font-size: 0.78rem; font-weight: 600; color: var(--main-text-muted); }
.cm-weeks-now {
  margin-left: auto; border: 1px solid var(--main-border); background: var(--main-surface-2);
  color: var(--link); font-weight: 700; font-size: 0.74rem; border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer;
}
.cm-weeks-strip {
  display: flex; gap: 0.35rem; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.15rem;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cm-weeks-strip::-webkit-scrollbar { display: none; }
.cm-wk {
  flex: 0 0 auto; min-width: 3.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
  border: 1px solid var(--main-border); background: var(--main-surface); color: var(--main-text);
  border-radius: 10px; padding: 0.3rem 0.5rem; cursor: pointer; text-decoration: none !important; font: inherit;
}
.cm-wk:hover { border-color: var(--link); }
.cm-wk-num { font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.cm-wk-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--main-text-muted); min-height: 0.8rem; }
.cm-wk.is-final .cm-wk-sub { color: #15803d; }
.cm-wk.is-live .cm-wk-sub { color: #dc2626; }
html[data-theme="dark"] .cm-wk.is-final .cm-wk-sub { color: #4ade80; }
html[data-theme="dark"] .cm-wk.is-live .cm-wk-sub { color: #f87171; }
.cm-wk.is-upcoming { opacity: 0.8; }
.cm-wk.is-on { background: #1a73e8; border-color: #1a73e8; color: #fff; opacity: 1; }
.cm-wk.is-on .cm-wk-sub { color: rgba(255, 255, 255, 0.85) !important; }
.cm-wk.is-po { border-style: dashed; }
.cm-wk.is-po.is-on { border-style: solid; }
.cm-wk-sep {
  flex: 0 0 auto; align-self: center; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--main-text-muted); padding: 0 0.15rem 0 0.35rem; border-left: 2px solid var(--main-border); margin-left: 0.15rem;
}
.cm-seed { font-size: 0.68rem; font-weight: 800; color: var(--main-text-muted); }
.cm-proj-note { margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--main-text-muted); }
.cm-game.cm-bye { border-style: dashed; }

.cm-week-state {
  display: inline-block; vertical-align: middle; margin-left: 0.35rem; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.1rem 0.5rem;
  background: var(--main-surface-2); border: 1px solid var(--main-border); color: var(--main-text-muted);
}
.cm-week-state.is-final { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.cm-week-state.is-live { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
html[data-theme="dark"] .cm-week-state.is-final { color: #4ade80; border-color: #14532d; background: #052e16; }
html[data-theme="dark"] .cm-week-state.is-live { color: #f87171; border-color: #7f1d1d; background: #450a0a; }

/* finished weeks: winner's score stands out */
.cm-game.is-final .cm-game-score { opacity: 0.7; }
.cm-game.win-a .cm-game-side:first-child .cm-game-score,
.cm-game.win-b .cm-game-side.is-right .cm-game-score { opacity: 1; font-weight: 800; color: #15803d; }
html[data-theme="dark"] .cm-game.win-a .cm-game-side:first-child .cm-game-score,
html[data-theme="dark"] .cm-game.win-b .cm-game-side.is-right .cm-game-score { color: #4ade80; }

/* best-to-worst rank on the week's matchup cards */
.cm-rank {
  display: inline-block; font-size: 0.68rem; font-weight: 800; border-radius: 6px; padding: 0.08rem 0.4rem; margin-right: 0.2rem;
  background: var(--main-surface-2); border: 1px solid var(--main-border); color: var(--main-text-muted); vertical-align: middle;
}
.cm-rank.is-motw { background: #fef3c7; border-color: #fcd34d; color: #b45309; }
html[data-theme="dark"] .cm-rank.is-motw { background: #422006; border-color: #92400e; color: #fcd34d; }
/* Weekly Column (league/column.html + the League Home card) */
.col-picker { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: center; gap: 0.4rem; margin-top: 0.75rem; padding: 0.6rem 0.8rem; }
.col-picker::-webkit-scrollbar { display: none; }
.col-picker .cm-kicker, .col-chip { flex: 0 0 auto; white-space: nowrap; }
.col-chip { font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--main-border, #e5e7eb); text-decoration: none !important; color: inherit; }
.col-chip.on { background: var(--link, #1a73e8); border-color: var(--link, #1a73e8); color: #fff !important; }
.col-article { margin-top: 0.75rem; padding: 1.1rem 1.25rem 1.25rem; }
.col-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
.col-body { max-width: 46rem; font-size: 0.97rem; line-height: 1.62; }
.col-body p { margin: 0 0 0.8rem; }
.col-body h2 { font-size: 1.12rem; font-weight: 800; margin: 1.4rem 0 0.55rem; padding-top: 0.9rem; border-top: 1px solid var(--main-border, #e5e7eb); }
.col-body h3 { font-size: 0.98rem; font-weight: 800; margin: 1.05rem 0 0.35rem; }
.col-body .col-lede p { font-size: 1.05rem; font-weight: 600; }
/* links inside the column: point at the stat that backs the claim */
.col-body a.col-link { color: var(--link, #1a73e8); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.col-body a.col-link:hover { text-decoration-color: currentColor; }
.col-new { margin: 0.75rem 0 0; padding: 0.6rem 0.85rem; border: 1px solid var(--main-border, #e5e7eb); border-radius: 10px; font-size: 0.86rem; line-height: 1.45; }
.col-new a { font-weight: 800; color: var(--link, #1a73e8); white-space: nowrap; }
.col-table-wrap { overflow-x: auto; margin: 0 0 0.8rem; }
.col-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.col-table th, .col-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--main-border, #e5e7eb); text-align: left; }
.col-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.col-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-table tr.col-cut td { text-align: center; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #f5b700; border-bottom: 2px dashed #f5b700; padding: 0.25rem; }
.col-hr { border: 0; border-top: 1px solid var(--main-border, #e5e7eb); margin: 1.4rem 0 0.9rem; }
.col-body ul { margin: 0 0 0.8rem; padding-left: 1.2rem; list-style: disc; }
.col-body li { margin: 0.1rem 0; }
.col-fix { margin-top: 1.2rem; padding: 0.7rem 0.9rem; border: 1px dashed var(--main-border, #e5e7eb); border-radius: 10px; font-size: 0.82rem; }
.col-fix ul { margin: 0.35rem 0 0; padding-left: 1.1rem; list-style: disc; }
.col-fix li { margin: 0.2rem 0; }
.col-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
/* "Keep digging" at the end of a column */
.col-dig { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--main-border, #e5e7eb); }
.col-argue { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.45rem 0 0.6rem; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid #f5b700; background: rgba(245, 183, 0, 0.08); text-decoration: none !important; color: inherit; }
.col-argue:hover { background: rgba(245, 183, 0, 0.14); }
.col-argue-k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #f5b700; }
.col-argue-t { font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.col-dig-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.col-dig-links a { font-size: 0.82rem; font-weight: 700; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--main-border, #e5e7eb); color: var(--link, #1a73e8); text-decoration: none !important; }
.col-dig-links a:hover { border-color: var(--link, #1a73e8); }
.col-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.2rem; }
.col-nav-link { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.8rem; border: 1px solid var(--main-border, #e5e7eb); border-radius: 10px; text-decoration: none !important; color: inherit; font-weight: 800; font-size: 0.92rem; }
.col-nav-link span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--link, #1a73e8); }
.col-nav-link.next { text-align: right; grid-column: 2; }
.col-nav-link:hover { border-color: var(--link, #1a73e8); }
/* Standings: power rankings tab */
.pr-wrap { overflow-x: auto; }
.pr-weeks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.7rem; }
.pr-wk { font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--main-border, #e5e7eb); background: transparent; color: inherit; cursor: pointer; }
.pr-wk.is-on { background: var(--link, #1a73e8); border-color: var(--link, #1a73e8); color: #fff; }
.pr-table td, .pr-table th { white-space: nowrap; }
.pr-table .pr-team { text-align: left; white-space: normal; min-width: 13rem; }
.pr-why { font-size: 0.76rem; font-weight: 500; opacity: 0.75; margin-top: 0.1rem; line-height: 1.35; }
.pr-table tr.is-mine td { background: rgba(34, 197, 94, 0.12); }
.pr-up { color: #16a34a; font-weight: 800; font-size: 0.8rem; }
.pr-down { color: #dc2626; font-weight: 800; font-size: 0.8rem; }
@media (max-width: 600px) {
  .pr-table .pr-hide-sm { display: none; }
  /* phones: fit the screen, team column wraps so the one-liner is fully readable */
  .pr-table { min-width: 0 !important; width: 100%; }
  .pr-table .pr-team { min-width: 0; width: 100%; }
  .pr-table td, .pr-table th { padding-left: 0.3rem !important; padding-right: 0.3rem !important; }
}

/* column strip inside the League Home MOTW box */
.cm-motw-col { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px dashed var(--main-border, #e5e7eb); }
.cm-motw-col-text { flex: 1 1 18rem; min-width: 0; }
.cm-motw-col-text p { margin: 0.15rem 0 0; font-size: 0.9rem; font-weight: 600; }

/* League Home: one card per game = score line + history + the column's take */
.cm-slate-note { margin: -0.2rem 0 0.7rem; font-size: 0.78rem; }
.cm-slate { display: flex; flex-direction: column; gap: 0.7rem; }
.cm-slate-card { border: 1px solid var(--main-border, #e5e7eb); border-radius: 12px; overflow: hidden; }
.cm-slate-card.is-mine { border-color: #22c55e; }
.cm-slate-card.is-motw-card { border-color: #f5b700; }
.cm-slate-card > .cm-game { border: 0; border-radius: 0; margin: 0; }
.cm-slate-card .cm-game-side, .cm-slate-card .cm-game-meta { min-width: 0; }
.cm-slate-card .cm-game-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-slate-details { padding: 0.55rem 0.8rem 0.7rem; border-top: 1px solid var(--main-border, #e5e7eb); font-size: 0.86rem; }
.cm-slate-details .cm-hist-records { margin: 0 0 0.4rem; align-items: center; }
.cm-slate-details .cm-hist-recent { margin-top: 0.4rem; }
.cm-slate-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.45rem; }

/* League Home members: small link to each team's franchise history */
.cm-member-hist { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--link) !important;
  border: 1px solid var(--main-border); border-radius: 999px; padding: 0.02rem 0.4rem; margin-left: 0.25rem; text-decoration: none !important; vertical-align: middle; }
.cm-member-hist:hover { border-color: var(--link); }
/* recent chips on games that aren't yours: neutral, winner named */
.cm-hist-chip.is-neutral b { color: var(--main-text-strong); font-weight: 800; }

/* ----- Trades page: inline analyzer + league trades (2026-09-29) ----- */
.tc-card { margin-top: 0.5rem; }
.tc-inline .tc-toolbar { flex-wrap: wrap; gap: 0.5rem 1rem; }
.tc-inline .tc-pool { max-height: 22rem; }
.tc-slot-val { margin-left: auto; float: right; font-weight: 900; color: var(--link); font-variant-numeric: tabular-nums; }
.tc-slot-meta strong { color: var(--main-text-strong); }
.tc-pool-name { display: flex; flex-direction: column; min-width: 0; }
.tc-pool-sub { font-size: 0.66rem; font-weight: 600; color: var(--main-text-muted); }
.tc-inj { display: inline-block; font-size: 0.6rem; font-weight: 900; padding: 0 0.3rem; border-radius: 4px; margin-left: 0.25rem; vertical-align: middle; background: #fef3c7; color: #92400e; }
.tc-inj-o, .tc-inj-ir, .tc-inj-d { background: #fee2e2; color: #b91c1c; }
html[data-theme="dark"] .tc-inj { background: #422006; color: #fcd34d; }
html[data-theme="dark"] .tc-inj-o, html[data-theme="dark"] .tc-inj-ir, html[data-theme="dark"] .tc-inj-d { background: #450a0a; color: #fca5a5; }
.tc-inline .tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.tc-foot { flex: 1 1 18rem; font-size: 0.72rem; color: var(--main-text-muted); }
.tc-inline .tc-col.is-mid { top: 0.5rem; }

.tr-card-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.45rem; }
.tr-card-grade-col { display: flex; gap: 0.5rem; align-items: flex-start; min-width: 0; }
.tr-card-grade-col .tr-card-grade { flex: 0 0 auto; }
.tr-side { flex: 1; min-width: 0; font-size: 0.8rem; }
.tr-side-head { font-size: 0.78rem; margin-bottom: 0.2rem; }
.tr-side-row { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.12rem 0; border-top: 1px solid var(--main-border); }
.tr-side-val { font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; }
.tr-side-foot { font-size: 0.7rem; color: var(--main-text-muted); margin-top: 0.2rem; }
.tr-card-lead { margin-top: 0.45rem; font-size: 0.78rem; font-weight: 700; color: var(--main-text-strong); }
.tr-card-grade.is-great, .tr-card-grade.is-good { color: #15803d; }
.tr-card-grade.is-meh { color: #b45309; }
.tr-card-grade.is-bad, .tr-card-grade.is-awful { color: #b91c1c; }
html[data-theme="dark"] .tr-card-grade.is-great, html[data-theme="dark"] .tr-card-grade.is-good { color: #4ade80; }
html[data-theme="dark"] .tr-card-grade.is-meh { color: #fcd34d; }
html[data-theme="dark"] .tr-card-grade.is-bad, html[data-theme="dark"] .tr-card-grade.is-awful { color: #f87171; }
@media (max-width: 640px) { .tr-card-sides { grid-template-columns: 1fr; } }

/* Tough draws (power rankings, My Team week-by-week, Record Book) */
.pr-tough { line-height: 1.15; }
.pr-tough .pr-sub { font-size: 0.7rem; opacity: 0.65; font-weight: 500; }
.pr-tough.is-rough { color: #dc2626; font-weight: 700; }
.mt-wbw-card { margin-top: 1rem; }
.mt-wbw-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mt-wbw-table th, .mt-wbw-table td { padding: 0.4rem 0.45rem; text-align: center; border-bottom: 1px solid rgba(127,127,127,0.18); white-space: nowrap; }
.mt-wbw-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.mt-wbw-table td.mt-wbw-opp { text-align: left; white-space: normal; }
.mt-wbw-table .is-w { color: #16a34a; font-weight: 700; }
.mt-wbw-table .is-l { color: #dc2626; font-weight: 700; }
.mt-wbw-table .is-top3 { color: #dc2626; font-weight: 700; }
.mt-wbw-flag { display: inline-block; margin-left: 0.3rem; font-size: 0.68rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(220,38,38,0.12); color: #dc2626; }
.mt-wbw-sum { font-size: 0.85rem; margin: 0.25rem 0 0.6rem; }
@media (max-width: 767px) { .mt-wbw-table th, .mt-wbw-table td { padding: 0.35rem 0.25rem; font-size: 0.8rem; } .mt-wbw-hide-sm { display: none; } }

/* Standings: make the Power rankings tab easy to spot */
.st-tab.st-tab-power { border: 1px solid rgba(245, 183, 0, 0.75); background: rgba(245, 183, 0, 0.12); font-weight: 700; }
.st-tab.st-tab-power:not(.is-active) { animation: stPowerPulse 2.4s ease-in-out 3; }
.st-tab.st-tab-power.is-active { background: #f5b700; border-color: #f5b700; color: #1f1300; }
@keyframes stPowerPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 183, 0, 0); } 50% { box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.28); } }
@media (prefers-reduced-motion: reduce) { .st-tab.st-tab-power:not(.is-active) { animation: none; } }

/* Power rankings: the "why" line under the name on desktop, its own full-width row on phones */
.pr-table tr.pr-why-row { display: none; }
@media (max-width: 767px) {
  .pr-table .pr-team .pr-why { display: none; }
  .pr-table tr.pr-why-row { display: table-row; }
  .pr-table tr.pr-why-row td { white-space: normal !important; text-align: left; font-size: 0.76rem; line-height: 1.35; opacity: 0.8; padding-top: 0 !important; padding-bottom: 0.6rem !important; border-top: 0 !important; }
  .pr-table tbody tr:not(.pr-why-row) td { border-bottom: 0 !important; padding-bottom: 0.2rem !important; }
  .pr-table tr.pr-why-row.is-mine td { background: rgba(34, 197, 94, 0.12); }
}

/* Power rankings on phones: cards instead of the table (desktop keeps the table) */
.pr-cards { display: none; }
@media (max-width: 767px) {
  #st-panel-power .pr-wrap { display: none; }
  .pr-cards { display: flex; flex-direction: column; gap: 0.45rem; }
  .pr-card { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(127, 127, 127, 0.22); border-radius: 12px; padding: 0.55rem 0.7rem 0.6rem; }
  .pr-card.is-mine { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.08); }
  .pr-card-top { display: flex; align-items: baseline; gap: 0.4rem; }
  .pr-card-rk { font-weight: 800; font-size: 1rem; min-width: 1.2rem; }
  .pr-card-mv { font-size: 0.72rem; font-weight: 700; min-width: 1.6rem; }
  .pr-card-name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pr-card-score { font-weight: 800; font-size: 1.15rem; }
  .pr-card-stats { font-size: 0.78rem; opacity: 0.85; margin: 0.15rem 0 0 3.2rem; }
  .pr-card-stats .pr-dot { opacity: 0.45; margin: 0 0.15rem; }
  .pr-card-stats .pr-rough { color: #dc2626; font-weight: 700; }
  .pr-card-why { font-size: 0.78rem; opacity: 0.72; line-height: 1.35; margin: 0.2rem 0 0 3.2rem; }
}

/* Power rankings: "why they moved" line + plain-words explainer */
.pr-move { font-size: 0.78rem; font-weight: 700; margin-top: 0.15rem; line-height: 1.35; }
.pr-card-move { font-size: 0.8rem; font-weight: 700; margin: 0.3rem 0 0 3.2rem; line-height: 1.35; }
.pr-how { margin-top: 0.9rem; padding: 0.8rem 0.95rem; border: 1px solid rgba(127, 127, 127, 0.22); border-radius: 12px; font-size: 0.86rem; line-height: 1.45; }
.pr-how-title { font-weight: 800; margin-bottom: 0.35rem; }
.pr-how ul { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.pr-how li { margin: 0.2rem 0; }
.pr-how p { margin: 0; opacity: 0.85; }
@media (max-width: 767px) { .pr-card-why { margin-top: 0.1rem; } }

/* Power rankings: clearer hierarchy (team name > why they moved > the roast line) */
.pr-table .pr-team .tp-team-link { font-weight: 800; font-size: 0.98rem; }
.pr-table tbody tr:not(.pr-why-row) td { padding-top: 0.65rem; padding-bottom: 0.65rem; vertical-align: top; }
.pr-table tbody tr:not(.pr-why-row):nth-of-type(4n+1) td { background: rgba(127, 127, 127, 0.04); }
.pr-move, .pr-card-move { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 999px; margin-top: 0.3rem; background: rgba(127, 127, 127, 0.12); }
.pr-move.is-up, .pr-card-move.is-up { color: #15803d; background: rgba(34, 197, 94, 0.14); }
.pr-move.is-down, .pr-card-move.is-down { color: #b91c1c; background: rgba(239, 68, 68, 0.13); }
html[data-theme="dark"] .pr-move.is-up, html[data-theme="dark"] .pr-card-move.is-up { color: #4ade80; }
html[data-theme="dark"] .pr-move.is-down, html[data-theme="dark"] .pr-card-move.is-down { color: #f87171; }
.pr-table .pr-why { font-size: 0.74rem; font-weight: 400; opacity: 0.6; margin-top: 0.3rem; font-style: italic; }
.pr-card-why { font-style: italic; opacity: 0.6 !important; }
.pr-table td strong { font-size: 1.05rem; }
.pr-move, .pr-card-move { display: table; }
