:root {
  color-scheme: dark;
  --rr-font-family: "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --rush-black: #0B0D12;
  --slate-charcoal: #171B22;
  --ice-white: #F4F7FB;
  --steel-gray: #A5B0C0;
  --market-green: #22C55E;
  --electric-blue: #3B82F6;
  --dynasty-gold: #F5B942;
  --bg: var(--rush-black);
  --panel: var(--slate-charcoal);
  --panel-2: #202631;
  --panel-3: #111721;
  --text: var(--ice-white);
  --muted: var(--steel-gray);
  --border: #2a3442;
  --accent: var(--electric-blue);
  --accent-strong: #74A9F8;
  --blue: var(--electric-blue);
  --blue-bg: rgba(59, 130, 246, 0.16);
  --violet: #a78bfa;
  --violet-bg: rgba(167, 139, 250, 0.14);
  --warning-bg: rgba(245, 185, 66, 0.14);
  --warning-text: var(--dynasty-gold);
  --error-bg: rgba(239, 68, 68, 0.14);
  --error-text: #fca5a5;
  --good-bg: rgba(34, 197, 94, 0.14);
  --good-text: #62D981;
  --badge-bg: rgba(154, 164, 178, 0.16);
  --badge-text: var(--ice-white);
  --badge-missing-bg: rgba(245, 185, 66, 0.14);
  --badge-missing-text: var(--dynasty-gold);
  --badge-empty-bg: rgba(154, 164, 178, 0.12);
  --badge-empty-text: var(--steel-gray);
  --surface-blue: rgba(59, 130, 246, 0.11);
  --surface-green: rgba(34, 197, 94, 0.09);
  --surface-gold: rgba(245, 185, 66, 0.1);
  --surface-red: rgba(239, 68, 68, 0.1);
  --scanline-blue: rgba(59, 130, 246, 0.34);
  --scanline-green: rgba(34, 197, 94, 0.28);
  --scanline-gold: rgba(245, 185, 66, 0.32);
}

/* RotoRally professional product redesign v1 */
:root {
  --rr-page-max: 1480px;
  --rr-surface: rgba(15, 20, 29, 0.92);
  --rr-surface-strong: rgba(20, 27, 39, 0.98);
  --rr-surface-soft: rgba(255, 255, 255, 0.035);
  --rr-line: rgba(148, 163, 184, 0.18);
  --rr-line-strong: rgba(96, 165, 250, 0.32);
  --rr-text-soft: #CAD3DF;
  --rr-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body {
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.96), rgba(8, 12, 20, 0.98)),
    var(--rush-black);
  font-family: var(--rr-font-family);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: rgba(7, 10, 16, 0.94);
  backdrop-filter: blur(14px);
}

.workspace-section,
.placeholder-shell,
.marketplace-shell {
  width: min(var(--rr-page-max), calc(100vw - 48px));
  margin-inline: auto;
}

.marketplace-product-shell {
  gap: 20px;
}

.site-logo {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-nav {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 5px;
  background: rgba(4, 7, 13, 0.58);
}

.site-nav-button {
  min-height: 36px;
  border-color: transparent;
  border-radius: 6px;
  padding-inline: 16px;
  color: #cbd5e1;
  font-weight: 800;
}

.site-nav-button:hover,
.site-nav-button:focus,
.site-nav-button.active {
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45);
  color: var(--ice-white);
}

.marketplace-active-team-header {
  padding-block: 28px 2px;
}

.marketplace-active-team-row {
  align-items: end;
  gap: 18px 24px;
}

.marketplace-active-team-label,
.marketplace-section-eyebrow {
  display: block;
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-active-team-name,
.marketplace-active-team-select {
  color: var(--ice-white);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
}

.marketplace-active-team-kpis {
  flex-basis: 390px;
  max-width: 430px;
}

.marketplace-active-team-header .marketplace-roster-kpi-card,
.marketplace-mini-metric,
.marketplace-stat-card,
.player-page-fact {
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--rr-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.marketplace-active-team-header .marketplace-roster-kpi-card {
  min-height: 66px;
}

.marketplace-view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  padding-bottom: 4px;
}

.marketplace-view-title {
  display: grid;
  gap: 4px;
}

.marketplace-view-title h2 {
  font-size: 28px;
  font-weight: 850;
}

.marketplace-view-title p {
  max-width: 760px;
  margin: 0;
  color: var(--rr-text-soft);
  line-height: 1.45;
}

.marketplace-mini-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
}

.marketplace-mini-metric {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 11px 13px;
}

.marketplace-mini-metric span {
  color: #aab8ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marketplace-mini-metric strong {
  color: var(--ice-white);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.marketplace-mini-metric small {
  color: #90a0b4;
  font-size: 12px;
}

.marketplace-card,
.section-card {
  border-color: var(--rr-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    var(--rr-surface);
  box-shadow: var(--rr-shadow);
}

.marketplace-listing-card,
.marketplace-public-team-profile {
  padding: 18px;
}

.marketplace-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.marketplace-card-title-row h3 {
  margin: 0;
  font-size: 20px;
}

.marketplace-card-title-row strong {
  color: var(--dynasty-gold);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.marketplace-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(280px, 380px);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 7, 13, 0.38);
}

main .marketplace-help-card {
  border-color: var(--rr-table-frame-line);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--rr-paper-ink);
  box-shadow: 0 8px 22px rgba(8, 15, 26, 0.1);
}

main .marketplace-help-card h3,
main .marketplace-help-card strong,
main .marketplace-help-card .detail-metrics dd {
  color: var(--rr-paper-ink);
}

main .marketplace-help-card p,
main .marketplace-help-card li,
main .marketplace-help-card .detail-metrics dt {
  color: #536779;
}

main .marketplace-help-card .detail-metrics div {
  border-color: #d9e1eb;
}

.marketplace-filter-primary,
.marketplace-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.marketplace-filter-option {
  gap: 6px;
}

.marketplace-filter-option > span:first-child,
.marketplace-filter-option span {
  color: #b7c4d5;
  font-size: 12px;
  font-weight: 850;
}

.marketplace-select,
.marketplace-input,
.marketplace-number-input {
  min-height: 38px;
  border-color: rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(5, 8, 14, 0.72);
  color: var(--ice-white);
}

.marketplace-filter-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(15, 23, 42, 0.42);
}

.marketplace-filter-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--electric-blue);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.36);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.detail-table,
.marketplace-table {
  border-collapse: separate;
  border-spacing: 0;
}

.marketplace-unified-table {
  min-width: 1290px;
}

.marketplace-roster-slots-table {
  min-width: 980px;
}

.marketplace-standings-table {
  min-width: 760px;
}

.marketplace-table th,
.detail-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 15, 24, 0.96);
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketplace-table td,
.detail-table td {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  color: #e7ecf4;
}

.marketplace-unified-table th:first-child,
.marketplace-unified-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 310px;
  background: rgba(13, 19, 29, 0.98);
}

.marketplace-unified-table th:last-child,
.marketplace-unified-table td:last-child {
  position: sticky;
  z-index: 2;
  right: 0;
  background: rgba(13, 19, 29, 0.98);
}

.marketplace-player-summary-cell {
  gap: 8px;
  align-items: center;
}

.marketplace-player-label {
  display: inline-grid;
  gap: 2px;
  vertical-align: middle;
}

.marketplace-player-label > span {
  color: #aab8ca;
  font-size: 12px;
  font-weight: 750;
}

.player-page-link,
.marketplace-public-team-link {
  color: #8fb8ff;
}

.marketplace-signal-cell {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.marketplace-signal-cell strong {
  font-size: 13px;
}

.marketplace-signal-cell span {
  color: #aab8ca;
  font-size: 12px;
}

.marketplace-signal-gold strong {
  color: var(--dynasty-gold);
}

.marketplace-signal-green strong {
  color: #86efac;
}

.marketplace-signal-blue strong {
  color: #93c5fd;
}

.marketplace-signal-red strong {
  color: #fca5a5;
}

.marketplace-signal-muted strong {
  color: #cbd5e1;
}

.marketplace-status-pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.marketplace-small-button,
.auth-fixture-button {
  min-height: 36px;
  border-color: rgba(96, 165, 250, 0.54);
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.14);
  color: #bfd7ff;
  font-weight: 900;
}

.marketplace-small-button:hover,
.marketplace-small-button:focus,
.auth-fixture-button:hover,
.auth-fixture-button:focus {
  background: rgba(37, 99, 235, 0.24);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.marketplace-muted-button {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.38);
  color: #cbd5e1;
}

.marketplace-public-team-profile-header {
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 14px;
}

.marketplace-profile-skeleton {
  display: grid;
  gap: 12px;
}

.marketplace-profile-skeleton span {
  display: block;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.08));
}

.marketplace-current-team-row {
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.11), rgba(59, 130, 246, 0.055));
}

.marketplace-rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(245, 185, 66, 0.38);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.09);
  color: var(--dynasty-gold);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.marketplace-event-list li {
  border-color: rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(5, 8, 14, 0.28);
}

.marketplace-bid-popover {
  width: min(460px, calc(100vw - 28px));
  border-color: rgba(96, 165, 250, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.98) 46%, rgba(16, 185, 129, 0.12)),
    #111827;
}

.account-menu-panel {
  border-color: rgba(96, 165, 250, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.98) 38%, rgba(16, 185, 129, 0.08)),
    #0f172a;
  box-shadow: var(--rr-shadow);
}

.auth-fixture-button-danger {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.player-page-shell {
  width: min(var(--rr-page-max), calc(100vw - 48px));
  margin-inline: auto;
}

.player-page-hero {
  display: grid;
  gap: 18px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.11), transparent 42%),
    var(--rr-surface);
  box-shadow: var(--rr-shadow);
}

.player-page-identity-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.player-initials-avatar-large {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(16, 185, 129, 0.12));
  color: var(--ice-white);
  font-size: 20px;
  font-weight: 950;
}

.player-page-asset-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.player-page-fact {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.player-page-fact span,
.player-page-fact small {
  color: #9fb0c4;
  font-size: 12px;
}

.player-page-fact strong {
  color: var(--ice-white);
  font-size: 16px;
}

@media (max-width: 1120px) {
  .marketplace-view-header,
  .marketplace-filter-bar {
    grid-template-columns: 1fr;
  }

  .marketplace-view-meta {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .header-menu,
  .workspace-section,
  .placeholder-shell,
  .marketplace-shell,
  .player-page-shell {
    width: min(100%, calc(100vw - 24px));
  }

  main {
    padding-inline: 12px;
  }

  .marketplace-active-team-header {
    padding-block: 18px 0;
  }

  .marketplace-active-team-name,
  .marketplace-active-team-select {
    font-size: 28px;
  }

  .marketplace-view-title h2 {
    font-size: 24px;
  }

  .marketplace-mini-metric-row,
  .marketplace-active-team-header .marketplace-roster-kpi-strip,
  .player-page-asset-summary {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .marketplace-mini-metric,
  .marketplace-roster-kpi-card,
  .player-page-fact {
    min-width: 128px;
  }

  .marketplace-listing-card,
  .marketplace-public-team-profile,
  .player-page-hero {
    padding: 14px;
  }

  .marketplace-unified-table {
    min-width: 1230px;
  }

  .marketplace-roster-slots-table {
    min-width: 920px;
  }

  .marketplace-unified-table th:first-child,
  .marketplace-unified-table td:first-child {
    min-width: 270px;
  }

  .marketplace-filter-primary,
  .marketplace-filter-group {
    width: 100%;
  }

  .marketplace-filter-option,
  .marketplace-filter-option .marketplace-select,
  .marketplace-filter-search,
  .marketplace-filter-search .marketplace-input {
    width: 100%;
  }

  .player-page-identity-cluster {
    align-items: flex-start;
  }

  .identity-title-row {
    gap: 16px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--rr-font-family);
  font-size: 15px;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  max-width: 100%;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  background: var(--rush-black);
  color: var(--ice-white);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--steel-gray);
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

main {
  display: grid;
  gap: 16px;
  padding: 20px 32px 32px;
}

button {
  border: 1px solid var(--border);
  border-radius: 6px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: min(270px, 42vw);
  height: 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.site-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.site-nav-button {
  border-color: rgba(154, 164, 178, 0.32);
  background: transparent;
  color: var(--ice-white);
}

.site-nav-button:hover,
.site-nav-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--electric-blue);
  color: var(--ice-white);
}

.workspace-section {
  display: grid;
  gap: 16px;
}

.global-player-search {
  position: relative;
  display: grid;
  gap: 5px;
  width: min(360px, 100%);
  justify-self: end;
  color: var(--steel-gray);
}

.global-player-search label {
  color: var(--steel-gray);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.global-search-box {
  position: relative;
}

.global-search-box input {
  width: 100%;
  border-color: rgba(154, 164, 178, 0.38);
  background: var(--panel);
}

.global-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.global-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus {
  background: var(--panel-2);
  color: var(--text);
}

.global-search-result span {
  font-weight: 700;
}

.global-search-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-search-result small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.global-search-result strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent-strong);
}

.global-search-empty {
  padding: 12px;
  color: var(--muted);
}

.auth-fixture-panel {
  position: relative;
  min-width: 0;
}

.auth-fixture-loading,
.auth-fixture-shell {
  border: 1px solid rgba(154, 164, 178, 0.28);
  border-radius: 8px;
  background: rgba(23, 27, 34, 0.86);
  color: var(--ice-white);
}

.auth-fixture-loading {
  padding: 10px 12px;
  color: var(--steel-gray);
}

.auth-fixture-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 12px 18px;
  padding: 12px;
}

.auth-fixture-main,
.auth-fixture-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.auth-fixture-kicker,
.auth-fixture-identity,
.auth-fixture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.auth-fixture-kicker span,
.auth-fixture-label,
.auth-fixture-flags dt,
.auth-fixture-note,
.auth-fixture-empty {
  color: var(--steel-gray);
}

.auth-fixture-kicker strong {
  border: 1px solid rgba(59, 130, 246, 0.46);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.18);
  color: var(--ice-white);
  font-size: 12px;
}

.auth-fixture-identity > div {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.auth-fixture-identity strong {
  font-size: 15px;
}

.auth-fixture-identity small,
.auth-fixture-flags dd {
  color: var(--ice-white);
}

.auth-fixture-note,
.auth-fixture-empty {
  margin: 0;
  font-size: 13px;
}

.auth-fixture-team-select {
  display: grid;
  gap: 5px;
  color: var(--steel-gray);
  font-size: 13px;
}

.auth-fixture-team-select select {
  min-height: 34px;
  border: 1px solid rgba(154, 164, 178, 0.42);
  border-radius: 6px;
  padding: 5px 7px;
  background: var(--panel);
  color: var(--text);
}

.auth-fixture-button {
  min-height: 32px;
  border-color: rgba(154, 164, 178, 0.42);
  background: rgba(59, 130, 246, 0.12);
  color: var(--ice-white);
}

.auth-fixture-button-action {
  cursor: pointer;
}

.auth-fixture-button-action:hover {
  background: rgba(59, 130, 246, 0.18);
}

.auth-fixture-button-danger {
  border-color: rgba(245, 185, 66, 0.42);
  background: rgba(245, 185, 66, 0.1);
  color: var(--dynasty-gold);
  cursor: pointer;
}

.auth-fixture-button-danger:hover {
  background: rgba(245, 185, 66, 0.16);
}

.auth-fixture-button:disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.account-menu {
  position: relative;
  width: max-content;
  z-index: 180;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 8px;
  padding: 9px 14px;
  background: rgba(23, 27, 34, 0.88);
  color: var(--ice-white);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.account-menu-trigger::-webkit-details-marker {
  display: none;
}

.account-menu-trigger::after {
  margin-left: 8px;
  color: var(--steel-gray);
  content: "▾";
  font-size: 11px;
}

.account-sign-in-button::after {
  content: none;
}

.account-menu .account-menu-trigger {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0;
}

.account-menu .account-menu-trigger::after {
  content: none;
}

.account-profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ice-white);
}

.account-profile-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.account-menu[open] .account-menu-trigger {
  border-color: var(--electric-blue);
  background: rgba(59, 130, 246, 0.16);
}

.account-menu[open] .account-menu-trigger::after {
  content: "▴";
}

.account-menu[open] .account-menu-trigger::after {
  content: none;
}

.account-menu-panel {
  position: absolute;
  z-index: 190;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  gap: 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  padding: 14px;
  background: #111721;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.account-menu[open] {
  z-index: 220;
}

.account-menu[open] .account-menu-panel {
  z-index: 230;
}

.account-menu-section,
.account-menu-meta > div {
  display: grid;
  gap: 4px;
}

.account-menu-user-flow {
  border-bottom: 1px solid rgba(154, 164, 178, 0.16);
  padding-bottom: 10px;
}

.account-menu-section strong,
.account-menu-meta strong {
  color: var(--ice-white);
}

.account-menu-section small,
.account-menu-meta small {
  color: var(--steel-gray);
}

.account-menu-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-menu-actions {
  justify-content: flex-start;
}

.account-menu-primary-actions .auth-fixture-button {
  min-width: 112px;
}

.account-notification-settings {
  border-bottom: 1px solid rgba(154, 164, 178, 0.16);
  border-top: 1px solid rgba(154, 164, 178, 0.16);
  padding: 8px 0;
}

.account-notification-badge {
  align-items: center;
  background: #dc2626;
  border: 2px solid #081827;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 0.62rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 3px;
  position: absolute;
  right: -4px;
  top: -4px;
}

.account-notification-inbox {
  border-top: 1px solid rgba(154, 164, 178, 0.16);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.account-notification-inbox-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.account-notification-inbox-heading > span {
  display: grid;
  gap: 2px;
}

.account-notification-inbox-heading strong,
.account-notification-inbox li strong {
  color: var(--ice-white);
}

.account-notification-inbox-heading small,
.account-notification-inbox li small {
  color: var(--steel-gray);
}

.account-notification-inbox-heading button {
  background: transparent;
  border: 0;
  color: #7db7ff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px;
}

.account-notification-inbox ul {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-notification-inbox li {
  border-left: 2px solid transparent;
  display: grid;
  gap: 2px;
  padding: 5px 7px;
}

.account-notification-inbox li.is-unread {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #60a5fa;
}

.account-notification-inbox li.is-read {
  opacity: 0.72;
}

.account-notification-settings-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ice-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  text-align: left;
  width: 100%;
}

.account-notification-settings-toggle > span:first-child {
  display: grid;
  gap: 2px;
}

.account-notification-settings-toggle small,
.account-notification-settings-body > p,
.account-notification-promotional > small {
  color: var(--steel-gray);
  font-size: 0.74rem;
}

.account-notification-settings-body {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.account-notification-settings-body > p {
  line-height: 1.45;
  margin: 0;
}

.account-notification-category-list,
.account-notification-promotional {
  display: grid;
  gap: 7px;
}

.account-notification-category-list {
  border-left: 2px solid rgba(59, 130, 246, 0.28);
  padding-left: 10px;
}

.account-notification-preference {
  align-items: center;
  color: #d9e3ee;
  cursor: pointer;
  display: grid;
  font-size: 0.78rem;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 26px;
  position: relative;
}

.account-notification-preference input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.account-notification-switch {
  background: #3b4655;
  border-radius: 999px;
  display: block;
  height: 18px;
  position: relative;
  transition: background 140ms ease;
  width: 32px;
}

.account-notification-switch::after {
  background: #f8fafc;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 140ms ease;
  width: 14px;
}

.account-notification-preference input:checked + .account-notification-switch {
  background: #15803d;
}

.account-notification-preference input:checked + .account-notification-switch::after {
  transform: translateX(14px);
}

.account-notification-preference:focus-within .account-notification-switch {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}

.account-notification-preference.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.account-manager-invite {
  border-bottom: 1px solid rgba(154, 164, 178, 0.16);
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
}

.account-manager-invite > div {
  display: grid;
  gap: 2px;
}

.account-manager-invite strong {
  color: var(--ice-white);
}

.account-manager-invite small {
  color: var(--steel-gray);
  font-size: 0.72rem;
  line-height: 1.4;
}

.account-manager-invite .auth-fixture-button {
  justify-self: start;
}

.account-menu-diagnostic-actions .auth-fixture-button,
.account-menu-diagnostic-fixture-controls .auth-fixture-button {
  border-color: rgba(154, 164, 178, 0.28);
  background: rgba(23, 27, 34, 0.58);
  color: var(--steel-gray);
}

.account-menu .frontend-account-bootstrap {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.account-menu .frontend-account-bootstrap .auth-fixture-button {
  justify-self: start;
}

.account-sign-in-shell {
  display: flex;
  justify-content: flex-end;
}

.frontend-account-team-management {
  display: grid;
  gap: 10px;
}

.account-menu-field {
  display: grid;
  gap: 6px;
  color: var(--steel-gray);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.account-menu-field select,
.account-menu-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(154, 164, 178, 0.28);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(11, 13, 18, 0.72);
  color: var(--ice-white);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.account-menu-empty {
  min-height: 42px;
  border: 1px solid rgba(154, 164, 178, 0.18);
  border-radius: 8px;
  padding: 11px 10px;
  background: rgba(11, 13, 18, 0.42);
  color: var(--steel-gray);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.account-menu-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-menu-new-team-button {
  justify-self: start;
}

.frontend-account-team-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(154, 164, 178, 0.16);
  padding-top: 10px;
}

.frontend-account-team-status {
  color: var(--steel-gray);
  line-height: 1.45;
}

.frontend-account-team-delete-confirmation {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(245, 185, 66, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(245, 185, 66, 0.08);
}

.frontend-account-team-delete-confirmation strong {
  color: var(--ice-white);
}

.frontend-account-team-delete-confirmation p {
  margin: 0;
  color: var(--steel-gray);
}

.auth-fixture-flags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
}

.auth-fixture-flags div {
  display: grid;
  gap: 2px;
}

.auth-fixture-flags dt,
.auth-fixture-flags dd {
  margin: 0;
  font-size: 12px;
}

.frontend-clerk-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(154, 164, 178, 0.28);
  padding-top: 12px;
}

.frontend-clerk-summary,
.frontend-clerk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.frontend-clerk-summary > div {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.frontend-clerk-summary small,
.frontend-clerk-mount-shell p,
.frontend-clerk-mount-state {
  color: var(--steel-gray);
  font-size: 13px;
}

.frontend-clerk-mount-shell,
.frontend-clerk-mount-state,
.frontend-clerk-linked-preview,
.frontend-account-bootstrap {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(154, 164, 178, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(11, 13, 18, 0.3);
}

.frontend-clerk-linked-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frontend-clerk-linked-preview-note {
  margin: 0;
  color: var(--steel-gray);
  font-size: 13px;
}

.frontend-account-bootstrap {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px) auto;
  align-items: end;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(34, 197, 94, 0.08));
}

.frontend-account-bootstrap-field {
  display: grid;
  gap: 5px;
  color: var(--steel-gray);
  font-size: 12px;
}

.frontend-account-bootstrap-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(154, 164, 178, 0.42);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(11, 13, 18, 0.68);
  color: var(--ice-white);
  font: inherit;
}

.frontend-account-bootstrap-reason {
  grid-column: 1 / -1;
  color: var(--steel-gray);
}

.frontend-clerk-mount-warning {
  border-color: rgba(255, 221, 145, 0.52);
  background: rgba(255, 247, 223, 0.08);
}

.frontend-clerk-mount {
  min-height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.frontend-clerk-flags {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-page-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.player-identity-link,
.team-page-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.player-page-link:hover,
.player-page-link:focus {
  text-decoration: underline;
}

.player-initials-avatar,
.team-abbreviation-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  user-select: none;
}

.player-initials-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--ice-white);
  font-size: 12px;
}

.player-initials-avatar-tiny {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.player-initials-avatar-medium {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.player-initials-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--blue);
  font-size: 22px;
}

.team-abbreviation-badge {
  min-width: 38px;
  min-height: 28px;
  border-color: var(--team-badge-border, var(--border));
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--team-badge-bg, rgba(245, 185, 66, 0.14));
  color: var(--team-badge-fg, var(--dynasty-gold));
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.16);
  letter-spacing: 0;
  font-size: 12px;
}

.team-abbreviation-badge-tiny {
  min-width: 34px;
  min-height: 22px;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
}

.team-abbreviation-badge-medium {
  min-width: 48px;
  min-height: 36px;
  font-size: 14px;
}

.team-abbreviation-badge-large {
  min-width: 74px;
  min-height: 58px;
  border-radius: 16px;
  font-size: 20px;
}

.team-page-link:hover .team-abbreviation-badge,
.team-page-link:focus .team-abbreviation-badge {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 0 0 2px rgba(16, 35, 27, 0.08);
}

.identity-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-page-shell {
  display: grid;
  gap: 14px;
}

.team-page-shell {
  display: grid;
  gap: 14px;
}

.player-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.team-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.team-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.team-card-header h3 {
  margin-bottom: 0;
}

.team-page-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.team-page-link:hover,
.team-page-link:focus {
  text-decoration: underline;
}

.team-top-list {
  display: grid;
  gap: 7px;
}

.team-player-table,
.team-review-table {
  min-width: 0;
}

.articles-shell,
.article-detail-shell,
.news-shell,
.news-event-detail-shell {
  display: grid;
  gap: 14px;
}

.article-state-summary,
.news-state-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.article-card-grid,
.news-event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.article-card,
.news-event-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.article-card-header,
.news-event-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.article-card-header h3,
.news-event-card-header h3 {
  margin-bottom: 0;
}

.article-card p,
.article-detail-card p,
.news-event-card p,
.news-event-detail-card p {
  margin: 0;
  color: var(--muted);
}

.article-meta-row,
.news-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
}

.news-link-list {
  align-items: center;
}

.inline-link-button {
  display: inline;
  min-height: 0;
  margin: 0 4px 4px 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
}

.inline-link-button:hover,
.inline-link-button:focus {
  background: transparent;
  color: var(--blue);
}

.article-label-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-detail-card,
.news-event-detail-card {
  display: grid;
  gap: 10px;
}

.article-fact-list,
.news-fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.article-fact-list li,
.news-fact-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.article-fact-list span,
.news-fact-list span {
  color: var(--muted);
}

.article-citation-table,
.news-event-trace-table {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.health-banner,
.toolbar,
.view-tabs,
.table-shell,
.detail-panel,
.site-section-panel,
.error-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.health-banner {
  padding: 12px 14px;
}

.health-summary,
.freshness-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.health-summary {
  margin-bottom: 8px;
}

.freshness-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.freshness-pill small {
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.82;
}

.freshness-current {
  background: #dff2e8;
  color: var(--good-text);
}

.freshness-review {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.freshness-unavailable {
  background: var(--badge-empty-bg);
  color: var(--badge-empty-text);
}

.health-details {
  margin-top: 8px;
}

.health-details summary {
  cursor: pointer;
  font-weight: 600;
}

.health-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 10px 0 0;
}

.health-details div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.health-details dt {
  color: var(--muted);
  font-size: 12px;
}

.health-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.health-banner.good {
  background: var(--good-bg);
  color: var(--good-text);
}

.health-banner.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.health-banner.info {
  background: var(--surface-soft);
  color: var(--text-primary);
}

.health-banner.error,
.error-box {
  background: var(--error-bg);
  color: var(--error-text);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

select,
input,
button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

select,
input {
  padding: 6px 8px;
}

input[type="text"] {
  width: 72px;
  text-transform: uppercase;
}

input[type="search"] {
  width: min(360px, 70vw);
}

input[type="number"] {
  width: 82px;
}

.wide-control {
  min-width: min(360px, 100%);
}

button {
  padding: 7px 14px;
  background: var(--accent);
  color: var(--ice-white);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.tab-button {
  background: var(--panel);
  color: var(--text);
}

.tab-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ice-white);
}

.table-shell,
.detail-panel,
.site-section-panel {
  padding: 16px;
}

.placeholder-shell {
  display: grid;
  gap: 14px;
}

.placeholder-shell p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
}

.not-implemented-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 700;
}

.section-guardrails {
  margin-top: 2px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-health-shell {
  gap: 16px;
}

.health-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.health-stat-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.health-stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.health-stat-card strong {
  color: var(--accent-strong);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.section-card {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.section-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.data-health-card {
  display: grid;
  gap: 10px;
}

.team-breakdown-shell,
.jaguars-breakdown-shell {
  gap: 16px;
}

.team-breakdown-bio-grid,
.team-breakdown-target-grid,
.jaguars-bio-grid,
.jaguars-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-breakdown-bio-card,
.jaguars-bio-card {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.team-breakdown-bio-card h4,
.team-breakdown-target-grid h4,
.jaguars-bio-card h4,
.jaguars-target-grid h4 {
  margin: 0;
}

.team-breakdown-bio-card p,
.team-breakdown-target-grid p,
.jaguars-bio-card p,
.jaguars-target-grid p {
  margin: 0;
}

.team-breakdown-player-bio-card,
.jaguars-player-bio-card {
  display: grid;
  gap: 10px;
}

.team-breakdown-player-bio-card p,
.jaguars-player-bio-card p {
  margin: 0;
}

.team-breakdown-player-bio-notes,
.jaguars-player-bio-notes {
  display: grid;
  gap: 6px;
}

.team-breakdown-projection-table,
.jaguars-projection-table {
  min-width: 0;
}

.asset-policy-note {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--muted);
}

.asset-policy-note strong {
  color: var(--text);
}

.asset-policy-note-compact {
  margin-top: 10px;
  border-left-color: var(--blue);
  font-size: 13px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.source-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.issue-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.workflow-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.player-fantasy-summary-card {
  display: grid;
  gap: 8px;
}

.player-fantasy-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.coverage-warning {
  margin: 0;
  border-left: 4px solid #c48a00;
  padding: 8px 10px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 650;
}

.known-issues-table,
.review-priority-health-table,
.deferred-coverage-table {
  min-width: 0;
}

.known-issues-table th,
.known-issues-table td,
.review-priority-health-table th,
.review-priority-health-table td,
.deferred-coverage-table th,
.deferred-coverage-table td {
  vertical-align: top;
}

.diagnostics-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--panel);
}

.diagnostics-panel summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}

.table-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.table-heading p,
.detail-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-text {
  min-width: 190px;
  text-align: right;
}

.error-box {
  margin-bottom: 12px;
  padding: 10px 12px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
}

th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  color: var(--ice-white);
  font-size: 13px;
  white-space: normal;
}

