/* ============================================================
   BellCow Fantasy — theme layer
   Tokens straight from bellcow_design_system.md (July 26, 2026)
   Premium dark sports app. Warm amber moments. Clean data cards.
   ============================================================ */

:root {
  /* ── BASE (dark paper stack) ── */
  --bg-base:       #0D0B08;
  --bg-surface:    #141108;
  --bg-card:       #1C1710;
  --bg-card-hover: #231E13;
  --bg-elevated:   #2A2418;

  /* ── AMBER SYSTEM ── */
  --amber-dim:     #7A5200;
  --amber-mid:     #C8860A;
  --amber-bright:  #E8A020;
  --amber-glow:    #F0B830;

  /* ── TEXT ── */
  --text-primary:   #F0E8D0;
  --text-secondary: #A89870;
  --text-muted:     #5A5040;
  --text-amber:     #C8860A;

  /* ── BORDERS ── */
  --border-subtle: #2A2418;
  --border-mid:    #3A3020;
  --border-amber:  #7A5200;

  /* ── SEMANTIC ── */
  --green: #4CAF72;
  --red:   #E05A4A;
  --blue:  #4A90C8;

  /* ── TYPE ── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ── Legacy aliases — app.js writes var(--bad)/var(--text-dim) inline ── */
  --bg:       var(--bg-base);
  --panel:    var(--bg-surface);
  --panel-2:  var(--bg-card);
  --border:   var(--border-subtle);
  --text:     var(--text-primary);
  --text-dim: var(--text-secondary);
  --accent:   var(--amber-mid);
  --good:     var(--green);
  --bad:      var(--red);
  --warn:     var(--amber-bright);

  font-size: 15px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber-mid); }

/* ============================================================
   NAV BAR — 52px, brand lockup left, links center, CTA right
   ============================================================ */

.bc-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.bc-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.bc-nav-brand {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-nav-brand span { font-weight: 600; color: var(--amber-mid); }
.bc-nav-logo {
  width: 28px;
  height: auto;
  display: block;
}

/* ── Cowbell logo: hero (animated intro, then settles) ─────────────── */
.bc-hero-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  /* Playfair Display's line box carries more leading above the cap-height
     than below the baseline, so geometric flex centering against the
     wordmark leaves the mark looking raised. Nudge down to match the
     wordmark's optical center instead of its box center. */
  margin-top: 6px;
}
.bc-hero-logo svg,
.bc-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Cowbell logo: splash screen (animated loop while data loads) ──── */
.bc-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity .35s ease;
}
.bc-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.bc-loading-logo {
  width: 140px;
  height: auto;
}
.bc-loading-logo svg { width: 100%; height: auto; display: block; }
.bc-loading-label {
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Cowbell logo: onboarding "you're in" moment ────────────────────── */
.ob-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0 6px;
  text-align: center;
}
.ob-welcome-logo { width: 90px; height: auto; }
.ob-welcome-logo svg { width: 100%; height: auto; display: block; }
.ob-welcome-text {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
}

/* ── Cowbell logo: alert pulse badge in the nav ─────────────────────── */
.bc-nav-alert-logo {
  width: 22px;
  height: auto;
  display: none;
}
.bc-nav-alert-logo.active { display: block; }
.bc-nav-alert-logo svg { width: 100%; height: auto; display: block; }

.bc-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc-nav-links li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .15s;
}
.bc-nav-links li:hover { color: var(--amber-glow); }
.bc-nav-links li.active { color: var(--amber-mid); }

.bc-nav-cta {
  background: var(--amber-mid);
  color: var(--bg-base);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}
.bc-nav-cta:hover { background: var(--amber-glow); }

.bc-nav-user-settings {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-nav-user-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bc-nav-settings {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color .15s, transform .2s;
}
.bc-nav-settings:hover {
  background: transparent;
  color: var(--amber-mid);
  transform: rotate(30deg);
}
.settings-modal .ob-field { margin-bottom: 16px; }
.settings-modal .ob-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 8px; }
.settings-modal .ob-note { font-size: 11.5px; color: var(--text-dim); margin-top: 12px; line-height: 1.5; }
.settings-modal select {
  width: 100%;
  margin-top: 6px;
}
.settings-modal .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.settings-connect-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   HERO TITLE CARD — the BellCow Fantasy lockup, used on every view
   ============================================================ */

