/* ==========================================================================
   SOWIN BREAKOUT PICKS SHOWCASE & BUILDER BOOST — DESKTOP & MOBILE STYLES
   High-energy, zero-jargon player cards • Crisp Dark & Light theme support
   ========================================================================== */

body.is-guest[data-active-view="breakout-radar"] #login-overlay.hidden {
  display: none !important;
}

/* 1. Prominent Spotlight Referral Banner on Projections Page (#view-predictions) */
.br-predictions-spotlight {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.05rem 1.25rem;
  margin-bottom: 1.05rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 78, 31, 0.18) 0%, rgba(15, 23, 42, 0.88) 52%, rgba(245, 158, 11, 0.14) 100%);
  border: 1px solid rgba(251, 146, 60, 0.38);
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.28);
}

[data-theme="light"] .br-predictions-spotlight {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(254, 243, 199, 0.85) 100%);
  border-color: rgba(234, 88, 12, 0.34);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.br-spot-glow {
  position: absolute;
  top: -50px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.br-spot-left {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.br-spot-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.br-spot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.45);
}

[data-theme="light"] .br-spot-badge {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.14);
}

.br-spot-subkicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.br-spot-title {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  margin: 0;
}

.br-spot-sub {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  max-width: 720px;
}

.br-spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.32rem;
}

.br-spot-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.22rem 0.58rem 0.22rem 0.28rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] .br-spot-player-chip {
  background: #ffffff;
  border-color: rgba(234, 88, 12, 0.24);
}

.br-spot-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.br-spot-chip-initials {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.br-spot-chip-prob {
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

[data-theme="light"] .br-spot-chip-prob {
  color: #059669;
}

.br-spot-chip-target {
  padding: 0.06rem 0.36rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

[data-theme="light"] .br-spot-chip-target {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.br-spot-actions {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.br-spot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.br-spot-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.42);
}

@media (max-width: 820px) {
  .br-predictions-spotlight {
    flex-direction: column;
    align-items: stretch;
    padding: 0.95rem 1rem;
  }
  .br-spot-cta {
    width: 100%;
  }
}

.nav-breakouts-link.hidden,
.nav-breakouts-link[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .mobile-bottom-nav.has-breakouts-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* 2. Top Navigation Strip inside #view-breakout-radar */
.br-top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.br-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.24));
  background: var(--bg-card, rgba(15, 23, 42, 0.72));
  color: var(--text-primary, #f8fafc);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

[data-theme="light"] .br-back-btn {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.28);
}

.br-back-btn:hover {
  border-color: rgba(251, 146, 60, 0.55);
  transform: translateX(-2px);
}

.br-builder-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.54rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(234, 88, 12, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.br-builder-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

/* 3. Showcase Hero Card */
.br-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.95rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94) 0%, rgba(43, 21, 16, 0.82) 55%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(251, 146, 60, 0.3);
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.28);
}

[data-theme="light"] .br-hero-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 55%, #f8fafc 100%);
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.br-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.br-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.36);
}

.br-live-pill.is-frozen {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.36);
}

[data-theme="light"] .br-live-pill {
  color: #059669;
}

.br-kicker-note {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.br-hero-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--text-primary, #f8fafc);
}

.br-hero-desc {
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  max-width: 820px;
}

.br-hero-desc strong {
  color: var(--text-primary, #f8fafc);
}

/* 4. Filter Toolbar */
.br-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.16));
}

[data-theme="light"] .br-toolbar-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.26);
}

.br-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.br-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.22));
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .br-pill-btn {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.24);
}

.br-pill-btn.is-active {
  border-color: rgba(251, 146, 60, 0.58);
  background: rgba(249, 115, 22, 0.18);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] .br-pill-btn.is-active {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.12);
}

.br-pill-btn.is-gallery.is-active {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

[data-theme="light"] .br-pill-btn.is-gallery.is-active {
  color: #047857;
}

.br-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.26));
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.br-sync-btn:hover {
  color: var(--text-primary, #f8fafc);
  border-color: rgba(251, 146, 60, 0.48);
}

/* 5. Candidate Cards Grid */
.br-candidates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

@media (max-width: 980px) {
  .br-candidates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.br-candidate-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 16px;
  background: var(--bg-card, rgba(15, 23, 42, 0.86));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.18));
  box-shadow: 0 10px 26px rgba(2, 8, 23, 0.22);
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

[data-theme="light"] .br-candidate-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.br-candidate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.45);
}

