/* =====================================================
   admin-redesign.css — New admin layout, sidebar, topbar,
   KPI, split, stepper, form, live-scoring, and setup
   templates. Source: League Hub design handoff prototype.
   Tokens live in style.css :root. Public site is unaffected.
   ===================================================== */

/* ===== TOOLTIP ===== */
.lh-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lh-tooltip-wrap .lh-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--slate);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 50;
  pointer-events: none;
}
.lh-tooltip-wrap .lh-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 5px solid transparent;
  border-top-color: var(--slate);
}
.lh-tooltip-wrap:hover .lh-tooltip {
  display: block;
  animation: lh-tooltip-in 150ms ease-out;
}
@keyframes lh-tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lh-tooltip-wrap:hover .lh-tooltip { animation: none; }
}

.lh-app {
  min-height: 100vh;
}
.lh-main {
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== SIDEBAR ===== */
.lh-sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.lh-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.lh-brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(229,149,0,0.12);
  display: grid; place-items: center;
}
.lh-brand-text { flex: 1; min-width: 0; }
.lh-brand-name {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.2px;
}
.lh-brand-sub {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--sidebar-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.lh-league-switch {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--sidebar-text);
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
}
.lh-league-switch:hover { background: rgba(255,255,255,0.05); color: var(--white); }

.lh-nav { flex: 1; padding: 0 10px; }
.lh-nav-group { margin-bottom: 14px; }
.lh-nav-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(255,255,255,0.38);
  padding: 6px 10px 4px;
}
.lh-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-align: left;
  position: relative;
  transition: background 150ms ease, color 150ms ease;
}
.lh-nav-item:hover { background: var(--sidebar-hover); color: var(--white); }
.lh-nav-item.is-active {
  background: var(--sidebar-active);
  color: var(--white);
}
.lh-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.lh-nav-item.is-active svg { color: var(--accent); }
.lh-nav-badge {
  margin-left: auto;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.lh-nav-item.is-active .lh-nav-badge { background: var(--accent); color: var(--text-on-accent); }

.lh-sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Brand mark icon — fills the .lh-brand-mark 34x34 tile. Keeps icon token-driven
   (no inline style= on the <i> element). */
.lh-brand-mark i {
  color: var(--accent);
  font-size: 16px;
}

.lh-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
}
.lh-user:hover { background: var(--sidebar-hover); }
.lh-avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lh-user-name { color: var(--white); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.lh-user-role {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.lh-user-more {
  background: transparent; border: none; color: var(--sidebar-text);
  padding: 4px; border-radius: 6px;
}

/* ===== MAIN ===== */
/* margin-left set above to offset fixed sidebar */

/* ===== TOPBAR ===== */
.lh-topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.lh-topbar-toggle {
  display: none;                     /* hidden on wide viewports — sidebar always visible */
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: background var(--lh-motion-fast) ease, color var(--lh-motion-fast) ease;
}
.lh-topbar-toggle:hover,
.lh-topbar-toggle:focus-visible {
  background: var(--bg);
  color: var(--text);
}
.lh-topbar-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.lh-crumb-current { color: var(--text); }
.lh-topbar-search {
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-muted);
  transition: border-color 150ms ease, background 150ms ease;
}
.lh-topbar-search:focus-within {
  border-color: var(--accent);
  background: var(--surface);
}
.lh-topbar-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}
.lh-topbar-search kbd {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.lh-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lh-icon-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-secondary);
}
.lh-icon-btn:hover { background: var(--bg); color: var(--text); }
.lh-icon-btn .lh-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.lh-icon-btn-sm {
  background: transparent; border: none; padding: 8px;
  border-radius: 6px; color: var(--text-muted);
  font-size: 14px; cursor: pointer;
  min-width: 34px; min-height: 34px;
  display: inline-grid; place-items: center;
  transition: background 150ms ease, color 150ms ease;
}
.lh-icon-btn-sm:hover { background: var(--bg); color: var(--text); }
.lh-icon-btn-sm:disabled { opacity: 0.35; cursor: not-allowed; }
.lh-icon-btn-sm:disabled:hover { background: transparent; color: var(--text-muted); }
.lh-icon-btn-sm.is-danger:hover { background: var(--danger-bg); color: var(--danger); }

.lh-topbar-cta {
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lh-topbar-cta:hover { background: var(--text); }

/* Create dropdown — quick-create menu anchored to the topbar CTA. */
.lh-topbar-create {
  position: relative;
}
.lh-topbar-create-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.lh-topbar-create-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.lh-topbar-create-item i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}
.lh-topbar-create-item:hover {
  background: var(--bg);
  color: var(--accent);
}
.lh-topbar-create-item:hover i {
  color: var(--accent);
}
.lh-topbar-create-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Scrim — transparent full-viewport click-catcher; closing the menu when the
   user clicks outside it. Sits above page content but below the menu itself. */
