/* ============================================================================
   SportMyLife — /football "2K Squads" Hall · Stadium 3D Luxury Polish
   File: football2kPolish.css (loaded after userCabinetLuxury.css in index.html)
   Covers: #teams, #era-nav-shell, #teams-why-11-callout, #era-tabs,
           #teams-world-picker-bar, #teams-quick-chips, #team-banner,
           #teams-subslide-tabs, #studio-lookbook-shell, Coach Card & Era Jumps,
           #active-player-strip, .roster-drawer, #active-player-dossier,
           .player-icon-dock.is-dossier-dock (3+2 Law #18 grid),
           .dossier-scout-grid & .dossier-weight-meter.
   Guarantees: 100% Law #17 feature preservation · 100% Law #18 capsule symmetry
               320px-1600px · Dark & Light parity · LTR & RTL · Zero overflow
   ============================================================================ */

/* ============================================================================
   0. FOUNDATION & BOX-SIZING GUARD
   ============================================================================ */
html body #teams,
html body #teams *,
html body #teams *::before,
html body #teams *::after {
  box-sizing: border-box;
}

html body #teams.teams-section.museum-slide {
  padding: 20px 0 40px;
  overflow-x: clip;
}

html body #teams .section-header-row {
  margin-bottom: 14px;
}

html body #teams .section-header-row h2 {
  letter-spacing: -0.01em;
}

/* ============================================================================
   1. STADIUM 3D ERA CONSOLE (#era-nav-shell), GOLD CTA & COLLAPSIBLE CALLOUT
   ============================================================================ */
html body #teams #era-nav-shell.era-nav-shell,
html[data-theme='dark'] body #teams #era-nav-shell.era-nav-shell {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 17px;
  margin-bottom: 14px;
  border-radius: 20px;
  background-color: #0b1611;
  background-image:
    radial-gradient(ellipse 64% 52% at 8% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 58% 48% at 92% 4%, rgba(230, 196, 115, 0.14) 0%, transparent 60%),
    linear-gradient(164deg, #101f17 0%, #0a1510 56%, #07100c 100%);
  border: 1px solid rgba(230, 196, 115, 0.30);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.44),
    0 4px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 248, 224, 0.18),
    inset 0 -1px 0 rgba(16, 185, 129, 0.16);
  color: #f4f1e8;
}

html[data-theme='light'] body #teams #era-nav-shell.era-nav-shell {
  background-color: #f8f9f4;
  background-image:
    radial-gradient(ellipse 66% 48% at 8% 0%, rgba(20, 110, 64, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 58% 46% at 92% 6%, rgba(196, 146, 38, 0.10) 0%, transparent 60%),
    linear-gradient(168deg, #ffffff 0%, #f7f9f3 56%, #eef3eb 100%);
  border: 1px solid rgba(20, 89, 54, 0.20);
  box-shadow:
    0 16px 38px rgba(13, 38, 25, 0.09),
    0 3px 10px rgba(13, 38, 25, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #102018;
}

html body #teams #era-nav-shell.era-nav-shell::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.08) 0%,
    rgba(16, 185, 129, 0.62) 22%,
    rgba(246, 220, 147, 0.92) 50%,
    rgba(16, 185, 129, 0.62) 78%,
    rgba(230, 196, 115, 0.08) 100%
  );
}

html body #teams #era-nav-shell .era-nav-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-width: 0;
}

html body #teams #era-nav-shell .era-nav-prompt {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 280px;
  color: #eef3ee;
}

html[data-theme='light'] body #teams #era-nav-shell .era-nav-prompt {
  color: #13251b;
}

html body #teams #era-nav-shell .era-nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #fff6d6 0%, #e6c473 58%, #10b981 100%);
  box-shadow: 0 0 0 3px rgba(230, 196, 115, 0.18), 0 0 12px rgba(230, 196, 115, 0.56);
}

html[data-theme='light'] body #teams #era-nav-shell .era-nav-dot {
  background: radial-gradient(circle at 35% 30%, #34d399 0%, #146c40 68%, #0d4528 100%);
  box-shadow: 0 0 0 3px rgba(20, 108, 64, 0.14), 0 0 10px rgba(20, 108, 64, 0.34);
}

/* Premium 3D Metallic Gold CTA Capsule (#teams-all-world-btn) */
html body #teams #teams-all-world-btn.era-allworld-gold-btn,
html[data-theme='dark'] body #teams #teams-all-world-btn.era-allworld-gold-btn,
html[data-theme='light'] body #teams #teams-all-world-btn.era-allworld-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0 !important;
  background: linear-gradient(135deg, #fce9a8 0%, #e6c166 48%, #c48d29 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #111610 !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 8px 22px rgba(196, 141, 41, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(120, 78, 12, 0.32) !important;
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

html body #teams #teams-all-world-btn.era-allworld-gold-btn:hover,
html[data-theme='light'] body #teams #teams-all-world-btn.era-allworld-gold-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
  box-shadow:
    0 12px 28px rgba(196, 141, 41, 0.42),
    0 3px 10px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body #teams #teams-all-world-btn.era-allworld-gold-btn:active {
  transform: translateY(0) scale(0.985);
}

html body #teams #teams-all-world-btn.era-allworld-gold-btn:focus-visible {
  outline: 2px solid #fce7a2;
  outline-offset: 2px;
}

/* Interactive Info Bar (#teams-why-11-callout) + Mobile Toggle (#sml-why-toggle) */
html body #teams #teams-why-11-callout.teams-why-callout,
html[data-theme='dark'] body #teams #teams-why-11-callout.teams-why-callout {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(230, 196, 115, 0.10) 0%, rgba(16, 42, 30, 0.56) 100%);
  border: 1px solid rgba(230, 196, 115, 0.28);
  border-inline-start: 3px solid #e6c473;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.10);
  font-size: 12.5px;
  line-height: 1.48;
  color: #cad5ce;
  min-width: 0;
  max-width: 100%;
}

html[data-theme='light'] body #teams #teams-why-11-callout.teams-why-callout {
  background: linear-gradient(150deg, rgba(252, 246, 226, 0.88) 0%, rgba(236, 246, 240, 0.92) 100%);
  border: 1px solid rgba(180, 130, 28, 0.28);
  border-inline-start: 3px solid #16603b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 3px 10px rgba(15, 42, 28, 0.04);
  color: #3d5044;
}

html body #teams #teams-why-11-callout .teams-why-badge,
html[data-theme='dark'] body #teams #teams-why-11-callout .teams-why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 3px 10px;
  margin-top: 1px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #fce7a2 0%, #d4a13c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #101711;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(212, 161, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme='light'] body #teams #teams-why-11-callout .teams-why-badge {
  background: linear-gradient(135deg, #1b6b42 0%, #10452a 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #fef3c7;
  box-shadow: 0 3px 10px rgba(16, 69, 42, 0.20), inset 0 0 0 1px rgba(246, 220, 147, 0.48);
}

html body #teams #teams-why-11-callout > p {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

html body #teams #teams-why-11-callout > p > strong {
  color: #faf7ef;
  font-weight: 700;
}

html[data-theme='light'] body #teams #teams-why-11-callout > p > strong {
  color: #0f2118;
}

html body #teams #teams-why-11-callout #teams-why-body {
  margin-inline-start: 4px;
}

/* Mobile Toggle Button (#sml-why-toggle) — hidden on desktop (>= 768px) */
html body #teams #teams-why-11-callout .sml-why-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, rgba(246, 220, 147, 0.22) 0%, rgba(16, 185, 129, 0.20) 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.56),
    0 3px 10px rgba(0, 0, 0, 0.24);
  color: #fce7a2;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

