:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --ink: #1c2526;
  --muted: #657174;
  --line: #d7dddf;
  --accent: #176b87;
  --accent-2: #b23a48;
  --accent-3: #2d7d46;
  --gold: #b88419;
  --shadow: 0 16px 40px rgba(28, 37, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 18px;
  background: #182426;
  color: #f7fbfb;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    padding 160ms ease,
    width 160ms ease;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  min-width: 0;
  flex: 1;
}

.league-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #d8b15a;
  background: #243335;
  color: #f7d77b;
  font-weight: 800;
}

.league-name {
  font-size: 15px;
  font-weight: 800;
}

.league-meta {
  margin-top: 2px;
  color: #aebdc0;
  font-size: 12px;
}

.sidebar-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #223133;
  color: #f7fbfb;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #2c3d40;
}

.nav-list {
  display: grid;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section-title {
  padding: 0 12px 3px;
  color: #8fa2a6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #d8e2e4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav-list a:hover,
.nav-list a.active {
  background: #2c3d40;
  color: #ffffff;
}

.app-shell.sidebar-collapsed .sidebar {
  gap: 18px;
  padding: 18px 10px;
}

.app-shell.sidebar-collapsed .brand-block {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.app-shell.sidebar-collapsed .brand-text {
  display: none;
}

.app-shell.sidebar-collapsed .league-mark {
  width: 40px;
  height: 40px;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 40px;
  height: 32px;
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .nav-list a {
  justify-content: center;
  min-height: 40px;
  padding: 0;
  font-size: 0;
}

.app-shell.sidebar-collapsed .nav-list a::after {
  content: attr(data-short);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.app-shell.sidebar-collapsed .nav-list {
  gap: 12px;
}

.app-shell.sidebar-collapsed .nav-section {
  gap: 5px;
}

.app-shell.sidebar-collapsed .nav-section-title {
  display: none;
}

.source-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #d8e2e4;
  font-size: 12px;
  line-height: 1.35;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.main-panel {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 3px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 14px;
  line-height: 1.25;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar[hidden] {
  display: none;
}

.toolbar select,
.filter-row select,
.search-input {
  min-height: 38px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card,
.panel,
.record-card,
.team-card,
.season-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  padding: 15px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 850;
}

.stat-value.small-value {
  font-size: 20px;
  line-height: 1.15;
}

.stat-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.content-grid > *,
.summary-grid > *,
.dashboard-rankings-grid > * {
  min-width: 0;
}

.dashboard-rankings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.dashboard-franchises {
  display: grid;
  grid-template-columns: 1fr;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ranking-explainer {
  max-width: 900px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.season-link {
  display: inline-flex;
  min-width: 70px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 107, 135, 0.32);
  border-radius: 6px;
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.season-link:hover,
.season-link:focus-visible {
  border-color: rgba(23, 107, 135, 0.58);
  background: rgba(23, 107, 135, 0.16);
  transform: translateY(-1px);
}

.source-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 107, 135, 0.32);
  border-radius: 6px;
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.source-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: rgba(23, 107, 135, 0.58);
  background: rgba(23, 107, 135, 0.16);
}

.action-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 107, 135, 0.36);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  padding: 0 12px;
  font-weight: 850;
}

.action-button:hover,
.action-button:focus-visible {
  background: #12566e;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.table-sort-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
  text-transform: inherit;
}

.table-sort-button:hover,
.table-sort-button:focus-visible,
.table-sort-button.active {
  color: var(--accent);
}

.sort-arrow {
  display: inline-block;
  width: 10px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

tr:last-child td {
  border-bottom: 0;
}

.team-cell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.team-token {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--team-color, var(--accent));
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.abbr-chip {
  display: inline-flex;
  min-width: 42px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.abbr-chip:hover,
.abbr-chip:focus-visible {
  border-color: rgba(23, 107, 135, 0.58);
  background: rgba(23, 107, 135, 0.12);
  transform: translateY(-1px);
}

.dashboard-ranking-wrap table {
  min-width: 0;
}

.dashboard-ranking-table th,
.dashboard-ranking-table td {
  padding: 10px 8px;
}

.ranking-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.ranking-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-leader-summary {
  display: grid;
  gap: 14px;
}

.leader-hero {
  display: grid;
  gap: 6px;
}

.leader-code-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leader-rating {
  font-size: 28px;
  font-weight: 900;
}

.leader-team-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

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

.leader-metric-list div {
  min-width: 0;
}

.leader-metric-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.leader-metric-list dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 850;
}

.leader-method {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.leader-method span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-franchise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dashboard-franchise-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
}

.dashboard-franchise-item strong,
.dashboard-franchise-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-franchise-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  display: none;
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%) translateY(4px);
  border: 1px solid #2f3c3f;
  border-radius: 6px;
  padding: 7px 9px;
  background: #182426;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 37, 38, 0.2);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  white-space: normal;
}

.tooltip::before {
  display: none;
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: #182426;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.tooltip:hover::after,
.tooltip:focus-visible::after,
.tooltip:hover::before,
.tooltip:focus-visible::before {
  opacity: 1;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

.floating-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(260px, calc(100vw - 24px));
  transform: translate(-50%, -100%);
  border: 1px solid #2f3c3f;
  border-radius: 6px;
  padding: 7px 9px;
  background: #182426;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 37, 38, 0.28);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  pointer-events: none;
  text-align: center;
}

.team-name {
  font-weight: 800;
}

.team-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.gold {
  border-color: #d7b767;
  background: #fff5d8;
}

.badge.green {
  border-color: #b7d9bf;
  background: #e9f7ed;
}

.badge.red {
  border-color: #e3b7bd;
  background: #fae8eb;
}

.positive-text {
  color: var(--good);
  font-weight: 850;
}

.negative-text {
  color: var(--accent-2);
  font-weight: 850;
}

.season-list,
.team-grid,
.franchise-directory-grid,
.prediction-grid,
.record-grid {
  display: grid;
  gap: 12px;
}

.franchise-directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.prediction-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.season-card,
.team-card,
.prediction-card,
.record-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.prediction-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.prediction-call {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.prediction-copy {
  font-size: 13px;
  line-height: 1.45;
}

.first-round-target {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(23, 107, 135, 0.2);
  border-radius: 8px;
  background: rgba(23, 107, 135, 0.07);
  padding: 10px;
}

.first-round-target .target-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.first-round-target strong {
  color: var(--ink);
  font-size: 16px;
}

.first-round-target span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.position-bars {
  display: grid;
  gap: 7px;
}

.position-bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.position-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.position-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.prediction-meta,
.watchlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prediction-meta span,
.watchlist-row span,
.confidence-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.confidence-pill.high {
  border-color: rgba(45, 125, 70, 0.28);
  background: rgba(45, 125, 70, 0.1);
  color: var(--accent-3);
}

.confidence-pill.medium {
  border-color: rgba(184, 132, 25, 0.28);
  background: rgba(184, 132, 25, 0.12);
  color: #8a6114;
}

.confidence-pill.low {
  border-color: rgba(178, 58, 72, 0.24);
  background: rgba(178, 58, 72, 0.08);
  color: var(--accent-2);
}

.sim-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.compact-sim-table th,
.compact-sim-table td {
  padding: 9px 8px;
}

.compact-sim-table .abbr-chip {
  min-width: 42px;
  justify-content: center;
}

.draft-board-panel {
  padding-bottom: 12px;
}

.championship-outlook-panel {
  display: grid;
  gap: 14px;
}

.outlook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.outlook-winner,
.outlook-rank-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.outlook-winner {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.outlook-winner > strong {
  font-size: 24px;
  line-height: 1.1;
}

.outlook-winner > span:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.outlook-score-row,
.outlook-top-three {
  display: grid;
  gap: 8px;
}

.outlook-score-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outlook-score-row span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 9px;
}

.outlook-score-row b,
.outlook-rank-card b {
  font-size: 18px;
  font-weight: 950;
}

.outlook-score-row em,
.outlook-rank-card em,
.outlook-note {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.outlook-rank-card {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) 70px;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.outlook-rank-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.outlook-rank-card strong {
  font-size: 16px;
  font-weight: 950;
}

.outlook-rank-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outlook-player-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.outlook-note {
  border-left: 3px solid rgba(184, 132, 25, 0.42);
  padding-left: 10px;
}

.draft-board-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.draft-board-grid {
  display: grid;
  min-width: 1060px;
  grid-template-columns: repeat(var(--team-count), minmax(86px, 1fr));
  gap: 4px;
}

.draft-team-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  min-height: 40px;
  align-content: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--team-color) 45%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--team-color) 14%, #ffffff);
  padding: 6px;
  line-height: 1.1;
}

.draft-team-header span {
  color: var(--team-color);
  font-size: 11px;
  font-weight: 950;
}

.draft-team-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 850;
}

.draft-pick-card {
  display: grid;
  min-height: 64px;
  align-content: start;
  gap: 2px;
  border: 2px solid var(--pick-border, var(--line));
  border-radius: 5px;
  background: var(--pick-bg, var(--surface));
  padding: 6px;
  line-height: 1.12;
}

.draft-pick-card span,
.draft-pick-card em,
.sim-roster-picks span,
.sim-roster-picks em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.draft-pick-card strong,
.sim-roster-picks strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-pick-card strong {
  display: -webkit-box;
  min-height: 25px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #132125;
  font-size: 12px;
  font-weight: 850;
}

.draft-pick-card b {
  display: inline-flex;
  min-width: 23px;
  justify-content: center;
  border-radius: 4px;
  background: var(--pick-tag, rgba(255, 255, 255, 0.68));
  color: #12323a;
  font-size: 10px;
  font-weight: 950;
}

.draft-pick-card.pos-rb {
  --pick-bg: #d9f2ff;
  --pick-border: #8acbe7;
  --pick-tag: #8dd4f0;
}

.draft-pick-card.pos-wr {
  --pick-bg: #c9f2f7;
  --pick-border: #79cbd7;
  --pick-tag: #80d5df;
}

.draft-pick-card.pos-qb {
  --pick-bg: #f9e2eb;
  --pick-border: #e8aabc;
  --pick-tag: #edb6c8;
}

.draft-pick-card.pos-te {
  --pick-bg: #d8f4ea;
  --pick-border: #8bd3b8;
  --pick-tag: #95dec3;
}

.draft-pick-card.pos-d-st {
  --pick-bg: #fbf0be;
  --pick-border: #dec85d;
  --pick-tag: #eadb71;
}

.draft-pick-card.pos-pk,
.draft-pick-card.pos-k {
  --pick-bg: #f3ead9;
  --pick-border: #d1b98b;
  --pick-tag: #dac492;
}

.draft-pick-card.empty {
  background: var(--surface-2);
  color: var(--muted);
}

.draft-pick-card.on-clock {
  border-color: var(--accent-3);
  background: rgba(45, 125, 70, 0.12);
  box-shadow: inset 0 0 0 1px rgba(45, 125, 70, 0.18);
}

.draft-pick-card.user-pick {
  border-color: #1f7a95;
  box-shadow: inset 0 0 0 2px rgba(23, 107, 135, 0.28);
}

.draft-team-header.user-team {
  border-width: 2px;
  background: color-mix(in srgb, var(--team-color) 22%, #ffffff);
}

.consensus-pick span:first-child {
  color: #344448;
}

.consensus-pick em {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.actual-draft-pick {
  gap: 3px;
}

.actual-draft-pick .market-delta {
  width: fit-content;
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

.sim-roster-picks strong {
  white-space: nowrap;
}

.draft-order-list {
  display: grid;
  gap: 8px;
}

.draft-order-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.draft-order-list.compact {
  gap: 6px;
}

.draft-order-list.compact .team-cell {
  gap: 8px;
}

.draft-order-list.compact .team-token {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.draft-order-list.compact .team-name {
  font-size: 13px;
}

.draft-order-list.compact .team-sub {
  font-size: 11px;
}

.mock-command-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(300px, 0.75fr) minmax(360px, 1.05fr);
  gap: 12px;
  align-items: stretch;
}

.mock-control-panel,
.mock-status-panel,
.mock-order-panel {
  box-shadow: none;
}

.mock-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 12px;
  align-items: end;
}

.mock-team-field {
  min-width: 0;
}

.field-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mock-controls select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.mock-action-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
}

.mock-action-group.secondary {
  grid-template-columns: repeat(2, minmax(90px, 1fr));
}

.action-button.secondary {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mock-clock-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.mock-clock-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mock-clock-card.user-clock {
  border-color: rgba(45, 125, 70, 0.35);
  background: rgba(45, 125, 70, 0.1);
}

.mock-clock-card.complete {
  border-color: rgba(184, 132, 25, 0.35);
  background: rgba(184, 132, 25, 0.1);
}

.mock-clock-card.complete strong {
  font-size: 18px;
}

.mock-clock-card.complete span {
  line-height: 1.35;
}

.mock-meta-row,
.mock-order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-meta-row {
  margin-top: 10px;
}

.mock-meta-row span,
.mock-order-strip span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.mock-order-strip span.active {
  border-color: rgba(23, 107, 135, 0.35);
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
}

.mock-board-grid .draft-pick-card {
  min-height: 68px;
  border-width: 2px;
}

.mock-draft-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(270px, 0.6fr) minmax(270px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.mock-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-player-search,
.mock-filter-row select {
  width: 100%;
  min-width: 0;
}

.mock-filter-row select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.mock-player-list {
  display: grid;
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mock-player-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px 76px;
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}

.mock-player-row:last-of-type {
  border-bottom: 0;
}

.mock-player-row:hover,
.mock-player-row:focus-visible {
  background: rgba(23, 107, 135, 0.08);
  outline: 0;
}

.mock-player-row.recommended {
  background: rgba(23, 107, 135, 0.045);
}

.mock-player-row:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mock-player-rank,
.mock-adp {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mock-player-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mock-player-main strong,
.mock-log-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.mock-player-main em,
.mock-log-list em {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.mock-roster-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.mock-roster-summary span {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.mock-roster-summary strong {
  color: var(--ink);
}

.mock-log-list {
  display: grid;
  gap: 6px;
}

.mock-log-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
}

.mock-log-list > div.user-pick {
  border-color: rgba(23, 107, 135, 0.38);
  background: rgba(23, 107, 135, 0.07);
}

.mock-log-list span {
  grid-row: span 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mock-log-list em {
  grid-column: 2;
}

.report-card-grid,
.profile-editor-grid,
.tendency-grid,
.rivalry-card-grid {
  display: grid;
  gap: 12px;
}

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

.profile-editor-grid,
.tendency-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.rivalry-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.report-card,
.profile-editor-card,
.tendency-card,
.rivalry-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.report-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
}

.report-card.user-team,
.rivalry-card:hover {
  border-color: rgba(23, 107, 135, 0.38);
  background: rgba(23, 107, 135, 0.055);
}

.report-grade {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(184, 132, 25, 0.45);
  border-radius: 999px;
  background: rgba(184, 132, 25, 0.14);
  color: #8a6114;
  font-size: 18px;
  font-weight: 950;
}

.report-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.report-score strong {
  font-size: 20px;
  font-weight: 950;
}

.report-score span,
.report-meta,
.report-notes,
.saved-mock-list span,
.rivalry-record,
.rivalry-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-explanation {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.report-bullets {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.report-bullets li::marker {
  color: var(--accent);
}

.report-notes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-notes span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 8px;
}

.saved-mock-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.saved-mock-card,
.saved-mock-list > div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
}

.saved-mock-card {
  gap: 8px;
}

.saved-mock-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.saved-mock-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.saved-mock-actions button:hover,
.saved-mock-actions button:focus-visible {
  border-color: rgba(23, 107, 135, 0.42);
  background: rgba(23, 107, 135, 0.08);
  outline: 0;
}

.saved-mock-pick-list {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-mock-pick-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.saved-mock-pick-list > div:last-child {
  border-bottom: 0;
}

.saved-mock-pick-list > div.user-pick {
  background: rgba(23, 107, 135, 0.07);
}

.saved-mock-pick-list span {
  grid-row: span 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.saved-mock-pick-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-mock-pick-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  border: 1px solid rgba(45, 125, 70, 0.38);
  border-radius: 8px;
  background: #edf8f1;
  color: #1f6b3a;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
}

.pick-announcement {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.pick-announcement div {
  display: grid;
  gap: 2px;
}

.pick-announcement span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pick-announcement strong {
  font-size: 18px;
  font-weight: 950;
}

.pick-announcement p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pick-announcement em {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.pick-announcement.steal,
.pick-announcement.good {
  border-color: rgba(45, 125, 70, 0.5);
  background: rgba(45, 125, 70, 0.08);
}

.pick-announcement.steal span,
.pick-announcement.good span {
  color: #1f6b3a;
}

.pick-announcement.reach {
  border-color: rgba(184, 132, 25, 0.5);
  background: rgba(184, 132, 25, 0.1);
}

.pick-announcement.reach span {
  color: #8a6114;
}

.pick-announcement.blunder {
  border-color: rgba(178, 58, 72, 0.68);
  background: rgba(178, 58, 72, 0.1);
}

.pick-announcement.blunder span {
  color: var(--accent-2);
  font-size: 14px;
}

/* Draft Room route: isolated layout over the mock draft engine for easy rollback. */
.app-shell.draft-room-active .main-panel {
  padding: 14px;
}

.app-shell.draft-room-active .topbar {
  display: none;
}

.draft-room-shell {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 28px);
}

.draft-room-header {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 160px minmax(220px, 320px) minmax(600px, 1.2fr);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.draft-room-header h2 {
  font-size: 26px;
}

.draft-room-clock {
  display: grid;
  min-height: 58px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px 10px;
}

.draft-room-clock.user-clock {
  border-color: rgba(45, 125, 70, 0.42);
  background: rgba(45, 125, 70, 0.12);
}

.draft-room-clock span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.draft-room-clock strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 950;
}

.draft-room-team {
  min-width: 0;
}

.draft-room-team select,
.draft-room-delay select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.draft-room-actions {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) repeat(6, minmax(72px, 1fr));
  gap: 8px;
  align-items: end;
}

.draft-room-delay {
  min-width: 0;
}

.draft-room-exit {
  justify-content: center;
  text-decoration: none;
}

.draft-room-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(340px, 380px);
  gap: 12px;
  align-items: start;
}

.draft-room-board,
.draft-room-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px;
}

.draft-room-board {
  padding-bottom: 6px;
}

.draft-room-board-grid {
  min-width: 980px;
  grid-template-columns: repeat(var(--team-count), minmax(76px, 1fr));
  gap: 3px;
}

.draft-room-board-grid .draft-team-header {
  min-height: 34px;
  padding: 5px;
}

.draft-room-board-grid .draft-pick-card {
  min-height: 58px;
  border-width: 2px;
  padding: 5px;
}

.draft-room-board-grid .draft-pick-card strong {
  min-height: 23px;
  font-size: 11px;
}

.draft-room-board-grid .draft-pick-card span,
.draft-room-board-grid .draft-pick-card em {
  font-size: 10px;
}

.draft-room-rail {
  display: grid;
  gap: 12px;
}

.draft-room-player-list {
  max-height: min(52vh, 560px);
}

.draft-room-player-list .mock-player-row {
  grid-template-columns: 28px minmax(0, 1fr) 42px;
}

.draft-room-roster-list,
.draft-room-log-list {
  max-height: 220px;
  overflow-y: auto;
}

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

.profile-current {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-current span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

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

.profile-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-fields select,
.profile-fields input[type="number"] {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-size: 13px;
  text-transform: none;
}

.profile-check {
  display: flex !important;
  min-height: 36px;
  align-items: center;
  gap: 8px !important;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 0 9px;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.rivalry-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.rivalry-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 950;
}

.rivalry-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.rivalry-score {
  display: grid;
  justify-items: end;
}

.rivalry-score strong {
  font-size: 20px;
}

.record-detail-link {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin-top: 6px;
  border: 1px solid rgba(23, 107, 135, 0.24);
  border-radius: 999px;
  background: rgba(23, 107, 135, 0.08);
  color: var(--accent);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.record-detail-link:hover,
.record-detail-link:focus-visible {
  border-color: rgba(23, 107, 135, 0.48);
  outline: 0;
}

.sim-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.sim-roster-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.sim-roster-picks {
  display: grid;
  gap: 5px;
}

.sim-roster-picks > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.sim-roster-picks > div.value-steal,
.draft-room-roster-list > div.value-steal {
  border-left: 4px solid #168a48;
  background: #eaf7ef;
  color: #123f25;
  padding-left: 6px;
}

.sim-roster-picks > div.value-reach,
.draft-room-roster-list > div.value-reach {
  border-left: 4px solid #be3f46;
  background: #fdecec;
  color: #5a161b;
  padding-left: 6px;
}

.franchise-card {
  align-content: start;
  min-height: 142px;
}

.team-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease;
}

.team-link:hover,
.team-link:focus-visible {
  transform: translateY(-1px);
}

.team-link:hover .team-name,
.team-link:focus-visible .team-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.record-tabs span {
  padding: 0 0 9px;
}

.record-tabs .active {
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
}

.record-book-section {
  margin-top: 22px;
}

.record-book-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.trophy-group {
  margin-top: 16px;
}

.trophy-group:first-of-type {
  margin-top: 0;
}

.trophy-group h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trophy-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.trophy-card:hover,
.trophy-card:focus-visible {
  border-color: rgba(23, 107, 135, 0.5);
  box-shadow: 0 12px 28px rgba(11, 31, 36, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.trophy-medal {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216, 177, 90, 0.55);
  border-radius: 999px;
  background: rgba(216, 177, 90, 0.18);
  color: #9a6b16;
  font-size: 17px;
}

.trophy-medal.large {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.trophy-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 850;
}

.trophy-credit {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(216, 177, 90, 0.45);
  border-radius: 999px;
  background: rgba(216, 177, 90, 0.13);
  color: #8a6114;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(9, 24, 28, 0.52);
  padding: 22px;
}

.trophy-modal {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 44px));
  gap: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(9, 24, 28, 0.28);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.trophy-modal-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 36px;
}

.trophy-modal-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.trophy-data-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px;
}

.trophy-data-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.trophy-data-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.compact-table {
  min-width: 0;
}

.favorite-player-name {
  font-weight: 800;
}

.champ-star {
  display: inline-flex;
  margin-left: 6px;
  color: #9a6b16;
  font-size: 13px;
}

.position-tag {
  display: inline-flex;
  min-width: 34px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 107, 135, 0.32);
  border-radius: 6px;
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.empty-note {
  color: var(--muted);
  font-size: 13px;
}

.method-list {
  display: grid;
  gap: 10px;
}

.method-list > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 12px;
}

.method-list strong {
  font-size: 13px;
}

.method-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.season-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.season-card:hover,
.season-card:focus-visible {
  border-color: rgba(23, 107, 135, 0.5);
  transform: translateY(-1px);
}

.season-year {
  font-size: 28px;
  font-weight: 900;
}

.season-title {
  font-size: 16px;
  font-weight: 850;
}

.season-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.timeline-years {
  color: var(--accent);
  font-weight: 850;
}

.filter-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.team-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: none;
  width: min(420px, calc(100vw - 36px));
  max-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px;
}

.team-picker-menu.open {
  display: grid;
  gap: 4px;
}

.team-picker-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.team-picker-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-picker-search {
  width: 100%;
  min-width: 0;
}

.team-picker-results {
  display: grid;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}

.team-picker-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.team-picker-option[hidden] {
  display: none;
}

.team-picker-option.active {
  background: rgba(23, 107, 135, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}

.team-picker-option:hover,
.team-picker-option:focus-visible {
  background: var(--surface-2);
  outline: 2px solid rgba(23, 107, 135, 0.22);
  outline-offset: -2px;
}

.team-picker-option span {
  grid-row: span 2;
  align-self: center;
  font-size: 12px;
  font-weight: 900;
}

.team-picker-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-picker-option em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-picker-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.week-grid {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.week-table {
  min-width: 980px;
}

.result-pill {
  display: inline-flex;
  min-width: 74px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 850;
}

.result-pill.win {
  background: #e7f4ec;
  color: #226139;
}

.result-pill.loss {
  background: #f8e8eb;
  color: #953140;
}

.result-pill.flag {
  outline: 2px solid #d8b15a;
}

.h2h-matrix td,
.h2h-matrix th {
  text-align: center;
}

.h2h-matrix {
  min-width: 1180px;
}

.h2h-matrix th:first-child,
.h2h-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.h2h-matrix th:first-child {
  z-index: 3;
}

.h2h-matrix .selected-h2h-axis,
.h2h-matrix tr.selected-h2h-axis td {
  background: rgba(23, 107, 135, 0.07);
}

.h2h-matrix tr.selected-h2h-axis td:first-child,
.h2h-matrix th.selected-h2h-axis {
  box-shadow: inset 0 0 0 1px rgba(23, 107, 135, 0.2);
}

.h2h-matrix td:first-child,
.h2h-matrix th:first-child {
  text-align: left;
}

.h2h-record {
  display: inline-flex;
  min-width: 58px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 850;
}

.h2h-record.positive {
  border-color: rgba(45, 125, 70, 0.55);
  background: rgba(45, 125, 70, 0.18);
  color: #1f6b3a;
}

.h2h-record.negative {
  border-color: rgba(178, 58, 72, 0.55);
  background: rgba(178, 58, 72, 0.16);
  color: #a72f3d;
}

.h2h-record.even {
  border-color: rgba(127, 79, 36, 0.5);
  background: rgba(216, 177, 90, 0.22);
  color: #7f4f24;
}

.h2h-record.empty {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.h2h-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.h2h-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.legend-dot.positive {
  background: #2d7d46;
}

.legend-dot.negative {
  background: #b23a48;
}

.legend-dot.even {
  background: #d8b15a;
}

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

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 5;
    gap: 14px;
    padding: 14px;
  }

  .sidebar-toggle {
    display: none;
  }

  .app-shell.sidebar-collapsed .sidebar {
    gap: 14px;
    padding: 14px;
  }

  .app-shell.sidebar-collapsed .brand-block {
    display: flex;
    justify-items: initial;
    gap: 12px;
  }

  .app-shell.sidebar-collapsed .brand-text {
    display: block;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-section {
    display: contents;
  }

  .nav-section-title {
    display: none;
  }

  .nav-list a {
    flex: 0 0 auto;
  }

  .app-shell.sidebar-collapsed .nav-list a {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 14px;
  }

  .app-shell.sidebar-collapsed .nav-list a::after {
    content: none;
  }

  .source-status {
    display: none;
  }

  .main-panel {
    padding: 18px;
  }

  .topbar,
  .content-grid,
  .dashboard-rankings-grid,
  .sim-top-grid,
  .mock-command-grid,
  .mock-draft-grid,
  .draft-room-header,
  .draft-room-layout,
  .outlook-hero,
  .profile-editor-grid,
  .tendency-grid,
  .rivalry-card-grid {
    grid-template-columns: 1fr;
  }

  .draft-room-actions {
    grid-template-columns: minmax(96px, 0.9fr) repeat(6, minmax(0, 1fr));
  }

  .draft-room-player-list {
    max-height: 420px;
  }

  .topbar {
    display: grid;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leader-metric-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .summary-grid,
  .season-card,
  .timeline-item,
  .mock-controls,
  .mock-filter-row,
  .draft-room-actions,
  .mock-player-row,
  .pick-announcement,
  .report-card,
  .rivalry-card,
  .outlook-score-row,
  .outlook-rank-card,
  .profile-fields {
    grid-template-columns: 1fr;
  }

  .report-score,
  .rivalry-score,
  .pick-announcement em {
    justify-items: start;
    justify-self: start;
  }

  .leader-metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-player-row {
    gap: 4px;
  }

  .mock-player-rank,
  .mock-adp {
    justify-self: start;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar select {
    min-width: 0;
    flex: 1;
  }
}

.lab-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 246, 243, 0.94)),
    var(--bg);
}

.draft-lab-page {
  display: grid;
  gap: 18px;
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.lab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lab-topbar h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 0;
}

.lab-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lab-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 107, 135, 0.09), transparent),
    var(--surface);
}

.lab-hero h2 {
  max-width: 760px;
  font-size: 30px;
}

.lab-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.lab-setup-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.2fr) minmax(340px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.lab-form-grid,
.lab-roster-grid {
  display: grid;
  gap: 10px;
}

.lab-form-grid {
  grid-template-columns: minmax(220px, 1fr) repeat(5, minmax(110px, 0.45fr));
}

.lab-roster-grid {
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  margin-top: 14px;
}

.lab-form-grid input,
.lab-form-grid select,
.lab-roster-grid input,
.lab-profile-card input,
.lab-profile-card select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 750;
}