.lh-topbar-create-scrim {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 30;
}
/* Breadcrumb separator — small muted chevron between crumbs. */
.lh-breadcrumb-sep {
  color: var(--text-muted);
  font-size: 9px;
}

/* ===== PAGE HEADER ===== */
.lh-content {
  padding: 28px 32px 40px;
}
.lh-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.lh-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 6px;
}
.lh-page-title {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.lh-page-sub {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin: 0;
}
.lh-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-lh-primary, .btn-lh-secondary, .btn-lh-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}
.btn-lh-primary {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.btn-lh-primary:hover { background: var(--text); }
.btn-lh-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-lh-secondary:hover { background: var(--bg); border-color: var(--border-hover); }
.btn-lh-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-lh-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }

/* ===== LIVE STRIP ===== */
.lh-live-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(16,185,129,0.06) 0%, rgba(16,185,129,0.02) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.lh-live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  position: relative;
  flex-shrink: 0;
}
.lh-live-dot span {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.3;
  animation: lh-pulse 1.6s ease-out infinite;
}
@keyframes lh-pulse { 0%{transform:scale(0.6);opacity:0.5} 100%{transform:scale(1.6);opacity:0} }
@media (prefers-reduced-motion: reduce) {
  .lh-live-dot span { animation: none; }
}
.lh-live-text { flex: 1; font-size: 13px; color: var(--text); }
.lh-live-text strong { color: var(--success); font-weight: 600; }
.lh-live-text b { font-family: 'Geist', sans-serif; font-weight: 600; }
.lh-live-cta {
  background: transparent;
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success-darker);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lh-live-cta:hover { background: rgba(16,185,129,0.08); }

/* ===== KPI ===== */
.lh-grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.lh-kpi {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.lh-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.lh-kpi-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.lh-kpi-delta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
}
.lh-kpi-delta.up { color: var(--success); background: var(--success-bg); }
.lh-kpi-delta.down { color: var(--danger); background: var(--danger-bg); }
.lh-kpi-delta.flat { color: var(--text-muted); background: var(--bg); }
.lh-kpi-value {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 8px;
}
.lh-kpi-spark { margin-top: 6px; }