html[data-theme='light'] body #teams #teams-why-11-callout .sml-why-toggle {
  background: linear-gradient(135deg, #ffffff 0%, #eff5f0 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(20, 89, 54, 0.34),
    0 2px 8px rgba(15, 42, 28, 0.08);
  color: #134e30;
}

html body #teams #teams-why-11-callout .sml-why-toggle[aria-expanded='true'] {
  background: linear-gradient(135deg, #fce7a2 0%, #d4a13c 100%);
  box-shadow:
    0 4px 12px rgba(212, 161, 60, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #111610;
}

html[data-theme='light'] body #teams #teams-why-11-callout .sml-why-toggle[aria-expanded='true'] {
  background: linear-gradient(135deg, #1b6b42 0%, #10452a 100%);
  box-shadow:
    0 4px 12px rgba(16, 69, 42, 0.24),
    inset 0 0 0 1px rgba(246, 220, 147, 0.50);
  color: #ffffff;
}

html body #teams #teams-why-11-callout .sml-why-toggle:focus-visible {
  outline: 2px solid #e6c473;
  outline-offset: 2px;
}

html body #teams #teams-why-11-callout .sml-why-toggle-ico {
  width: 13px;
  height: 13px;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

html body #teams #teams-why-11-callout .sml-why-toggle[aria-expanded='true'] .sml-why-toggle-ico {
  transform: rotate(180deg);
}

/* ============================================================================
   2. 6 ERAS GRID (#era-tabs · 1872-2009) — SYMMETRIC 3D STADIUM GLASS CARDS
   ============================================================================ */
html body #teams #era-tabs.era-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 0 !important;
  width: 100%;
  min-width: 0;
}

html body #teams #era-tabs .era-tab-btn.era-tab-card,
html body #teams #era-tabs .era-tab,
html[data-theme='dark'] body #teams #era-tabs .era-tab-btn.era-tab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(22, 39, 30, 0.88) 0%, rgba(11, 22, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d4ded7;
  text-align: start;
  overflow: hidden;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme='light'] body #teams #era-tabs .era-tab-btn.era-tab-card,
html[data-theme='light'] body #teams #era-tabs .era-tab {
  background: linear-gradient(160deg, #ffffff 0%, #f3f6ee 100%);
  border: 1px solid rgba(20, 89, 54, 0.16);
  color: #16281e;
  box-shadow:
    0 4px 12px rgba(15, 38, 25, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html body #teams #era-tabs .era-tab-btn.era-tab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 196, 115, 0.56);
  background: linear-gradient(158deg, rgba(28, 52, 39, 0.94) 0%, rgba(14, 28, 20, 0.98) 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 248, 224, 0.18);
}

html[data-theme='light'] body #teams #era-tabs .era-tab-btn.era-tab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 89, 54, 0.42);
  background: linear-gradient(160deg, #ffffff 0%, #eaf3ec 100%);
  box-shadow:
    0 8px 20px rgba(16, 69, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Active Era Card — Stadium Emerald-Gold 3D Gradient (Law #18 border: 0) */
html body #teams #era-tabs .era-tab-btn.era-tab-card.is-active,
html[data-theme='dark'] body #teams #era-tabs .era-tab-btn.era-tab-card.is-active,
html[data-theme='light'] body #teams #era-tabs .era-tab-btn.era-tab-card.is-active {
  border: 0 !important;
  background: linear-gradient(142deg, #1d7045 0%, #11472b 58%, #0a2d1b 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 220, 147, 0.86),
    inset 0 1px 0 rgba(255, 250, 224, 0.38),
    0 10px 26px rgba(14, 72, 42, 0.36),
    0 0 16px rgba(230, 196, 115, 0.18) !important;
}

html body #teams #era-tabs .era-tab-card .tab-head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

html body #teams #era-tabs .era-tab-emblem {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.30);
}

html body #teams #era-tabs .era-tab-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.22;
  color: #f4f1e8;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme='light'] body #teams #era-tabs .era-tab-title {
  color: #102118;
}

html body #teams #era-tabs .era-tab-sub {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #9bb0a4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme='light'] body #teams #era-tabs .era-tab-sub {
  color: #4f6357;
}

html body #teams #era-tabs .era-tab-card.is-active .era-tab-title,
html[data-theme='light'] body #teams #era-tabs .era-tab-card.is-active .era-tab-title {
  color: #ffffff !important;
}

html body #teams #era-tabs .era-tab-card.is-active .era-tab-sub,
html[data-theme='light'] body #teams #era-tabs .era-tab-card.is-active .era-tab-sub {
  color: #f6dc93 !important;
}

html body #teams #era-tabs .era-tab-card .era-photo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 2px 7px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #fce7a2 0%, #d4a13c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #111610;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  box-shadow: 0 2px 8px rgba(212, 161, 60, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ============================================================================
   3. 684 TEAMS WORLD PICKER BAR & QUICK CHIPS (#teams-world-picker-bar)
   ============================================================================ */
html body #teams #teams-world-picker-bar.teams-world-picker-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 196, 115, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

html[data-theme='light'] body #teams #teams-world-picker-bar.teams-world-picker-bar {
  border-top-color: rgba(20, 89, 54, 0.14);
}

html body #teams #teams-world-picker-bar .teams-picker-inputs {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  min-width: 0;
}

html body #teams #teams-world-picker-bar .teams-picker-search-wrap {
  min-width: 0;
}

html body #teams #teams-custom-search.teams-custom-search,
html body #teams #teams-custom-select.teams-custom-select,
html[data-theme='dark'] body #teams #teams-custom-search.teams-custom-search,
html[data-theme='dark'] body #teams #teams-custom-select.teams-custom-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(230, 196, 115, 0.26);
  background: linear-gradient(160deg, rgba(11, 23, 17, 0.92) 0%, rgba(7, 15, 11, 0.96) 100%);
  color: #f4f1e8;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.34);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

html[data-theme='light'] body #teams #teams-custom-search.teams-custom-search,
html[data-theme='light'] body #teams #teams-custom-select.teams-custom-select {
  border: 1px solid rgba(20, 89, 54, 0.22);
  background: linear-gradient(160deg, #ffffff 0%, #f4f7f1 100%);
  color: #102118;
  box-shadow: inset 0 1px 3px rgba(15, 38, 25, 0.06), 0 2px 6px rgba(15, 38, 25, 0.03);
}

html body #teams #teams-custom-search::placeholder {
  color: rgba(186, 206, 194, 0.72);
}

html[data-theme='light'] body #teams #teams-custom-search::placeholder {
  color: #64766b;
}

html body #teams #teams-custom-search:focus,
html body #teams #teams-custom-select:focus {
  border-color: #f0c96f;
  box-shadow: 0 0 0 3px rgba(230, 196, 115, 0.24), inset 0 2px 5px rgba(0, 0, 0, 0.30);
}

html[data-theme='light'] body #teams #teams-custom-search:focus,
html[data-theme='light'] body #teams #teams-custom-select:focus {
  border-color: #16603b;
  box-shadow: 0 0 0 3px rgba(22, 96, 59, 0.16), 0 2px 8px rgba(15, 38, 25, 0.05);
}

/* Quick Club Chips (#teams-quick-chips) */
html body #teams #teams-quick-chips.teams-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