.br-candidate-card.is-obvious-opp {
  border-top: 3px solid #f97316;
}

.br-candidate-card.is-hidden-opp {
  border-top: 3px solid #a855f7;
}

.br-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.br-player-ident {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  flex: 1 1 auto;
}

.br-rank-pill {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.36);
}

[data-theme="light"] .br-rank-pill {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.12);
}

.br-avatar-wrap {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(251, 146, 60, 0.38);
  cursor: pointer;
}

.br-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.br-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #94a3b8;
}

.br-player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.br-player-name-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.br-player-name-btn:hover {
  color: #fb923c;
  text-decoration: underline;
}

.br-sub-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.br-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 800;
  white-space: nowrap;
}

.br-tag.team {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-primary, #f8fafc);
}

.br-tag.obvious-opp {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.34);
}

[data-theme="light"] .br-tag.obvious-opp {
  color: #c2410c;
}

.br-tag.hidden-opp {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.34);
}

[data-theme="light"] .br-tag.hidden-opp {
  color: #7e22ce;
}

.br-tag.owned {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.36);
}

[data-theme="light"] .br-tag.owned {
  color: #047857;
}

/* Circular Boom Probability Gauge */
.br-prob-gauge-wrap {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.br-prob-ring {
  width: 62px;
  height: 62px;
  transform: rotate(-90deg);
}

.br-prob-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 5.5;
}

.br-prob-ring-fg {
  fill: none;
  stroke: #10b981;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease;
}

.br-prob-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.br-prob-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  color: #34d399;
}

[data-theme="light"] .br-prob-val {
  color: #059669;
}

.br-prob-lbl {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

/* 3-Stat Hero Strip (Current Cap | Projected | Min Explosion) */
.br-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.br-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.58rem 0.68rem;
  border-radius: 11px;
  background: rgba(2, 8, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  min-width: 0;
}

[data-theme="light"] .br-stat-box {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.24);
}

.br-stat-box.is-boom-target {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(245, 158, 11, 0.1));
  border-color: rgba(251, 146, 60, 0.42);
}

[data-theme="light"] .br-stat-box.is-boom-target {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(254, 243, 199, 0.7));
  border-color: rgba(234, 88, 12, 0.36);
}

.br-stat-lbl {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-stat-box.is-boom-target .br-stat-lbl {
  color: #fdba74;
}

[data-theme="light"] .br-stat-box.is-boom-target .br-stat-lbl {
  color: #c2410c;
}

.br-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
}

.br-stat-val small {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
}

.br-stat-val.is-boom {
  color: #fb923c;
}

[data-theme="light"] .br-stat-val.is-boom {
  color: #ea580c;
}

.br-stat-sub {
  font-size: 0.68rem;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-stat-sub.is-pos {
  color: #34d399;
  font-weight: 700;
}

[data-theme="light"] .br-stat-sub.is-pos {
  color: #059669;
}

/* High-Level Story Block & Visual Reason Chips */
.br-injuries-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 0.55rem;
  padding: 0.55rem 0.72rem;
  border-radius: 11px;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

[data-theme="light"] .br-injuries-strip {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(239, 68, 68, 0.28);
}

.br-injuries-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fca5a5;
  white-space: nowrap;
}

[data-theme="light"] .br-injuries-label {
  color: #b91c1c;
}

.br-injuries-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.br-inj-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.71rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] .br-inj-pill {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.32);
}

.br-inj-pill strong {
  font-weight: 800;
}

.br-story-block {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.68rem 0.78rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .br-story-block {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.22);
}

.br-story-headline {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text-primary, #f8fafc);
}

.br-catalyst-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.br-mini-catalyst {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary, #cbd5e1);
  white-space: nowrap;
}

[data-theme="light"] .br-mini-catalyst {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.24);
  color: #334155;
}

/* Card Footer */
.br-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-top: 0.15rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-secondary, #94a3b8);
}

.br-schedule-pill {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-schedule-pill strong {
  color: var(--text-primary, #f8fafc);
}

.br-log-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 8px;
  padding: 0.24rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fb923c;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

[data-theme="light"] .br-log-link-btn {
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.3);
  color: #ea580c;
}

.br-log-link-btn:hover {
  background: rgba(249, 115, 22, 0.22);
}

.br-empty-card {
  text-align: center;
  padding: 2rem 1.15rem;
  border-radius: 16px;
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.br-empty-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text-primary, #f8fafc);
}

.br-empty-card p {
  margin: 0 auto;
  max-width: 460px;
  font-size: 0.83rem;
  color: var(--text-secondary, #94a3b8);
}

/* 6. Lineup Builder "🔒 Lock Breakout" Button & Card Badges */
.btn-breakout-boost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.56rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.52);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(245, 158, 11, 0.16));
  color: #fdba74;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