/* ===== MAIN GRID ===== */
.lh-grid-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.lh-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ===== CARD ===== */
.lh-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.lh-card-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-light);
}
.lh-card-h h3 {
  margin: 0;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.lh-card-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.lh-link-ghost {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.lh-link-ghost:hover { color: var(--accent); }

/* ===== FINALIZE LIST ===== */
.lh-finalize-list { display: flex; flex-direction: column; }
.lh-finalize-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}
.lh-finalize-row:last-child { border-bottom: none; }
.lh-finalize-matchup { display: flex; gap: 14px; flex: 1; min-width: 0; align-items: center; }
.lh-finalize-date { display: flex; flex-direction: column; gap: 2px; min-width: 50px; }
.lh-finalize-teams { display: flex; flex-direction: column; gap: 4px; }
.lh-ft-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lh-finalize-actions { display: flex; align-items: center; gap: 8px; }

/* ===== GAME ROW ===== */
.lh-upcoming { display: flex; flex-direction: column; }
.lh-game-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background 150ms ease;
}
.lh-game-row:hover { background: var(--surface-2); }
.lh-game-row:last-child { border-bottom: none; }
.lh-game-when { display: flex; flex-direction: column; }
.lh-game-date {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.lh-game-time {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
}
.lh-game-matchup { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.lh-game-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lh-game-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.lh-game-at { color: var(--text-muted); font-size: 11px; }
.lh-game-score {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ===== CHIP ===== */
.lh-chip {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 3px 8px;
  border-radius: 5px;
}
.lh-chip.is-final { background: var(--success-bg); color: var(--success-dark); }
.lh-chip.is-sched { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.lh-chip.is-danger { background: var(--danger-bg); color: var(--danger-dark); }
.lh-chip.is-warn { background: var(--warning-bg); color: var(--warning-dark); }
.lh-chip.is-type-trade { background: var(--info-bg); color: var(--info-dark); }
.lh-chip.is-type-signing { background: var(--success-bg); color: var(--success-dark); }
.lh-chip.is-type-release { background: var(--danger-bg); color: var(--danger-dark); }
.lh-chip.is-type-callup { background: var(--purple-bg); color: var(--purple-dark); }
.lh-chip.is-live { background: var(--danger-bg); color: var(--danger-dark); font-weight: 600; }
.lh-chip.is-info { background: var(--info-bg); color: var(--info-dark); }
.lh-chip.is-purple { background: var(--purple-bg); color: var(--purple-dark); }

/* Small right margin for icons that lead text inside a button/link. Tokens
   `.btn-lh-*` don't gap their own content, so pages use `<i class="... ico-lead">`
   for leading icons. One-off, zero risk. */
.ico-lead { margin-right: 6px; }

/* ═══════════ TEAM CARDS (Phase 4 redesign) ═══════════
   Card grid with filter bar, division grouping, colored gradient head.
   Team color passes through via inline `style="--team-color: #RRGGBB"` (T5
   CSS-custom-property passthrough — the only inline style permitted). */

.lh-teams-filter-bar {
  display: flex; align-items: flex-end; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lh-teams-filter-bar .lh-field { min-width: 180px; }
.lh-teams-search { flex: 1 1 280px; max-width: 360px; }
.lh-teams-search input { width: 100%; }

.lh-division-header {
  display: flex; align-items: baseline; gap: 10px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.lh-division-header:first-of-type { margin-top: 0; }
.lh-division-header-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
}
.lh-division-header-count {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}

.lh-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.lh-team-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: flex; flex-direction: column;
}
.lh-team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Card head — gradient via --team-color passthrough.
   color-mix() shades 78% toward black so the gradient works with hex OR CSS
   var fallback values. Old `@(color)dd` string-concat is retired. */
.lh-team-card-head {
  position: relative;
  height: 96px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,
    var(--team-color, var(--navy)) 0%,
    color-mix(in oklab, var(--team-color, var(--navy)) 78%, black) 100%);
  color: var(--surface);
}
.lh-team-card-rank {
  position: absolute; top: 10px; right: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--surface);
  background: rgba(0,0,0,0.22);
  padding: 3px 8px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
.lh-team-card-logo-img {
  max-height: 54px; max-width: 120px; object-fit: contain;
}

.lh-team-card-body {
  position: relative;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.lh-team-card-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 2px;
}
.lh-team-card-name {
  font-family: 'Geist', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  padding-right: 100px;
}
.lh-team-card-short {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.6px;
}
.lh-team-card-captain {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.lh-team-card-captain i { color: var(--text-muted); }

.lh-team-stats {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lh-team-stat { text-align: left; }
.lh-team-stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.lh-team-stat-value {
  font-family: 'Geist', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.lh-team-stat-value.is-pos { color: var(--success-dark); }
.lh-team-stat-value.is-neg { color: var(--danger-dark); }

/* Filter-empty placeholder inside the grid area. */
.lh-teams-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
}
.lh-teams-empty-icon { font-size: 28px; margin-bottom: 10px; }
.lh-teams-empty-text { font-size: 13px; margin-bottom: 14px; }

/* Skeleton placeholder bars inside .lh-team-card.is-skel. No shimmer animation
   here to keep the CSS token-only (no raw hex needed). */
.lh-team-card.is-skel .lh-team-card-head { background: var(--surface-2); }
.lh-team-card.is-skel .lh-team-card-body {
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.lh-skel-bar {
  background: var(--surface-2);
  border-radius: 5px;
  height: 12px;
}
.lh-skel-bar--lg { height: 16px; }

/* Viewer-role kicker chip. */
.lh-view-only-chip {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

/* "No captain set" placeholder inside a card. */
.lh-team-card-captain.is-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Alerts */
.lh-alert-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.lh-alert-row:last-child { border-bottom: none; }
.lh-alert-sev {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lh-alert-sev.sev-info { background: var(--info-bg); color: var(--info-dark); }
.lh-alert-sev.sev-warn { background: var(--warning-bg); color: var(--warning-dark); }
.lh-alert-sev.sev-danger { background: var(--danger-bg); color: var(--danger-dark); }
.lh-alert-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.lh-alert-body { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.lh-alert-meta { display: flex; align-items: center; gap: 6px; }

/* Settings */
.lh-settings-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.lh-settings-nav {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 8px;
  position: sticky; top: 76px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.lh-settings-nav-item {
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  width: 100%;
  white-space: nowrap;
}
.lh-settings-nav-item:hover { background: var(--bg); color: var(--text); }
.lh-settings-nav-item.is-active { background: var(--text); color: var(--white); }
.lh-settings-body { display: flex; flex-direction: column; gap: 16px; }
.lh-field { display: flex; flex-direction: column; gap: 6px; }
.lh-field label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.lh-field input {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 150ms ease;
}
.lh-field input:focus { border-color: var(--accent); }
.lh-danger-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}
.lh-danger-row:last-child { border-bottom: none; }

@media (max-width: 1400px) {
  .lh-grid-main { grid-template-columns: 1fr; }
  .lh-grid-kpi { grid-template-columns: repeat(2, 1fr); }
  .lh-split { grid-template-columns: 1fr; }
  .lh-teams-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ===== TEAM BADGE ===== */
.lh-team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* ===== SUSPENSIONS ===== */
.lh-susp-list { display: flex; flex-direction: column; }
.lh-susp-row {
  display: grid;
  grid-template-columns: 36px 1fr 120px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}
.lh-susp-row:last-child { border-bottom: none; }
.lh-susp-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--danger-tint), var(--danger-bg));
  color: var(--danger-dark);
  font-weight: 600;
  font-size: 11.5px;
  display: grid; place-items: center;
}
.lh-susp-name { font-size: 13px; font-weight: 500; }
.lh-susp-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.lh-dot-sep { color: var(--text-muted); }
.lh-susp-bar-label { font-size: 9.5px; margin-bottom: 4px; color: var(--text-muted); }
.lh-susp-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}
.lh-susp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--danger-light));
  border-radius: 2px;
}

/* ===== ACTIVITY ===== */
.lh-activity { padding: 4px 0; }
.lh-act-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 20px;
  position: relative;
}
.lh-act-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  margin-top: 6px;
  margin-left: 4px;
}
.lh-act-row:first-child .lh-act-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.lh-act-top { display: flex; gap: 6px; font-size: 12.5px; align-items: baseline; }
.lh-act-who { font-weight: 600; }
.lh-act-what { color: var(--text-secondary); }
.lh-act-detail { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lh-act-time { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

/* ===== QUICK ACTIONS ===== */
.lh-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 20px 20px;
}
.lh-quick-tile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: all 150ms ease;
}
.lh-quick-tile:hover { border-color: var(--accent); background: var(--surface); color: var(--accent); }

.lh-mono-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.lh-muted { color: var(--text-muted); }

/* ===== FILTER BAR ===== */
.lh-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lh-seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.lh-seg-item {
  padding: 7px 14px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 7px;
  color: var(--text-secondary);
}
.lh-seg-item.is-active {
  background: var(--text);
  color: var(--white);
}
.lh-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  position: relative;
}
.lh-select:hover { border-color: var(--border-hover); }
.lh-select select {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  padding-right: 2px;
}
.lh-search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  min-width: 280px;
  color: var(--text-muted);
}
.lh-search-inline input {
  border: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--text); flex: 1;
}