html body #teams #teams-quick-chips .teams-quick-chip,
html[data-theme='dark'] body #teams #teams-quick-chips .teams-quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(158deg, rgba(20, 36, 27, 0.90) 0%, rgba(11, 21, 16, 0.96) 100%);
  color: #d8e3dc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

html[data-theme='light'] body #teams #teams-quick-chips .teams-quick-chip {
  border: 1px solid rgba(20, 89, 54, 0.18);
  background: linear-gradient(158deg, #ffffff 0%, #f1f5ed 100%);
  color: #163022;
  box-shadow: 0 2px 8px rgba(15, 38, 25, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html body #teams #teams-quick-chips .teams-quick-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 196, 115, 0.62);
  color: #fce7a2;
}

html[data-theme='light'] body #teams #teams-quick-chips .teams-quick-chip:hover {
  transform: translateY(-1px);
  border-color: #16603b;
  background: #eaf4ee;
  color: #0e4227;
}

html body #teams #teams-quick-chips .teams-quick-chip.is-active,
html[data-theme='light'] body #teams #teams-quick-chips .teams-quick-chip.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #1d7045 0%, #0f4429 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.68),
    0 5px 14px rgba(15, 68, 41, 0.28) !important;
}

/* ============================================================================
   4. TEAM BANNER (#team-banner) & SUB-SLIDE COCKPIT (#teams-subslide-tabs)
   ============================================================================ */
html body #teams #team-banner.team-banner,
html[data-theme='dark'] body #teams #team-banner.team-banner {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 56% 68% at 96% 8%, rgba(230, 196, 115, 0.14) 0%, transparent 64%),
    linear-gradient(148deg, #122119 0%, #0a140f 100%);
  border: 1px solid rgba(230, 196, 115, 0.28);
  border-left: 1px solid rgba(230, 196, 115, 0.28);
  border-inline-start: 4px solid #e6c473;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 248, 224, 0.14);
  color: #f4f1e8;
}

html[data-theme='light'] body #teams #team-banner.team-banner {
  background:
    radial-gradient(ellipse 58% 68% at 96% 8%, rgba(196, 146, 38, 0.11) 0%, transparent 64%),
    linear-gradient(155deg, #ffffff 0%, #f6f8f2 60%, #edf3ea 100%);
  border: 1px solid rgba(20, 89, 54, 0.18);
  border-left: 1px solid rgba(20, 89, 54, 0.18);
  border-inline-start: 4px solid #16603b;
  box-shadow:
    0 12px 30px rgba(15, 38, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #102118;
}

html[dir='rtl'] body #teams #team-banner.team-banner {
  border-left-width: 1px;
  border-right-width: 4px;
}

html body #teams #team-banner .formation-badge,
html[data-theme='dark'] body #teams #team-banner .formation-badge {
  padding: 10px 15px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(10, 20, 15, 0.90) 0%, rgba(6, 12, 9, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.42);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 248, 224, 0.12);
  min-width: 0;
}

html[data-theme='light'] body #teams #team-banner .formation-badge {
  background: linear-gradient(160deg, #ffffff 0%, #f1f6ee 100%);
  border: 1px solid rgba(20, 89, 54, 0.24);
  box-shadow: 0 4px 12px rgba(15, 38, 25, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html body #teams #team-banner .formation-badge strong {
  color: #f3d383;
}

html[data-theme='light'] body #teams #team-banner .formation-badge strong {
  color: #135534;
}

/* Segmented 2-Tab Sub-Slide Switcher (#teams-subslide-tabs) */
html body #teams #teams-subslide-tabs.subslide-bar,
html[data-theme='dark'] body #teams #teams-subslide-tabs.subslide-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(8, 16, 12, 0.86);
  border: 1px solid rgba(230, 196, 115, 0.24);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.36);
}

html[data-theme='light'] body #teams #teams-subslide-tabs.subslide-bar {
  background: #e9efe7;
  border: 1px solid rgba(20, 89, 54, 0.18);
  box-shadow: inset 0 1px 4px rgba(15, 38, 25, 0.09);
}

html body #teams #teams-subslide-tabs .subslide-btn,
html[data-theme='dark'] body #teams #teams-subslide-tabs .subslide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #b7c6bd;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme='light'] body #teams #teams-subslide-tabs .subslide-btn {
  background: transparent;
  border-color: transparent;
  color: #364b3e;
}

html body #teams #teams-subslide-tabs .subslide-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

html[data-theme='light'] body #teams #teams-subslide-tabs .subslide-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.70);
  color: #102418;
}

html body #teams #teams-subslide-tabs .subslide-btn.is-active,
html[data-theme='dark'] body #teams #teams-subslide-tabs .subslide-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #fce7a2 0%, #e0b656 54%, #c48d29 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #101610 !important;
  font-weight: 800;
  box-shadow:
    0 6px 18px rgba(196, 141, 41, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html[data-theme='light'] body #teams #teams-subslide-tabs .subslide-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #1d7045 0%, #10452a 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.54),
    0 6px 16px rgba(16, 69, 42, 0.24) !important;
}

/* ============================================================================
   5. STUDIO SHELL, COACH CARD (#pitch-coach-token) & ERA JUMPS
   ============================================================================ */
html body #teams #studio-lookbook-shell.studio-lookbook-shell,
html[data-theme='dark'] body #teams #studio-lookbook-shell.studio-lookbook-shell {
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(ellipse 62% 36% at 50% 0%, rgba(230, 196, 115, 0.08) 0%, transparent 62%),
    linear-gradient(170deg, #101d16 0%, #09120d 100%);
  border: 1px solid rgba(230, 196, 115, 0.24);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 248, 224, 0.14);
}

html[data-theme='light'] body #teams #studio-lookbook-shell.studio-lookbook-shell {
  background: linear-gradient(172deg, #ffffff 0%, #f5f8f2 100%);
  border: 1px solid rgba(20, 89, 54, 0.18);
  box-shadow:
    0 16px 40px rgba(15, 38, 25, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* Pitch Panel Luxury Framing */
html body #teams .studio-main-grid > .pitch-panel,
html[data-theme='dark'] body #teams .studio-main-grid > .pitch-panel {
  border-radius: 16px;
  background: linear-gradient(170deg, #122119 0%, #0b1510 100%);
  border: 1px solid rgba(230, 196, 115, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 248, 224, 0.10);
}

html[data-theme='light'] body #teams .studio-main-grid > .pitch-panel {
  background: linear-gradient(170deg, #fbfcf8 0%, #eff4ec 100%);
  border: 1px solid rgba(20, 89, 54, 0.18);
  box-shadow: 0 10px 24px rgba(15, 38, 25, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Coach Card (.tactical-note-box) */
html body #teams .pitch-panel .tactical-note-box,
html[data-theme='dark'] body #teams .pitch-panel .tactical-note-box {
  position: relative;
  overflow: hidden;
  padding: 13px 13px 12px;
  border-radius: 15px;
  background: linear-gradient(158deg, rgba(18, 34, 25, 0.92) 0%, rgba(9, 17, 13, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.28);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 248, 224, 0.14);
}

html[data-theme='light'] body #teams .pitch-panel .tactical-note-box {
  background: linear-gradient(160deg, #ffffff 0%, #f4f7f0 100%);
  border: 1px solid rgba(20, 89, 54, 0.20);
  box-shadow:
    0 8px 20px rgba(15, 38, 25, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #teams .pitch-panel .tactical-note-box::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 115, 0.72), rgba(16, 185, 129, 0.56), transparent);
  pointer-events: none;
}

html body #teams .pitch-panel .note-row {
  gap: 6px;
  margin-bottom: 9px;
}

html body #teams .pitch-panel .note-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c473;
}

html[data-theme='light'] body #teams .pitch-panel .note-label {
  color: #8f6510;
}

/* Coach Token Button (#pitch-coach-token) & 3D Gold-Bronze Shield Medallion (.coach-badge-tr) */
html body #teams #pitch-coach-token.pitch-coach-btn,
html[data-theme='dark'] body #teams #pitch-coach-token.pitch-coach-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin-top: 0;
  padding: 7px 11px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(26, 46, 35, 0.88) 0%, rgba(12, 24, 18, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.36);
  color: #faf7ef;
  text-align: start;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 248, 224, 0.14);
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[data-theme='light'] body #teams #pitch-coach-token.pitch-coach-btn {
  background: linear-gradient(155deg, #ffffff 0%, #f3f6ee 100%);
  border: 1px solid rgba(163, 114, 24, 0.34);
  color: #102118;
  box-shadow: 0 4px 12px rgba(15, 38, 25, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #teams #pitch-coach-token.pitch-coach-btn:hover {
  transform: translateY(-1px);
  border-color: #f3d383;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(243, 211, 131, 0.24);
}

html[data-theme='light'] body #teams #pitch-coach-token.pitch-coach-btn:hover {
  border-color: #16603b;
  background: linear-gradient(155deg, #ffffff 0%, #e9f4ee 100%);
  box-shadow: 0 6px 16px rgba(16, 69, 42, 0.12);
}

html body #teams #pitch-coach-token.pitch-coach-btn.is-active,
html[data-theme='light'] body #teams #pitch-coach-token.pitch-coach-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #1d7045 0%, #10452a 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 220, 147, 0.84),
    0 8px 20px rgba(16, 69, 42, 0.34) !important;
}

