/**
 * Survivors admin v2 — ESPN-style shell (scoped)
 * Respects global body.dark-theme from #theme-toggle (generalconfig.js)
 */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

.survivors-admin-v2 {
  /* Center “table” column: fixed so home | table | away align; ~pool chip (44px) + tight padding — short labels / sublines ellipsis */
  --sv2-v2-match-table-col-w: 3rem;
  /* Home | table | away */
  --sv2-v2-match-row-column-gap: 0.05rem;
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  font-family: "Roboto", -apple-system, sans-serif;
  color: var(--sv2-fg);
  background: var(--sv2-bg);
  border-radius: 8px;
  border: 1px solid var(--sv2-border);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

body.dark-theme .survivors-admin-v2 {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}

.survivors-admin-v2 .sv2-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--sv2-surface-alt);
  border-bottom: 1px solid var(--sv2-border);
  font-size: 0.85rem;
}

/* Cockpit strip: Survivors wordmark + torch + live status */
.survivors-admin-v2 .sv2-preview-banner-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.survivors-admin-v2 .sv2-cockpit-torch-wrap {
  flex-shrink: 0;
  width: 38px;
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.survivors-admin-v2 .sv2-cockpit-torch {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.55)) drop-shadow(0 0 14px rgba(255, 87, 34, 0.35));
}
@keyframes sv2-torch-flicker-a {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
  22% {
    opacity: 0.88;
    transform: scaleY(1.06) translateY(-0.8px);
  }
  48% {
    opacity: 0.96;
    transform: scaleY(0.97) translateY(0.4px);
  }
  71% {
    opacity: 0.9;
    transform: scaleY(1.04) translateY(-0.4px);
  }
}
@keyframes sv2-torch-flicker-b {
  0%,
  100% {
    opacity: 0.94;
    transform: scaleY(1.02) translateY(0);
  }
  33% {
    opacity: 0.82;
    transform: scaleY(0.96) translateY(0.5px);
  }
  58% {
    opacity: 0.98;
    transform: scaleY(1.07) translateY(-0.6px);
  }
}
.survivors-admin-v2 .sv2-torch-flame--a {
  transform-origin: 26px 38px;
  animation: sv2-torch-flicker-a 1.15s ease-in-out infinite;
}
.survivors-admin-v2 .sv2-torch-flame--b {
  transform-origin: 26px 38px;
  animation: sv2-torch-flicker-b 0.82s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-torch-flame--a,
  .survivors-admin-v2 .sv2-torch-flame--b {
    animation: none;
    opacity: 0.95;
    transform: none;
  }
}
.survivors-admin-v2 .sv2-preview-banner-brand-text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  flex: 1;
  min-width: 0;
}
.survivors-admin-v2 .sv2-cockpit-banner-wordmark {
  font-family: "Oswald", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.08;
  color: #141008;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 10px rgba(255, 120, 40, 0.55),
    0 0 22px rgba(255, 70, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.45);
}
body.dark-theme .survivors-admin-v2 .sv2-cockpit-banner-wordmark {
  color: #6e6862;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(255, 110, 40, 0.42),
    0 0 28px rgba(200,50,0,0.22);
}
.survivors-admin-v2 .sv2-cockpit-banner-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  flex-shrink: 0;
}
.survivors-admin-v2 .sv2-cockpit-banner-status-hint {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sv2-muted);
}
.survivors-admin-v2 .sv2-cockpit-banner-status-pill {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sv2-espn-red);
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(227, 24, 55, 0.45);
  background: rgba(227, 24, 55, 0.08);
}

.survivors-admin-v2 .sv2-preview-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.survivors-admin-v2 .sv2-cockpit-banner-did {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.9rem;
  color: var(--sv2-muted);
}

.survivors-admin-v2 .sv2-muted {
  color: var(--sv2-muted);
  margin: 0;
}

.survivors-admin-v2 .sv2-btn-exit {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  cursor: pointer;
}

.survivors-admin-v2 .sv2-btn-exit:hover {
  filter: brightness(0.97);
}

.survivors-admin-v2 .sv2-sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.dark-theme .survivors-admin-v2 .sv2-sticky-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.survivors-admin-v2 .sv2-title-block h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-title-block .sv2-sub {
  font-size: 0.85rem;
  color: var(--sv2-muted);
  margin: 0;
}

.survivors-admin-v2 .sv2-round-block {
  text-align: right;
}

.survivors-admin-v2 .sv2-round-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-muted);
  margin: 0 0 0.15rem 0;
}

.survivors-admin-v2 .sv2-round-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sv2-espn-red);
  margin: 0;
}

.survivors-admin-v2 .sv2-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.survivors-admin-v2 .sv2-btn-primary {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--sv2-espn-red);
  color: #fff;
  cursor: pointer;
}

.survivors-admin-v2 .sv2-btn-primary:hover {
  background: var(--sv2-espn-red-dark);
}

.survivors-admin-v2 .sv2-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.survivors-admin-v2 .sv2-btn-ghost {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: transparent;
  color: var(--sv2-fg);
  cursor: pointer;
}

.survivors-admin-v2 .sv2-btn-ghost:hover {
  background: var(--sv2-surface-alt);
}

.survivors-admin-v2 .sv2-cockpit-body {
  padding: 1rem 1.25rem 1.25rem;
}

.survivors-admin-v2 .sv2-grid {
  display: grid;
  grid-template-columns: minmax(212px, 260px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 1rem;
  align-items: stretch;
}

.survivors-admin-v2 .sv2-grid > .sv2-main {
  min-height: 0;
}

/* Stack cockpit rails only on small screens; avoid collapsing to one column near 1200px (common laptop widths). */
@media (max-width: 767px) {
  .survivors-admin-v2 .sv2-grid {
    grid-template-columns: 1fr;
  }
}

.survivors-admin-v2 .sv2-rail {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  padding: 0.85rem;
  min-height: 120px;
}

.survivors-admin-v2 .sv2-section-title {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sv2-espn-red);
  margin: 0 0 0.65rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--sv2-espn-red);
}

/* Left overview: vertical side menu */
.survivors-admin-v2 .sv2-rail-side-nav {
  margin: 0;
}

.survivors-admin-v2 .sv2-rail-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.survivors-admin-v2 .sv2-rail-side-nav__list > li {
  margin: 0;
}

.survivors-admin-v2 .sv2-rail-side-nav__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.55rem 0.42rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  border-left: 3px solid transparent;
}

.survivors-admin-v2 .sv2-rail-side-nav__btn:hover {
  border-color: var(--sv2-border);
  border-left-color: var(--sv2-espn-red);
  color: var(--sv2-espn-red);
  background: rgba(227, 24, 55, 0.07);
}

.survivors-admin-v2 .sv2-rail-side-nav__btn:focus {
  outline: 2px solid var(--sv2-espn-red);
  outline-offset: 2px;
}

.survivors-admin-v2 .sv2-rail-side-nav__btn.sv2-rail-side-nav__btn--active {
  border-left-color: var(--sv2-espn-red);
  background: rgba(227, 24, 55, 0.1);
  color: var(--sv2-espn-red);
}

.survivors-admin-v2 .sv2-main {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.survivors-admin-v2 .sv2-board-placeholder {
  position: relative;
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  gap: 0.75rem;
  min-height: 320px;
}

/* Full screen: #survivors-admin-v2-root (see block below — not the Bootstrap tab pane); toggle in preview banner */
.survivors-admin-v2 .sv2-preview-banner .sv2-board-fs-toggle {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.survivors-admin-v2 .sv2-preview-banner .sv2-board-fs-toggle:hover {
  background: var(--sv2-border);
  color: var(--sv2-fg);
}

/*
 * Native fullscreen must target #survivors-admin-v2-root, not #sv2-mng-cockpit-tab.
 * Browsers often fail to paint Bootstrap .tab-pane / nested .tab-content correctly when the pane is :fullscreen.
 */
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen),
#survivors-admin-v2-root.sv2-cockpit-fs-active {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 0;
  opacity: 1 !important;
  visibility: visible !important;
  /* !important: beats #tourny_tab #root { min-height: 0 } when both match */
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.5rem 0.5rem;
  overflow: hidden;
  background: var(--sv2-bg, #1a1a1a);
}

#sv2-mng-cockpit-tab.tab-pane.active.show:not(:fullscreen) {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
  overflow: hidden;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab:has(#sv2-mng-cockpit-tab.active) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab:has(#sv2-mng-cockpit-tab.active) .sv2-manage-inner-tabs {
  flex-shrink: 0;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab:has(#sv2-mng-cockpit-tab.active) .sv2-manage-inner-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#sv2-mng-cockpit-tab.tab-pane.active.show > hr {
  flex-shrink: 0;
}

#sv2-mng-cockpit-tab.tab-pane.active.show > .row {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
}

#sv2-mng-cockpit-tab.tab-pane.active.show > .row > [class*="col"] {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Non–Lives content (RR + elim bracket live in #toplevel_manage_div): fill remaining cockpit height and scroll. */
#sv2-mng-cockpit-tab.tab-pane.active.show #tourny_col > #toplevel_manage_div:not(.d-none) {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* RR: outer container scrolls; do not cap matches table height (avoids double scrollbar / clipped rounds). */
#sv2-mng-cockpit-tab.tab-pane.active.show #toplevel_manage_div .sv2-rr-matches-scroll {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: auto;
}

/* Embedded cockpit: keep selector simple — vendor :fullscreen pseudos inside :not() can drop the whole rule in some browsers.
 * :not(.d-none) is required — otherwise display:flex !important beats Bootstrap .d-none and the Lives shell stays visible for elim/RR. */
#sv2-mng-cockpit-tab.tab-pane.active.show #survivors-admin-v2-root:not(.d-none) {
  flex: 1 1 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
}