/* ===== TABLE ===== */
.lh-table-card { padding: 0; overflow-x: auto; }
.lh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lh-table thead {
  background: var(--slate);
}
.lh-table thead th {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--league-secondary);
  padding: 14px 14px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.lh-table thead th.num { text-align: right; }
.lh-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  text-align: left;
}
.lh-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lh-table tbody tr { transition: background 120ms ease; cursor: pointer; }
.lh-table tbody tr:hover { background: var(--surface-2); }
.lh-table tbody tr.is-selected { background: var(--warning-bg); }
.lh-table tbody tr:last-child td { border-bottom: none; }
.lh-mono-cell {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.lh-cell-match { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lh-tname { font-size: 12.5px; white-space: nowrap; }
.lh-at { color: var(--text-muted); font-size: 11px; }
.lh-score-final { font-family: 'Geist', sans-serif; font-weight: 600; }
.lh-cell-team { display: flex; align-items: center; gap: 12px; }
.lh-team-name { font-size: 13px; font-weight: 500; }
.lh-rank {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Standings-specific */
.lh-pts-cell {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
}
.lh-pts-bar {
  width: 42px; height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.lh-pts-fill { height: 100%; background: var(--text); border-radius: 3px; }
.lh-pts-val {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  min-width: 24px;
}
.num.is-pos { color: var(--success); font-weight: 500; }
.num.is-neg { color: var(--danger); font-weight: 500; }
.lh-form-pills { display: flex; gap: 3px; }
.lh-h2h { display: flex; gap: 6px; }
.lh-h2h-pill {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.lh-h2h-pill.sm { width: 20px; height: 20px; font-size: 10px; border-radius: 5px; }
.lh-h2h-pill.is-w { background: var(--success-bg); color: var(--success-dark); }
.lh-h2h-pill.is-l { background: var(--danger-bg); color: var(--danger-dark); }

.lh-table-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-2);
}
.lh-info-banner {
  display: flex; gap: 10px; align-items: center;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-dark);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

/* Players */
.lh-cell-player { display: flex; align-items: center; gap: 12px; }
.lh-player-num {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  width: 36px;
  text-align: right;
}
.lh-pos-pill {
  display: inline-grid; place-items: center;
  width: 26px; height: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
}
.lh-pos-pill.pos-F { background: var(--accent-light); color: var(--warning-dark); }
.lh-pos-pill.pos-D { background: var(--info-border); color: var(--info-dark); }
.lh-pos-pill.pos-G { background: var(--purple-border); color: var(--purple-dark); }
.lh-prod-bar { width: 100px; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.lh-prod-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* ===== SPLIT LAYOUT ===== */
.lh-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: flex-start;
}
.lh-detail-panel { padding: 0; position: sticky; top: 76px; }
.lh-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.lh-detail-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  padding: 22px 18px;
  align-items: center;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.lh-detail-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lh-detail-tname { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13px; }
.lh-detail-score { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.lh-detail-big {
  font-family: 'Geist', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.lh-detail-vs {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.lh-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
}
.lh-detail-meta > div > div:last-child { margin-top: 2px; font-weight: 500; }
.lh-detail-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}
.lh-detail-actions button { width: 100%; justify-content: center; }
.lh-detail-actions a.btn-lh-primary,
.lh-detail-actions a.btn-lh-secondary,
.lh-detail-actions a.btn-lh-ghost { width: 100%; justify-content: center; }
.lh-detail-section { padding: 16px 18px; }

/* ===== SCHEDULE LIST — row accent bars =====
   Anchored to the first <td> (not the <tr>) because `position: relative` on a
   <tr> combined with `table-layout: fixed` causes Chromium to ignore colgroup
   widths on that row. Learned during Phase 2 Gate 2 mockup. */
.lh-table tbody tr.is-selected > td:first-child,
.lh-table tbody tr[data-row-live] > td:first-child { position: relative; }
.lh-table tbody tr.is-selected > td:first-child::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  background: var(--accent); border-radius: 0 2px 2px 0;
}
.lh-table tbody tr[data-row-live] > td:first-child::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  background: var(--danger-dark); border-radius: 0 2px 2px 0;
}

/* Segment chip row (e.g. All / Upcoming / Final / Needs finalize). */
.lh-segment {
  display: inline-flex; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}
.lh-segment button {
  background: transparent; border: 0;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.lh-segment button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.lh-segment button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Detail-panel primary CTA that dominates the panel — solid dark instead of
   amber accent. Used for Open Scorekeeper / Review & Finalize / Reschedule. */
.btn-lh-primary--dark { background: var(--text); color: var(--surface); }
.btn-lh-primary--dark:hover { background: var(--text); filter: brightness(0.88); }

/* Period dots inside the detail panel (visible for Live / Finalized). */
.lh-period-dots { display: flex; gap: 6px; justify-content: center; padding: 12px 18px 18px; }
.lh-period-dots span {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.lh-period-dots span.is-played { background: var(--surface); color: var(--text); }
.lh-period-dots span.is-current { background: var(--danger-bg); color: var(--danger-dark); border-color: var(--danger-bg); }


@media (max-width: 1200px) {
  :root { --sidebar-w: 68px; }
  .lh-topbar-toggle { display: inline-flex; }   /* hamburger surfaces only when the rail is narrow */
  .lh-sidebar-brand .lh-brand-text, .lh-sidebar-brand .lh-league-switch { display: none; }
  .lh-nav-item span:not(.lh-nav-badge) { display: none; }
  .lh-nav-label { display: none; }
  .lh-nav-item { justify-content: center; padding: 9px; }
  .lh-nav-item.is-active::before { left: 0; }
  .lh-nav-badge { position: absolute; top: 2px; right: 2px; font-size: 9px; padding: 1px 4px; min-width: 16px; }
  .lh-user-name, .lh-user-role, .lh-user-more { display: none; }
  .lh-user { justify-content: center; padding: 6px; }
  .lh-sidebar-brand { justify-content: center; padding: 6px 0 14px; }
  .lh-brand-mark { margin: 0; }
  .lh-teams-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .lh-content { padding: 24px 20px 40px; }
  .lh-topbar { padding: 0 20px; }
  .lh-topbar-search { max-width: none; }

  /* Expanded state: user clicked the hamburger — restore the wide rail temporarily. */
  .lh-app--sidebar-expanded { --sidebar-w: 248px; }
  .lh-app--sidebar-expanded .lh-sidebar-brand .lh-brand-text { display: block; }
  .lh-app--sidebar-expanded .lh-nav-item span:not(.lh-nav-badge) { display: inline; }
  .lh-app--sidebar-expanded .lh-nav-label { display: block; }
  .lh-app--sidebar-expanded .lh-nav-item { justify-content: flex-start; padding: 8px 10px; }
  .lh-app--sidebar-expanded .lh-nav-item.is-active::before { left: -10px; }
  .lh-app--sidebar-expanded .lh-nav-badge {
    position: static;
    font-size: 10px;
    padding: 2px 7px;
    min-width: 20px;
  }
  .lh-app--sidebar-expanded .lh-user-name,
  .lh-app--sidebar-expanded .lh-user-role { display: block; }
  .lh-app--sidebar-expanded .lh-user { justify-content: flex-start; padding: 8px; }
  .lh-app--sidebar-expanded .lh-sidebar-brand { justify-content: flex-start; padding: 6px 16px 16px; }
}
@media (max-width: 720px) {
  .lh-settings-grid { grid-template-columns: 1fr; }
  .lh-settings-nav { position: static; flex-direction: row; overflow-x: auto; }
}
@media (max-width: 860px) {
  .lh-grid-kpi { grid-template-columns: 1fr; }
}

/* ===== TEMPLATE: chips extra ===== */
.lh-chip.is-warn { background: var(--warning-bg); color: var(--warning-dark); }
.lh-chip.is-danger { background: var(--danger-bg); color: var(--danger-dark); }

/* ===== TEMPLATE: FORM (settings-grid pattern) ===== */
.lh-settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.lh-settings-nav {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.lh-settings-nav-item {
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.lh-settings-nav-item:hover { background: var(--bg); color: var(--text); }
.lh-settings-nav-item.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.lh-settings-body { display: flex; flex-direction: column; gap: 16px; }

.lh-field { display: flex; flex-direction: column; gap: 6px; }
.lh-field label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-muted);
}
.lh-field input, .lh-field select, .lh-field textarea {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}
.lh-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A94A6' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.lh-field input[type="date"],
.lh-field input[type="time"],
.lh-field input[type="datetime-local"] {
  cursor: pointer;
}
.lh-field input[type="date"]::-webkit-calendar-picker-indicator,
.lh-field input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.5;
  padding: 4px;
}
.lh-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.lh-field input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.lh-field input:focus, .lh-field select:focus, .lh-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,149,0,0.12);
}
.lh-field input::placeholder { color: var(--text-muted); }

.lh-form-sticky {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(15,23,42,0.04);
  margin-top: 4px;
}

/* ===== TEMPLATE: IMPORT STEPPER ===== */
.lh-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.lh-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.lh-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}
.lh-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.lh-step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 14px;
  min-width: 40px;
}
.lh-step.is-active .lh-step-num { background: var(--accent); color: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.lh-step.is-active .lh-step-label { color: var(--text); font-weight: 600; }
.lh-step.is-done .lh-step-num { background: var(--text); color: var(--white); border-color: var(--text); }
.lh-step.is-done .lh-step-label { color: var(--text); }
.lh-step.is-done .lh-step-line { background: var(--text); }

/* ===== TEMPLATE: LIVE SCORING ===== */
.lh-live-shell {
  background: var(--sidebar-deeper);
  color: var(--white);
  min-height: calc(100vh - 60px);
  margin: -28px -32px -40px;
  padding-bottom: 24px;
}
.lh-live-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lh-live-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 40px 40px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lh-live-team {
  display: flex; align-items: center; gap: 16px; justify-content: flex-start;
}
.lh-live-team-r { justify-content: flex-end; }
.lh-live-big {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--white);
  margin-left: auto;
}
.lh-live-team-r .lh-live-big { margin-left: 0; margin-right: auto; }
.lh-live-shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lh-live-stat {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.lh-live-stat:last-child { border-right: none; }
.lh-live-stat-v {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}
.lh-live-actions {
  display: flex;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.lh-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 150ms ease;
}
.lh-live-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.lh-live-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}
.lh-live-btn.primary:hover { background: var(--accent-dark); }
.lh-live-btn span {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 700;
}
.lh-live-btn.primary span { background: rgba(0,0,0,0.1); }
.lh-live-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.lh-live-event:last-child { border-bottom: none; }