html body #teams #pitch-coach-token .coach-badge-tr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px 8px 11px 11px;
  border: 0;
  background: linear-gradient(148deg, #fff1be 0%, #e4b856 46%, #9f6d1b 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #14110a;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(168, 114, 24, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(88, 56, 8, 0.42);
}

html body #teams #pitch-coach-token #pitch-coach-name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #teams .pitch-panel #pitch-formation-note.note-desc {
  margin: 0 0 11px;
  font-size: 12px;
  line-height: 1.46;
  color: #b9c8bf;
}

html[data-theme='light'] body #teams .pitch-panel #pitch-formation-note.note-desc {
  color: #465a4e;
}

/* Symmetrical 2-Column Era Jumps (#jump-to-era-ball & #jump-to-era-kit) */
html body #teams .pitch-panel .era-museum-jumps {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
}

html body #teams .pitch-panel .era-museum-jumps .jump-pill,
html[data-theme='dark'] body #teams .pitch-panel .era-museum-jumps .jump-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 0 !important;
  background: linear-gradient(155deg, rgba(28, 52, 39, 0.92) 0%, rgba(14, 28, 20, 0.96) 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.44),
    inset 0 1px 0 rgba(255, 248, 224, 0.16),
    0 5px 14px rgba(0, 0, 0, 0.24);
  color: #f6dc93;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

html[data-theme='light'] body #teams .pitch-panel .era-museum-jumps .jump-pill {
  background: linear-gradient(155deg, #ffffff 0%, #edf4ee 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(20, 89, 54, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 3px 10px rgba(15, 38, 25, 0.06);
  color: #135031;
}

html body #teams .pitch-panel .era-museum-jumps .jump-pill > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #teams .pitch-panel .era-museum-jumps .jump-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fce7a2 0%, #d4a13c 100%);
  box-shadow:
    0 7px 18px rgba(212, 161, 60, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #111610;
}

html[data-theme='light'] body #teams .pitch-panel .era-museum-jumps .jump-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1d7045 0%, #10452a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.56),
    0 6px 16px rgba(16, 69, 42, 0.24);
  color: #ffffff;
}

/* ============================================================================
   6. ACTIVE PLAYER STRIP (#active-player-strip) — DESKTOP & MOBILE SYMMETRY FIX
   ============================================================================ */
html body #teams #active-player-strip.active-player-strip,
html[data-theme='dark'] body #teams #active-player-strip.active-player-strip {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
  margin-top: 16px;
  padding: 16px 20px !important;
  border-radius: 18px;
  background-color: #0b1611;
  background-image:
    radial-gradient(ellipse 52% 80% at 6% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 46% 75% at 96% 100%, rgba(230, 196, 115, 0.14) 0%, transparent 64%),
    linear-gradient(154deg, rgba(16, 31, 23, 0.96) 0%, rgba(8, 16, 12, 0.99) 100%);
  border: 1px solid rgba(230, 196, 115, 0.30);
  border-left: 1px solid rgba(230, 196, 115, 0.30);
  border-inline-start: 3.5px solid #e6c473;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 248, 224, 0.18),
    inset 0 -1px 0 rgba(16, 185, 129, 0.16);
  color: #f4f1e8;
  min-width: 0;
  max-width: 100%;
}

html[data-theme='light'] body #teams #active-player-strip.active-player-strip {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 52% 76% at 6% 0%, rgba(20, 110, 64, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 48% 72% at 96% 100%, rgba(196, 146, 38, 0.10) 0%, transparent 62%),
    linear-gradient(156deg, #ffffff 0%, #f6f9f3 58%, #eef4ec 100%);
  border: 1px solid rgba(20, 89, 54, 0.22);
  border-left: 1px solid rgba(20, 89, 54, 0.22);
  border-inline-start: 3.5px solid #16603b;
  box-shadow:
    0 14px 32px rgba(15, 38, 25, 0.10),
    0 2px 8px rgba(15, 38, 25, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #102118;
}

html[dir='rtl'] body #teams #active-player-strip.active-player-strip {
  border-left-width: 1px;
  border-right-width: 3.5px;
}

html body #teams #active-player-strip.active-player-strip::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.10) 0%,
    rgba(16, 185, 129, 0.56) 24%,
    rgba(246, 220, 147, 0.90) 52%,
    rgba(16, 185, 129, 0.56) 80%,
    rgba(230, 196, 115, 0.10) 100%
  );
}

html body #teams #active-player-strip .active-strip-info {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html body #teams #active-player-strip .active-strip-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  min-width: 0;
}

html body #teams #active-strip-badge.active-strip-badge,
html[data-theme='light'] body #teams #active-strip-badge.active-strip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0 !important;
  background: linear-gradient(135deg, #fce9a8 0%, #e0b656 52%, #c28b27 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #111610 !important;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(194, 139, 39, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html body #teams #active-strip-name.active-strip-name {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  min-width: 0;
  flex: 1 1 auto;
}

html[data-theme='light'] body #teams #active-strip-name.active-strip-name {
  color: #0e2017;
}

html body #teams #active-strip-scenario.active-strip-scenario {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: #c2d1c8;
}

html[data-theme='light'] body #teams #active-strip-scenario.active-strip-scenario {
  color: #415549;
}

/* Recessed Stadium Scrub Progress Track */
html body #teams #scrub-progress-track.scrub-progress-track,
html[data-theme='dark'] body #teams #scrub-progress-track.scrub-progress-track {
  margin-top: 4px;
  width: 100%;
  max-width: 580px;
  height: 8px;
  border-radius: 999px;
  background: rgba(5, 11, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  cursor: ew-resize;
  transition: height 0.16s ease, border-color 0.16s ease;
}