[data-theme="light"] .btn-breakout-boost {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: rgba(234, 88, 12, 0.45);
  color: #c2410c;
}

.btn-breakout-boost:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
}

.builder-breakout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(245, 158, 11, 0.92));
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
  white-space: nowrap;
}

.breakout-filter-chip input:checked + span {
  color: #fb923c;
  font-weight: 800;
}

[data-theme="light"] .breakout-filter-chip input:checked + span {
  color: #c2410c;
}

/* 7. Lock Breakout Players Modal (#modal-lock-breakout) */
.lbm-modal-panel {
  width: min(560px, calc(100vw - 1.25rem));
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(251, 146, 60, 0.32);
  box-shadow: 0 22px 54px rgba(2, 8, 23, 0.65);
}

[data-theme="light"] .lbm-modal-panel {
  background: #ffffff;
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.lbm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem 0.7rem;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.16));
}

.lbm-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.lbm-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.lbm-kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.42);
}

[data-theme="light"] .lbm-kicker-badge {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.12);
}

.lbm-context-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

#lbm-modal-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.lbm-subtitle {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-secondary, #94a3b8);
}

.lbm-status-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  background: rgba(2, 8, 23, 0.36);
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
}

[data-theme="light"] .lbm-status-strip {
  background: #f8fafc;
}

.lbm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] .lbm-status-pill {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.32);
  color: #0f172a;
}

.lbm-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.lbm-section-label {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34d399;
  padding: 0.25rem 0.2rem 0.1rem;
}

[data-theme="light"] .lbm-section-label {
  color: #047857;
}

.lbm-section-label.is-muted {
  margin-top: 0.35rem;
  color: var(--text-secondary, #94a3b8);
}

.lbm-empty-owned-note {
  padding: 0.52rem 0.7rem;
  border-radius: 10px;
  font-size: 0.76rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--text-secondary, #cbd5e1);
}

[data-theme="light"] .lbm-empty-owned-note {
  color: #475569;
}

.lbm-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.52rem 0.62rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: border-color 0.15s ease, background 0.15s ease;
}

[data-theme="light"] .lbm-player-row {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.25);
}

.lbm-player-row.is-row-locked {
  border-color: rgba(16, 185, 129, 0.52);
  background: rgba(16, 185, 129, 0.1);
}

.lbm-player-row.is-unowned {
  opacity: 0.72;
}

.lbm-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.lbm-rank {
  flex-shrink: 0;
  width: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fb923c;
  text-align: center;
}

.lbm-avatar-wrap {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(251, 146, 60, 0.36);
  cursor: pointer;
}

.lbm-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lbm-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.lbm-player-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.lbm-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.lbm-name-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.lbm-name-btn:hover {
  color: #fb923c;
  text-decoration: underline;
}

.lbm-tier-tag {
  padding: 0.06rem 0.36rem;
  border-radius: 5px;
  font-size: 0.61rem;
  font-weight: 800;
  white-space: nowrap;
}

.lbm-tier-tag.is-prime {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
}

[data-theme="light"] .lbm-tier-tag.is-prime {
  color: #c2410c;
}

.lbm-tier-tag.is-sleeper {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
}

[data-theme="light"] .lbm-tier-tag.is-sleeper {
  color: #7e22ce;
}

.lbm-season-tag {
  padding: 0.05rem 0.32rem;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary, #94a3b8);
}

.lbm-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.24rem;
  font-size: 0.69rem;
  color: var(--text-secondary, #94a3b8);
}

.lbm-meta-line strong {
  color: var(--text-primary, #f8fafc);
}

.lbm-boom-stat {
  color: #34d399;
  font-weight: 800;
}

[data-theme="light"] .lbm-boom-stat {
  color: #059669;
}

.lbm-dot {
  opacity: 0.5;
}

.lbm-row-right {
  flex-shrink: 0;
}

.lbm-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 78px;
  padding: 0.4rem 0.68rem;
  border-radius: 9px;
  border: 1px solid rgba(251, 146, 60, 0.5);
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

[data-theme="light"] .lbm-lock-btn {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.42);
  color: #c2410c;
}