/* ===== TEMPLATE: SETUP ===== */
.lh-setup-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: flex-start;
}
.lh-setup-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.lh-setup-step:last-child { border-bottom: none; }
.lh-setup-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}
.lh-setup-step.is-done .lh-setup-ring { background: var(--success); color: var(--white); border-color: var(--success); }
.lh-setup-step.is-active .lh-setup-ring { background: var(--accent); color: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

.lh-help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.lh-help-link:hover { background: var(--bg); color: var(--accent); }

@media (max-width: 1000px) {
  .lh-settings-grid, .lh-setup-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Shared compliance classes — BRAND-KIT tokens only, no raw hex.
   Consumed by: Settings, Setup, LeagueActivity, Transactions, Teams,
   Players, AlertsBanner, scoring/Live event log. Added here so every
   caller gets a single edit point per severity variant.
   ═══════════════════════════════════════════════════════════════════════ */

/* Info banners — replaces inline style="background: var(--danger-bg); border-left: 3px solid var(--danger); ..." */
.lh-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
}
.lh-info-banner--danger  { background: var(--danger-bg);  border-left: 3px solid var(--danger);  color: var(--danger-dark); }
.lh-info-banner--success { background: var(--success-bg); border-left: 3px solid var(--success); color: var(--success-dark); }
.lh-info-banner--warning { background: var(--warning-bg); border-left: 3px solid var(--warning); color: var(--warning-dark); }
.lh-info-banner--info    { background: var(--info-bg);    border-left: 3px solid var(--info);    color: var(--info-dark); }
.lh-info-banner--neutral { background: var(--bg);         border-left: 3px solid var(--border);  color: var(--text); }

/* Required-field marker — shared utility (BRAND-KIT § 6.2). Pairs with a
   <label> + <input>/<select>/<textarea>. Same color as form danger states.
   Used by Settings, Setup, SuspensionDetail's three modals, and any future
   form that needs a visual required cue beyond the asterisk in the label text. */
.lh-required-marker { color: var(--danger); }

/* Dismiss control — inherits current banner color via `currentColor`. */
.lh-info-banner__close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--lh-motion-base) ease;
}
.lh-info-banner__close:hover,
.lh-info-banner__close:focus-visible {
  opacity: 1;
}
.lh-info-banner__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Alert rows (dismissible top-of-page / inside AlertsBanner) — replaces Bootstrap .alert.alert-* */
.lh-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
}
.lh-alert--danger  { background: var(--danger-bg);  color: var(--danger-dark); }
.lh-alert--warning { background: var(--warning-bg); color: var(--warning-dark); }
.lh-alert--info    { background: var(--info-bg);    color: var(--info-dark); }