html[data-theme='light'] body #teams #scrub-progress-track.scrub-progress-track {
  background: #dce5dc;
  border: 1px solid rgba(20, 89, 54, 0.14);
  box-shadow: inset 0 2px 4px rgba(15, 38, 25, 0.14);
}

html body #teams #scrub-progress-track.scrub-progress-track:hover {
  height: 10px;
  border-color: rgba(230, 196, 115, 0.54);
}

html body #teams #scrub-progress-fill.scrub-progress-fill,
html[data-theme='light'] body #teams #scrub-progress-fill.scrub-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 36%, #e6c473 78%, #fce9a8 100%) !important;
  box-shadow: 0 0 12px rgba(230, 196, 115, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* Active Strip Controls: Dot Rail + Full Squad Capsule */
html body #teams #active-player-strip .active-strip-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

html body #teams #studio-dot-rail.studio-dot-rail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

html body #teams #studio-dot-rail .dot-rail-btn,
html[data-theme='dark'] body #teams #studio-dot-rail .dot-rail-btn {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(240, 234, 218, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme='light'] body #teams #studio-dot-rail .dot-rail-btn {
  background: rgba(20, 74, 46, 0.22);
  box-shadow: inset 0 0 0 1px rgba(20, 74, 46, 0.16);
}

html body #teams #studio-dot-rail .dot-rail-btn:hover {
  background: rgba(246, 220, 147, 0.68);
}

html[data-theme='light'] body #teams #studio-dot-rail .dot-rail-btn:hover {
  background: rgba(20, 89, 54, 0.56);
}

html body #teams #studio-dot-rail .dot-rail-btn.is-active,
html[data-theme='light'] body #teams #studio-dot-rail .dot-rail-btn.is-active {
  width: 26px !important;
  height: 8px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #10b981 0%, #e6c473 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  box-shadow: 0 0 10px rgba(230, 196, 115, 0.52), 0 2px 6px rgba(16, 185, 129, 0.30) !important;
}

/* Roster Drawer Toggle Button (#roster-drawer-toggle) */
html body #teams #roster-drawer-toggle.roster-drawer-btn,
html[data-theme='dark'] body #teams #roster-drawer-toggle.roster-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0 !important;
  background: linear-gradient(135deg, #19633d 0%, #0e3a23 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #faf7ef !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.15s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[data-theme='light'] body #teams #roster-drawer-toggle.roster-drawer-btn {
  border: 0 !important;
  background: linear-gradient(135deg, #1b6b42 0%, #10452a 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(16, 69, 42, 0.24) !important;
}

html body #teams #roster-drawer-toggle.roster-drawer-btn .ui-icon {
  color: #f6dc93;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}

html body #teams #roster-drawer-toggle.roster-drawer-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.84),
    0 9px 22px rgba(16, 69, 42, 0.34) !important;
}

html body #teams #roster-drawer-toggle.roster-drawer-btn[aria-expanded='true'],
html[data-theme='light'] body #teams #roster-drawer-toggle.roster-drawer-btn[aria-expanded='true'] {
  background: linear-gradient(135deg, #fce7a2 0%, #e0b656 54%, #c48d29 100%) !important;
  color: #111610 !important;
  box-shadow:
    0 8px 20px rgba(196, 141, 41, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body #teams #roster-drawer-toggle.roster-drawer-btn[aria-expanded='true'] .ui-icon,
html[data-theme='light'] body #teams #roster-drawer-toggle.roster-drawer-btn[aria-expanded='true'] .ui-icon {
  color: #111610;
}

/* Roster Drawer Harmonization (#roster-drawer) */
html body #teams #roster-drawer.roster-drawer {
  margin-top: 12px;
}

html body #teams #roster-drawer .pose-tester-strip,
html[data-theme='dark'] body #teams #roster-drawer .pose-tester-strip {
  padding: 13px 15px;
  border-radius: 15px;
  background: linear-gradient(158deg, rgba(16, 30, 22, 0.90) 0%, rgba(9, 17, 13, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.10);
}

html[data-theme='light'] body #teams #roster-drawer .pose-tester-strip {
  background: linear-gradient(160deg, #ffffff 0%, #f4f7f0 100%);
  border: 1px solid rgba(20, 89, 54, 0.18);
  box-shadow: 0 4px 12px rgba(15, 38, 25, 0.05);
}

html body #teams #roster-drawer .pose-pill-btn.is-active,
html[data-theme='light'] body #teams #roster-drawer .pose-pill-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #1d7045 0%, #10452a 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(246, 220, 147, 0.62);
}

html body #teams #roster-drawer .filmstrip-item {
  border-radius: 11px;
  padding: 8px 6px;
}

html body #teams #roster-drawer .filmstrip-item.is-active {
  border-color: #e6c473;
  box-shadow: 0 0 0 1px rgba(230, 196, 115, 0.42) inset;
}

html[data-theme='light'] body #teams #roster-drawer .filmstrip-item.is-active {
  background: linear-gradient(145deg, #eaf5ee 0%, #fbf3dc 100%);
  border-color: #16603b;
  box-shadow: 0 0 0 1px rgba(22, 96, 59, 0.34) inset;
}

/* ============================================================================
   7. STADIUM COLLECTOR'S DOSSIER (#active-player-dossier.is-collector-3col)
   ============================================================================ */
html body #teams .dossier-panel-wrap.carousel-panel,
html[data-theme='dark'] body #teams .dossier-panel-wrap.carousel-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(168deg, #0f1c15 0%, #08110c 100%);
  border: 1px solid rgba(230, 196, 115, 0.24);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 248, 224, 0.12);
}

html[data-theme='light'] body #teams .dossier-panel-wrap.carousel-panel {
  background: linear-gradient(168deg, #ffffff 0%, #f5f8f2 100%);
  border: 1px solid rgba(20, 89, 54, 0.18);
  box-shadow: 0 14px 36px rgba(15, 38, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #teams #active-player-dossier.active-player-dossier.is-collector-3col,
html[data-theme='dark'] body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background-color: #0b1611;
  background-image:
    radial-gradient(ellipse 46% 64% at 4% 0%, rgba(230, 196, 115, 0.13) 0%, transparent 62%),
    radial-gradient(ellipse 48% 68% at 96% 100%, rgba(16, 185, 129, 0.14) 0%, transparent 64%),
    linear-gradient(155deg, rgba(18, 32, 24, 0.96) 0%, rgba(9, 16, 12, 0.99) 100%);
  border: 1px solid rgba(230, 196, 115, 0.34);
  border-left: 1px solid rgba(230, 196, 115, 0.34);
  border-inline-start: 3.5px solid #e6c473;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 248, 224, 0.16);
  color: #f4f1e8;
  display: grid;
  grid-template-columns: 168px minmax(0, 1.32fr) minmax(276px, 0.96fr);
  gap: 20px;
  align-items: start;
}

html[data-theme='light'] body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
  background-color: #fbfcf8;
  background-image:
    radial-gradient(ellipse 48% 62% at 4% 0%, rgba(196, 146, 38, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 46% 66% at 96% 100%, rgba(20, 110, 64, 0.08) 0%, transparent 62%),
    linear-gradient(158deg, #ffffff 0%, #f8f9f3 56%, #eff3eb 100%);
  border: 1px solid rgba(180, 130, 28, 0.30);
  border-left: 1px solid rgba(180, 130, 28, 0.30);
  border-inline-start: 3.5px solid #16603b;
  box-shadow:
    0 12px 30px rgba(15, 38, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #102118;
}

html[dir='rtl'] body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
  border-left-width: 1px;
  border-right-width: 3.5px;
}

html body #teams #active-player-dossier.is-collector-3col::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.14) 0%,
    rgba(246, 220, 147, 0.88) 38%,
    rgba(16, 185, 129, 0.68) 72%,
    rgba(230, 196, 115, 0.10) 100%
  );
}