#sv2-mng-cockpit-tab.tab-pane.active.show #survivors-admin-v2-root > .sv2-preview-banner,
#sv2-mng-cockpit-tab.tab-pane.active.show #survivors-admin-v2-root > .sv2-sticky-header,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) > .sv2-preview-banner,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) > .sv2-sticky-header,
#survivors-admin-v2-root.sv2-cockpit-fs-active > .sv2-preview-banner,
#survivors-admin-v2-root.sv2-cockpit-fs-active > .sv2-sticky-header {
  flex-shrink: 0;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-cockpit-body,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-body,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-grid,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-grid,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-grid {
  flex: 1 1 0;
  min-height: 0;
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-grid,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-grid {
  grid-template-rows: minmax(200px, 1fr);
  min-height: 35vh;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-grid > .sv2-main,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-grid > .sv2-main,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-grid > .sv2-main {
  min-height: 0;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-main,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-main,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-board-placeholder,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-board-placeholder,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-board-placeholder {
  flex: 1 1 0;
  min-height: 0; /* override base 320px — flex must shrink so carousel scrolls */
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

#sv2-mng-cockpit-tab.tab-pane.active.show .sv2-v2-board-root,
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-root,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-root {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}

/*
 * Fullscreen / fs-active: compact chrome — maximize vertical space for match carousel (Lives 2 board).
 */
#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-preview-banner,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-preview-banner {
  padding: 0.28rem 0.55rem;
  gap: 0.35rem 0.65rem;
  align-items: center;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-torch-wrap,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-torch-wrap {
  width: 28px;
  height: 40px;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-banner-wordmark,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-banner-wordmark {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-banner-status-hint,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-banner-status-hint {
  font-size: 0.55rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-banner-status-pill,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-banner-status-pill {
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-preview-banner-actions,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-preview-banner-actions {
  align-items: center;
  gap: 0.35rem 0.5rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-banner-did,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-banner-did {
  font-size: 0.78rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-preview-banner .sv2-board-fs-toggle,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-preview-banner .sv2-board-fs-toggle {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-btn-exit,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-btn-exit {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-sticky-header,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-sticky-header {
  padding: 0.4rem 0.65rem;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-title-block h2,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-title-block h2 {
  font-size: 1rem;
  margin: 0 0 0.06rem 0;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-title-block .sv2-sub,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-title-block .sv2-sub {
  font-size: 0.72rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-round-label,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-round-label {
  font-size: 0.62rem;
  margin: 0 0 0.06rem 0;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-round-value,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-round-value {
  font-size: 1.2rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-btn-primary,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-btn-primary {
  font-size: 0.72rem;
  padding: 0.36rem 0.75rem;
  min-height: 36px;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-btn-ghost,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-btn-ghost {
  font-size: 0.72rem;
  padding: 0.36rem 0.6rem;
  min-height: 36px;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-cockpit-body,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-cockpit-body {
  padding: 0.45rem 0.55rem 0.55rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-grid,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-grid {
  gap: 0.45rem;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(200px, 260px);
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-rail,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-rail {
  padding: 0.45rem 0.5rem;
  min-height: 80px;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-section-title,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-section-title {
  font-size: 0.68rem;
  margin: 0 0 0.4rem 0;
  padding-bottom: 0.22rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-rail-side-nav__list,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-rail-side-nav__list {
  gap: 0.22rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-rail-side-nav__btn,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-rail-side-nav__btn {
  font-size: 0.58rem;
  padding: 0.32rem 0.45rem 0.32rem 0.52rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-board-placeholder,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-board-placeholder {
  padding: 0.35rem 0.45rem;
  gap: 0.45rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-inner,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-inner {
  gap: 0.32rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-head,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-head {
  padding-bottom: 0.22rem;
  border-bottom-width: 1px;
  gap: 0.45rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-head-top,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-head-top {
  gap: 0.45rem 0.55rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-title,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-title {
  font-size: 0.88rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-meta,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-meta {
  margin: 0.08rem 0 0 0;
  font-size: 0.68rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-showing-round,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-showing-round {
  font-size: 0.72rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-torch,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-torch {
  width: 24px;
  height: 36px;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-round-chips-wrap,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-round-chips-wrap {
  margin: 0.05rem -0.05rem 0;
  padding-bottom: 0.22rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-round-chips,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-round-chips {
  gap: 0.25rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-chip,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-chip {
  font-size: 0.62rem;
  padding: 0.18rem 0.38rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-round-column-head,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-round-column-head {
  padding: 0 0.22rem 0.12rem 0.22rem;
  margin: 0 0 0.03rem 0;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-round-column-head span,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-round-column-head span {
  font-size: 0.54rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-section-label,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-section-label {
  margin: 0 0 0.1rem 0;
  font-size: 0.58rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-row-anim-label,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-row-anim-label {
  font-size: 0.65rem;
}

#survivors-admin-v2-root:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-player-find-input,
#survivors-admin-v2-root.sv2-cockpit-fs-active .sv2-v2-board-player-find-input {
  font-size: 0.65rem;
  padding: 0.08rem 0.32rem;
}

.survivors-admin-v2 .sv2-board-placeholder p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9rem;
}

/* —— Lives 2 match board (cockpit) —— */
.survivors-admin-v2 .sv2-v2-board-root {
  width: 100%;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
}

.survivors-admin-v2 .sv2-v2-board-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.survivors-admin-v2 .sv2-v2-board-head-top-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Player match board: fullscreen control to the left of “Match board” */
.survivors-admin-v2 .sv2-v2-board-head-top-left .sv2-player-board-fs-toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  order: -1;
  margin-right: 0.1rem;
}
.survivors-admin-v2 .sv2-v2-board-head-top-left .sv2-player-board-fs-toggle:hover {
  background: var(--sv2-border);
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-v2-board-row-anim-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sv2-muted, #9aa0a6);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-board-row-anim-cb {
  margin: 0;
  flex-shrink: 0;
}

.survivors-admin-v2 .sv2-v2-board-head-top .sv2-v2-board-title {
  margin: 0;
  flex: 0 1 auto;
}

/* Tight stack: “Now showing” + find field — no extra header row. */
.survivors-admin-v2 .sv2-v2-board-head-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  flex: 0 0 auto;
  min-width: 0;
}

/* Right-aligned on the title row; ESPN red — only this line, not the rest of the header. */
.survivors-admin-v2 .sv2-v2-board-showing-round {
  margin: 0;
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sv2-espn-red, #e31837);
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-board-showing-round strong {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
}

.survivors-admin-v2 .sv2-v2-match-card--sim-dev {
  border-style: dashed;
  border-color: rgba(147, 153, 176, 0.55);
  opacity: 0.95;
}

/* Player find: scroll target — blue ring + glow (reads at compact / fullscreen scales) */
@keyframes sv2-v2-match-card-search-hit-pulse {
  0%,
  100% {
    outline-color: #1565c0;
    box-shadow:
      0 0 0 3px rgba(25, 118, 210, 0.38),
      0 0 14px rgba(33, 150, 243, 0.42),
      0 0 26px rgba(3, 169, 244, 0.22);
  }
  50% {
    outline-color: #00b0ff;
    box-shadow:
      0 0 0 5px rgba(33, 150, 243, 0.52),
      0 0 22px rgba(0, 176, 255, 0.55),
      0 0 36px rgba(41, 182, 246, 0.35);
  }
}

.survivors-admin-v2 .sv2-v2-match-card--search-hit {
  outline: 3px solid #1565c0;
  outline-offset: 2px;
  border-radius: 4px;
  animation: sv2-v2-match-card-search-hit-pulse 0.95s ease-in-out infinite;
}

@keyframes sv2-v2-match-card-search-hit-pulse-dark {
  0%,
  100% {
    outline-color: #42a5f5;
    box-shadow:
      0 0 0 3px rgba(66, 165, 245, 0.45),
      0 0 16px rgba(100, 181, 246, 0.38),
      0 0 28px rgba(129, 212, 250, 0.2);
  }
  50% {
    outline-color: #80d8ff;
    box-shadow:
      0 0 0 5px rgba(128, 216, 255, 0.5),
      0 0 24px rgba(179, 229, 252, 0.45),
      0 0 38px rgba(100, 181, 246, 0.28);
  }
}

body.dark-theme .survivors-admin-v2 .sv2-v2-match-card--search-hit {
  animation-name: sv2-v2-match-card-search-hit-pulse-dark;
}

@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-v2-match-card--search-hit {
    animation: none;
    outline-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.35);
  }

  body.dark-theme .survivors-admin-v2 .sv2-v2-match-card--search-hit {
    outline-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.35);
  }
}

/* Player find: matching name — high-contrast blue + strong glow (small type on dense board) */
@keyframes sv2-v2-player-find-pulse {
  0%,
  100% {
    color: #0d47a1;
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.85),
      0 0 8px rgba(100, 181, 246, 0.95),
      0 0 16px rgba(33, 150, 243, 0.75),
      0 0 26px rgba(3, 169, 244, 0.45);
  }
  50% {
    color: #039be5;
    text-shadow:
      0 0 2px rgba(255, 255, 255, 0.95),
      0 0 12px rgba(0, 191, 255, 0.95),
      0 0 22px rgba(41, 182, 246, 0.85),
      0 0 34px rgba(129, 212, 250, 0.45);
  }
}

.survivors-admin-v2 .sv2-v2-player.sv2-v2-player--find-pulse .sv2-v2-player-name {
  animation: sv2-v2-player-find-pulse 0.85s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-player.sv2-v2-player--find-pulse .sv2-v2-player-name,
body.dark-theme .survivors-admin-v2 .sv2-v2-player.is-match-winner.sv2-v2-player--find-pulse .sv2-v2-player-name {
  animation-name: sv2-v2-player-find-pulse-dark;
}

@keyframes sv2-v2-player-find-pulse-dark {
  0%,
  100% {
    color: #bbdefb;
    text-shadow:
      0 0 2px rgba(13, 71, 161, 0.9),
      0 0 10px rgba(100, 181, 246, 0.95),
      0 0 20px rgba(66, 165, 245, 0.65),
      0 0 32px rgba(227, 242, 253, 0.35);
  }
  50% {
    color: #e1f5fe;
    text-shadow:
      0 0 3px rgba(1, 87, 155, 0.85),
      0 0 14px rgba(129, 212, 250, 0.98),
      0 0 26px rgba(224, 247, 250, 0.75),
      0 0 40px rgba(179, 229, 252, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-v2-player.sv2-v2-player--find-pulse .sv2-v2-player-name,
  .survivors-admin-v2 .sv2-v2-player.is-match-winner.sv2-v2-player--find-pulse .sv2-v2-player-name {
    animation: none;
    color: #0277bd;
    font-weight: 800;
    text-shadow:
      0 0 6px rgba(100, 181, 246, 0.85),
      0 0 12px rgba(33, 150, 243, 0.5);
    opacity: 1;
  }

  body.dark-theme .survivors-admin-v2 .sv2-v2-player.sv2-v2-player--find-pulse .sv2-v2-player-name,
  body.dark-theme .survivors-admin-v2 .sv2-v2-player.is-match-winner.sv2-v2-player--find-pulse .sv2-v2-player-name {
    color: #90caf9;
    text-shadow:
      0 0 8px rgba(144, 202, 249, 0.9),
      0 0 16px rgba(227, 242, 253, 0.35);
  }
}

.survivors-admin-v2 .sv2-v2-board-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.survivors-admin-v2 .sv2-v2-board-head-copy {
  flex: 1 1 0;
  min-width: 0;
}

.survivors-admin-v2 .sv2-v2-board-head-top-right .sv2-v2-board-find-player {
  margin: 0;
  width: 100%;
  max-width: 11.5rem;
}

.survivors-admin-v2 .sv2-v2-board-player-find-input {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.12rem 0.38rem;
  height: auto;
  min-height: 0;
  border-radius: 4px;
  border: 1px solid var(--sv2-border, #d2d2d7);
  background: var(--sv2-surface, #fff);
  color: var(--sv2-fg, #1d1d1f);
}

.survivors-admin-v2 .sv2-v2-board-player-find-input::placeholder {
  color: var(--sv2-muted, #6e6e73);
  opacity: 0.9;
}

.survivors-admin-v2 .sv2-v2-board-player-find-input:focus {
  border-color: var(--sv2-espn-red, #e31837);
  box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.2);
  outline: none;
}

.survivors-admin-v2 .sv2-v2-board-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--sv2-espn-red, #e31837);
}

.survivors-admin-v2 .sv2-v2-board-torch {
  width: 28px;
  height: 42px;
  flex-shrink: 0;
}

.survivors-admin-v2 .sv2-v2-board-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-v2-board-meta {
  margin: 0.15rem 0 0 0;
  font-size: 0.78rem;
  color: var(--sv2-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.survivors-admin-v2 .sv2-v2-section-label {
  margin: 0 0 0.2rem 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-muted);
}

.survivors-admin-v2 .sv2-v2-active-round {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.survivors-admin-v2 .sv2-v2-active-round > .sv2-v2-section-label {
  flex-shrink: 0;
}

/* Scroll container: only match rows move; flex-basis 0 prevents content-height blow-up */
.survivors-admin-v2 .sv2-v2-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Lives 2: tournament champion callout below final round matches */
.survivors-admin-v2 .sv2-v2-champion-banner {
  flex-shrink: 0;
  margin: 0.85rem 0.35rem 0.35rem;
  padding: 0;
  position: relative;
  text-align: center;
  animation: sv2ChampionBannerIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Same champion already shown — board HTML is rebuilt on poll but skip re-entry motion + flame flicker reset */
.survivors-admin-v2 .sv2-v2-champion-banner--no-enter {
  animation: none;
}
.survivors-admin-v2 .sv2-v2-champion-banner--no-enter .sv2-torch-flame--a,
.survivors-admin-v2 .sv2-v2-champion-banner--no-enter .sv2-torch-flame--b {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Champion card: light = warm cream + dark readable type; dark = torch-glow trophy slab + gold headline */
.survivors-admin-v2 .sv2-v2-champion-banner__frame {
  position: relative;
  margin: 0 auto;
  max-width: 28rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 12px;
}

/* Light theme */
.survivors-admin-v2 .sv2-v2-champion-banner__frame {
  border: 2px solid rgba(180, 100, 0, 0.38);
  background: linear-gradient(165deg, #fffdfb 0%, #fff4e6 45%, #ffe8cf 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 10px 32px rgba(0, 0, 0, 0.07),
    0 0 40px rgba(255, 152, 0, 0.12);
}

.survivors-admin-v2 .sv2-v2-champion-banner__eyebrow {
  margin: 0 0 0.6rem 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #3d2914;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  filter: none;
}

/* Dark theme */
body.dark-theme .survivors-admin-v2 .sv2-v2-champion-banner__frame {
  border: 2px solid rgba(255, 193, 7, 0.5);
  background: linear-gradient(165deg, #2d2418 0%, #1a1510 50%, #352818 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(255, 152, 0, 0.12);
}

body.dark-theme .survivors-admin-v2 .sv2-v2-champion-banner__eyebrow {
  background: linear-gradient(
    105deg,
    #fff8e1 0%,
    #ffca28 35%,
    #ff8f00 65%,
    #ffe082 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(255, 140, 0, 0.4));
}

.survivors-admin-v2 .sv2-v2-champion-banner__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
}

.survivors-admin-v2 .sv2-v2-champion-banner__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(180, 100, 0, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.dark-theme .survivors-admin-v2 .sv2-v2-champion-banner__avatar {
  border-color: rgba(255, 193, 7, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.survivors-admin-v2 .sv2-v2-champion-banner__avatar--torch {
  width: 5.25rem;
  height: 5.75rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.35rem 0.45rem 0.2rem;
  box-sizing: border-box;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-champion-banner__avatar--torch {
  background: rgba(0, 0, 0, 0.28);
}

.survivors-admin-v2 .sv2-v2-champion-banner__torch-wrap {
  width: 3.5rem;
  height: 5.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.survivors-admin-v2 .sv2-v2-champion-banner__torch-wrap .sv2-cockpit-torch {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.55)) drop-shadow(0 0 14px rgba(255, 87, 34, 0.35));
}

.survivors-admin-v2 .sv2-v2-champion-banner__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sv2-fg, #1d1d1f);
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-champion-banner__name {
  color: #f8f6f1;
}

@keyframes sv2ChampionBannerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-v2-champion-banner {
    animation: none;
  }
  .survivors-admin-v2 .sv2-v2-champion-banner--no-enter {
    animation: none;
  }
}

.survivors-admin-v2 .sv2-v2-rounds-strip {
  flex-shrink: 0;
  min-width: 0;
}

.survivors-admin-v2 .sv2-v2-round-chips-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0.1rem -0.05rem 0;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

/* Aligns with .sv2-v2-match-row — Home | Table | Away */
.survivors-admin-v2 .sv2-v2-round-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: var(--sv2-v2-match-row-column-gap);
  align-items: baseline;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0 0.22rem 0.2rem 0.22rem;
  margin: 0 0 0.05rem 0;
  border-bottom: 1px solid var(--sv2-border);
  background: var(--sv2-surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.survivors-admin-v2 .sv2-v2-round-column-head span {
  font-family: "Oswald", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sv2-muted);
  line-height: 1.2;
}

.survivors-admin-v2 .sv2-v2-round-column-head__home {
  text-align: left;
  justify-self: start;
}

.survivors-admin-v2 .sv2-v2-round-column-head__table {
  text-align: center;
  justify-self: center;
  /* Match fixed table column so headers line up when sublines reserve width (waiting for table / opponent) */
  width: var(--sv2-v2-match-table-col-w);
  min-width: var(--sv2-v2-match-table-col-w);
  max-width: var(--sv2-v2-match-table-col-w);
  box-sizing: border-box;
}

.survivors-admin-v2 .sv2-v2-round-column-head__away {
  text-align: right;
  justify-self: end;
}

.survivors-admin-v2 .sv2-v2-match-card {
  background: var(--sv2-surface-alt);
  border: 1px solid var(--sv2-border);
  border-radius: 4px;
  padding: 0.1rem 0.16rem;
  border-left: 3px solid var(--sv2-border);
}

/* Completed — green “done” rail */
.survivors-admin-v2 .sv2-v2-match-card.is-played {
  border-left-color: #43a047;
  background: linear-gradient(
    90deg,
    rgba(67, 160, 71, 0.12) 0%,
    var(--sv2-surface-alt) 12px
  );
  opacity: 1;
}

/* Brief emphasis after FLIP to top when a result was just recorded */
.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--slide-highlight {
  box-shadow:
    0 0 0 2px rgba(67, 160, 71, 0.42),
    0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 1;
  position: relative;
}

/* One-shot ~8s: gold pulse then ease-out fade (no abrupt stop when class is removed). */
@keyframes sv2-v2-match-win-pulse {
  0%,
  24%,
  48%,
  72% {
    box-shadow:
      0 0 0 2px rgba(184, 134, 11, 0.55),
      0 0 18px rgba(218, 165, 32, 0.2);
  }
  12%,
  36%,
  60%,
  84% {
    box-shadow:
      0 0 0 3px rgba(255, 215, 0, 0.88),
      0 0 32px rgba(218, 165, 32, 0.45);
  }
  88% {
    box-shadow:
      0 0 0 2px rgba(184, 134, 11, 0.42),
      0 0 18px rgba(218, 165, 32, 0.15);
  }
  92% {
    box-shadow:
      0 0 0 1px rgba(184, 134, 11, 0.2),
      0 0 10px rgba(218, 165, 32, 0.08);
  }
  97% {
    box-shadow:
      0 0 0 0 rgba(255, 215, 0, 0),
      0 0 6px rgba(218, 165, 32, 0.04);
  }
  100% {
    box-shadow: none;
  }
}

/* Class removed shortly after animation ends (see armMatchBoardWinPulse delay). */
.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--win-pulse {
  animation: sv2-v2-match-win-pulse 8s linear forwards;
  z-index: 2;
  position: relative;
}

/* Awaiting score — amber “pending” rail (click to record) */
.survivors-admin-v2 .sv2-v2-match-card--pending {
  border-left-color: #f9a825;
  background: linear-gradient(
    90deg,
    rgba(249, 168, 37, 0.14) 0%,
    var(--sv2-surface-alt) 14px
  );
}

/*
 * Player view: “my” match — larger type/padding only (no scale — scale caused clipping under
 * .sv2-v2-carousel overflow-x:hidden and top-heavy layout vs min-height).
 */
.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.52rem 0.62rem;
  min-height: 4.35rem;
  border-left-width: 4px;
  border-left-color: #e31837;
  box-shadow:
    0 0 0 1px rgba(227, 24, 55, 0.22),
    0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 1;
  position: relative;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-match-row {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  align-items: center;
  row-gap: 0.1rem;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-match-table-col {
  align-self: center;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-player-avatar {
  width: 30px;
  height: 30px;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-player-fallback {
  width: 30px;
  height: 30px;
  font-size: 0.68rem;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-player-name {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.12;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-player-sub {
  font-size: 0.6rem;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming .sv2-v2-player-lives {
  font-size: 0.68rem;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming {
  box-shadow:
    0 0 0 1px rgba(227, 24, 55, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35);
  border-left-color: #ff5252;
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming.sv2-v2-match-card--playable:hover {
  box-shadow:
    0 0 0 2px rgba(227, 24, 55, 0.38),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

.survivors-admin-v2 .sv2-v2-match-card.sv2-v2-match-card--my-upcoming.sv2-v2-match-card--playable:focus-visible {
  box-shadow:
    0 0 0 2px var(--sv2-espn-red, #e31837),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

.survivors-admin-v2 .sv2-v2-match-card--bye:not(.is-played) {
  border-left-color: rgba(147, 153, 176, 0.65);
  background: linear-gradient(
    90deg,
    rgba(120, 130, 160, 0.12) 0%,
    var(--sv2-surface-alt) 12px
  );
}

.survivors-admin-v2 .sv2-v2-match-card--bye.is-played {
  border-left-color: #43a047;
}

.survivors-admin-v2 .sv2-v2-match-card--playable {
  cursor: pointer;
  outline: none;
}

.survivors-admin-v2 .sv2-v2-match-card--playable:hover {
  border-color: rgba(227, 24, 55, 0.45);
  box-shadow: 0 0 0 1px rgba(227, 24, 55, 0.2);
}

.survivors-admin-v2 .sv2-v2-match-card--playable:focus-visible {
  box-shadow: 0 0 0 2px var(--sv2-espn-red, #e31837);
}

/* Past rounds: only active round and previous remain editable — others are view-only. */
.survivors-admin-v2 .sv2-v2-match-card--score-locked {
  cursor: not-allowed;
  opacity: 0.88;
}

.survivors-admin-v2 .sv2-v2-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sv2-v2-match-row-column-gap);
  row-gap: 0.02rem;
}

.survivors-admin-v2 .sv2-v2-match-side {
  min-width: 0;
}

/* BYE pill lives in home column so table stays true center (same 3-col grid as normal rows) */
.survivors-admin-v2 .sv2-v2-match-row--bye .sv2-v2-match-side--home {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.survivors-admin-v2 .sv2-v2-match-row--bye .sv2-v2-bye-pill {
  flex-shrink: 0;
}

.survivors-admin-v2 .sv2-v2-match-row--bye .sv2-v2-match-side--home .sv2-v2-player {
  flex: 1;
  min-width: 0;
}

.survivors-admin-v2 .sv2-v2-match-table-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex-shrink: 0;
  /* Fixed width on every card so home/away columns stay aligned when a subline is present */
  width: var(--sv2-v2-match-table-col-w);
  min-width: var(--sv2-v2-match-table-col-w);
  max-width: var(--sv2-v2-match-table-col-w);
  box-sizing: border-box;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.survivors-admin-v2 .sv2-v2-match-table-subline {
  font-family: "Oswald", sans-serif;
  font-size: 0.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  margin-top: 0.02rem;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mini pool table — PNG uses transparent surround; fill matches row under the felt */
.survivors-admin-v2 .sv2-v2-pool-chip {
  position: relative;
  box-sizing: border-box;
  width: 44px;
  height: 22px;
  min-width: 44px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sv2-surface-alt);
  background-image: url("../img/pool-table-chip.png?v=20260403t");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
}

.survivors-admin-v2 .sv2-v2-pool-chip--unassigned {
  background-color: var(--sv2-surface);
  background-image: none;
  border: 1px dashed var(--sv2-border);
  color: var(--sv2-muted);
  text-shadow: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.survivors-admin-v2 .sv2-v2-pool-chip-num {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.survivors-admin-v2 .sv2-v2-free-tables-x-legend {
  display: block;
  margin-top: 0.45rem;
  font-weight: 600;
  color: var(--sv2-fg);
  letter-spacing: 0.02em;
}

/* Free tables drawer: key metric line + priority list; red × on unavailable (assigned) tables */
.survivors-admin-v2 .sv2-v2-free-tables-pool-highlight {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.15rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--sv2-border);
  background: linear-gradient(180deg, var(--sv2-surface-alt) 0%, var(--sv2-surface) 100%);
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-v2-free-tables-pool-highlight__n {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--sv2-espn-red, #e31837);
  letter-spacing: 0.03em;
  margin-right: 0.2rem;
  vertical-align: -0.06em;
}

.survivors-admin-v2 .sv2-v2-free-tables-pool-highlight__n--zero {
  color: var(--sv2-muted);
  opacity: 0.95;
}

.survivors-admin-v2 .sv2-v2-free-tables-pool-highlight__label {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-v2-free-tables-pool-highlight__hint {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--sv2-muted);
}

.survivors-admin-v2 .sv2-v2-free-tables-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: flex-start;
}

.survivors-admin-v2 .sv2-v2-free-tables-chip-grid--sortable .sv2-v2-pool-chip--drawer {
  cursor: grab;
}

.survivors-admin-v2 .sv2-v2-free-tables-chip-grid--sortable .sv2-v2-pool-chip--drawer:active {
  cursor: grabbing;
}

.survivors-admin-v2 .sv2-v2-free-tables-sortable-ghost {
  opacity: 0.45;
}

.survivors-admin-v2 .sv2-v2-free-tables-sortable-chosen {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.survivors-admin-v2 .sv2-v2-pool-chip--drawer {
  position: relative;
  width: 72px;
  height: 36px;
  min-width: 72px;
  min-height: 36px;
  font-size: 0.78rem;
  flex-shrink: 0;
  overflow: hidden;
}

/* Assigned to an unplayed match — small red × tucked at top-right of chip */
.survivors-admin-v2 .sv2-v2-pool-chip--drawer.sv2-v2-pool-chip--drawer-assigned {
  overflow: visible;
}

.survivors-admin-v2 .sv2-v2-pool-chip--drawer-assigned {
  opacity: 0.98;
}

.survivors-admin-v2 .sv2-v2-pool-chip--drawer-assigned::after {
  content: "\00D7";
  position: absolute;
  top: -0.32rem;
  right: -0.18rem;
  left: auto;
  display: block;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 32, 55, 0.92);
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.55),
    0 0 10px rgba(255, 40, 55, 0.35),
    0 2px 3px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
  font-family: system-ui, "Segoe UI", sans-serif;
}

.survivors-admin-v2 .sv2-v2-match-side--walkover-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.survivors-admin-v2 .sv2-v2-bye-walkover {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--sv2-muted);
  text-align: center;
  min-width: 0;
}

.survivors-admin-v2 .sv2-v2-player {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex: 1;
  min-width: 0;
  max-width: none;
}

.survivors-admin-v2 .sv2-v2-player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface);
  flex-shrink: 0;
}

.survivors-admin-v2 .sv2-v2-player-fallback {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sv2-surface) 0%, var(--sv2-border) 100%);
  color: var(--sv2-fg);
  border: 1px solid var(--sv2-border);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.survivors-admin-v2 .sv2-v2-player-meta {
  min-width: 0;
  flex: 1;
}

/* Name + torch + feat fill left; (lives) flush right — aligns across winner / non-winner when padding matches */
.survivors-admin-v2 .sv2-v2-player-name-line {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}

.survivors-admin-v2 .sv2-v2-player-name-cluster {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Absorb extra width here so torch + 8-ball stay beside the name, not flush to (lives) */
.survivors-admin-v2 .sv2-v2-player-name-cluster-spacer {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  align-self: stretch;
}

.survivors-admin-v2 .sv2-v2-player-name {
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}

.survivors-admin-v2 .sv2-v2-player-lives {
  flex-shrink: 0;
  min-width: 1.85rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.05;
  color: var(--sv2-muted, #9aa0a6);
  letter-spacing: 0.02em;
}

.survivors-admin-v2 .sv2-v2-player-sub {
  font-size: 0.54rem;
  color: var(--sv2-muted);
  line-height: 1.02;
}

/* Same horizontal padding for every player in a match row so meta / (lives) line up winner or not */
.survivors-admin-v2 .sv2-v2-match-row > .sv2-v2-match-side > .sv2-v2-player {
  padding: 0.03rem 0.18rem;
  box-sizing: border-box;
}

/*
 * Winner torch: outer box keeps row/layout height; inner scale wraps SVG so path flicker animations
 * aren’t fighting a transform on the <svg> root.
 */
.survivors-admin-v2 .sv2-v2-winner-torch-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  align-self: center;
  width: 13px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  box-sizing: content-box;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(255, 152, 0, 0.5)) drop-shadow(0 0 6px rgba(255, 87, 34, 0.28));
}

.survivors-admin-v2 .sv2-v2-winner-torch-scale {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 11px;
  height: 16px;
  flex-shrink: 0;
  transform: scale(1.08);
  transform-origin: 50% 100%;
}

.survivors-admin-v2 .sv2-v2-winner-torch-icon {
  width: 11px;
  height: 16px;
  vertical-align: middle;
  display: block;
}

/* Elimination skull (lost last life in this match) — beside name like winner torch */
.survivors-admin-v2 .sv2-v2-elim-skull-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.survivors-admin-v2 .sv2-v2-elim-skull {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
  animation: sv2ElimSkullPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(90, 20, 20, 0.5));
}

body.dark-theme .survivors-admin-v2 .sv2-v2-elim-skull {
  filter: drop-shadow(0 0 4px rgba(255, 120, 120, 0.4));
}

@keyframes sv2ElimSkullPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-v2-elim-skull {
    animation: none;
  }
}

.survivors-admin-v2 .sv2-v2-player.is-match-winner {
  border: 1px solid rgba(67, 160, 71, 0.75);
  border-radius: 3px;
  background: rgba(67, 160, 71, 0.14);
  box-shadow: 0 0 0 1px rgba(129, 199, 132, 0.35);
}

/* Winner chip no longer uses asymmetric horizontal margins — they shifted (lives) vs non-winner. */

/* Use theme foreground so day mode stays readable on the light green chip */
.survivors-admin-v2 .sv2-v2-player.is-match-winner .sv2-v2-player-name {
  color: var(--sv2-fg);
}

/* Player find: winner name color rule above must not suppress blue pulse */
.survivors-admin-v2 .sv2-v2-player.is-match-winner.sv2-v2-player--find-pulse .sv2-v2-player-name {
  animation: sv2-v2-player-find-pulse 0.85s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-player.is-match-winner.sv2-v2-player--find-pulse .sv2-v2-player-name {
  animation: sv2-v2-player-find-pulse-dark 0.85s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Legacy “vs” divider removed — table column sits between home and away */

.survivors-admin-v2 .sv2-v2-board-break-hint {
  margin: 0.4rem 0 0 0;
  font-size: 0.72rem;
  color: var(--sv2-muted);
  line-height: 1.35;
  max-width: 22rem;
}

.survivors-admin-v2 .sv2-v2-board-break-mark {
  font-weight: 700;
  color: var(--sv2-fg);
}

.survivors-admin-v2 .sv2-v2-bye-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--sv2-border);
  padding: 0.14rem 0.32rem;
  border-radius: 3px;
  height: 1.35rem;
  box-sizing: border-box;
}

.survivors-admin-v2 .sv2-v2-round-chips {
  list-style: none;
  margin: 0;
  padding: 0.05rem 0.1rem 0 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: max-content;
}

.survivors-admin-v2 .sv2-v2-chip {
  font-size: 0.68rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-muted);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.survivors-admin-v2 .sv2-v2-chip:focus-visible {
  outline: 2px solid var(--sv2-espn-red, #e31837);
  outline-offset: 2px;
}

/* Server live round (may differ from the round you are reviewing). */
.survivors-admin-v2 .sv2-v2-chip.is-active {
  border-color: rgba(227, 24, 55, 0.5);
  color: var(--sv2-fg);
}

/* Round currently shown in the match list. */
.survivors-admin-v2 .sv2-v2-chip.is-selected {
  border-color: var(--sv2-espn-red, #e31837);
  color: var(--sv2-fg);
  font-weight: 700;
  background: rgba(227, 24, 55, 0.09);
}

.survivors-admin-v2 .sv2-v2-chip.is-selected.is-active {
  border-color: var(--sv2-espn-red, #e31837);
}

@keyframes sv2-v2-chip-prior-pulse {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(250, 204, 21, 0.28);
  }
  50% {
    box-shadow: 0 0 14px 3px rgba(250, 204, 21, 0.5);
  }
}

/* Before active round index, with normal matches still unplayed — blocks advancing. */
.survivors-admin-v2 .sv2-v2-chip.sv2-v2-chip--prior-incomplete {
  color: var(--sv2-fg, #e8eaed);
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.85);
  animation: sv2-v2-chip-prior-pulse 1.75s ease-in-out infinite;
}

.survivors-admin-v2 .sv2-v2-chip.sv2-v2-chip--prior-incomplete.is-selected {
  border-color: var(--sv2-espn-red, #e31837);
  background: rgba(234, 179, 8, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .survivors-admin-v2 .sv2-v2-chip.sv2-v2-chip--prior-incomplete {
    animation: none;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
  }
}

.survivors-admin-v2 .sv2-v2-board-empty {
  text-align: center;
  padding: 1rem;
}

/* Pick winner modal (Lives 2 match board) */
.survivors-admin-v2 .sv2-v2-pick-winner-modal-content {
  background: var(--sv2-surface, #252830);
  color: var(--sv2-fg, #e8eaed);
  border: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.survivors-admin-v2 .sv2-v2-pick-winner-modal-content .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.survivors-admin-v2 .sv2-v2-pick-winner-mode-msg--correct {
  color: var(--sv2-fg, #e8eaed);
  border-left: 3px solid #f9a825;
  padding-left: 0.65rem;
  line-height: 1.45;
}

.survivors-admin-v2 .sv2-v2-pick-winner-feat-8ro-wrap {
  padding: 0.35rem 0;
}

.survivors-admin-v2 .sv2-v2-feat-8ro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
  font-size: 0.8rem;
  color: var(--sv2-fg, #e8eaed);
}

.survivors-admin-v2 .sv2-v2-feat-8ro-abbr {
  color: var(--sv2-muted, #9aa0a6);
  font-weight: 600;
}

.survivors-admin-v2 .sv2-v2-feat-8ro-box {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 2px solid var(--sv2-border, rgba(255, 255, 255, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sv2-surface-alt, #1e2128);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.survivors-admin-v2 .sv2-v2-feat-8-ball {
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #5a5a5a 0%, #0d0d0d 42%, #000 100%);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.12);
}

.survivors-admin-v2 .sv2-v2-feat-8ro-input:focus + .sv2-v2-feat-8ro-box {
  box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.45);
}

.survivors-admin-v2 .sv2-v2-feat-8ro-input:checked + .sv2-v2-feat-8ro-box {
  border-color: var(--sv2-espn-red, #e31837);
  box-shadow: 0 0 0 1px rgba(227, 24, 55, 0.35);
}

.survivors-admin-v2 .sv2-v2-feat-8ro-input:checked + .sv2-v2-feat-8ro-box .sv2-v2-feat-8-ball {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: sv2Feat8roBallSpin 2.8s linear infinite;
}

@keyframes sv2Feat8roBallSpin {
  to {
    transform: scale(1) rotate(360deg);
  }
}

/* Match row: classic billiards 8-ball (black sphere + white spot + “8”); not the modal checkbox ball. */
.survivors-admin-v2 .sv2-v2-match-feat-8-ball-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.survivors-admin-v2 .sv2-v2-match-feat-8-ball {
  position: relative;
  box-sizing: border-box;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sphere: specular + ambient + core */
  background:
    radial-gradient(circle at 80% 82%, rgba(0, 0, 0, 0.5) 0%, transparent 42%),
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.06) 14%, transparent 38%),
    radial-gradient(circle at 50% 48%, #353535 0%, #121212 52%, #000 100%);
  box-shadow:
    inset -2px -3px 4px rgba(0, 0, 0, 0.65),
    inset 2px 2px 3px rgba(255, 255, 255, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.survivors-admin-v2 .sv2-v2-match-feat-8-ball-spot {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f0f0f0 45%, #d8d8d8 85%, #c8c8c8 100%);
  color: #0a0a0a;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  font-size: 0.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(0, 0, 0, 0.14),
    0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.survivors-admin-v2 .sv2-v2-match-feat-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.06rem 0.28rem;
  border-radius: 3px;
  background: rgba(227, 24, 55, 0.14);
  border: 1px solid rgba(227, 24, 55, 0.45);
  color: var(--sv2-fg);
  line-height: 1.2;
}

.survivors-admin-v2 .sv2-v2-pick-winner-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sv2-muted, #9aa0a6);
  text-align: center;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: stretch;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border-radius: 8px;
  border: 2px solid var(--sv2-border, rgba(255, 255, 255, 0.15));
  background: var(--sv2-surface-alt, #1e2128);
  color: var(--sv2-fg, #e8eaed);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice:hover {
  border-color: rgba(67, 160, 71, 0.85);
  background: rgba(67, 160, 71, 0.14);
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice--home:hover {
  border-left-color: #43a047;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice--away:hover {
  border-right-color: #43a047;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice:active {
  transform: scale(0.98);
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice--home {
  border-left-width: 3px;
  border-left-color: var(--sv2-espn-red, #e31837);
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice--away {
  border-right-width: 3px;
  border-right-color: var(--sv2-border);
}

body.dark-theme .survivors-admin-v2 .sv2-v2-pick-winner-choice--away {
  border-right-color: rgba(255, 255, 255, 0.35);
}

/* Correct-result modal: highlight side that currently won */
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner {
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.14);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.4);
  color: var(--sv2-fg, #1d1d1f);
}
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner.sv2-v2-pick-winner-choice--home {
  border-left-color: #2e7d32;
}
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner.sv2-v2-pick-winner-choice--away {
  border-right-color: #2e7d32;
}
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner:hover {
  border-color: #1b5e20;
  background: rgba(46, 125, 50, 0.22);
  box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.5);
}
body.dark-theme .survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner {
  background: rgba(76, 175, 80, 0.18);
  color: var(--sv2-fg, #f8f9fa);
}

@keyframes sv2PickWinnerTouchHintPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.4), 0 0 12px rgba(76, 175, 80, 0.15);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.55), 0 0 18px rgba(76, 175, 80, 0.28);
  }
}

/* Side clicked on match card before opening modal — dashed green + pulse */
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint {
  border-style: dashed;
  border-color: rgba(102, 187, 106, 0.95);
  background: rgba(76, 175, 80, 0.1);
  animation: sv2PickWinnerTouchHintPulse 1.35s ease-in-out infinite;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint.sv2-v2-pick-winner-choice--home {
  border-left-color: #66bb6a;
  border-left-style: dashed;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint.sv2-v2-pick-winner-choice--away {
  border-right-color: #66bb6a;
  border-right-style: dashed;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint:hover {
  border-color: rgba(67, 160, 71, 1);
  background: rgba(67, 160, 71, 0.18);
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint.sv2-v2-pick-winner-choice--home:hover {
  border-left-color: #43a047;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--touch-hint.sv2-v2-pick-winner-choice--away:hover {
  border-right-color: #43a047;
}

/* Touch-hint + recorded winner: keep dashed pulse on top of “current winner” fill */
.survivors-admin-v2 .sv2-v2-pick-winner-choice.sv2-v2-pick-winner-choice--current-winner.sv2-v2-pick-winner-choice--touch-hint {
  border-style: dashed;
  border-color: rgba(102, 187, 106, 0.95);
  animation: sv2PickWinnerTouchHintPulse 1.35s ease-in-out infinite;
}

.survivors-admin-v2 .sv2-v2-pick-winner-modal-content .sv2-v2-pick-winner-close {
  color: var(--sv2-fg);
  text-shadow: none;
  opacity: 0.65;
}

.survivors-admin-v2 .sv2-v2-pick-winner-modal-content .sv2-v2-pick-winner-close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}

.survivors-admin-v2 .sv2-v2-pick-winner-cancel {
  color: var(--sv2-fg);
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
}

.survivors-admin-v2 .sv2-v2-pick-winner-cancel:hover {
  color: var(--sv2-fg);
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-muted);
}

.survivors-admin-v2 .sv2-v2-pick-winner-recorded-name {
  font-weight: 700;
}

.survivors-admin-v2 .sv2-v2-pick-winner-footer {
  gap: 0.5rem;
}

/* Modal lives inside #sv2-board-placeholder so it appears in fullscreen; stack above rails + board */
.survivors-admin-v2 .sv2-board-placeholder .modal-backdrop {
  z-index: 10040;
}

.survivors-admin-v2 .sv2-board-placeholder #sv2-v2-pick-winner-modal {
  z-index: 10050;
}

/*
 * Breaks & BYEs + H2H: left drawer.
 * Bootstrap .modal { overflow: hidden } clips horizontal translate — drawer must overflow visible or the slide
 * never shows (especially the stacked head-to-head modal).
 * ID selectors so styles apply even if modals are reparented outside .survivors-admin-v2.
 */
#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left {
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left .modal-dialog {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  width: min(42rem, 94vw);
  max-width: min(42rem, 94vw);
  height: 100vh;
  max-height: 100vh;
  transform: translate3d(-105%, 0, 0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: stretch;
}

#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable {
  max-height: 100vh;
}

#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left.fade .modal-dialog,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left.fade .modal-dialog {
  transform: translate3d(-105%, 0, 0);
}

#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left.fade.show .modal-dialog {
  transform: translate3d(0, 0, 0);
}

#sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
#sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content,
.survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left .modal-dialog.modal-dialog-scrollable .modal-content {
  max-height: 100vh;
  height: 100%;
  border-radius: 0 10px 10px 0;
  border-left: none;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  #sv2-v2-breaks-byes-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-breaks-byes-h2h-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-runouts-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-survivals-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-kills-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-players-ledge-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  #sv2-v2-free-tables-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog,
  .survivors-admin-v2 .modal.sv2-v2-modal-slide-from-left .modal-dialog {
    transition: none;
  }
}

.survivors-admin-v2 .sv2-v2-journey-chart-host {
  min-height: 180px;
  position: relative;
  border-radius: 8px;
  background: var(--sv2-surface, #ffffff);
  border: 1px solid var(--sv2-border, #d2d2d7);
  padding: 0.35rem 0.25rem 0.5rem;
}

.survivors-admin-v2 .sv2-v2-journey-sort-row .sv2-journey-sort-btn {
  color: var(--sv2-muted, #6e6e73);
  text-decoration: none;
  font-weight: 500;
}

.survivors-admin-v2 .sv2-v2-journey-sort-row .sv2-journey-sort-btn:hover,
.survivors-admin-v2 .sv2-v2-journey-sort-row .sv2-journey-sort-btn:focus {
  color: var(--sv2-espn-red, #e31837);
  text-decoration: underline;
}

.survivors-admin-v2 .sv2-v2-journey-sort-row .sv2-journey-sort-btn--active {
  color: var(--sv2-fg, #1d1d1f);
  font-weight: 700;
  text-decoration: none;
}

body.dark-theme .survivors-admin-v2 .sv2-v2-journey-sort-row .sv2-journey-sort-btn--active {
  color: var(--sv2-fg, #f8f9fa);
}

#sv2-v2-journey-modal.modal.sv2-v2-modal-slide-from-left .modal-dialog {
  width: min(56rem, 96vw);
  max-width: min(56rem, 96vw);
}

.survivors-admin-v2 .sv2-v2-runouts-modal__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  counter-reset: sv2-runouts-rank;
  max-height: min(60vh, 32rem);
  overflow: auto;
}

.survivors-admin-v2 .sv2-v2-runouts-modal__list > li {
  counter-increment: sv2-runouts-rank;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
}

.survivors-admin-v2 .sv2-v2-runouts-modal__list > li::before {
  content: counter(sv2-runouts-rank) ".";
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--sv2-muted, #6e6e73);
  font-size: 0.9rem;
}

.survivors-admin-v2 .sv2-v2-runouts-modal__list > li.sv2-v2-runouts-modal__empty {
  counter-increment: none;
  display: block;
  padding: 0.75rem 0;
  border-bottom: none;
}

.survivors-admin-v2 .sv2-v2-runouts-modal__list > li.sv2-v2-runouts-modal__empty::before {
  content: none;
}

.survivors-admin-v2 .sv2-v2-runouts-modal__name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.survivors-admin-v2 .sv2-v2-runouts-modal__count {
  flex: 0 0 auto;
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  counter-reset: sv2-survivals-rank;
  max-height: min(60vh, 32rem);
  overflow: auto;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__list > li {
  counter-increment: sv2-survivals-rank;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
}

.survivors-admin-v2 .sv2-v2-survivals-modal__list > li::before {
  content: counter(sv2-survivals-rank) ".";
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--sv2-muted, #6e6e73);
  font-size: 0.9rem;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__list > li.sv2-v2-survivals-modal__empty {
  counter-increment: none;
  display: block;
  padding: 0.75rem 0;
  border-bottom: none;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__list > li.sv2-v2-survivals-modal__empty::before {
  content: none;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.survivors-admin-v2 .sv2-v2-survivals-modal__count {
  flex: 0 0 auto;
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-kills-modal__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  counter-reset: sv2-kills-rank;
  max-height: min(60vh, 32rem);
  overflow: auto;
}

.survivors-admin-v2 .sv2-v2-kills-modal__list > li {
  counter-increment: sv2-kills-rank;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
}

.survivors-admin-v2 .sv2-v2-kills-modal__list > li::before {
  content: counter(sv2-kills-rank) ".";
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--sv2-muted, #6e6e73);
  font-size: 0.9rem;
}

.survivors-admin-v2 .sv2-v2-kills-modal__list > li.sv2-v2-kills-modal__empty {
  counter-increment: none;
  display: block;
  padding: 0.75rem 0;
  border-bottom: none;
}

.survivors-admin-v2 .sv2-v2-kills-modal__list > li.sv2-v2-kills-modal__empty::before {
  content: none;
}

.survivors-admin-v2 .sv2-v2-kills-modal__name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.survivors-admin-v2 .sv2-v2-kills-modal__count {
  flex: 0 0 auto;
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  counter-reset: sv2-ledge-rank;
  max-height: min(60vh, 32rem);
  overflow: auto;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__list > li {
  counter-increment: sv2-ledge-rank;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
}

.survivors-admin-v2 .sv2-v2-ledge-modal__list > li::before {
  content: counter(sv2-ledge-rank) ".";
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--sv2-muted, #6e6e73);
  font-size: 0.9rem;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__list > li.sv2-v2-ledge-modal__empty {
  counter-increment: none;
  display: block;
  padding: 0.75rem 0;
  border-bottom: none;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__list > li.sv2-v2-ledge-modal__empty::before {
  content: none;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.survivors-admin-v2 .sv2-v2-ledge-modal__meta {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.85rem;
}

/* Breaks & BYEs + H2H modals: footer + themed data tables (match manage mini-tables, not Bootstrap table-dark) */
.survivors-admin-v2 .sv2-v2-breaks-byes-modal-footer {
  border-top: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12)) !important;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table {
  margin-bottom: 0;
  background: var(--sv2-surface, #252830);
  color: var(--sv2-fg, #e8eaed);
  border: 1px solid var(--sv2-border, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  overflow: hidden;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th {
  background: var(--sv2-surface-alt, #1e2128);
  color: var(--sv2-espn-red, #e31837);
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--sv2-espn-red, #e31837);
  border-top: none;
  vertical-align: middle;
  padding: 0.5rem 0.65rem;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th {
  cursor: pointer;
  user-select: none;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th:hover {
  color: var(--sv2-fg, #e8eaed);
  filter: brightness(1.06);
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th:focus-visible {
  outline: 2px solid var(--sv2-espn-red, #e31837);
  outline-offset: 2px;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th--asc::after,
.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th--desc::after {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.65em;
  opacity: 0.9;
  vertical-align: middle;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th--asc::after {
  content: "\a0▲";
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table thead th.sv2-v2-sortable-th--desc::after {
  content: "\a0▼";
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table tbody td {
  background: var(--sv2-surface, #252830);
  color: var(--sv2-fg, #e8eaed);
  border-color: var(--sv2-border, rgba(255, 255, 255, 0.12));
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  vertical-align: middle;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table tbody tr:nth-child(even) td {
  background: var(--sv2-surface-alt, #1e2128);
}

.survivors-admin-v2 .sv2-v2-breaks-byes-data-table tbody tr:last-child td {
  border-bottom: none;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-empty {
  color: var(--sv2-muted, #9aa0a6) !important;
  text-align: center;
}

.survivors-admin-v2 .sv2-v2-breaks-byes-table-scroll {
  border-radius: 6px;
}

.survivors-admin-v2 #sv2-v2-breaks-byes-modal .sv2-v2-breaks-byes-player-link {
  color: var(--sv2-espn-red, #e31837);
  text-decoration: underline;
  font-weight: 600;
}

.survivors-admin-v2 #sv2-v2-breaks-byes-modal .sv2-v2-breaks-byes-player-link:hover,
.survivors-admin-v2 #sv2-v2-breaks-byes-modal .sv2-v2-breaks-byes-player-link:focus {
  color: var(--sv2-espn-red-dark, #b8142b);
  text-decoration: underline;
}

.survivors-admin-v2 #sv2-v2-breaks-byes-modal .btn.btn-link.sv2-v2-breaks-byes-player-link {
  font-size: 0.8rem;
  line-height: 1.3;
  vertical-align: baseline;
  color: var(--sv2-espn-red, #e31837);
  text-decoration: underline;
}

.survivors-admin-v2 #sv2-v2-breaks-byes-modal .btn.btn-link.sv2-v2-breaks-byes-player-link:hover,
.survivors-admin-v2 #sv2-v2-breaks-byes-modal .btn.btn-link.sv2-v2-breaks-byes-player-link:focus {
  color: var(--sv2-espn-red-dark, #c41230);
}

.survivors-admin-v2 #sv2-v2-breaks-byes-h2h-modal .sv2-v2-breaks-byes-h2h-table thead th {
  white-space: nowrap;
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sv2-muted, #9aa0a6);
}

.survivors-admin-v2 .sv2-v2-pick-winner-choice-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.survivors-admin-v2 .sv2-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.survivors-admin-v2 .sv2-tool-tab {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-muted);
  cursor: default;
}

.survivors-admin-v2 .sv2-accordion-hint {
  font-size: 0.78rem;
  color: var(--sv2-muted);
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

.survivors-admin-v2 .sv2-cockpit-prizes-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--sv2-fg);
  min-height: 0;
}

.survivors-admin-v2 .sv2-cockpit-prize-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--sv2-border);
  background: var(--sv2-surface-alt);
  text-align: left;
}

.survivors-admin-v2 .sv2-cockpit-prize-place {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sv2-espn-red);
}

.survivors-admin-v2 .sv2-cockpit-prize-value {
  color: var(--sv2-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* Launcher: does not use .survivors-admin-v2 wrapper */
#survivors-admin-v2-launcher {
  position: fixed;
  bottom: 62px;
  right: 15px;
  z-index: 1035;
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

body.dark-theme #survivors-admin-v2-launcher {
  background: #1a1a1a;
  color: #f8f9fa;
  border-color: #2a2a2a;
}

#survivors-admin-v2-launcher:hover {
  filter: brightness(0.97);
}

/* -------------------------------------------------------------------------- */
/* Lives 2 — full Create tab (league v2 + Lives type)                          */
/* -------------------------------------------------------------------------- */

.lives2-tab1-shell {
  margin-bottom: 1.5rem;
}

.lives2-tab1-shell.survivors-admin-v2 {
  background: var(--sv2-bg);
}

/* Create tab: Survivors (v2 shell) or non-Survivors v2 — tab pane tokens + background */
#tourny_tab-1.lives2-tab1-active,
#tourny_tab-1.sv2-create-non-lives {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  background: var(--sv2-bg) !important;
  color: var(--sv2-fg);
  font-family: "Roboto", -apple-system, sans-serif;
}
body.dark-theme #tourny_tab-1.lives2-tab1-active,
body.dark-theme #tourny_tab-1.sv2-create-non-lives {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}

#tourny_tab-1:not(.lives2-tab1-active):not(.sv2-create-non-lives) {
  background: #3d3d3d;
}

/* Non-Survivors create: banner matches Lives 2 create strip */
#sv2-create-classic-banner.lives2-create-banner {
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

#tourny_tab-1.sv2-create-non-lives #tourny_tab_1_jumbotron_slot {
  margin-top: 0;
}

.lives2-create-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
}

.lives2-create-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sv2-fg);
}

.lives2-create-lede {
  margin: 0;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--sv2-muted);
}

.lives2-create-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: var(--sv2-espn-red);
  color: #fff;
  align-self: center;
}

.lives2-create-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--sv2-surface-alt);
  border-bottom: 1px solid var(--sv2-border);
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sv2-muted);
}

.lives2-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.75;
  color: var(--sv2-muted);
  transition: opacity 0.25s ease, color 0.25s ease;
}

.lives2-step-active {
  opacity: 1;
  color: var(--sv2-espn-red);
}

.lives2-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.65rem;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lives2-step-active .lives2-step-num {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
  color: #fff;
}

.lives2-step-connector {
  flex: 1 1 12px;
  max-width: 2rem;
  height: 2px;
  background: var(--sv2-border);
  border-radius: 1px;
  opacity: 0.6;
}

.lives2-tab1-host {
  padding: 0;
  background: var(--sv2-bg);
}

/* Legacy jumbotron (entire Create tab body) inside v2 host */
/* Create tournament — Lives: division match-format table is for RR/elim only, not Survivors */
.lives2-tab1-host #tourn_specific_options_div {
  display: none !important;
}

/* Create tournament body — v2 leagues (Survivors path inside host, or elim/RR in slot) */
#tourny_tab_1_jumbotron.sv2-create-body-v2 {
  height: auto !important;
  min-height: 0;
  background: var(--sv2-surface) !important;
  color: var(--sv2-fg);
  font-size: 0.88rem !important;
  padding: 1.25rem 1.35rem 1.5rem !important;
  margin-bottom: 0;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--sv2-border);
  border-top: none;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 label,
#tourny_tab_1_jumbotron.sv2-create-body-v2 .form-check-label {
  color: var(--sv2-fg) !important;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 hr {
  border-color: var(--sv2-border);
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 #start_date_input,
#tourny_tab_1_jumbotron.sv2-create-body-v2 #tourny_name_input {
  color: var(--sv2-fg);
  background: var(--sv2-bg);
  border: 1px solid var(--sv2-border);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .btn-success {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red-dark);
  color: #fff;
  font-weight: 600;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .btn-warning {
  font-weight: 600;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .btn-secondary {
  background: var(--sv2-surface);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
  font-weight: 600;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .btn-secondary:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .table-dark {
  color: var(--sv2-fg) !important;
  background: var(--sv2-surface-alt);
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .table-dark th,
#tourny_tab_1_jumbotron.sv2-create-body-v2 .table-dark td {
  border-color: var(--sv2-border);
  /* Override legacy inline gold (#f4dbaa) on #custom_match_format_table etc. */
  color: var(--sv2-fg) !important;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .table-striped tbody tr:nth-of-type(2n+1) {
  background-color: rgba(0, 0, 0, 0.04);
}
body.dark-theme #tourny_tab_1_jumbotron.sv2-create-body-v2 .table-striped tbody tr:nth-of-type(2n+1) {
  background-color: rgba(255, 255, 255, 0.04);
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .tourny-create-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.35rem;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .tourny-create-top-row label {
  margin: 0;
  font-weight: 600;
  font-size: 0.8rem;
}

#tourny_tab_1_jumbotron.sv2-create-body-v2 .tourny-create-name-input {
  width: 100%;
  max-width: 22rem;
}

/* Legacy create jumbotron when Survivors admin v2 league flag is off */
#tourny_tab_1_jumbotron.tourny-create-jumbotron:not(.sv2-create-body-v2) {
  background: #3d3d3d;
  min-height: 0;
  font-size: 12px;
  padding: 10px;
  color: #f4dbaa;
  border-radius: 0;
  margin-bottom: 1rem;
}

#tourny_tab_1_jumbotron.tourny-create-jumbotron:not(.sv2-create-body-v2) .tourny-create-top-row {
  display: block;
}

#tourny_tab_1_jumbotron.tourny-create-jumbotron:not(.sv2-create-body-v2) .tourny-create-top-row label[for="tourny_name_input"] {
  padding-left: 20px;
}

#tourny_tab_1_jumbotron.tourny-create-jumbotron:not(.sv2-create-body-v2) .tourny-create-name-input {
  width: 30%;
  max-width: none;
  display: inline-block;
  vertical-align: middle;
}

/* Legacy lives row: two-column flow inside sv2 shell */
.lives2-tab1-host #lives_row.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin-left: 0;
  margin-right: 0;
}

.lives2-tab1-host #lives_row > .col-auto {
  flex: 1 1 min(100%, 380px);
  max-width: 100%;
}

.lives2-tab1-host #lives_row > .col {
  flex: 1 1 min(100%, 320px);
  max-width: 100%;
  padding-left: 0 !important;
}


.lives2-tab1-host #lives_builder_div > p:first-of-type {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem !important;
  color: var(--sv2-fg) !important;
  margin-bottom: 0.5rem !important;
}

.lives2-tab1-host #lives_builder_div .btn-light {
  background: var(--sv2-surface);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
  font-size: 0.8rem;
}

.lives2-tab1-host #lives_builder_div .btn-warning {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red-dark);
  color: #fff;
  font-size: 0.8rem;
}

.lives2-tab1-host #lives_picker_table {
  font-size: 0.82rem !important;
}

.lives2-tab1-host #lives_picker_table thead {
  color: var(--sv2-fg) !important;
}

/* Section headings: Player Selection, General Config, Table Selection - standard h4 */
.lives2-tab1-host #lives_row .lives-player-selection-heading,
.lives2-tab1-host #lives_builder_config .lives-config-heading,
.lives2-tab1-host .lives-table-selection-heading {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sv2-fg);
  margin: 0 0 0.75rem 0;
}

/* Separators between Player Selection | General Config | Table Selection */
.lives2-tab1-host #lives_config_col {
  border-left: 1px solid var(--sv2-border);
  padding-left: 1rem !important;
  margin-left: 0.5rem;
}
.lives2-tab1-host #lives_table_selection {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sv2-border);
}


.lives2-tab1-host #lives_config_table td {
  color: var(--sv2-fg);
  border-color: var(--sv2-border);
}

.lives2-tab1-host #lives_config_table select,
.lives2-tab1-host #fee_amount_select {
  color: var(--sv2-fg);
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
}

/* Fees paid column: visible only when Manage fees is enabled */
.lives2-fees-col.lives2-fees-hidden {
  display: none !important;
}

/* Lives fee picker: presets + Other, matches survivors-admin-v2 */
.lives2-fee-picker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 100%;
}

.lives2-fee-picker .lives2-fee-select,
.lives2-fee-picker .lives2-fee-other {
  color: var(--sv2-fg);
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-size: 0.82rem;
}

.lives2-fee-picker .lives2-fee-select {
  min-width: 4.25rem;
  max-width: 5rem;
}

.lives2-fee-picker .lives2-fee-other {
  width: 3.5rem;
  min-width: 3rem;
}

.lives2-fee-picker .lives2-fee-select:focus,
.lives2-fee-picker .lives2-fee-other:focus {
  border-color: var(--sv2-espn-red);
  outline: none;
}

.lives2-fee-picker .lives2-fee-sel-wrap-hidden,
.lives2-fee-picker .lives2-fee-other-wrap-hidden {
  display: none !important;
}

.lives2-fee-picker .lives2-fee-other-wrap {
  display: inline-flex;
  align-items: center;
}

.lives2-fee-picker .lives2-fee-presets-link {
  font-size: 0.75rem;
  color: var(--sv2-muted);
  text-decoration: none;
  white-space: nowrap;
}

.lives2-fee-picker .lives2-fee-presets-link:hover {
  color: var(--sv2-espn-red);
  text-decoration: underline;
}

/* Manage tab table: same fee picker styling */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives2-fee-picker .lives2-fee-select,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives2-fee-picker .lives2-fee-other {
  color: var(--sv2-fg);
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
}

.lives2-tab1-host #save_lives_config_button {
  margin-top: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

/* Section headings base (dark jumbotron) */
#lives_player_selection .lives-player-selection-heading,
#lives_builder_config .lives-config-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #f7f7f7;
  margin: 0 0 0.75rem 0;
}

/* Table Selection dual-list (Create tab) - base styles for dark jumbotron */
#lives_table_selection {
  margin-top: 0.75rem;
}
#lives_table_selection .lives-table-selection-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #f7f7f7;
  margin: 0 0 0.6rem 0;
}
#lives_table_selection .lives-table-drag-hint {
  font-size: 0.75rem;
  color: #999;
  margin: 0 0 0.5rem 0;
}
.lives2-tab1-host #lives_table_selection .lives-table-drag-hint {
  color: var(--sv2-muted);
  margin: 0 0 0.5rem 0;
}
#lives_table_selection .lives-table-label {
  color: #c8cdd4;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}
#lives_table_selection .lives-table-order-hint {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.25rem;
}
#lives_table_selection .lives-z-pattern-icon {
  display: inline-block;
}
#lives_table_selection .lives-table-selection-lists {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
#lives_table_selection .lives-table-available,
#lives_table_selection .lives-table-priority {
  min-width: 140px;
}
#lives_table_selection .lives-table-list,
#lives_available_tables,
#table_priorities {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 120px;
  max-height: 240px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, 60px);
  gap: 0.25rem;
  align-content: start;
  /* 2 columns; scrollbar-gutter reserves space to avoid horiz scroll */
}
/* Pool table chip: reference image with table number overlaid, no border/shadow */
#lives_table_selection .lives-table-list li,
#lives_available_tables li,
#table_priorities li,
li.lives-pool-table-chip {
  position: relative;
  padding: 0;
  margin: 0;
  width: 60px;
  height: 30px;
  min-width: 60px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2d4a2d;
  background-image: url("../img/pool-table-chip.png?v=20260403t");
  background-size: cover;
  background-position: center;
  background-clip: padding-box;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  cursor: grab;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.lives-pool-table-chip .lives-chip-label {
  position: relative;
  z-index: 1;
}
#lives_table_selection .lives-table-list li:active {
  cursor: grabbing;
}
#lives_table_selection .lives-table-list li:hover {
  /* no border/shadow - image only */
}
#lives_table_selection .lives-table-list li.lives-table-dragging,
#lives_available_tables li.lives-table-dragging,
#table_priorities li.lives-table-dragging {
  opacity: 0.6;
  background: #e31837 !important;
  background-color: #e31837 !important;
  border-color: #e31837 !important;
  color: #fff !important;
}

/* SURV v2 overrides - Table Selection uses full palette */
.lives2-tab1-host #lives_table_selection {
  margin-top: 0.75rem;
}
.lives2-tab1-host #lives_table_selection .lives-table-selection-heading {
  color: var(--sv2-fg) !important;
}

.lives2-tab1-host #lives_table_selection .lives-table-selection-lists {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.lives2-tab1-host #lives_table_selection .lives-table-available,
.lives2-tab1-host #lives_table_selection .lives-table-priority {
  min-width: 140px;
}
.lives2-tab1-host #lives_table_selection .lives-table-label {
  color: var(--sv2-fg);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}
.lives2-tab1-host #lives_table_selection .lives-table-list,
.lives2-tab1-host #lives_available_tables,
.lives2-tab1-host #table_priorities {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 120px;
  max-height: 240px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: var(--sv2-surface) !important;
  border: 1px solid var(--sv2-border) !important;
  border-radius: 6px;
  padding: 0.35rem;
  display: grid !important;
  grid-template-columns: repeat(2, 60px) !important;
  gap: 0.25rem;
  align-content: start;
}
/* Pool table chip - SURV v2 (uses same reference image) */
.lives2-tab1-host #lives_table_selection .lives-table-list li {
  padding: 0;
  margin: 0;
  width: 60px;
  height: 30px;
  min-width: 60px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2d4a2d;
  background-image: url("../img/pool-table-chip.png?v=20260403t");
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  overflow: hidden;
  cursor: grab;
  font-size: 11px;
  font-weight: bold;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
}
.lives2-tab1-host #lives_table_selection .lives-table-list li:active {
  cursor: grabbing;
}
.lives2-tab1-host #lives_table_selection .lives-table-list li:hover {
  /* no border/shadow - image only */
}
.lives2-tab1-host #lives_table_selection .lives-table-list li.lives-table-dragging {
  opacity: 0.6;
  background: var(--sv2-espn-red) !important;
  border-color: var(--sv2-espn-red) !important;
  color: #fff;
}

.lives2-tab1-host p[style*="rgb(244, 219, 170)"] {
  color: var(--sv2-fg) !important;
}

/* ---- Lives roster player picker (Select2 + tags) ---- */

/* Dropdown: light panel so matches are readable; short list to spare the row below */
.select2-dropdown.lives-reg-player-dropdown {
  z-index: 10050;
  background-color: #f5f5f7 !important;
  border: 1px solid #c5c5c7 !important;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #1d1d1f;
}
.select2-dropdown.lives-reg-player-dropdown .select2-search__field {
  border: 1px solid #d2d2d7 !important;
  border-radius: 4px;
  color: #1d1d1f !important;
  background: #fff !important;
}
.select2-dropdown.lives-reg-player-dropdown .select2-results__options {
  max-height: 11rem;
  overflow-y: auto;
}
.select2-dropdown.lives-reg-player-dropdown .select2-results__option {
  color: #1d1d1f;
}
.select2-dropdown.lives-reg-player-dropdown .select2-results__option--highlighted {
  background-color: #e31837 !important;
  color: #fff !important;
}
.select2-dropdown.lives-reg-player-dropdown .select2-results__message {
  color: #6e6e73;
}

/* Closed control: dark cell that matches the table, gold accent, visible placeholder */
#lives_picker_table .select2-container,
#lives_picker_table-1 .select2-container {
  width: 100% !important;
}
#lives_picker_table .select2-container--default .select2-selection--single,
#lives_picker_table-1 .select2-container--default .select2-selection--single {
  background-color: #3d3d3d;
  border: 1px solid rgba(244, 219, 170, 0.35);
  border-radius: 4px;
  min-height: 2.25rem;
}
#lives_picker_table .select2-container--default.select2-container--focus .select2-selection--single,
#lives_picker_table-1 .select2-container--default.select2-container--focus .select2-selection--single,
#lives_picker_table .select2-container--default.select2-container--open .select2-selection--single,
#lives_picker_table-1 .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #f4dbaa;
  box-shadow: 0 0 0 1px rgba(244, 219, 170, 0.25);
}
#lives_picker_table .select2-container--default .select2-selection--single .select2-selection__rendered,
#lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 2.1rem;
  padding-left: 0.5rem;
}
#lives_picker_table .select2-container--default .select2-selection--single .select2-selection__placeholder,
#lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(244, 219, 170, 0.65);
}
#lives_picker_table .select2-container--default .select2-selection--single .select2-selection__arrow,
#lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.25rem;
}
#lives_picker_table .select2-container--default .select2-selection--single .select2-selection__arrow b,
#lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #f4dbaa transparent transparent transparent;
}
#lives_picker_table .select2-container--default .select2-selection--single .select2-selection__clear,
#lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__clear {
  color: rgba(255, 255, 255, 0.75);
  margin-right: 0.2rem;
}

/* Tags mode sometimes uses multiple-style chrome */
#lives_picker_table .select2-container--default .select2-selection--multiple,
#lives_picker_table-1 .select2-container--default .select2-selection--multiple {
  background-color: #3d3d3d;
  border: 1px solid rgba(244, 219, 170, 0.35);
  border-radius: 4px;
  min-height: 2.25rem;
}
#lives_picker_table .select2-container--default .select2-selection--multiple .select2-selection__rendered,
#lives_picker_table-1 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: #fff;
}
#lives_picker_table .select2-container--default .select2-search--inline .select2-search__field,
#lives_picker_table-1 .select2-container--default .select2-search--inline .select2-search__field {
  color: #fff;
  margin-top: 0.2rem;
}
#lives_picker_table .select2-container--default .select2-search--inline .select2-search__field::placeholder,
#lives_picker_table-1 .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: rgba(244, 219, 170, 0.55);
}

/* Create tab: Select2 in lives_picker_table — SURV v2 palette */
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--single {
  background-color: var(--sv2-surface) !important;
  border: 1px solid var(--sv2-border) !important;
  border-radius: 4px;
  min-height: 2.25rem;
}
.lives2-tab1-host #lives_picker_table .select2-container--default.select2-container--focus .select2-selection--single,
.lives2-tab1-host #lives_picker_table .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--sv2-espn-red) !important;
  box-shadow: 0 0 0 1px rgba(227, 24, 55, 0.2);
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--sv2-fg) !important;
  line-height: 2.1rem;
  padding-left: 0.5rem;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--sv2-muted) !important;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--sv2-muted) transparent transparent transparent;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--sv2-muted);
  margin-right: 0.2rem;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--multiple {
  background-color: var(--sv2-surface) !important;
  border: 1px solid var(--sv2-border) !important;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: var(--sv2-fg) !important;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-search--inline .select2-search__field {
  color: var(--sv2-fg) !important;
}
.lives2-tab1-host #lives_picker_table .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--sv2-muted) !important;
}

/* ---------- SURV v2 Cost modal (Heads up...) ---------- */
#cost_modal.sv2-cost-modal {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
}
body.dark-theme #cost_modal.sv2-cost-modal {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}
#cost_modal.sv2-cost-modal .modal-content {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
body.dark-theme #cost_modal.sv2-cost-modal .modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#cost_modal.sv2-cost-modal .modal-header {
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  padding: 1rem 1.25rem;
}
#cost_modal.sv2-cost-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-espn-red);
  margin: 0;
}
#cost_modal.sv2-cost-modal .modal-header .close {
  color: var(--sv2-muted);
  opacity: 0.8;
  text-shadow: none;
}
#cost_modal.sv2-cost-modal .modal-header .close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}
#cost_modal.sv2-cost-modal .modal-body {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1.25rem 1.25rem;
}
#cost_modal.sv2-cost-modal .modal-body p {
  margin: 0;
  color: var(--sv2-fg);
}
#cost_modal.sv2-cost-modal .modal-footer {
  background: var(--sv2-surface-alt);
  border-top: 1px solid var(--sv2-border);
  padding: 0.85rem 1.25rem;
  gap: 0.5rem;
}
#cost_modal.sv2-cost-modal .cost-modal-cancel {
  font-family: "Roboto", sans-serif;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
#cost_modal.sv2-cost-modal .cost-modal-cancel:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
#cost_modal.sv2-cost-modal .cost-modal-accept {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sv2-espn-red);
  border: none;
  color: #fff;
}
#cost_modal.sv2-cost-modal .cost-modal-accept:hover {
  background: var(--sv2-espn-red-dark);
  color: #fff;
  border: none;
}

/* ---------- Change tournament status modal (Manage tournaments) ---------- */
#change_tourn_status_modal.sv2-tourn-status-modal {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
}
body.dark-theme #change_tourn_status_modal.sv2-tourn-status-modal {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-content {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
body.dark-theme #change_tourn_status_modal.sv2-tourn-status-modal .modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-header {
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  padding: 1rem 1.25rem;
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-espn-red);
  margin: 0;
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-header .close {
  color: var(--sv2-muted);
  opacity: 0.8;
  text-shadow: none;
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-header .close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-body {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1.25rem 1.25rem;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-text {
  margin: 0 0 1rem 0;
  color: var(--sv2-fg);
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-field {
  margin-bottom: 0;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sv2-muted);
  margin-bottom: 0.35rem;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-select {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--sv2-fg);
  background: var(--sv2-surface-alt);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  height: auto;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-select:focus {
  border-color: var(--sv2-espn-red);
  box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.2);
  outline: none;
  background: var(--sv2-surface);
}
#change_tourn_status_modal.sv2-tourn-status-modal .modal-footer {
  background: var(--sv2-surface-alt);
  border-top: 1px solid var(--sv2-border);
  padding: 0.85rem 1.25rem;
  gap: 0.5rem;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-cancel {
  font-family: "Roboto", sans-serif;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-cancel:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-confirm {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sv2-espn-red);
  border: none;
  color: #fff;
}
#change_tourn_status_modal.sv2-tourn-status-modal .sv2-tourn-status-modal-confirm:hover {
  background: var(--sv2-espn-red-dark);
  color: #fff;
  border: none;
}

/* ---------- Delete round confirm (legacy + Lives 2) ---------- */
#delete_livesround_confirm_modal.sv2-delete-round-modal {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
}
body.dark-theme #delete_livesround_confirm_modal.sv2-delete-round-modal {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}
/* Vertically centered in viewport (Bootstrap modal-dialog-centered + comfortable width) */
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-dialog.sv2-delete-round-dialog {
  max-width: min(26rem, calc(100vw - 2rem));
  margin: 1.75rem auto;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-content {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
body.dark-theme #delete_livesround_confirm_modal.sv2-delete-round-modal .modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-header {
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  padding: 1rem 1.25rem;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-espn-red);
  margin: 0;
  line-height: 1.3;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-header .close {
  color: var(--sv2-muted);
  opacity: 0.85;
  text-shadow: none;
  font-size: 1.35rem;
  font-weight: 400;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-header .close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-body {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 1.25rem 1.25rem;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-body .sv2-delete-round-modal-msg {
  margin: 0;
  color: var(--sv2-fg);
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
  background: var(--sv2-surface-alt);
  border-top: 1px solid var(--sv2-border);
  padding: 0.85rem 1.25rem;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .sv2-delete-round-cancel {
  font-family: "Roboto", sans-serif;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .sv2-delete-round-cancel:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .sv2-delete-round-confirm {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sv2-espn-red);
  border: none;
  color: #fff;
}
#delete_livesround_confirm_modal.sv2-delete-round-modal .sv2-delete-round-confirm:hover {
  background: var(--sv2-espn-red-dark);
  color: #fff;
}

/* ---------- Delete tournament confirm (Manage tournaments) ---------- */
#delete_tourny_confirm_modal.sv2-delete-tourny-modal {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
}
body.dark-theme #delete_tourny_confirm_modal.sv2-delete-tourny-modal {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-dialog.sv2-delete-tourny-dialog {
  max-width: min(28rem, calc(100vw - 2rem));
  margin: 1.75rem auto;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-content {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
body.dark-theme #delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-header {
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  padding: 1rem 1.25rem;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-espn-red);
  margin: 0;
  line-height: 1.3;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-header .close {
  color: var(--sv2-muted);
  opacity: 0.85;
  text-shadow: none;
  font-size: 1.35rem;
  font-weight: 400;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-header .close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-body {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 1.25rem 1.25rem;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-body .sv2-delete-tourny-modal-msg {
  margin: 0;
  color: var(--sv2-fg);
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
  background: var(--sv2-surface-alt);
  border-top: 1px solid var(--sv2-border);
  padding: 0.85rem 1.25rem;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .sv2-delete-tourny-cancel {
  font-family: "Roboto", sans-serif;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .sv2-delete-tourny-cancel:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .sv2-delete-tourny-confirm {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sv2-espn-red);
  border: none;
  color: #fff;
}
#delete_tourny_confirm_modal.sv2-delete-tourny-modal .sv2-delete-tourny-confirm:hover {
  background: var(--sv2-espn-red-dark);
  color: #fff;
}

/* ---------- Lives 2 — Manage tables modal (dual-list, Sortable) ---------- */
#sv2_manage_tables_modal.sv2-manage-tables-modal {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  /* White wells so pool table chip art blends with the container */
  --sv2-chip-container: #ffffff;
}
body.dark-theme #sv2_manage_tables_modal.sv2-manage-tables-modal {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  --sv2-chip-container: #ffffff;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .modal-dialog.sv2-manage-tables-dialog {
  /* Wide enough for two chip grids side by side (Available | Priority) */
  max-width: min(44rem, calc(100vw - 1.25rem));
  margin: 1rem auto;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-modal-content {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
body.dark-theme #sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-modal-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .modal-header {
  background: var(--sv2-surface);
  border-bottom: 1px solid var(--sv2-border);
  padding: 0.65rem 1rem;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv2-espn-red);
  margin: 0;
  line-height: 1.3;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-close {
  color: var(--sv2-muted);
  opacity: 0.85;
  text-shadow: none;
  font-size: 1.35rem;
  font-weight: 400;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-close:hover {
  color: var(--sv2-fg);
  opacity: 1;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .modal-body {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  font-family: "Roboto", sans-serif;
  padding: 1rem 1.25rem 1.25rem;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .lives-table-drag-hint {
  color: var(--sv2-muted);
  font-size: 0.88rem;
  margin: 0 0 0.75rem 0;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-selection-lists {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
}
/* Available = first column (left), Priority = second (right) */
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-available,
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-priority {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 520px) {
  #sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-available,
  #sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-priority {
    flex: 1 1 100%;
  }
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-label {
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  margin: 0 0 0.3rem 0;
  color: var(--sv2-fg);
  font-weight: 600;
  font-size: 0.82rem;
}
/* Left-to-right chip grid (same 60px tracks as Create tab); fills row before wrapping */
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-selection .lives-table-list {
  list-style: none;
  margin: 0;
  box-sizing: border-box;
  min-height: 7rem;
  max-height: 14rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  padding: 0.35rem;
  background: var(--sv2-chip-container);
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  gap: 0.3rem;
  align-content: start;
  justify-content: start;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
  background: var(--sv2-surface-alt);
  border-top: 1px solid var(--sv2-border);
  padding: 0.65rem 1rem;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-cancel {
  font-family: "Roboto", sans-serif;
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-cancel:hover {
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-submit {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sv2-espn-red);
  border: none;
  color: #fff;
}
#sv2_manage_tables_modal.sv2-manage-tables-modal .sv2-manage-tables-submit:hover {
  background: var(--sv2-espn-red-dark);
  color: #fff;
}

/* ---------- SURV v2 Manage Tournaments tab (full restyle) ---------- */
/* Inner sub-tabs: only when sv2-manage-tab; legacy mode stacks both panes */
#tourny_tab-2:not(.sv2-manage-tab) .sv2-manage-inner-tabs {
  display: none !important;
}
#tourny_tab-2:not(.sv2-manage-tab) .sv2-manage-inner-content > .tab-pane {
  display: block !important;
  opacity: 1 !important;
}
/* Shared inner-tab strip: Manage subnav (Overview | Cockpit) + roster sub-tabs */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-tabs,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_div > div > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--sv2-border);
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-tabs .nav-item,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_div > div > .nav-tabs .nav-item {
  margin-bottom: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-tabs .nav-link,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_div > div > .nav-tabs .nav-link {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.85rem;
  margin-bottom: -1px;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-tabs .nav-link:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_div > div > .nav-tabs .nav-link:hover {
  color: var(--sv2-fg);
  border-bottom-color: transparent !important;
  background: transparent !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-tabs .nav-link.active,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_div > div > .nav-tabs .nav-link.active {
  color: var(--sv2-espn-red) !important;
  background: transparent !important;
  border-bottom-color: var(--sv2-espn-red) !important;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-inner-content {
  padding-top: 0.25rem;
}

/* Overview tab: left column (overview + settings stacked) + right roster panel */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-mng-overview-split {
  margin-left: 0;
  margin-right: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-mng-overview-left,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-mng-overview-right {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-lives-manage-overview-panel .sv2-manage-section-inset {
  padding: 1rem 1.25rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-lives-manage-overview-panel #lives_manage_div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

/* Overview → Settings: hide legacy “tournament-specific match format” (JS toggles d-none; force off in v2) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .non_lives_mgmt_class {
  display: none !important;
}

/* Timed breaks: compact panel (no table — avoids grid bleed / overlap with sibling column) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-panel {
  margin-bottom: 0;
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem 0.55rem;
  max-width: 15rem;
  box-sizing: border-box;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  line-height: 1.3;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sv2-espn-red);
  border-bottom: 2px solid var(--sv2-espn-red);
  padding-bottom: 0.35rem;
  margin-bottom: 0.4rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.8rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-field label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--sv2-fg);
  font-weight: 400;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-input {
  flex: 0 0 auto;
  width: 3.25rem;
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  color: var(--sv2-fg);
  background: var(--sv2-surface-alt);
  border: 1px solid var(--sv2-border);
  border-radius: 4px;
}
#tourny_tab-2 .sv2-timed-breaks-disabled-hint {
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
  opacity: 0.9;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-disabled-hint {
  font-family: "Roboto", sans-serif;
  color: var(--sv2-muted);
  opacity: 1;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-wrap.sv2-timed-breaks-disabled {
  opacity: 0.92;
}

/* Settings row: flex cols must shrink so wide tables/buttons don’t spill into sibling column */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:nth-child(2) > .sv2-settings-overview-row > [class*="col-"] {
  min-width: 0;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-overview-right {
  min-width: 0;
}

@media (min-width: 1200px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-overview-right {
    align-items: flex-end;
  }
}

/* Right column stack: only as wide as content (prevents full-width flex box overlapping neighbor) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-right-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-right-stack {
    align-items: flex-end;
  }
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-auto-refresh-row {
    width: fit-content;
    justify-content: flex-end;
  }
}

@media (max-width: 1199.98px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-right-stack {
    width: 100%;
    align-items: stretch;
    margin-top: 0.75rem;
  }
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-auto-refresh-row {
    justify-content: flex-start;
  }
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-auto-refresh-row {
  max-width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}

@media (max-width: 1199.98px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-auto-refresh-row {
    width: 100%;
  }
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-right-stack .sv2-settings-autoprogression-wrap,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-settings-right-stack .sv2-timed-breaks-wrap {
  width: fit-content;
  max-width: 100%;
}

/* Timed breaks block: narrow; no margin-left:auto here — parent column aligns the stack */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-wrap {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

/* Below xl: stack Settings row so left controls and timed breaks aren’t squeezed side-by-side */
@media (max-width: 1199.98px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:nth-child(2) > .sv2-settings-overview-row > .col-md-6.col-lg-5,
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:nth-child(2) > .sv2-settings-overview-row > .col-md-6.col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-panel {
    max-width: 100%;
  }
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_name_changer {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-disabled .sv2-timed-breaks-field label {
  color: var(--sv2-muted);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-timed-breaks-disabled .sv2-timed-breaks-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Settings column: Save / Delete / Prizes — max-content tracks + no min-width:0 so labels aren’t crushed */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.5rem 0.6rem;
  margin-top: 0.35rem;
  width: max-content;
  max-width: 100%;
  align-items: stretch;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons .btn {
  width: auto;
  min-width: max-content;
  box-sizing: border-box;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  border-radius: 4px;
  line-height: 1.25;
  white-space: nowrap;
}
@media (max-width: 479.98px) {
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons {
    grid-template-columns: 1fr;
    width: 100%;
  }
  :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons .btn {
    min-height: 2.35rem;
    width: 100%;
    min-width: 0;
  }
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons #save_tourny_changes_button.btn-success {
  color: #fff;
  box-shadow: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons #dete_tourny_button.btn-danger {
  background: transparent;
  border: 1px solid var(--sv2-espn-red);
  color: var(--sv2-espn-red);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons #dete_tourny_button.btn-danger:hover {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
  color: #fff;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons #prize_button.btn-warning {
  background: var(--sv2-surface-alt);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-action-buttons #prize_button.btn-warning:hover {
  background: var(--sv2-surface);
  border-color: var(--sv2-espn-red);
  color: var(--sv2-espn-red);
}

#tourny_tab-2 .sv2-manage-section {
  margin-bottom: 1rem;
}
#tourny_tab-2 .sv2-section-banner {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
#tourny_tab-2 .sv2-section-banner strong {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#tourny_tab-2:not(.sv2-manage-tab) .sv2-section-banner {
  color: rgb(244, 219, 170);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-section {
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  overflow: hidden;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-section-banner {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--sv2-surface-alt);
  border-bottom: 1px solid var(--sv2-border);
  font-size: 0.85rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-section-banner strong {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sv2-espn-red);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-manage-section .row {
  padding: 1rem 1.25rem;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab {
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  background: var(--sv2-bg) !important;
  color: var(--sv2-fg);
  font-family: "Roboto", -apple-system, sans-serif;
  padding: 1rem 1.25rem;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
}

/*
 * tournaments.html — #player-tournament-sv2: legacy player-facing strip must match .marquee / #main_jumbo
 * (#3d3d3d + cream copy), not the Manage-tab v2 light gray panel.
 */
#player-tournament-sv2.sv2-player-tournaments-view.sv2-manage-tab {
  background: #3d3d3d !important;
  background-color: #3d3d3d !important;
  color: #f4dbaa;
  font-family: inherit;
  padding: 0;
  --sv2-bg: #3d3d3d;
  --sv2-fg: #f4dbaa;
  --sv2-muted: #c9b896;
  --sv2-border: #5a5a5a;
  --sv2-surface: #454545;
  --sv2-surface-alt: #3a3a3a;
}
body.dark-theme #player-tournament-sv2.sv2-player-tournaments-view.sv2-manage-tab {
  background: #3d3d3d !important;
  background-color: #3d3d3d !important;
  color: #f4dbaa;
  --sv2-bg: #3d3d3d;
  --sv2-fg: #f4dbaa;
  --sv2-muted: #c9b896;
  --sv2-border: #5a5a5a;
  --sv2-surface: #454545;
  --sv2-surface-alt: #3a3a3a;
}

/*
 * Player tournaments.html — Lives 2 match board sits inside the legacy cream/gray strip but must use
 * scoped v2 styling (grid cards, carousel). Wrapper is .survivors-admin-v2 so all board rules apply;
 * cockpit tab supplies flex height — here we set an explicit min-height so the carousel can scroll.
 */
#player-sv2-lives-board-shell.survivors-admin-v2.sv2-player-lives-board {
  border-radius: 8px;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  /* Reset inherited legacy strip tokens so ESPN light/dark v2 vars win on this subtree. */
  --sv2-espn-red: #e31837;
  --sv2-espn-red-dark: #c41230;
  --sv2-bg: #f5f5f7;
  --sv2-fg: #1d1d1f;
  --sv2-surface: #ffffff;
  --sv2-surface-alt: #e8e8ed;
  --sv2-muted: #6e6e73;
  --sv2-border: #d2d2d7;
  background: var(--sv2-bg);
  color: var(--sv2-fg);
}
body.dark-theme #player-sv2-lives-board-shell.survivors-admin-v2.sv2-player-lives-board {
  --sv2-bg: #0d0d0d;
  --sv2-fg: #f8f9fa;
  --sv2-surface: #1a1a1a;
  --sv2-surface-alt: #262626;
  --sv2-muted: #999;
  --sv2-border: #2a2a2a;
  background: var(--sv2-bg);
  color: var(--sv2-fg);
}
#player-sv2-lives-board-shell.survivors-admin-v2.sv2-player-lives-board .sv2-v2-board-root {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: min(70vh, 720px);
  max-height: 85vh;
  overflow: hidden;
}

/* Player tournaments: same 3-col cockpit as Manage; hide prizes below large-ish widths to give the board room. */
#player-sv2-lives-board-shell .sv2-player-cockpit-body {
  padding: 0.55rem 0.4rem 0.65rem;
}
@media (max-width: 991.98px) {
  #player-sv2-lives-board-shell .sv2-player-cockpit-grid {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  }
  #player-sv2-lives-board-shell .sv2-player-prize-rail {
    display: none !important;
  }
}
@media (min-width: 992px) {
  #player-sv2-lives-board-shell .sv2-player-cockpit-grid {
    grid-template-columns: minmax(212px, 260px) minmax(0, 1fr) minmax(220px, 280px);
  }
}
#player-sv2-lives-board-shell #player-sv2-board-placeholder.sv2-board-placeholder {
  flex: 1 1 0;
  min-height: 0;
}

/* Lives 2 player board: legacy journey / special-stats toggles are redundant (journey lives in v2 shell). */
#stats_tracker.sv2-player-lives2-board-active #progression_toggle_link,
#stats_tracker.sv2-player-lives2-board-active #special_stats_toggle_link {
  display: none !important;
}

/*
 * tournaments.html — when player Lives 2 board is open, fill viewport below chrome instead of a ~400px-tall column.
 * JS toggles #main_jumbo.sv2-player-jumbo-lives2-active with the board shell.
 */
#main_jumbo.sv2-player-jumbo-lives2-active {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Nav + marquee + tournament header rows — leave room without hard-coding exact px */
  min-height: calc(100dvh - 10.5rem);
  min-height: calc(100vh - 10.5rem);
  padding-bottom: 0.35rem;
}
#main_jumbo.sv2-player-jumbo-lives2-active > .row:not(:has(#tourny_col)) {
  flex-shrink: 0;
}
#main_jumbo.sv2-player-jumbo-lives2-active > .row:has(> #tourny_col) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
#main_jumbo.sv2-player-jumbo-lives2-active #tourny_col {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-tournament-sv2 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-tournament-sv2 #lives_div {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
}
#main_jumbo.sv2-player-jumbo-lives2-active #lives_tourny_row {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
#main_jumbo.sv2-player-jumbo-lives2-active #lives_tourny_row > .col {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0 !important;
}
/* #stats_tracker wraps legacy links + the v2 shell; shell must grow inside this column */
#main_jumbo.sv2-player-jumbo-lives2-active #stats_tracker {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#main_jumbo.sv2-player-jumbo-lives2-active #stats_tracker #player-sv2-lives-board-shell:not(.d-none) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-sv2-lives-board-shell .sv2-player-cockpit-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0.35rem;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-sv2-lives-board-shell .sv2-player-cockpit-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-sv2-lives-board-shell .sv2-main {
  min-height: 0;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-sv2-lives-board-shell #player-sv2-board-placeholder.sv2-board-placeholder {
  flex: 1 1 auto;
  min-height: 0;
}
#main_jumbo.sv2-player-jumbo-lives2-active #player-sv2-lives-board-shell.survivors-admin-v2.sv2-player-lives-board .sv2-v2-board-root {
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 0;
}

/*
 * Player tournaments: fullscreen API target is #player-sv2-lives-board-shell so rail modals stay in-tree
 * (cockpit-body alone would hide Breaks/Journey drawers behind the fullscreen layer).
 */
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen),
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100%;
  margin: 0;
  max-width: none;
  padding: 0.45rem 0.55rem 0.55rem;
  overflow: hidden;
  background: var(--sv2-bg, #f5f5f7);
  border: none;
  border-radius: 0;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-player-cockpit-body,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active .sv2-player-cockpit-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-player-cockpit-grid,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active .sv2-player-cockpit-grid {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-main,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active .sv2-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) #player-sv2-board-placeholder,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active #player-sv2-board-placeholder {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-v2-board-root,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active .sv2-v2-board-root {
  flex: 1 1 0;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
}
#player-sv2-lives-board-shell:is(:fullscreen, :-webkit-full-screen, :-moz-full-screen) .sv2-rail,
#player-sv2-lives-board-shell.sv2-player-cockpit-fs-active .sv2-rail {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Header row: controls, tourny name, date, status */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:first-child .row {
  margin-bottom: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_name_heading {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tab2_tourny_date_text,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourn_status {
  color: var(--sv2-fg) !important;
}
/* Tournament status row: label + button share baseline / vertical center */
.sv2-tourn-status-row {
  gap: 0.35rem 0.5rem;
}
.sv2-tourn-status-row .sv2-tourn-status-label {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  white-space: nowrap;
  align-self: center;
}
.sv2-tourn-status-row #tourn_status.sv2-tourn-status-btn {
  align-self: center;
}

/* Status control: opens change-status modal (was plain text + link wrap) */
#tourn_status.sv2-tourn-status-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 1px solid rgba(244, 219, 170, 0.45);
  background: rgba(61, 61, 61, 0.95);
  color: #f4dbaa;
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
#tourn_status.sv2-tourn-status-btn:hover {
  border-color: #f4dbaa;
  color: #fff;
  background: rgba(82, 82, 82, 0.98);
}
#tourn_status.sv2-tourn-status-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(244, 219, 170, 0.35);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourn_status.sv2-tourn-status-btn {
  border-color: var(--sv2-border);
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourn_status.sv2-tourn-status-btn:hover {
  border-color: var(--sv2-espn-red);
  color: var(--sv2-espn-red) !important;
  background: var(--sv2-surface);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .d-flex.flex-row p {
  color: var(--sv2-muted);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .d-flex.flex-row .font-weight-bold {
  color: var(--sv2-fg);
}

/* Buttons in header */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #fetch_scores,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #refresh_button,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #gen_tournament_button-2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #gen_tournament_button-2.btn-success {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #gen_tournament_button-2.btn-success:hover {
  background: var(--sv2-espn-red-dark);
  border-color: var(--sv2-espn-red-dark);
}

/* Second section: date/name/buttons (left) + auto refresh/lives mgmt/timed breaks (right) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:nth-child(2) .row {
  margin-bottom: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .custom-control-label,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives_mgmt_class label {
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives_mgmt_class .table {
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives_mgmt_class .table th,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .lives_mgmt_class .table td {
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}

/* Date/Name (left col) and action buttons - same row as auto refresh */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-manage-section:nth-child(2) label {
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-mng-overview-left .sv2-manage-section:nth-child(2) #save_tourny_changes_button.btn-success {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #sv2-mng-overview-tab .sv2-manage-section:nth-child(2) #save_tourny_changes_button.btn-success:hover {
  background: var(--sv2-espn-red-dark);
  border-color: var(--sv2-espn-red-dark);
}

/* tourny_col (Cockpit tab): bracket / elim / RR */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_col {
  background: transparent;
}

/* Lives roster sub-tabs: styled with shared “inner-tab strip” rules above (#lives_manage_div > div > .nav-tabs) */

/* Lives tables: regd_players, bulk picker, round_delete, players_lives */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #regd_players_table2,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #players_lives_table {
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #regd_players_table2 thead,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 thead,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table thead,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #players_lives_table thead {
  background: var(--sv2-surface);
  color: var(--sv2-espn-red);
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--sv2-espn-red);
}
/* Roster / picker cells — must stay full opacity (do not merge with disabled trash rule below). */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #regd_players_table2 th,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #regd_players_table2 td,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 th,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 td {
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  user-select: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-disabled .fa-trash {
  color: var(--sv2-muted);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #player_registration_mng_tab .d-flex.flex-row p {
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #fees_collected_para {
  color: var(--sv2-fg) !important;
  font-weight: 600;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table th,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table td,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #players_lives_table th,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #players_lives_table td {
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
  vertical-align: middle;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-round-td {
  vertical-align: middle;
  white-space: nowrap;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-round-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  max-width: 100%;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-num {
  flex: 0 0 auto;
  min-width: 5.85rem;
  text-align: left;
  line-height: 1.2;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-round-cell .badge {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.28em 0.45em;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table .sv2-round-delete-action-td {
  width: 3.75rem;
  min-width: 3.75rem;
  vertical-align: middle;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #round_delete_table thead .sv2-round-delete-action-th {
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #regd_players_table2 tbody tr:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 tbody tr:hover {
  background: rgba(227, 24, 55, 0.06);
}

/* Lives builder section headers */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_builder_div-1 p:first-of-type,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_builder_div-1 .small {
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_builder_div-1 .small {
  color: var(--sv2-muted) !important;
}

/* Action buttons in lives mgmt */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #register_players_button-1,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_tables,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_mgmt_finalize {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #register_players_button-1.btn-warning,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_tables.btn-primary,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_mgmt_finalize.btn-primary {
  background: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #register_players_button-1.btn-warning:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_manage_tables.btn-primary:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_mgmt_finalize.btn-primary:hover {
  background: var(--sv2-espn-red-dark);
  border-color: var(--sv2-espn-red-dark);
}

/* Fees collected */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #fees_collected_para {
  color: var(--sv2-fg) !important;
}

/* Bracket / toplevel area */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div {
  background: var(--sv2-bg) !important;
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.65rem 0.85rem 1rem;
  box-sizing: border-box;
}

/* Elimination / RR cockpit banners (inside Manage → Cockpit) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  padding: 0.7rem 1.1rem 0.7rem 1.35rem;
  text-align: center;
  color: var(--sv2-fg);
  background: linear-gradient(
    100deg,
    var(--sv2-surface) 0%,
    var(--sv2-surface-alt) 42%,
    var(--sv2-surface) 100%
  );
  border: 1px solid var(--sv2-border);
  border-radius: 8px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner .sv2-cockpit-banner-tname {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--sv2-fg);
  margin: 0 0 0.3rem;
  line-height: 1.22;
  position: relative;
  z-index: 1;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner .sv2-cockpit-banner-type {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sv2-espn-red) 0%, var(--sv2-espn-red-dark) 100%);
  border-radius: 8px 0 0 8px;
  pointer-events: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner--elim::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -50%;
  width: 45%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(227, 24, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner--rr {
  margin-bottom: 0.65rem;
}
/* RR seeds banner: title block + fullscreen/countdown inside same card (div#rr_banner_seeds, not nested h3). */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div .sv2-cockpit-banner-with-inline-chrome {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div .sv2-cockpit-banner-with-inline-chrome .sv2-cockpit-banner-head-text {
  flex: 1 1 auto;
  min-width: 12rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div .sv2-cockpit-banner-with-inline-chrome .sv2-cockpit-banner-head-chrome {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner--rr::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(40%, 140px);
  background: linear-gradient(90deg, transparent, rgba(227, 24, 55, 0.06));
  pointer-events: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner--rr-sub {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  margin-top: 1.15rem;
  margin-bottom: 0.55rem;
  opacity: 0.96;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-cockpit-tourn-banner--rr-sub .sv2-cockpit-banner-type {
  margin: 0;
  font-size: 0.72rem;
}

:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div .sv2-cockpit-banner-head-chrome .bracket-top-controls {
  position: static !important;
  top: auto !important;
  right: auto !important;
}

/* Fullscreen bracket: include banner + flex column (overrides lives_tournament_styles for v2) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen {
  height: 100vh;
  width: 100%;
  max-height: 100vh;
  padding: 14px 18px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--sv2-bg) !important;
  border: none;
  border-radius: 0;
  margin-top: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen #sv2_elim_banner_row,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen #sv2_elim_banner_row,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen #sv2_elim_banner_row {
  flex-shrink: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen #elim_header.sv2-cockpit-tourn-banner,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen #elim_header.sv2-cockpit-tourn-banner,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen #elim_header.sv2-cockpit-tourn-banner {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.85rem 1.35rem 0.85rem 1.5rem;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen #rr_banner_seeds.sv2-cockpit-banner-with-inline-chrome,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen #rr_banner_seeds.sv2-cockpit-banner-with-inline-chrome,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen #rr_banner_seeds.sv2-cockpit-banner-with-inline-chrome {
  flex-shrink: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen #elim_header .sv2-cockpit-banner-tname,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen #elim_header .sv2-cockpit-banner-tname,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen #elim_header .sv2-cockpit-banner-tname {
  font-size: 1.22rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:fullscreen #elim_header .sv2-cockpit-banner-type,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-webkit-full-screen #elim_header .sv2-cockpit-banner-type,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #toplevel_manage_div:-moz-full-screen #elim_header .sv2-cockpit-banner-type {
  font-size: 0.74rem;
}

/* Bracket chrome: fullscreen / countdown — readable on light v2 cockpit */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .bracket-fullscreen-btn,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .bracket-refresh-countdown {
  color: var(--sv2-fg);
  background: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .bracket-fullscreen-btn:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .bracket-refresh-countdown:hover {
  background: var(--sv2-surface-alt);
  border-color: var(--sv2-espn-red);
  color: var(--sv2-espn-red);
  transform: none;
}

/* jQuery Bracket — stronger contrast than default grey-on-grey (double / single elim) */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team {
  background-color: var(--sv2-surface);
  color: var(--sv2-fg);
  border: 1px solid var(--sv2-border);
  box-sizing: border-box;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team:first-child {
  border-bottom: 1px solid var(--sv2-border);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win {
  background-color: #e8f5e9;
  color: #0d1f12;
  font-weight: 600;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win div.label {
  color: #0d1f12;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win div.score {
  color: #0b6e1f;
  background-color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose {
  background-color: #eceff1;
  color: #263238;
  font-weight: 500;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose div.label {
  color: #263238;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose div.score {
  color: #b71c1c;
  background-color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team div.score {
  background-color: rgba(255, 255, 255, 0.88);
  border-left: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
  font-weight: 600;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team div.score[disabled] {
  color: var(--sv2-muted);
  font-weight: 600;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team div.label input,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team div.score input {
  color: inherit;
  background: transparent;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .connector {
  border-color: #424242;
  border-width: 2px;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .connector div.connector {
  border-bottom: 2px solid #424242;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.np {
  background-color: #78909c;
  color: #fff;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.na,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.bye {
  background-color: #607d8b;
  color: #fff;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.highlightWinner {
  background-color: #fff8e1;
  color: #1a1a1a;
  border-color: #ffc107;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.highlightLoser {
  background-color: #ffebee;
  color: #3e2723;
  border-color: #ef9a9a;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.highlight {
  background-color: #c8e6c9;
  color: #0d1f12;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .tools {
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .tools span {
  background-color: var(--sv2-surface);
  border: 1px solid var(--sv2-border);
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .tools span:hover {
  background-color: var(--sv2-surface-alt);
}

/* Bracket prize lines (legacy cream #f4dbaa in sitestyles) → v2 foreground; headers off whitesmoke */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo1,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo2,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo4ormore,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfofinals,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfofinal {
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo1 p,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo2 p,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfo4ormore p,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfofinals p,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .prizeinfofinal p,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket [class*="prizeinfo"] p {
  color: inherit !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .winnerbracketheader,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .loserbracketheader {
  color: var(--sv2-espn-red) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .matchinfodiv,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div .matchinfodiv_loserBracket {
  color: var(--sv2-muted) !important;
}

body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team {
  background-color: var(--sv2-surface-alt);
  border-color: var(--sv2-border);
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win {
  background-color: #1b3d26;
  color: #e8f5e9;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win div.label {
  color: #e8f5e9;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.win div.score {
  color: #a5d6a7;
  background-color: rgba(0, 0, 0, 0.25);
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose {
  background-color: #2c2c30;
  color: #cfd8dc;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose div.label {
  color: #cfd8dc;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team.lose div.score {
  color: #ffab91;
  background-color: rgba(0, 0, 0, 0.2);
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .team div.score {
  background-color: rgba(0, 0, 0, 0.22);
  border-left-color: var(--sv2-border);
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .connector {
  border-color: #bdbdbd;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .toplevel_manage_div div.jQBracket .connector div.connector {
  border-bottom-color: #bdbdbd;
}

/* RR section spacing */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div > #rr_banner_seeds:first-of-type {
  margin-top: 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .rr_div .table {
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg);
}

/* Round robin tables in cockpit — drop muddy table-dark on light shell */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div {
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-dark {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  overflow: hidden;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-dark thead th {
  background: var(--sv2-surface-alt);
  color: var(--sv2-fg) !important;
  border-color: var(--sv2-border);
  font-weight: 600;
}

/* RR matches: vertical scroll (also when .sv2-manage-tab not on ancestor yet — cockpit tab path only). */
/* RR matches: inner scroll on Manage tab only when not using cockpit outer scroll (player view / overview). */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .sv2-rr-matches-scroll {
  max-height: min(55vh, 520px);
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .sv2-rr-matches-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--sv2-border);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-dark tbody td {
  border-color: var(--sv2-border);
  color: var(--sv2-fg) !important;
  background: var(--sv2-surface);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-striped tbody tr:nth-of-type(odd) td {
  background: var(--sv2-surface-alt) !important;
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-dark tbody td {
  background: var(--sv2-surface);
}
body.dark-theme :is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #rr_div .table.table-striped tbody tr:nth-of-type(odd) td {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Bulk reg: table uses full width of roster column (no unnecessary horizontal scroll) */
#tourny_tab-2 #bulk_player_reg_tab .sv2-lives-picker-table-wrap,
#tourny_tab-2 #bulk_player_reg_tab .table-responsive {
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
}
#tourny_tab-2 #bulk_player_reg_tab #lives_picker_table-1 {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}
#tourny_tab-2 #bulk_player_reg_tab #lives_picker_table-1 .select2-container {
  width: 100% !important;
  max-width: 100%;
}

/* Manage params: actions on top; narrow rounds + wide players (no third column) */
#tourny_tab-2 #mng_tab .sv2-mng-lives-params-stack {
  width: 100%;
  max-width: 100%;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.75rem;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-actions-bar .btn {
  margin: 0 !important;
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  line-height: 1.25;
}
/* Single horizontal scroll on this outer wrapper — not on rounds/players columns */
#tourny_tab-2 #mng_tab .sv2-mng-lives-tables-scroll-outer {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-tables-row {
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-tables-row > [class*="col-"] {
  min-width: 0;
}
/* Kill Bootstrap .table-responsive inner scroll on these two tables */
#tourny_tab-2 #mng_tab .sv2-mng-lives-no-inner-scroll.table-responsive {
  overflow-x: visible !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: auto;
}
@media (min-width: 992px) {
  /* Rounds column fixed width: content must not shrink the flex item when pill text changes (players table stays put). */
  #tourny_tab-2 #mng_tab .sv2-mng-lives-tables-row > .sv2-mng-lives-rounds-col {
    min-width: var(--sv2-mng-rounds-col-width, 20rem);
  }
  #tourny_tab-2 #mng_tab .sv2-mng-lives-rounds-col.col-lg-auto {
    flex: 0 0 var(--sv2-mng-rounds-col-width, 20rem);
    flex-grow: 0;
    width: var(--sv2-mng-rounds-col-width, 20rem);
    min-width: var(--sv2-mng-rounds-col-width, 20rem);
    max-width: 100%;
  }
  #tourny_tab-2 #mng_tab .sv2-mng-lives-players-col.col-lg {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
  }
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-table-wrap {
  width: 100%;
  max-width: 100%;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-table-title {
  margin: 0 0 0.45rem 0;
  padding: 0;
  border: none;
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  color: var(--sv2-espn-red, #e31837);
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-table-title strong {
  font-weight: 600;
}
/* Shrink-wrap rounds table so it does not steal width from players */
#tourny_tab-2 #mng_tab .sv2-mng-lives-rounds-wrap {
  vertical-align: top;
  position: relative;
  isolation: isolate;
}
/* Bootstrap .table-responsive is display:block; width:100% — override so column stays content-sized */
#tourny_tab-2 #mng_tab .sv2-mng-lives-rounds-wrap.table-responsive {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  overflow-x: visible;
}
@media (max-width: 575.98px) {
  #tourny_tab-2 #mng_tab .sv2-mng-lives-rounds-wrap.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: visible !important;
  }
}
/* Fixed footprint on lg+ so deleting rounds / shorter pill labels doesn’t narrow the column. */
#tourny_tab-2 #mng_tab #round_delete_table {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}
@media (min-width: 992px) {
  #tourny_tab-2 #mng_tab #round_delete_table {
    width: var(--sv2-mng-rounds-col-width, 20rem) !important;
    min-width: var(--sv2-mng-rounds-col-width, 20rem);
    max-width: var(--sv2-mng-rounds-col-width, 20rem);
  }
}
#tourny_tab-2 #mng_tab #round_delete_table th:first-child,
#tourny_tab-2 #mng_tab #round_delete_table td:first-child {
  width: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#tourny_tab-2 #mng_tab #round_delete_table th:last-child,
#tourny_tab-2 #mng_tab #round_delete_table td:last-child {
  width: 3.75rem;
  min-width: 3.75rem;
}
#tourny_tab-2 #mng_tab #players_lives_table thead th[scope="col"]:nth-child(3),
#tourny_tab-2 #mng_tab #players_lives_table thead th[scope="col"]:nth-child(4) {
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}
#tourny_tab-2 #mng_tab .sv2-mng-lives-players-wrap {
  position: relative;
  isolation: isolate;
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
  width: 100%;
}
#tourny_tab-2 #mng_tab #players_lives_table {
  width: auto !important;
  max-width: none;
  min-width: 0;
  table-layout: auto;
}
#tourny_tab-2 #mng_tab #players_lives_table thead th {
  position: relative;
}
#tourny_tab-2 #mng_tab #players_lives_table thead .tablesorter-header-inner {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  box-sizing: border-box;
}
#tourny_tab-2 #mng_tab #players_lives_table .sv2-players-lives-col-player {
  width: auto;
  min-width: 8rem;
}

/* Select2 in lives picker (Manage overview) — full v2 surface treatment */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single {
  background-color: var(--sv2-surface) !important;
  border: 1px solid var(--sv2-border) !important;
  border-radius: 4px;
  min-height: 2.25rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default.select2-container--focus .select2-selection--single,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--sv2-espn-red) !important;
  box-shadow: 0 0 0 1px rgba(227, 24, 55, 0.2);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--sv2-fg) !important;
  line-height: 2.1rem;
  padding-left: 0.5rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--sv2-muted) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.25rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--sv2-muted) transparent transparent transparent !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--sv2-muted);
  margin-right: 0.2rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--multiple {
  background-color: var(--sv2-surface) !important;
  border: 1px solid var(--sv2-border) !important;
  border-radius: 4px;
  min-height: 2.25rem;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-search--inline .select2-search__field {
  color: var(--sv2-fg) !important;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #lives_picker_table-1 .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--sv2-muted) !important;
}

/* Dropdown is attached to body — match dark admin + v2 Manage palette */
body.dark-theme .select2-dropdown.lives-reg-player-dropdown {
  background-color: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  color: #f8f9fa !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
body.dark-theme .select2-dropdown.lives-reg-player-dropdown .select2-search__field {
  background: #262626 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 4px;
  color: #f8f9fa !important;
}
body.dark-theme .select2-dropdown.lives-reg-player-dropdown .select2-results__option {
  color: #e8e8ed;
}
body.dark-theme .select2-dropdown.lives-reg-player-dropdown .select2-results__option--highlighted {
  background-color: #e31837 !important;
  color: #fff !important;
}
body.dark-theme .select2-dropdown.lives-reg-player-dropdown .select2-results__message {
  color: #999;
}

/* Light theme: dropdown aligned with sv2 Manage surfaces */
body:not(.dark-theme) .select2-dropdown.lives-reg-player-dropdown {
  background-color: #ffffff !important;
  border: 1px solid #d2d2d7 !important;
  color: #1d1d1f !important;
}
body:not(.dark-theme) .select2-dropdown.lives-reg-player-dropdown .select2-search__field {
  border: 1px solid #d2d2d7 !important;
  color: #1d1d1f !important;
  background: #fff !important;
}
body:not(.dark-theme) .select2-dropdown.lives-reg-player-dropdown .select2-results__option--highlighted {
  background-color: #e31837 !important;
  color: #fff !important;
}

/* Label above tournament select (base + v2 overrides) */
.sv2-tourny-select-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0 0 0.25rem 0;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .sv2-tourny-select-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sv2-muted);
  margin: 0 0 0.35rem 0;
}

/* Tournament selector (tourny_select) in Tournament overview */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_select.mainselectheaderstyle,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #select_header_div select.mainselectheaderstyle {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sv2-fg);
  background-color: var(--sv2-surface) !important;
  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='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 12px !important;
  border: 1px solid var(--sv2-border);
  border-radius: 6px;
  padding: 0.5rem 2rem 0.5rem 1rem;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.4;
  box-shadow: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_select.mainselectheaderstyle:hover,
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_select.mainselectheaderstyle:focus {
  border-color: var(--sv2-espn-red);
  outline: none;
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab #tourny_select.mainselectheaderstyle option {
  background: var(--sv2-surface);
  color: var(--sv2-fg);
}

/* Form inputs in Manage tab */
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab input[type="text"],
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab input[type="date"],
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab input[type="number"] {
  background: var(--sv2-surface);
  border-color: var(--sv2-border);
  color: var(--sv2-fg);
}
:is(#tourny_tab-2, #player-tournament-sv2).sv2-manage-tab .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--sv2-espn-red);
  border-color: var(--sv2-espn-red);
}

/* Player tournaments.html: #tourny_col wraps the v2 shell (Manage has #tourny_col inside the tab). */
#tourny_col > #player-tournament-sv2.sv2-manage-tab {
  background: transparent;
}