.sort-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sort-button:hover {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr:focus {
  background: var(--panel-2);
  outline: none;
}

tbody tr.selected-row {
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 4px 0 0 var(--accent);
}

.player-cell {
  max-width: 150px;
  font-weight: 600;
}

.compact-cell,
.numeric-cell,
.badge-cell {
  white-space: normal;
}

.numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confidence-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
}

.source-badge {
  background: var(--blue-bg);
  color: var(--blue);
}

.accounting-badge {
  background: rgba(34, 197, 94, 0.14);
  color: var(--market-green);
}

.review-badge {
  background: var(--violet-bg);
  color: var(--violet);
}

.warning-badge {
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 650;
}

.canonical-badge {
  background: var(--good-bg);
  color: var(--good-text);
  font-weight: 650;
}

.missing-badge {
  background: var(--badge-missing-bg);
  color: var(--badge-missing-text);
  font-weight: 600;
}

.empty-badge {
  background: var(--badge-empty-bg);
  color: var(--badge-empty-text);
}

.prototype-detail-badge {
  background: var(--rush-black);
  color: var(--ice-white);
}

.detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.detail-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.detail-empty {
  max-width: 720px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.detail-card {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.wide-detail {
  grid-column: 1 / -1;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.detail-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.detail-metrics dt {
  color: var(--muted);
}

.detail-metrics dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.status-grid div {
  display: grid;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.status-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.status-grid dd {
  margin: 0;
  min-width: 0;
}

.wide-status {
  grid-column: 1 / -1;
}

.guardrail-copy {
  font-weight: 650;
}

.detail-table {
  min-width: 0;
  font-size: 14px;
}

.detail-table th,
.detail-table td {
  padding: 7px 8px;
  vertical-align: top;
}

.detail-table th {
  position: static;
}

.mini-table th,
.mini-table td {
  white-space: normal;
}

.research-table {
  table-layout: fixed;
}

.research-table details {
  max-width: 100%;
}

.research-table summary {
  cursor: pointer;
  color: var(--accent-strong);
}

.research-table p {
  margin: 7px 0 0;
}

.caveat-grid {
  display: grid;
  gap: 8px;
}

.caveat-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--text);
}

.caveat-grid strong {
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
}

.marketplace-data-loading-card {
  min-height: 240px;
}

.marketplace-loading-skeleton {
  position: relative;
  overflow: hidden;
}

.marketplace-loading-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.marketplace-loading-table {
  table-layout: fixed;
}

.marketplace-loading-table tbody tr {
  pointer-events: none;
}

.marketplace-loading-table td {
  height: 49px;
}

.marketplace-loading-bar {
  display: block;
  width: 72%;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(100, 116, 139, 0.12) 20%,
    rgba(59, 130, 246, 0.2) 42%,
    rgba(100, 116, 139, 0.12) 64%
  );
  background-size: 220% 100%;
  animation: marketplace-loading-shimmer 1.35s ease-in-out infinite;
}

.marketplace-loading-bar-1 {
  width: 86%;
}

.marketplace-loading-bar-2 {
  width: 58%;
}

.marketplace-loading-bar-3 {
  width: 70%;
}

.marketplace-loading-bar-4 {
  width: 44%;
}

@keyframes marketplace-loading-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-loading-bar {
    animation: none;
    background-position: 0 0;
  }
}

ul {
  margin: 0;
  padding-left: 20px;
}

.compact-list {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.compact-list span {
  color: var(--muted);
}

.compact-list strong {
  text-align: right;
}

.marketplace-public-league-list li {
  align-items: center;
}

.marketplace-public-league-list .marketplace-small-button {
  min-width: 70px;
}

.marketplace-league-link {
  color: var(--link);
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 3px;
}

.marketplace-league-link:hover,
.marketplace-league-link:focus {
  color: var(--link-strong);
  text-decoration: underline;
}

.marketplace-league-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.marketplace-league-profile-grid > .marketplace-league-standings-card,
.marketplace-league-profile-grid > .wide-detail {
  grid-column: 1 / -1;
}

.marketplace-current-league-card {
  gap: 12px;
}

.marketplace-pending-league-invite-card {
  grid-column: 1 / -1;
}

.marketplace-pending-league-invite-card .marketplace-card-title-row,
.marketplace-current-league-actions {
  align-items: center;
}

.marketplace-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-card-title-row h3 {
  margin-bottom: 3px;
}

.marketplace-league-card-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.marketplace-league-details-toggle {
  flex: 0 0 auto;
}

.marketplace-muted-detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.marketplace-league-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.marketplace-league-summary-strip span {
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.error-text {
  color: var(--error-text);
}

.marketplace-shell {
  gap: 16px;
}

.marketplace-my-team-shell {
  font-size: 14px;
}

.marketplace-my-team-shell h3 {
  font-size: 15px;
}

.marketplace-my-team-shell th {
  padding: 6px 5px;
  font-size: 11px;
  line-height: 1.1;
  white-space: normal;
}

.marketplace-my-team-shell .marketplace-stat-card strong {
  font-size: 21px;
}

.marketplace-my-team-shell .marketplace-roster-slots-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.marketplace-my-team-shell .marketplace-roster-slots-table th {
  padding: 5px 3px;
  font-size: 9px;
  line-height: 1;
  white-space: normal !important;
}

.marketplace-my-team-shell .marketplace-roster-slots-table td {
  padding: 6px 6px;
  font-size: 13px;
  line-height: 1.15;
}

.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-slot-column {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-player-column {
  width: auto;
  min-width: 0;
  max-width: none;
}

.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-worth-column,
.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-stat-column {
  width: 64px;
  min-width: 58px;
  text-align: right;
}

.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-list-column {
  width: 82px;
  min-width: 82px;
  text-align: left;
}

.marketplace-my-team-shell .marketplace-player-label {
  display: grid;
  gap: 2px;
  align-items: start;
  max-width: 100%;
  white-space: normal;
}

.marketplace-my-team-shell .marketplace-player-label > span {
  white-space: normal;
}

.marketplace-roster-player-name-row {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.marketplace-roster-player-value-pill {
  display: none;
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eff6ff;
  color: #1e4a80;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.marketplace-roster-matchup {
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

.marketplace-roster-week-control {
  display: block;
  flex: 0 0 auto;
  min-width: 112px;
  margin-left: auto;
}

.marketplace-select.marketplace-roster-week-select {
  width: 120px;
  max-width: 120px;
  min-height: 36px;
  border-color: #94a3b8;
  background: #f8fafc;
  color: var(--rr-paper-ink);
  color-scheme: light;
  font-size: 14px;
  font-weight: 800;
}

.marketplace-select.marketplace-roster-week-select option {
  background: #ffffff;
  color: var(--rr-paper-ink);
}

.marketplace-page-header {
  display: grid;
  gap: 8px;
  max-width: 980px;
}

.marketplace-page-header p {
  margin: 0;
  color: var(--muted);
}

.marketplace-page-header.marketplace-active-team-header {
  max-width: 100%;
}

.marketplace-active-team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.marketplace-active-team-primary {
  flex: 1 1 260px;
  min-width: 0;
  max-width: min(430px, 100%);
}

.marketplace-active-team-primary-compact {
  flex: 0 1 215px;
  max-width: min(215px, 100%);
}

.marketplace-active-team-name {
  margin: 0;
}

.marketplace-active-team-kpis {
  flex: 0 1 360px;
  min-width: min(100%, 340px);
  max-width: 360px;
  margin-left: auto;
}

.marketplace-active-team-header .marketplace-roster-kpi-strip {
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 10px;
}

.marketplace-active-team-header .marketplace-roster-kpi-card {
  min-height: 64px;
  padding: 10px 12px;
}

.marketplace-active-team-header .marketplace-roster-kpi-card span {
  color: #b8c8df;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marketplace-active-team-header .marketplace-roster-kpi-card strong {
  color: var(--ice-white);
  font-size: 22px;
}

.marketplace-active-team-select {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 10px 4px 0;
  background: transparent;
  color: var(--ice-white);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.marketplace-active-team-select,
.marketplace-active-team-create-button {
  cursor: pointer;
}

.marketplace-active-team-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  min-width: 168px;
  border: 1px solid rgba(91, 151, 255, 0.72);
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.92), rgba(14, 165, 233, 0.5));
  box-shadow: 0 12px 28px rgba(14, 56, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--ice-white);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.marketplace-active-team-create-button::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ice-white);
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.marketplace-active-team-select:hover,
.marketplace-active-team-select:focus {
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: var(--focus-ring);
  outline: none;
}

.marketplace-active-team-create-button:hover,
.marketplace-active-team-create-button:focus {
  border-color: rgba(125, 186, 255, 0.95);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(14, 165, 233, 0.68));
  box-shadow: var(--focus-ring);
  outline: none;
}

.marketplace-active-team-select option {
  background: #111721;
  color: var(--ice-white);
}

@media (min-width: 760px) {
  .marketplace-active-team-primary-compact {
    flex-basis: 360px;
    max-width: min(360px, 100%);
  }
}

.marketplace-guardrails {
  margin: 0;
}

.marketplace-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.marketplace-stat-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.marketplace-stat-card span,
.marketplace-stat-card small {
  color: var(--muted);
}

.marketplace-stat-card strong {
  font-size: 22px;
}

.marketplace-loop-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.4fr) minmax(180px, 0.75fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-3);
}

.marketplace-loop-guide h3,
.marketplace-loop-guide p {
  margin: 0;
}

.marketplace-loop-guide h3 {
  font-size: 18px;
}

.marketplace-loop-guide p,
.marketplace-loop-guide li {
  color: var(--muted);
  font-size: 13px;
}

.marketplace-loop-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.marketplace-loop-note {
  justify-self: end;
  max-width: 220px;
  text-align: right;
  font-weight: 650;
}

.marketplace-context-callout {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-3);
}

.marketplace-context-callout ul {
  display: grid;
  gap: 6px;
  margin: 0;
}

.marketplace-context-callout li {
  color: var(--muted);
}

.marketplace-status-pill {
  display: inline-flex;
  max-width: 180px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(245, 185, 66, 0.14);
  color: var(--dynasty-gold);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.marketplace-status-pill-available,
.marketplace-status-pill-active {
  background: rgba(34, 197, 94, 0.14);
  color: var(--market-green);
}

.marketplace-status-pill-leading {
  background: rgba(245, 185, 66, 0.16);
  color: var(--dynasty-gold);
}

.marketplace-status-pill-blocked {
  background: #fcebec;
  color: #8f2733;
}

.marketplace-status-pill-muted {
  background: rgba(154, 164, 178, 0.14);
  color: var(--steel-gray);
}

.marketplace-status-pill-info {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent-strong);
}

.marketplace-lifecycle-cell {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.marketplace-lifecycle-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.marketplace-lifecycle-legend,
.marketplace-lifecycle-summary,
.marketplace-lifecycle-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-3);
}

.marketplace-lifecycle-legend {
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr);
}

.marketplace-safety-disclosure,
.marketplace-secondary-disclosure {
  border: 1px solid rgba(154, 164, 178, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(11, 13, 18, 0.28);
}

.marketplace-safety-disclosure > summary,
.marketplace-secondary-disclosure > summary,
.marketplace-lifecycle-legend > summary {
  width: fit-content;
  color: var(--steel-gray);
  font-weight: 750;
  cursor: pointer;
}

.marketplace-safety-disclosure > summary:hover,
.marketplace-safety-disclosure > summary:focus,
.marketplace-secondary-disclosure > summary:hover,
.marketplace-secondary-disclosure > summary:focus,
.marketplace-lifecycle-legend > summary:hover,
.marketplace-lifecycle-legend > summary:focus {
  color: var(--ice-white);
}

.marketplace-secondary-disclosure-body,
.marketplace-lifecycle-legend-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.marketplace-lifecycle-legend h3,
.marketplace-lifecycle-legend p,
.marketplace-lifecycle-summary p,
.marketplace-lifecycle-panel p {
  margin: 0;
}

.marketplace-lifecycle-legend p,
.marketplace-lifecycle-summary small,
.marketplace-lifecycle-panel p {
  color: var(--muted);
}

.marketplace-lifecycle-chip-grid,
.marketplace-lifecycle-summary-grid,
.marketplace-lifecycle-panel-grid {
  display: grid;
  gap: 8px;
}

.marketplace-lifecycle-chip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-lifecycle-summary-grid,
.marketplace-lifecycle-panel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketplace-lifecycle-chip,
.marketplace-lifecycle-summary-item,
.marketplace-lifecycle-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
}

.marketplace-lifecycle-chip small,
.marketplace-lifecycle-summary-item small,
.marketplace-lifecycle-card p {
  font-size: 12px;
}

.marketplace-lifecycle-summary-item strong {
  font-size: 22px;
}

.marketplace-lifecycle-summary-empty {
  gap: 3px;
}

.marketplace-lifecycle-summary-empty strong {
  font-size: 16px;
}

.marketplace-roster-kpi-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketplace-top-level-items {
  display: grid;
  gap: 18px;
}

.marketplace-mobile-site-nav {
  display: none;
}

.marketplace-top-collapsible {
  display: grid;
  gap: 12px;
}

.marketplace-top-collapsible > summary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  color: var(--ice-white);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.marketplace-top-collapsible > summary::marker {
  content: "";
}

.marketplace-top-collapsible > summary::-webkit-details-marker {
  display: none;
}

.marketplace-top-collapsible-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 185, 66, 0.52);
  border-radius: 5px;
  background: rgba(245, 185, 66, 0.1);
}

.marketplace-top-collapsible-icon::before {
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--dynasty-gold);
  border-bottom: 2px solid var(--dynasty-gold);
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.marketplace-top-collapsible:not([open]) .marketplace-top-collapsible-icon::before {
  transform: rotate(-45deg) translate(-1px, 1px);
}

.marketplace-top-collapsible-title {
  font-weight: 800;
}

.marketplace-roster-kpi-card {
  min-height: 76px;
}

.marketplace-roster-kpi-card strong {
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.marketplace-my-activity-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.marketplace-my-activity-details > section {
  min-width: 0;
}

.marketplace-my-activity-details h3 {
  margin-bottom: 8px;
}

.marketplace-lifecycle-list li {
  align-items: start;
}

.player-market-component {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-3);
}

.player-market-component .section-title-row {
  align-items: start;
}

.player-market-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-market-fact {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
}

.player-market-fact span,
.player-market-source-strip span {
  color: var(--muted);
  font-size: 12px;
}

.player-market-fact strong {
  font-size: 14px;
  line-height: 1.25;
}

.player-market-fact small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.player-market-decision-cues {
  margin: 0;
}

.player-market-lifecycle-panel {
  background: var(--panel);
}

.player-market-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-market-source-strip span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--panel);
}

.player-market-component-compact {
  gap: 5px;
  padding: 8px;
}

.player-page-ownership-status {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.player-page-shell .identity-title-row {
  width: 100%;
  align-items: start;
  justify-content: space-between;
}

.player-page-market-status {
  display: grid;
  gap: 4px;
  min-width: 150px;
  text-align: right;
}

.player-page-market-status strong {
  color: var(--text);
  font-size: 18px;
}

.player-page-market-status span {
  color: var(--muted);
  font-size: 14px;
}

.player-transaction-history-table th,
.player-transaction-history-table td {
  vertical-align: top;
}

.player-transaction-history-table {
  min-width: 760px;
}

.player-transaction-history-table th:first-child,
.player-transaction-history-table td:first-child {
  white-space: nowrap;
}

.player-transaction-history-table small {
  color: var(--muted);
  font-size: 12px;
}

.player-transaction-history-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.marketplace-section-grid {
  align-items: start;
}

.marketplace-my-team-grid {
  grid-template-columns: minmax(540px, 11fr) minmax(380px, 9fr);
}

@media (min-width: 1121px) {
  .marketplace-my-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .marketplace-my-team-grid > .marketplace-starting-roster-card,
  .marketplace-my-team-grid > .marketplace-bench-roster-card {
    grid-column: auto;
    min-width: 0;
  }

  .marketplace-my-team-grid > .marketplace-bench-roster-card {
    display: flex;
    flex-direction: column;
  }

  .marketplace-bench-roster-card > .table-wrap {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .marketplace-bench-roster-card > .table-wrap thead th {
    position: sticky;
    z-index: 2;
    top: 0;
  }

  .marketplace-settled-secondary-sales-card {
    grid-column: 1 / -1;
  }
}

.marketplace-card,
.marketplace-player-card {
  gap: 12px;
}

.rotorally-product-panel {
  border-top-color: rgba(245, 185, 66, 0.58);
}

.rotorally-product-panel h3 {
  color: var(--ice-white);
  font-size: 20px;
}

.rotorally-product-panel strong {
  color: var(--dynasty-gold);
}

.marketplace-listing-card {
  gap: 14px;
}

.marketplace-prospects-grid .marketplace-prospect-board-card {
  grid-column: 1 / -1;
}

.marketplace-board-note {
  margin: -2px 0 2px;
  color: var(--rr-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.marketplace-prospect-search-control {
  width: min(420px, 100%);
}

.marketplace-prospect-search-control .marketplace-input {
  width: 100%;
}

.marketplace-prospect-board-table {
  min-width: 760px;
}

.marketplace-prospect-board-table th:first-child,
.marketplace-prospect-board-table td:first-child {
  min-width: 300px;
}

.marketplace-prospect-board-table th:last-child,
.marketplace-prospect-board-table td:last-child {
  position: sticky;
  z-index: 2;
  right: 0;
  min-width: 96px;
  text-align: right;
  background: rgba(13, 19, 29, 0.98);
}

.marketplace-prospect-board-table td:last-child .marketplace-action-row {
  justify-content: flex-end;
  margin: 0;
}

.marketplace-prospect-board-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
}

.marketplace-owned-prospect-indicator {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.14);
  color: #9af2ca;
}

.marketplace-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  justify-content: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.marketplace-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.marketplace-filter-option {
  min-height: 28px;
  padding: 0 4px 0 0;
  color: var(--text);
}

.marketplace-filter-search {
  width: min(340px, 100%);
  margin-left: auto;
}

.marketplace-filter-search .marketplace-input {
  width: 100%;
}

.marketplace-table {
  width: max-content;
  max-width: none;
  min-width: 100%;
  table-layout: auto;
}

.marketplace-table.marketplace-unified-table {
  width: max-content;
  max-width: none;
  min-width: 100%;
}

.marketplace-table th,
.marketplace-table td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.marketplace-table td > *,
.marketplace-table th > * {
  max-width: none;
}

.marketplace-table .marketplace-small-button,
.marketplace-table .marketplace-inline-button {
  width: max-content;
  max-width: none;
  min-width: 72px;
  padding-inline: 6px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.marketplace-table .marketplace-status-pill {
  max-width: none;
  flex: 0 0 auto;
}

.marketplace-table .empty-state,
.marketplace-table .marketplace-action-note,
.marketplace-table .player-page-link,
.marketplace-table .marketplace-public-team-link {
  white-space: nowrap;
  overflow-wrap: normal;
}

.marketplace-table .marketplace-action-note {
  flex-basis: auto;
}

.marketplace-leading-bid-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.marketplace-leading-bid-team {
  text-align: center;
}

.marketplace-unified-table th:last-child,
.marketplace-unified-table td:last-child,
.marketplace-prospect-board-table th:last-child,
.marketplace-prospect-board-table td:last-child {
  border-left: 1px solid var(--rr-paper-line);
}

.marketplace-active-bids-table {
  width: max-content;
  max-width: none;
  min-width: 100%;
  table-layout: auto;
}

.marketplace-active-bids-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.marketplace-active-bids-table th:nth-child(1),
.marketplace-active-bids-table td:nth-child(1) {
  width: auto;
}

.marketplace-active-bids-table th:nth-child(2),
.marketplace-active-bids-table td:nth-child(2) {
  width: auto;
}

.marketplace-active-bids-table th:nth-child(3),
.marketplace-active-bids-table td:nth-child(3),
.marketplace-active-bids-table th:nth-child(4),
.marketplace-active-bids-table td:nth-child(4) {
  width: auto;
  text-align: right;
}

.marketplace-active-listings-table {
  width: max-content;
  max-width: none;
  min-width: 100%;
}

.marketplace-roster-draggable {
  cursor: grab;
}

.marketplace-roster-dragging {
  opacity: 0.55;
}

.marketplace-roster-drop-target {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(59, 130, 246, 0.16);
}

.marketplace-roster-starter-row.marketplace-roster-drop-eligible {
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.78);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(59, 130, 246, 0.06));
}

.marketplace-roster-starter-row.marketplace-roster-drop-ineligible {
  opacity: 0.62;
}

.marketplace-roster-starter-row.marketplace-roster-drop-eligible.marketplace-roster-drop-target {
  outline-color: rgba(34, 197, 94, 0.86);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.1));
}

.marketplace-roster-starter-row.marketplace-roster-drop-ineligible.marketplace-roster-drop-target {
  outline: 0;
  background: transparent;
}

.marketplace-roster-bench-drop-zone-row {
  display: none;
}

.marketplace-roster-bench-drop-zone-row.marketplace-roster-bench-drop-active {
  display: table-row;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.72);
}

.marketplace-roster-bench-drop-zone-row.marketplace-roster-slot-selectable {
  display: table-row;
}

.marketplace-roster-bench-drop-zone-row.marketplace-roster-slot-selectable .marketplace-roster-bench-drop-label {
  color: #15324a;
}

.marketplace-roster-bench-drop-zone-row.marketplace-roster-drop-target {
  outline: 2px solid rgba(59, 130, 246, 0.82);
  outline-offset: -2px;
  background: rgba(59, 130, 246, 0.14);
}

.marketplace-roster-bench-drop-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.marketplace-drag-hint,
.marketplace-drop-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.marketplace-mini-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.marketplace-provider-context {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.marketplace-provider-context h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.marketplace-mini-grid h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.marketplace-mini-grid p {
  margin: 0;
  color: var(--muted);
}

.marketplace-feedback {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: var(--good-bg);
  color: var(--good-text);
  font-weight: 650;
}

.marketplace-feedback span {
  font-weight: 650;
}

.marketplace-feedback small {
  color: inherit;
  font-weight: 500;
}

.marketplace-feedback-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.marketplace-feedback-details div {
  display: grid;
  gap: 3px;
}

.marketplace-feedback-details dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.marketplace-feedback-details dd {
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.marketplace-feedback-error {
  border-left-color: var(--error-text);
  background: var(--error-bg);
  color: var(--error-text);
}

.marketplace-action-confirmation-modal {
  z-index: 60;
}

.marketplace-action-confirmation-popover {
  gap: 14px;
  width: min(360px, 100%);
  border-color: rgba(96, 165, 250, 0.42);
}

.marketplace-action-confirmation-popover p {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.45;
}

.marketplace-action-confirmation-popover .marketplace-action-row {
  justify-content: flex-end;
}

.marketplace-danger-button {
  border-color: rgba(248, 113, 113, 0.62);
  color: #fecaca;
}

.marketplace-danger-button:hover,
.marketplace-danger-button:focus-visible {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(127, 29, 29, 0.22);
  color: #fff1f2;
}

.marketplace-league-delete-popover {
  gap: 14px;
  width: min(420px, 100%);
}

.marketplace-dialog-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.marketplace-player-summary-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
}

.marketplace-row-details-row td {
  padding-top: 0;
  border-top: 0;
}

.marketplace-row-details {
  margin: 0;
  border: 1px solid rgba(154, 164, 178, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(11, 13, 18, 0.18);
}

.marketplace-row-details > summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.marketplace-row-details dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.marketplace-row-details div {
  display: grid;
  gap: 3px;
}

.marketplace-row-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.marketplace-row-details dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
}

.marketplace-action-row,
.marketplace-action-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.marketplace-table .marketplace-action-row,
.marketplace-table .marketplace-action-stack {
  width: max-content;
  min-width: max-content;
  flex-wrap: nowrap;
}

.marketplace-action-stack {
  align-items: flex-start;
}

.marketplace-protected-bid-control {
  align-items: flex-start;
}

.marketplace-protected-bid-button {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 197, 94, 0.12));
}

.marketplace-league-create-card .marketplace-form-grid,
.marketplace-league-create-popover .marketplace-form-grid {
  display: grid;
  gap: 10px;
  max-width: min(420px, 100%);
}

.marketplace-league-create-card .marketplace-form-grid label,
.marketplace-league-create-popover .marketplace-form-grid label {
  display: grid;
  gap: 4px;
  width: 100%;
}

.marketplace-league-create-card input[type="text"],
.marketplace-league-create-card input[type="number"],
.marketplace-league-create-card .marketplace-select,
.marketplace-league-create-popover input[type="text"],
.marketplace-league-create-popover input[type="number"],
.marketplace-league-create-popover .marketplace-select {
  width: min(360px, 100%);
  max-width: 100%;
}

.marketplace-league-create-card input[type="text"],
.marketplace-league-create-popover input[type="text"] {
  text-transform: none;
}

.marketplace-field-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.marketplace-option-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  width: min(420px, 100%);
}

.marketplace-option-tile {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.marketplace-option-tile:hover,
.marketplace-option-tile:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 41, 59, 0.92);
}

.marketplace-option-tile.selected {
  border-color: rgba(96, 165, 250, 0.95);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.16));
}

.marketplace-option-tile-label {
  font-weight: 800;
}

.marketplace-option-tile-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.marketplace-action-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.marketplace-bid-open-button {
  min-width: 72px;
}

.marketplace-bid-modal {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.marketplace-bid-modal-backdrop {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: none;
  transform: none;
}

.marketplace-bid-modal-backdrop:hover,
.marketplace-bid-modal-backdrop:focus,
.marketplace-bid-modal-backdrop:focus-visible {
  background: rgba(0, 0, 0, 0.62);
  box-shadow: none;
  outline: none;
  transform: none;
}

.marketplace-bid-popover {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(17, 23, 33, 0.98) 42%, rgba(34, 197, 94, 0.12)),
    #111721;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
}

.marketplace-bid-popover-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.marketplace-bid-popover-header h4,
.marketplace-bid-popover-header p {
  margin: 0;
}

.marketplace-bid-popover-header h4 {
  color: var(--ice-white);
  font-size: 20px;
}

.marketplace-bid-popover-header span,
.marketplace-bid-wheel-limits {
  color: var(--muted);
  font-size: 12px;
}

.marketplace-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border-color: rgba(154, 164, 178, 0.32);
  border-radius: 999px;
  padding: 0;
  background: rgba(11, 13, 18, 0.5);
  color: var(--ice-white);
  font-size: 18px;
  line-height: 1;
}

.marketplace-bid-wheel-panel {
  display: grid;
  gap: 10px;
}

.marketplace-bid-wheel-panel label {
  color: var(--steel-gray);
  font-size: 12px;
  font-weight: 800;
}