/* Media Column */
html body #teams #active-player-dossier .dossier-col-media {
  gap: 10px;
}

html body #teams #active-player-dossier .dossier-portrait-frame {
  width: 156px;
  height: 184px;
  border-radius: 16px;
  border: 1.5px solid rgba(230, 196, 115, 0.54);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 248, 224, 0.12) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-portrait-frame {
  border-color: rgba(180, 130, 28, 0.56);
  box-shadow:
    0 12px 26px rgba(15, 38, 25, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

html body #teams #active-player-dossier .dossier-portrait-frame:not(.is-jersey-frame):hover {
  transform: translateY(-2px);
  border-color: #fce7a2;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(230, 196, 115, 0.28);
}

html body #teams #active-player-dossier .dossier-media-num {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.90);
  border: 1px solid rgba(246, 220, 147, 0.72);
  color: #fce7a2;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.44);
}

html body #teams #active-player-dossier .dossier-weight-chip,
html body #teams #active-player-dossier .dossier-num-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 196, 115, 0.28);
  color: #e2ebe5;
  font-size: 11px;
  font-weight: 700;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-chip,
html[data-theme='light'] body #teams #active-player-dossier .dossier-num-chip {
  background: #ffffff;
  border-color: rgba(20, 89, 54, 0.20);
  color: #163022;
  box-shadow: 0 2px 6px rgba(15, 38, 25, 0.05);
}

/* Main Bio Column */
html body #teams #active-player-dossier .dossier-col-main {
  gap: 9px;
}

html body #teams #active-player-dossier .dossier-head {
  gap: 6px 12px;
  align-items: center;
}

html body #teams #active-player-dossier .dossier-head h4 {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.16;
  color: #ffffff;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-head h4 {
  color: #0e2017;
}

html body #teams #active-player-dossier .dossier-gold-subtitle {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 196, 115, 0.14);
  border: 1px solid rgba(230, 196, 115, 0.38);
  color: #f6dc93;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-gold-subtitle {
  background: rgba(180, 130, 28, 0.12);
  border-color: rgba(180, 130, 28, 0.34);
  color: #7c560d;
}

html body #teams #active-player-dossier .dossier-highlight {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.44;
  color: #f3d383;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-highlight {
  color: #8c6010;
}

html body #teams #active-player-dossier .dossier-bio {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.56;
  color: #cad5ce;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-bio {
  color: #36493d;
}

html body #teams #active-player-dossier .dossier-clubs-line {
  padding: 7px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  line-height: 1.44;
  color: #d6e1da;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-clubs-line {
  background: rgba(20, 89, 54, 0.05);
  border-color: rgba(20, 89, 54, 0.14);
  color: #21362a;
}

html body #teams #active-player-dossier .dossier-clubs-line small {
  color: #f3d383;
  font-weight: 700;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-clubs-line small {
  color: #16603b;
}

html body #teams #active-player-dossier .dossier-wiki-extra {
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(10, 20, 15, 0.72);
  border: 1px solid rgba(230, 196, 115, 0.24);
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-wiki-extra {
  background: #f3f6ee;
  border-color: rgba(20, 89, 54, 0.18);
}