.bc-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 12% -40%, rgba(200,134,10,.16) 0%, rgba(200,134,10,0) 58%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--amber-mid);
  border-radius: 10px;
  margin: 20px 20px 0;
  padding: 30px 34px 28px;
}

.bc-hero::after {
  /* faint bell-arch watermark, pure CSS — no asset dependency */
  content: "";
  position: absolute;
  right: -40px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--amber-dim);
  border-radius: 50% 50% 12% 12%;
  opacity: .18;
  pointer-events: none;
}

.bc-hero-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bc-hero-titlerow {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bc-hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.bc-hero-title span {
  font-weight: 600;
  color: var(--amber-mid);
}

.bc-hero-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--amber-mid);
  margin-top: 14px;
}

.bc-hero-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 10px;
}
#boardHero .bc-hero-sub {
  position: absolute;
  top: 30px;
  right: 34px;
  margin-top: 0;
  text-align: right;
}
/* Reserve the absolute sub's footprint (520px + its right offset) on the
   normal-flow title/tagline so they wrap instead of running under it, at
   any card width — not just below a guessed breakpoint (a docked Chrome
   side panel squeezes the app to all kinds of in-between widths). */
#boardHero .bc-hero-titlerow,
#boardHero .bc-hero-tagline {
  max-width: calc(100% - 554px);
}

/* Compact variant for secondary views (mock draft, modals) */
.bc-hero.compact { padding: 20px 24px; }
.bc-hero.compact .bc-hero-title { font-size: 26px; }
.bc-hero.compact .bc-hero-sub { font-size: 13px; margin-top: 6px; }
.bc-hero.compact::after { display: none; }

/* ============================================================
   LIVE DATA TICKER
   ============================================================ */

.bc-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 14px 20px 0;
}
.bc-ticker-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: center;
  align-items: center;
}
.bc-ticker-val {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.bc-ticker-val.amber { color: var(--amber-bright); }
.bc-ticker-val.green { color: var(--green); }
.bc-ticker-val.red   { color: var(--red); }
.bc-ticker-key {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* ============================================================
   SNIPE ALERT PILLS
   ============================================================ */

.bc-alert-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 20px 0;
}
.bc-alert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-primary);
}
.bc-alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-bright);
  flex-shrink: 0;
  animation: bc-blink 1.6s ease-in-out infinite;
}
@keyframes bc-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}
.bc-alert-pill .label {
  color: var(--amber-mid);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   CONTROL BAR (scoring / year / teams / sync)
   ============================================================ */

.bc-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 20px 0;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.bc-controls .field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-controls .field label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

select,
input[type=number],
input[type=text],
input[type=search],
input[type=password],
textarea {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 6px 9px;
  font-family: var(--font-body);
  font-size: 13px;
}
select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--amber-dim);
}

input[type=range] { accent-color: var(--amber-mid); }
input[type=checkbox] { accent-color: var(--amber-mid); }
input[type=file] { font-size: 12px; color: var(--text-secondary); }

/* ============================================================
   BUTTONS
   ============================================================ */

button {
  background: var(--amber-mid);
  color: var(--bg-base);
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
button:hover { background: var(--amber-glow); }
button.secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}
button.secondary:hover {
  color: var(--amber-mid);
  border-color: var(--border-amber);
  background: var(--bg-card-hover);
}
button:disabled { opacity: .45; cursor: default; }

/* ============================================================
   POSITION TABS
   ============================================================ */

.tabs {
  display: flex;
  gap: 6px;
  padding: 20px 20px 0;
  flex-wrap: wrap;
}
.tabs button {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.tabs button:hover {
  color: var(--amber-mid);
  border-color: var(--border-amber);
  background: var(--bg-card);
}
.tabs button.active {
  background: var(--bg-card);
  border-color: var(--amber-mid);
  color: var(--amber-mid);
}

/* ============================================================
   BOARD TABLE
   ============================================================ */

main { padding: 0 20px 60px; }

/* No overflow:hidden here — it would clip the sticky <th> to the table and
   knock the header down over row 1. Corners are rounded per-cell instead. */
table.board {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-top: 16px;
}
table.board thead th:first-child { border-top-left-radius: 10px; }
table.board thead th:last-child  { border-top-right-radius: 10px; }
table.board th {
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 52px;
  z-index: 10;
}
table.board td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}
table.board tr:last-child td { border-bottom: none; }
table.board tr.player-row { cursor: grab; }
table.board tr.player-row:hover { background: var(--bg-card-hover); }
table.board tr.dragging { opacity: .35; }
table.board tr.drag-over td { border-top: 2px solid var(--amber-mid); }