.marketplace-bid-wheel-readout {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.marketplace-bid-wheel-readout output {
  color: var(--ice-white);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.marketplace-bid-wheel {
  width: 100%;
  accent-color: var(--electric-blue);
}

.marketplace-bid-wheel-limits {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-bid-dialog-feedback {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-left: 4px solid var(--electric-blue);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--ice-white);
}

.marketplace-bid-dialog-feedback strong {
  font-size: 13px;
}

.marketplace-bid-dialog-feedback span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.marketplace-bid-dialog-feedback-warning {
  border-color: rgba(245, 158, 11, 0.38);
  border-left-color: var(--warn-text);
  background: rgba(245, 158, 11, 0.12);
}

.marketplace-bid-dialog-feedback-error {
  border-color: rgba(248, 113, 113, 0.38);
  border-left-color: var(--error-text);
  background: rgba(248, 113, 113, 0.12);
}

.marketplace-bid-dialog-feedback-success {
  border-color: rgba(34, 197, 94, 0.38);
  border-left-color: var(--accent);
  background: rgba(34, 197, 94, 0.12);
}

.marketplace-submit-bid-button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 780px) {
  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-slot-column {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    padding-right: 6px;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-worth-column {
    width: 64px;
    min-width: 64px;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-list-column {
    width: 72px;
    min-width: 72px;
  }

}

.marketplace-team-popover {
  width: min(540px, calc(100% - 24px));
}

.marketplace-team-popover .frontend-account-team-form {
  width: 100%;
  border-top: 0;
  padding-top: 0;
}

.marketplace-team-popover .account-menu-field {
  width: 100%;
}

.marketplace-team-popover .account-menu-field input,
.marketplace-team-popover .account-menu-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: rgba(11, 13, 18, 0.72);
}

.marketplace-team-popover input[data-frontend-account-team-bootstrap-name],
.marketplace-team-popover input[data-frontend-account-team-rename-input] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: min(280px, 100%);
  letter-spacing: 0;
  text-transform: none;
}

.marketplace-team-popover .account-menu-team-actions {
  justify-content: stretch;
}

.marketplace-team-popover .account-menu-team-actions .auth-fixture-button {
  flex: 1 1 130px;
  justify-content: center;
}

.marketplace-team-dialog-form {
  display: grid;
  gap: 10px;
}

.marketplace-team-dialog-hidden-selector {
  display: none;
}

.marketplace-team-dialog-danger {
  border-top: 1px solid rgba(154, 164, 178, 0.16);
  padding-top: 12px;
}

.marketplace-team-dialog-danger .auth-fixture-button {
  width: 100%;
  justify-content: center;
}

.marketplace-team-dialog-warning .frontend-account-team-delete-confirmation {
  border-color: rgba(245, 185, 66, 0.48);
  background: rgba(11, 13, 18, 0.42);
}

.marketplace-team-popover .frontend-account-team-status {
  display: block;
}

.marketplace-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.marketplace-team-control {
  display: grid;
  gap: 5px;
}

.marketplace-public-team-link {
  color: var(--link);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.marketplace-public-team-link:hover,
.marketplace-public-team-link:focus {
  color: var(--link-strong);
  text-decoration: underline;
}

.marketplace-public-team-profile {
  display: grid;
  gap: 18px;
}

.marketplace-public-team-profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.marketplace-public-team-profile-header h2 {
  margin: 0;
}

.marketplace-public-team-section {
  display: grid;
  gap: 10px;
}

.marketplace-public-team-section h3 {
  margin: 0;
}

.marketplace-public-team-table th,
.marketplace-public-team-table td {
  white-space: normal;
}

.marketplace-inline-player-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.marketplace-inline-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(20, 184, 166, 0.12);
  color: #8ff4df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  white-space: nowrap;
}

.marketplace-listing-indicator.is-live {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(245, 158, 11, 0.13);
  color: #fbd27b;
}

.marketplace-number-input,
.marketplace-select {
  min-height: 34px;
  max-width: 190px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  background: var(--panel);
  color: var(--text);
}

.marketplace-number-input {
  width: 84px;
}

.marketplace-number-input:disabled {
  border-color: var(--border);
  background: var(--panel-3);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.marketplace-sell-number-input {
  width: 100%;
  max-width: none;
}

.marketplace-dialog-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.marketplace-small-button,
.marketplace-inline-button {
  min-height: 34px;
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent-strong);
  font-weight: 700;
}

.marketplace-small-button:hover,
.marketplace-inline-button:hover,
.marketplace-small-button:focus,
.marketplace-inline-button:focus {
  background: rgba(59, 130, 246, 0.16);
}

.marketplace-small-button:disabled {
  border-color: var(--border);
  background: var(--panel-3);
  color: var(--muted);
  cursor: not-allowed;
}

.marketplace-muted-button {
  border-color: var(--border);
  color: var(--muted);
}

.marketplace-event-list strong {
  max-width: 160px;
}

.marketplace-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 780px) {
  .table-heading,
  .detail-header,
  .identity-title-row,
  .detail-grid,
  .status-grid,
  .health-stat-grid,
  .marketplace-stat-grid,
  .marketplace-mini-grid,
  .marketplace-loop-guide,
  .marketplace-feedback-details,
  .marketplace-lifecycle-legend,
  .marketplace-lifecycle-chip-grid,
  .marketplace-lifecycle-summary-grid,
  .marketplace-lifecycle-panel-grid,
  .player-market-summary-grid,
  .article-state-summary,
  .section-title-row,
  .section-grid {
    display: block;
  }

  .marketplace-roster-kpi-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-loop-note {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .player-page-market-status {
    margin-top: 12px;
    text-align: left;
  }

  .health-stat-card,
  .article-card,
  .team-breakdown-bio-card,
  .jaguars-bio-card {
    margin-bottom: 10px;
  }

  .team-breakdown-bio-grid,
  .team-breakdown-target-grid,
  .jaguars-bio-grid,
  .jaguars-target-grid {
    display: block;
  }

  .app-header {
    grid-template-columns: 1fr;
  }

  .header-menu {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .global-player-search {
    width: 100%;
    justify-self: stretch;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .auth-fixture-panel {
    flex: 0 0 auto;
  }

  .auth-fixture-shell,
  .auth-fixture-flags {
    grid-template-columns: 1fr;
  }

  main,
  .app-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .global-search-result {
    grid-template-columns: 1fr;
  }

  .global-search-result strong {
    grid-row: auto;
    grid-column: auto;
  }

  .status-text {
    text-align: left;
  }

  .health-details dl {
    grid-template-columns: 1fr;
  }
}

/* RosterRush Professional Local Dev Website Makeover v1 */
:root {
  --surface-glass: rgba(23, 27, 34, 0.86);
  --surface-raised: rgba(32, 38, 49, 0.92);
  --border-soft: rgba(154, 164, 178, 0.18);
  --border-bright: rgba(59, 130, 246, 0.36);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.24);
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.24);
}

body {
  line-height: 1.45;
  background:
    linear-gradient(180deg, #0b0d12 0%, #10141d 44%, #090b10 100%);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent 34%, rgba(34, 197, 94, 0.075) 68%, transparent),
    repeating-linear-gradient(90deg, rgba(245, 247, 250, 0.04) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, rgba(245, 247, 250, 0.032) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1));
}

.app-header {
  position: sticky;
  z-index: 240;
  top: 0;
  align-items: center;
  padding: 18px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.98), rgba(11, 13, 18, 0.9)),
    linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(34, 197, 94, 0.08));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.header-menu {
  gap: clamp(14px, 2vw, 24px);
}

.header-actions {
  align-items: center;
  justify-self: end;
  width: min(560px, 100%);
}

.site-logo {
  width: min(318px, 42vw);
  height: 70px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-logo-image {
  padding: 5px 8px;
}

.site-nav {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(154, 164, 178, 0.16);
  border-radius: 8px;
  background: rgba(245, 247, 250, 0.035);
}

.site-nav-button,
.tab-button,
.marketplace-small-button,
.marketplace-inline-button,
.auth-fixture-button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-nav-button {
  min-height: 34px;
  border-color: transparent;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--steel-gray);
  font-size: 13px;
  font-weight: 700;
}

.site-nav-button:hover,
.site-nav-button:focus,
.site-nav-button.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.34);
  color: var(--ice-white);
  box-shadow: inset 0 0 0 1px rgba(245, 247, 250, 0.04);
}

.global-player-search {
  flex: 1 1 340px;
  width: auto;
  min-width: min(300px, 52vw);
}

.global-search-box input,
select,
input {
  border-color: rgba(154, 164, 178, 0.22);
  background: rgba(11, 13, 18, 0.56);
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.035);
}

.global-search-box input:focus,
select:focus,
input:focus,
button:focus-visible,
.sort-button:focus-visible {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: var(--focus-ring);
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.7vw, 34px) clamp(16px, 3vw, 36px) 42px;
  gap: 20px;
}

.site-section-panel {
  border: 0;
  padding: 0;
  background: transparent;
}

.placeholder-shell {
  gap: 18px;
}

.marketplace-shell,
.data-health-shell,
.player-page-shell,
.team-page-shell {
  gap: 20px;
}

.health-banner,
.toolbar,
.view-tabs,
.table-shell,
.detail-panel,
.error-box,
.auth-fixture-loading,
.auth-fixture-shell,
.frontend-clerk-mount-shell,
.frontend-clerk-mount-state,
.frontend-clerk-linked-preview,
.frontend-account-bootstrap,
.diagnostics-panel {
  border-color: var(--border-soft);
  background:
    linear-gradient(180deg, rgba(23, 27, 34, 0.94), rgba(16, 21, 30, 0.94));
  box-shadow: var(--shadow-card);
}

.table-shell,
.detail-panel,
.health-banner,
.toolbar,
.view-tabs {
  padding: clamp(14px, 2vw, 20px);
}

.section-card,
.marketplace-card,
.marketplace-player-card,
.health-stat-card,
.marketplace-stat-card,
.marketplace-loop-guide,
.marketplace-context-callout,
.marketplace-lifecycle-legend,
.marketplace-lifecycle-summary,
.marketplace-lifecycle-panel,
.marketplace-lifecycle-chip,
.marketplace-lifecycle-summary-item,
.marketplace-lifecycle-card,
.player-market-component,
.player-market-fact,
.team-card,
.article-card,
.news-event-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 27, 34, 0.96), rgba(14, 19, 28, 0.96));
  box-shadow: var(--shadow-card);
}

.section-card {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 1.7vw, 18px);
}

.wide-detail {
  grid-column: 1 / -1;
}

.marketplace-page-header {
  gap: 10px;
  max-width: 1040px;
  padding-bottom: 2px;
}

.marketplace-page-header .eyebrow,
.eyebrow {
  color: var(--dynasty-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h2,
.marketplace-page-header h2 {
  color: var(--ice-white);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0;
}

h3 {
  color: var(--ice-white);
  font-size: 17px;
}

.placeholder-shell p,
.marketplace-page-header p,
.detail-panel p,
.table-heading p {
  color: var(--steel-gray);
}

.marketplace-stat-grid,
.health-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.marketplace-stat-card,
.health-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 15px;
}

.marketplace-stat-card::before,
.health-stat-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--electric-blue), var(--market-green), var(--dynasty-gold));
  opacity: 0.72;
}

.marketplace-stat-card strong,
.health-stat-card strong {
  color: var(--ice-white);
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: 0;
}

.marketplace-stat-card span,
.marketplace-stat-card small,
.health-stat-card span {
  color: var(--steel-gray);
  font-weight: 700;
}

.marketplace-loop-guide {
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.35fr) minmax(220px, 0.75fr);
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(23, 27, 34, 0.96) 38%, rgba(34, 197, 94, 0.08));
}

.marketplace-loop-guide h3 {
  font-size: 20px;
}

.marketplace-loop-steps {
  gap: 8px;
}

.marketplace-loop-steps li,
.marketplace-context-callout li {
  padding-left: 2px;
}

.marketplace-loop-note {
  align-self: stretch;
  display: grid;
  align-items: center;
  border: 1px solid rgba(245, 185, 66, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(245, 185, 66, 0.08);
  color: var(--dynasty-gold);
}

.marketplace-filter-bar,
.marketplace-team-toolbar {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px;
  background: rgba(11, 13, 18, 0.36);
}

.marketplace-status-pill,
.badge,
.not-implemented-badge,
.freshness-pill {
  border: 1px solid rgba(245, 247, 250, 0.06);
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.05);
}

.marketplace-status-pill-available,
.marketplace-status-pill-active,
.marketplace-status-pill-leading,
.accounting-badge,
.canonical-badge {
  border-color: rgba(34, 197, 94, 0.22);
}

.marketplace-status-pill-leading {
  border-color: rgba(245, 185, 66, 0.3);
}

.marketplace-status-pill-info,
.source-badge {
  border-color: rgba(59, 130, 246, 0.26);
}

button {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.92));
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.14);
}

button:hover {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(59, 130, 246, 0.96));
  transform: translateY(-1px);
}

button:disabled,
.marketplace-small-button:disabled,
.auth-fixture-button:disabled {
  transform: none;
}

.tab-button,
.marketplace-small-button,
.marketplace-inline-button,
.auth-fixture-button {
  background: rgba(23, 27, 34, 0.7);
  box-shadow: none;
}

.tab-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--electric-blue);
}

.table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(11, 13, 18, 0.32);
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.035);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

th,
td {
  padding: 11px 12px;
  border-bottom-color: rgba(154, 164, 178, 0.13);
}

th {
  background: rgba(17, 23, 33, 0.98);
  color: var(--steel-gray);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  background: rgba(23, 27, 34, 0.42);
}

tbody tr:nth-child(even) {
  background: rgba(32, 38, 49, 0.36);
}

tbody tr:hover,
tbody tr:focus {
  background: rgba(59, 130, 246, 0.13);
}

tbody tr.selected-row {
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 4px 0 0 var(--electric-blue);
}

.app-header {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.98), rgba(8, 10, 15, 0.98));
  overflow: visible;
  z-index: 240;
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(59, 130, 246, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 24%, rgba(34, 197, 94, 0.11), transparent 38rem),
    linear-gradient(180deg, #1b2533 0%, #161f2c 48%, #121a25 100%);
  background-attachment: fixed;
}

.site-logo {
  background: transparent;
}

.site-nav-button {
  background:
    linear-gradient(180deg, rgba(23, 27, 34, 0.86), rgba(11, 13, 18, 0.86));
}

.site-nav-button:hover,
.site-nav-button.active {
  box-shadow:
    inset 0 1px 0 rgba(245, 247, 250, 0.09),
    0 0 0 1px rgba(59, 130, 246, 0.18);
}

.site-nav-button:disabled,
.site-nav-button.is-disabled,
.site-nav-button.is-disabled:hover,
.site-nav-button.is-disabled:focus,
.site-nav-button.is-disabled.active {
  border-color: rgba(154, 164, 178, 0.12);
  background: rgba(23, 27, 34, 0.32);
  box-shadow: none;
  color: rgba(154, 164, 178, 0.42);
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.global-search-box input {
  background:
    linear-gradient(180deg, rgba(23, 27, 34, 0.92), rgba(11, 13, 18, 0.92));
}

.account-menu-trigger {
  background:
    linear-gradient(180deg, rgba(23, 27, 34, 0.94), rgba(11, 13, 18, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(245, 247, 250, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.08);
}

.account-menu-panel {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(17, 23, 33, 1) 44%, rgba(34, 197, 94, 0.12)),
    #111721;
}

.section-card,
.marketplace-card,
.marketplace-player-card,
.health-stat-card,
.marketplace-stat-card,
.marketplace-lifecycle-summary,
.marketplace-lifecycle-panel,
.player-market-component,
.team-card,
.article-card,
.news-event-card {
  --surface-accent: var(--electric-blue);
  --surface-accent-soft: var(--surface-blue);
  position: relative;
  overflow: hidden;
}

.section-card::before,
.marketplace-card::before,
.marketplace-player-card::before,
.health-stat-card::before,
.marketplace-stat-card::before,
.marketplace-lifecycle-summary::before,
.marketplace-lifecycle-panel::before,
.player-market-component::before,
.team-card::before,
.article-card::before,
.news-event-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--surface-accent), transparent 74%);
  opacity: 0.72;
  pointer-events: none;
}

.marketplace-section-grid .marketplace-card,
.marketplace-my-team-shell .marketplace-card,
.marketplace-lifecycle-summary {
  --surface-accent: var(--market-green);
  --surface-accent-soft: var(--surface-green);
}

.marketplace-listing-card,
.marketplace-unified-table,
.marketplace-filter-bar {
  --surface-accent: var(--electric-blue);
  --surface-accent-soft: var(--surface-blue);
}

.player-market-component,
.player-market-fact,
.rotorally-product-panel,
.player-page-shell .marketplace-card {
  --surface-accent: var(--dynasty-gold);
  --surface-accent-soft: var(--surface-gold);
}

.data-health-shell .section-card,
.data-health-shell .health-stat-card {
  --surface-accent: var(--electric-blue);
  --surface-accent-soft: var(--surface-blue);
}

.marketplace-roster-kpi-card {
  --surface-accent: var(--market-green);
  --surface-accent-soft: rgba(34, 197, 94, 0.08);
  background:
    linear-gradient(135deg, var(--surface-accent-soft), rgba(23, 27, 34, 0.96) 42%, rgba(245, 185, 66, 0.055));
}

.marketplace-roster-kpi-card:nth-child(2) {
  --surface-accent: var(--electric-blue);
  --surface-accent-soft: rgba(59, 130, 246, 0.09);
}

.marketplace-roster-kpi-card:nth-child(3) {
  --surface-accent: var(--dynasty-gold);
  --surface-accent-soft: rgba(245, 185, 66, 0.085);
}

.marketplace-lifecycle-summary,
.marketplace-lifecycle-panel,
.player-market-component {
  background:
    linear-gradient(135deg, var(--surface-accent-soft), rgba(23, 27, 34, 0.95) 34%, rgba(11, 13, 18, 0.96));
}

.marketplace-lifecycle-summary-empty {
  --surface-accent: var(--dynasty-gold);
  --surface-accent-soft: rgba(245, 185, 66, 0.075);
}

.marketplace-lifecycle-summary-empty strong {
  color: var(--ice-white);
}

.marketplace-lifecycle-summary-empty small {
  color: var(--steel-gray);
}

.marketplace-lifecycle-chip,
.marketplace-lifecycle-summary-item,
.marketplace-lifecycle-card,
.player-market-fact {
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.035), transparent),
    linear-gradient(135deg, var(--surface-accent-soft), rgba(17, 23, 33, 0.92) 44%);
}

[data-marketplace-lifecycle-state*="available"],
[data-marketplace-lifecycle-state*="active"],
[data-marketplace-lifecycle-state*="high_bidder"] {
  --surface-accent: var(--market-green);
  --surface-accent-soft: rgba(34, 197, 94, 0.1);
}

[data-marketplace-lifecycle-state*="auction"],
[data-marketplace-lifecycle-state*="bid"] {
  --surface-accent: var(--electric-blue);
  --surface-accent-soft: rgba(59, 130, 246, 0.11);
}

[data-marketplace-lifecycle-state*="settled"],
[data-marketplace-lifecycle-state*="history"],
[data-marketplace-lifecycle-state*="mine"] {
  --surface-accent: var(--dynasty-gold);
  --surface-accent-soft: rgba(245, 185, 66, 0.1);
}

[data-marketplace-lifecycle-state*="blocked"],
[data-marketplace-lifecycle-state*="outbid"],
[data-marketplace-lifecycle-state*="released"] {
  --surface-accent: #f87171;
  --surface-accent-soft: rgba(248, 113, 113, 0.1);
}

.marketplace-status-pill-available,
.marketplace-status-pill-active {
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.marketplace-status-pill-leading {
  box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.24);
}

.marketplace-status-pill-info {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.marketplace-status-pill-blocked {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.table-wrap {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.055), transparent 150px),
    rgba(11, 13, 18, 0.34);
}

.marketplace-table tbody tr,
.detail-table tbody tr {
  box-shadow: inset 2px 0 0 rgba(59, 130, 246, 0.12);
}

.marketplace-roster-slots-table tbody tr {
  box-shadow: inset 2px 0 0 rgba(34, 197, 94, 0.16);
}

.marketplace-unified-table tbody tr {
  box-shadow: inset 2px 0 0 rgba(59, 130, 246, 0.16);
}

.marketplace-unified-table tbody tr[data-marketplace-row-bid-action] {
  cursor: pointer;
}

.marketplace-unified-table tbody tr:hover,
.marketplace-roster-slots-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(34, 197, 94, 0.07) 70%);
}

.marketplace-unified-table tbody tr[data-marketplace-row-bid-action]:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: -2px;
}

.marketplace-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.marketplace-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.numeric-cell,
.marketplace-stat-card strong,
.health-stat-card strong,
.player-market-fact strong {
  font-variant-numeric: tabular-nums;
}

.player-page-market-status strong,
.player-page-ownership-status,
.player-market-fact strong {
  color: var(--ice-white);
}

.player-page-market-status {
  border-right: 3px solid var(--dynasty-gold);
  padding-right: 12px;
}

.player-page-market-status,
.detail-badges {
  gap: 8px;
}

.marketplace-alpha-notice {
  border-left: 4px solid var(--electric-blue);
  gap: 5px;
}

.marketplace-alpha-notice p {
  margin: 0;
}

.marketplace-alpha-notice a {
  color: #1d5ca8;
  font-weight: 800;
  text-underline-offset: 2px;
}

.marketplace-alpha-notice a:hover,
.marketplace-alpha-notice a:focus-visible {
  color: #123f78;
}

main .rotorally-product-panel h3,
main .rotorally-product-panel strong {
  color: var(--rr-paper-ink);
}

.frontend-clerk-shell,
.auth-fixture-shell {
  border-color: rgba(59, 130, 246, 0.2);
}

.auth-fixture-shell-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 14px;
}

.auth-fixture-product-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 14px 24px;
  align-items: center;
}

.auth-fixture-identity-compact {
  gap: 10px 22px;
}

.auth-fixture-identity-compact > div {
  min-width: min(210px, 100%);
}

.auth-fixture-shell-compact .auth-fixture-note,
.auth-fixture-shell-compact .frontend-clerk-shell {
  margin-top: 4px;
}

.auth-fixture-diagnostics {
  border-top: 1px solid rgba(154, 164, 178, 0.18);
  padding-top: 8px;
}

.auth-fixture-diagnostics > summary {
  width: fit-content;
  cursor: pointer;
  color: var(--steel-gray);
  font-size: 12px;
  font-weight: 750;
}

.auth-fixture-diagnostics > summary:hover,
.auth-fixture-diagnostics > summary:focus {
  color: var(--ice-white);
}

.auth-fixture-diagnostics-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.app-auth-startup-pending {
  min-height: 100vh;
}

.app-auth-startup-pending .app-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.app-auth-startup-pending .header-menu {
  justify-content: flex-start;
}

.app-auth-startup-pending .site-nav {
  display: none;
}

.app-auth-startup-pending main {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.app-auth-startup-pending .site-section-panel {
  width: min(560px, 100%);
}

.app-auth-startup-pending .placeholder-shell {
  margin: 0 auto;
  text-align: center;
}

.app-auth-startup-pending .placeholder-shell h2 {
  font-size: 22px;
}

.first-visit-entry-active {
  min-height: 100vh;
}

.first-visit-entry-active .app-header {
  display: flex;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 56px) 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.first-visit-entry-active .header-menu {
  display: grid;
  justify-items: center;
}

.first-visit-entry-active .site-nav,
.first-visit-entry-active .header-actions {
  display: none;
}

.first-visit-entry-active .site-logo {
  width: min(390px, 82vw);
  height: 90px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.first-visit-entry-active .site-logo-image {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.36));
}

.first-visit-entry-active main {
  width: min(1180px, 100%);
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: start center;
  padding: clamp(18px, 4vw, 46px) clamp(18px, 5vw, 56px) clamp(34px, 5vw, 72px);
}

.first-visit-entry-active .site-section-panel {
  width: 100%;
}

.first-visit-shell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3vw, 34px);
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(59, 130, 246, 0.22), transparent 34%),
    radial-gradient(circle at 76% 32%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(23, 27, 34, 0.96), rgba(9, 12, 18, 0.98) 58%, rgba(17, 23, 33, 0.96));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(245, 247, 250, 0.08);
}

.first-visit-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 247, 250, 0.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent);
}

.first-visit-shell-auth-only {
  width: min(960px, 100%);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.first-visit-shell-auth-only::before {
  display: none;
}

.first-visit-brand,
.first-visit-actions,
.first-visit-auth-panel,
.first-visit-warning,
.first-visit-team-form,
.first-visit-status {
  position: relative;
  z-index: 1;
}

.first-visit-brand {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.first-visit-brand-compact {
  gap: 12px;
}

.first-visit-brand h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ice-white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.first-visit-brand-compact h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.first-visit-brand p {
  max-width: 620px;
  margin: 0;
  color: var(--steel-gray);
  font-size: clamp(16px, 2vw, 20px);
}

.first-visit-actions,
.first-visit-team-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.first-visit-team-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  max-width: 720px;
}

.first-visit-team-field {
  display: grid;
  gap: 8px;
  width: 100%;
  color: var(--steel-gray);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.first-visit-team-field input {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ice-white);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.first-visit-button {
  min-height: 50px;
  border-radius: 8px;
  padding: 0 22px;
  color: var(--ice-white);
  font-size: 15px;
  font-weight: 850;
}

.first-visit-button-primary {
  border-color: rgba(59, 130, 246, 0.58);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.96));
  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(245, 247, 250, 0.16);
}

.first-visit-button-secondary,
.first-visit-button-ghost {
  border-color: rgba(154, 164, 178, 0.26);
  background: rgba(245, 247, 250, 0.045);
}

.first-visit-button-ghost {
  color: var(--steel-gray);
}

.first-visit-auth-panel,
.first-visit-warning,
.first-visit-status {
  width: min(620px, 100%);
  border: 1px solid rgba(154, 164, 178, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(11, 13, 18, 0.48);
  color: var(--steel-gray);
  text-align: center;
}

.first-visit-auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 440px);
  align-items: stretch;
  justify-items: stretch;
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(83, 142, 255, 0.38);
  border-radius: 8px;
  padding: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(35, 124, 255, 0.32), transparent 32%),
    radial-gradient(circle at 54% 88%, rgba(29, 185, 109, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 29, 48, 0.98), rgba(8, 13, 22, 0.98) 58%, rgba(10, 22, 20, 0.96));
  color: var(--steel-gray);
  text-align: left;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(245, 247, 250, 0.04) inset;
}

.first-visit-auth-intro,
.first-visit-auth-form {
  position: relative;
  z-index: 1;
}

.first-visit-auth-intro {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 500px;
  padding: clamp(28px, 5vw, 48px);
}