.lbm-lock-btn:hover {
  background: #ea580c;
  color: #ffffff;
}

.lbm-lock-btn.is-locked {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.58);
  color: #34d399;
}

[data-theme="light"] .lbm-lock-btn.is-locked {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.48);
  color: #047857;
}

.lbm-unavail-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.52rem;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
}

.lbm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.16));
  background: rgba(2, 8, 23, 0.28);
}

[data-theme="light"] .lbm-footer {
  background: #f8fafc;
}

/* 8. Mobile Polish for Breakout Page, Spotlight & Lock Modal */
@media (max-width: 640px) {
  .br-predictions-spotlight {
    padding: 0.78rem 0.85rem;
    gap: 0.68rem;
  }
  .br-spot-sub {
    display: none;
  }
  .br-spot-title {
    font-size: 0.96rem;
  }
  .br-spot-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .br-spot-chips::-webkit-scrollbar {
    display: none;
  }
  .br-spot-player-chip {
    flex-shrink: 0;
    font-size: 0.71rem;
    padding: 0.18rem 0.48rem 0.18rem 0.22rem;
  }

  .br-top-nav-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.48rem;
    margin-bottom: 0.65rem;
  }
  .br-back-btn,
  .br-builder-cta-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.46rem 0.62rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .br-hero-card {
    padding: 0.88rem 0.95rem;
    margin-bottom: 0.68rem;
    border-radius: 14px;
  }
  .br-kicker-row {
    gap: 0.4rem;
    margin-bottom: 0.3rem;
  }
  .br-live-pill {
    font-size: 0.64rem;
    padding: 0.16rem 0.5rem;
  }
  .br-kicker-note {
    font-size: 0.69rem;
  }
  .br-hero-heading {
    font-size: 1.15rem;
    margin-bottom: 0.22rem;
  }
  .br-hero-desc {
    font-size: 0.77rem;
    line-height: 1.38;
  }

  .br-toolbar-card {
    display: block;
    padding: 0.36rem;
    margin-bottom: 0.72rem;
    border-radius: 12px;
  }
  .br-filter-pills {
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.24rem;
    overflow: visible;
  }
  .br-pill-btn {
    justify-content: center;
    padding: 0.36rem 0.44rem;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
    min-width: 0;
  }
  .br-sync-btn {
    display: none !important;
  }
  @media (max-width: 358px) {
    .br-filter-pills {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.3rem;
    }
  }

  .br-candidates-grid {
    gap: 0.75rem;
  }
  .br-candidate-card {
    padding: 0.85rem 0.85rem 0.78rem;
    gap: 0.65rem;
    border-radius: 14px;
  }
  .br-rank-pill {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
    border-radius: 7px;
  }
  .br-avatar-wrap {
    width: 44px;
    height: 44px;
  }
  .br-player-ident {
    gap: 0.52rem;
  }
  .br-player-name-btn {
    font-size: 0.95rem;
  }
  .br-tag {
    font-size: 0.64rem;
    padding: 0.1rem 0.4rem;
  }
  .br-prob-gauge-wrap,
  .br-prob-ring {
    width: 54px;
    height: 54px;
  }
  .br-prob-val {
    font-size: 0.88rem;
  }
  .br-stat-trio {
    gap: 0.36rem;
  }
  .br-stat-box {
    padding: 0.44rem 0.48rem;
    border-radius: 9px;
  }
  .br-stat-lbl {
    font-size: 0.6rem;
  }
  .br-stat-val {
    font-size: 0.92rem;
  }
  .br-stat-sub {
    font-size: 0.62rem;
  }
  .br-injuries-strip {
    padding: 0.38rem 0.55rem;
    gap: 0.3rem 0.4rem;
  }
  .br-story-block {
    padding: 0.55rem 0.65rem;
    gap: 0.38rem;
  }
  .br-story-headline {
    font-size: 0.78rem;
    line-height: 1.38;
  }
  .br-mini-catalyst {
    font-size: 0.65rem;
    padding: 0.12rem 0.42rem;
  }

  .lbm-modal-panel {
    width: calc(100vw - 0.8rem);
    max-height: 88vh;
    border-radius: 16px;
  }
  .lbm-header {
    padding: 0.8rem 0.85rem 0.6rem;
  }
  .lbm-status-strip {
    padding: 0.42rem 0.85rem;
  }
  .lbm-body {
    padding: 0.5rem 0.62rem;
  }
  .lbm-player-row {
    padding: 0.46rem 0.5rem;
    gap: 0.4rem;
  }
  .lbm-name-btn {
    font-size: 0.8rem;
    max-width: 132px;
  }
  .lbm-meta-line {
    font-size: 0.64rem;
  }
  .lbm-lock-btn {
    min-width: 68px;
    padding: 0.36rem 0.52rem;
    font-size: 0.7rem;
  }
  .lbm-footer {
    padding: 0.62rem 0.85rem;
  }
  .lbm-done-btn {
    flex: 0 0 auto;
  }
  .lbm-autobuild-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* 9. Production Upgrade v2.1c: Multi-Event Breakdown, 4-Stat Quad, GW Switcher & Track Record */