.player-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
}
.player-name:hover { color: var(--amber-glow); }

.rank-handle {
  color: var(--text-muted);
  margin-right: 8px;
  font-size: 12px;
}

/* Position chips inside the board */
.pos-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-mid);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.badge.value  { background: rgba(76,175,114,.12);  color: var(--green); border: 1px solid rgba(76,175,114,.3); }
.badge.reach  { background: rgba(224,90,74,.12);   color: var(--red);   border: 1px solid rgba(224,90,74,.3); }
.badge.injury { background: rgba(232,160,32,.12);  color: var(--amber-bright); border: 1px solid rgba(232,160,32,.3); }
.badge.like    { color: var(--green); }
.badge.dislike { color: var(--red); }
/* #116: your connected dynasty league's own roster tenure on this player --
   distinct from age-risk/injury (those are risk signals; this is a positive
   continuity signal), so its own color rather than reusing green/value. */
.badge.tenure { background: rgba(74,144,200,.12); color: var(--blue); border: 1px solid rgba(74,144,200,.3); }

/* #334: age-risk tag, Low->Severe -- same green/amber/red palette as the
   badges above, just spanning all four tiers instead of a flat single color
   like .badge.injury does (injury risk's tier only ever shows up as text,
   never as a per-tier badge color). */
.badge.age-risk-low      { background: rgba(76,175,114,.12);  color: var(--green);        border: 1px solid rgba(76,175,114,.3); }
.badge.age-risk-moderate { background: rgba(200,134,10,.12);  color: var(--amber-mid);    border: 1px solid rgba(200,134,10,.3); }
.badge.age-risk-high     { background: rgba(232,160,32,.12);  color: var(--amber-bright); border: 1px solid rgba(232,160,32,.3); }
.badge.age-risk-severe   { background: rgba(224,90,74,.12);   color: var(--red);          border: 1px solid rgba(224,90,74,.3); }

/* #334: player-modal age-curve card -- collapsed badge + one-line blurb by
   default, click expands the raw table (same interaction as SOS rows'
   data-expand-key/data-expand-detail/.expand-caret pattern, adapted from
   table rows to a plain flex row since the modal isn't a table here). */
.age-risk-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
}
.age-risk-blurb { flex: 1 1 auto; }
.age-risk-summary .expand-caret {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.age-risk-caveat {
  cursor: help;
  color: var(--amber-bright);
  font-size: 12px;
}
.age-risk-detail { margin-top: 8px; }

/* ============================================================
   SETUP PANEL
   ============================================================ */

.setup-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin: 14px 20px 0;
  padding: 8px 20px;
}
.setup-panel details {
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 0;
}
.setup-panel details:last-of-type { border-bottom: none; }
.setup-panel summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 10px 0;
  list-style: none;
}
.setup-panel summary::-webkit-details-marker { display: none; }
.setup-panel summary::before {
  content: "▸";
  color: var(--amber-mid);
  margin-right: 10px;
  font-size: 10px;
}
.setup-panel details[open] > summary::before { content: "▾"; }
.setup-panel summary:hover { color: var(--amber-mid); }

.setup-panel .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}
.setup-panel .hint {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
}
.setup-panel code {
  background: var(--bg-elevated);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Hints show up outside the setup panel too (modal fallbacks, mock draft setup) */
.hint {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}

.status-msg {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-left: 8px;
}

/* ============================================================
   MODAL
   ============================================================ */

.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: var(--bg-elevated);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 2, .78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  overflow-y: auto;
  z-index: 50;
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  width: 100%;
  max-width: 660px;
  padding: 22px 26px 26px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--amber-mid);
}
/* Bleeds to the modal's edges and up over its top padding so the team-logo
   watermark (set inline per-player, see renderModal) reads as a full header
   band rather than a small tile. Also the crop frame for the headshot cutout
   below -- overflow:hidden lets a bigger-than-the-box image bleed off the
   left/bottom edges and get clipped clean, same trick the logo uses. */