/* ============================================================================
   8. DOSSIER ACTION DOCK — 3+2 LAW #18 SYMMETRICAL 6-COLUMN GRID
   ============================================================================ */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-top: 8px !important;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, filter 0.16s ease;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn .dock-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn:hover {
  transform: translateY(-1.5px);
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn:active {
  transform: translateY(0) scale(0.985);
}

/* Row 1: 3 Equal Utility Pills (each grid-column: span 2) */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt,
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info,
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro {
  grid-column: span 2 !important;
}

/* Row 2: 2 Equal Prev / Next Step Pills (each grid-column: span 3 -> 50% / 50%) */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step {
  grid-column: span 3 !important;
}

/* 8a. YouTube — 3D Crimson-Glass Capsule */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt {
  background: linear-gradient(152deg, rgba(185, 28, 28, 0.30) 0%, rgba(105, 14, 20, 0.48) 100%) !important;
  color: #fecaca !important;
  box-shadow:
    inset 0 0 0 1px rgba(248, 113, 113, 0.56),
    inset 0 1px 0 rgba(254, 226, 226, 0.18),
    0 5px 14px rgba(127, 29, 29, 0.28) !important;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt:hover,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 8px 20px rgba(220, 38, 38, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt {
  background: linear-gradient(152deg, #fff5f5 0%, #fee2e2 100%) !important;
  color: #b91c1c !important;
  box-shadow:
    inset 0 0 0 1px rgba(185, 28, 28, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 4px 12px rgba(185, 28, 28, 0.10) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-yt:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 7px 18px rgba(185, 28, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* 8b. Info / Wiki — 3D Champagne-Gold Glass Capsule */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info {
  background: linear-gradient(152deg, rgba(230, 196, 115, 0.22) 0%, rgba(145, 102, 24, 0.32) 100%) !important;
  color: #fce7a2 !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.54),
    inset 0 1px 0 rgba(255, 250, 224, 0.20),
    0 5px 14px rgba(0, 0, 0, 0.26) !important;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info:hover,
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info.is-active,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info.is-active {
  background: linear-gradient(135deg, #fce9a8 0%, #e0b656 54%, #c48d29 100%) !important;
  color: #111610 !important;
  box-shadow:
    0 8px 20px rgba(212, 161, 60, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info {
  background: linear-gradient(152deg, #fffdf4 0%, #f7ebd0 100%) !important;
  color: #7c560d !important;
  box-shadow:
    inset 0 0 0 1px rgba(163, 114, 24, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 12px rgba(163, 114, 24, 0.10) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info:hover,
html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-info.is-active {
  background: linear-gradient(135deg, #f3d383 0%, #c8922c 100%) !important;
  color: #111610 !important;
  box-shadow:
    0 7px 18px rgba(180, 130, 28, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

/* 8c. Macro 2.5x — 3D Stadium-Emerald Glass Capsule */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro {
  background: linear-gradient(152deg, rgba(16, 185, 129, 0.24) 0%, rgba(12, 74, 46, 0.46) 100%) !important;
  color: #a7f3d0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 183, 0.52),
    inset 0 1px 0 rgba(209, 250, 229, 0.18),
    0 5px 14px rgba(6, 78, 59, 0.28) !important;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro:hover,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro:hover {
  background: linear-gradient(135deg, #10b981 0%, #0f5c3a 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 8px 20px rgba(16, 185, 129, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro {
  background: linear-gradient(152deg, #f0fdf7 0%, #d9f3e7 100%) !important;
  color: #124f30 !important;
  box-shadow:
    inset 0 0 0 1px rgba(20, 89, 54, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 4px 12px rgba(20, 89, 54, 0.10) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-macro:hover {
  background: linear-gradient(135deg, #1b6b42 0%, #0f4429 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 7px 18px rgba(16, 69, 42, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

/* 8d. Prev / Next Step Controls (50% / 50%) — Luxury 3D Cockpit Controls */
html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step {
  background: linear-gradient(155deg, rgba(22, 42, 32, 0.94) 0%, rgba(10, 21, 16, 0.98) 100%) !important;
  color: #f6dc93 !important;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.40),
    inset 0 1px 0 rgba(255, 248, 224, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.30) !important;
}

html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step:hover,
html[data-theme='dark'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step:hover {
  background: linear-gradient(135deg, #1d7045 0%, #10452a 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.72),
    0 8px 20px rgba(16, 69, 42, 0.34) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step {
  background: linear-gradient(155deg, #ffffff 0%, #ecf4ee 100%) !important;
  color: #11472c !important;
  box-shadow:
    inset 0 0 0 1px rgba(20, 89, 54, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 4px 12px rgba(15, 38, 25, 0.07) !important;
}

html[data-theme='light'] body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn.is-step:hover {
  background: linear-gradient(135deg, #1b6b42 0%, #0f4429 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.58),
    0 7px 16px rgba(16, 69, 42, 0.24) !important;
}

/* ============================================================================
   9. TELEMETRY COLUMN — 4 EQUAL SPEC CARDS & 3D EQUIPMENT WEIGHT METER
   ============================================================================ */
html body #teams #active-player-dossier .dossier-col-telemetry {
  padding-inline-start: 18px;
  padding-inline-end: 0;
  border-left: 0;
  border-right: 0;
  border-inline-start: 1px solid rgba(230, 196, 115, 0.20);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-col-telemetry {
  border-inline-start-color: rgba(20, 89, 54, 0.16);
}

html body #teams #active-player-dossier .dossier-scout-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100%;
  min-width: 0;
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell,
html[data-theme='dark'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 76px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(20, 36, 27, 0.88) 0%, rgba(10, 19, 14, 0.95) 100%);
  border: 1px solid rgba(230, 196, 115, 0.22);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 248, 224, 0.10);
  transition: border-color 0.18s ease, transform 0.16s ease;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell {
  background: linear-gradient(158deg, #ffffff 0%, #f3f7ef 100%);
  border: 1px solid rgba(20, 89, 54, 0.16);
  box-shadow:
    0 5px 14px rgba(15, 38, 25, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.72) 0%, rgba(230, 196, 115, 0.88) 50%, rgba(16, 185, 129, 0.72) 100%);
  pointer-events: none;
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell:hover {
  border-color: rgba(230, 196, 115, 0.48);
  transform: translateY(-1px);
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell:hover {
  border-color: rgba(20, 89, 54, 0.36);
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #e6c473;
  min-width: 0;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell small {
  color: #8b6010;
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell small::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #34d399 0%, #e6c473 100%);
  box-shadow: 0 0 6px rgba(230, 196, 115, 0.62);
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell small::before {
  background: #16603b;
  box-shadow: 0 0 0 2px rgba(22, 96, 59, 0.14);
}

html body #teams #active-player-dossier .dossier-scout-grid .scout-cell strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #f8fafc;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-scout-grid .scout-cell strong {
  color: #0f2118;
}

/* Luxury 3D Equipment Weight Telemetry Meter (.dossier-weight-meter) */
html body #teams #active-player-dossier .dossier-weight-meter,
html[data-theme='dark'] body #teams #active-player-dossier .dossier-weight-meter {
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(156deg, rgba(19, 36, 27, 0.92) 0%, rgba(9, 18, 13, 0.97) 100%);
  border: 1px solid rgba(230, 196, 115, 0.30);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 248, 224, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-meter {
  background: linear-gradient(158deg, #ffffff 0%, #f1f6ee 100%);
  border: 1px solid rgba(20, 89, 54, 0.22);
  box-shadow:
    0 6px 18px rgba(15, 38, 25, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #teams #active-player-dossier .dossier-weight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #d0ddd5;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-head {
  color: #2c4135;
}

html body #teams #active-player-dossier .dossier-weight-head strong,
html[data-theme='dark'] body #teams #active-player-dossier .dossier-weight-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #fce9a8 0%, #e0b656 54%, #c48d29 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #101610;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(196, 141, 41, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-head strong {
  background: linear-gradient(135deg, #1b6b42 0%, #10452a 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(246, 220, 147, 0.56), 0 3px 10px rgba(16, 69, 42, 0.22);
}

html body #teams #active-player-dossier .dossier-weight-track,
html[data-theme='dark'] body #teams #active-player-dossier .dossier-weight-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(5, 11, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-track {
  background: #dae3da;
  border: 1px solid rgba(20, 89, 54, 0.14);
  box-shadow: inset 0 2px 4px rgba(15, 38, 25, 0.16);
}

html body #teams #active-player-dossier .dossier-weight-fill,
html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 36%, #e6c473 78%, #fce9a8 100%) !important;
  box-shadow:
    0 0 12px rgba(230, 196, 115, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  transition: width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

html body #teams #active-player-dossier .dossier-weight-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #a5b8ad;
}

html[data-theme='light'] body #teams #active-player-dossier .dossier-weight-note {
  color: #4f6357;
}

/* ============================================================================
   10. RESPONSIVE BREAKPOINTS (1179px · 1039px · 920px · 767px · 520px · 380px)
   ============================================================================ */

/* Tablet Landscape (768px - 1179px): 3-Column Era Tabs */
@media (max-width: 1179px) {
  html body #teams #era-tabs.era-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Collector Dossier 2-Column Mid-Viewport (720px - 1039px) */
@media (max-width: 1039px) and (min-width: 720px) {
  html body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
    grid-template-columns: 158px minmax(0, 1fr);
  }

  html body #teams #active-player-dossier .dossier-col-telemetry {
    grid-column: 1 / -1;
    padding-inline-start: 0;
    padding-top: 15px;
    border-inline-start: 0;
    border-top: 1px solid rgba(230, 196, 115, 0.22);
  }

  html[data-theme='light'] body #teams #active-player-dossier .dossier-col-telemetry {
    border-top-color: rgba(20, 89, 54, 0.16);
  }
}

/* Mobile & Tablet Active Player Strip Symmetry Stack (<= 920px) */
@media (max-width: 920px) {
  html body #teams #active-player-strip.active-player-strip,
  html[data-theme='dark'] body #teams #active-player-strip.active-player-strip,
  html[data-theme='light'] body #teams #active-player-strip.active-player-strip {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 15px !important;
  }

  html body #teams #active-player-strip .active-strip-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    gap: 7px;
  }

  html body #teams #active-player-strip .active-strip-head {
    width: 100%;
    flex-wrap: wrap;
    gap: 9px;
  }

  html body #teams #active-strip-name.active-strip-name {
    font-size: 18px;
  }

  html body #teams #active-strip-scenario.active-strip-scenario {
    font-size: 13px;
    line-height: 1.5;
    max-width: 100%;
  }

  html body #teams #scrub-progress-track.scrub-progress-track {
    width: 100% !important;
    max-width: 100% !important;
    height: 8px !important;
  }

  html body #teams #active-player-strip .active-strip-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 11px !important;
    width: 100% !important;
    padding-top: 11px;
    border-top: 1px solid rgba(230, 196, 115, 0.18);
  }

  html[data-theme='light'] body #teams #active-player-strip .active-strip-controls {
    border-top-color: rgba(20, 89, 54, 0.14);
  }

  html body #teams #studio-dot-rail.studio-dot-rail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 2px 0;
  }

  html body #teams #roster-drawer-toggle.roster-drawer-btn,
  html[data-theme='light'] body #teams #roster-drawer-toggle.roster-drawer-btn {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    padding: 0 16px !important;
    font-size: 13px;
  }
}

/* Mobile Layout (<= 767px): Collapsible Why Callout, 2-Col Eras & Single-Row Swipeable Quick Chips */
@media (max-width: 767px) {
  html body #teams #era-nav-shell.era-nav-shell {
    padding: 13px 13px 14px;
    border-radius: 18px;
  }

  html body #teams #era-nav-shell .era-nav-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  html body #teams #era-nav-shell .era-nav-prompt {
    flex: none;
    font-size: 13px;
  }

  html body #teams #teams-all-world-btn.era-allworld-gold-btn,
  html[dir='rtl'] body #teams #teams-all-world-btn.era-allworld-gold-btn {
    width: 100%;
    margin-inline: 0 !important;
    justify-content: center;
  }

  /* Compact Collapsible Why-11 Info Bar on Mobile */
  html body #teams #teams-why-11-callout.teams-why-callout {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
    cursor: pointer;
  }

  html body #teams #teams-why-11-callout .teams-why-badge {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  html body #teams #teams-why-11-callout .sml-why-toggle {
    display: inline-flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  html body #teams #teams-why-11-callout > p {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  html body #teams #teams-why-11-callout > p > strong {
    display: block;
    font-size: 12.8px;
    line-height: 1.36;
  }

  html body #teams #teams-why-11-callout #teams-why-body {
    display: block;
    margin-inline-start: 0;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(230, 196, 115, 0.20);
    max-height: 460px;
    opacity: 1;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.48;
    transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin-top 0.22s ease, padding-top 0.22s ease;
  }

  html[data-theme='light'] body #teams #teams-why-11-callout #teams-why-body {
    border-top-color: rgba(20, 89, 54, 0.14);
  }

  html body #teams #teams-why-11-callout.is-why-collapsed #teams-why-body {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top-color: transparent !important;
    pointer-events: none;
  }

  /* 6 Eras -> Clean 2x3 Symmetrical Grid */
  html body #teams #era-tabs.era-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body #teams #teams-world-picker-bar .teams-picker-inputs {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  /* Quick Club Chips -> Single-Row Horizontal Swipeable Pill Bar (0 Orphan Row!) */
  html body #teams #teams-quick-chips.teams-quick-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 7px;
    padding: 2px 2px 4px;
  }

  html body #teams #teams-quick-chips.teams-quick-chips::-webkit-scrollbar {
    display: none;
  }

  html body #teams #teams-quick-chips .teams-quick-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Team Banner Badges -> Symmetrical 50/50 Row */
  html body #teams #team-banner.team-banner {
    padding: 15px 14px;
  }

  html body #teams #team-banner .team-banner-badges {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html body #teams #team-banner .formation-badge {
    width: 100%;
    padding: 9px 10px;
  }

  html body #teams #teams-subslide-tabs .subslide-btn {
    min-height: 42px;
    padding: 7px 9px;
    font-size: 12px;
  }

  html body #teams #studio-lookbook-shell.studio-lookbook-shell {
    padding: 12px;
    border-radius: 18px;
  }

  html body #teams .dossier-panel-wrap.carousel-panel {
    padding: 13px;
    border-radius: 18px;
  }
}

/* Collector Dossier Single Column (<= 719px) */
@media (max-width: 719px) {
  html body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 16px 14px;
  }

  html body #teams #active-player-dossier .dossier-col-telemetry {
    padding-inline-start: 0;
    padding-top: 14px;
    border-inline-start: 0;
    border-top: 1px solid rgba(230, 196, 115, 0.22);
  }

  html[data-theme='light'] body #teams #active-player-dossier .dossier-col-telemetry {
    border-top-color: rgba(20, 89, 54, 0.16);
  }

  html body #teams #active-player-dossier .dossier-head h4 {
    font-size: 20.5px;
  }
}

/* Compact Phone Refinements (<= 520px) */
@media (max-width: 520px) {
  html body #teams #era-tabs .era-tab-btn.era-tab-card {
    min-height: 62px;
    padding: 9px 9px;
    gap: 4px;
    height: 100%;
  }

  html body #teams #era-tabs .era-tab-card .tab-head-row {
    gap: 5px;
  }

  html body #teams #era-tabs .era-tab-emblem {
    width: 19px;
    height: 14px;
  }

  html body #teams #era-tabs .era-tab-title {
    font-size: 11.4px;
    line-height: 1.22;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
  }

  html body #teams #era-tabs .era-tab-sub {
    font-size: 10px;
    line-height: 1.24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body #teams #era-tabs .era-tab-card .era-photo-badge {
    padding: 1.5px 5px;
    font-size: 8.5px;
  }

  html body #teams #active-player-dossier .dossier-scout-grid {
    gap: 8px !important;
  }

  html body #teams #active-player-dossier .dossier-scout-grid .scout-cell {
    min-height: 70px;
    padding: 10px 11px;
  }
}