.br-nav-left-group,
.br-nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.br-gw-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.34rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-card, rgba(15, 23, 42, 0.78));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.26));
}

[data-theme="light"] .br-gw-switcher-wrap {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.28);
}

.br-gw-switcher-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
}

.br-gw-switcher-select {
  background: transparent;
  border: none;
  color: var(--text-primary, #f8fafc);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

[data-theme="light"] .br-gw-switcher-select {
  color: #0f172a;
}

.br-gw-switcher-select option {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="light"] .br-gw-switcher-select option {
  background: #ffffff;
  color: #0f172a;
}

.br-return-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.48rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.48);
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
}

[data-theme="light"] .br-return-live-btn {
  background: #ecfdf5;
  color: #047857;
}

.br-live-pill.is-settled {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.38);
}

[data-theme="light"] .br-live-pill.is-settled {
  color: #1d4ed8;
}

/* Primary Predicted Event Banner inside Candidate Card */
.br-primary-event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.44rem 0.68rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.75rem;
}

[data-theme="light"] .br-primary-event-banner {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.95), rgba(255, 247, 237, 0.9));
  border-color: rgba(16, 185, 129, 0.34);
}

.br-pe-tag {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #34d399;
}

[data-theme="light"] .br-pe-tag {
  color: #047857;
}

.br-pe-formula {
  color: var(--text-primary, #f8fafc);
  font-weight: 600;
}

.br-pe-formula small {
  color: var(--text-secondary, #94a3b8);
}

.br-pe-prob {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #34d399;
}

[data-theme="light"] .br-pe-prob {
  color: #059669;
}

/* 4-Stat Quad (Cap | M6 Expected | P90 Ceiling | Radar Target) */
.br-stat-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.48rem;
}

.br-stat-val.is-p90 {
  color: #38bdf8;
}

[data-theme="light"] .br-stat-val.is-p90 {
  color: #0284c7;
}

/* 4-Pill Multi-Event Breakdown Strip (Cap+15 | Cap+20 | +20% Cap | Personal Peak) */
.br-events-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.br-event-pill {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.38rem 0.5rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  min-width: 0;
}

[data-theme="light"] .br-event-pill {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.25);
}

.br-event-lbl {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-event-lbl small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.59rem;
  opacity: 0.85;
}

.br-event-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

/* Settled Outcome Banner on Historical Cards */
.br-settled-outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.46rem 0.68rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.br-settled-outcome.is-hit {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
}

[data-theme="light"] .br-settled-outcome.is-hit {
  background: #ecfdf5;
  color: #047857;
}

.br-settled-outcome.is-near-miss {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: #fbbf24;
}

[data-theme="light"] .br-settled-outcome.is-near-miss {
  background: #fffbeb;
  color: #b45309;
}