/* Event log badges (Live scoring) — replaces inline style="color: var(--success); background: var(--success-bg); ..." */
.lh-event-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.lh-event-badge--goal    { color: var(--success-dark); background: var(--success-bg); }
.lh-event-badge--penalty { color: var(--warning-dark); background: var(--warning-bg); }
.lh-event-badge--other   { color: var(--info-dark);    background: var(--info-bg); }

/* Captain designator — also wrapped as <CaptainMarker /> shared component */
.lh-captain-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-on-accent);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* Live card — replaces Bootstrap .border-success on scoring/GameSelect */
.lh-card--live { border: 2px solid var(--success); }

/* ═══════════════════════════════════════════════════════════════════════
   AdminHome — setup wizard text, attention list, KPI 5-col, header col
   variants. Added to replace the inline-style cluster that was flagged by
   the AdminHome deep audit (L2/T3 drift).
   ═══════════════════════════════════════════════════════════════════════ */

/* KPI grid — 5-column variant for pages that pack an extra metric */
.lh-grid-kpi--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .lh-grid-kpi--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .lh-grid-kpi--5 { grid-template-columns: repeat(2, 1fr); } }

/* Card header — vertical orientation for intro/tutorial cards */
.lh-card-h--col {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Card title with a leading icon slot (used for "Games Needing Attention") */
.lh-card-h__title-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lh-card-h__title-icon .fa-light,
.lh-card-h__title-icon .fa-regular,
.lh-card-h__title-icon .fa-solid { color: var(--warning); }
.lh-card-h__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Setup-step internals — replaces inline font-weight/size/color */
.lh-setup-step__body { flex: 1; }
.lh-setup-step__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.lh-setup-step__desc {
  font-size: 12px;
  color: var(--text-muted);
}
.lh-setup-step__action { margin-left: auto; }

/* Attention list — rows of games needing review/edit */
.lh-attention-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.lh-attention-row:last-child { border-bottom: none; }
.lh-attention-row__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 70px;
}
.lh-attention-row__matchup {
  font-weight: 500;
  flex: 1;
}
.lh-attention-row__matchup .lh-vs {
  color: var(--text-muted);
  margin: 0 4px;
}
.lh-attention-row__score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════════════
   Phase 0c — AdminHome port utility classes.
   Added 2026-04-22. See design-audit/dashboard.md §10 for rationale.
   ═════════════════════════════════════════════════════════════════════ */