/* Ultra-Narrow 320px - 380px Symmetry Safeguard (Zero Clipping Across All 6 Languages) */
@media (max-width: 380px) {
  html body #teams .dossier-panel-wrap.carousel-panel {
    padding: 10px;
  }

  html body #teams #active-player-dossier.active-player-dossier.is-collector-3col {
    padding: 13px 11px;
  }

  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock {
    gap: 5px !important;
  }

  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn {
    min-height: 38px !important;
    padding: 0 5px !important;
    gap: 3.5px !important;
    font-size: 10.5px !important;
  }

  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn .dock-svg {
    width: 12px;
    height: 12px;
  }

  html body #teams #studio-dot-rail.studio-dot-rail {
    gap: 5px !important;
  }

  html body #teams #studio-dot-rail .dot-rail-btn.is-active,
  html[data-theme='light'] body #teams #studio-dot-rail .dot-rail-btn.is-active {
    width: 22px !important;
  }

  html body #teams .pitch-panel .era-museum-jumps .jump-pill {
    padding: 0 7px;
    font-size: 11px;
    gap: 4px;
  }

  html body #teams #active-player-dossier .dossier-scout-grid .scout-cell {
    padding: 9px 10px;
  }

  html body #teams #active-player-dossier .dossier-scout-grid .scout-cell strong {
    font-size: 11.8px;
  }

  html body #teams #teams-subslide-tabs .subslide-btn {
    padding: 6px 6px;
    font-size: 11.2px;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  html body #teams #teams-why-11-callout #teams-why-body,
  html body #teams #teams-why-11-callout .sml-why-toggle-ico,
  html body #teams #studio-dot-rail .dot-rail-btn,
  html body #teams #active-player-dossier .dossier-weight-fill,
  html body #teams #era-tabs .era-tab-btn.era-tab-card,
  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn {
    transition: none !important;
  }
}

/* ============================================================================
   11. 390px MOBILE QA MICRO-POLISH (Coach Name Wrap & Dossier Dock Fit)
   ============================================================================ */
@media (max-width: 640px) {
  html body #teams .pitch-coach-btn strong,
  html body #teams #pitch-coach-token #pitch-coach-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.28 !important;
    text-align: start;
  }
}

@media (max-width: 440px) {
  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn {
    font-size: 11px !important;
    padding: 0 5px !important;
    gap: 4px !important;
  }

  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn svg,
  html body #teams #dossier-live-bio-box .player-icon-dock.is-dossier-dock .player-dock-btn .dock-svg {
    width: 13px !important;
    height: 13px !important;
  }
}