.lab-derived-rounds,
.lab-adp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lab-derived-rounds strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.lab-adp-actions span {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.lab-preset-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(84px, auto)) minmax(220px, 1fr) repeat(3, minmax(94px, auto));
  gap: 8px;
  align-items: end;
  width: min(100%, 1180px);
}

.lab-preset-controls .field-label {
  min-width: 0;
}

.lab-preset-controls input,
.lab-preset-controls select {
  min-height: 36px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 750;
}

.lab-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  gap: 12px;
}

.lab-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.lab-profile-card > * {
  width: 100%;
}

.lab-profile-card-head,
.lab-bias-row,
.lab-slider-grid {
  display: grid;
  gap: 8px;
}

.lab-profile-card-head {
  order: 1;
  grid-template-columns: 42px minmax(220px, 1fr) 92px minmax(150px, 0.65fr);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.lab-bias-row {
  order: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-slider-grid {
  order: 3;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.lab-profile-number {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-weight: 950;
}

.lab-slider {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.lab-slider span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lab-slider strong {
  color: var(--ink);
  font-weight: 950;
}

.lab-slider input[type="range"] {
  min-height: 20px;
  width: 100%;
  padding: 0;
  accent-color: var(--accent);
}

.lab-room-header {
  grid-template-columns: minmax(220px, 1fr) 160px 120px minmax(440px, 0.9fr);
}

.lab-room-actions {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
}

.lab-room-layout {
  grid-template-columns: minmax(820px, 1fr) minmax(340px, 380px);
}

.lab-board-grid {
  min-width: 1120px;
}

.lab-board-grid .draft-pick-card {
  border-width: 2px;
}

.lab-complete-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(184, 132, 25, 0.32);
  background:
    linear-gradient(90deg, rgba(184, 132, 25, 0.12), transparent),
    var(--surface);
}

.lab-complete-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.pick-announcement.good,
.pick-announcement.fair {
  border-color: rgba(23, 107, 135, 0.26);
  background: rgba(23, 107, 135, 0.08);
}

.pick-announcement.reach {
  border-color: rgba(178, 58, 72, 0.32);
  background: rgba(178, 58, 72, 0.1);
}

.lab-run-alert {
  border-color: rgba(184, 132, 25, 0.36);
  background: rgba(184, 132, 25, 0.1);
}

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

.lab-recommendation-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(23, 107, 135, 0.28);
  border-radius: 8px;
  background: rgba(23, 107, 135, 0.08);
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.lab-recommendation-chip strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-recommendation-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.lab-player-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.lab-player-row.queued .mock-player-row {
  border-color: rgba(184, 132, 25, 0.55);
  background: rgba(184, 132, 25, 0.1);
}

.lab-player-row.recommended .mock-player-row {
  box-shadow: inset 0 0 0 2px rgba(23, 107, 135, 0.22);
}

.lab-queue-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 950;
  cursor: pointer;
}

.lab-queue-button:hover {
  border-color: rgba(184, 132, 25, 0.55);
  background: rgba(184, 132, 25, 0.12);
}

.lab-queue-list {
  display: grid;
  gap: 7px;
}

.lab-queue-row {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.lab-queue-row:disabled {
  cursor: default;
  opacity: 0.68;
}

.lab-queue-row strong {
  font-size: 13px;
  font-weight: 950;
}

.lab-queue-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lab-pick-steal,
.lab-pick-good {
  border-left: 4px solid #168a48;
  background: #eaf7ef;
  color: #123f25;
  padding-left: 6px;
}

.lab-pick-reach {
  border-left: 4px solid #be3f46;
  background: #fdecec;
  color: #5a161b;
  padding-left: 6px;
}

.lab-report-list {
  display: grid;
  gap: 7px;
}

.lab-report-list > div {
  display: grid;
  grid-template-columns: 48px 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
}

.lab-report-list > div.user-team {
  border-color: rgba(23, 107, 135, 0.42);
  background: rgba(23, 107, 135, 0.09);
}

.lab-report-list span {
  font-weight: 950;
}

.lab-report-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.lab-report-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.draft-review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(23, 107, 135, 0.1), transparent),
    var(--surface);
}

.draft-review-hero h2 {
  font-size: 34px;
}

.draft-review-hero p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.draft-review-grade {
  display: grid;
  min-width: 190px;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(184, 132, 25, 0.35);
  border-radius: 8px;
  background: rgba(184, 132, 25, 0.1);
  padding: 16px;
  text-align: center;
}

.draft-review-grade span,
.draft-review-grade em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.draft-review-grade strong {
  font-size: 54px;
  line-height: 1;
  font-weight: 950;
}

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

.draft-review-diagnosis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.draft-review-diagnosis > div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.draft-review-diagnosis strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.draft-review-diagnosis span {
  line-height: 1.35;
  font-weight: 750;
}

.draft-review-player {
  display: grid;
  gap: 2px;
}

.draft-review-player span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.draft-review-table td:last-child {
  min-width: 360px;
  line-height: 1.35;
}

.draft-recap-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(45, 125, 70, 0.1), transparent),
    var(--surface);
}