.modal-header-teamlogo {
  position: relative;
  overflow: hidden;
  margin: -22px -26px 14px;
  padding: 22px 26px 14px;
  border-radius: 12px 12px 0 0;
  min-height: 190px;
}
.modal-header-id {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 210px;
}
/* ESPN's headshot images are already transparent player cutouts (no baked-in
   background), so this just sizes and bleeds it -- no frame/border needed,
   same treatment as the team-logo watermark on the opposite corner. */
.modal-headshot {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 190px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}
.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
}
.modal-header .meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-mid);
  margin-top: 5px;
}
.modal-brand {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-brand span { color: var(--amber-mid); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0 4px;
  letter-spacing: 0;
}
.modal-close:hover { background: none; color: var(--amber-mid); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.stat-tile .v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--amber-bright);
}
.stat-tile .l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.reasoning-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--amber-mid);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   TRADE ANALYZER (#166)
   ============================================================ */

.trade-caveat-banner {
  background: rgba(232, 160, 32, .08);
  border: 1px solid rgba(232, 160, 32, .3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--amber-glow);
  margin: 10px 0 16px;
}

.trade-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 14px 0;
}
@media (max-width: 720px) {
  .trade-sides { grid-template-columns: 1fr; }
}

.trade-player-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trade-player-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.trade-player-chip .name { color: var(--text); font-weight: 500; }
.trade-player-chip .pos { color: var(--text-muted); font-size: 11px; margin-left: 6px; }
.trade-player-chip button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
}
.trade-player-chip button:hover { color: var(--red); background: none; }