/* Kicker muted variant — used between seasons (G-04) */
.lh-kicker--muted { color: var(--text-muted); }

/* Text utilities — named to avoid T2 Bootstrap-semantic substring collisions
   (e.g. .lh-text-success would substring-match the forbidden .text-success). */
.lh-success-note { color: var(--success-dark); font-weight: 500; }

/* Team badge — size variants + --team-color passthrough.
   Each size keeps the centering behavior of the base .lh-team-badge. */
.lh-team-badge {
  background: var(--team-color, var(--text-muted));
}
.lh-team-badge--xxs { width: 14px;  height: 14px; font-size: 6px;  border-radius: 4px; }
.lh-team-badge--xs  { width: 20px;  height: 20px; font-size: 8px;  border-radius: 5px; }
.lh-team-badge--sm  { width: 22px;  height: 22px; font-size: 9px;  border-radius: 6px; }
.lh-team-badge--md  { width: 28px;  height: 28px; font-size: 10px; border-radius: 7px; }
.lh-team-badge--lg  { width: 40px;  height: 40px; font-size: 14px; border-radius: 10px; }

/* Setup banner (G-06) — dismissible stepper above the KPI row */
.lh-setup-banner { margin-bottom: 20px; }
.lh-setup-step-count {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Empty / error cell inside a card — padded centered message */
.lh-card-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lh-card-empty .lh-link-ghost { font-size: 12px; }

/* Live chip (compact) — used in the multi-live-game strip (G-07) */
.lh-chip.is-live-compact {
  background: var(--success-bg);
  color: var(--success-dark);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 2px 8px;
}

/* Suspension bar — consume --progress custom property (no inline width).
   Pattern matches the .lh-team-card-head gradient passthrough used elsewhere:
   the only acceptable inline style= form per scripts/design-lint.sh T5. */
.lh-susp-fill {
  width: var(--progress, 0%);
}

/* ═════════════════════════════════════════════════════════════════════
   LeagueActivity / Transactions tab — global rules (#370)
   Promoted from scoped CSS because the scoping attribute wasn't reliably
   matching in some browser states. When all admin pages migrate cleanly
   to scoped CSS, move this block back into LeagueActivity.razor.css.
   ═════════════════════════════════════════════════════════════════════ */

.lh-tx-tabs { margin-bottom: 16px; }

.lh-tx-seg-count {
  background: var(--danger);
  color: var(--white);
  margin-left: 6px;
}

.lh-tx-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.lh-tx-filter > .lh-field {
  min-width: 140px;
  flex: 1 1 160px;
}

.lh-tx-filter .lh-tx-player {
  flex: 1 1 220px;
  min-width: 200px;
  position: relative;
}

.lh-tx-filter .lh-tx-player input { width: 100%; }

.lh-tx-filter .lh-tx-clear {
  align-self: flex-end;
  margin-bottom: 1px;
}

.lh-tx-filter-toggle { display: none; }

@media (max-width: 900px) {
  .lh-tx-filter { display: none; }
  .lh-tx-filter.is-open { display: flex; }

  .lh-tx-filter-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 12px;
  }

  .lh-tx-filter-toggle .lh-nav-badge {
      background: var(--accent);
      color: var(--text-on-accent);
  }
}