.draft-recap-hero h2 {
  font-size: 30px;
}

.draft-recap-hero p {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.draft-recap-score {
  display: grid;
  min-width: 170px;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(45, 125, 70, 0.35);
  border-radius: 8px;
  background: rgba(45, 125, 70, 0.1);
  padding: 16px;
  text-align: center;
}

.draft-recap-score strong {
  color: var(--accent-3);
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

.draft-recap-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.draft-recap-table td {
  vertical-align: middle;
}

.draft-recap-table .team-cell {
  min-width: 230px;
}

.recap-result {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
}

.recap-result.exact {
  border-color: rgba(45, 125, 70, 0.42);
  background: rgba(45, 125, 70, 0.12);
  color: var(--accent-3);
}

.recap-result.alternate {
  border-color: rgba(184, 132, 25, 0.45);
  background: rgba(184, 132, 25, 0.12);
  color: #8a6114;
}

.recap-result.position {
  border-color: rgba(23, 107, 135, 0.35);
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
}

.recap-result.miss {
  border-color: rgba(178, 58, 72, 0.35);
  background: rgba(178, 58, 72, 0.1);
  color: var(--accent-2);
}

.market-delta {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.market-delta.neutral {
  color: var(--muted);
}

.market-delta.value {
  border-color: rgba(45, 125, 70, 0.38);
  background: rgba(45, 125, 70, 0.1);
  color: var(--accent-3);
}

.market-delta.reach {
  border-color: rgba(178, 58, 72, 0.35);
  background: rgba(178, 58, 72, 0.1);
  color: var(--accent-2);
}

.recap-alt-list {
  min-width: 220px;
}

.recap-alt-list span {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 3px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.recap-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recap-mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recap-mini-list + .recap-mini-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.recap-mini-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
}

.recap-mini-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recap-mini-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.recap-mini-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.reach-list li {
  background: rgba(178, 58, 72, 0.06);
}

.team-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}

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

.team-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-market-head .team-cell {
  min-width: 0;
}

.team-market-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.team-market-lists > div {
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px;
}

.team-market-lists > div > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-market-lists span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.team-market-lists span strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.team-market-lists span em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.leprechaun-board-panel .draft-board-grid {
  grid-template-columns: repeat(var(--team-count), minmax(104px, 1fr));
}

.leprechaun-pick {
  min-height: 70px;
}

.leprechaun-token {
  flex: 0 0 auto;
}

.leprechaun-team-cell .team-name {
  max-width: 280px;
}

.wnba-record-card {
  align-content: start;
}

.wnba-record-card > strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.wnba-record-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.wnba-season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

.wnba-season-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.wnba-season-card h3 {
  margin: 0;
  font-size: 18px;
}

.leprechaun-standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.leprechaun-standing-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.leprechaun-standing-card.champion {
  border-color: rgba(184, 132, 25, 0.5);
  background: linear-gradient(180deg, rgba(255, 246, 220, 0.72), #ffffff 70%);
}

.leprechaun-standing-card .team-market-head,
.leprechaun-standing-card .leprechaun-card-stats,
.leprechaun-standing-card .team-sub {
  position: relative;
  z-index: 1;
}

.leprechaun-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.leprechaun-card-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.leprechaun-card-stats strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.leprechaun-bracket-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1fr;
  gap: 14px;
}

.leprechaun-bracket-round {
  display: grid;
  align-content: start;
  gap: 10px;
}

.leprechaun-bracket-round h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-bracket-card {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(28, 37, 38, 0.05);
  color: var(--ink);
  cursor: default;
  font: inherit;
  text-align: left;
}

.leprechaun-bracket-card.empty {
  min-height: 86px;
  place-content: center;
  color: var(--muted);
}

.leprechaun-bracket-card.clickable {
  cursor: pointer;
}

.leprechaun-bracket-card.clickable:hover,
.leprechaun-bracket-card.clickable:focus-visible {
  border-color: rgba(23, 107, 135, 0.5);
  box-shadow: 0 12px 28px rgba(23, 107, 135, 0.12);
  outline: none;
}

.leprechaun-bracket-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-bracket-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
}

.leprechaun-bracket-team.winner {
  border-color: rgba(45, 125, 70, 0.35);
  background: rgba(45, 125, 70, 0.09);
}

.leprechaun-bracket-team span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.leprechaun-bracket-team strong {
  font-size: 13px;
  font-weight: 950;
}

.leprechaun-bracket-team em {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.leprechaun-bracket-team b {
  font-size: 15px;
  font-weight: 950;
}

.leprechaun-card-action {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-box-modal {
  width: min(1040px, 100%);
}

.leprechaun-modal-hero {
  grid-template-columns: minmax(0, 1fr);
}

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

.leprechaun-box-summary div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.leprechaun-box-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-box-summary strong {
  font-size: 22px;
  font-weight: 950;
}

.leprechaun-lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.leprechaun-lineup-panel {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
}

.leprechaun-lineup-panel.winner .leprechaun-lineup-head {
  border-color: rgba(45, 125, 70, 0.35);
  background: rgba(45, 125, 70, 0.09);
}

.leprechaun-lineup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  align-self: start;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.leprechaun-lineup-head div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.leprechaun-lineup-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-lineup-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
}

.leprechaun-lineup-head b {
  font-size: 20px;
  font-weight: 950;
}

.leprechaun-lineup-table th,
.leprechaun-lineup-table td {
  padding: 7px 8px;
}

.leprechaun-lineup-table .bench-row {
  color: var(--muted);
}

.lineup-divider {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

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

.leprechaun-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.leprechaun-metric-grid > div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
}

.leprechaun-metric-grid span,
.leprechaun-top-picks > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leprechaun-metric-grid strong {
  font-size: 15px;
  font-weight: 950;
}

.leprechaun-position-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.leprechaun-position-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.leprechaun-position-row strong {
  color: var(--ink);
}

.leprechaun-top-picks {
  display: grid;
  gap: 6px;
}

.leprechaun-top-picks span {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 13px;
  font-weight: 850;
}

.leprechaun-top-picks em {
  color: var(--muted);
  font-style: normal;
  font-weight: 950;
}

@media (max-width: 980px) {
  .lab-setup-grid,
  .lab-form-grid,
  .lab-preset-controls,
  .lab-profile-grid,
  .lab-room-header,
  .lab-room-layout,
  .draft-review-grid,
  .draft-review-diagnosis,
  .recap-highlight-grid,
  .team-market-lists,
  .leprechaun-metric-grid,
  .leprechaun-bracket-grid,
  .leprechaun-lineup-grid,
  .leprechaun-box-summary {
    grid-template-columns: 1fr;
  }

  .lab-roster-grid {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .lab-slider-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .lab-profile-card-head {
    grid-template-columns: 42px minmax(220px, 1fr) 92px minmax(150px, 0.65fr);
  }

  .lab-bias-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-room-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .draft-lab-page {
    padding: 14px;
  }

  .lab-topbar,
  .lab-hero,
  .draft-review-hero,
  .draft-recap-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .lab-roster-grid,
  .lab-profile-card,
  .lab-profile-card-head,
  .lab-bias-row,
  .lab-slider-grid,
  .lab-preset-controls,
  .lab-room-actions,
  .lab-report-list > div {
    grid-template-columns: 1fr;
  }
}