.first-visit-auth-eyebrow {
  margin: 0;
  color: var(--dynasty-gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.first-visit-auth-intro h2 {
  max-width: 360px;
  margin: 0;
  color: var(--ice-white);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.first-visit-auth-copy {
  max-width: 360px;
  margin: 0;
  color: var(--steel-gray);
  font-size: 16px;
  line-height: 1.45;
}

.first-visit-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.first-visit-auth-meta span {
  border: 1px solid rgba(154, 164, 178, 0.24);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(4, 10, 18, 0.34);
  color: rgba(245, 247, 250, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.first-visit-auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 500px;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.08), rgba(245, 247, 250, 0.035)),
    rgba(3, 7, 14, 0.46);
  box-shadow: -1px 0 0 rgba(245, 247, 250, 0.08);
}

.first-visit-auth-panel .frontend-clerk-mount,
.frontend-clerk-mount-shell .frontend-clerk-mount {
  display: grid;
  justify-items: stretch;
  width: 100%;
}

.first-visit-auth-form .frontend-clerk-mount {
  align-self: center;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--ice-white);
}

.first-visit-auth-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.first-visit-auth-heading h3 {
  max-width: 360px;
  margin: 0;
  color: var(--ice-white);
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

.first-visit-auth-status {
  margin: 0 0 14px;
  color: var(--steel-gray);
  font-size: 14px;
}

.first-visit-auth-retry {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.first-visit-auth-panel .cl-headerTitle,
.first-visit-auth-panel .cl-headerSubtitle,
.first-visit-auth-panel [data-localization-key="signIn.start.title"],
.first-visit-auth-panel [data-localization-key="signUp.start.title"],
.frontend-clerk-mount-shell .cl-headerTitle,
.frontend-clerk-mount-shell .cl-headerSubtitle,
.frontend-clerk-mount-shell [data-localization-key="signIn.start.title"],
.frontend-clerk-mount-shell [data-localization-key="signUp.start.title"] {
  display: none !important;
}

.first-visit-auth-panel .cl-card,
.first-visit-auth-panel .cl-cardBox,
.first-visit-auth-panel .cl-rootBox,
.first-visit-auth-panel .cl-main,
.first-visit-auth-panel .cl-form,
.first-visit-auth-panel .cl-formField,
.first-visit-auth-panel .cl-formFieldRow,
.first-visit-auth-panel .cl-formButtonPrimary,
.first-visit-auth-panel .cl-formFieldInput,
.first-visit-auth-panel .cl-input,
.first-visit-auth-panel input[type="email"],
.first-visit-auth-panel input[type="text"],
.first-visit-auth-panel input[type="password"],
.first-visit-auth-panel [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.first-visit-auth-panel [class*="cl-input"],
.first-visit-auth-panel [class*="cl-rootBox"],
.first-visit-auth-panel [class*="cl-formButtonPrimary"],
.first-visit-auth-panel .cl-socialButtonsBlockButton,
.frontend-clerk-mount-shell .cl-card,
.frontend-clerk-mount-shell .cl-cardBox,
.frontend-clerk-mount-shell .cl-rootBox,
.frontend-clerk-mount-shell .cl-main,
.frontend-clerk-mount-shell .cl-form,
.frontend-clerk-mount-shell .cl-formField,
.frontend-clerk-mount-shell .cl-formFieldRow,
.frontend-clerk-mount-shell .cl-formButtonPrimary,
.frontend-clerk-mount-shell .cl-formFieldInput,
.frontend-clerk-mount-shell .cl-input,
.frontend-clerk-mount-shell input[type="email"],
.frontend-clerk-mount-shell input[type="text"],
.frontend-clerk-mount-shell input[type="password"],
.frontend-clerk-mount-shell [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.frontend-clerk-mount-shell [class*="cl-input"],
.frontend-clerk-mount-shell [class*="cl-rootBox"],
.frontend-clerk-mount-shell [class*="cl-formButtonPrimary"],
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.first-visit-auth-panel .cl-card,
.first-visit-auth-panel .cl-cardBox,
.first-visit-auth-panel .cl-rootBox,
.first-visit-auth-panel .cl-main,
.frontend-clerk-mount-shell .cl-card,
.frontend-clerk-mount-shell .cl-cardBox,
.frontend-clerk-mount-shell .cl-rootBox,
.frontend-clerk-mount-shell .cl-main {
  margin-inline: auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.first-visit-auth-panel .cl-card,
.frontend-clerk-mount-shell .cl-card {
  padding: 0 !important;
}

.first-visit-auth-panel .cl-main,
.first-visit-auth-panel [class*="cl-main"],
.frontend-clerk-mount-shell .cl-main,
.frontend-clerk-mount-shell [class*="cl-main"] {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.first-visit-auth-panel [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.first-visit-auth-panel input[type="email"],
.first-visit-auth-panel input[type="text"],
.first-visit-auth-panel input[type="password"],
.frontend-clerk-mount-shell [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.frontend-clerk-mount-shell input[type="email"],
.frontend-clerk-mount-shell input[type="text"],
.frontend-clerk-mount-shell input[type="password"] {
  min-width: 0 !important;
  display: block !important;
}

.first-visit-auth-panel [class*="cl-formFieldLabel"],
.frontend-clerk-mount-shell [class*="cl-formFieldLabel"] {
  color: rgba(245, 247, 250, 0.82) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.first-visit-auth-panel [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.first-visit-auth-panel input[type="email"],
.first-visit-auth-panel input[type="text"],
.first-visit-auth-panel input[type="password"],
.frontend-clerk-mount-shell [class*="cl-formFieldInput"]:not([class*="ShowPassword"]),
.frontend-clerk-mount-shell input[type="email"],
.frontend-clerk-mount-shell input[type="text"],
.frontend-clerk-mount-shell input[type="password"] {
  min-height: 46px !important;
  border: 1px solid rgba(154, 164, 178, 0.32) !important;
  border-radius: 8px !important;
  background: rgba(5, 11, 20, 0.86) !important;
  color: var(--ice-white) !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 0 rgba(245, 247, 250, 0.05) inset !important;
}

.first-visit-auth-panel [class*="cl-formButtonPrimary"],
.frontend-clerk-mount-shell [class*="cl-formButtonPrimary"] {
  min-height: 48px !important;
  border: 1px solid rgba(91, 151, 255, 0.78) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.98), rgba(42, 105, 232, 0.98)) !important;
  color: var(--ice-white) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.28),
    0 1px 0 rgba(245, 247, 250, 0.18) inset !important;
}

.first-visit-auth-panel .cl-socialButtonsBlockButton,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  border: 1px solid rgba(203, 213, 225, 0.92) !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.first-visit-auth-panel .cl-socialButtonsBlockButton:hover,
.first-visit-auth-panel .cl-socialButtonsBlockButton:focus,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton:hover,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton:focus {
  border-color: rgba(96, 165, 250, 0.85) !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

.first-visit-auth-panel .cl-socialButtonsBlockButton > *,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton > *,
.first-visit-auth-panel .cl-socialButtonsBlockButton > span,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.first-visit-auth-panel .cl-socialButtonsBlockButton > span > span,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton > span > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
}

.first-visit-auth-panel [class*="cl-socialButtonsProviderIcon"],
.frontend-clerk-mount-shell [class*="cl-socialButtonsProviderIcon"],
.first-visit-auth-panel .cl-socialButtonsBlockButton svg,
.frontend-clerk-mount-shell .cl-socialButtonsBlockButton svg {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
}

.first-visit-auth-panel [class*="cl-socialButtonsBlockButtonText"],
.frontend-clerk-mount-shell [class*="cl-socialButtonsBlockButtonText"] {
  display: inline !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.first-visit-auth-panel [class*="cl-formFieldInput__password"],
.frontend-clerk-mount-shell [class*="cl-formFieldInput__password"] {
  position: relative !important;
}

.first-visit-auth-panel input[name="password"],
.frontend-clerk-mount-shell input[name="password"],
.first-visit-auth-panel #password-field,
.frontend-clerk-mount-shell #password-field {
  padding-right: 48px !important;
}

.first-visit-auth-panel [class*="cl-formFieldInputShowPasswordButton"],
.frontend-clerk-mount-shell [class*="cl-formFieldInputShowPasswordButton"] {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  right: 8px !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: transparent !important;
  color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}

.first-visit-auth-panel [class*="cl-formFieldInputShowPasswordButton"]:hover,
.first-visit-auth-panel [class*="cl-formFieldInputShowPasswordButton"]:focus,
.frontend-clerk-mount-shell [class*="cl-formFieldInputShowPasswordButton"]:hover,
.frontend-clerk-mount-shell [class*="cl-formFieldInputShowPasswordButton"]:focus {
  background: rgba(148, 163, 184, 0.14) !important;
  color: var(--ice-white) !important;
  outline: none !important;
}

.first-visit-auth-panel [class*="cl-formFieldInputShowPasswordIcon"],
.frontend-clerk-mount-shell [class*="cl-formFieldInputShowPasswordIcon"] {
  width: 18px !important;
  height: 18px !important;
}

.first-visit-auth-panel [class*="cl-dividerLine"],
.frontend-clerk-mount-shell [class*="cl-dividerLine"] {
  background: rgba(154, 164, 178, 0.22) !important;
}

.first-visit-auth-panel [class*="cl-dividerText"],
.first-visit-auth-panel [class*="cl-footer"],
.first-visit-auth-panel [class*="cl-footerAction"],
.first-visit-auth-panel [class*="cl-formFieldAction"],
.frontend-clerk-mount-shell [class*="cl-dividerText"],
.frontend-clerk-mount-shell [class*="cl-footer"],
.frontend-clerk-mount-shell [class*="cl-footerAction"],
.frontend-clerk-mount-shell [class*="cl-formFieldAction"] {
  color: rgba(196, 205, 219, 0.82) !important;
  letter-spacing: 0 !important;
}

.first-visit-auth-panel .cl-formFieldRow__password,
.frontend-clerk-mount-shell .cl-formFieldRow__password {
  opacity: 1 !important;
  position: static !important;
  height: auto !important;
  transform: none !important;
  pointer-events: auto !important;
}

.first-visit-auth-panel .cl-formField__password,
.frontend-clerk-mount-shell .cl-formField__password {
  height: auto !important;
  overflow: visible !important;
}

.first-visit-auth-panel input[name="password"],
.frontend-clerk-mount-shell input[name="password"],
.first-visit-auth-panel #password-field,
.frontend-clerk-mount-shell #password-field {
  display: block !important;
  pointer-events: auto !important;
}

.first-visit-auth-warning,
.first-visit-warning {
  border-color: rgba(245, 185, 66, 0.3);
  color: var(--dynasty-gold);
}

.first-visit-status {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .global-player-search {
    width: 100%;
    justify-self: stretch;
  }

  .marketplace-my-team-grid,
  .marketplace-loop-guide,
  .marketplace-lifecycle-legend {
    grid-template-columns: 1fr;
  }

  .auth-fixture-product-strip {
    grid-template-columns: 1fr;
  }

  .marketplace-loop-note {
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 12px;
    max-width: 100vw;
    overflow: visible;
    padding-inline: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 240;
  }

  .header-menu {
    display: contents;
  }

  .site-logo {
    grid-column: 1;
    grid-row: 1;
    width: min(250px, calc(100vw - 128px));
    max-width: 100%;
    min-width: 0;
    height: 58px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(59, 130, 246, 0.58) rgba(154, 164, 178, 0.18);
    scrollbar-width: thin;
  }

  .site-nav-button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .app-header .site-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(4, 7, 13, 0.72);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 5px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(59, 130, 246, 0.58) rgba(154, 164, 178, 0.18);
    scrollbar-width: thin;
  }

  .marketplace-mobile-site-nav,
  .app-auth-startup-pending .app-header .site-nav,
  .first-visit-entry-active .app-header .site-nav {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    width: auto;
    min-width: 46px;
    max-width: max-content;
  }

  .global-player-search {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .marketplace-filter-search {
    width: 100%;
    margin-left: 0;
  }

  .marketplace-active-team-kpis {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .marketplace-active-team-header .marketplace-roster-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .frontend-account-bootstrap {
    grid-template-columns: 1fr;
  }

  .auth-fixture-panel {
    width: auto;
    max-width: max-content;
    min-width: 0;
  }

  .account-sign-in-shell .account-sign-in-button {
    min-width: 78px;
    white-space: nowrap;
  }

  .account-menu {
    width: max-content;
  }

  .account-menu .account-menu-trigger {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }

  .account-menu-panel {
    right: 0;
    left: 0;
    position: fixed;
    z-index: 260;
    top: 82px;
    width: auto;
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    margin-inline: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .first-visit-shell {
    padding: 24px 18px;
  }

  .first-visit-entry-active main {
    min-height: calc(100vh - 104px);
    min-height: calc(100dvh - 104px);
    padding: 18px 14px 34px;
  }

  .first-visit-entry-active .site-logo {
    width: min(300px, 78vw);
    height: 72px;
  }

  .first-visit-shell-auth-only {
    width: 100%;
  }

  .first-visit-auth-panel {
    grid-template-columns: 1fr;
  }

  .first-visit-auth-intro {
    min-height: auto;
    padding: 22px 20px 16px;
  }

  .first-visit-auth-intro h2 {
    max-width: none;
    font-size: clamp(30px, 9vw, 42px);
  }

  .first-visit-auth-copy {
    max-width: none;
    font-size: 15px;
  }

  .first-visit-auth-form {
    min-height: auto;
    padding: 18px;
    box-shadow: 0 -1px 0 rgba(245, 247, 250, 0.08);
  }

  .first-visit-team-form {
    grid-template-columns: 1fr;
  }

  .first-visit-button {
    width: 100%;
  }

  .section-card,
  .table-shell,
  .detail-panel,
  .health-banner,
  .toolbar,
  .view-tabs {
    padding: 14px;
  }

  th,
  td {
    padding: 9px 10px;
  }

  .table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .marketplace-table:not(.marketplace-roster-slots-table) {
    width: max-content;
    max-width: none;
    min-width: 100%;
  }

  .marketplace-table.marketplace-unified-table {
    width: max-content;
    max-width: none;
    min-width: 100%;
  }

  .marketplace-active-bids-table {
    width: max-content;
    max-width: none;
    min-width: 100%;
  }

  .marketplace-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketplace-pagination-controls {
    justify-content: flex-start;
  }
}

/* RotoRally professional product redesign v1 cascade lock */
.workspace-section,
.placeholder-shell,
.marketplace-shell,
.player-page-shell {
  width: min(var(--rr-page-max), calc(100vw - 48px));
  margin-inline: auto;
}

.marketplace-product-shell {
  gap: 20px;
}

.marketplace-view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
}

.marketplace-view-title h2 {
  font-size: 28px;
  font-weight: 850;
}

.marketplace-view-title p {
  max-width: 760px;
  margin: 0;
  color: var(--rr-text-soft);
  line-height: 1.45;
}

.marketplace-mini-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
}

.marketplace-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(280px, 380px);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 7, 13, 0.38);
}

.marketplace-listing-filter-bar {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 380px);
}

.marketplace-combined-filter-bar {
  grid-template-columns: minmax(260px, 1fr) auto minmax(320px, 420px);
  gap: 12px;
  align-items: end;
}

/* Active-team management and team branding */
.marketplace-active-team-primary,
.marketplace-header-active-team,
.marketplace-desktop-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketplace-active-team-name-slot {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.marketplace-active-team-tools {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.marketplace-active-team-tool {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.marketplace-active-team-tool:hover,
.marketplace-active-team-tool:focus-visible {
  border-color: #1478ff;
  background: rgba(20, 120, 255, 0.1);
  outline: none;
}

.marketplace-active-team-tool:disabled {
  cursor: wait;
  opacity: 0.45;
}

.marketplace-active-team-tool svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.frontend-team-branding-preview {
  display: grid;
  width: 156px;
  min-width: 156px;
  place-items: center;
}

.frontend-team-helmet {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 922 / 845;
}

.frontend-team-helmet::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #000000;
  content: "";
  mask: url("./assets/team-helmet-mask.png") center / contain no-repeat;
  -webkit-mask: url("./assets/team-helmet-mask.png") center / contain no-repeat;
  transform: scale(1.018);
  transform-origin: center;
}

.frontend-team-helmet-mask {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--team-primary-color);
  mask: url("./assets/team-helmet-mask.png") center / contain no-repeat;
  -webkit-mask: url("./assets/team-helmet-mask.png") center / contain no-repeat;
}

.frontend-team-helmet-abbreviation {
  position: absolute;
  z-index: 2;
  top: 36%;
  left: 34%;
  color: var(--team-secondary-color);
  font-family: Arial, sans-serif;
  font-size: clamp(22px, 3.3vw, 36px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.frontend-team-color-field {
  display: grid;
  gap: 6px;
  color: var(--steel-gray);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.frontend-team-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.frontend-team-color-swatch {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  padding: 0;
  background: var(--team-swatch-color);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}

.frontend-team-color-swatch.is-selected {
  border-color: #1478ff;
  box-shadow: 0 0 0 2px rgba(20, 120, 255, 0.24);
}

.frontend-team-color-swatch:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.frontend-team-hex-field {
  max-width: 132px;
}

.account-menu-field small {
  color: var(--steel-gray);
  font-weight: 500;
  text-transform: none;
}

.marketplace-team-dialog-form .frontend-account-team-form {
  border-top: 0;
  padding-top: 0;
}

.frontend-team-profile-form {
  gap: 12px;
}

.frontend-team-profile-top {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.frontend-team-profile-identity {
  display: grid;
  gap: 9px;
}

.frontend-team-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.frontend-team-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frontend-team-profile-actions .auth-fixture-button {
  justify-content: center;
}

@media (min-width: 781px) {
  .marketplace-header-active-team {
    flex-basis: 280px;
    max-width: 280px;
  }

  .marketplace-header-active-team .marketplace-active-team-select,
  .marketplace-header-active-team .marketplace-active-team-name {
    max-width: 210px;
  }
}

@media screen and (max-width: 780px) {
  .marketplace-team-popover {
    width: min(500px, calc(100% - 20px));
  }

  .frontend-team-profile-top {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 10px;
  }

  .frontend-team-branding-preview {
    width: 126px;
    min-width: 126px;
  }

  .frontend-team-colors {
    gap: 9px;
  }

  .frontend-team-color-swatch {
    width: 23px;
    height: 23px;
  }

  .marketplace-header-active-team {
    max-width: 330px;
  }

  .marketplace-header-active-team .marketplace-active-team-name-slot {
    min-width: 0;
  }

  .marketplace-header-active-team .marketplace-active-team-select,
  .marketplace-header-active-team .marketplace-active-team-name,
  .marketplace-header-active-team-compact .marketplace-active-team-select-value {
    padding-right: 18px;
    padding-left: 18px;
  }

  .marketplace-header-active-team-compact::before,
  .marketplace-header-active-team-compact::after {
    right: 76px;
  }

  .marketplace-header-active-team-compact .marketplace-active-team-select {
    inset: 0;
  }

  .marketplace-header-active-team .marketplace-active-team-tool {
    width: 30px;
    height: 30px;
    border-color: rgba(219, 234, 254, 0.24);
    color: #dbeafe;
  }

  .marketplace-active-team-primary {
    flex-wrap: nowrap;
  }
}

/* Reference-style account dropdown: identity plus the only available account action. */
.account-menu-panel {
  width: min(224px, calc(100vw - 24px));
  gap: 0;
  border: 1px solid #d5dae2;
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
  color: #0b1830;
  box-shadow: 0 8px 20px rgba(11, 24, 48, 0.18);
}

.account-menu-panel::before {
  position: absolute;
  top: -7px;
  right: 42px;
  width: 13px;
  height: 13px;
  border-left: 1px solid #d5dae2;
  border-top: 1px solid #d5dae2;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.account-menu-identity {
  display: grid;
  gap: 3px;
  padding: 18px 20px 14px;
}

.account-menu-identity strong {
  overflow: hidden;
  color: #0b1830;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-identity small {
  overflow: hidden;
  color: #365078;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-command-list {
  border-top: 1px solid #dfe3e9;
}

.account-menu-command {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 0 0 6px 6px;
  padding: 11px 19px;
  background: transparent;
  color: #e11d2e;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.account-menu-sign-out {
  color: #e11d2e;
}

.account-menu-command:hover,
.account-menu-command:focus-visible {
  background: #fff1f2;
  outline: none;
}

.account-menu-command svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media screen and (max-width: 780px) {
  .account-menu-panel {
    right: 12px;
    left: auto;
    top: 70px;
    width: min(224px, calc(100vw - 24px));
    max-height: none;
    margin: 0;
    overflow: visible;
  }

  .account-menu-panel::before {
    right: 17px;
  }
}

.marketplace-search-reset-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.marketplace-search-reset-group .marketplace-filter-search {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-left: 0;
}

.marketplace-search-reset-group .marketplace-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.marketplace-market-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 4px;
  border: 1px solid #c8d2df;
  border-radius: 9px;
  background: #e9eef5;
}

.marketplace-market-type-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  background: transparent;
  color: #4b5c73;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.marketplace-market-type-button:hover {
  color: #0b1f3c;
}

.marketplace-market-type-button.is-active {
  border-color: #2f80ed;
  background: linear-gradient(180deg, #17375f, #0b2342);
  color: #ffffff;
  box-shadow: 0 2px 7px rgba(9, 35, 69, 0.25), inset 0 0 0 1px rgba(105, 173, 255, 0.18);
}

.marketplace-market-type-button:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.28);
  outline-offset: 2px;
}

.marketplace-search-reset-group .marketplace-prospect-search-control {
  width: 100%;
  padding-right: 0;
}

.marketplace-filter-reset {
  justify-self: end;
  align-self: end;
  min-height: 34px;
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: #1e67bd;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-filter-reset:hover {
  color: #0b4386;
  text-decoration: underline;
}

.marketplace-filter-primary,
.marketplace-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.marketplace-unified-table {
  width: max-content;
  min-width: 1290px;
  max-width: none;
}

.marketplace-roster-slots-table {
  min-width: 980px;
}

.marketplace-standings-table {
  min-width: 760px;
}

.marketplace-unified-table th:first-child,
.marketplace-unified-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 310px;
  background: rgba(13, 19, 29, 0.98);
}

.marketplace-unified-table th:last-child,
.marketplace-unified-table td:last-child {
  position: sticky;
  z-index: 2;
  right: 0;
  background: rgba(13, 19, 29, 0.98);
}

.marketplace-listing-sort-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 5px;
  padding: 2px 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
}

.marketplace-listing-sort-button:hover,
.marketplace-listing-sort-button:focus-visible {
  background: rgba(37, 99, 168, 0.1);
  color: #174d84;
  outline: 2px solid rgba(37, 99, 168, 0.26);
  outline-offset: 1px;
}

.marketplace-listing-sort-button-active {
  color: #174d84;
}

.marketplace-listing-sort-marker {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
}

.marketplace-listing-header-with-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.marketplace-listing-header-with-help .marketplace-listing-sort-button {
  width: auto;
}

.marketplace-listing-column-help {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  border: 1px solid #8ea0b8;
  border-radius: 50%;
  padding: 0;
  background: #ffffff;
  color: #43536a;
  box-shadow: none;
  cursor: help;
  font: 800 11px/1 var(--rr-font-family);
}

.marketplace-listing-column-help:hover,
.marketplace-listing-column-help:focus-visible {
  border-color: #2563a8;
  color: #174d84;
  outline: 2px solid rgba(37, 99, 168, 0.2);
  outline-offset: 2px;
}

.marketplace-listing-help-popover {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(330px, calc(100vw - 32px));
  height: auto;
  min-height: 0;
  max-height: min(240px, calc(100dvh - 32px));
  margin: 0;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 10px;
  padding: 15px 17px;
  background: #111a28;
  color: #eef5ff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
  font-family: var(--rr-font-family);
}

.marketplace-listing-help-popover:popover-open {
  display: grid;
  gap: 6px;
  align-content: start;
}

.marketplace-listing-help-popover strong {
  font-size: 13px;
}

.marketplace-listing-help-popover span {
  color: #c5d2e3;
  font-size: 12px;
  line-height: 1.5;
}

.marketplace-listing-help-popover::backdrop {
  background: rgba(4, 8, 14, 0.2);
}

.marketplace-player-label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  max-width: none;
  white-space: nowrap;
}

.marketplace-player-label > span {
  white-space: nowrap;
}

.marketplace-unified-table .marketplace-roster-player-value-pill {
  display: inline-flex;
}

.marketplace-player-value-pill-tooltip {
  position: relative;
  cursor: help;
  outline-offset: 2px;
}

.marketplace-player-value-pill-tooltip::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 240px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 7px;
  padding: 7px 9px;
  background: #10243a;
  color: #f8fbff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.26);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
  white-space: normal;
}

.marketplace-player-value-pill-tooltip:hover::after,
.marketplace-player-value-pill-tooltip:focus::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.marketplace-signal-cell {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.player-page-hero {
  display: grid;
  gap: 18px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 22px;
}

.player-page-asset-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

@media (max-width: 1120px) {
  .marketplace-view-header,
  .marketplace-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .header-menu,
  .workspace-section,
  .placeholder-shell,
  .marketplace-shell,
  .player-page-shell {
    width: min(100%, calc(100vw - 24px));
  }

  .marketplace-mini-metric-row,
  .marketplace-active-team-header .marketplace-roster-kpi-strip,
  .player-page-asset-summary {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .marketplace-unified-table {
    width: max-content;
    min-width: 1230px;
    max-width: none;
  }

  .marketplace-roster-slots-table {
    min-width: 920px;
  }

  .marketplace-unified-table th:first-child,
  .marketplace-unified-table td:first-child {
    position: static;
    left: auto;
    min-width: 330px;
  }

  .marketplace-unified-table th:last-child,
  .marketplace-unified-table td:last-child {
    position: static;
    right: auto;
  }
}

@media (max-width: 780px) {
  .marketplace-view-header,
  .marketplace-view-title,
  .marketplace-view-meta {
    min-width: 0;
    max-width: 100%;
  }

  .marketplace-view-title p {
    overflow-wrap: anywhere;
  }

  .marketplace-mini-metric-row,
  .marketplace-active-team-header .marketplace-roster-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .marketplace-mini-metric,
  .marketplace-roster-kpi-card {
    min-width: 0;
  }

  .player-page-asset-summary {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    overflow-x: auto;
  }
}

/* RotoRally light KPI and table surfaces v1 */
:root {
  --rr-paper: #f8fafc;
  --rr-paper-strong: #ffffff;
  --rr-paper-soft: #eef3f8;
  --rr-paper-hover: #eaf2ff;
  --rr-paper-selected: #dceaff;
  --rr-paper-line: #cbd5e1;
  --rr-paper-ink: #0B1830;
  --rr-paper-muted: #526077;
  --rr-paper-link: #1557C0;
  --rr-paper-link-strong: #123E8A;
  --rr-paper-shadow: 0 14px 34px rgba(8, 15, 26, 0.2);
}

.marketplace-active-team-header .marketplace-roster-kpi-card,
.marketplace-mini-metric,
.marketplace-stat-card,
.health-stat-card,
.player-page-fact,
.player-market-fact,
.marketplace-lifecycle-summary-item {
  border-color: rgba(203, 213, 225, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96)),
    var(--rr-paper-strong);
  color: var(--rr-paper-ink);
  box-shadow:
    0 12px 28px rgba(8, 15, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.marketplace-active-team-header .marketplace-roster-kpi-card strong,
.marketplace-mini-metric strong,
.marketplace-stat-card strong,
.health-stat-card strong,
.player-page-fact strong,
.player-market-fact strong,
.marketplace-lifecycle-summary-item strong {
  color: var(--rr-paper-ink);
}

.marketplace-active-team-header .marketplace-roster-kpi-card span,
.marketplace-active-team-header .marketplace-roster-kpi-card small,
.marketplace-mini-metric span,
.marketplace-mini-metric small,
.marketplace-stat-card span,
.marketplace-stat-card small,
.health-stat-card span,
.health-stat-card small,
.player-page-fact span,
.player-page-fact small,
.player-market-fact span,
.player-market-fact small,
.marketplace-lifecycle-summary-item span,
.marketplace-lifecycle-summary-item small {
  color: var(--rr-paper-muted);
}

.table-wrap {
  border-color: var(--rr-paper-line);
  background: var(--rr-paper);
  box-shadow:
    var(--rr-paper-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.table-wrap table {
  background: var(--rr-paper-strong);
  color: var(--rr-paper-ink);
}

.table-wrap th {
  border-bottom-color: #c7d2e0;
  background: var(--rr-paper-soft);
  color: #43536a;
}

.table-wrap td {
  border-bottom-color: #dbe3ec;
  color: var(--rr-paper-ink);
}

.table-wrap tbody tr,
.table-wrap .marketplace-table tbody tr,
.table-wrap .detail-table tbody tr {
  background: var(--rr-paper-strong);
}

.table-wrap tbody tr:nth-child(even) {
  background: #f5f8fb;
}

.table-wrap tbody tr:hover,
.table-wrap tbody tr:focus,
.table-wrap .marketplace-unified-table tbody tr:hover,
.table-wrap .marketplace-roster-slots-table tbody tr:hover {
  background: var(--rr-paper-hover);
}

.table-wrap tbody tr.selected-row {
  background: var(--rr-paper-selected);
  box-shadow: inset 4px 0 0 #2563eb;
}

.table-wrap td strong,
.table-wrap .numeric-cell,
.table-wrap .sort-button {
  color: var(--rr-paper-ink);
}

.table-wrap .team-page-link,
.table-wrap .marketplace-public-team-link,
.table-wrap summary {
  color: var(--rr-paper-link);
}

.table-wrap .player-page-link {
  color: var(--rr-paper-ink);
}

.table-wrap .player-page-link:hover,
.table-wrap .player-page-link:focus,
.table-wrap .team-page-link:hover,
.table-wrap .team-page-link:focus,
.table-wrap .marketplace-public-team-link:hover,
.table-wrap .marketplace-public-team-link:focus,
.table-wrap summary:hover,
.table-wrap summary:focus {
  color: var(--rr-paper-link-strong);
}

.table-wrap .empty-state,
.table-wrap .marketplace-action-note,
.table-wrap .marketplace-player-label > span,
.table-wrap .marketplace-signal-cell span,
.table-wrap .marketplace-lifecycle-cell small,
.table-wrap td small {
  color: var(--rr-paper-muted);
}

.table-wrap .marketplace-status-pill,
.table-wrap .marketplace-status-pill-leading {
  color: #7a5200;
}

.table-wrap .marketplace-status-pill-available,
.table-wrap .marketplace-status-pill-active,
.table-wrap .marketplace-owned-prospect-indicator,
.table-wrap .accounting-badge,
.table-wrap .canonical-badge {
  color: #08783e;
}

.table-wrap .marketplace-status-pill-info,
.table-wrap .source-badge {
  color: var(--rr-paper-link);
}

.table-wrap .marketplace-status-pill-muted,
.table-wrap .empty-badge,
.table-wrap .confidence-badge {
  color: #536277;
}

.table-wrap .marketplace-status-pill-blocked,
.table-wrap .error-badge {
  color: #991b1b;
}

.table-wrap .warning-badge,
.table-wrap .missing-badge {
  color: #8a5800;
}

.table-wrap .review-badge {
  color: #6d28d9;
}

.table-wrap .marketplace-small-button,
.table-wrap .marketplace-inline-button {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #24466f, #172f50);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.table-wrap .marketplace-small-button:hover,
.table-wrap .marketplace-small-button:focus,
.table-wrap .marketplace-inline-button:hover,
.table-wrap .marketplace-inline-button:focus {
  border-color: #2563eb;
  background: linear-gradient(180deg, #315b8d, #1d3d66);
  color: #ffffff;
}

.table-wrap .marketplace-bid-open-button {
  border-color: #8db8fa;
  background: linear-gradient(180deg, #ffffff, #e9f3ff);
  color: #075fce;
  box-shadow: 0 1px 2px rgba(15, 45, 82, 0.1);
}

.table-wrap .marketplace-bid-open-button:hover,
.table-wrap .marketplace-bid-open-button:focus {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #f8fbff, #dcecff);
  color: #064fa8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.table-wrap .marketplace-small-button:disabled,
.table-wrap .marketplace-inline-button:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
}

.marketplace-unified-table th:first-child,
.marketplace-unified-table th:last-child,
.marketplace-prospect-board-table th:last-child {
  background: var(--rr-paper-soft);
}

.marketplace-unified-table td:first-child,
.marketplace-unified-table td:last-child,
.marketplace-prospect-board-table td:last-child {
  background: var(--rr-paper-strong);
}

.marketplace-unified-table tbody tr:nth-child(even) > td:first-child,
.marketplace-unified-table tbody tr:nth-child(even) > td:last-child,
.marketplace-prospect-board-table tbody tr:nth-child(even) > td:last-child {
  background: #f5f8fb;
}

/* RotoRally light surface hierarchy v2 */
:root {
  --rr-header-deep: #081625;
  --rr-header-mid: #0d2238;
  --rr-table-frame: #f7f9fc;
  --rr-table-frame-strong: #ffffff;
  --rr-table-frame-line: #cbd5e1;
  --rr-table-frame-ink: #0B1830;
  --rr-table-frame-muted: #526077;
  --rr-paper-shadow: 0 6px 18px rgba(8, 15, 26, 0.09);
}

.app-header {
  border-bottom-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 18% -70%, rgba(59, 130, 246, 0.26), transparent 42%),
    linear-gradient(112deg, rgba(13, 34, 56, 0.99), rgba(8, 22, 37, 0.99) 58%, rgba(6, 17, 30, 0.99));
  box-shadow:
    0 12px 30px rgba(3, 10, 20, 0.3),
    inset 0 -1px 0 rgba(96, 165, 250, 0.08);
}

.site-nav {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.site-nav-button {
  border: 1px solid transparent;
  background: transparent;
  color: #c6d2e2;
  box-shadow: none;
}

.site-nav-button:hover,
.site-nav-button:focus {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(59, 130, 246, 0.12);
  color: #f8fafc;
  box-shadow: none;
}

.site-nav-button.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.2));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 14px rgba(15, 60, 120, 0.18);
}

.site-nav-button:disabled,
.site-nav-button.is-disabled,
.site-nav-button.is-disabled:hover,
.site-nav-button.is-disabled:focus,
.site-nav-button.is-disabled.active {
  border-color: transparent;
  background: transparent;
  color: rgba(198, 210, 226, 0.42);
  box-shadow: none;
}

.global-search-box input,
.account-menu-trigger {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(5, 16, 29, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.section-card:has(.table-wrap),
.marketplace-card:has(.table-wrap),
.marketplace-listing-card,
.player-transaction-history-card {
  border-color: var(--rr-table-frame-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 252, 0.98)),
    var(--rr-table-frame-strong);
  color: var(--rr-table-frame-ink);
  box-shadow:
    0 14px 34px rgba(8, 15, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.section-card:has(.table-wrap)::before,
.marketplace-card:has(.table-wrap)::before,
.marketplace-listing-card::before,
.player-transaction-history-card::before {
  opacity: 0.5;
}

.section-card:has(.table-wrap) > .section-title-row h3,
.section-card:has(.table-wrap) > .section-title-row h2,
.section-card:has(.table-wrap) > h2,
.section-card:has(.table-wrap) > h3,
.marketplace-card:has(.table-wrap) > .section-title-row h3,
.marketplace-card:has(.table-wrap) > .section-title-row h2,
.marketplace-card:has(.table-wrap) > h2,
.marketplace-card:has(.table-wrap) > .marketplace-card-title-row h3,
.marketplace-card:has(.table-wrap) > .marketplace-card-title-row h2,
.marketplace-listing-card h2,
.marketplace-listing-card h3,
.marketplace-starting-roster-card h3,
.marketplace-bench-roster-card h3,
.marketplace-leaderboard-card h3,
.player-transaction-history-card h3 {
  color: var(--rr-table-frame-ink);
}

.section-card:has(.table-wrap) > p,
.marketplace-card:has(.table-wrap) > p,
.section-card:has(.table-wrap) > .section-title-row p,
.marketplace-card:has(.table-wrap) > .marketplace-card-title-row p {
  color: var(--rr-table-frame-muted);
}

.section-card:has(.table-wrap) .marketplace-board-note,
.marketplace-card:has(.table-wrap) .marketplace-board-note,
.marketplace-listing-card .marketplace-board-note {
  color: var(--rr-table-frame-muted);
}

.section-card:has(.table-wrap) .marketplace-board-note strong,
.marketplace-card:has(.table-wrap) .marketplace-board-note strong,
.marketplace-listing-card .marketplace-board-note strong {
  color: var(--rr-table-frame-ink);
}

.table-wrap {
  border-color: var(--rr-table-frame-line);
  background: var(--rr-table-frame-strong);
  box-shadow: var(--rr-paper-shadow);
}

.table-wrap th {
  background: #edf2f7;
  color: #3f5067;
}

.table-wrap tbody tr:nth-child(even),
.marketplace-unified-table tbody tr:nth-child(even) > td:first-child,
.marketplace-unified-table tbody tr:nth-child(even) > td:last-child,
.marketplace-prospect-board-table tbody tr:nth-child(even) > td:last-child {
  background: #f6f8fb;
}

.marketplace-unified-table tbody tr:hover > td:first-child,
.marketplace-unified-table tbody tr:hover > td:last-child,
.marketplace-prospect-board-table tbody tr:hover > td:last-child,
.marketplace-roster-slots-table tbody tr:hover > td {
  background: var(--rr-paper-hover);
}

main .marketplace-filter-bar,
main .marketplace-team-toolbar {
  border-color: var(--rr-table-frame-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98)),
    var(--rr-table-frame);
  color: var(--rr-table-frame-ink);
  box-shadow: 0 8px 22px rgba(8, 15, 26, 0.1);
}

main .marketplace-filter-bar label,
main .marketplace-team-toolbar label,
main .marketplace-filter-bar .marketplace-filter-label,
main .marketplace-team-toolbar .marketplace-filter-label {
  color: #43536a;
}

main .marketplace-filter-bar select,
main .marketplace-filter-bar input,
main .marketplace-team-toolbar select,
main .marketplace-team-toolbar input,
.marketplace-card:has(.table-wrap) .marketplace-prospect-search-control .marketplace-input {
  border-color: #c4cfdd;
  background: #ffffff;
  color: var(--rr-table-frame-ink);
  box-shadow: inset 0 1px 2px rgba(8, 15, 26, 0.04);
}

main .marketplace-filter-bar input::placeholder,
main .marketplace-team-toolbar input::placeholder,
.marketplace-card:has(.table-wrap) .marketplace-prospect-search-control .marketplace-input::placeholder {
  color: #7a899c;
}

.marketplace-card:has(.table-wrap) .marketplace-prospect-search-control .marketplace-filter-label {
  color: #43536a;
}

.marketplace-prospect-player-label {
  display: grid;
  align-items: start;
  gap: 2px;
  white-space: normal;
}

.marketplace-prospect-player-label > span {
  display: block;
  white-space: nowrap;
}

.marketplace-prospect-board-table .marketplace-roster-player-value-pill {
  display: inline-flex;
}

.table-wrap .marketplace-prospect-player-name {
  color: var(--rr-paper-ink);
  font-weight: 800;
}

.marketplace-prospect-board-table {
  color: var(--rr-paper-ink);
  font-family: var(--rr-font-family);
}

.marketplace-prospect-board-table .marketplace-prospect-player-label > span {
  color: var(--rr-paper-muted);
}

.section-card:has(.table-wrap) .marketplace-pagination,
.marketplace-card:has(.table-wrap) .marketplace-pagination,
.marketplace-listing-card .marketplace-pagination {
  color: var(--rr-table-frame-muted);
}

@media (max-width: 780px) {
  .section-card:has(.table-wrap),
  .marketplace-card:has(.table-wrap),
  .marketplace-listing-card,
  .player-transaction-history-card {
    padding: 12px;
  }

  .marketplace-prospect-board-table .marketplace-prospect-player-label {
    display: grid;
    gap: 2px;
    align-items: start;
    white-space: normal;
  }

  .marketplace-prospect-board-table .marketplace-prospect-player-label > span {
    display: block;
    white-space: nowrap;
  }

  .marketplace-prospect-board-table .marketplace-prospect-board-identity,
  .marketplace-prospect-board-table .marketplace-inline-player-status {
    align-items: flex-start;
  }

  .marketplace-prospect-board-table .marketplace-inline-player-status {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .marketplace-unified-table,
  .marketplace-prospect-board-table {
    width: max-content;
    min-width: 0;
  }

  .marketplace-unified-table .marketplace-player-summary-cell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 4px;
  }

  .marketplace-unified-table .marketplace-player-label {
    display: grid;
    min-width: 0;
    gap: 2px;
    white-space: normal;
  }

  .marketplace-unified-table .marketplace-player-label > span,
  .marketplace-unified-table .marketplace-player-label .player-page-link {
    display: block;
    white-space: nowrap;
  }

  .marketplace-unified-table .marketplace-status-pill,
  .marketplace-prospect-board-table .marketplace-status-pill {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 9px;
  }

  .marketplace-unified-table th:first-child,
  .marketplace-unified-table td:first-child,
  .marketplace-prospect-board-table th:first-child,
  .marketplace-prospect-board-table td:first-child {
    width: 205px;
    min-width: 205px;
    max-width: 205px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .marketplace-unified-table th:first-child {
    position: sticky;
    z-index: 1;
    top: 0;
    left: auto;
  }

  .marketplace-unified-table td:first-child {
    position: static;
    left: auto;
  }

  .marketplace-unified-table th:nth-child(2),
  .marketplace-unified-table td:nth-child(2),
  .marketplace-prospect-board-table th:nth-child(2),
  .marketplace-prospect-board-table td:nth-child(2) {
    width: 45px;
    min-width: 45px;
    padding-right: 2px;
    padding-left: 2px;
    text-align: right;
    white-space: nowrap;
  }

  .marketplace-unified-table th:nth-child(2),
  .marketplace-prospect-board-table th:nth-child(2) {
    font-size: 9px;
    letter-spacing: 0;
  }

  .marketplace-prospect-board-table th:nth-child(2),
  .marketplace-prospect-board-table td:nth-child(2) {
    width: 76px;
    min-width: 76px;
  }

  .marketplace-unified-table th:last-child,
  .marketplace-unified-table td:last-child,
  .marketplace-prospect-board-table th:last-child,
  .marketplace-prospect-board-table td:last-child {
    position: sticky;
    right: 0;
    box-sizing: border-box;
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .marketplace-unified-table td:last-child .marketplace-action-row,
  .marketplace-prospect-board-table td:last-child .marketplace-action-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .marketplace-unified-table td:last-child .marketplace-small-button,
  .marketplace-prospect-board-table td:last-child .marketplace-small-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 5px;
    padding-left: 5px;
  }

  .marketplace-unified-table th:last-child,
  .marketplace-prospect-board-table th:last-child {
    z-index: 4;
    top: 0;
  }

  .marketplace-unified-table td:last-child,
  .marketplace-prospect-board-table td:last-child {
    z-index: 3;
  }

  .app-header {
    box-shadow: 0 8px 22px rgba(3, 10, 20, 0.28);
  }
}

/* Inline roster slot picker */
.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-move-column {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
}

.marketplace-roster-slot-target-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(30, 74, 128, 0.28);
  border-radius: 9px;
  padding: 0;
  background: #f8fbff;
  color: #1e4a80;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  touch-action: manipulation;
}

.marketplace-roster-move-handle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: #71829a;
  box-shadow: none;
  touch-action: manipulation;
}

.marketplace-roster-move-handle:hover,
.marketplace-roster-move-handle:focus-visible,
.marketplace-roster-slot-target-button:hover,
.marketplace-roster-slot-target-button:focus-visible {
  border-color: #2563a8;
  background: #eaf4ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.16);
  transform: none;
}

.marketplace-roster-move-handle-active {
  background: #e6f1ff;
  color: #174d84;
}

.marketplace-roster-move-handle-icon {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  width: max-content;
}

.marketplace-roster-move-handle-icon i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.marketplace-roster-slot-target-button {
  border-color: rgba(21, 128, 91, 0.45);
  background: #e9f8f1;
  color: #0f7250;
}

.marketplace-roster-slot-target-icon {
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-slot-selectable {
  cursor: pointer;
  opacity: 1;
  box-shadow: inset 4px 0 0 #15805b;
}

.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-slot-selectable > td,
.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-slot-selectable:hover > td {
  background: linear-gradient(90deg, #e5f7ef, #f0f7ff);
}

.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-slot-selectable:hover > td {
  background: linear-gradient(90deg, #d7f2e7, #e6f2ff);
}

.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-slot-unavailable {
  opacity: 0.48;
}

.marketplace-my-team-shell .marketplace-roster-slots-table tr.marketplace-roster-move-source > td {
  background: #eaf4ff;
}

@media screen and (max-width: 780px) {
  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-move-column {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding: 3px;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-slot-column {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
  }

  .marketplace-roster-slot-target-button {
    width: 40px;
    min-width: 40px;
    height: 44px;
    min-height: 44px;
  }

  .marketplace-roster-move-handle {
    width: 30px;
    min-width: 30px;
    height: 44px;
    min-height: 44px;
  }

}

@media screen and (max-width: 780px) {
  .marketplace-combined-filter-bar {
    grid-template-columns: 1fr;
  }

  .marketplace-market-type-toggle {
    width: 100%;
  }

  .marketplace-market-type-button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .marketplace-combined-filter-bar .marketplace-filter-search,
  .marketplace-combined-filter-bar .marketplace-prospect-search-control,
  .marketplace-combined-filter-bar .marketplace-input {
    width: 100%;
  }

  .marketplace-listing-card .marketplace-filter-primary,
  .marketplace-combined-filter-bar .marketplace-filter-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .marketplace-listing-card .marketplace-filter-primary .marketplace-filter-option,
  .marketplace-listing-card .marketplace-filter-primary .marketplace-select,
  .marketplace-combined-filter-bar .marketplace-filter-primary .marketplace-filter-option,
  .marketplace-combined-filter-bar .marketplace-filter-primary .marketplace-select {
    width: 100%;
    min-width: 0;
  }
}

/* Active-team controls live in the global header at every viewport. */
.marketplace-top-level-items,
.marketplace-header-team-summary {
  display: none;
}

.marketplace-active-team-select-value {
  display: none;
}

@media (min-width: 781px) {
  .header-actions {
    gap: 16px;
  }

  .auth-fixture-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
  }

  .marketplace-header-team-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
  }

  .marketplace-header-active-team {
    display: grid;
    flex: 0 1 210px;
    gap: 2px;
    min-width: 150px;
    max-width: 210px;
  }

  .marketplace-header-active-team .marketplace-active-team-select,
  .marketplace-header-active-team .marketplace-active-team-name {
    width: auto;
    max-width: 210px;
    min-height: 30px;
    margin: 0;
    padding: 2px 24px 2px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ice-white);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.15;
    white-space: nowrap;
  }

  .marketplace-header-active-team .marketplace-active-team-select:hover,
  .marketplace-header-active-team .marketplace-active-team-select:focus {
    border: 0;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: var(--focus-ring);
  }

  .marketplace-header-active-team .marketplace-active-team-create-button {
    min-width: 132px;
    min-height: 34px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .marketplace-header-active-team .marketplace-active-team-create-button::before {
    width: 16px;
    height: 16px;
    font-size: 14px;
  }

  .marketplace-header-team-metrics {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
  }

  .marketplace-header-team-metric {
    display: grid;
    gap: 3px;
    min-width: 58px;
  }

  .marketplace-header-team-metric span {
    color: #93a4b9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
  }

  .marketplace-header-team-metric strong {
    color: var(--ice-white);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
}

@media (min-width: 1121px) {
  .app-header {
    grid-template-columns: minmax(260px, 1fr) minmax(650px, 760px);
  }

  .app-header:has(.account-sign-in-shell) {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 180px);
  }

  .header-menu {
    grid-column: 1;
    width: 100%;
  }

  .header-actions {
    grid-column: 2;
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 780px) {
  .app-header {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px 10px;
    padding: 10px 12px 12px;
  }

  .site-logo,
  .first-visit-entry-active .site-logo {
    width: 46px;
    height: 42px;
  }

  .site-logo-picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .site-logo-image {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
  }

  .header-actions {
    grid-column: 2 / 4;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .auth-fixture-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    max-width: none;
  }

  .marketplace-header-team-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    min-width: 0;
  }

  .marketplace-header-active-team {
    width: 100%;
    min-width: 0;
    max-width: 280px;
  }

  .marketplace-header-active-team .marketplace-active-team-select,
  .marketplace-header-active-team .marketplace-active-team-name,
  .marketplace-header-active-team-compact .marketplace-active-team-select-value {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 1px 26px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ice-white);
    font-size: clamp(20px, 5.8vw, 24px);
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketplace-header-active-team-compact .marketplace-active-team-select-value {
    display: block;
    overflow: hidden;
  }

  .marketplace-header-active-team-compact .marketplace-active-team-select {
    position: absolute;
    z-index: 2;
    inset: 0;
    -webkit-appearance: none;
    appearance: none;
    min-height: 100%;
    cursor: pointer;
    opacity: 0;
  }

  .marketplace-header-active-team-compact {
    position: relative;
  }

  .marketplace-header-active-team-compact::before,
  .marketplace-header-active-team-compact::after {
    position: absolute;
    right: 9px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #dbeafe;
    border-bottom: 2px solid #dbeafe;
    content: "";
    pointer-events: none;
  }

  .marketplace-header-active-team-compact::before {
    top: 5px;
    transform: rotate(-135deg);
  }

  .marketplace-header-active-team-compact::after {
    bottom: 5px;
    transform: rotate(45deg);
  }

  .marketplace-header-active-team-compact:focus-within {
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.08);
    outline: 2px solid rgba(96, 165, 250, 0.7);
    outline-offset: 2px;
  }

  .marketplace-header-active-team .marketplace-active-team-select:hover,
  .marketplace-header-active-team .marketplace-active-team-select:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
  }

  .marketplace-header-active-team .marketplace-active-team-create-button {
    min-width: 0;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .marketplace-header-active-team .marketplace-active-team-create-button::before {
    display: none;
  }

  .marketplace-header-team-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(220px, 100%);
    min-width: 0;
  }

  .marketplace-header-team-metric {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
  }

  .marketplace-header-team-metric + .marketplace-header-team-metric {
    border-left: 1px solid rgba(148, 163, 184, 0.34);
  }

  .marketplace-header-team-metric span {
    color: #68d580;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
  }

  .marketplace-header-team-metric strong {
    color: #75e38b;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .marketplace-header-team-metric:nth-child(2) span {
    color: #6aa9ef;
  }

  .marketplace-header-team-metric:nth-child(2) strong {
    color: #77b5ff;
  }

  .auth-fixture-panel > .account-menu {
    justify-self: center;
  }

  .account-menu .account-menu-trigger {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media screen and (max-width: 350px) {
  .app-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 7px;
    padding-inline: 9px;
  }

  .site-logo,
  .first-visit-entry-active .site-logo {
    width: 40px;
    height: 38px;
  }

  .auth-fixture-panel {
    grid-template-columns: minmax(0, 1fr) 40px;
    column-gap: 7px;
  }

  .marketplace-header-active-team .marketplace-active-team-select,
  .marketplace-header-active-team .marketplace-active-team-name,
  .marketplace-header-active-team-compact .marketplace-active-team-select-value {
    padding-inline: 20px;
    font-size: clamp(18px, 5.8vw, 20px);
  }

  .marketplace-header-team-metrics {
    width: min(190px, 100%);
  }

  .marketplace-header-team-metric {
    padding-inline: 8px;
  }

  .marketplace-header-team-metric strong {
    font-size: 14px;
  }

}

/* Compact read-only public roster profiles */
.marketplace-public-team-profile {
  gap: 16px;
  color: var(--rr-paper-ink);
}

.marketplace-public-team-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--rr-paper-line);
  padding-bottom: 14px;
}

.marketplace-public-team-profile-header .marketplace-muted-button {
  align-self: start;
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}

.marketplace-public-team-profile-header .marketplace-muted-button:hover,
.marketplace-public-team-profile-header .marketplace-muted-button:focus-visible {
  border-color: #93b4dc;
  background: #e8f1fb;
  color: #174d84;
}

.marketplace-public-team-identity {
  min-width: 0;
}

.marketplace-public-team-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.marketplace-public-team-profile-header h2 {
  min-width: 0;
  margin: 0;
  color: var(--rr-paper-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.marketplace-public-team-profile-header .empty-state {
  margin: 5px 0 0;
  color: var(--rr-paper-muted);
}

.marketplace-public-team-readonly-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f8fafc;
  color: #5b6b80;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marketplace-public-team-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  border-left: 1px solid var(--rr-paper-line);
  padding-left: 18px;
}

.marketplace-public-team-summary div {
  display: grid;
  gap: 1px;
  min-width: 76px;
}

.marketplace-public-team-summary dt {
  color: var(--rr-paper-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.marketplace-public-team-summary dd {
  margin: 0;
  color: var(--rr-paper-ink);
  font-size: 18px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.marketplace-public-team-section h3 {
  color: var(--rr-paper-ink);
  font-size: 16px;
}

.marketplace-public-team-section .table-wrap {
  overflow-x: hidden;
}

.marketplace-public-team-roster-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.marketplace-public-team-roster-table .marketplace-roster-slot-column {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  white-space: nowrap;
}

.marketplace-public-team-roster-table .marketplace-roster-player-column {
  width: auto;
  min-width: 0;
}

.marketplace-public-team-roster-table .marketplace-roster-worth-column {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  text-align: right;
  white-space: nowrap;
}

.marketplace-public-team-profile
  .marketplace-public-team-roster-table
  .marketplace-roster-worth-column {
  display: table-cell;
}

.marketplace-public-team-roster-table th,
.marketplace-public-team-roster-table td {
  padding: 8px 9px;
  white-space: normal;
}

.marketplace-public-team-player-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  white-space: normal;
}

.marketplace-public-team-player-label .marketplace-roster-player-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
  min-width: 0;
}

.marketplace-public-team-player-label > span {
  color: var(--rr-paper-muted);
  font-size: 11px;
  font-weight: 750;
  white-space: normal;
}

.marketplace-public-team-open-slot {
  color: var(--rr-paper-muted);
}

.marketplace-public-team-roster-table .marketplace-listing-indicator {
  border-color: #9bd8bf;
  background: #edf9f3;
  color: #0f7250;
}

.marketplace-public-team-roster-table .marketplace-listing-indicator.is-live {
  border-color: #e8c66f;
  background: #fff8e5;
  color: #835700;
}

@media screen and (max-width: 780px) {
  .marketplace-public-team-profile-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    align-items: start;
  }

  .marketplace-public-team-profile-header .marketplace-muted-button {
    justify-self: start;
  }

  .marketplace-public-team-summary {
    gap: 24px;
    border-top: 1px solid var(--rr-paper-line);
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
  }

  .marketplace-public-team-summary dd {
    font-size: 17px;
  }

  .marketplace-public-team-roster-table {
    min-width: 0;
  }

  .marketplace-public-team-roster-table .marketplace-roster-slot-column {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    padding-right: 5px;
    padding-left: 6px;
  }

  .marketplace-public-team-roster-table .marketplace-roster-worth-column {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    padding-right: 7px;
    padding-left: 4px;
  }

  .marketplace-public-team-roster-table td.marketplace-roster-slot-column {
    font-size: 11px;
    letter-spacing: -0.01em;
  }

  .marketplace-public-team-roster-table th,
  .marketplace-public-team-roster-table td {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
  }
}

.table-wrap .marketplace-countdown-timer-ending-soon {
  color: #8f1d1d;
  font-weight: 850;
}

/* Public policy and support surfaces remain available before and after sign-in. */
.marketplace-policy-shell {
  width: min(1120px, calc(100vw - 48px));
}

.marketplace-policy-summary {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #cfd9e5;
  border-left: 4px solid var(--electric-blue);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f3f7fc);
  color: #43536a;
  box-shadow: 0 8px 22px rgba(8, 15, 26, 0.1);
  font-size: 15px;
  line-height: 1.6;
}

.marketplace-policy-grid {
  gap: 16px;
}

.marketplace-policy-card {
  align-content: start;
}

main .marketplace-policy-card a,
.marketplace-policy-inline-links a {
  color: #1d5ca8;
  font-weight: 800;
  text-underline-offset: 2px;
}

main .marketplace-policy-card a:hover,
main .marketplace-policy-card a:focus-visible,
.marketplace-policy-inline-links a:hover,
.marketplace-policy-inline-links a:focus-visible {
  color: #123f78;
}

.marketplace-policy-inline-links {
  margin: 2px 0 0;
}

.first-visit-policy-note {
  max-width: 640px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.first-visit-policy-note a {
  color: #8dc2ff;
  font-weight: 800;
  text-underline-offset: 2px;
}

.first-visit-policy-note a:hover,
.first-visit-policy-note a:focus-visible {
  color: #c7e2ff;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent 34%, rgba(34, 197, 94, 0.055)),
    rgba(7, 10, 16, 0.96);
  color: #aebdcd;
}

.site-footer-inner {
  width: min(var(--rr-page-max), calc(100vw - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.site-footer-status {
  color: #d7e0ea;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer-links a {
  color: #b9c7d6;
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: rgba(142, 194, 255, 0.5);
  text-underline-offset: 3px;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #ffffff;
}

@media (max-width: 780px) {
  .marketplace-policy-shell {
    width: min(100%, calc(100vw - 24px));
  }

  .marketplace-policy-summary {
    padding: 14px;
    font-size: 14px;
  }

  .site-footer-inner {
    width: min(100%, calc(100vw - 28px));
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0 22px;
  }

  .site-footer-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }
}

.marketplace-activity-strip {
  overflow: hidden;
  border: 1px solid var(--rr-table-frame-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--rr-paper-ink);
  box-shadow: 0 8px 22px rgba(8, 15, 26, 0.08);
}

.marketplace-market-shell > .marketplace-view-header {
  padding: 0 2px;
}

.marketplace-activity-header {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 28px;
  padding: 8px 14px;
  box-sizing: border-box;
}

.marketplace-activity-header h3 {
  margin: 0;
  color: var(--rr-paper-ink);
  font-size: 15px;
  font-weight: 800;
}

.marketplace-activity-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  color: #5f6c7c;
  font-size: 13px;
  white-space: nowrap;
}

.marketplace-activity-metrics strong {
  margin-left: 4px;
  color: #1d5ca8;
  font-weight: 800;
}

.marketplace-activity-metrics [data-marketplace-activity-metric="cash"] strong,
.marketplace-activity-metrics [data-marketplace-activity-metric="reserved"] strong {
  color: #16865b;
}

.marketplace-activity-list {
  overflow-x: auto;
  border-top: 1px solid #e5e9ef;
}

.marketplace-activity-row {
  display: grid;
  grid-template-columns:
    max-content
    fit-content(220px)
    max-content
    max-content
    fit-content(260px)
    max-content
    minmax(88px, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 870px;
  min-height: 48px;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid #edf0f4;
  background: #ffffff;
  color: var(--rr-paper-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
}

.marketplace-activity-row:first-child {
  border-top: 0;
}

.marketplace-activity-row:hover {
  background: #f8fafc;
}

.marketplace-activity-status,
.marketplace-activity-name,
.marketplace-activity-position,
.marketplace-activity-team,
.marketplace-activity-leader,
.marketplace-activity-current-bid {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-activity-status {
  color: #526176;
  font-size: 12px;
  font-weight: 800;
}

.marketplace-activity-row[data-marketplace-activity-status="leading"] .marketplace-activity-status {
  color: #087d55;
}

.marketplace-activity-row[data-marketplace-activity-status="needs-response"] .marketplace-activity-status {
  color: #b04d1d;
}

.marketplace-activity-name {
  color: var(--rr-paper-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.marketplace-activity-name:hover,
.marketplace-activity-name:focus-visible {
  color: #075ac6;
  text-decoration: underline;
}

.marketplace-activity-position,
.marketplace-activity-team,
.marketplace-activity-leader,
.marketplace-activity-current-bid {
  color: #657489;
  font-size: 12px;
}

.marketplace-activity-current-bid {
  color: var(--rr-paper-ink);
  font-weight: 800;
}

.marketplace-activity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  justify-self: stretch;
  margin-left: auto;
  white-space: nowrap;
}

.marketplace-activity-actions:empty {
  min-height: 30px;
}

.marketplace-activity-actions .marketplace-activity-button {
  min-width: 0;
  min-height: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #075ac6;
  font-weight: 800;
  line-height: 1.2;
}

.marketplace-activity-actions .marketplace-activity-button:hover,
.marketplace-activity-actions .marketplace-activity-button:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #004da8;
  text-decoration: underline;
}

.marketplace-watch-button {
  align-items: center;
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #516274;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.22rem;
  line-height: 1;
  padding: 0.15rem 0;
}

.marketplace-watch-button:hover,
.marketplace-watch-button:focus-visible,
.marketplace-watch-button.is-watched {
  color: #9b6a09;
}

.marketplace-watch-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.player-page-hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.player-page-hero-actions .marketplace-watch-button {
  align-self: flex-end;
  min-height: 34px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(30, 64, 175, 0.16);
  color: #dbeafe;
  font-size: 12px;
}

.player-page-hero-actions .marketplace-watch-button:hover,
.player-page-hero-actions .marketplace-watch-button:focus-visible,
.player-page-hero-actions .marketplace-watch-button.is-watched {
  border-color: rgba(245, 185, 66, 0.68);
  background: rgba(245, 185, 66, 0.12);
  color: #f8d889;
}

.player-page-hero-actions .marketplace-watch-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

@media (max-width: 780px) {
  .player-page-hero-actions {
    align-items: flex-start;
    margin-top: 12px;
  }

  .player-page-hero-actions .player-page-market-status {
    margin-top: 0;
  }

  .player-page-hero-actions .marketplace-watch-button {
    align-self: flex-start;
    min-height: 38px;
  }

  .marketplace-activity-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
  }

  .marketplace-activity-metrics {
    gap: 14px;
    font-size: 12px;
  }

  .marketplace-activity-row {
    gap: 10px;
    padding: 9px 12px;
  }
}

@media (max-width: 420px) {
  .marketplace-activity-metrics {
    gap: 6px 12px;
    white-space: normal;
  }
}

/* RotoRally product workspace transition */
:root {
  --rr-workspace: #eef1f4;
  --rr-workspace-card: #ffffff;
  --rr-workspace-line: #d4dce6;
  --rr-workspace-ink: #0b1830;
  --rr-workspace-muted: #5d6a7e;
  --rr-sidebar-width: 124px;
  --rr-desktop-footer-height: 40px;
}

.app-sidebar { display: none; }

@media (min-width: 1181px) {
  body:has(.marketplace-product-shell) .app-header,
  body:has(.player-page-shell) .app-header {
    border-bottom-color: transparent;
    background:
      linear-gradient(90deg, #153051 0 var(--rr-sidebar-width), transparent var(--rr-sidebar-width)),
      radial-gradient(circle at 18% -70%, rgba(59, 130, 246, 0.26), transparent 42%),
      linear-gradient(112deg, rgba(13, 34, 56, 0.99), rgba(8, 22, 37, 0.99) 58%, rgba(6, 17, 30, 0.99));
    box-shadow: none;
  }

  body:has(.marketplace-product-shell) .app-header .site-nav,
  body:has(.player-page-shell) .app-header .site-nav {
    display: none;
  }

  body:has(.marketplace-product-shell) .app-sidebar,
  body:has(.player-page-shell) .app-sidebar {
    position: fixed;
    z-index: 24;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--rr-sidebar-width);
    flex-direction: column;
    justify-content: space-between;
    border-right: 0;
    padding: 119px 10px 18px;
    background: #153051;
    box-shadow: none;
  }
  body:has(.marketplace-product-shell) main,
  body:has(.player-page-shell) main,
  body:has(.marketplace-product-shell) .site-footer,
  body:has(.player-page-shell) .site-footer {
    margin-left: var(--rr-sidebar-width);
  }
}

/* My Roster: full-width stacked tables and shared workspace KPI treatment. */
.marketplace-my-team-shell .marketplace-my-roster-kpis {
  grid-column: auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 112px;
  padding: 18px 8px;
}

.marketplace-my-team-shell .marketplace-my-roster-kpi {
  grid-template-columns: 38px minmax(0, auto);
  gap: 10px;
}

.marketplace-my-team-shell .marketplace-my-roster-kpi .marketplace-leaderboard-kpi-icon,
.marketplace-my-team-shell .marketplace-my-roster-kpi .marketplace-leaderboard-kpi-icon svg,
.marketplace-my-team-shell .marketplace-my-roster-kpi .marketplace-leaderboard-kpi-icon img {
  width: 34px;
  height: 34px;
}

.marketplace-supplied-kpi-icon img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.marketplace-my-team-shell .marketplace-my-roster-kpi .marketplace-leaderboard-kpi-copy {
  gap: 8px;
}

.marketplace-my-team-shell .marketplace-my-roster-kpi .marketplace-leaderboard-kpi-copy > span {
  font-size: 10px;
}

.marketplace-my-team-shell .marketplace-my-roster-kpi strong {
  font-size: 21px;
}

.marketplace-my-team-shell .marketplace-my-team-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
}

.marketplace-my-team-grid > .marketplace-starting-roster-card,
.marketplace-my-team-grid > .marketplace-bench-roster-card,
.marketplace-my-team-grid > .marketplace-prospect-stash-card {
  grid-column: 1;
}

@media (min-width: 781px) {
  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-move-column {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-slot-column {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-worth-column {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-player-column {
    width: 230px !important;
    min-width: 180px !important;
    max-width: 230px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-opponent-column {
    width: auto !important;
    min-width: 150px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-stat-column {
    width: 108px !important;
    min-width: 96px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-list-column {
    width: 76px !important;
    min-width: 76px !important;
  }
}

@media (max-width: 1280px) and (min-width: 781px) {
  .marketplace-my-team-shell .marketplace-my-roster-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi {
    border-left: 0;
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi:nth-child(3n + 2),
  .marketplace-my-team-shell .marketplace-my-roster-kpi:nth-child(3n + 3) {
    border-left: 1px solid var(--rr-workspace-line);
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi:nth-child(n + 4) {
    border-top: 1px solid var(--rr-workspace-line);
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-player-column {
    width: 190px !important;
  }
}

@media (max-width: 780px) {
  .marketplace-my-team-shell .marketplace-my-roster-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi {
    min-height: 78px;
    border-left: 0;
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi:nth-child(even) {
    border-left: 1px solid var(--rr-workspace-line);
  }

  .marketplace-my-team-shell .marketplace-my-roster-kpi:nth-child(n + 3) {
    border-top: 1px solid var(--rr-workspace-line);
  }

  .marketplace-my-team-shell .marketplace-roster-bench-row .marketplace-roster-slot-column {
    display: none;
  }

  .marketplace-my-team-shell .marketplace-roster-slots-table th.marketplace-roster-stat-column,
  .marketplace-my-team-shell .marketplace-roster-slots-table td.marketplace-roster-stat-column {
    display: none !important;
  }

  .marketplace-my-team-shell .marketplace-bench-roster-card .marketplace-roster-slots-table tr,
  .marketplace-my-team-shell .marketplace-prospect-stash-card .marketplace-roster-slots-table tr {
    grid-template-columns: 34px minmax(0, 1fr) 70px 58px !important;
  }

  .marketplace-my-team-shell .marketplace-roster-bench-row .marketplace-roster-player-column,
  .marketplace-my-team-shell .marketplace-roster-prospect-row .marketplace-roster-player-column {
    grid-column: 2 !important;
  }

  .marketplace-my-team-shell .marketplace-roster-bench-row .marketplace-roster-worth-column,
  .marketplace-my-team-shell .marketplace-roster-prospect-row .marketplace-roster-worth-column,
  .marketplace-my-team-shell .marketplace-bench-roster-card thead .marketplace-roster-worth-column,
  .marketplace-my-team-shell .marketplace-prospect-stash-card thead .marketplace-roster-worth-column {
    grid-column: 3 !important;
  }

  .marketplace-my-team-shell .marketplace-starting-roster-card thead .marketplace-roster-worth-column {
    grid-column: 4 !important;
  }
}

.app-sidebar-nav,
.app-sidebar-bottom {
  display: grid;
  gap: 6px;
}

.app-sidebar-bottom::before {
  width: 84px;
  margin: 0 auto 10px;
  border-top: 1px solid rgba(215, 227, 241, 0.2);
  content: "";
}

.marketplace-page-header h2,
.marketplace-view-title h2 {
  font-weight: 400;
}

.app-sidebar-button {
  display: grid;
  min-height: 78px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 4px;
  background: transparent;
  box-shadow: none;
  color: #edf4fc;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.app-sidebar-button:hover,
.app-sidebar-button:focus-visible,
.app-sidebar-button.active {
  border-color: rgba(93, 146, 202, 0.72);
  background: rgba(25, 70, 116, 0.74);
  color: #ffffff;
}

.app-sidebar-button.active { box-shadow: inset 2px 0 0 #12d9c3, 0 0 16px rgba(22, 105, 177, 0.12); }
.app-sidebar-button:disabled { opacity: 0.4; cursor: default; }
.app-sidebar-icon { display: grid; width: 29px; height: 29px; place-items: center; }
.app-sidebar-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 781px) {
  body:has(.marketplace-product-shell),
  body:has(.player-page-shell) { background: var(--rr-workspace); }
  body:has(.marketplace-product-shell) main,
  body:has(.player-page-shell) main { background: var(--rr-workspace); }
  body:has(.marketplace-product-shell) .site-section-panel,
  body:has(.player-page-shell) .site-section-panel {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .marketplace-product-shell,
  .player-page-shell {
    width: min(100%, 1580px);
    min-height: calc(100vh - 99px);
    margin: 0 auto;
    padding: 34px clamp(24px, 3vw, 52px) 52px;
    background: var(--rr-workspace);
    color: var(--rr-workspace-ink);
  }
  .marketplace-product-shell .marketplace-page-header,
  .marketplace-product-shell .marketplace-top-level-items { color: var(--rr-workspace-ink); }
  .marketplace-product-shell .marketplace-card,
  .marketplace-product-shell .section-card,
  .player-page-shell .section-card {
    border-color: var(--rr-workspace-line);
    background: var(--rr-workspace-card);
    color: var(--rr-workspace-ink);
    box-shadow: 0 8px 24px rgba(15, 30, 50, 0.07);
  }
  .site-nav { flex-wrap: nowrap; white-space: nowrap; }
}

.rr-home-shell,
.rr-settings-shell { gap: 22px; }
.rr-home-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--rr-workspace-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 30, 50, 0.05);
}
.rr-home-metric {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: center;
  padding: 16px 18px;
  text-align: center;
}
.rr-home-metric + .rr-home-metric { border-left: 1px solid var(--rr-workspace-line); }
.rr-home-metric > span { color: #50617a; font-size: 11px; font-weight: 750; }
.rr-home-metric > strong { overflow: hidden; color: #0b1830; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.rr-home-metric > small { color: #1767d1; font-size: 10px; }
.rr-home-overview-kpi-copy { display: grid; min-width: 0; gap: 5px; }
.rr-home-overview-kpi-copy > span { color: #50617a; font-size: 11px; font-weight: 750; }
.rr-home-overview-kpi-copy > strong { overflow: hidden; color: #0b1830; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.rr-home-overview-kpi-copy > small { color: #1767d1; font-size: 10px; }
.rr-home-overview-kpi > .marketplace-leaderboard-kpi-icon { display: none; }
.rr-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rr-home-matchup-card { grid-row: span 2; }
.rr-home-card,
.rr-settings-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
  border: 1px solid var(--rr-workspace-line);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  color: var(--rr-workspace-ink);
  box-shadow: 0 6px 20px rgba(15, 30, 50, 0.05);
}
.rr-home-card h3,
.rr-settings-card h3 { margin: 0; color: #0b1830; }
.rr-home-card-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 15px; }
.rr-home-card-heading a { color: #1264d6; font-size: 12px; font-weight: 750; }
.rr-home-status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 6px 9px; background: #edf2f7; color: #526176; font-size: 10px; font-weight: 800; }
.rr-home-status-pill.is-live { background: #e7f8ed; color: #15803d; }
.rr-home-status-pill .marketplace-rally-help {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  border-color: #9aabc0;
  background: #ffffff;
  color: #1767d1;
  font-size: 9px;
}
.rr-home-matchup-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rr-home-matchup-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e1e7ee;
  padding-top: 20px;
}
.rr-home-matchup-team {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rr-home-matchup-team.is-right { text-align: right; }
.rr-home-matchup-team.is-right { grid-template-columns: minmax(0, 1fr) 92px; }
.rr-home-matchup-team.is-right .rr-home-team-helmet { grid-column: 2; grid-row: 1; }
.rr-home-matchup-team.is-right .rr-home-matchup-team-copy { grid-column: 1; grid-row: 1; }
.rr-home-matchup-team.is-right .rr-home-team-helmet,
.rr-home-matchup-team.is-right .rr-home-matchup-team-copy { justify-self: end; }
.rr-home-matchup-team-copy { display: grid; min-width: 0; gap: 3px; }
.rr-home-matchup-team-copy strong {
  overflow: hidden;
  color: #0b1830;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rr-home-matchup-team-copy span { color: #657389; font-size: 11px; }
.rr-home-team-helmet { width: 92px; }
.rr-home-team-helmet.is-facing-left .frontend-team-helmet::before { transform: scale(-1.018, 1.018); }
.rr-home-team-helmet.is-facing-left .frontend-team-helmet-mask { transform: scaleX(-1); }
.rr-home-team-helmet.is-facing-left .frontend-team-helmet-abbreviation { left: 66%; }
.rr-home-team-helmet .frontend-team-helmet-abbreviation { font-size: 21px; letter-spacing: -1px; }
.rr-home-matchup-score { display: grid; grid-column: 1 / -1; gap: 2px; margin-top: 6px; }
.rr-home-matchup-team.is-right .rr-home-matchup-score { text-align: right; }
.rr-home-matchup-score span { color: #657389; font-size: 11px; }
.rr-home-matchup-score > strong { color: #0b1830; font-size: 25px; line-height: 1.05; }
.rr-home-matchup-score b { color: #0b1830; font-size: 12px; }
.rr-home-matchup-score small { color: #657389; font-size: inherit; font-weight: 500; }
.rr-home-matchup-versus { display: grid; justify-items: center; gap: 4px; color: #657389; text-align: center; }
.rr-home-matchup-versus strong { color: #0b1830; font-size: 13px; }
.rr-home-matchup-versus span { font-size: 10px; }
.rr-home-matchup-versus b { color: #445269; font-size: 12px; }
.rr-home-matchup-probability-labels { display: flex; justify-content: space-between; gap: 18px; color: #26364f; font-size: 11px; }
.rr-home-matchup-probability-labels strong:last-child { text-align: right; }
.rr-home-matchup-probability {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #8ec5ff;
}
.rr-home-matchup-probability span { display: block; height: 100%; background: #ff9a5a; }
.rr-home-matchup-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #e1e7ee;
  padding-top: 14px;
  color: #657389;
  font-size: 10px;
}
.rr-home-matchup-footer span:nth-child(2) { text-align: center; }
.rr-home-matchup-footer a { color: #1264d6; font-size: 11px; font-weight: 750; }
.rr-home-matchup-meta,
.rr-home-tier-foot { display: flex; justify-content: space-between; gap: 15px; color: #657389; font-size: 11px; }
.rr-home-activity-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rr-home-activity-summary .rr-home-metric { padding: 13px 8px; }
.rr-home-tier-row { display: flex; justify-content: space-between; gap: 20px; }
.rr-home-tier-row span { color: #657389; font-size: 12px; text-align: right; }
.rr-home-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.rr-home-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315fdb, #6b36db); }
.rr-home-event-list { display: grid; gap: 10px; }
.rr-home-event-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: #23324a; font-size: 12px; }
.rr-home-event-row small { color: #728096; }
.rr-home-event-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ebb68; }
.rr-home-empty-state { display: grid; gap: 7px; padding: 20px 0; color: #657389; }
.rr-home-empty-state strong { color: #0b1830; }

.rr-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rr-settings-card p,
.rr-settings-hint { margin: 0; color: #657389; font-size: 13px; line-height: 1.55; }
.rr-settings-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #e1e7ee; padding-top: 12px; color: #657389; font-size: 12px; }
.rr-settings-row strong { color: #17233a; }

.marketplace-public-team-roster-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.marketplace-public-team-roster-tab {
  display: grid;
  gap: 4px;
  border: 1px solid #d3dce7;
  border-radius: 9px;
  padding: 13px;
  background: #f8fafc;
  color: #526176;
  text-align: left;
  cursor: pointer;
}
.marketplace-public-team-roster-tab strong { color: #17233a; font-size: 19px; }
.marketplace-public-team-roster-tab.is-active { border-color: #4287e6; background: #edf5ff; color: #0d5dc1; box-shadow: inset 0 -3px 0 #2d7ade; }
.marketplace-public-team-summary { grid-template-columns: repeat(4, minmax(76px, 1fr)); }
.marketplace-roster-portfolio-value { color: inherit; font-weight: 850; }

@media (max-width: 1100px) and (min-width: 781px) {
  .rr-home-metric-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .app-sidebar { display: none !important; }
  .rr-home-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-home-metric { padding: 12px 8px; }
  .rr-home-metric:nth-child(odd) { border-left: 0; }
  .rr-home-metric:nth-child(n+3) { border-top: 1px solid var(--rr-workspace-line); }
  .rr-home-grid,
  .rr-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .rr-home-matchup-card { grid-row: auto; }
  .rr-home-activity-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rr-home-matchup-stage { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 4px; }
  .rr-home-matchup-team { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 4px; }
  .rr-home-matchup-team.is-right { grid-template-columns: minmax(0, 1fr); justify-items: end; }
  .rr-home-matchup-team.is-right .rr-home-team-helmet { grid-column: 1; grid-row: 1; }
  .rr-home-matchup-team.is-right .rr-home-matchup-team-copy { grid-column: 1; grid-row: 2; }
  .rr-home-team-helmet { width: 50px; }
  .rr-home-team-helmet .frontend-team-helmet-abbreviation { font-size: 14px; letter-spacing: -0.5px; }
  .rr-home-matchup-team-copy strong { font-size: 12px; }
  .rr-home-matchup-team-copy span { font-size: 9px; }
  .rr-home-matchup-score { grid-row: 3; }
  .rr-home-matchup-score > strong { font-size: 20px; }
  .rr-home-matchup-score b,
  .rr-home-matchup-score span { font-size: 9px; }
  .rr-home-matchup-footer { grid-template-columns: 1fr auto; }
  .rr-home-matchup-footer span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .marketplace-public-team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Global Rally competition */
.marketplace-rally-shell {
  gap: 20px;
}

.marketplace-leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
  align-items: start;
}

.marketplace-leaderboard-kpis,
.marketplace-leaderboard-table-card,
.marketplace-leaderboard-side-card {
  border: 1px solid var(--rr-workspace-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(22, 38, 62, 0.05);
}

.marketplace-leaderboard-kpis {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 124px;
  padding: 22px 12px;
}

.marketplace-leaderboard-kpi {
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  place-content: center;
  align-items: center;
  gap: 15px;
  min-width: 0;
  text-align: left;
}

.marketplace-leaderboard-kpi + .marketplace-leaderboard-kpi {
  border-left: 1px solid var(--rr-workspace-line);
}

.marketplace-leaderboard-kpi-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.marketplace-leaderboard-kpi-copy > span,
.marketplace-leaderboard-card-eyebrow {
  color: #2451bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.marketplace-leaderboard-kpi strong {
  color: #10254a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.marketplace-leaderboard-kpi-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #2636c7;
}

.marketplace-leaderboard-kpi-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-leaderboard-custom-kpi-icon {
  width: 46px;
  height: 46px;
}

.marketplace-leaderboard-custom-kpi-icon img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.marketplace-leaderboard-tier-logo-wrap {
  width: 46px;
  height: 46px;
}

.marketplace-leaderboard-tier-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

@media (min-width: 781px) {
  .rr-home-metric-strip {
    min-height: 124px;
    padding: 22px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(22, 38, 62, 0.05);
  }

  .rr-home-metric-strip .rr-home-overview-kpi {
    grid-template-columns: 46px minmax(0, auto);
    place-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 12px;
    text-align: left;
  }

  .rr-home-overview-kpi > .marketplace-leaderboard-kpi-icon {
    display: grid;
  }

  .rr-home-overview-kpi-copy {
    gap: 10px;
  }

  .rr-home-overview-kpi-copy > span {
    color: #2451bd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .rr-home-overview-kpi-copy > strong {
    color: #10254a;
    font-size: 23px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1;
  }

  .rr-home-overview-kpi-copy > small {
    display: none;
  }

  .rr-home-placeholder-kpi-icon {
    color: #2636c7;
  }
}

.marketplace-leaderboard-table-card {
  grid-column: 1;
  min-width: 0;
  padding: 18px 12px 12px;
}

.marketplace-listing-table-card {
  box-sizing: border-box;
  grid-column: auto;
  width: 100%;
}

.marketplace-leaderboard-table-card > h3,
.marketplace-leaderboard-side-card > h3 {
  margin: 0;
  color: #10254a;
  font-size: 20px;
  font-weight: 700;
}

.marketplace-leaderboard-table-card > h3 {
  margin: 0 8px 12px;
}

.marketplace-leaderboard-sidebar {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 16px;
}

.marketplace-leaderboard-side-card {
  padding: 20px;
}

.marketplace-leaderboard-position-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 20px;
}

.marketplace-leaderboard-position-metrics > div {
  display: grid;
  gap: 5px;
  text-align: center;
}

.marketplace-leaderboard-position-metrics > div + div {
  border-left: 1px solid var(--rr-workspace-line);
}

.marketplace-leaderboard-position-metrics strong {
  color: #10254a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.marketplace-leaderboard-position-metrics span {
  color: #526b91;
  font-size: 12px;
}

.marketplace-leaderboard-nearby-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.marketplace-leaderboard-nearby-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  color: #2b4772;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.marketplace-leaderboard-nearby-row strong {
  overflow: hidden;
  color: #10254a;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-leaderboard-nearby-row.is-current-team {
  border-color: #c6dcfa;
  background: #eaf3ff;
  color: #0965d5;
}

.marketplace-leaderboard-nearby-row.is-current-team strong {
  color: #0965d5;
}

.marketplace-leaderboard-advance-note,
.marketplace-leaderboard-cutlines-card > p,
.marketplace-leaderboard-placeholder {
  margin: 12px 0 0;
  color: #526b91;
  font-size: 12px;
  line-height: 1.4;
}

.marketplace-leaderboard-cutlines-card {
  display: grid;
  gap: 0;
}

.marketplace-leaderboard-cutlines-card > h3,
.marketplace-leaderboard-filters-card > h3 {
  margin-bottom: 10px;
}

.marketplace-leaderboard-cutline {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px solid var(--rr-workspace-line);
  color: #2b4772;
  font-size: 12px;
}

.marketplace-leaderboard-cutline i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.marketplace-leaderboard-cutline i.is-promotion { background: #16a34a; }
.marketplace-leaderboard-cutline i.is-current { background: #1677ed; }
.marketplace-leaderboard-cutline i.is-relegation { background: #ef4444; }
.marketplace-leaderboard-cutline strong { color: #526b91; font-variant-numeric: tabular-nums; }

.marketplace-leaderboard-filters-card {
  display: grid;
  gap: 13px;
}

.marketplace-leaderboard-filters-card label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #10254a;
}

.marketplace-leaderboard-filters-card input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #1677ed;
}

.marketplace-leaderboard-filters-card label > span {
  display: grid;
  gap: 2px;
}

.marketplace-leaderboard-filters-card label strong {
  font-size: 13px;
  font-weight: 650;
}

.marketplace-leaderboard-filters-card label small {
  color: #60779a;
  font-size: 11px;
}

.marketplace-leaderboard-filters-card label.is-disabled {
  opacity: 0.52;
}

.marketplace-rally-season {
  color: var(--rr-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.marketplace-rally-tabs {
  display: inline-flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  padding: 4px;
  background: rgba(8, 14, 24, 0.72);
}

.marketplace-rally-tab {
  min-width: 112px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 16px;
  background: transparent;
  color: #aab8ca;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-rally-tab:hover,
.marketplace-rally-tab:focus-visible {
  color: var(--ice-white);
  outline: 2px solid rgba(96, 165, 250, 0.34);
  outline-offset: 1px;
}

.marketplace-rally-tab.is-active {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.22);
  color: var(--ice-white);
}

.marketplace-rally-hero {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.marketplace-rally-identity,
.marketplace-rally-position {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.17), transparent 48%),
    #0d131e;
}

.marketplace-rally-identity {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 180px;
  padding: 26px;
}

.marketplace-rally-identity strong {
  color: var(--ice-white);
  font-size: clamp(52px, 6vw, 76px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.marketplace-rally-identity > span:last-child {
  color: #b9c6d8;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketplace-rally-term {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
}

.marketplace-rally-help {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.58);
  border-radius: 50%;
  padding: 0;
  background: rgba(148, 163, 184, 0.1);
  color: #d9e5f4;
  box-shadow: none;
  cursor: help;
  font-family: var(--rr-font-family);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  vertical-align: middle;
}

.marketplace-rally-help:hover,
.marketplace-rally-help:focus {
  border-color: rgba(96, 165, 250, 0.88);
  background: rgba(59, 130, 246, 0.24);
  color: #ffffff;
}

.marketplace-rally-help:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.92);
  outline-offset: 3px;
}

.marketplace-rally-help .marketplace-rally-help-tooltip {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  left: 50%;
  width: 280px;
  max-width: calc(100vw - 40px);
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  background: #111a28;
  color: #eef5ff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.46);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%);
  transition: opacity 130ms ease, visibility 130ms ease;
  visibility: hidden;
  white-space: normal;
}

.marketplace-rally-help.is-above .marketplace-rally-help-tooltip {
  top: auto;
  bottom: calc(100% + 9px);
}

.marketplace-rally-help.is-left .marketplace-rally-help-tooltip {
  left: 0;
  transform: none;
}

.marketplace-rally-help.is-right .marketplace-rally-help-tooltip {
  right: 0;
  left: auto;
  transform: none;
}

.marketplace-rally-help:hover .marketplace-rally-help-tooltip,
.marketplace-rally-help:focus .marketplace-rally-help-tooltip,
.marketplace-rally-help:focus-visible .marketplace-rally-help-tooltip,
.marketplace-rally-help.is-open .marketplace-rally-help-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .marketplace-rally-help .marketplace-rally-help-tooltip,
  .marketplace-rally-help.is-above .marketplace-rally-help-tooltip,
  .marketplace-rally-help.is-left .marketplace-rally-help-tooltip,
  .marketplace-rally-help.is-right .marketplace-rally-help-tooltip {
    position: fixed;
    z-index: 1000;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: min(320px, calc(100vw - 32px));
    max-height: min(240px, calc(100dvh - 32px));
    overflow-y: auto;
  }
}

.marketplace-rally-position {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 12px;
  padding: 26px;
}

.marketplace-rally-position > div:not(.marketplace-rally-eligibility),
.marketplace-rally-eligibility {
  display: grid;
  gap: 5px;
  min-height: 74px;
  align-content: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
}

.marketplace-rally-position span,
.marketplace-rally-stakes span,
.marketplace-rally-draw-state span {
  color: #9fb0c4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.marketplace-rally-position strong {
  color: var(--ice-white);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.marketplace-rally-eligibility {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 60px;
}

.marketplace-rally-eligibility.is-eligible {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.08);
}

.marketplace-rally-eligibility.is-incomplete {
  border-color: rgba(245, 185, 66, 0.36);
  background: rgba(245, 185, 66, 0.08);
}

.marketplace-rally-eligibility.is-eligible strong {
  color: var(--good-text);
}

.marketplace-rally-eligibility.is-incomplete strong {
  color: var(--dynasty-gold);
}

.marketplace-rally-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketplace-rally-grid > .marketplace-card {
  padding: 20px;
}

.marketplace-rally-grid > .wide-detail {
  grid-column: 1 / -1;
}

.marketplace-rally-matchup-card,
.marketplace-rally-playoff-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
}

.marketplace-rally-matchup-card h3,
.marketplace-rally-playoff-card h3 {
  margin: 0;
  color: var(--ice-white);
  font-size: 28px;
}

.marketplace-rally-matchup-card p,
.marketplace-rally-playoff-card p {
  margin: 0;
  color: var(--rr-text-soft);
  line-height: 1.5;
}

.marketplace-rally-stakes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.marketplace-rally-stakes > div,
.marketplace-rally-draw-state {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 7px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.025);
}

.marketplace-rally-stakes strong,
.marketplace-rally-draw-state strong {
  color: var(--ice-white);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.marketplace-rally-stakes > div:first-child strong {
  color: var(--good-text);
}

.marketplace-rally-stakes > div:nth-child(2) strong {
  color: var(--error-text);
}

.marketplace-rally-draw-state {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: auto;
}

.marketplace-rally-tier-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.marketplace-rally-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left-width: 3px;
  border-radius: 7px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.032);
}

.marketplace-rally-tier:nth-child(1) { width: 40%; border-color: rgba(245, 185, 66, 0.62); background: rgba(245, 185, 66, 0.09); }
.marketplace-rally-tier:nth-child(2) { width: 52%; border-left-color: #c4b5fd; }
.marketplace-rally-tier:nth-child(3) { width: 64%; border-left-color: #60a5fa; }
.marketplace-rally-tier:nth-child(4) { width: 76%; border-left-color: #38bdf8; }
.marketplace-rally-tier:nth-child(5) { width: 88%; border-left-color: #34d399; }
.marketplace-rally-tier:nth-child(6) { width: 100%; border-left-color: #94a3b8; }

.marketplace-rally-tier strong {
  color: var(--ice-white);
}

.marketplace-rally-tier span,
.marketplace-rally-tier small {
  color: #aab8ca;
  font-size: 12px;
  font-weight: 750;
}

.marketplace-rally-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}

.marketplace-rally-table-wrap {
  overflow-x: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.marketplace-rally-table .marketplace-rally-col-rank { width: 7%; }
.marketplace-rally-table .marketplace-rally-col-club { width: 20%; }
.marketplace-rally-table .marketplace-rally-col-tier { width: 9%; }
.marketplace-rally-table .marketplace-rally-col-rating { width: 12%; }
.marketplace-rally-table .marketplace-rally-col-record { width: 8%; }
.marketplace-rally-table .marketplace-rally-col-cash { width: 9%; }
.marketplace-rally-table .marketplace-rally-col-reserve { width: 10%; }
.marketplace-rally-table .marketplace-rally-col-portfolio { width: 12%; }
.marketplace-rally-table .marketplace-rally-col-net-worth { width: 13%; }

.marketplace-rally-table th,
.marketplace-rally-table td {
  overflow: hidden;
  padding: 11px 5px;
  font-size: 11.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-rally-table th {
  vertical-align: middle;
  background: #f8fafc;
  color: #173b72;
  font-size: 10px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.marketplace-rally-table th:nth-child(2),
.marketplace-rally-table td:nth-child(2) {
  text-align: left;
}

.marketplace-rally-table td:nth-child(2) a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-rally-sort-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  white-space: nowrap;
}

.marketplace-sort-marker {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.marketplace-rally-table .is-current-team td {
  background: rgba(59, 130, 246, 0.11);
  color: var(--rr-paper-ink);
}

.marketplace-rally-table .is-current-team td:first-child {
  box-shadow: inset 3px 0 0 #2563eb;
}

@media (max-width: 1040px) {
  .marketplace-leaderboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketplace-leaderboard-kpis,
  .marketplace-leaderboard-table-card,
  .marketplace-leaderboard-sidebar {
    grid-column: 1;
  }

  .marketplace-leaderboard-sidebar {
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .marketplace-rally-identity {
    min-height: 145px;
    padding: 20px;
  }

  .marketplace-rally-position {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    padding: 16px;
  }

  .marketplace-rally-position strong {
    font-size: 20px;
  }

  .marketplace-rally-position .marketplace-rally-term {
    gap: 5px;
  }

  .marketplace-rally-grid > .wide-detail {
    grid-column: auto;
  }

  .marketplace-rally-grid > .marketplace-card {
    padding: 15px;
  }

  .marketplace-rally-matchup-card,
  .marketplace-rally-playoff-card {
    min-height: 0;
  }

  .marketplace-rally-tier {
    gap: 8px;
    padding-inline: 10px;
  }

  .marketplace-rally-tier:nth-child(1) { width: 64%; }
  .marketplace-rally-tier:nth-child(2) { width: 71%; }
  .marketplace-rally-tier:nth-child(3) { width: 78%; }
  .marketplace-rally-tier:nth-child(4) { width: 85%; }
  .marketplace-rally-tier:nth-child(5) { width: 92%; }
  .marketplace-rally-tier:nth-child(6) { width: 100%; }

  .marketplace-rally-tier small {
    display: none;
  }

  .marketplace-rally-table {
    min-width: 860px;
  }

  .marketplace-rally-table-wrap {
    overflow-x: auto;
  }

  .marketplace-leaderboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .marketplace-leaderboard-kpi {
    min-height: 82px;
  }

  .marketplace-leaderboard-kpi:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--rr-workspace-line);
  }

  .marketplace-leaderboard-kpi:nth-child(4) {
    border-top: 1px solid var(--rr-workspace-line);
  }

  .marketplace-leaderboard-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketplace-leaderboard-table-card {
    padding-inline: 8px;
  }
}

/* Compact marketplace data grid */
.marketplace-unified-table {
  min-width: 1120px;
}

.marketplace-market-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.marketplace-listing-table-card .marketplace-market-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.marketplace-listing-table-card .marketplace-market-table th,
.marketplace-listing-table-card .marketplace-market-table td {
  overflow: hidden;
  padding: 11px 8px;
  font-size: 11.5px;
  text-overflow: ellipsis;
}

.marketplace-listing-table-card .marketplace-market-table th {
  height: auto;
  background: #f8fafc;
  color: #173b72;
  font-size: 10px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.marketplace-listing-table-card .marketplace-market-table tbody tr {
  box-shadow: none;
}

.marketplace-listing-table-card .marketplace-market-table tbody tr:hover {
  background: var(--rr-paper-hover);
}

.marketplace-listing-table-card .marketplace-pagination {
  margin: 12px 8px 0;
}

.marketplace-market-table.marketplace-prospect-board-table {
  width: max-content;
  min-width: 760px;
  max-width: none;
}

@media screen and (min-width: 781px) {
  .marketplace-market-table.marketplace-prospect-board-table {
    width: 100%;
    min-width: 100%;
  }
}

.marketplace-unified-table thead th:nth-child(n),
.marketplace-prospect-board-table thead th:nth-child(n) {
  height: 48px;
  padding-block: 8px;
  text-align: center;
  vertical-align: middle;
}

.marketplace-unified-table thead .marketplace-listing-sort-button,
.marketplace-prospect-board-table thead .marketplace-listing-sort-button {
  min-height: 28px;
  justify-content: center;
  text-align: center;
}

.marketplace-unified-table th:first-child,
.marketplace-unified-table td:first-child {
  width: 270px;
  min-width: 270px;
}

.marketplace-unified-table th:nth-child(5),
.marketplace-unified-table td:nth-child(5),
.marketplace-unified-table th:nth-child(6),
.marketplace-unified-table td:nth-child(6) {
  width: 54px;
  min-width: 54px;
  text-align: center;
}

.marketplace-unified-table th:nth-child(2),
.marketplace-unified-table td:nth-child(2) {
  width: 92px;
  min-width: 92px;
  text-align: right;
}

.marketplace-unified-table th:nth-child(3),
.marketplace-unified-table td:nth-child(3),
.marketplace-unified-table th:nth-child(4),
.marketplace-unified-table td:nth-child(4) {
  width: 92px;
  min-width: 92px;
  text-align: center;
}

.marketplace-unified-table th:nth-child(7),
.marketplace-unified-table td:nth-child(7) {
  width: 160px;
  min-width: 160px;
  text-align: center;
}

.marketplace-listing-compact-cell,
.marketplace-listing-portfolio-cell,
.marketplace-listing-projection-cell {
  color: var(--rr-table-frame-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.marketplace-listing-mobile-projections {
  display: none;
}

.marketplace-listing-projection-cell {
  color: #344b6b;
  font-weight: 750;
  text-align: center;
}

.marketplace-listing-portfolio-cell {
  color: var(--rr-paper-ink);
  font-weight: 800;
}

.marketplace-listing-time-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.marketplace-unified-table .player-page-link {
  color: var(--rr-paper-ink);
}

.marketplace-unified-table .player-page-link:hover,
.marketplace-unified-table .player-page-link:focus-visible {
  color: var(--rr-paper-link);
}

@media (max-width: 780px) {
  .marketplace-unified-table {
    min-width: 850px;
  }

  .marketplace-listing-table-card {
    padding-inline: 8px;
  }

  .marketplace-market-table.marketplace-prospect-board-table {
    min-width: 700px;
  }

  .marketplace-prospect-board-table th:first-child,
  .marketplace-prospect-board-table td:first-child {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }

  .marketplace-prospect-board-table th:nth-child(2),
  .marketplace-prospect-board-table td:nth-child(2) {
    text-align: center;
  }

  .marketplace-unified-table th:first-child,
  .marketplace-unified-table td:first-child {
    width: 175px;
    min-width: 175px;
    max-width: 175px;
  }

  .marketplace-unified-table th:nth-child(5),
  .marketplace-unified-table td:nth-child(5),
  .marketplace-unified-table th:nth-child(6),
  .marketplace-unified-table td:nth-child(6) {
    width: 42px;
    min-width: 42px;
  }

  .marketplace-unified-table th:nth-child(2),
  .marketplace-unified-table td:nth-child(2) {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
  }

  .marketplace-unified-table th:nth-child(2) .marketplace-listing-sort-marker {
    display: none;
  }

  .marketplace-unified-table th:nth-child(3),
  .marketplace-unified-table td:nth-child(3),
  .marketplace-unified-table th:nth-child(4),
  .marketplace-unified-table td:nth-child(4) {
    display: none;
  }

  .marketplace-listing-mobile-projections {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    color: #526176;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .marketplace-unified-table .marketplace-player-summary-cell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 3px;
  }

  .marketplace-listing-mobile-projections strong {
    color: #1f3d67;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
  }

  .marketplace-unified-table th:nth-child(7),
  .marketplace-unified-table td:nth-child(7) {
    width: 140px;
    min-width: 140px;
  }
}

/* RotoRally signed-out story homepage */
.first-visit-entry-active {
  overflow-x: clip;
  background: #070b12;
}

.first-visit-entry-active .app-header {
  display: none;
}

.first-visit-entry-active main {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.first-visit-entry-active .site-section-panel {
  width: 100%;
}

.first-visit-landing-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.first-visit-landing-shell::before {
  display: none;
}

.rr-landing {
  --rr-landing-max: 1220px;
  --rr-landing-text: #f8fafc;
  --rr-landing-muted: #aeb9c8;
  --rr-landing-line: rgba(148, 163, 184, 0.18);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 99, 235, 0.15), transparent 28%),
    radial-gradient(circle at 12% 34%, rgba(34, 197, 94, 0.07), transparent 24%),
    linear-gradient(180deg, #07101d 0, #090d15 30%, #080c13 100%);
  color: var(--rr-landing-text);
}

.rr-landing::before {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.rr-landing button {
  font: inherit;
}

.rr-landing-nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--rr-landing-max), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rr-landing-logo {
  display: block;
  width: 220px;
  height: auto;
  object-fit: contain;
}

.rr-landing-nav-links,
.rr-landing-nav-actions,
.rr-landing-hero-actions {
  display: flex;
  align-items: center;
}

.rr-landing-nav-links {
  justify-content: center;
  gap: 6px;
}

.rr-landing-nav-links button,
.rr-landing-sign-in {
  min-height: 42px;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: #c4cddb;
  font-size: 14px;
  font-weight: 700;
}

.rr-landing-nav-links button:hover,
.rr-landing-nav-links button:focus-visible,
.rr-landing-sign-in:hover,
.rr-landing-sign-in:focus-visible {
  color: #fff;
}

.rr-landing-nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.rr-landing-cta,
.rr-landing-secondary {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 850;
}

.rr-landing-cta {
  border: 1px solid rgba(96, 165, 250, 0.72);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28), inset 0 1px rgba(255, 255, 255, 0.2);
}

.rr-landing-cta:hover,
.rr-landing-cta:focus-visible {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #4b8ff8, #2d6eeb);
  transform: translateY(-1px);
}

.rr-landing-cta:disabled,
.rr-landing-sign-in:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.rr-landing-cta-compact {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 14px;
}

.rr-landing-secondary {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.035);
  color: #edf2f8;
}

.rr-landing-secondary:hover,
.rr-landing-secondary:focus-visible {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.rr-landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 6vw, 90px);
  width: min(var(--rr-landing-max), calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 76px 0 96px;
}

.rr-landing-hero-copy {
  position: relative;
  z-index: 2;
}

.rr-landing-eyebrow {
  margin: 0 0 16px;
  color: #78a9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rr-landing-eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.rr-landing-eyebrow-row .rr-landing-eyebrow {
  margin-bottom: 0;
}

.rr-landing-price-badge {
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.09);
  color: #82e7a4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rr-landing-hero h2 {
  max-width: 720px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(52px, 5.25vw, 78px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.rr-landing-hero h2 span {
  color: #65d98b;
}

.rr-landing-lede {
  max-width: 670px;
  margin: 26px 0 0;
  color: #bdc7d5;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
}

.rr-landing-hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.rr-landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 25px 0 0;
  padding: 0;
  color: #aeb9c8;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.rr-landing-proof li {
  position: relative;
  padding-left: 19px;
}

.rr-landing-proof li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #55cc7e;
  border-radius: 50%;
  content: "";
}

.rr-landing-price-detail {
  margin: 13px 0 0;
  color: #7f8b9c;
  font-size: 12px;
  font-weight: 700;
}

.rr-product-preview {
  position: relative;
  min-height: 520px;
  perspective: 1000px;
}

.rr-preview-glow {
  position: absolute;
  inset: 12% 5% 8%;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  filter: blur(80px);
}

.rr-preview-market,
.rr-preview-rating,
.rr-preview-future {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(14, 20, 30, 0.96);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.05);
}

.rr-preview-market {
  top: 18px;
  right: 0;
  left: 14px;
  overflow: hidden;
  border-radius: 12px;
  transform: rotateY(-3deg) rotateX(1deg);
}

.rr-preview-window-bar {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.rr-preview-window-bar > span {
  display: flex;
  gap: 5px;
}

.rr-preview-window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #536174;
}

.rr-preview-window-bar strong {
  color: #e8edf4;
  font-size: 13px;
  text-align: center;
}

.rr-preview-window-bar small {
  color: #6ee7a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rr-preview-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px 18px;
}

.rr-preview-balance span,
.rr-preview-player small,
.rr-preview-rating span,
.rr-preview-rating small,
.rr-preview-future span {
  color: #8f9bad;
  font-size: 11px;
  font-weight: 700;
}

.rr-preview-balance strong {
  color: #f4f7fb;
  font-size: 22px;
}

.rr-preview-player {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0 12px;
  padding: 0 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.rr-preview-player-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #173b2b;
  color: #7ce6a0;
  font-size: 11px;
  font-weight: 900;
}

.rr-preview-player-mark-blue {
  background: #172f52;
  color: #8fbcff;
}

.rr-preview-player-mark-gold {
  background: #463516;
  color: #f7ce71;
}

.rr-preview-player > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.rr-preview-player strong {
  color: #edf2f8;
  font-size: 14px;
}

.rr-preview-player b {
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #9fc5ff;
  font-size: 10px;
  text-transform: uppercase;
}

.rr-preview-rating {
  right: -18px;
  bottom: 44px;
  display: grid;
  gap: 3px;
  width: 190px;
  border-color: rgba(34, 197, 94, 0.34);
  border-radius: 10px;
  padding: 18px;
}

.rr-preview-rating strong {
  color: #f8fafc;
  font-size: 34px;
  line-height: 1;
}

.rr-preview-rating small {
  margin-top: 5px;
  color: #76dc99;
}

.rr-preview-future {
  bottom: 0;
  left: -8px;
  display: grid;
  gap: 5px;
  width: 235px;
  border-radius: 10px;
  padding: 16px 18px;
}

.rr-preview-future strong {
  color: #e9eef5;
  font-size: 14px;
}

.rr-landing-promise-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  min-height: 72px;
  padding: 16px 24px;
  border-block: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.018);
  color: #b5c0cf;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rr-landing-promise-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b82f6;
}

.rr-landing-section {
  position: relative;
  z-index: 1;
  width: min(var(--rr-landing-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0;
  scroll-margin-top: 24px;
}

.rr-landing-section + .rr-landing-section {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.rr-landing-section-heading {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.rr-landing-section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.rr-landing-section h3,
.rr-landing-final h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.rr-landing-section-heading > p:last-child {
  max-width: 700px;
  margin: 20px auto 0;
  color: #aeb9c8;
  font-size: 18px;
  line-height: 1.65;
}

.rr-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rr-pillar-card {
  min-height: 300px;
  border: 1px solid var(--rr-landing-line);
  border-radius: 10px;
  padding: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.rr-pillar-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.09);
}

.rr-pillar-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #78a9ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rr-pillar-card h4 {
  margin: 28px 0 12px;
  color: #edf2f8;
  font-size: 22px;
  line-height: 1.2;
}

.rr-pillar-card p {
  margin: 0;
  color: #aab5c4;
  font-size: 16px;
  line-height: 1.65;
}

.rr-how-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px 88px;
  align-items: start;
}

.rr-how-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rr-how-grid li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.rr-how-grid li:first-child {
  padding-top: 0;
}

.rr-how-grid li > span {
  color: #5e92ea;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rr-how-grid h4 {
  margin: 0 0 8px;
  color: #eff3f8;
  font-size: 23px;
}

.rr-how-grid p {
  margin: 0;
  color: #aab5c4;
  font-size: 16px;
  line-height: 1.6;
}

.rr-landing-text-link {
  justify-self: start;
  min-height: 44px;
  margin-top: -26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8bb6ff;
  font-size: 15px;
  font-weight: 850;
}

.rr-landing-text-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 160ms ease;
}

.rr-landing-text-link:hover span,
.rr-landing-text-link:focus-visible span {
  transform: translateX(4px);
}

.rr-rally-section,
.rr-future-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(60px, 8vw, 110px);
}

.rr-rally-copy > p:not(.rr-landing-eyebrow),
.rr-future-copy > p:not(.rr-landing-eyebrow) {
  margin: 22px 0 0;
  color: #adb8c7;
  font-size: 18px;
  line-height: 1.65;
}

.rr-rally-copy ul {
  display: grid;
  gap: 17px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.rr-rally-copy li {
  position: relative;
  padding-left: 24px;
  color: #a9b5c4;
  line-height: 1.55;
}

.rr-rally-copy li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #4fc979;
  border-radius: 50%;
  content: "";
}

.rr-rally-copy li strong {
  color: #e8edf4;
}

.rr-pyramid {
  display: grid;
  justify-items: center;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 12px;
  padding: 34px 30px 28px;
  background: linear-gradient(150deg, rgba(32, 46, 65, 0.72), rgba(12, 17, 25, 0.92));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.rr-pyramid-label {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 26px;
}

.rr-pyramid-label span {
  color: #78a9ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rr-pyramid-label strong {
  color: #eef2f7;
  font-size: 17px;
}

.rr-pyramid-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #e8edf4;
  font-size: 13px;
  font-weight: 850;
}

.rr-pyramid-tier small {
  color: #9da9b9;
  font-size: 10px;
}

.rr-pyramid-tier-1 { width: 50%; border-color: rgba(245, 185, 66, 0.58); background: rgba(245, 185, 66, 0.08); }
.rr-pyramid-tier-2 { width: 60%; }
.rr-pyramid-tier-3 { width: 70%; border-color: rgba(96, 165, 250, 0.42); }
.rr-pyramid-tier-4 { width: 80%; }
.rr-pyramid-tier-5 { width: 90%; border-color: rgba(34, 197, 94, 0.34); }
.rr-pyramid-tier-6 { width: 100%; border-color: rgba(148, 163, 184, 0.34); }

.rr-pyramid > p {
  margin: 22px 0 0;
  color: #7f8b9b;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rr-future-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 14px;
  align-content: center;
  min-height: 470px;
}

.rr-future-card {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;
  padding: 24px;
  background: rgba(16, 23, 34, 0.97);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.05);
}

.rr-future-card span {
  color: #72a5f9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rr-future-card strong {
  color: #eef2f7;
  font-size: 21px;
}

.rr-future-card small {
  max-width: 280px;
  color: #98a5b6;
  font-size: 13px;
  line-height: 1.5;
}

.rr-future-card-main {
  grid-column: 1 / -1;
  min-height: 210px;
  align-content: center;
  padding: 38px;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.16), transparent 40%),
    rgba(16, 23, 34, 0.98);
}

.rr-future-card-main strong {
  font-size: 36px;
}

.rr-future-card-prospect {
  grid-column: 2;
  grid-row: 2;
  min-height: 142px;
  align-content: center;
  border-color: rgba(34, 197, 94, 0.3);
}

.rr-future-card-year {
  grid-column: 1;
  grid-row: 2;
  min-height: 142px;
  align-content: center;
}

.rr-future-note {
  border-left: 2px solid #4e8ef5;
  padding-left: 18px;
  color: #d2d9e2 !important;
  font-size: 15px !important;
}

.rr-compare-table {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 11px;
}

.rr-compare-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-compare-row + .rr-compare-row {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.rr-compare-row > div {
  padding: 25px 28px;
  background: rgba(255, 255, 255, 0.018);
}

.rr-compare-row > div + div {
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(37, 99, 235, 0.055);
}

.rr-compare-row span {
  color: #7f8b9c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rr-compare-row > div + div span {
  color: #72a5f9;
}

.rr-compare-row p {
  margin: 8px 0 0;
  color: #b8c2d0;
  font-size: 15px;
  line-height: 1.5;
}

.rr-compare-row > div + div p {
  color: #e2e8f0;
}

.rr-landing-final {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1040px, calc(100% - 48px));
  margin: 40px auto 0;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  padding: 78px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.23), transparent 52%),
    rgba(17, 23, 34, 0.88);
  text-align: center;
}

.rr-landing-final h3 {
  max-width: 820px;
}

.rr-landing-final > p:not(.rr-landing-eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;
  color: #adb8c7;
  font-size: 18px;
  line-height: 1.6;
}

.rr-landing-final .rr-landing-hero-actions {
  justify-content: center;
}

.rr-landing-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--rr-landing-max), calc(100% - 48px));
  min-height: 136px;
  margin: 70px auto 0;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  color: #7e8a9a;
  font-size: 13px;
}

.rr-landing-footer img {
  width: 182px;
  height: auto;
  opacity: 0.88;
}

.rr-landing-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .rr-landing-nav-links {
    display: none;
  }

  .rr-landing-nav {
    grid-template-columns: 1fr auto;
  }

  .rr-landing-hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 62px;
  }

  .rr-landing-hero-copy {
    max-width: 800px;
  }

  .rr-product-preview {
    width: min(660px, 96%);
    margin-inline: auto;
  }

  .rr-how-section,
  .rr-rally-section,
  .rr-future-section {
    grid-template-columns: 1fr;
  }

  .rr-how-section {
    gap: 42px;
  }

  .rr-landing-text-link {
    margin-top: 0;
  }

  .rr-rally-copy,
  .rr-future-copy {
    max-width: 760px;
  }

  .rr-pyramid,
  .rr-future-visual {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .rr-future-visual {
    order: 2;
  }
}

@media (max-width: 720px) {
  .rr-landing-nav,
  .rr-landing-hero,
  .rr-landing-section,
  .rr-landing-footer {
    width: min(100% - 30px, var(--rr-landing-max));
  }

  .rr-landing-nav {
    min-height: 74px;
    gap: 12px;
  }

  .rr-landing-logo {
    width: min(174px, 42vw);
  }

  .rr-landing-sign-in {
    min-width: auto;
    padding-inline: 8px;
  }

  .rr-landing-cta-compact {
    display: none;
  }

  .rr-landing-hero {
    min-height: 0;
    padding: 54px 0 72px;
  }

  .rr-landing-hero h2 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .rr-landing-lede {
    margin-top: 22px;
    font-size: 17px;
  }

  .rr-landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rr-landing-hero-actions .rr-landing-cta,
  .rr-landing-hero-actions .rr-landing-secondary {
    width: 100%;
  }

  .rr-landing-proof {
    display: grid;
    gap: 12px;
  }

  .rr-product-preview {
    width: 100%;
    min-height: 470px;
  }

  .rr-preview-market {
    left: 0;
    transform: none;
  }

  .rr-preview-window-bar {
    grid-template-columns: 1fr auto;
  }

  .rr-preview-window-bar > span {
    display: none;
  }

  .rr-preview-window-bar strong {
    text-align: left;
  }

  .rr-preview-balance {
    align-items: start;
    flex-direction: column;
  }

  .rr-preview-player {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .rr-preview-player-mark {
    width: 34px;
    height: 34px;
  }

  .rr-preview-rating {
    right: 0;
    bottom: 22px;
  }

  .rr-preview-future {
    bottom: -12px;
    left: 0;
    width: 195px;
  }

  .rr-landing-promise-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .rr-landing-section {
    padding: 82px 0;
  }

  .rr-landing-section-heading {
    margin-bottom: 38px;
    text-align: left;
  }

  .rr-landing-section-heading > p:last-child {
    margin-inline: 0;
    font-size: 16px;
  }

  .rr-pillar-grid {
    grid-template-columns: 1fr;
  }

  .rr-pillar-card {
    min-height: 0;
    padding: 28px;
  }

  .rr-how-grid li {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .rr-pyramid {
    padding: 28px 12px 24px;
  }

  .rr-pyramid-tier {
    padding-inline: 12px;
  }

  .rr-pyramid-tier-1 { width: 60%; }
  .rr-pyramid-tier-2 { width: 68%; }
  .rr-pyramid-tier-3 { width: 76%; }
  .rr-pyramid-tier-4 { width: 84%; }
  .rr-pyramid-tier-5 { width: 92%; }
  .rr-pyramid-tier-6 { width: 100%; }

  .rr-future-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
  }

  .rr-future-card {
    position: static;
    width: 100%;
  }

  .rr-future-card-main {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    padding: 28px;
  }

  .rr-future-card-main strong {
    font-size: 30px;
  }

  .rr-future-card-prospect {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .rr-future-card-year {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .rr-compare-row {
    grid-template-columns: 1fr;
  }

  .rr-compare-row > div + div {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-left: 0;
  }

  .rr-compare-row > div {
    padding: 21px;
  }

  .rr-landing-final {
    width: calc(100% - 30px);
    padding: 58px 22px;
  }

  .rr-landing-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-landing *,
  .rr-landing *::before,
  .rr-landing *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep the landing canvas independent from the legacy first-visit auth card. */
body.first-visit-entry-active .app-header {
  display: none;
}

body.first-visit-entry-active main {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

body.first-visit-entry-active .site-section-panel {
  width: 100%;
}

body.first-visit-entry-active .first-visit-shell.first-visit-shell-auth-only {
  width: min(960px, calc(100% - 36px));
  margin: clamp(32px, 6vh, 64px) auto 0;
}

body.first-visit-entry-active .first-visit-shell.first-visit-landing-shell {
  display: block;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.first-visit-entry-active .first-visit-shell.first-visit-landing-shell::before {
  display: none;
}

body.first-visit-entry-active .first-visit-landing-shell .rr-landing {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 720px) {
  body.first-visit-entry-active .first-visit-shell.first-visit-shell-auth-only {
    width: calc(100% - 30px);
    margin-top: 24px;
  }

  body.first-visit-entry-active .rr-landing-nav,
  body.first-visit-entry-active .rr-landing-hero,
  body.first-visit-entry-active .rr-landing-section,
  body.first-visit-entry-active .rr-landing-footer {
    width: min(calc(100% - 30px), var(--rr-landing-max));
  }
}
/* Compact first-team activation path. Reuses the existing marketplace palette. */
.marketplace-activation-card {
  --surface-accent: var(--market-green);
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(440px, 1.6fr) auto;
  align-items: center;
  gap: 18px;
  margin: 2px 0 14px;
  padding: 14px 16px 14px 18px;
  border-color: rgba(34, 197, 94, 0.24);
  background:
    linear-gradient(100deg, rgba(34, 197, 94, 0.08), transparent 38%),
    var(--rr-surface, rgba(15, 20, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.marketplace-activation-copy {
  display: grid;
  gap: 3px;
}

.marketplace-activation-copy h3,
.marketplace-activation-copy p {
  margin: 0;
}

.marketplace-activation-copy h3 {
  color: var(--ice-white);
  font-size: 15px;
}

.marketplace-activation-copy p {
  color: var(--rr-text-soft, #9aa8ba);
  font-size: 12px;
  line-height: 1.35;
}

.marketplace-activation-copy p strong {
  color: var(--ice-white);
}

.marketplace-activation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketplace-activation-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--rr-text-soft, #9aa8ba);
  font-size: 11px;
  font-weight: 800;
}

.marketplace-activation-step-marker {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 50%;
  font-size: 10px;
}

.marketplace-activation-step > span:last-child {
  min-width: 0;
}

.marketplace-activation-step small {
  display: block;
  margin-top: 1px;
  color: inherit;
  font-size: 9px;
  font-weight: 700;
}

.marketplace-activation-step.is-complete {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.07);
  color: #65d98b;
}

.marketplace-activation-step.is-current {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(59, 130, 246, 0.09);
  color: var(--ice-white);
}

.marketplace-activation-count {
  color: #65d98b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .marketplace-activation-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .marketplace-activation-steps {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .marketplace-activation-card {
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px 12px 12px 15px;
  }

  .marketplace-activation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .marketplace-activation-step {
    min-width: 0;
  }
}

/* My Roster responsive command board */
.marketplace-my-team-shell .marketplace-view-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.marketplace-my-team-shell .marketplace-view-meta { width: auto; }

.marketplace-my-team-shell .marketplace-my-team-grid {
  grid-template-columns: minmax(560px, 3fr) minmax(380px, 2fr);
  gap: 16px;
}
.marketplace-my-team-grid > .marketplace-starting-roster-card,
.marketplace-my-team-grid > .marketplace-roster-side-column { grid-column: auto; }
.marketplace-roster-side-column { display: grid; align-content: start; gap: 16px; min-width: 0; }

.marketplace-my-team-shell .marketplace-starting-roster-card,
.marketplace-my-team-shell .marketplace-bench-roster-card,
.marketplace-my-team-shell .marketplace-prospect-stash-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marketplace-my-team-shell .marketplace-card-title-row h3,
.marketplace-my-team-shell .marketplace-roster-section-header h3 { color: #f6f9fd; font-size: 17px; font-weight: 850; }
.marketplace-roster-section-header span { color: #c0ccda; font-size: 12px; font-weight: 700; }

.marketplace-my-team-shell .marketplace-roster-week-control { flex: 0 0 auto; margin: 0; }
.marketplace-my-team-shell .marketplace-roster-week-select {
  min-width: 108px;
  min-height: 36px;
  margin: 0;
  border: 1px solid #b7c6d8;
  border-radius: 7px;
  padding: 0 32px 0 12px;
  background-color: #ffffff;
  color: #111c2f;
  font-size: 13px;
  font-weight: 700;
}

.marketplace-my-team-shell .marketplace-starting-roster-card .table-wrap,
.marketplace-my-team-shell .marketplace-bench-roster-card .table-wrap,
.marketplace-my-team-shell .marketplace-prospect-stash-card .table-wrap {
  border-color: #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.marketplace-my-team-shell .marketplace-bench-roster-card > .table-wrap {
  flex: none;
  height: auto;
}
.marketplace-my-team-shell .marketplace-roster-slots-table {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.marketplace-my-team-shell .marketplace-roster-slots-table th {
  position: static;
  height: 32px;
  padding: 7px 8px;
  border-bottom: 1px solid #cbd5e1;
  background: #eaf0f6;
  color: #526176;
  font-size: 9px;
  line-height: 1;
  text-align: left;
  white-space: nowrap !important;
}
.marketplace-my-team-shell .marketplace-roster-slots-table td {
  height: 58px;
  padding: 7px 8px;
  border-bottom: 1px solid #d8e0e9;
  background: #fff;
  color: #111c2f;
  font-size: 13px;
  line-height: 1.15;
  vertical-align: middle;
}
.marketplace-my-team-shell .marketplace-roster-slots-table tbody tr:last-child td { border-bottom: 0; }
.marketplace-my-team-shell .marketplace-roster-slots-table tbody tr:hover td { background: #f5f8fc; }
.marketplace-my-team-shell .marketplace-roster-move-column { width: 38px; min-width: 38px; max-width: 38px; text-align: center; }
.marketplace-my-team-shell .marketplace-roster-slot-column {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  color: #536176;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
}
.marketplace-my-team-shell .marketplace-roster-slot-label-mobile { display: none; }
.marketplace-my-team-shell .marketplace-roster-player-column {
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
}
.marketplace-my-team-shell .marketplace-roster-slots-table .marketplace-roster-worth-column {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}
.marketplace-my-team-shell .marketplace-roster-opponent-column {
  width: 142px;
  min-width: 132px;
  text-align: left;
}
.marketplace-my-team-shell .marketplace-roster-worth-column {
  width: 78px;
  min-width: 72px;
  color: #1264d6;
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.marketplace-my-team-shell th.marketplace-roster-worth-column { text-align: center; }
.marketplace-my-team-shell .marketplace-roster-stat-column { display: none; }
.marketplace-roster-mobile-projections { display: none; }
.marketplace-roster-projection-header {
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1;
  white-space: normal;
}
.marketplace-roster-portfolio-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.marketplace-roster-portfolio-help {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  font-size: 10px;
}
.marketplace-roster-portfolio-pill {
  display: inline-block;
  min-width: 46px;
  border: 1px solid #a8c7fb;
  border-radius: 6px;
  padding: 6px 7px;
  background: #f8fbff;
  text-align: center;
}
.marketplace-roster-opponent {
  display: grid;
  gap: 3px;
}
.marketplace-roster-opponent strong {
  color: #111c2f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.marketplace-roster-opponent span,
.marketplace-roster-opponent-pending {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.marketplace-starting-roster-card .marketplace-roster-starter-row .marketplace-roster-player-column .marketplace-roster-matchup { display: none; }
.marketplace-my-team-shell .marketplace-roster-mobile-meta { display: none; }
.marketplace-my-team-shell .marketplace-roster-list-column { width: 72px; min-width: 72px; text-align: right; }
.marketplace-my-team-shell .marketplace-player-label { display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.marketplace-my-team-shell .marketplace-player-label .player-page-link {
  min-width: 0;
  overflow: hidden;
  color: #101b2d;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-my-team-shell .marketplace-player-label > span {
  min-width: 0;
  overflow: hidden;
  color: #59677a;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-my-team-shell .marketplace-roster-matchup { color: #64748b !important; font-size: 9px !important; font-weight: 700 !important; }
.marketplace-my-team-shell .marketplace-small-button {
  min-width: 58px;
  min-height: 34px;
  border-color: #8db8fa;
  border-radius: 6px;
  background: #f8fbff;
  color: #075fce;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}
.marketplace-my-team-shell .marketplace-settled-secondary-sales-card { grid-column: 1 / -1; }

@media (min-width: 781px) {
  .marketplace-my-team-shell .marketplace-roster-stat-column {
    display: table-cell;
    width: 76px;
    min-width: 70px;
    color: #344b6b;
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .marketplace-my-team-shell th.marketplace-roster-stat-column { text-align: center; }
  .marketplace-my-team-shell .marketplace-roster-portfolio-pill {
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
  }
}

@media (max-width: 1280px) {
  .marketplace-my-team-shell .marketplace-my-team-grid { grid-template-columns: minmax(0, 1fr); }
  .marketplace-roster-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-my-team-grid > .marketplace-starting-roster-card,
  .marketplace-my-team-grid > .marketplace-roster-side-column { grid-column: 1; }
}

@media (max-width: 780px) {
  .marketplace-my-team-shell { gap: 14px; }
  .marketplace-my-team-shell .marketplace-view-meta { width: auto; }
  .marketplace-roster-side-column { grid-template-columns: minmax(0, 1fr); }
  .marketplace-my-team-shell .marketplace-starting-roster-card,
  .marketplace-my-team-shell .marketplace-bench-roster-card,
  .marketplace-my-team-shell .marketplace-prospect-stash-card { gap: 9px; padding: 0; }
  .marketplace-my-team-shell .marketplace-section-eyebrow { display: none; }
  .marketplace-my-team-shell .marketplace-roster-week-select { min-width: 88px; min-height: 32px; padding-left: 9px; font-size: 11px; }
  .marketplace-my-team-shell .marketplace-roster-slots-table,
  .marketplace-my-team-shell .marketplace-roster-slots-table tbody { display: grid; width: 100%; min-width: 0; }
  .marketplace-my-team-shell .marketplace-roster-slots-table,
  .marketplace-my-team-shell .marketplace-roster-slots-table thead,
  .marketplace-my-team-shell .marketplace-roster-slots-table tbody,
  .marketplace-my-team-shell .marketplace-roster-slots-table tr {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table thead {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 54px;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid #d8e0e9;
    background: #fff;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table tr:has(.marketplace-roster-slot-column) { grid-template-columns: 32px 68px minmax(0, 1fr) 70px; }
  .marketplace-my-team-shell .marketplace-roster-slots-table tr:has(.marketplace-roster-list-column) { grid-template-columns: 34px minmax(0, 1fr) 70px 58px; }
  .marketplace-my-team-shell .marketplace-roster-slots-table thead tr {
    min-height: 29px;
    border-bottom: 1px solid #cbd5e1;
    background: #eaf0f6;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table thead th { display: none; }
  .marketplace-my-team-shell .marketplace-roster-slots-table thead th.marketplace-roster-worth-column {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    font-size: 8px;
    letter-spacing: 0;
    text-align: center;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    padding: 5px 4px;
    border: 0;
    background: transparent;
  }
  .marketplace-my-team-shell .marketplace-roster-starter-row > td,
  .marketplace-my-team-shell .marketplace-roster-bench-row > td,
  .marketplace-my-team-shell .marketplace-roster-prospect-row > td {
    grid-row: 1;
  }
  /* The desktop roster includes a dedicated Opponent column. On mobile,
     matchup context stays compact under the player name instead. */
  .marketplace-my-team-shell .marketplace-roster-slots-table td.marketplace-roster-opponent-column {
    display: none !important;
  }
  .marketplace-my-team-shell .marketplace-roster-slots-table td.marketplace-roster-move-column {
    display: grid;
    grid-column: 1;
    place-items: center;
    padding: 7px 1px;
  }
  .marketplace-my-team-shell .marketplace-roster-slot-column { grid-column: 2; font-size: 9px; font-weight: 800; }
  .marketplace-my-team-shell .marketplace-roster-slot-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 24px;
    border: 1px solid #afc5df;
    border-radius: 6px;
    padding: 3px 6px;
    background: #e7eef8;
    color: #153051;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .marketplace-my-team-shell .marketplace-roster-slot-label-mobile { display: none; }
  .marketplace-my-team-shell .marketplace-roster-slot-label[data-slot-label="SUPERFLEX"] .marketplace-roster-slot-label-full { display: none; }
  .marketplace-my-team-shell .marketplace-roster-slot-label[data-slot-label="SUPERFLEX"] .marketplace-roster-slot-label-mobile { display: inline; }
  .marketplace-my-team-shell .marketplace-roster-player-column { grid-column: 2; overflow: hidden; }
  .marketplace-my-team-shell tr:has(.marketplace-roster-slot-column) .marketplace-roster-player-column { grid-column: 3; }
  .marketplace-my-team-shell .marketplace-roster-opponent-column { display: none; }
  .marketplace-my-team-shell .marketplace-roster-worth-column { display: block; grid-column: 3; padding-inline: 2px 6px; }
  .marketplace-my-team-shell tr:has(.marketplace-roster-slot-column) .marketplace-roster-worth-column { grid-column: 4; }
  .marketplace-my-team-shell tr:has(.marketplace-roster-list-column) .marketplace-roster-worth-column { grid-column: 3; }
  .marketplace-my-team-shell .marketplace-roster-list-column { grid-column: 4; padding: 4px 5px 4px 1px; }
  .marketplace-my-team-shell .marketplace-roster-player-value-pill { display: none; }
  .marketplace-my-team-shell .marketplace-roster-player-column .marketplace-player-label,
  .marketplace-my-team-shell .marketplace-roster-player-column .marketplace-roster-player-name-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .marketplace-my-team-shell .marketplace-roster-player-column .player-page-link { flex: 1 1 auto; }
  .marketplace-my-team-shell .marketplace-roster-player-column .marketplace-player-label {
    display: grid;
    grid-template-rows: auto auto;
    gap: 3px;
    line-height: 1.05;
  }
  .marketplace-my-team-shell .marketplace-roster-player-position-team,
  .marketplace-my-team-shell .marketplace-roster-player-column .marketplace-roster-matchup { display: none !important; }
  .marketplace-my-team-shell .marketplace-roster-mobile-meta {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    color: #5b6879;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .marketplace-my-team-shell .marketplace-roster-mobile-meta > * {
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .marketplace-my-team-shell .marketplace-roster-mobile-meta > * + *::before {
    content: "·";
    margin: 0 4px;
    color: #94a3b8;
  }
  .marketplace-my-team-shell .marketplace-roster-mobile-meta > :last-child {
    flex: 1 1 auto;
  }
  .marketplace-my-team-shell .marketplace-roster-player-position {
    color: #26384f;
    font-weight: 900;
  }
  .marketplace-my-team-shell .marketplace-roster-mobile-meta .marketplace-roster-mobile-projections {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    align-items: center;
    margin: 0;
    color: #526176;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }
  .marketplace-my-team-shell .marketplace-roster-mobile-projections strong {
    color: #1f3d67;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
  }
  .marketplace-my-team-shell .marketplace-roster-bench-drop-zone-row:not(.marketplace-roster-slot-selectable):not(.marketplace-roster-bench-drop-active) { display: none !important; }
}

@media (max-width: 420px) {
  .marketplace-my-team-shell .marketplace-roster-slots-table tr:has(.marketplace-roster-slot-column) { grid-template-columns: 32px 62px minmax(0, 1fr) 68px; }
  .marketplace-my-team-shell .marketplace-roster-slots-table tr:has(.marketplace-roster-list-column) { grid-template-columns: 30px minmax(0, 1fr) 68px 56px; }
}

/* Final workspace specificity overrides */
@media (min-width: 1181px) {
  body:has(.marketplace-product-shell) main,
  body:has(.player-page-shell) main,
  body:has(.marketplace-product-shell) .site-footer,
  body:has(.player-page-shell) .site-footer {
    box-sizing: border-box;
    width: calc(100% - var(--rr-sidebar-width));
  }
  body:has(.marketplace-product-shell) .site-footer-inner,
  body:has(.player-page-shell) .site-footer-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 781px) {
  body:has(.marketplace-product-shell) .marketplace-view-header h2,
  body:has(.marketplace-product-shell) .marketplace-page-header h2,
  body:has(.marketplace-product-shell) .marketplace-view-title,
  body:has(.player-page-shell) h2 { color: var(--rr-workspace-ink); }
  body:has(.marketplace-product-shell) .marketplace-view-header p,
  body:has(.marketplace-product-shell) .marketplace-page-header p { color: var(--rr-workspace-muted); }
  body:has(.marketplace-product-shell) .marketplace-public-team-profile {
    border-color: var(--rr-workspace-line);
    background: var(--rr-workspace-card);
    color: var(--rr-workspace-ink);
    box-shadow: 0 8px 24px rgba(15, 30, 50, 0.07);
  }
  body:has(.marketplace-product-shell) .marketplace-starting-roster-card h3,
  body:has(.marketplace-product-shell) .marketplace-bench-roster-card h3,
  body:has(.marketplace-product-shell) .marketplace-prospect-stash-card h3 { color: var(--rr-workspace-ink); }
  body:has(.marketplace-product-shell) .marketplace-starting-roster-card .empty-state,
  body:has(.marketplace-product-shell) .marketplace-bench-roster-card .empty-state,
  body:has(.marketplace-product-shell) .marketplace-prospect-stash-card .empty-state { color: var(--rr-workspace-muted); }
}

/* Keep every primary workspace anchored to the same top-left content origin. */
@media (min-width: 781px) {
  body:has(.marketplace-product-shell) main {
    align-content: start;
    padding: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px clamp(28px, 3vw, 48px) 52px;
    align-content: start;
  }
}

/* Desktop identity header and page-level active-team context. */
.account-profile-initials,
.account-menu-chevron,
.header-notification-menu,
.marketplace-desktop-team-context {
  display: none;
}

.account-menu-mobile-notifications {
  display: block;
}

.marketplace-mobile-page-team-context {
  display: none;
}

.header-global-player-search {
  display: none;
}

.marketplace-profile-name-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 12, 22, 0.72);
  backdrop-filter: blur(5px);
}

.marketplace-profile-name-dialog {
  display: grid;
  width: min(460px, 100%);
  gap: 10px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 12px;
  padding: 28px;
  background: #111b2a;
  color: var(--ice-white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.marketplace-profile-name-dialog h2,
.marketplace-profile-name-dialog p {
  margin: 0;
}

.marketplace-profile-name-dialog > p {
  color: #aebbd0;
}

.marketplace-profile-name-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.marketplace-profile-name-form label {
  display: grid;
  gap: 6px;
  color: #dce7f5;
  font-size: 12px;
  font-weight: 800;
}

.marketplace-profile-name-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 7px;
  padding: 9px 11px;
  background: #081421;
  color: #fff;
  font: inherit;
}

.marketplace-profile-name-form button,
.marketplace-profile-name-error {
  grid-column: 1 / -1;
}

.marketplace-profile-name-form button {
  min-height: 44px;
  border: 1px solid #4f8df7;
  border-radius: 7px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #4f8df7, #2865dc);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.marketplace-profile-name-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.marketplace-profile-name-error {
  color: #fca5a5;
  font-size: 12px;
}

@media (min-width: 781px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions,
  .auth-fixture-panel {
    width: auto;
    max-width: max-content;
  }

  .marketplace-header-team-summary {
    display: none;
  }

  .header-global-player-search {
    z-index: 182;
    display: block;
    flex: 0 1 240px;
    width: clamp(184px, 19vw, 260px);
    color: #dbe7f6;
  }

  .header-global-player-search .global-search-box {
    position: relative;
  }

  .header-global-player-search .header-global-player-search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8fa3bb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    pointer-events: none;
  }

  .header-global-player-search .global-search-box input {
    width: 100%;
    height: 38px;
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 7px 32px 7px 38px;
    background: rgba(5, 17, 31, 0.66);
    color: #f8fbff;
    font-size: 13px;
    outline: 0;
  }

  .header-global-player-search .global-search-box input::placeholder {
    color: #91a2b7;
  }

  .header-global-player-search .global-search-box input:focus {
    border-color: #4f8df7;
    background: rgba(7, 22, 40, 0.96);
    box-shadow: 0 0 0 3px rgba(79, 141, 247, 0.18);
  }

  .header-global-player-search .global-search-results {
    top: calc(100% + 9px);
    right: 0;
    left: auto;
    width: min(390px, calc(100vw - 32px));
    max-height: min(440px, calc(100vh - 110px));
    border-color: rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
    overflow: auto;
  }

  .header-global-player-search .global-search-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    min-width: 0;
    padding: 11px 14px;
    background: #fff;
    color: #0b1830;
  }

  .header-global-player-search .global-search-result:hover,
  .header-global-player-search .global-search-result:focus-visible {
    background: #f1f6fd;
  }

  .header-global-player-search .global-search-result small {
    display: block;
    color: #61738c;
    font-size: 11px;
  }

  .header-global-player-search .global-search-result small span {
    font-weight: 400;
  }

  .header-global-player-search .global-search-empty {
    background: #fff;
    color: #61738c;
  }

  .account-menu-mobile-notifications {
    display: none;
  }

  .header-notification-menu {
    position: relative;
    z-index: 181;
    display: block;
  }

  .header-notification-trigger {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    padding-left: 16px;
    color: #e8f1fd;
    cursor: pointer;
    list-style: none;
  }

  .header-notification-trigger::-webkit-details-marker {
    display: none;
  }

  .header-notification-trigger svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .header-notification-trigger .account-notification-badge {
    top: 0;
    right: -6px;
  }

  .header-notification-panel {
    position: absolute;
    z-index: 230;
    top: calc(100% + 12px);
    right: -12px;
    display: grid;
    width: min(370px, calc(100vw - 32px));
    gap: 12px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 10px;
    padding: 14px;
    background: #111721;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  }

  .header-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f8fafc;
  }

  .header-notification-heading small,
  .header-notification-empty {
    margin: 0;
    color: #9aa8ba;
    font-size: 12px;
  }

  .account-menu .account-menu-trigger.account-menu-trigger-initials,
  .account-menu .account-menu-trigger {
    width: auto;
    min-width: 66px;
    max-width: none;
    gap: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-menu .account-menu-trigger:hover,
  .account-menu .account-menu-trigger:focus-visible,
  .account-menu[open] .account-menu-trigger {
    background: rgba(59, 130, 246, 0.12);
  }

  .account-profile-icon {
    display: none;
  }

  .account-profile-initials {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: linear-gradient(145deg, #5576ad, #243b63);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .account-menu-chevron {
    display: inline-block;
    color: #d3deed;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-2px);
  }

  .marketplace-view-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .marketplace-view-meta {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 18px;
  }

  .marketplace-desktop-team-context {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 190px;
    color: var(--rr-workspace-ink);
    text-align: right;
  }

  .marketplace-desktop-team-name .marketplace-active-team-name,
  .marketplace-desktop-team-name .marketplace-active-team-select {
    width: auto;
    max-width: 280px;
    min-height: 30px;
    margin: 0;
    border: 0;
    padding: 0 22px 0 0;
    background-color: transparent;
    color: var(--rr-workspace-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    text-align: right;
  }

  .marketplace-desktop-team-name .marketplace-active-team-name {
    padding-right: 0;
  }

  .marketplace-desktop-team-format {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: var(--rr-workspace-muted);
    font-size: 14px;
    line-height: 1.4;
  }

  .marketplace-team-format-help {
    position: relative;
  }

  .marketplace-team-format-help summary {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #8fa1b7;
    border-radius: 999px;
    color: #53657c;
    cursor: help;
    font-size: 11px;
    font-weight: 900;
    list-style: none;
  }

  .marketplace-team-format-help summary::-webkit-details-marker {
    display: none;
  }

  .marketplace-team-format-help > div {
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    right: 0;
    width: 255px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    background: #101927;
    color: #e7eef8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
  }

  .marketplace-team-format-help:not([open]) > div {
    display: none;
  }

  .marketplace-team-format-help:not([open]) summary:hover + div,
  .marketplace-team-format-help:not([open]) summary:focus-visible + div {
    display: block;
  }
}

@media (max-width: 780px) {
  .marketplace-profile-name-form {
    grid-template-columns: 1fr;
  }

  .marketplace-profile-name-form button,
  .marketplace-profile-name-error {
    grid-column: 1;
  }
}

/* Pin the desktop information bar across the full viewport and stop the
   navigation rail immediately above it. */
@media (min-width: 1181px) {
  body:has(.marketplace-product-shell) .site-footer,
  body:has(.player-page-shell) .site-footer {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--rr-desktop-footer-height);
    margin-left: 0;
    border-top-color: transparent;
    background:
      linear-gradient(90deg, #153051 0 var(--rr-sidebar-width), transparent var(--rr-sidebar-width)),
      radial-gradient(circle at 18% -70%, rgba(59, 130, 246, 0.26), transparent 42%),
      linear-gradient(112deg, rgba(13, 34, 56, 0.99), rgba(8, 22, 37, 0.99) 58%, rgba(6, 17, 30, 0.99));
    box-shadow: none;
  }

  body:has(.marketplace-product-shell) .site-footer-inner,
  body:has(.player-page-shell) .site-footer-inner {
    height: 100%;
    padding: 7px clamp(18px, 2vw, 32px);
  }

  body:has(.marketplace-product-shell) .app-sidebar,
  body:has(.player-page-shell) .app-sidebar {
    bottom: var(--rr-desktop-footer-height);
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell,
  body:has(.player-page-shell) .player-page-shell {
    min-height: calc(100vh - 99px - var(--rr-desktop-footer-height));
    padding-bottom: calc(52px + var(--rr-desktop-footer-height));
  }
}

/* Keep the shared desktop page identity perfectly stationary between tabs. */
@media (min-width: 781px) {
  html {
    scrollbar-gutter: stable;
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell > .marketplace-view-header {
    box-sizing: border-box;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 0 4px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body:has(.marketplace-product-shell) .marketplace-view-title {
    align-content: start;
    gap: 4px;
    min-width: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-view-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-view-title p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
  }

  body:has(.marketplace-product-shell) .marketplace-view-meta {
    align-self: start;
    align-items: flex-start;
    justify-content: flex-end;
    margin: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-desktop-team-context {
    align-content: start;
    align-self: start;
    margin: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-desktop-team-name,
  body:has(.marketplace-product-shell) .marketplace-desktop-team-name .marketplace-active-team-name,
  body:has(.marketplace-product-shell) .marketplace-desktop-team-name .marketplace-active-team-select {
    margin-top: 0;
    margin-bottom: 0;
    font-family: inherit;
    line-height: 1.2;
  }
}

/* Keep the team name, edit gear, and add-team control in one compact cluster. */
.marketplace-active-team-primary,
.marketplace-header-active-team,
.marketplace-desktop-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media screen and (max-width: 780px) {
  .marketplace-header-active-team {
    width: 100%;
    max-width: 330px;
  }

  .marketplace-header-active-team-compact::before,
  .marketplace-header-active-team-compact::after {
    right: 76px;
  }
}

/* Final account-menu placement overrides after all legacy responsive rules. */
.account-menu .account-menu-panel {
  width: min(224px, calc(100vw - 24px));
  gap: 0;
  border: 1px solid #d5dae2;
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
  color: #0b1830;
  box-shadow: 0 8px 20px rgba(11, 24, 48, 0.18);
}

@media screen and (max-width: 780px) {
  .account-menu .account-menu-panel {
    position: fixed;
    right: 12px;
    left: auto;
    top: 70px;
    width: min(224px, calc(100vw - 24px));
    max-height: none;
    margin: 0;
    overflow: visible;
  }
}

/* Approved light player-profile composition. The page keeps the shared
   RotoRally chrome while mirroring the dense two-column reference layout. */
.player-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, 1fr);
  gap: 20px;
  align-items: start;
}

.player-profile-main-column,
.player-profile-side-column {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.player-profile-identity {
  display: block;
  min-height: 0;
  border: 1px solid var(--rr-workspace-line);
  border-radius: 10px;
  padding: 26px 30px 24px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 30, 50, 0.05);
}

.player-profile-portrait {
  position: relative;
  display: grid;
  width: 188px;
  height: 205px;
  place-items: stretch;
  overflow: hidden;
  border: 1px solid #c8d4e2;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 26%, rgba(59, 130, 246, 0.14), transparent 36%),
    linear-gradient(145deg, #f6f9fd, #e3ebf5);
  box-shadow: 0 8px 24px rgba(15, 30, 50, 0.07);
}

.player-profile-portrait svg {
  width: 100%;
  height: 100%;
  display: block;
}

.player-profile-portrait-head,
.player-profile-portrait-neck {
  fill: #243b58;
}

.player-profile-portrait-jersey {
  fill: url("#playerPortraitJersey");
  stroke: #081a31;
  stroke-width: 1.5;
}

.player-profile-portrait-collar {
  fill: #e8eef6;
  stroke: #081a31;
  stroke-width: 1.2;
}

.player-profile-portrait-seam {
  fill: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 4;
}

.player-profile-portrait > strong {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #153051;
  font-size: 11px;
  font-weight: 900;
}

.player-profile-identity-copy {
  display: grid;
  min-width: 0;
  gap: 17px;
  justify-items: start;
}

.player-profile-identity-copy h2 {
  color: #0b1830;
  font-size: clamp(38px, 3.1vw, 50px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
}

.player-profile-identity-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.player-profile-team-position {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: #526176;
  font-size: 19px;
  font-weight: 650;
}

.player-profile-team-link {
  display: inline-flex;
  color: #526176;
  text-decoration: none;
}

.player-profile-team-link .team-badge {
  min-width: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.player-profile-active-status {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: #159447;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-profile-active-status > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22b957;
  box-shadow: 0 0 0 3px rgba(34, 185, 87, 0.12);
}

.player-profile-identity-meta .marketplace-watch-button {
  min-height: 38px;
  border: 1px solid #176df2;
  border-radius: 7px;
  padding: 8px 13px;
  background: #ffffff;
  color: #1767d1;
  font-size: 13px;
}

.player-profile-identity-meta .marketplace-watch-button:hover,
.player-profile-identity-meta .marketplace-watch-button:focus-visible,
.player-profile-identity-meta .marketplace-watch-button.is-watched {
  border-color: #0d55be;
  background: #eef5ff;
  color: #0d55be;
}

.player-profile-identity .player-page-ownership-status {
  margin: 0;
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

.player-profile-identity .player-page-hero-actions {
  display: flex;
  margin-top: 8px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.player-profile-identity .player-page-market-status {
  min-height: 42px;
  margin: 0;
  border: 1px solid #ccd8e6;
  border-radius: 8px;
  padding: 6px 11px;
  background: #ffffff;
}

.player-profile-identity .player-page-market-status strong {
  color: #0b1830;
}

.player-profile-identity .player-page-market-status span {
  color: #5d6a7e;
}

.player-profile-identity .player-page-hero-actions .marketplace-watch-button {
  min-height: 42px;
  border: 1px solid #176df2;
  border-radius: 7px;
  padding: 9px 13px;
  background: #ffffff;
  color: #1767d1;
  font-size: 13px;
}

.player-profile-identity .player-page-hero-actions .marketplace-watch-button:hover,
.player-profile-identity .player-page-hero-actions .marketplace-watch-button:focus-visible,
.player-profile-identity .player-page-hero-actions .marketplace-watch-button.is-watched {
  border-color: #0d55be;
  background: #eef5ff;
  color: #0d55be;
}

.player-profile-facts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--rr-workspace-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 30, 50, 0.05);
}

.player-profile-fact {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 22px 10px;
  text-align: center;
}

.player-profile-fact + .player-profile-fact {
  border-left: 1px solid #dbe3ec;
}

.player-profile-fact span {
  overflow: hidden;
  color: #617087;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-profile-fact strong {
  overflow: hidden;
  color: #0b1830;
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rr-workspace-line);
  border-radius: 10px;
  padding: 20px;
  background: #ffffff;
  color: #0b1830;
  box-shadow: 0 6px 20px rgba(15, 30, 50, 0.05);
}

.player-profile-card-heading,
.player-value-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.player-profile-card-heading h3,
.player-value-heading h3 {
  margin: 0;
  color: #0b1830;
  font-size: 18px;
  font-weight: 800;
}

.player-profile-card-heading > span {
  color: #1767d1;
  font-size: 11px;
  font-weight: 800;
}

.player-stat-strip {
  display: grid;
  grid-template-columns: repeat(var(--player-stat-count, 9), minmax(0, 1fr));
  margin-top: 16px;
}

.player-projected-stat-card {
  min-height: 168px;
}

.player-stat-item {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 4px 8px;
  text-align: center;
}

.player-stat-item + .player-stat-item {
  border-left: 1px solid #dbe3ec;
}

.player-stat-item span {
  overflow: hidden;
  color: #617087;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stat-item strong {
  color: #0b1830;
  font-size: 16px;
  font-weight: 750;
}

.player-profile-table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

.player-profile-table {
  width: 100%;
  border-collapse: collapse;
  color: #0b1830;
  font-size: 12px;
  white-space: nowrap;
}

.player-profile-table th,
.player-profile-table td {
  border-bottom: 1px solid #dde5ee;
  padding: 10px 8px;
  text-align: left;
}

.player-profile-table th {
  position: static;
  background: #ffffff;
  color: #5d6a7e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.player-profile-table td {
  background: #ffffff;
  color: #0b1830;
}

.player-profile-table tbody tr:last-child td {
  border-bottom: 0;
}

.player-historical-stats-card .player-profile-table th:not(:first-child),
.player-historical-stats-card .player-profile-table td:not(:first-child) {
  text-align: right;
}

.player-position-value-card {
  min-height: 462px;
}

.player-value-heading > div:first-child {
  display: grid;
  gap: 6px;
}

.player-value-heading p {
  margin: 0;
  color: #66758a;
  font-size: 12px;
}

.player-value-current {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  justify-items: end;
}

.player-value-current > strong {
  color: #0b1830;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.player-value-current > span {
  font-size: 12px;
  font-weight: 800;
}

.player-value-current .is-positive {
  color: #159447;
}

.player-value-current .is-negative {
  color: #dc2626;
}

.player-value-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 17px;
  overflow: visible;
}

.player-value-chart-grid line {
  stroke: #dce5ef;
  stroke-width: 1;
}

.player-value-chart-grid text,
.player-value-chart-date {
  fill: #617087;
  font-size: 11px;
}

.player-value-chart-area {
  fill: rgba(37, 99, 235, 0.1);
}

.player-value-chart-line {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.player-value-chart-empty {
  display: grid;
  min-height: 265px;
  margin-top: 16px;
  place-items: center;
  border: 1px dashed #c9d5e3;
  border-radius: 8px;
  padding: 24px;
  background: #f8fafc;
  color: #66758a;
  text-align: center;
}

.player-value-range {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #66758a;
  font-size: 11px;
}

.player-value-range strong {
  border: 1px solid #176df2;
  border-radius: 6px;
  padding: 3px 8px;
  color: #1767d1;
}

.player-transaction-history-card {
  min-height: 386px;
}

.player-historical-stats-card {
  min-height: 386px;
}

.player-transaction-history-table th:nth-child(3),
.player-transaction-history-table td:nth-child(3) {
  text-align: right;
}

.player-transaction-history-table {
  min-width: 100%;
}

.player-transaction-history-table td:nth-child(4) {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-transaction-history-table td strong {
  color: #1767d1;
  font-weight: 700;
}

.player-transaction-count {
  margin: 13px 0 0;
  color: #66758a;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1180px) {
  .player-profile-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  }

  .player-profile-identity {
    min-height: 158px;
  }

  .player-profile-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-profile-fact:nth-child(5) {
    border-left: 0;
  }

  .player-profile-fact:nth-child(n + 5) {
    border-top: 1px solid #dbe3ec;
  }
}

@media (min-width: 1181px) {
  body:has(.player-page-shell) main {
    align-content: start;
    padding: 0;
  }

  body:has(.player-page-shell) .player-page-shell {
    width: 100%;
    max-width: none;
    padding-top: 22px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 900px) {
  .player-profile-layout {
    grid-template-columns: 1fr;
  }

  .player-profile-side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body:has(.player-page-shell) .player-page-shell {
    width: 100%;
    padding: 16px 12px 34px;
    background: var(--rr-workspace);
  }

  .player-profile-layout,
  .player-profile-main-column,
  .player-profile-side-column {
    gap: 14px;
  }

  .player-profile-identity {
    min-height: auto;
    border-radius: 9px;
    padding: 18px 16px;
  }

  .player-profile-identity-copy {
    gap: 5px;
  }

  .player-profile-identity-meta {
    gap: 9px 14px;
  }

  .player-profile-identity-copy h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .player-profile-team-position {
    font-size: 15px;
  }

  .player-profile-active-status,
  .player-profile-identity .player-page-ownership-status {
    font-size: 10px;
  }

  .player-profile-identity .player-page-hero-actions {
    margin-top: 4px;
    gap: 6px;
  }

  .player-profile-identity .player-page-market-status,
  .player-profile-identity .player-page-hero-actions .marketplace-watch-button {
    min-height: 34px;
  }

  .player-profile-identity .player-page-market-status {
    padding: 4px 8px;
  }

  .player-profile-identity .player-page-hero-actions .marketplace-watch-button {
    align-self: auto;
    padding: 6px 9px;
    font-size: 10px;
  }

  .player-profile-facts {
    grid-template-columns: repeat(7, minmax(82px, 1fr));
    overflow-x: auto;
  }

  .player-profile-fact {
    min-width: 82px;
    padding: 12px 8px;
  }

  .player-profile-fact:nth-child(5) {
    border-left: 1px solid #dbe3ec;
  }

  .player-profile-fact:nth-child(n + 5) {
    border-top: 0;
  }

  .player-profile-card {
    padding: 15px;
  }

  .player-stat-strip {
    grid-template-columns: repeat(var(--player-stat-count, 9), minmax(78px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .player-stat-item {
    min-width: 78px;
  }

  .player-position-value-card,
  .player-transaction-history-card,
  .player-historical-stats-card,
  .player-projected-stat-card {
    min-height: 0;
  }

  .player-value-current > strong {
    font-size: 22px;
  }

  .player-value-chart {
    min-width: 470px;
  }

  .player-position-value-card {
    overflow-x: auto;
  }

  .player-profile-table {
    min-width: 720px;
  }

  .player-transaction-history-table {
    min-width: 620px;
  }
}

/* Mobile-only page identity: move active-team controls out of the global
   header and into the page-heading row without changing desktop geometry. */
@media screen and (max-width: 780px) {
  body:has(.marketplace-product-shell) .marketplace-header-team-summary {
    display: none;
  }

  body:has(.marketplace-product-shell) .auth-fixture-panel {
    grid-template-columns: 46px;
    justify-content: end;
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell > .marketplace-view-header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell > .marketplace-view-header > .marketplace-view-title {
    display: none;
  }

  body:has(.marketplace-product-shell) .marketplace-product-shell > .marketplace-view-header > .marketplace-view-meta {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-context {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    color: var(--ice-white);
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot {
    flex: 0 1 auto;
    width: min(210px, 54vw);
    min-width: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name,
  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-select,
  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-select-value {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    margin: 0;
    overflow: hidden;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: var(--ice-white);
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 850;
    line-height: 1.1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector {
    padding-right: 19px;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector .marketplace-active-team-select {
    position: absolute;
    z-index: 2;
    inset: 0;
    min-height: 100%;
    cursor: pointer;
    opacity: 0;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector::before,
  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector::after {
    position: absolute;
    right: 3px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #dbeafe;
    border-bottom: 2px solid #dbeafe;
    content: "";
    pointer-events: none;
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector::before {
    top: 7px;
    transform: rotate(-135deg);
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-name-slot.has-team-selector::after {
    bottom: 7px;
    transform: rotate(45deg);
  }

  body:has(.marketplace-product-shell) .marketplace-mobile-page-team-name .marketplace-active-team-tool {
    width: 36px;
    height: 36px;
    border-color: rgba(148, 163, 184, 0.38);
    color: var(--ice-white);
  }
}