.trade-result-card {
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}
.trade-verdict {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.trade-verdict.fair { background: rgba(200,134,10,.12); color: var(--amber-glow); border: 1px solid rgba(200,134,10,.3); }
.trade-verdict.side-a { background: rgba(76,175,114,.12); color: var(--green); border: 1px solid rgba(76,175,114,.3); }
.trade-verdict.side-b { background: rgba(74,144,200,.12); color: var(--blue); border: 1px solid rgba(74,144,200,.3); }
.trade-verdict .delta { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 4px; letter-spacing: 0; }

.trade-result-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .trade-result-sides { grid-template-columns: 1fr; }
}
.trade-result-total {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 10px;
}
.trade-player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--amber-mid);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.trade-player-card .hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.trade-player-card .pos,
.inj-search-suggest-item .pos {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.trade-player-card .val { color: var(--amber-mid); font-family: var(--font-display); }
.trade-player-card ul {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.stats-table th {
  text-align: right;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 10px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table td {
  text-align: right;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-table tbody tr:last-child td { border-bottom: none; }

.schedule-list { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-list .wk {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

textarea.note-input {
  width: 100%;
  min-height: 74px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}
.sentiment-row { display: flex; gap: 8px; margin: 10px 0; }
.sentiment-row button.active         { border-color: var(--amber-mid); color: var(--amber-mid); }
.sentiment-row button.active.like    { background: var(--green); color: #06210f; border-color: var(--green); }
.sentiment-row button.active.dislike { background: var(--red);   color: #2a0a0a; border-color: var(--red); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.owned-list {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.stat-pos-group { margin-bottom: 8px; }

/* Discover panel: same amber system as the rest of BellCow (--amber-mid /
   --bg-card / --border-amber), styled as a raised card so the one-click
   auto-discovery flow still reads as the "smart" path without inventing a
   theme of its own. The pulsing dot borrows the language of .bc-alert-pill
   (the snipe-alert pills) so "discovery" feels like the same kind of live,
   attention-grabbing signal elsewhere in the app. */
.discover-panel {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-amber);
  background: var(--bg-card);
}
.discover-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.discover-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-bright);
  flex-shrink: 0;
  animation: bc-blink 1.6s ease-in-out infinite;
}
.discover-title { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-primary); }
.discover-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.discover-btn { margin-left: auto; white-space: nowrap; }
.discover-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.discover-league-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.discover-league-row .name { font-size: 13px; color: var(--text-primary); }
.discover-league-row .meta { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.discover-league-row button {
  background: transparent;
  border: 1px solid var(--border-amber);
  color: var(--amber-mid);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  cursor: pointer;
}
.discover-league-row button:hover { background: var(--bg-card-hover); color: var(--amber-glow); }
.discover-league-row button:disabled { opacity: 0.6; cursor: default; }

/* ============================================================
   FantasyOS port — analysis tabs, badges, pills
   Component classes lifted from fantasyos/src/draft-board.html and
   re-skinned onto Big Board's tokens. Namespaced so nothing collides
   with the existing .badge / .tabs rules above.
   ============================================================ */

/* --- Second tab row: the 7 analysis views ---------------- */
.tabs.analysis-tabs {
  padding: 12px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  flex-wrap: wrap;
}
.tabs.analysis-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: background .12s ease, color .12s ease;
}
.tabs.analysis-tabs button:hover { color: var(--text); filter: none; background: var(--panel-2); }
.tabs.analysis-tabs button.active {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--accent);
}
.tabs.analysis-tabs .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- Position pill --------------------------------------- */
.pos-pill {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* --- Injury status chips --------------------------------- */
.inj-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
}
.player-name + .inj-status { margin-left: 6px; }
.inj-Q  { background: #e0a34f; color: #1c1200; }
.inj-O  { background: #e57373; color: #1a0000; }
.inj-IR { background: #9e2a2a; color: #fff; }
.inj-A  { background: #2a5d3a; color: #d6f3df; }
.inj-S  { background: #4a4a6a; color: #dcdcf0; }

.inj-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  line-height: 16px;
  margin-left: 5px;
  vertical-align: middle;
}
.inj-badge-Q  { background: #e0a34f; color: #1c1200; }
.inj-badge-O  { background: #e57373; color: #1a0000; }
.inj-badge-IR { background: #9e2a2a; color: #fff; }
.inj-badge-A  { background: #2a5d3a; color: #d6f3df; }
.inj-badge-S  { background: #4a4a6a; color: #dcdcf0; }

/* --- Team efficiency badges ------------------------------ */
.eff-badge, .eff-badge-bot, .eff-badge-newteam {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: .03em;
  white-space: nowrap;
}
.eff-badge     { background: #2a5d3a; color: #9fe3b3; }
.eff-badge-bot { background: #5d2a2a; color: #f3a0a0; }
/* #312: neither a green "good" nor red "bad" signal on its own -- a team
   change reads differently depending on context (landing spot, badge
   pairing with TOP5/BOT5 OFF), so it gets its own neutral yellow rather
   than reusing the good/bad colors above. */
.eff-badge-newteam { background: #5d5223; color: #f3d998; }

/* --- Analysis blurb card --------------------------------- */
.analysis-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0 14px;
}
.analysis-card h3 { margin: 0 0 8px; font-size: 14px; }
.analysis-card p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.analysis-card p:last-child { margin-bottom: 0; }
.analysis-card b { color: var(--text); font-weight: 600; }

/* --- Value deltas ---------------------------------------- */
.val-up   { color: var(--up); font-weight: 700; }
.val-down { color: var(--down); font-weight: 700; }
.val-0    { color: var(--text-dim); }

/* --- Injury tab filter bar ------------------------------- */
.inj-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.inj-filter {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
}
.inj-filter[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.inj-team-sel {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
}
.inj-updated { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.game-log-season-sel {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
  margin-bottom: 8px;
}
.inj-comment { font-size: 11.5px; color: var(--text-dim); max-width: 420px; line-height: 1.4; }
.inj-rank { font-weight: 800; color: var(--accent); }

.inj-loading { text-align: center; padding: 48px 20px; color: var(--text-dim); font-size: 14px; }
.inj-loading .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Player-modal mini charts ---------------------------- */
.inj-timeline { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.inj-row { display: flex; gap: 10px; align-items: center; }
.inj-row .yr { font-weight: 800; width: 46px; color: var(--text-dim); font-size: 12px; }
.inj-bar { height: 8px; border-radius: 4px; background: var(--border); flex: 1; position: relative; overflow: hidden; }
.inj-bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--down); border-radius: 4px; }
.inj-row .wk { width: 160px; text-align: right; color: var(--text-dim); font-size: 11px; }

/* Matches .reasoning-box's card shell (bg-card / border-subtle / 8px radius)
   so a list of external quotes reads as belonging to the same modal instead
   of a bare-outline box floating on the page background -- headline uses the
   same 13px/1.6 body-text rhythm as .owned-list/.reasoning-box, and the meta
   line reuses .stat-tile .l's uppercase-label treatment rather than a plain
   dim caption, so it looks like an established UI pattern, not a one-off. */
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.news-headline { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.news-meta {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.age-chart { display: flex; align-items: flex-end; gap: 3px; height: 84px; margin-top: 8px; }
.age-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.age-col .bar { width: 100%; background: var(--wr); border-radius: 2px 2px 0 0; opacity: .75; min-height: 2px; }
.age-col.me .bar { background: var(--accent); opacity: 1; }
.age-col .ag { font-size: 9px; color: var(--text-dim); }

/* --- Onboarding modal ------------------------------------ */
.onboarding .modal { max-width: 480px; }
.onboarding h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0; }
.onboarding .sub { color: var(--text-dim); font-size: 13px; margin: 6px 0 20px; line-height: 1.5; }
.onboarding .ob-field { margin-bottom: 18px; }
.onboarding .ob-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 8px; }
.onboarding .ob-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.onboarding .ob-choice {
  flex: 1 1 auto;
  min-width: 88px;
  text-align: center;
  background: var(--panel-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.onboarding .ob-choice[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgba(200,134,10,.16); }
.onboarding input[type=number] {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.onboarding .ob-submit { width: 100%; padding: 11px; font-size: 14px; font-weight: 600; border-radius: 8px; }
/* #190: the login gate's "Sign in with Google" control is an <a>, not a
   <button> -- it shares .ob-submit's sizing with the onboarding wizard's
   real <button> submits but never picked up the base `button` rule's amber
   background/color, since that rule only targets <button>. Rendered as a
   bare, unstyled blue underlined link instead of a real button. */
a.ob-submit {
  display: block;
  background: var(--amber-mid);
  color: var(--bg-base);
  text-decoration: none;
  text-align: center;
  transition: background .15s;
}
a.ob-submit:hover { background: var(--amber-glow); }
.onboarding .ob-note { font-size: 11.5px; color: var(--text-dim); text-align: center; margin-top: 12px; line-height: 1.5; }
/* #62/#63: the optional "connect your league now?" onboarding step's decline
   control -- deliberately not styled like a real button (no border, no fill).
   This step has to read as skippable at a glance, not as a second required
   choice sitting next to .ob-submit. */
.onboarding .ob-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  cursor: pointer;
  margin-top: 12px;
  padding: 4px;
}
.onboarding .ob-skip:hover { color: var(--amber-mid); background: none; }

/* #89: guided feature tour. The highlight ring's own huge-spread box-shadow
   does the dimming (a transparent fill "hole" over 9999px of shadow) so
   there's no separate cutout/mask to compute for whichever live nav item
   app.js positions it over via getBoundingClientRect() -- the backdrop div
   underneath exists only to swallow clicks on the dimmed page while a step
   is showing, not to render anything itself. */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
}
.tour-highlight {
  position: fixed;
  z-index: 81;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(5, 4, 2, .82), 0 0 0 2px var(--amber-bright);
  pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
  display: none;
}
.tour-bubble {
  position: fixed;
  z-index: 82;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  transition: top .2s ease, left .2s ease;
}
.tour-bubble h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.tour-step-count { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px; }
.tour-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.tour-body a { color: var(--amber-bright); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.tour-actions button { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }
/* Same understated no-fill look as .onboarding .ob-skip -- "skip" reads as
   skippable at a glance, not as a second real choice next to Next/Done. */
.tour-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}
.tour-skip:hover { color: var(--amber-mid); background: none; }

/* --- Analysis-only wide table (Team Efficiency) ---------- */
.eff-table-wrap { overflow-x: auto; }
table.board.compact td, table.board.compact th { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
/* Sticky compact-table headers are label-only, never interactive — but their
   `position: sticky` hit-test region can extend a little into the first body
   row depending on scroll/layout state, silently eating clicks meant for that
   row. Harmless to disable pointer events here since there's nothing in a
   compact-table header to click; found while adding the first clickable rows
   (Strength of Schedule) to this table pattern — same table shape the
   read-only Team Efficiency tab already used, just never surfaced before
   since nothing there was ever clickable. */
table.board.compact thead th { pointer-events: none; }

/* --- Shared click-to-expand row (SOS) ------------------------ */
.expand-caret { color: var(--text-muted); font-size: 11px; }

/* --- Strength of Schedule --------------------------------- */
.sos-hard { color: #f3a0a0; font-weight: 700; }
.sos-mid  { color: var(--text-primary); }
.sos-easy { color: #9fe3b3; font-weight: 700; }
.sos-team-row { cursor: pointer; }
.sos-team-row:hover { background: var(--bg-card-hover); }
.sos-week-table { margin: 6px 0 10px; }
.sos-week-table th, .sos-week-table td { padding: 5px 8px; font-size: 12px; }
.sos-detail-row td { background: var(--bg-surface); }

/* ============================================================
   FOOTER
   ============================================================ */

.bc-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
  padding: 24px 20px 40px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.bc-footer .wordmark {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
}
.bc-footer .wordmark span { color: var(--amber-mid); }
.bc-footer .sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .bc-nav { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .bc-nav-links { gap: 16px; order: 3; width: 100%; }
  .bc-hero { margin: 16px; padding: 24px 20px; }
  .bc-hero-title { font-size: 32px; }
  #boardHero .bc-hero-sub { position: static; text-align: left; margin-top: 14px; max-width: none; }
  #boardHero .bc-hero-titlerow, #boardHero .bc-hero-tagline { max-width: none; }
  .bc-ticker, .bc-controls, .setup-panel, .bc-alert-row, .discover-panel { margin-left: 16px; margin-right: 16px; }
  main { padding: 0 16px 48px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  table.board th { position: static; }
  .inj-lab-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INJURY HISTORY LAB — BellCow amber ticker + severity bars
   ============================================================ */

.inj-lab { margin-top: 8px; }
.inj-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.inj-lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
}
.inj-sev-bars { display: flex; flex-direction: column; gap: 8px; }
.inj-sev-row {
  display: grid;
  grid-template-columns: 88px 1fr 64px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.inj-sev-label {
  color: var(--text-secondary);
  text-transform: lowercase;
  font-variant-numeric: tabular-nums;
}
.inj-sev-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.inj-sev-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .35s ease;
}
.inj-sev-n {
  text-align: right;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.inj-player-card {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: 12px;
  padding: 16px 18px;
}
.inj-player-card p {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.inj-player-card b { color: var(--text-primary); }
.inj-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.inj-escalate {
  color: var(--red) !important;
  font-weight: 600;
}
.inj-recent { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.inj-recent-line {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inj-sev-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 78px;
  text-align: center;
}
.sev-severe { background: #5d2a2a; color: #f3a0a0; }
.sev-concussion { background: #1e3a55; color: #9ec7ef; }
.sev-standard { background: #3a2e14; color: var(--amber-glow); }
.sev-non_injury { background: #1e3a28; color: #9fe3b3; }
.sev-unknown { background: var(--bg-elevated); color: var(--text-muted); }
.inj-search-wrap { position: relative; width: 260px; max-width: 100%; }
.inj-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  -webkit-appearance: none;
  appearance: none;
}
.inj-search-input:focus {
  border-color: var(--amber-mid);
}
.inj-search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-elevated);
  border: 1px solid var(--border-amber);
  border-radius: 8px;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.inj-search-suggest-item {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.inj-search-suggest-item:hover,
.inj-search-suggest-item.active {
  background: var(--bg-card-hover);
  color: var(--amber-mid);
}
.inj-table-wrap {
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.inj-board-table { margin: 0; }
.inj-board-table thead th:first-child { border-top-left-radius: 10px; }
.inj-board-table thead th:last-child { border-top-right-radius: 10px; }
/* This table lives inside a card, not the page-level scroll — the sticky
   offset from table.board (tuned for the fixed top nav) has no scroll
   context here and just shoves the header down over row 1.
   Selector has to be table.board.inj-board-table, not just .inj-board-table --
   the markup carries both classes ("board inj-board-table"), and .board th's
   own sticky rule (table + class + element = higher specificity than a bare
   class + element selector) was winning over this override regardless of
   which rule came later in the file. That's why the header looked "wack" --
   this never actually applied, on the injuries page either, until now. */
table.board.inj-board-table th { position: static; top: auto; }
#injuriesView .bc-ticker { margin-top: 0; }