.br-settled-outcome.is-miss {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

[data-theme="light"] .br-settled-outcome.is-miss {
  background: #fef2f2;
  color: #b91c1c;
}

.br-outcome-badge {
  font-weight: 800;
  font-size: 0.7rem;
}

.br-outcome-score {
  color: var(--text-primary, #f8fafc);
}

/* Historical Track Record Card */
.br-history-card {
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.95rem;
  background: var(--bg-card, rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(56, 189, 248, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

[data-theme="light"] .br-history-card {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.24);
}

.br-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.br-history-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.br-history-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.34);
}

[data-theme="light"] .br-history-badge {
  color: #0369a1;
}

.br-history-subbadge {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
}

.br-history-subbadge strong {
  color: #34d399;
}

[data-theme="light"] .br-history-subbadge strong {
  color: #059669;
}

.br-history-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.br-history-toggle-btn {
  padding: 0.38rem 0.72rem;
  border-radius: 9px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.24));
  background: rgba(15, 23, 42, 0.45);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

[data-theme="light"] .br-history-toggle-btn {
  background: #f8fafc;
  color: #334155;
}

.br-history-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 920px) {
  .br-history-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.br-hkpi-box {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.55rem 0.68rem;
  border-radius: 11px;
  background: rgba(2, 8, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .br-hkpi-box {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.24);
}

.br-hkpi-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
}

.br-hkpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.br-hkpi-val.is-emerald {
  color: #34d399;
}

[data-theme="light"] .br-hkpi-val.is-emerald {
  color: #059669;
}

.br-hkpi-val small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.br-hkpi-sub {
  font-size: 0.68rem;
  color: var(--text-secondary, #94a3b8);
}

.br-hist-gw-strip-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.br-hist-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

.br-hist-gw-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.br-hist-gw-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.3rem 0.58rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-primary, #f8fafc);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

[data-theme="light"] .br-hist-gw-chip {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
}

.br-hist-gw-chip.is-selected,
.br-hist-gw-chip:hover {
  border-color: rgba(251, 146, 60, 0.62);
  background: rgba(249, 115, 22, 0.16);
}

.br-hgw-name {
  font-weight: 800;
}

.br-hgw-hits {
  font-family: 'JetBrains Mono', monospace;
  color: #34d399;
}

[data-theme="light"] .br-hgw-hits {
  color: #059669;
}

.br-hgw-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--text-secondary, #94a3b8);
}

.br-hgw-prov {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary, #94a3b8);
}

.br-hist-gw-chip.is-prospective {
  border-color: rgba(16, 185, 129, 0.42);
}

.br-hist-gw-chip.is-prospective .br-hgw-prov {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

[data-theme="light"] .br-hist-gw-chip.is-prospective .br-hgw-prov {
  color: #047857;
}

/* Provenance Split Grid (Prospective Pre-Lock vs Retrospective Walk-Forward Backtest) */
.br-provenance-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 840px) {
  .br-provenance-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.br-prov-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  background: rgba(2, 8, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.br-prov-card.is-prospective {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(2, 8, 23, 0.48));
}

[data-theme="light"] .br-prov-card {
  background: #f8fafc;
}

[data-theme="light"] .br-prov-card.is-prospective {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.45);
}

.br-prov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.br-prov-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.br-prov-pill.is-prospective {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

[data-theme="light"] .br-prov-pill.is-prospective {
  color: #047857;
}

.br-prov-pill.is-backtest {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

[data-theme="light"] .br-prov-pill.is-backtest {
  color: #0369a1;
}

.br-prov-gws {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

.br-prov-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.br-prov-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.br-prov-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
}

.br-prov-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.br-prov-val.is-emerald {
  color: #34d399;
}

[data-theme="light"] .br-prov-val.is-emerald {
  color: #059669;
}

.br-prov-sub {
  font-size: 0.65rem;
  color: var(--text-secondary, #94a3b8);
}

/* Settled GW False Positives & Missed Breakouts Diagnostics */
.br-settled-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 820px) {
  .br-settled-diagnostics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.br-diag-panel {
  padding: 0.65rem 0.78rem;
  border-radius: 11px;
  background: rgba(2, 8, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .br-diag-panel {
  background: #f8fafc;
}

.br-diag-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.br-diag-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.br-diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding-bottom: 0.32rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.br-diag-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.br-diag-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.br-diag-meta {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.68rem;
}

.br-diag-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

[data-theme="light"] .br-diag-tag {
  color: #b45309;
}

.br-diag-tag.is-missed {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

[data-theme="light"] .br-diag-tag.is-missed {
  color: #0369a1;
}

/* Event Definitions Drawer */
.br-event-defs-drawer {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(2, 8, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

[data-theme="light"] .br-event-defs-drawer {
  background: #f8fafc;
}

.br-defs-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.br-defs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 780px) {
  .br-defs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.br-def-item {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.48rem 0.6rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.73rem;
}

[data-theme="light"] .br-def-item {
  background: #ffffff;
}

.br-def-item.is-primary {
  grid-column: 1 / -1;
  border-color: rgba(16, 185, 129, 0.36);
}

.br-def-item span {
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
}

.br-governance-note {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .br-top-nav-row {
    flex-wrap: wrap;
  }
  .br-nav-left-group,
  .br-nav-right-group {
    width: 100%;
    justify-content: space-between;
  }
  .br-stat-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.36rem;
  }
  .br-events-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
  }
  .br-history-card {
    padding: 0.8rem 0.85rem;
  }
}