.lh-tx-player-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 4px;
  margin: 0;
  z-index: 30;
}

.lh-tx-player-dropdown li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.lh-tx-player-dropdown li:hover,
.lh-tx-player-dropdown li.is-highlighted { background: var(--bg); }

.lh-tx-table-card { margin-bottom: 16px; }

.lh-tx-table .lh-tx-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.lh-tx-table .lh-tx-notes-dash { color: var(--text-muted); }
.lh-tx-table .lh-tx-notes-trunc { cursor: help; }
.lh-tx-table .lh-tx-notes-trunc-ellipsis { color: var(--text-muted); }
.lh-tx-table .lh-tx-player-link { color: var(--accent-dark); }

.lh-tx-desktop { display: block; }
.lh-tx-mobile  { display: none; }

@media (max-width: 768px) {
  .lh-tx-desktop { display: none; }
  .lh-tx-mobile  { display: block; }
}

.lh-tx-mobile-card { margin-bottom: 8px; }
.lh-tx-mobile-card .lh-card__body { padding: 10px 14px; }

.lh-tx-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.lh-tx-mobile-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
}

.lh-tx-mobile-row { font-size: 13px; line-height: 1.5; }
.lh-tx-mobile-row strong { color: var(--text-secondary); margin-right: 4px; }

.lh-tx-mobile-notes {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.lh-tx-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.lh-tx-pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
  align-self: center;
}
