:root {
  color-scheme: light;
  --bg: #0b241d;
  --surface: rgba(255, 252, 241, 0.95);
  --surface-2: #fff8e8;
  --ink: #151813;
  --muted: #675f4c;
  --line: #d8c392;
  --accent: #123f34;
  --accent-2: #d2aa4f;
  --field: #0f3a30;
  --field-dark: #071d18;
  --logo-gold: #f3d071;
  --logo-cream: #fff1bd;
  --logo-shadow: #3b2115;
  --leather: #8a4f24;
  --good: #1c7a48;
  --warn: #a13f2f;
  --shadow: 0 24px 70px rgba(5, 17, 14, 0.25);
  --shadow-soft: 0 8px 24px rgba(5, 17, 14, 0.14);
  --football-cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='rotate(35 22 22)'%3E%3Cpath d='M6 22C10 11 34 11 38 22C34 33 10 33 6 22Z' fill='%238a4f24' stroke='%233b2115' stroke-width='1.8'/%3E%3Cpath d='M9 22C14 17 30 17 35 22C30 27 14 27 9 22Z' fill='%23a9632d' opacity='.35'/%3E%3Cpath d='M15 22H29' stroke='%23fff1bd' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M18 18v8M21 18v8M24 18v8M27 18v8' stroke='%23fff1bd' stroke-width='1.7' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E")
      9 13,
    auto;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--field-dark);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 241, 189, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(4, 17, 14, 0.98) 0 6%, transparent 6% 94%, rgba(4, 17, 14, 0.98) 94%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 8.8%, rgba(0, 0, 0, 0.06) 8.8% 17.6%),
    linear-gradient(135deg, var(--field-dark), var(--field) 48%, #143229 72%, var(--field-dark));
  background-attachment: fixed;
  color: var(--ink);
  cursor: var(--football-cursor);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.field-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.field-overlay::before {
  content: "";
  position: absolute;
  inset: 0 6%;
  border-left: 3px solid rgba(255, 255, 255, 0.54);
  border-right: 3px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(90deg, transparent 0 49.86%, rgba(255, 241, 189, 0.46) 49.86% 50.14%, transparent 50.14%),
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(10% - 1px),
      rgba(255, 255, 255, 0.34) calc(10% - 1px) calc(10% + 1px),
      transparent calc(10% + 1px) 10%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(2% - 0.5px),
      rgba(255, 255, 255, 0.1) calc(2% - 0.5px) calc(2% + 0.5px),
      transparent calc(2% + 0.5px) 2%
    );
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    inset 0 0 120px rgba(0, 0, 0, 0.22);
  opacity: 0.86;
}

.field-overlay::after {
  content: "";
  position: absolute;
  inset: 0 6%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 14px, transparent 14px 2%) 0 19% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 14px, transparent 14px 2%) 0 35% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 14px, transparent 14px 2%) 0 65% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 14px, transparent 14px 2%) 0 81% / 100% 2px no-repeat;
  opacity: 0.48;
}

.field-endzone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 5%;
  background: linear-gradient(180deg, rgba(138, 79, 36, 0.34), rgba(7, 29, 24, 0.6)), rgba(7, 29, 24, 0.72);
  color: rgba(255, 241, 189, 0.055);
  font-size: clamp(24px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 3px 0 rgba(4, 17, 14, 0.35);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.field-endzone-left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(180deg);
}

.field-endzone-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.yard-number {
  position: absolute;
  z-index: 1;
  left: var(--yard-left);
  color: rgba(255, 241, 189, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.7vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(4, 17, 14, 0.28);
  transform: translateX(-50%);
  user-select: none;
}

.yard-top {
  top: 32%;
}

.yard-bottom {
  bottom: 10%;
  transform: translateX(-50%);
}

.yard-10 {
  --yard-left: 14.8%;
}

.yard-20 {
  --yard-left: 23.6%;
}

.yard-30 {
  --yard-left: 32.4%;
}

.yard-40 {
  --yard-left: 41.2%;
}

.yard-50 {
  --yard-left: 50%;
}

.yard-40r {
  --yard-left: 58.8%;
}

.yard-30r {
  --yard-left: 67.6%;
}

.yard-20r {
  --yard-left: 76.4%;
}

.yard-10r {
  --yard-left: 85.2%;
}

a {
  color: inherit;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px 24px;
  border-bottom: 1px solid rgba(243, 208, 113, 0.38);
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 241, 189, 0.14) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(90deg, rgba(255, 241, 189, 0.12) 0 2px, transparent 2px 96px),
    linear-gradient(135deg, rgba(7, 29, 24, 0.96), rgba(18, 63, 52, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(5, 17, 14, 0.22);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-lockup:focus-visible {
  outline: 2px solid rgba(255, 232, 163, 0.82);
  outline-offset: 6px;
  border-radius: 8px;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-lockup img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 3px solid rgba(243, 208, 113, 0.78);
  border-radius: 50%;
  background: var(--logo-cream);
  box-shadow:
    0 16px 34px rgba(5, 17, 14, 0.34),
    0 0 0 6px rgba(255, 241, 189, 0.09);
}

.brand-lockup small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 241, 189, 0.76);
  font-weight: 800;
}

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

.brand-lockup .eyebrow {
  color: var(--logo-gold);
  text-shadow: 0 1px 0 var(--logo-shadow);
}

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

h1 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--logo-gold);
  text-shadow:
    0 2px 0 var(--logo-shadow),
    0 5px 18px rgba(0, 0, 0, 0.35);
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
}

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

.draft-card {
  min-width: 280px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 208, 113, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 241, 189, 0.16), rgba(8, 29, 24, 0.72)), rgba(7, 29, 24, 0.78);
  color: var(--logo-cream);
  box-shadow: 0 18px 42px rgba(5, 17, 14, 0.32);
}

.account-card {
  display: grid;
  align-content: center;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 208, 113, 0.34);
  border-radius: 8px;
  background: rgba(7, 29, 24, 0.56);
  color: var(--logo-cream);
  box-shadow: 0 18px 42px rgba(5, 17, 14, 0.22);
}

.league-switcher {
  display: grid;
  align-content: center;
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 208, 113, 0.38);
  border-radius: 8px;
  background: rgba(7, 29, 24, 0.5);
  color: var(--logo-cream);
  box-shadow: 0 18px 42px rgba(5, 17, 14, 0.22);
}

.league-switcher span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 241, 189, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-switcher strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--logo-gold);
  font-size: 15px;
}

.league-switcher select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 241, 189, 0.5);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--accent);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.league-switcher-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 36px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.league-switcher-actions small {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 241, 189, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-switcher-actions button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 1px solid rgba(255, 241, 189, 0.58);
  border-radius: 8px;
  background: var(--logo-gold);
  color: var(--field-dark);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.league-switcher-actions .remove-league-action {
  width: 32px;
  background: rgba(255, 248, 232, 0.08);
  color: var(--logo-gold);
  font-size: 19px;
}

.league-switcher-actions .remove-league-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.league-switcher.needs-setup .league-switcher-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.league-switcher.needs-setup .remove-league-action {
  display: none;
}

.league-switcher.needs-setup .league-switcher-actions button {
  width: auto;
  min-width: 74px;
  padding: 0 12px;
  font-size: 12px;
  text-transform: uppercase;
}

.league-switcher-actions button:hover {
  filter: brightness(1.05);
}

.add-league-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 17, 14, 0.72);
}

.add-league-panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(243, 208, 113, 0.36);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(4, 17, 14, 0.42);
}

.add-league-panel h3 {
  margin: 4px 0 10px;
  color: var(--accent);
  font-size: 22px;
}

.add-league-panel p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.add-league-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: rgba(18, 63, 52, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.add-league-summary {
  display: grid;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: rgba(18, 63, 52, 0.06);
}

.add-league-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.add-league-summary strong {
  color: var(--accent);
  font-size: 15px;
}

.add-league-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.add-league-actions button {
  min-height: 40px;
}

.account-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 241, 189, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-card strong {
  display: block;
  margin: 4px 0 10px;
  color: var(--logo-gold);
}

.account-card button {
  min-height: 34px;
  border-color: rgba(255, 241, 189, 0.5);
  background: rgba(255, 241, 189, 0.1);
  color: var(--logo-gold);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.account-card.signed-in button {
  border-color: rgba(255, 241, 189, 0.28);
  color: rgba(255, 241, 189, 0.88);
}

.account-card.signed-out {
  border-color: rgba(243, 208, 113, 0.58);
}

.account-card button:disabled {
  cursor: default;
  opacity: 0.64;
}

.draft-card span,
.draft-card small,
.metric span,
.metric small,
.command span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.draft-card span,
.draft-card small {
  color: rgba(255, 241, 189, 0.74);
}

.draft-card strong {
  color: var(--logo-gold);
}

.draft-card strong,
.metric strong {
  display: block;
  margin: 4px 0;
}

.subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 1px solid rgba(255, 241, 189, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--logo-gold), #b88735), var(--accent-2);
  color: #27170f;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(59, 33, 21, 0.18);
}

.inline-subscribe {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 8px;
  border: 1px solid rgba(184, 135, 53, 0.32);
  border-radius: 8px;
  background: #fff8e9;
  color: #7c591d;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.demo-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(216, 195, 146, 0.7);
  background: #fff8e8;
  color: #2f2412;
  font-size: 14px;
  font-weight: 750;
}

.demo-banner strong {
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
}

.demo-banner span {
  min-width: 0;
}

.demo-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--logo-cream);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 36px 36px;
  width: 100%;
  max-width: 100vw;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

button,
.link-grid a {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: var(--football-cursor);
}

input,
textarea {
  cursor: text;
}

select,
label,
a {
  cursor: var(--football-cursor);
}

.nav-item {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border-color: rgba(243, 208, 113, 0.28);
  background: linear-gradient(180deg, rgba(22, 63, 52, 0.96), rgba(8, 29, 24, 0.98)), var(--field-dark);
  color: var(--logo-gold);
  text-align: left;
  text-shadow: 0 1px 0 var(--logo-shadow);
  box-shadow: 0 10px 24px rgba(5, 17, 14, 0.2);
}

.nav-item.active,
.tab.active {
  border-color: rgba(243, 208, 113, 0.82);
  background: linear-gradient(180deg, rgba(79, 42, 24, 0.84), rgba(18, 63, 52, 0.96)), var(--field);
  color: var(--logo-cream);
  box-shadow:
    0 12px 30px rgba(5, 17, 14, 0.26),
    inset 0 0 0 1px rgba(255, 241, 189, 0.14);
}

.content {
  min-width: 0;
}

.panel,
.box,
.live-panel,
.web-board,
.table-wrap,
.analysis-panel,
.board-tools,
.tabs,
.position-toggles {
  min-width: 0;
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.player-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid rgba(216, 195, 146, 0.78);
  border-radius: 8px;
  background: #fffdf6;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(5, 17, 14, 0.13);
}

.player-suggestions[hidden] {
  display: none;
}

.player-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-color: rgba(216, 195, 146, 0.72);
  background: #fffaf0;
  padding: 9px 10px;
  text-align: left;
}

.player-suggestion:hover,
.player-suggestion.active {
  border-color: rgba(18, 63, 52, 0.42);
  background: #eef7f2;
}

.player-suggestion strong,
.player-suggestion small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-suggestion strong {
  color: var(--ink);
  font-size: 14px;
}

.player-suggestion small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.player-suggestion em {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--logo-cream);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.player-suggestion-empty {
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.tier-board-tools > .player-suggestions {
  grid-column: 1 / -1;
}

.panel {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(216, 195, 146, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.97), rgba(255, 248, 232, 0.96)), var(--surface);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--field-dark), var(--logo-gold), var(--leather), var(--field-dark));
}

.panel.active {
  display: block;
}

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

.command-hero {
  display: grid;
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(243, 208, 113, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 241, 189, 0.18) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(90deg, rgba(255, 241, 189, 0.13) 0 2px, transparent 2px 82px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.1) 18px 20px, transparent 20px 82px),
    linear-gradient(135deg, rgba(18, 63, 52, 0.96), rgba(7, 29, 24, 0.97)), var(--field);
  color: var(--logo-cream);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(14, 31, 25, 0.22);
}

.command-hero::before {
  content: "";
  position: absolute;
  inset: 22px 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 13px, transparent 13px 70px) 0 28% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 13px, transparent 13px 70px) 0 72% / 100% 2px no-repeat;
  opacity: 0.78;
}

.command-hero::after {
  content: "50";
  position: absolute;
  left: 57%;
  top: 57%;
  color: rgba(255, 241, 189, 0.11);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(92px, 15vw, 190px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 0 rgba(4, 17, 14, 0.22);
  transform: translate(-50%, -50%);
}

.command-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.command-hero .eyebrow {
  color: var(--logo-gold);
}

.command-hero h2 {
  max-width: 100%;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.04;
}

.command-hero p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 241, 189, 0.8);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.secondary-action {
  min-height: 44px;
  border-color: rgba(243, 208, 113, 0.42);
  background: rgba(255, 241, 189, 0.1);
  color: var(--logo-gold);
  padding: 0 16px;
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e3f3e9;
  color: var(--good);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric,
.box,
.result,
.command,
.plan,
.strategy-card {
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 248, 232, 0.95)), var(--surface-2);
}

.metric {
  padding: 14px;
}

.first-run-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.first-run-guide article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid rgba(216, 202, 168, 0.78);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px;
}

.first-run-guide span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e5f2ee;
  color: var(--accent);
  font-weight: 950;
  grid-row: span 2;
}

.first-run-guide strong {
  color: var(--ink);
}

.first-run-guide small {
  color: var(--muted);
  line-height: 1.35;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.league-profile-strip,
.league-room-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: #eef7f2;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.league-profile-strip strong,
.league-room-note strong {
  flex: 0 0 auto;
  color: var(--accent);
}

.league-profile-strip span,
.league-room-note span {
  min-width: 0;
}

.draft-league-override {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(100px, 0.5fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.draft-league-override.active {
  border-color: rgba(184, 135, 53, 0.42);
  background: #fff4d8;
}

.draft-league-override label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.draft-league-override input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.draft-league-override button {
  min-height: 42px;
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 8px;
  background: #123f34;
  color: #fff8e8;
  padding: 0 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.draft-league-override button:last-child {
  background: #fffdf8;
  color: var(--accent);
}

.draft-paste-sync {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  border: 1px solid rgba(184, 135, 53, 0.28);
  border-radius: 8px;
  background: #fff8e6;
  padding: 12px;
}

.draft-paste-sync label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.draft-paste-sync textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  text-transform: none;
}

.draft-paste-sync button {
  min-height: 44px;
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 8px;
  background: #123f34;
  color: #fff8e8;
  padding: 0 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.draft-bridge-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: #eff9f5;
  padding: 10px 12px;
}

.draft-bridge-sync button,
.draft-bridge-sync a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 8px;
  background: #123f34;
  color: #fff8e8;
  padding: 0 12px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.draft-bridge-sync a {
  background: #fffdf8;
  color: var(--accent);
}

.draft-bridge-sync a[data-installed="true"] {
  border-color: rgba(45, 126, 87, 0.28);
  background: #e9f7ef;
  color: #215f42;
}

.draft-bridge-sync .draft-bridge-emergency {
  background: transparent;
  color: var(--muted);
}

.draft-bridge-sync button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.draft-bridge-sync span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

#live.sos-panel > :not(.panel-head):not(.sos-command) {
  display: none !important;
}

.sos-status-pill {
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 248, 232, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(9, 28, 45, 0.94), rgba(24, 44, 56, 0.9));
  color: #fff8e8;
  padding: 0 14px;
  font-size: 13px;
}

.sos-command {
  display: grid;
  gap: 14px;
}

.sos-toolbar {
  display: grid;
  grid-template-columns: minmax(112px, 0.5fr) minmax(132px, 0.55fr) minmax(220px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(255, 248, 232, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(7, 25, 40, 0.98), rgba(20, 44, 54, 0.92));
  padding: 12px;
}

.sos-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.sos-toolbar select,
.sos-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 8px;
  background: rgba(3, 13, 24, 0.72);
  color: #fff8e8;
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.sos-week-toggles {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 6px;
}

.sos-week-toggles button,
.sos-table th button {
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 8px;
  background: rgba(8, 24, 38, 0.86);
  color: #fff8e8;
  font-weight: 950;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.sos-week-toggles button {
  min-height: 42px;
}

.sos-week-toggles button.active {
  border-color: rgba(226, 158, 60, 0.68);
  background: #c98128;
  color: #fff8e8;
}

.sos-score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sos-score-strip article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255, 248, 232, 0.1);
  border-radius: 8px;
  background: linear-gradient(145deg, #081a2c, #132d38);
  color: #fff8e8;
  padding: 14px;
}

.sos-score-strip span,
.sos-score-strip small {
  color: rgba(255, 248, 232, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sos-score-strip strong {
  overflow: hidden;
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sos-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sos-insight-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255, 248, 232, 0.1);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(5, 18, 31, 0.82);
  padding: 12px 13px;
}

.sos-insight-card span {
  color: rgba(255, 248, 232, 0.62);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.sos-insight-card strong {
  overflow: hidden;
  color: #fff8e8;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sos-insight-card small {
  color: rgba(255, 248, 232, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.sos-insight-target {
  border-left-color: #46b276;
}

.sos-insight-stream {
  border-left-color: #d6b84d;
}

.sos-insight-fade {
  border-left-color: #d95b48;
}

.sos-insight-neutral {
  border-left-color: rgba(255, 248, 232, 0.32);
}

.sos-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sos-legend .tier-elite {
  --sos-heat-bg: #2f9753;
  --sos-heat-border: rgba(47, 151, 83, 0.72);
  --sos-text: #fff8e8;
}

.sos-legend .tier-easy {
  --sos-heat-bg: #77bf48;
  --sos-heat-border: rgba(119, 191, 72, 0.72);
  --sos-text: #102014;
}

.sos-legend .tier-neutral {
  --sos-heat-bg: #dfe834;
  --sos-heat-border: rgba(226, 232, 52, 0.72);
  --sos-text: #1b1208;
}

.sos-legend .tier-hard {
  --sos-heat-bg: #f08f23;
  --sos-heat-border: rgba(240, 143, 35, 0.72);
  --sos-text: #1b1208;
}

.sos-legend .tier-brutal {
  --sos-heat-bg: #d83e3d;
  --sos-heat-border: rgba(216, 62, 61, 0.72);
  --sos-text: #fff8e8;
}

.sos-table-shell {
  overflow: auto;
  border: 1px solid rgba(255, 248, 232, 0.1);
  border-radius: 8px;
  background: #071523;
  box-shadow: 0 18px 46px rgba(0, 14, 24, 0.22);
}

.sos-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.sos-table th,
.sos-table td {
  border-bottom: 1px solid rgba(255, 248, 232, 0.07);
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
}

.sos-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0c1d2d;
  color: rgba(255, 248, 232, 0.78);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sos-table th button {
  min-height: 30px;
  padding: 0 8px;
}

.sos-table td:first-child {
  min-width: 40px;
  color: rgba(255, 248, 232, 0.64);
  text-align: center;
}

.sos-table td:nth-child(2) {
  min-width: 190px;
  color: #fff8e8;
}

.sos-table td strong,
.sos-table td small {
  display: block;
}

.sos-table td small {
  color: rgba(255, 248, 232, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.sos-table td {
  color: rgba(255, 248, 232, 0.82);
  font-weight: 850;
}

.sos-row-number {
  font-variant-numeric: tabular-nums;
}

.sos-overall-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 30px;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sos-overall-easy {
  border-color: rgba(47, 151, 83, 0.48);
  background: rgba(47, 151, 83, 0.84);
  color: #fff8e8;
}

.sos-overall-tough {
  border-color: rgba(240, 143, 35, 0.48);
  background: rgba(240, 143, 35, 0.78);
  color: #181607;
}

.sos-playoff-week {
  background: rgba(117, 27, 34, 0.16);
}

.sos-table th.sos-playoff-week {
  border-top: 2px solid rgba(216, 62, 61, 0.82);
}

.sos-table th.sos-playoff-start,
.sos-table td.sos-playoff-start {
  border-left: 2px solid rgba(216, 62, 61, 0.82);
}

.sos-table th.sos-playoff-end,
.sos-table td.sos-playoff-end {
  border-right: 2px solid rgba(216, 62, 61, 0.82);
}

.sos-mini-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 6px;
  align-items: end;
  gap: 3px;
  width: max-content;
  min-width: 54px;
  height: 42px;
}

.sos-mini-bars span {
  display: block;
  width: 6px;
  height: var(--sos-bar-h, 16px);
  min-height: 7px;
  border-radius: 999px;
  background: var(--sos-bar-bg, #657384);
  box-shadow: 0 0 12px rgba(255, 248, 232, 0.08);
}

.sos-mini-bars span.bye {
  height: 7px;
  background: rgba(255, 248, 232, 0.18);
  box-shadow: none;
}

.sos-call {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.sos-call-target {
  border-color: rgba(70, 178, 118, 0.42);
  background: rgba(70, 178, 118, 0.16);
  color: #9ff0bf;
}

.sos-call-stream {
  border-color: rgba(214, 184, 77, 0.44);
  background: rgba(214, 184, 77, 0.16);
  color: #ffe38a;
}

.sos-call-fade {
  border-color: rgba(217, 91, 72, 0.46);
  background: rgba(217, 91, 72, 0.15);
  color: #ffb2a6;
}

.sos-call-neutral {
  border-color: rgba(255, 248, 232, 0.13);
  background: rgba(255, 248, 232, 0.06);
  color: rgba(255, 248, 232, 0.74);
}

.sos-cell {
  --sos-heat-bg: #253d52;
  --sos-heat-border: rgba(255, 248, 232, 0.16);
  --sos-heat-glow: rgba(198, 129, 40, 0.22);
  --sos-text: #fff8e8;
  --sos-glow-size: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid var(--sos-heat-border);
  background: var(--sos-heat-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--sos-text);
  font-weight: 950;
  line-height: 1;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease,
    transform 140ms ease;
  isolation: isolate;
}

.sos-cell:hover,
.sos-cell:focus-visible {
  z-index: 5;
  border-color: rgba(255, 248, 232, 0.58);
  box-shadow:
    0 0 var(--sos-glow-size) var(--sos-heat-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: saturate(1.08) brightness(1.06);
  transform: translateY(-1px);
}

.sos-cell[data-tooltip]:hover::after,
.sos-cell[data-tooltip]:focus-visible::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: 260px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  color: #fff8e8;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
  padding: 10px 11px;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%);
  white-space: pre-line;
  pointer-events: none;
}

.sos-cell[data-tooltip]:hover::before,
.sos-cell[data-tooltip]:focus-visible::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 21;
  width: 10px;
  height: 10px;
  background: rgba(3, 12, 22, 0.98);
  border-right: 1px solid rgba(255, 248, 232, 0.16);
  border-bottom: 1px solid rgba(255, 248, 232, 0.16);
  content: "";
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.sos-cell.tier-elite {
  background: var(--sos-heat-bg);
}

.sos-cell.tier-easy {
  background: var(--sos-heat-bg);
}

.sos-cell.tier-neutral {
  background: var(--sos-heat-bg);
}

.sos-cell.tier-hard {
  background: var(--sos-heat-bg);
}

.sos-cell.tier-brutal {
  background: var(--sos-heat-bg);
  color: var(--sos-text);
}

.sos-cell.tier-bye {
  border-color: rgba(255, 248, 232, 0.08);
  background: #172230;
  color: rgba(255, 248, 232, 0.46);
  box-shadow: none;
}

@media (max-width: 900px) {
  .sos-toolbar,
  .sos-insights,
  .sos-score-strip {
    grid-template-columns: 1fr;
  }

  .sos-week-toggles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.league-health-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: #fffdf6;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.league-health-panel[data-state="good"] {
  border-color: rgba(45, 126, 87, 0.26);
}

.league-health-panel[data-state="warn"] {
  border-color: rgba(184, 135, 53, 0.35);
}

.league-health-panel[data-state="danger"] {
  border-color: rgba(156, 57, 43, 0.32);
}

.league-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.league-health-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.league-health-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: #e5f2ee;
  color: var(--accent);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.league-health-grid article {
  min-width: 0;
  border: 1px solid rgba(216, 195, 146, 0.68);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.league-health-grid article.good {
  border-color: rgba(45, 126, 87, 0.25);
  background: #f0f8f4;
}

.league-health-grid article.warn {
  border-color: rgba(184, 135, 53, 0.3);
  background: #fff8e8;
}

.league-health-grid article.danger {
  border-color: rgba(156, 57, 43, 0.3);
  background: #fff1ed;
}

.league-health-grid span,
.league-health-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.league-health-grid span {
  text-transform: uppercase;
}

.league-health-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.recommendation-proof {
  border-top: 1px solid rgba(18, 63, 52, 0.1);
  color: #355d52;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.command-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 195, 146, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 248, 232, 0.96)), var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.command-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--field), var(--logo-gold), var(--leather));
}

.command-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-tile strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.command-tile small {
  color: var(--muted);
}

.command-tile-premium {
  border-color: rgba(42, 111, 121, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 29, 24, 0.98), rgba(18, 63, 52, 0.94) 58%, rgba(42, 111, 121, 0.88)), var(--field);
  color: var(--logo-cream);
}

.command-tile-premium::before {
  background: linear-gradient(var(--logo-gold), #2a6f79);
}

.command-tile-premium span,
.command-tile-premium small {
  color: rgba(255, 241, 189, 0.78);
}

.command-tile-premium strong {
  color: var(--logo-gold);
}

.alpha-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.alpha-strip article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefb, #f6f1e7), var(--panel-bg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.alpha-strip article:first-child {
  border-color: rgba(243, 208, 113, 0.34);
  background:
    linear-gradient(135deg, rgba(7, 29, 24, 0.98), rgba(18, 63, 52, 0.94) 62%, rgba(42, 111, 121, 0.86)), var(--field);
  color: var(--logo-cream);
}

.alpha-strip article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold), #2a6f79);
}

.alpha-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.alpha-strip article:first-child span,
.alpha-strip article:first-child small {
  color: rgba(255, 241, 189, 0.78);
}

.alpha-strip strong {
  display: block;
  min-width: 0;
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.05;
}

.alpha-strip article:first-child strong {
  color: var(--logo-gold);
}

.alpha-strip small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

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

.box {
  padding: 16px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.strategy-card {
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.round-guide div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.round-guide strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e5f2ee;
  color: var(--accent);
}

.round-guide span {
  color: var(--muted);
  font-size: 13px;
}

.box.warning {
  border-color: #efc7ba;
  background: #fff0eb;
}

.box label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

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

.phase-list div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.phase-list strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e5f2ee;
  color: var(--accent);
}

.phase-list span {
  font-weight: 800;
}

.phase-list em {
  color: var(--accent-2);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

li + li {
  margin-top: 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  border-color: rgba(243, 208, 113, 0.34);
  background: linear-gradient(180deg, rgba(18, 63, 52, 0.96), rgba(7, 29, 24, 0.98)), var(--field-dark);
  color: var(--logo-gold);
  text-shadow: 0 1px 0 var(--logo-shadow);
  padding: 9px 12px;
}

.plan {
  display: none;
  padding: 18px;
}

.plan.active {
  display: block;
}

.grader {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.grader label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.grader input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

.paste-box,
.trade-shell textarea {
  width: 100%;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  font: inherit;
}

.primary-action {
  min-height: 44px;
  margin: 10px 0 14px;
  border-color: rgba(243, 208, 113, 0.72);
  background: linear-gradient(180deg, var(--logo-gold), #b88735), var(--accent-2);
  color: #27170f;
  padding: 0 16px;
  box-shadow: 0 10px 22px rgba(59, 33, 21, 0.18);
}

.trade-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.trade-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(216, 195, 146, 0.82);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(7, 29, 24, 0.96), rgba(18, 63, 52, 0.94)), var(--field-dark);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.trade-command-bar span,
.trade-mode-controls button,
.trade-fairness span,
.trade-breakdown-grid span,
.trade-lineup-card > span,
.trade-counteroffers span,
.trade-saved-notes span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-command-bar span {
  display: block;
  margin-bottom: 8px;
  color: var(--logo-gold);
}

.trade-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-mode-controls button {
  min-height: 38px;
  border: 1px solid rgba(243, 208, 113, 0.42);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.08);
  color: var(--logo-cream);
  padding: 7px 10px;
  font: inherit;
}

.trade-mode-controls button.active {
  background: linear-gradient(180deg, #f0cc70, #b9852f);
  color: #1c160c;
}

.trade-card,
.trade-verdict,
.trade-rules article {
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 248, 232, 0.95)), var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.trade-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.trade-card-roster,
.trade-verdict {
  grid-column: 1 / -1;
}

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

.trade-card-head span,
.trade-verdict-label,
.trade-rules span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-card-head strong {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.trade-card textarea {
  min-height: 148px;
  background: #fffdf6;
}

.trade-source-textarea {
  display: none;
}

.trade-package-builder {
  display: grid;
  gap: 10px;
}

.trade-package-builder label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.trade-package-builder label.inactive {
  opacity: 0.58;
}

.trade-package-builder span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.trade-package-builder input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
}

.trade-package-builder input:focus {
  outline: 2px solid rgba(15, 111, 95, 0.22);
  border-color: rgba(15, 111, 95, 0.52);
}

.trade-package-card {
  grid-column: 1 / -1;
}

.trade-package-card .trade-card-head strong {
  font-size: 22px;
}

.trade-package-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.trade-package-options button {
  min-height: 38px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent);
  padding: 7px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.trade-package-options button.active {
  border-color: rgba(243, 208, 113, 0.72);
  background: linear-gradient(180deg, var(--logo-gold), #b88735), var(--accent-2);
  color: #27170f;
}

.trade-card-roster textarea {
  min-height: 86px;
}

.trade-chip-list {
  display: grid;
  gap: 8px;
}

.trade-player-chip {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(216, 195, 146, 0.72);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.trade-player-chip strong {
  color: var(--ink);
}

.trade-player-chip span,
.trade-player-chip small {
  color: var(--muted);
  font-size: 12px;
}

.trade-player-chip.missing {
  border-color: rgba(161, 63, 47, 0.45);
  background: #fff3ef;
}

.trade-roster-pills,
.trade-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-roster-pills span,
.trade-warning-list span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.trade-roster-pills span {
  background: #eef7f2;
  color: var(--good);
}

.trade-warning-list span {
  background: #fff0e9;
  color: var(--warn);
}

.trade-verdict {
  padding: 18px;
}

.trade-verdict > strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 34px;
  line-height: 1;
}

.trade-verdict strong.good {
  color: var(--good);
}

.trade-score-grid strong.good {
  color: var(--good);
}

.trade-verdict strong.watch {
  color: #93691d;
}

.trade-score-grid strong.watch {
  color: #93691d;
}

.trade-verdict strong.danger {
  color: var(--warn);
}

.trade-score-grid strong.danger {
  color: var(--warn);
}

.trade-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.trade-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.trade-score-grid div {
  border: 1px solid rgba(216, 195, 146, 0.72);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.trade-quality-grid div {
  min-width: 0;
  border: 1px solid rgba(17, 70, 56, 0.18);
  border-radius: 8px;
  background: #f3fbf7;
  padding: 9px;
}

.trade-score-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-quality-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-score-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.trade-quality-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.trade-score-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-quality-grid small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trade-quality-reasons {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trade-fairness,
.trade-lineup-card,
.trade-counteroffers {
  margin-top: 12px;
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.trade-fairness {
  display: grid;
  gap: 7px;
}

.trade-fairness span,
.trade-breakdown-grid span,
.trade-lineup-card > span,
.trade-counteroffers span,
.trade-saved-notes span {
  color: var(--accent);
}

.trade-fairness strong,
.trade-lineup-card > strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
}

.trade-fairness div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 63, 52, 0.12);
}

.trade-fairness i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warn), var(--accent-2), var(--good));
}

.trade-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.trade-breakdown-grid article {
  min-width: 0;
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: #fffdf7;
  padding: 10px;
}

.trade-breakdown-grid strong {
  display: block;
  margin-top: 5px;
}

.trade-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 10px;
  margin: 14px 0;
}

.trade-detail-grid article {
  border: 1px solid rgba(216, 195, 146, 0.72);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.trade-detail-grid article.good {
  border-color: rgba(28, 122, 72, 0.24);
  background: #eef8f2;
}

.trade-detail-grid article.watch {
  border-color: rgba(184, 135, 53, 0.28);
  background: #fff8e9;
}

.trade-detail-grid article.danger {
  border-color: rgba(161, 63, 47, 0.24);
  background: #fff0eb;
}

.trade-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-detail-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 22px;
}

.trade-detail-grid p {
  margin: 7px 0 0;
  color: var(--muted);
}

.trade-detail-grid ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.trade-lineup-card > strong {
  margin: 5px 0 10px;
}

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

.trade-lineup-grid section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trade-lineup-grid h4 {
  margin: 0;
}

.trade-lineup-grid div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 8px;
  border: 1px solid rgba(216, 195, 146, 0.56);
  border-radius: 8px;
  background: #fffdf7;
  padding: 8px;
}

.trade-lineup-grid div span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.trade-lineup-grid div strong,
.trade-lineup-grid div small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-lineup-grid div small,
.trade-counteroffers li,
.trade-saved-notes small {
  color: var(--muted);
  font-weight: 800;
}

.trade-counteroffers ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.trade-history-card {
  margin-bottom: 14px;
}

.trade-saved-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trade-saved-notes article {
  min-width: 0;
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.trade-saved-notes strong,
.trade-saved-notes small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-saved-notes button {
  margin: 8px 6px 0 0;
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.post-draft-panel {
  margin-bottom: 14px;
}

.post-draft-plan,
.trade-finder,
.waiver-assistant {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.post-draft-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.post-draft-hero article {
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffef9, #f8f3e7);
  padding: 12px;
}

.post-draft-hero span,
.trade-lane-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-draft-hero strong,
.trade-lane-summary strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.post-draft-hero small {
  color: var(--muted);
  font-weight: 800;
}

.post-draft-grid,
.trade-finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.post-draft-grid section,
.trade-finder-grid section {
  min-width: 0;
  border-left: 3px solid rgba(199, 154, 59, 0.44);
  padding-left: 12px;
}

.post-draft-grid h4,
.trade-finder-grid h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.post-draft-grid p,
.trade-finder-grid p,
.waiver-assistant p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trade-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.trade-finder-card,
.waiver-card {
  align-content: start;
}

.trade-lane-summary {
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 21, 17, 0.96), rgba(18, 63, 52, 0.9)), var(--field);
  padding: 13px;
}

.trade-lane-summary strong {
  color: var(--logo-gold);
}

.trade-empty-state {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 13px;
}

.trade-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.intelligence-os-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(238, 247, 242, 0.92)), var(--panel-bg);
  padding: 16px;
}

.intelligence-os-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.intelligence-os-head h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.intelligence-os-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.intelligence-os-head button {
  flex: 0 0 auto;
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 8px;
  background: var(--accent);
  color: #fffdf8;
  padding: 9px 12px;
  font-weight: 900;
}

.intelligence-main-card {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 21, 17, 0.98), rgba(18, 63, 52, 0.94)), var(--field);
  padding: 14px;
}

.intelligence-main-card strong {
  color: var(--logo-gold);
  font-size: 12px;
  text-transform: uppercase;
}

.intelligence-main-card span {
  color: #fffdf8;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.intelligence-main-card small {
  color: rgba(255, 253, 248, 0.78);
  font-weight: 800;
}

.intelligence-reasons {
  display: grid;
  gap: 7px;
}

.intelligence-reasons p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.intelligence-reasons strong {
  color: var(--ink);
}

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

.intelligence-grid article {
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.intelligence-grid span,
.intelligence-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.intelligence-grid span {
  text-transform: uppercase;
}

.intelligence-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
}

@media (max-width: 860px) {
  .intelligence-os-head {
    display: grid;
  }

  .intelligence-os-head button {
    width: 100%;
  }

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

@media (max-width: 540px) {
  .trade-package-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-main-card span {
    font-size: 18px;
  }
}

.trade-lane-summary span {
  color: rgba(255, 241, 189, 0.78);
  text-transform: none;
}

.trade-lane-summary.waiver-summary strong {
  font-size: 18px;
}

.waiver-iq-command,
.waiver-iq-layout,
.waiver-iq-list,
.waiver-iq-plan {
  display: grid;
  gap: 12px;
}

.waiver-iq-command {
  margin-bottom: 14px;
}

.waiver-iq-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, 0.9fr) minmax(190px, 0.7fr);
  gap: 12px;
}

.waiver-iq-hero article,
.waiver-iq-card,
.waiver-claim-card {
  min-width: 0;
  border: 1px solid rgba(19, 43, 36, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 248, 0.98)), var(--panel-bg);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(4, 17, 14, 0.06);
}

.waiver-iq-hero article:first-child {
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(0, 17, 15, 0.98), rgba(18, 63, 52, 0.92) 56%, rgba(42, 111, 121, 0.84)),
    var(--field-dark);
}

.waiver-iq-hero span,
.waiver-claim-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.waiver-iq-hero article:first-child span {
  color: rgba(255, 241, 189, 0.78);
}

.waiver-iq-hero strong {
  display: block;
  margin: 6px 0;
  color: var(--accent);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.waiver-iq-hero article:first-child strong {
  color: #fffdf8;
}

.waiver-iq-hero small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.waiver-iq-hero article:first-child small {
  color: rgba(255, 247, 221, 0.9);
}

.waiver-iq-layout {
  grid-template-columns: minmax(300px, 1.1fr) minmax(260px, 0.75fr) minmax(260px, 0.8fr);
}

.waiver-iq-card {
  align-content: start;
  display: grid;
  gap: 12px;
}

.waiver-claim-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.waiver-claim-head {
  display: grid;
  gap: 4px;
}

.waiver-claim-head strong {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.waiver-claim-head small,
.waiver-claim-meta span,
.waiver-iq-plan p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.waiver-claim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.waiver-claim-meta span {
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 999px;
  background: #eef7f2;
  padding: 5px 8px;
}

.waiver-iq-plan p {
  margin: 0;
}

.waiver-iq-support {
  margin-bottom: 14px;
}

@media (max-width: 1080px) {
  .waiver-iq-hero,
  .waiver-iq-layout {
    grid-template-columns: 1fr;
  }
}

.trade-idea-list {
  display: grid;
  gap: 12px;
}

.trade-idea-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: #fffef9;
  padding: 13px;
}

.trade-idea-head {
  display: grid;
  gap: 4px;
}

.trade-idea-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-idea-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
}

.trade-idea-head small {
  color: var(--muted);
  font-weight: 800;
}

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

.trade-idea-flow section {
  min-width: 0;
}

.trade-idea-flow h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.trade-idea-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

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

.trade-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.trade-rules article {
  padding: 15px;
}

.trade-rules strong {
  display: block;
  margin: 6px 0;
}

.trade-rules p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.trade-season-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border-color: rgba(18, 63, 52, 0.16);
  background: #eef7f2;
}

.grader button {
  align-self: end;
  border-color: rgba(243, 208, 113, 0.72);
  background: linear-gradient(180deg, var(--logo-gold), #b88735), var(--accent-2);
  color: #27170f;
}

.result {
  padding: 16px;
  margin-bottom: 14px;
  color: var(--muted);
}

.result strong {
  color: var(--ink);
}

.command {
  padding: 14px;
}

code {
  display: block;
  margin-top: 8px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--field-dark);
  color: var(--logo-cream);
  padding: 10px;
  font-size: 13px;
}

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

.link-grid a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
}

.board-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.3fr) 140px 150px;
  gap: 12px;
  margin: 12px 0;
  align-items: end;
}

.board-tools label,
.position-filter,
.hide-drafted-board {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.board-tools input,
.board-tools select,
.board-tools button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 6px 18px rgba(14, 31, 25, 0.06);
}

.board-tools button {
  align-self: end;
  border-color: rgba(243, 208, 113, 0.72);
  background: linear-gradient(180deg, var(--logo-gold), #b88735), var(--accent-2);
  color: #27170f;
  font-weight: 800;
}

.hide-drafted-board {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(14, 31, 25, 0.06);
}

.position-toggles {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.position-toggles button {
  min-height: 42px;
  padding: 0 8px;
  border-color: rgba(243, 208, 113, 0.34);
  background: linear-gradient(180deg, rgba(18, 63, 52, 0.96), rgba(7, 29, 24, 0.98)), var(--field-dark);
  color: var(--logo-gold);
  text-shadow: 0 1px 0 var(--logo-shadow);
}

.position-toggles button.active {
  border-color: rgba(243, 208, 113, 0.82);
  background: linear-gradient(180deg, rgba(79, 42, 24, 0.84), rgba(18, 63, 52, 0.96)), var(--field);
  color: var(--logo-cream);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 189, 0.18);
}

.position-toggles .flex-toggle {
  border-color: rgba(243, 208, 113, 0.5);
  color: var(--logo-gold);
}

.position-toggles .flex-toggle.active {
  border-color: var(--logo-gold);
  background: linear-gradient(180deg, rgba(138, 79, 36, 0.96), rgba(59, 33, 21, 0.96)), var(--leather);
  color: var(--logo-cream);
}

.web-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid rgba(216, 195, 146, 0.78);
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 241, 0.9),
    var(--shadow-soft);
}

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

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

#board-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, var(--field), var(--field-dark));
  color: var(--logo-gold);
  font-weight: 900;
  text-shadow: 0 1px 0 var(--logo-shadow);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

#board-table tr.board-tier-divider-row {
  background: transparent;
}

#board-table tr.board-tier-divider-row td {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

#board-table tr.board-tier-divider-row .tier-divider {
  min-height: 36px;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

#board-table td.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#board-table button.player-link {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f5f52;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

#board-table tr.selected-row {
  outline: 3px solid rgba(243, 208, 113, 0.74);
  outline-offset: -3px;
}

#board-table tr.selected-row .player-link {
  color: #0b4139;
  font-weight: 900;
}

#board-table tr.drafted-row {
  opacity: 0.48;
  filter: grayscale(0.35);
}

#board-table tr.drafted-row .player-link {
  text-decoration: line-through;
}

.drafted-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  border: 1px solid rgba(161, 63, 47, 0.24);
  border-radius: 999px;
  background: #fff0eb;
  color: var(--warn);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(15, 111, 95, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 2px 9px;
  color: #0f5f52;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.precise-tier-pill {
  justify-content: flex-start;
  max-width: 220px;
  white-space: normal;
  line-height: 1.25;
}

#board-table tr[class^="tier-"] {
  box-shadow: inset 4px 0 0 rgba(15, 111, 95, 0.28);
}

#board-table tr.tier-1,
#board-table tr.tier-2 {
  box-shadow: inset 4px 0 0 var(--accent-2);
}

.analysis-pane {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.96)), #fff;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.analysis-pane h3 {
  font-size: 20px;
}

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

.analysis-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.analysis-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-chip strong {
  display: block;
  margin-top: 2px;
}

.analysis-chip.trend-riser {
  border-color: rgba(28, 122, 72, 0.32);
  background: #e8f5ed;
}

.analysis-chip.good {
  border-color: rgba(28, 122, 72, 0.32);
  background: #eff8f2;
}

.analysis-chip.watch {
  border-color: rgba(184, 135, 53, 0.28);
  background: #fff8e9;
}

.analysis-chip.danger {
  border-color: rgba(161, 63, 47, 0.28);
  background: #fff0eb;
}

.analysis-chip.trend-faller {
  border-color: rgba(161, 63, 47, 0.28);
  background: #fbe9e7;
}

.analysis-chip.drafted-chip {
  border-color: rgba(161, 63, 47, 0.28);
  background: #fff0eb;
}

.player-synopsis {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  border: 1px solid rgba(15, 111, 95, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f6fbf8;
  padding: 10px 12px;
}

.player-synopsis span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player-synopsis strong {
  color: var(--ink);
  font-size: 13px;
}

.player-synopsis p,
.player-synopsis small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.player-synopsis-details,
.player-read-copy {
  display: grid;
  gap: 7px;
}

.player-synopsis-details p,
.player-read-copy p {
  margin: 0;
}

.player-synopsis-details p strong,
.player-read-copy p strong {
  color: var(--ink);
  font-size: inherit;
}

.player-synopsis.compact {
  margin: 6px 0 0;
  padding: 8px;
  border-left-width: 3px;
}

.player-synopsis.compact strong {
  font-size: 12px;
}

.player-synopsis.compact p {
  font-size: 12px;
}

.player-focus-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.player-focus-button:hover {
  color: var(--accent-dark);
}

.player-focus-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

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

.manual-draft-button,
.inline-sync-action {
  min-height: 30px;
  border: 1px solid rgba(15, 111, 95, 0.28);
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--accent);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.manual-draft-button:hover,
.inline-sync-action:hover {
  border-color: rgba(15, 111, 95, 0.48);
  background: #dcefe8;
}

.player-card-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  justify-items: end;
  color: var(--ink);
}

.player-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 10, 0.58);
  backdrop-filter: blur(4px);
}

.player-drawer-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  border-left: 1px solid rgba(247, 205, 101, 0.34);
  background: linear-gradient(180deg, #fffdf7, #f5efe1), var(--panel-bg);
  box-shadow: -22px 0 60px rgba(3, 12, 10, 0.36);
  padding: 28px;
}

.player-drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 950;
}

.player-drawer-panel h2 {
  margin: 6px 0 12px;
  color: var(--field-dark);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
}

.player-drawer-verdict {
  display: grid;
  gap: 5px;
  margin: 12px 0 16px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #f6fbf8;
  padding: 14px;
}

.player-drawer-verdict.smash,
.player-drawer-verdict.target,
.player-drawer-verdict.good {
  border-left-color: var(--good);
}

.player-drawer-verdict.watch,
.player-drawer-verdict.wait {
  border-left-color: var(--accent-2);
}

.player-drawer-verdict.danger {
  border-left-color: var(--warn);
}

.player-drawer-verdict span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-drawer-verdict strong {
  color: var(--ink);
  line-height: 1.35;
}

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

.player-drawer-grid article {
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.13);
  border-radius: 8px;
  background: #fffefa;
  padding: 12px;
}

.player-drawer-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-drawer-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--field-dark);
}

.player-drawer-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.player-drawer-copy {
  margin-top: 14px;
}

.player-drawer-copy h3 {
  margin-bottom: 8px;
  color: var(--field-dark);
}

.player-drawer-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.player-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.player-drawer-actions button {
  width: auto;
}

.live-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.live-switches label,
.compact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.live-switches button,
.live-switches select {
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--accent);
  background: #e5f2ee;
  color: var(--accent);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.live-switches button:disabled {
  opacity: 0.48;
}

.command-sync-controls {
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: rgba(234, 244, 240, 0.72);
}

.command-sync-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.live-alert code {
  margin-top: 10px;
}

.live-hero-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) repeat(3, minmax(150px, 0.75fr)) minmax(220px, 0.95fr);
  gap: 12px;
  margin-bottom: 14px;
}

.live-clock,
.live-stat,
.live-select,
.live-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.96)), #fff;
  box-shadow: var(--shadow-soft);
}

.live-clock {
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(135deg, rgba(23, 53, 45, 0.96), rgba(15, 111, 95, 0.9)), #17352d;
  color: #fff;
}

.live-clock span,
.live-stat span,
.live-select {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-clock span,
.live-clock small {
  color: rgba(255, 255, 255, 0.78);
}

.live-clock strong {
  display: block;
  margin: 8px 0;
  color: #f3c96d;
  font-size: 28px;
}

.live-stat,
.live-select {
  padding: 16px;
}

.live-stat strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 26px;
}

.progress-shell {
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: #e0e8e3;
}

.progress-shell div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 220ms ease;
}

.live-select {
  display: grid;
  gap: 8px;
  text-transform: none;
}

.live-select select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

#live.panel.active {
  display: flex;
  flex-direction: column;
}

#live > * {
  order: 20;
}

#live > .panel-head {
  order: 1;
}

#live-status {
  order: 2;
}

#live > .league-room-note {
  order: 3;
}

#live > .draft-league-override {
  order: 4;
}

#live > .draft-bridge-sync {
  order: 5;
}

#live > .pre-draft-panel {
  order: 6;
}

#live > .live-hero-grid {
  order: 7;
}

#live > .alpha-strip {
  order: 8;
}

#live > .war-room-command {
  order: 9;
}

#live > .draft-primary-grid {
  order: 10;
}

#live > .cheat-grid {
  order: 11;
}

#live > .all-teams-draft-panel,
#live > .live-tier-panel {
  order: 11;
}

#live > .draft-feed-grid {
  order: 12;
}

#live > .draft-order-panel {
  order: 13;
}

#live > .draft-room-advanced {
  order: 12;
}

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

.draft-primary-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.draft-core-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
}

.draft-core-grid > .live-panel {
  min-height: 0;
}

.draft-core-grid .pick-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.cheat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.live-panel {
  padding: 16px;
}

.pre-draft-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.98), rgba(234, 244, 240, 0.98)), #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.draft-prep-command,
.draft-prep-dashboard,
.draft-prep-workgrid,
.draft-watchlist-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.draft-prep-command {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
}

.draft-prep-scorecard,
.draft-prep-panel,
.draft-watchlist-panel {
  border: 1px solid rgba(216, 195, 146, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 243, 233, 0.97)), #fffdf7;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.draft-prep-scorecard {
  display: grid;
  align-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(7, 29, 24, 0.96), rgba(18, 63, 52, 0.94)), var(--field-dark);
  color: var(--logo-cream);
}

.draft-prep-scorecard span,
.draft-prep-grid span,
.draft-watchlist-list span {
  color: var(--logo-gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.draft-prep-scorecard strong {
  color: #fffdf7;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
}

.draft-prep-scorecard small {
  color: rgba(255, 241, 189, 0.78);
  font-weight: 800;
}

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

.draft-prep-grid article {
  min-width: 0;
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px;
}

.draft-prep-grid article.good {
  border-color: rgba(28, 122, 72, 0.42);
  background: #eff8f1;
}

.draft-prep-grid article.watch {
  border-color: rgba(210, 170, 79, 0.62);
  background: #fff8e8;
}

.draft-prep-grid span,
.draft-prep-panel .eyebrow,
.draft-watchlist-panel .eyebrow {
  color: var(--accent);
}

.draft-prep-grid strong,
.draft-prep-grid small,
.draft-watchlist-list strong,
.draft-watchlist-list small {
  display: block;
  min-width: 0;
}

.draft-prep-grid strong {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 18px;
}

.draft-prep-grid small,
.draft-prep-panel p,
.draft-prep-panel li,
.draft-watchlist-list small,
.draft-watchlist-list p {
  color: var(--muted);
  font-weight: 800;
}

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

.draft-prep-panel {
  min-width: 0;
}

.draft-prep-panel h3,
.draft-watchlist-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.draft-prep-panel p {
  margin: 0 0 10px;
}

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

.draft-prep-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 8px;
  background: #f5fbf7;
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
}

.draft-prep-meta strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.draft-prep-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.draft-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-chip-list span {
  border: 1px solid rgba(18, 63, 52, 0.22);
  border-radius: 999px;
  background: #eef7f2;
  color: var(--accent);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

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

.draft-pocket-list article {
  border-left: 4px solid var(--accent-2);
  background: rgba(255, 248, 232, 0.74);
  padding: 9px 10px;
}

.draft-pocket-list strong,
.draft-pocket-list small {
  display: block;
}

.draft-pocket-list small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.draft-prep-workbench {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.draft-build-controls,
.draft-watchlist-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.draft-build-controls button {
  min-height: 40px;
  border: 1px solid rgba(216, 195, 146, 0.78);
  border-radius: 8px;
  background: #123f34;
  color: var(--logo-gold);
  padding: 8px 12px;
  font: inherit;
  font-weight: 900;
}

.draft-build-controls button.active {
  border-color: rgba(243, 208, 113, 0.92);
  background: linear-gradient(180deg, #f0cc70, #b9852f);
  color: #1c160c;
}

.draft-prep-workgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.draft-watchlist-panel {
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
  align-items: start;
}

.draft-watchlist-controls {
  justify-content: end;
}

.draft-watchlist-controls select,
.draft-watchlist-controls input {
  min-height: 42px;
  border: 1px solid rgba(130, 117, 82, 0.36);
  border-radius: 8px;
  background: #fffefb;
  padding: 8px 10px;
  font: inherit;
}

.draft-watchlist-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.draft-watchlist-list article {
  min-width: 0;
  border: 1px solid rgba(216, 195, 146, 0.74);
  border-radius: 8px;
  background: #fffaf0;
  padding: 11px;
}

.draft-watchlist-list button {
  margin-top: 8px;
  border: 1px solid rgba(18, 63, 52, 0.24);
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.pre-draft-copy {
  display: grid;
  align-content: center;
  gap: 5px;
}

.pre-draft-copy span,
.pre-draft-checks span,
.pre-draft-empty strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pre-draft-copy strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.pre-draft-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pre-draft-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pre-draft-checks article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.pre-draft-checks article.good {
  border-left-color: var(--good);
}

.pre-draft-checks article.watch {
  border-left-color: var(--accent-2);
}

.pre-draft-checks strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.pre-draft-checks small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pre-draft-actions {
  display: grid;
  align-content: center;
  gap: 8px;
}

.pre-draft-actions button {
  min-width: 150px;
  min-height: 40px;
  white-space: normal;
}

.pre-draft-empty {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.pre-draft-empty.good {
  border-left-color: var(--good);
  background: #eff8f2;
}

.pre-draft-empty.watch {
  border-left-color: var(--accent-2);
  background: #fff8e9;
}

.pre-draft-empty p,
.pre-draft-empty ul {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pre-draft-empty ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.war-room-command {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
  border-color: rgba(247, 205, 101, 0.34);
  background:
    linear-gradient(135deg, rgba(6, 21, 17, 0.98), rgba(18, 63, 52, 0.96) 58%, rgba(42, 111, 121, 0.9)), var(--field);
  color: var(--logo-cream);
}

.war-room-main {
  display: grid;
  align-content: center;
  gap: 10px;
}

.war-room-main .eyebrow {
  color: rgba(255, 241, 189, 0.72);
}

.war-room-main h3 {
  margin: 0;
  color: var(--logo-gold);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.war-room-main p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 253, 247, 0.82);
  line-height: 1.5;
}

.war-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.war-room-actions button {
  width: auto;
  min-height: 42px;
}

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

.war-room-signals article,
.war-room-secondary {
  border: 1px solid rgba(255, 241, 189, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
  padding: 12px;
}

.war-room-signals span {
  display: block;
  color: rgba(255, 241, 189, 0.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.war-room-signals strong {
  display: block;
  margin-top: 5px;
  color: #fffdf7;
  font-size: 14px;
  line-height: 1.35;
}

.war-room-secondary {
  grid-column: 1 / -1;
  color: rgba(255, 253, 247, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.cheat-panel {
  min-height: 220px;
}

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

.pick-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.intel-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.intel-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.intel-card strong {
  color: var(--ink);
  font-size: 13px;
}

.intel-card small,
.intel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.intel-card.good {
  border-left-color: var(--good);
  background: #eff8f2;
}

.intel-card.watch {
  border-left-color: var(--accent-2);
  background: #fff8e9;
}

.intel-card.danger {
  border-left-color: var(--warn);
  background: #fff0eb;
}

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

.intel-subgrid div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.intel-subgrid h4,
.recommendation-block h4 {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intel-subgrid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.intel-subgrid b {
  color: var(--ink);
}

.intel-subgrid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pick-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.pick-card.priority {
  border-color: rgba(184, 135, 53, 0.44);
  background: #fff9e8;
}

.pick-card.made {
  background: #f7faf8;
}

.pick-card.recommendation.smash {
  border-color: rgba(28, 122, 72, 0.34);
  background: #eef8f2;
}

.pick-card.recommendation.target {
  border-color: rgba(15, 111, 95, 0.2);
}

.pick-card.recommendation.watch {
  border-color: rgba(184, 135, 53, 0.44);
  background: #fff8e9;
}

.pick-card.recommendation.wait {
  border-color: rgba(91, 107, 100, 0.22);
  background: #f8faf8;
}

.pick-card span,
.pick-card small {
  color: var(--muted);
  font-size: 12px;
}

.pick-card strong {
  color: var(--ink);
}

.pick-card em {
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.2fr);
  gap: 14px;
}

.draft-room-cheatcode {
  margin: 4px 0 16px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: rgba(247, 250, 248, 0.74);
  padding: 12px;
}

.draft-cheatcode-head {
  margin-bottom: 10px;
  border-bottom: 0;
  padding-bottom: 0;
}

.draft-cheatcode-head h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.cheatcode-status {
  border-color: rgba(18, 63, 52, 0.22);
  background: #eef7f2;
  padding: 10px 12px;
  font-size: 13px;
}

.cheatcode-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.75fr) minmax(190px, 0.75fr);
  gap: 8px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.cheatcode-hero div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(216, 202, 168, 0.82);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px;
  color: var(--ink);
}

.cheatcode-hero span,
.cheatcode-panel > .eyebrow {
  color: var(--accent);
}

.cheatcode-hero strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
}

.cheatcode-hero small {
  color: var(--muted);
  font-weight: 800;
}

.cheatcode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.cheatcode-grid.secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cheatcode-more {
  margin-top: 12px;
}

.cheatcode-more summary {
  display: grid;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid rgba(243, 208, 113, 0.3);
  border-radius: 8px;
  background: rgba(18, 63, 52, 0.08);
  color: var(--accent);
  padding: 11px 14px;
  font-weight: 950;
}

.cheatcode-more[open] summary {
  margin-bottom: 12px;
}

.cheatcode-panel {
  display: grid;
  align-content: start;
  min-height: 156px;
  background: linear-gradient(180deg, #fffdf7, #f6f0e2), var(--surface);
  padding: 12px;
}

.cheatcode-panel h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.cheatcode-panel .pick-card,
.cheatcode-panel .intel-card {
  border-color: rgba(18, 63, 52, 0.18);
}

.cheatcode-panel .recommendation.priority {
  border-color: rgba(199, 154, 59, 0.42);
  box-shadow:
    inset 4px 0 0 var(--logo-gold),
    0 8px 18px rgba(6, 18, 15, 0.08);
}

.draft-room-cheatcode .cheatcode-hero {
  box-shadow: none;
}

.draft-room-cheatcode .cheatcode-panel {
  min-height: 156px;
  padding: 12px;
}

.cheatcode-player {
  min-height: 100%;
}

.draft-room-cheatcode .pick-card,
.draft-room-cheatcode .intel-card {
  padding: 8px;
}

.sim-layout .live-panel {
  min-height: 260px;
}

.compact-head {
  margin-bottom: 12px;
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-head h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.sim-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.tier-board-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.4fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.sim-tools input,
.sim-tools select,
.tier-board-tools input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.sim-tools select {
  display: none;
}

.external-mock-grader {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.external-grader-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.external-grader-head h3 {
  margin-bottom: 0;
}

.external-grader-head span {
  max-width: 320px;
  border: 1px solid rgba(184, 135, 53, 0.34);
  border-radius: 8px;
  background: #fff8e6;
  color: var(--accent);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  text-transform: uppercase;
}

.external-grader-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.external-grader-input,
.external-grader-settings {
  display: grid;
  gap: 10px;
}

.external-grader-input label,
.external-grader-settings label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.external-grader-input textarea {
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  line-height: 1.45;
}

.external-grader-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: #f7faf8;
  padding: 12px;
}

.external-grader-settings select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.external-grader-settings .compact-toggle {
  align-content: center;
  min-height: 42px;
  border: 1px solid rgba(18, 63, 52, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  text-transform: none;
}

.external-grader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.external-grader-output {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

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

.external-grade-summary article {
  min-width: 0;
  border: 1px solid rgba(184, 135, 53, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.external-grade-summary span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.external-grade-summary strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.external-grade-summary small,
.external-grade-notes p {
  color: var(--muted);
  line-height: 1.4;
}

.external-grade-notes {
  display: grid;
  gap: 6px;
}

.external-grade-notes p {
  margin: 0;
  border-left: 4px solid var(--accent-2);
  background: #f7faf8;
  padding: 8px 10px;
  font-size: 13px;
}

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

.sim-position-tabs,
.draft-position-tabs {
  margin-bottom: 10px;
}

.tier-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sim-player-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
}

.tiered-player-list {
  gap: 7px;
}

.compact-live-board {
  max-height: 470px;
}

.compact-tier-panel {
  margin-bottom: 14px;
}

.draft-room-advanced {
  margin-top: 2px;
}

.draft-room-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  cursor: pointer;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefb, #f6f1e7), var(--surface);
  color: var(--accent);
  padding: 0 16px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.draft-room-advanced summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--field-dark);
  color: var(--logo-gold);
  font-size: 18px;
  line-height: 1;
}

.draft-room-advanced[open] summary {
  margin-bottom: 12px;
}

.draft-room-advanced[open] summary::after {
  content: "-";
}

.compact-draft-context,
.compact-diagnostics,
.compact-feed-grid,
.compact-order-panel {
  margin-bottom: 12px;
}

.tier-divider {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border: 1px solid rgba(243, 208, 113, 0.42);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--field-dark), var(--field), var(--field-dark));
  color: var(--logo-gold);
  padding: 0 12px;
  box-shadow: 0 8px 20px rgba(5, 17, 14, 0.18);
  text-shadow: 0 1px 0 var(--logo-shadow);
}

.tier-divider span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-divider small {
  color: var(--logo-cream);
  font-size: 12px;
  font-weight: 800;
}

.sim-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.tier-player-row {
  border-left: 4px solid rgba(243, 208, 113, 0.48);
}

.sim-player-row strong {
  display: block;
}

.sim-player-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sim-player-row button,
.sim-draft-button {
  min-height: 34px;
  border-color: rgba(243, 208, 113, 0.46);
  background: linear-gradient(180deg, rgba(18, 63, 52, 0.96), rgba(7, 29, 24, 0.98)), var(--field-dark);
  color: var(--logo-gold);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 var(--logo-shadow);
}

.sim-draft-button {
  justify-self: start;
  margin-top: 4px;
}

.sim-player-row button:disabled {
  opacity: 0.42;
}

.recommendation-block {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.recommendation-block + .recommendation-block {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.recommendation-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.compact-block .pick-card {
  opacity: 0.82;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rec-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.rec-meta b.good {
  border-color: rgba(28, 122, 72, 0.2);
  color: var(--good);
  background: #eff8f2;
}

.rec-meta b.watch {
  border-color: rgba(184, 135, 53, 0.28);
  color: #7c591d;
  background: #fff8e9;
}

.rec-meta b.danger {
  border-color: rgba(161, 63, 47, 0.24);
  color: var(--warn);
  background: #fff0eb;
}

.rec-meta b.neutral {
  color: var(--muted);
}

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

.roster-counts span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(15, 111, 95, 0.16);
  border-radius: 8px;
  background: #eaf4f0;
  color: var(--accent);
  font-weight: 900;
}

.draft-order-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
}

.draft-order-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.draft-order-grid strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #17211d;
  color: #f3c96d;
}

.draft-order-grid span {
  color: var(--ink);
  font-weight: 900;
}

.draft-order-grid small {
  font-size: 12px;
}

.all-teams-draft-panel {
  margin-bottom: 14px;
}

.all-teams-draft-board {
  min-width: 0;
}

.draft-board-scroll {
  overflow-x: auto;
  padding: 3px 0 8px;
}

.draft-board-grid {
  display: grid;
  grid-template-columns: repeat(var(--draft-team-count, 12), minmax(136px, 1fr));
  gap: 6px;
  min-width: max(100%, calc(var(--draft-team-count, 12) * 142px));
}

.draft-board-column {
  display: grid;
  grid-template-rows: auto repeat(var(--draft-round-count, 16), minmax(66px, auto));
  gap: 5px;
  min-width: 0;
}

.draft-board-team,
.draft-board-pick {
  min-width: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 248, 232, 0.14);
  box-shadow: 0 8px 18px rgba(0, 8, 7, 0.12);
}

.draft-board-team {
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 9px;
  background: linear-gradient(180deg, #102d27, #071d18), var(--field-dark);
  color: var(--logo-cream);
}

.draft-board-column.mine .draft-board-team {
  border-color: rgba(255, 232, 163, 0.78);
  box-shadow:
    inset 0 0 0 2px rgba(255, 232, 163, 0.18),
    0 12px 24px rgba(0, 8, 7, 0.2);
}

.draft-board-team span,
.draft-board-team small {
  overflow: hidden;
  color: rgba(255, 248, 232, 0.76);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.draft-board-team strong {
  overflow: hidden;
  color: var(--logo-cream);
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-board-pick {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 66px;
  padding: 8px;
  border-left-width: 5px;
  color: #fffdf8;
}

.draft-board-pick span,
.draft-board-pick small {
  overflow: hidden;
  color: rgba(255, 253, 248, 0.78);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.draft-board-pick strong {
  overflow: hidden;
  color: #fffdf8;
  font-size: 12px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-board-pick.pending {
  background: linear-gradient(180deg, #2b3834, #17211d);
  border-left-color: rgba(255, 248, 232, 0.22);
}

.draft-board-pick.empty {
  opacity: 0.48;
}

.draft-board-pick.current {
  outline: 3px solid rgba(255, 232, 163, 0.86);
  outline-offset: -3px;
}

.draft-board-pick.pick-pos-qb {
  background: linear-gradient(180deg, #1f84bb, #0a4165);
  border-left-color: #9bd7ff;
}

.draft-board-pick.pick-pos-rb {
  background: linear-gradient(180deg, #138466, #063f34);
  border-left-color: #72f0b8;
}

.draft-board-pick.pick-pos-wr {
  background: linear-gradient(180deg, #cf7831, #7f3617);
  border-left-color: #ffd09b;
}

.draft-board-pick.pick-pos-te {
  background: linear-gradient(180deg, #7b4ac4, #3d206b);
  border-left-color: #d9bdff;
}

.draft-board-pick.pick-pos-dst {
  background: linear-gradient(180deg, #0c7f90, #06424a);
  border-left-color: #7be8f2;
}

.draft-board-pick.pick-pos-k {
  background: linear-gradient(180deg, #caa043, #6d4d11);
  border-left-color: #ffe8a5;
}

.draft-board-pick.pick-pos-pending {
  background: linear-gradient(180deg, #33423d, #17211d);
  border-left-color: rgba(255, 248, 232, 0.22);
}

.mini-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-table div {
  display: grid;
  grid-template-columns: 80px minmax(160px, 1fr) 110px minmax(240px, 1.2fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.mini-table span,
.mini-table small {
  color: var(--muted);
}

.mini-table em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.download-title {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .topbar,
  .layout,
  .split,
  .metric-grid,
  .grader,
  .link-grid,
  .board-tools,
  .web-board,
  .command-hero,
  .first-run-guide,
  .command-grid,
  .strategy-grid,
  .round-guide,
  .trade-shell,
  .trade-command-bar,
  .trade-score-grid,
  .trade-quality-grid,
  .trade-breakdown-grid,
  .trade-detail-grid,
  .trade-lineup-grid,
  .trade-saved-notes,
  .trade-rules,
  .mini-table div,
  .live-hero-grid,
  .live-grid,
  .cheat-grid,
  .sim-layout,
  .cheatcode-hero,
  .alpha-strip,
  .cheatcode-grid,
  .cheatcode-grid.secondary,
  .sim-tools,
  .external-grader-grid,
  .external-grader-settings,
  .external-grade-summary,
  .external-grade-picks,
  .tier-board-tools,
  .sim-player-row,
  .intel-subgrid,
  .draft-order-grid,
  .pre-draft-panel,
  .pre-draft-checks,
  .roster-counts {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 22px 18px 16px;
  }

  .demo-banner {
    display: grid;
    justify-items: start;
    padding: 12px 18px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup img {
    width: 72px;
    height: 72px;
  }

  .external-grader-head {
    display: grid;
  }

  .external-grader-head span {
    max-width: none;
  }

  .layout {
    display: grid;
    width: 100%;
    max-width: 100vw;
    padding: 18px;
  }

  .league-profile-strip,
  .league-room-note,
  .pre-draft-actions {
    display: grid;
  }

  .content,
  .panel,
  .command-hero {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .draft-card {
    width: 100%;
    min-width: 0;
  }

  .account-card,
  .league-switcher {
    width: 100%;
    min-width: 0;
  }

  .panel {
    padding: 18px;
  }

  .panel-head {
    display: grid;
  }

  .command-hero {
    padding: 20px;
  }

  .command-hero h2 {
    max-width: 100%;
    font-size: clamp(27px, 7.5vw, 32px);
    line-height: 1.05;
  }

  .command-hero p {
    max-width: 100%;
    font-size: 15px;
  }

  .command-hero::after {
    left: 72%;
    top: 70%;
    font-size: clamp(86px, 34vw, 132px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .tabs .tab {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding-inline: 10px;
  }

  .board-tools button,
  .hide-drafted-board {
    width: 100%;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
  }

  #board-table {
    min-width: 920px;
  }

  .position-toggles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .nav-item {
    width: auto;
  }

  h1 {
    max-width: 100%;
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 18px 14px 14px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-lockup img {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: clamp(23px, 6.7vw, 27px);
    line-height: 1.02;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 18px 14px 26px;
  }

  .sidebar {
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .content,
  .panel {
    width: 100%;
    max-width: 100%;
  }

  .nav-item {
    min-height: 50px;
    padding: 11px 14px;
  }

  .panel {
    padding: 16px;
  }

  .panel h2 {
    font-size: clamp(22px, 6vw, 25px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .trade-shell,
  .trade-card,
  .trade-verdict,
  .trade-rules article {
    min-width: 0;
  }

  .trade-card-head strong {
    font-size: 26px;
    white-space: nowrap;
  }

  .trade-package-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trade-verdict > strong {
    font-size: 28px;
    line-height: 1.05;
  }

  .trade-score-grid strong,
  .trade-quality-grid strong {
    font-size: 20px;
  }

  .command-hero h2 {
    max-width: 300px;
    font-size: clamp(25px, 7vw, 29px);
  }

  .command-hero p {
    max-width: 300px;
  }

  .position-toggles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yard-number {
    color: rgba(255, 241, 189, 0.045);
  }
}

body.access-locked .layout,
body.access-locked .topbar {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 20, 12, 0.72);
  backdrop-filter: blur(6px);
}

.access-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(247, 205, 101, 0.55);
  border-radius: 8px;
  padding: 28px;
  background: #fffaf0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  color: #071d13;
}

.access-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px !important;
  min-height: 34px;
  border: 1px solid rgba(18, 63, 52, 0.18);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 250, 240, 0.92);
  color: #082217;
  box-shadow: none;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.access-close:hover {
  background: #f8efd8;
  box-shadow: 0 8px 18px rgba(5, 17, 14, 0.14);
  transform: translateY(-1px);
}

.access-card h2 {
  margin: 6px 0 10px;
  color: #071d13;
  font-size: 32px;
}

.access-card p {
  color: #40524a;
}

.access-card label {
  display: grid;
  gap: 8px;
  margin: 20px 0 14px;
  font-weight: 800;
}

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

.access-grid label {
  margin: 0 0 12px;
}

.access-card input {
  min-height: 50px;
  border: 1px solid rgba(180, 127, 23, 0.45);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}

.access-card button {
  width: 100%;
  justify-content: center;
}

.access-forgot {
  width: auto !important;
  min-height: 34px;
  margin: -4px 0 14px auto;
  border: 0;
  background: transparent;
  color: #0f3a30;
  padding: 0;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  font-weight: 900;
}

.access-forgot:hover {
  transform: none;
  box-shadow: none;
}

.access-card button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.access-recovery {
  margin-top: 16px;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: rgba(248, 239, 216, 0.56);
  padding: 0 14px;
}

.access-recovery summary {
  min-height: 46px;
  cursor: pointer;
  color: #082217;
  display: grid;
  align-items: center;
  font-weight: 900;
}

.access-recovery[open] {
  padding-bottom: 14px;
}

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

.access-actions button {
  min-height: 46px;
  border: 1px solid rgba(18, 63, 52, 0.28);
  background: #f8efd8;
  color: #082217;
}

.access-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 2px;
  color: #66736d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-divider::before,
.access-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(18, 63, 52, 0.18);
}

.access-message {
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(180, 127, 23, 0.32);
  border-radius: 8px;
  background: #fff6dc;
  padding: 12px;
  color: #7a3e06;
  font-weight: 900;
  line-height: 1.45;
}

.access-message:empty {
  display: none;
}

.access-message[data-state="error"] {
  border-color: rgba(138, 74, 11, 0.45);
  background: #fff0d0;
  color: #7a3300;
}

.access-message[data-state="info"] {
  border-color: rgba(15, 58, 48, 0.2);
  background: #edf7f2;
  color: #0f3a30;
}

.access-card small {
  display: block;
  margin-top: 14px;
  color: #5d6b64;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.account-grid article,
.account-league-list > article {
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(6, 18, 15, 0.08);
}

.account-grid span,
.account-league-list span {
  color: #7d734f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-grid strong,
.account-league-list strong {
  display: block;
  margin: 4px 0;
  color: #071d18;
  font-size: 20px;
}

.account-grid p,
.account-league-list p {
  margin: 0;
  color: #5d6b64;
  line-height: 1.45;
}

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

.account-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.account-progress article {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(18, 63, 52, 0.14);
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(6, 18, 15, 0.07);
}

.account-progress article.complete {
  border-color: rgba(28, 122, 72, 0.22);
  background: #f3fbf6;
}

.account-progress article.pending {
  border-color: rgba(199, 154, 59, 0.26);
  background: #fff8e8;
}

.account-progress span {
  color: #7d734f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-progress strong {
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
  color: #071d18;
  font-size: 16px;
}

.account-progress small {
  min-width: 0;
  color: #5d6b64;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.account-league-list > article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.account-league-list > article.active {
  border-color: rgba(199, 154, 59, 0.55);
  box-shadow:
    inset 4px 0 0 var(--logo-gold),
    0 10px 24px rgba(6, 18, 15, 0.08);
}

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

.account-league-actions button,
.account-league-actions a {
  min-height: 36px;
  border: 1px solid rgba(18, 63, 52, 0.2);
  border-radius: 8px;
  background: #f8f3e7;
  color: #123f34;
  padding: 8px 12px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.account-league-actions button:disabled {
  opacity: 0.65;
}

/* Premium command-center polish */
:root {
  --surface: rgba(255, 253, 247, 0.97);
  --surface-2: #f8f3e7;
  --ink: #141814;
  --muted: #596257;
  --line: #d7caa8;
  --accent: #123f34;
  --accent-2: #c79a3b;
  --shadow: 0 24px 60px rgba(6, 18, 15, 0.2);
  --shadow-soft: 0 10px 26px rgba(6, 18, 15, 0.1);
}

body {
  background:
    linear-gradient(180deg, rgba(5, 17, 14, 0.5), rgba(5, 17, 14, 0.14) 42%, rgba(5, 17, 14, 0.46)),
    radial-gradient(circle at 50% 0%, rgba(243, 208, 113, 0.11), transparent 34%),
    linear-gradient(135deg, #071d18, #103b32 50%, #0b211d);
}

.field-overlay {
  opacity: 0.38;
}

.field-overlay::before {
  opacity: 0.7;
}

.field-overlay::after,
.yard-number,
.field-endzone {
  opacity: 0.42;
}

.topbar {
  align-items: stretch;
  padding: 22px 32px;
  border-bottom-color: rgba(243, 208, 113, 0.22);
  background: linear-gradient(90deg, rgba(7, 29, 24, 0.98), rgba(16, 54, 46, 0.97)), var(--field-dark);
}

.brand-lockup img {
  width: 78px;
  height: 78px;
  box-shadow:
    0 12px 26px rgba(5, 17, 14, 0.24),
    0 0 0 5px rgba(255, 241, 189, 0.08);
}

h1 {
  font-size: clamp(32px, 4vw, 40px);
}

.draft-card {
  display: grid;
  align-content: center;
  min-width: 250px;
  background: linear-gradient(180deg, rgba(255, 241, 189, 0.12), rgba(5, 17, 14, 0.42)), rgba(7, 29, 24, 0.72);
}

.demo-banner {
  justify-content: space-between;
  padding-inline: 36px;
  background: #fffdf7;
}

.layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 32px 34px;
}

.sidebar {
  gap: 6px;
  border: 1px solid rgba(243, 208, 113, 0.2);
  border-radius: 8px;
  background: rgba(6, 24, 20, 0.62);
  padding: 8px;
  box-shadow: 0 18px 42px rgba(5, 17, 14, 0.22);
}

.nav-item {
  position: relative;
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: rgba(255, 241, 189, 0.72);
  padding: 11px 12px 11px 16px;
  text-shadow: none;
  box-shadow: none;
}

.nav-item:hover {
  border-color: rgba(243, 208, 113, 0.18);
  background: rgba(255, 241, 189, 0.08);
  color: var(--logo-cream);
}

.nav-item.active {
  border-color: rgba(243, 208, 113, 0.34);
  background: rgba(255, 241, 189, 0.13);
  color: var(--logo-gold);
  box-shadow: inset 4px 0 0 var(--logo-gold);
}

.panel {
  padding: 24px;
  border-color: rgba(216, 202, 168, 0.86);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.99), rgba(248, 243, 231, 0.97)), var(--surface);
  box-shadow: 0 18px 48px rgba(5, 17, 14, 0.16);
}

.panel::before {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold), #2a6f79);
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid rgba(216, 202, 168, 0.62);
  padding-bottom: 16px;
}

.panel-head h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.command-hero {
  border-color: rgba(243, 208, 113, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 29, 24, 0.98), rgba(18, 63, 52, 0.94) 54%, rgba(38, 73, 80, 0.92)), var(--field);
  box-shadow: 0 22px 60px rgba(5, 17, 14, 0.22);
}

.command-hero::before {
  opacity: 0.38;
}

.command-hero::after {
  left: 75%;
  color: rgba(255, 241, 189, 0.08);
}

.command-hero h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: 0;
}

.command-hero p {
  max-width: 680px;
  color: rgba(255, 241, 189, 0.86);
}

.hero-actions {
  gap: 8px;
}

.primary-action,
.grader button,
.board-tools button,
.subscribe-button,
.demo-banner a {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.primary-action:hover,
.grader button:hover,
.board-tools button:hover,
.subscribe-button:hover,
.demo-banner a:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(59, 33, 21, 0.22);
}

.secondary-action,
.tab,
.position-toggles button {
  background: #123f34;
  color: var(--logo-gold);
  text-shadow: none;
}

.metric,
.box,
.result,
.command,
.plan,
.strategy-card,
.command-tile,
.trade-card,
.trade-verdict,
.trade-rules article,
.live-clock,
.live-stat,
.live-select,
.live-panel,
.analysis-pane,
.table-wrap {
  border-color: rgba(216, 202, 168, 0.82);
  background: #fffdf7;
  box-shadow: var(--shadow-soft);
}

.metric,
.command-tile,
.live-stat,
.trade-score-grid div,
.trade-quality-grid div,
.analysis-chip {
  background: linear-gradient(180deg, #fffdf7, #f8f3e7);
}

.metric strong,
.command-tile strong,
.live-stat strong,
.trade-card-head strong {
  color: #123f34;
}

.command-grid,
.metric-grid,
.trade-rules,
.cheat-grid,
.live-grid {
  gap: 10px;
}

input,
select,
textarea,
.board-tools input,
.board-tools select,
.trade-card textarea,
.paste-box,
.sim-tools input,
.sim-tools select,
.tier-board-tools input {
  background: #fffefb;
  border-color: rgba(130, 117, 82, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(199, 154, 59, 0.34);
  outline-offset: 2px;
}

.table-wrap {
  border-color: rgba(123, 107, 72, 0.28);
  background: #fff;
}

#board-table {
  font-size: 12.5px;
}

#board-table th {
  background: linear-gradient(180deg, #17352d, #071d18);
  color: #f8dc8c;
}

#board-table td {
  border-bottom-color: rgba(216, 202, 168, 0.58);
}

#board-table tbody tr:nth-child(even):not(.board-tier-divider-row) {
  background: rgba(248, 243, 231, 0.46);
}

#board-table tbody tr:hover:not(.board-tier-divider-row) {
  background: #eef7f2;
}

#board-table button.player-link {
  color: #0b6b60;
  text-decoration: none;
  font-weight: 850;
}

#board-table button.player-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tier-pill,
.status,
.trade-roster-pills span,
.trade-warning-list span,
.drafted-badge {
  border-radius: 999px;
}

.analysis-pane {
  top: 18px;
  background: linear-gradient(180deg, #ffffff, #f5faf7);
}

.live-clock {
  background: linear-gradient(135deg, #071d18, #123f34 58%, #2a5961);
}

.intel-card,
.pick-card,
.trade-player-chip,
.player-synopsis {
  box-shadow: 0 4px 12px rgba(6, 18, 15, 0.06);
}

@media (max-width: 860px) {
  .draft-prep-command,
  .draft-prep-dashboard,
  .draft-prep-workgrid,
  .draft-watchlist-panel {
    grid-template-columns: 1fr;
  }

  .draft-prep-grid,
  .draft-prep-meta,
  .draft-watchlist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    padding: 18px;
  }

  .sidebar {
    position: static;
    background: rgba(6, 24, 20, 0.78);
  }

  .demo-banner {
    justify-content: start;
    padding-inline: 18px;
  }
}

@media (max-width: 520px) {
  .draft-prep-grid,
  .draft-prep-meta,
  .draft-watchlist-list {
    grid-template-columns: 1fr;
  }

  .draft-build-controls button,
  .draft-watchlist-controls select,
  .draft-watchlist-controls input,
  .draft-watchlist-controls button {
    width: 100%;
  }

  .command-hero h2 {
    max-width: 100%;
  }

  .command-hero::after {
    left: 78%;
    top: 73%;
  }
}

/* Final UI quality pass */
:root {
  --radius: 8px;
  --hairline: rgba(19, 43, 36, 0.12);
  --panel-bg: #fffdf8;
  --panel-bg-soft: #f7f3e9;
  --control-bg: #fffefa;
  --shadow: 0 16px 40px rgba(4, 17, 14, 0.16);
  --shadow-soft: 0 6px 18px rgba(4, 17, 14, 0.08);
}

body {
  line-height: 1.45;
}

.field-overlay {
  opacity: 0.24;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(190px, 260px) minmax(200px, 240px) minmax(170px, 210px);
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
}

.brand-lockup {
  gap: 14px;
}

.brand-lockup img {
  width: 68px;
  height: 68px;
}

.brand-lockup small {
  margin-top: 4px;
}

.draft-card,
.account-card,
.league-switcher {
  min-height: 116px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(4, 17, 14, 0.18);
}

.subscribe-button,
.account-card button,
.primary-action,
.secondary-action,
.live-switches button,
.board-tools button,
.grader button {
  border-radius: var(--radius);
  box-shadow: none;
}

.layout {
  gap: 16px;
  padding: 20px 28px 32px;
}

.sidebar {
  top: 14px;
  box-shadow: 0 12px 28px rgba(4, 17, 14, 0.16);
}

.nav-item {
  min-height: 42px;
  padding-block: 10px;
  font-size: 14px;
}

.panel {
  padding: 22px;
  background: linear-gradient(180deg, var(--panel-bg), var(--panel-bg-soft));
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 18px;
}

.command-hero {
  padding: 22px;
}

.command-hero h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.metric-grid,
.command-grid,
.first-run-guide,
.cheatcode-grid,
.cheatcode-grid.secondary,
.live-grid,
.cheat-grid,
.sim-layout,
.trade-shell,
.trade-rules,
.strategy-grid,
.split {
  gap: 10px;
}

.metric,
.box,
.result,
.command-tile,
.strategy-card,
.plan,
.live-panel,
.trade-card,
.trade-verdict,
.trade-rules article,
.analysis-pane,
.table-wrap,
.pick-card,
.intel-card,
.trade-player-chip,
.player-synopsis {
  border-color: var(--hairline);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.result {
  margin-bottom: 12px;
}

.live-panel,
.box,
.trade-card,
.trade-verdict,
.trade-rules article {
  padding: 14px;
}

.cheatcode-panel {
  min-height: 240px;
}

.cheatcode-hero {
  box-shadow: var(--shadow-soft);
}

.pick-card,
.intel-card {
  padding: 10px;
}

.pick-card span,
.pick-card small,
.intel-card small,
.intel-card p {
  line-height: 1.35;
}

input,
select,
textarea,
.board-tools input,
.board-tools select,
.trade-card textarea,
.paste-box,
.sim-tools input,
.tier-board-tools input {
  border-color: rgba(19, 43, 36, 0.16);
  background: var(--control-bg);
}

.board-tools {
  gap: 10px;
}

.position-toggles {
  gap: 5px;
}

.position-toggles button,
.tab {
  min-height: 38px;
  padding-block: 7px;
}

.table-wrap {
  max-height: 660px;
}

#board-table {
  font-size: 12px;
}

#board-table th,
#board-table td {
  padding: 7px 8px;
}

.analysis-pane {
  padding: 14px;
}

.access-card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

/* Final responsive guardrails: keep late desktop polish from overriding mobile. */
@media (max-width: 860px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 18px;
  }

  .draft-card,
  .account-card,
  .league-switcher {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .content,
  .panel,
  .command-hero,
  .live-panel,
  .all-teams-draft-board,
  .war-room-command,
  .account-grid,
  .account-progress,
  .account-league-list > article,
  .trade-card,
  .trade-verdict {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .war-room-command,
  .war-room-signals {
    grid-template-columns: 1fr;
  }

  .account-progress {
    grid-template-columns: 1fr;
  }

  .account-league-list > article {
    display: grid;
  }

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

  .draft-league-override {
    grid-template-columns: 1fr 1fr;
  }

  .draft-paste-sync {
    grid-template-columns: 1fr;
  }

  .draft-bridge-sync {
    align-items: stretch;
    flex-direction: column;
  }

  .panel {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 16px 14px;
  }

  .brand-lockup {
    align-items: center;
  }

  .brand-lockup img {
    width: 58px;
    height: 58px;
  }

  .layout {
    padding: 14px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .nav-item {
    min-height: 48px;
    padding: 10px;
    text-align: left;
  }

  .panel {
    padding: 16px;
  }

  .command-hero {
    padding: 18px;
  }

  .command-hero h2 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.08;
  }

  .hero-actions,
  .live-switches,
  .draft-league-override,
  .draft-paste-sync,
  .draft-bridge-sync,
  .add-league-actions,
  .access-grid,
  .access-actions,
  .player-drawer-grid,
  .player-drawer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .live-switches button,
  .draft-league-override button,
  .draft-paste-sync button,
  .draft-bridge-sync button,
  .draft-bridge-sync a,
  .add-league-actions button,
  .player-drawer-actions button {
    width: 100%;
  }

  .player-drawer-panel {
    padding: 22px 16px;
  }

  .draft-board-grid {
    grid-template-columns: repeat(var(--draft-team-count, 12), minmax(124px, 1fr));
    min-width: calc(var(--draft-team-count, 12) * 128px);
  }

  .access-gate {
    align-items: start;
    padding: 12px;
    overflow: auto;
  }

  .access-card {
    max-height: none;
    padding: 18px;
  }

  .access-card h2 {
    font-size: clamp(25px, 8vw, 31px);
  }

  .access-card label {
    margin: 14px 0 10px;
  }

  .access-card input {
    min-height: 48px;
  }

  .access-forgot {
    margin-left: 0;
    text-align: left;
  }
}

/* Premium product polish pass */
:root {
  --canvas-bg: #061511;
  --panel-bg: #fffdf9;
  --panel-bg-soft: #f4efe3;
  --control-bg: #fffefa;
  --ink: #111713;
  --muted: #536057;
  --hairline: rgba(19, 43, 36, 0.13);
  --premium-teal: #2a6f79;
  --premium-leather: #8a4f24;
  --shadow: 0 18px 42px rgba(4, 17, 14, 0.17);
  --shadow-soft: 0 8px 20px rgba(4, 17, 14, 0.08);
}

body {
  background:
    linear-gradient(180deg, rgba(4, 17, 14, 0.86), rgba(4, 17, 14, 0.42) 44%, rgba(4, 17, 14, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(243, 208, 113, 0.1), transparent 26%),
    radial-gradient(circle at 82% 2%, rgba(42, 111, 121, 0.16), transparent 28%),
    linear-gradient(135deg, #061511, #0f3a30 48%, #122720);
}

.field-overlay {
  opacity: 0.18;
  mix-blend-mode: screen;
}

.topbar {
  border-bottom: 1px solid rgba(255, 241, 189, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 241, 189, 0.08) 0 1px, transparent 1px 96px),
    linear-gradient(135deg, rgba(6, 21, 17, 0.96), rgba(17, 52, 45, 0.93) 52%, rgba(42, 111, 121, 0.88));
  box-shadow: 0 16px 44px rgba(3, 12, 10, 0.3);
}

.brand-lockup h1 {
  color: #fff7dd;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 0.95;
}

.brand-lockup img {
  border-color: rgba(255, 241, 189, 0.64);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(42, 111, 121, 0.16);
}

.draft-card,
.account-card,
.league-switcher {
  border-color: rgba(255, 241, 189, 0.16);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.11), rgba(6, 21, 17, 0.34)), rgba(6, 21, 17, 0.58);
  color: var(--logo-cream);
  backdrop-filter: blur(16px);
}

.draft-card span,
.draft-card small,
.account-card span,
.league-switcher span,
.league-switcher small {
  color: rgba(255, 241, 189, 0.86);
  font-weight: 850;
}

.draft-card strong,
.account-card strong,
.league-switcher strong {
  color: var(--logo-gold);
}

.layout {
  align-items: start;
}

.sidebar {
  border-color: rgba(255, 241, 189, 0.15);
  background: linear-gradient(180deg, rgba(7, 29, 24, 0.88), rgba(6, 21, 17, 0.78)), rgba(6, 21, 17, 0.72);
  backdrop-filter: blur(18px);
}

.nav-item {
  border: 1px solid transparent;
  color: rgba(255, 241, 189, 0.72);
}

.nav-item:hover {
  border-color: rgba(255, 241, 189, 0.16);
  background: rgba(255, 241, 189, 0.08);
  color: #fff7dd;
}

.nav-item.active {
  border-color: rgba(243, 208, 113, 0.38);
  background: linear-gradient(90deg, rgba(243, 208, 113, 0.18), rgba(255, 241, 189, 0.07)), rgba(255, 241, 189, 0.05);
  color: var(--logo-gold);
  box-shadow: inset 4px 0 0 var(--logo-gold);
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.5);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(244, 239, 227, 0.98)), var(--panel-bg);
  box-shadow:
    0 22px 54px rgba(3, 12, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.panel::before {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold), var(--premium-teal), var(--premium-leather));
}

.panel-head {
  border-bottom-color: rgba(19, 43, 36, 0.08);
}

.command-hero {
  border: 1px solid rgba(255, 241, 189, 0.18);
  background:
    linear-gradient(135deg, rgba(6, 21, 17, 0.96), rgba(18, 63, 52, 0.92) 50%, rgba(42, 111, 121, 0.84)), var(--field);
  box-shadow:
    0 24px 64px rgba(3, 12, 10, 0.28),
    inset 0 1px 0 rgba(255, 241, 189, 0.16);
}

.command-hero::before {
  opacity: 0.34;
}

.command-hero::after {
  color: rgba(255, 241, 189, 0.12);
}

.command-hero h2 {
  max-width: 900px;
  color: #fff7dd;
}

.command-hero p {
  color: rgba(255, 247, 221, 0.9);
  font-weight: 700;
}

.panel p,
.metric small,
.command-tile small,
.pick-card small,
.intel-card small,
.live-stat small,
.live-clock small,
.account-league-list p,
.support-panel p {
  color: rgba(19, 43, 36, 0.78);
  font-weight: 700;
}

.metric,
.command-tile,
.strategy-card,
.plan,
.live-panel,
.trade-card,
.trade-verdict,
.trade-rules article,
.analysis-pane,
.table-wrap,
.pick-card,
.intel-card,
.account-league-list > article,
.support-panel {
  border-color: rgba(19, 43, 36, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 249, 0.96)), var(--panel-bg);
  box-shadow:
    0 8px 22px rgba(4, 17, 14, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.metric,
.command-tile,
.live-panel,
.trade-card,
.pick-card,
.intel-card {
  position: relative;
}

.metric::before,
.command-tile::before,
.live-panel::before,
.trade-card::before {
  opacity: 0.72;
}

.alpha-strip article {
  border-color: rgba(19, 43, 36, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 253, 249, 0.98)), var(--panel-bg);
}

.alpha-strip article:first-child {
  background:
    linear-gradient(135deg, rgba(6, 21, 17, 0.98), rgba(18, 63, 52, 0.94) 56%, rgba(42, 111, 121, 0.9)), var(--field);
  box-shadow: 0 14px 34px rgba(4, 17, 14, 0.16);
}

.war-room-command.live-panel {
  border-color: rgba(255, 241, 189, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 21, 17, 0.98), rgba(18, 63, 52, 0.96) 58%, rgba(42, 111, 121, 0.9)), var(--field);
  color: var(--logo-cream);
  box-shadow:
    0 18px 44px rgba(3, 12, 10, 0.2),
    inset 0 1px 0 rgba(255, 241, 189, 0.12);
}

.live-clock,
.live-stat,
.live-select {
  border-color: rgba(255, 241, 189, 0.18);
  background: linear-gradient(180deg, rgba(6, 21, 17, 0.94), rgba(18, 63, 52, 0.9)), var(--field);
  box-shadow: 0 14px 34px rgba(4, 17, 14, 0.18);
}

.live-clock strong,
.live-stat strong {
  color: var(--logo-gold);
}

.live-clock span,
.live-clock small,
.live-stat span,
.live-stat small,
.live-select {
  color: rgba(255, 241, 189, 0.78);
}

input,
select,
textarea,
.paste-box,
.tier-board-tools input,
.board-tools input,
.board-tools select {
  border-color: rgba(19, 43, 36, 0.16);
  background: linear-gradient(180deg, #fffefa, #fbf7ed), var(--control-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.primary-action,
.subscribe-button,
.account-card button,
.live-switches button,
.board-tools button,
.grader button,
.sim-draft-button {
  border-color: rgba(59, 33, 21, 0.14);
  background: linear-gradient(180deg, #f8d977, #c49431), var(--logo-gold);
  color: #1b1409;
  font-weight: 950;
}

.secondary-action,
.position-toggles button,
.tab {
  border-color: rgba(18, 63, 52, 0.18);
  background: linear-gradient(180deg, #163f35, #071d18), var(--field-dark);
  color: var(--logo-gold);
}

.primary-action:hover,
.secondary-action:hover,
.subscribe-button:hover,
.account-card button:hover,
.live-switches button:hover,
.board-tools button:hover,
.grader button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(4, 17, 14, 0.16);
}

.draft-room-advanced summary {
  border-color: rgba(19, 43, 36, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 249, 0.96)), var(--panel-bg);
}

#board-table th {
  background: linear-gradient(180deg, #112f28, #071d18);
  color: var(--logo-gold);
}

#board-table tbody tr:hover:not(.board-tier-divider-row) {
  background: #eef7f2;
}

/* Readability pass: make small helper text clearer without changing headline weight. */
:root {
  --muted: #465247;
}

small,
.tier-note,
.command-tile small,
.alpha-strip small,
.trade-player-chip span,
.trade-player-chip small,
.trade-score-grid small,
.trade-quality-grid small,
.post-draft-hero small,
.post-draft-grid p,
.trade-finder-grid p,
.waiver-assistant p,
.trade-rules p,
.player-synopsis small,
.player-drawer-grid small,
.intel-card small,
.pick-card small,
.cheatcode-hero small,
.tier-divider small,
.sim-player-row small,
.draft-order-grid small,
.mini-table small,
.league-switcher-actions small,
.first-run-guide small,
.access-card small {
  color: var(--muted);
  font-weight: 850;
}

.live-clock small,
.live-stat small,
.war-room-main p,
.war-room-secondary,
.war-room-signals article small,
.alpha-strip article:first-child small {
  color: rgba(255, 247, 221, 0.9);
  font-weight: 850;
}

@media (max-width: 860px) {
  .topbar,
  .sidebar {
    backdrop-filter: none;
  }

  .post-draft-hero,
  .post-draft-grid,
  .trade-intelligence-grid,
  .trade-finder-grid,
  .trade-idea-flow {
    grid-template-columns: 1fr;
  }

  .post-draft-hero strong,
  .trade-lane-summary strong {
    font-size: 22px;
  }
}

/* MyFantasyIQ crest refresh */
:root {
  --field: #043b34;
  --field-dark: #00110f;
  --logo-gold: #e7b95a;
  --logo-cream: #f9f0dc;
  --accent-2: #d8a047;
}

.brand-lockup img {
  object-fit: contain;
  border-radius: 18px;
  background: #001715;
  box-shadow:
    0 18px 42px rgba(0, 8, 7, 0.42),
    0 0 0 6px rgba(231, 185, 90, 0.1);
}

.brand-lockup h1 {
  background: linear-gradient(120deg, #fffdf7, #e8dfcf 48%, #f2c85f 49%, #d39835 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar {
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 232, 163, 0.14) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(90deg, rgba(255, 232, 163, 0.1) 0 1px, transparent 1px 92px),
    linear-gradient(135deg, rgba(0, 17, 15, 0.98), rgba(4, 59, 52, 0.94));
}

/* MyFantasyIQ final dashboard polish */
.brand-lockup h1 {
  background: linear-gradient(120deg, #fffdf7 0%, #f3ead8 46%, #ffe28a 47%, #d69d38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 10px 24px rgba(0, 8, 7, 0.5));
}

.brand-lockup img {
  border-color: rgba(255, 232, 163, 0.74);
}

.draft-card,
.league-switcher,
.account-card {
  background: linear-gradient(145deg, rgba(255, 248, 232, 0.1), rgba(255, 248, 232, 0.035)), rgba(0, 17, 15, 0.78);
}

.hero-panel {
  background: linear-gradient(118deg, rgba(0, 17, 15, 0.98), rgba(5, 77, 68, 0.78)), var(--field-dark);
}

.brand-lockup {
  gap: 0;
}

.brand-lockup img {
  width: min(420px, 38vw);
  height: auto;
  max-height: 124px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-lockup > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .brand-lockup img {
    width: min(360px, 86vw);
    max-height: none;
  }
}

/* Final contrast guard: command hero copy sits on a dark premium panel. */
.panel .command-hero p,
.command-hero p {
  color: rgba(255, 253, 247, 0.94);
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0, 8, 7, 0.42);
}

/* Product vision pass: Command Center starts with the next-best move. */
.next-move-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, 0.55fr));
  gap: 12px;
  margin: 0 0 14px;
}

.next-move-panel article,
.decision-support-grid article {
  min-width: 0;
  border: 1px solid rgba(19, 43, 36, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 249, 0.98)), var(--panel-bg);
  padding: 16px;
  box-shadow:
    0 8px 22px rgba(4, 17, 14, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.next-move-panel span,
.decision-support-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.next-move-primary {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--logo-cream);
  background:
    linear-gradient(135deg, rgba(0, 17, 15, 0.98), rgba(18, 63, 52, 0.94) 54%, rgba(42, 111, 121, 0.9)),
    var(--field-dark) !important;
}

.next-move-primary[data-action="act-now"] {
  border-color: rgba(45, 126, 87, 0.5);
}

.next-move-primary[data-action="avoid"] {
  border-color: rgba(156, 57, 43, 0.48);
}

.next-move-primary span {
  color: rgba(255, 241, 189, 0.78);
}

.next-move-primary strong {
  color: #fffdf8;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
}

.next-move-primary p {
  margin: 0;
  color: rgba(255, 247, 221, 0.9);
  font-weight: 800;
  line-height: 1.45;
}

.next-move-score {
  display: grid;
  align-content: start;
  gap: 6px;
}

.next-move-score strong {
  color: var(--accent);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1;
}

.next-move-score small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.decision-support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin: 0 0 18px;
}

.decision-support-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.decision-support-grid p,
.decision-support-grid strong {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.decision-support-grid strong {
  font-size: 15px;
}

.my-team-command,
.my-team-layout {
  display: grid;
  gap: 14px;
}

.my-team-command {
  margin-bottom: 14px;
}

.my-team-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(190px, 0.9fr));
  gap: 12px;
}

.my-team-hero.waiting-draft {
  grid-template-columns: 1fr;
}

.my-team-hero article,
.my-team-position-card,
.my-team-card {
  min-width: 0;
  border: 1px solid rgba(19, 43, 36, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 253, 248, 0.98)), var(--panel-bg);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(4, 17, 14, 0.06);
}

.my-team-hero article:first-child {
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(0, 17, 15, 0.98), rgba(18, 63, 52, 0.92) 56%, rgba(159, 51, 57, 0.84)),
    var(--field-dark);
}

.my-team-hero.waiting-draft article {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(180px, 0.35fr) minmax(240px, 1fr);
  gap: 16px;
  min-height: 72px;
}

.my-team-hero.waiting-draft strong {
  margin: 0;
  font-size: 28px;
}

.my-team-hero span,
.my-team-position-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.my-team-hero article:first-child span {
  color: rgba(255, 241, 189, 0.78);
}

.my-team-hero strong {
  display: block;
  margin: 6px 0;
  color: var(--accent);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.my-team-hero article:first-child strong {
  color: #fffdf8;
}

.my-team-hero small,
.my-team-position-card small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.my-team-hero article:first-child small {
  color: rgba(255, 247, 221, 0.9);
}

.my-team-position-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.my-team-position-card {
  border-left: 4px solid rgba(42, 111, 121, 0.42);
}

.my-team-position-card.good {
  border-left-color: rgba(45, 126, 87, 0.72);
}

.my-team-position-card.warn {
  border-left-color: rgba(199, 154, 59, 0.82);
}

.my-team-position-card.danger {
  border-left-color: rgba(156, 57, 43, 0.78);
}

.my-team-position-card strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.my-team-layout {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(280px, 1fr);
}

.my-team-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.my-team-card h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.my-team-list,
.my-team-actions {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.my-team-lineup-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border-bottom: 1px solid rgba(18, 63, 52, 0.1);
  padding: 0 0 9px;
}

.my-team-lineup-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.my-team-lineup-row span {
  grid-row: span 2;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--accent);
  padding: 7px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
}

.my-team-lineup-row strong,
.my-team-lineup-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-team-lineup-row strong {
  color: var(--ink);
  font-size: 14px;
}

.my-team-lineup-row small,
.my-team-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 1080px) {
  .next-move-panel {
    grid-template-columns: 1fr 1fr;
  }

  .next-move-primary {
    grid-column: 1 / -1;
  }

  .decision-support-grid {
    grid-template-columns: 1fr;
  }

  .my-team-hero,
  .my-team-layout {
    grid-template-columns: 1fr;
  }

  .my-team-hero.waiting-draft article {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .my-team-position-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .next-move-panel {
    grid-template-columns: 1fr;
  }

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

  .my-team-lineup-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* Draft Room focus pass: keep the live page calm and draft-day actionable. */
#live.panel.active {
  gap: 12px;
}

#live .panel-head {
  align-items: center;
  margin-bottom: 2px;
}

#live .panel-head h2 {
  font-size: clamp(30px, 3vw, 42px);
}

#live-status.live-alert {
  margin-bottom: 0;
  padding: 14px 16px;
}

#live > .league-room-note {
  margin-bottom: 0;
  padding: 12px 16px;
}

#live > .draft-bridge-sync {
  margin: 0;
}

#live > .draft-paste-sync,
#live > .alpha-strip,
#live > .all-teams-draft-panel,
#live > .post-draft-panel,
#live > .live-tier-panel {
  display: none;
}

#live > .draft-league-override {
  display: none;
  margin: 0;
}

#live > .draft-league-override[data-bridge-ready="false"] {
  display: grid;
}

#live > .pre-draft-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 0;
  padding: 14px 16px;
}

#live > .pre-draft-panel .pre-draft-checks {
  display: none;
}

#live > .pre-draft-panel .pre-draft-copy p {
  max-width: 920px;
  margin-bottom: 0;
}

#live > .pre-draft-panel .pre-draft-actions {
  align-self: center;
}

#live > .live-hero-grid {
  grid-template-columns: minmax(280px, 1.25fr) minmax(180px, 0.7fr) minmax(220px, 0.9fr);
  margin-bottom: 0;
}

#live > .live-hero-grid .live-stat:nth-of-type(2),
#live > .live-hero-grid .live-stat:nth-of-type(3) {
  display: none;
}

#live > .live-hero-grid .live-clock,
#live > .live-hero-grid .live-stat,
#live > .live-hero-grid .live-select {
  min-height: 150px;
}

#live > .war-room-command.live-panel {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

#live > .war-room-command .war-room-signals,
#live > .war-room-command .war-room-secondary {
  display: none;
}

#live > .draft-core-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 0;
}

#live > .draft-room-advanced {
  margin-top: 0;
}

@media (max-width: 980px) {
  #live > .pre-draft-panel,
  #live > .live-hero-grid,
  #live > .draft-core-grid {
    grid-template-columns: 1fr;
  }

  #live > .pre-draft-panel .pre-draft-actions {
    width: 100%;
  }
}

/* Final heat-map skin: keep this late so cached legacy dashboard rules cannot win the cascade. */
#live.sos-panel .sos-status-pill {
  border-color: rgba(255, 248, 232, 0.12);
  background: linear-gradient(135deg, rgba(9, 28, 45, 0.96), rgba(24, 44, 56, 0.92));
  color: #fff8e8;
}

#live.sos-panel .sos-toolbar,
#live.sos-panel .sos-table-shell {
  border-color: rgba(255, 248, 232, 0.11);
  background: #071523;
  box-shadow: 0 18px 46px rgba(0, 14, 24, 0.22);
}

#live.sos-panel .sos-toolbar {
  grid-template-columns: minmax(112px, 0.5fr) minmax(132px, 0.55fr) minmax(220px, 1fr) minmax(150px, 0.7fr) auto;
  background: linear-gradient(135deg, rgba(7, 25, 40, 0.98), rgba(20, 44, 54, 0.92));
}

#live.sos-panel .sos-toolbar label,
#live.sos-panel .sos-score-strip span,
#live.sos-panel .sos-score-strip small {
  color: rgba(255, 248, 232, 0.72);
}

#live.sos-panel .sos-toolbar select,
#live.sos-panel .sos-toolbar input,
#live.sos-panel .sos-week-toggles button,
#live.sos-panel .sos-table th button {
  border-color: rgba(255, 248, 232, 0.14);
  background: rgba(3, 13, 24, 0.72);
  color: #fff8e8;
}

#live.sos-panel .sos-week-toggles button.active {
  border-color: rgba(226, 158, 60, 0.68);
  background: #c98128;
}

#live.sos-panel .sos-score-strip article {
  border-color: rgba(255, 248, 232, 0.1);
  background: linear-gradient(145deg, #081a2c, #132d38);
}

#live.sos-panel .sos-insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#live.sos-panel .sos-insight-card {
  border-color: rgba(255, 248, 232, 0.1);
  background: rgba(5, 18, 31, 0.82);
}

#live.sos-panel .sos-insight-target {
  border-left-color: #46b276;
}

#live.sos-panel .sos-insight-stream {
  border-left-color: #d6b84d;
}

#live.sos-panel .sos-insight-fade {
  border-left-color: #d95b48;
}

#live.sos-panel .sos-insight-neutral {
  border-left-color: rgba(255, 248, 232, 0.32);
}

#live.sos-panel .sos-table {
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
}

#live.sos-panel .sos-table th {
  background: #0c1d2d;
  color: rgba(255, 248, 232, 0.78);
}

#live.sos-panel .sos-table td {
  border-bottom-color: rgba(255, 248, 232, 0.07);
  color: rgba(255, 248, 232, 0.82);
}

#live.sos-panel .sos-table td:first-child {
  color: rgba(255, 248, 232, 0.64);
}

#live.sos-panel .sos-table td:nth-child(2) {
  color: #fff8e8;
}

#live.sos-panel .sos-overall-easy {
  border-color: rgba(47, 151, 83, 0.48);
  background: rgba(47, 151, 83, 0.84);
  color: #fff8e8;
}

#live.sos-panel .sos-overall-tough {
  border-color: rgba(240, 143, 35, 0.48);
  background: rgba(240, 143, 35, 0.78);
  color: #181607;
}

#live.sos-panel .sos-playoff-week {
  background: rgba(117, 27, 34, 0.16);
}

#live.sos-panel .sos-table th.sos-playoff-week {
  border-top: 2px solid rgba(216, 62, 61, 0.82);
}

#live.sos-panel .sos-table th.sos-playoff-start,
#live.sos-panel .sos-table td.sos-playoff-start {
  border-left: 2px solid rgba(216, 62, 61, 0.82);
}

#live.sos-panel .sos-table th.sos-playoff-end,
#live.sos-panel .sos-table td.sos-playoff-end {
  border-right: 2px solid rgba(216, 62, 61, 0.82);
}

#live.sos-panel .sos-table td small {
  color: rgba(255, 248, 232, 0.58);
}

#live.sos-panel .sos-cell {
  width: 56px;
  min-height: 30px;
  border: 1px solid var(--sos-heat-border, rgba(255, 248, 232, 0.16));
  background: var(--sos-heat-bg, #253d52);
  color: var(--sos-text, #fff8e8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#live.sos-panel .sos-cell.tier-elite,
#live.sos-panel .sos-cell.tier-easy,
#live.sos-panel .sos-cell.tier-neutral,
#live.sos-panel .sos-cell.tier-hard,
#live.sos-panel .sos-cell.tier-brutal {
  background: var(--sos-heat-bg, #253d52);
  color: var(--sos-text, #fff8e8);
}

#live.sos-panel .sos-mini-bars span {
  background: var(--sos-bar-bg, #657384);
}

#live.sos-panel .sos-mini-bars span.bye {
  background: rgba(255, 248, 232, 0.18);
}

#live.sos-panel .sos-call-target {
  border-color: rgba(70, 178, 118, 0.42);
  background: rgba(70, 178, 118, 0.16);
  color: #9ff0bf;
}

#live.sos-panel .sos-call-stream {
  border-color: rgba(214, 184, 77, 0.44);
  background: rgba(214, 184, 77, 0.16);
  color: #ffe38a;
}

#live.sos-panel .sos-call-fade {
  border-color: rgba(217, 91, 72, 0.46);
  background: rgba(217, 91, 72, 0.15);
  color: #ffb2a6;
}

#live.sos-panel .sos-call-neutral {
  border-color: rgba(255, 248, 232, 0.13);
  background: rgba(255, 248, 232, 0.06);
  color: rgba(255, 248, 232, 0.74);
}

#live.sos-panel .sos-legend .tier-elite {
  --sos-heat-bg: #2f9753;
  --sos-heat-border: rgba(47, 151, 83, 0.72);
}

#live.sos-panel .sos-legend .tier-easy {
  --sos-heat-bg: #77bf48;
  --sos-heat-border: rgba(119, 191, 72, 0.72);
  --sos-text: #102014;
}

#live.sos-panel .sos-legend .tier-neutral {
  --sos-heat-bg: #dfe834;
  --sos-heat-border: rgba(226, 232, 52, 0.72);
  --sos-text: #1b1208;
}

#live.sos-panel .sos-legend .tier-hard {
  --sos-heat-bg: #f08f23;
  --sos-heat-border: rgba(240, 143, 35, 0.72);
  --sos-text: #1b1208;
}

#live.sos-panel .sos-legend .tier-brutal {
  --sos-heat-bg: #d83e3d;
  --sos-heat-border: rgba(216, 62, 61, 0.72);
}

@media (max-width: 900px) {
  #live.sos-panel .sos-toolbar,
  #live.sos-panel .sos-insights {
    grid-template-columns: 1fr;
  }
}

/* Ultra-premium SaaS pass: a single late layer that turns the dashboard into a calmer command desk. */
:root {
  --lux-ink: #00110f;
  --lux-canvas: #041511;
  --lux-panel: rgba(5, 22, 19, 0.92);
  --lux-panel-strong: rgba(7, 29, 24, 0.96);
  --lux-panel-soft: rgba(249, 240, 220, 0.055);
  --lux-field: #123f34;
  --lux-gold: #e7b95a;
  --lux-cream: #f9f0dc;
  --lux-paper: #fffdf9;
  --lux-muted: rgba(249, 240, 220, 0.68);
  --lux-subtle: rgba(249, 240, 220, 0.46);
  --lux-line: rgba(249, 240, 220, 0.11);
  --lux-line-strong: rgba(231, 185, 90, 0.34);
  --lux-success: #6ee3a3;
  --lux-danger: #ff7a68;
  --lux-shadow: 0 28px 90px rgba(0, 8, 7, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --lux-shadow-soft: 0 18px 54px rgba(0, 8, 7, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --lux-focus: 0 0 0 3px rgba(231, 185, 90, 0.32), 0 0 0 6px rgba(249, 240, 220, 0.1);
  --gold: var(--lux-gold);
}

html {
  background: var(--lux-ink);
}

body {
  background:
    linear-gradient(180deg, rgba(0, 17, 15, 0.94), rgba(0, 17, 15, 0.74) 44%, rgba(0, 17, 15, 0.96)),
    repeating-linear-gradient(90deg, rgba(249, 240, 220, 0.026) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(180deg, rgba(249, 240, 220, 0.018) 0 1px, transparent 1px 92px),
    linear-gradient(135deg, #00110f 0%, #051d19 52%, #0a2f28 100%);
  color: var(--lux-cream);
  cursor: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 42%, rgba(231, 185, 90, 0.065) 42.2%, transparent 42.7%),
    linear-gradient(90deg, transparent 0 82%, rgba(249, 240, 220, 0.04) 82.2%, transparent 82.5%);
  opacity: 0.72;
}

.field-overlay {
  opacity: 0.09;
  mix-blend-mode: screen;
}

.field-overlay::before,
.field-overlay::after {
  opacity: 0.18;
}

.field-endzone,
.yard-number {
  opacity: 0.22;
}

button,
a,
input,
select,
textarea {
  cursor: auto;
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  box-shadow: var(--lux-focus);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(0, 17, 15, 0.96), rgba(0, 17, 15, 0.88)), rgba(0, 17, 15, 0.94);
  box-shadow: 0 20px 70px rgba(0, 8, 7, 0.38);
}

.brand-lockup img {
  width: min(286px, 28vw);
  max-height: 98px;
}

.draft-card,
.league-switcher,
.account-card {
  border: 1px solid var(--lux-line);
  background: linear-gradient(145deg, rgba(249, 240, 220, 0.075), rgba(249, 240, 220, 0.025)), rgba(0, 17, 15, 0.76);
  box-shadow: var(--lux-shadow-soft);
}

.draft-card .subscribe-button {
  display: none;
}

.draft-card span,
.league-switcher span,
.account-card span,
.draft-card small,
.league-switcher small,
.account-card small {
  color: var(--lux-muted);
}

.draft-card strong,
.league-switcher strong,
.account-card strong {
  color: var(--lux-paper);
}

.demo-banner {
  border-bottom: 1px solid rgba(231, 185, 90, 0.22);
  background: linear-gradient(90deg, rgba(231, 185, 90, 0.16), rgba(249, 240, 220, 0.06)), rgba(0, 17, 15, 0.82);
  color: var(--lux-cream);
}

.demo-banner a {
  border-color: rgba(231, 185, 90, 0.48);
  background: rgba(231, 185, 90, 0.16);
  color: var(--lux-gold);
}

.layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  padding: 26px clamp(18px, 3vw, 42px) 42px;
}

.sidebar {
  position: sticky;
  top: 132px;
  align-self: start;
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.055), rgba(249, 240, 220, 0.02)), rgba(0, 17, 15, 0.72);
  box-shadow: var(--lux-shadow-soft);
}

.nav-item {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--lux-muted);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.nav-item:hover {
  border-color: rgba(249, 240, 220, 0.12);
  background: rgba(249, 240, 220, 0.06);
  color: var(--lux-cream);
  transform: translateX(2px);
}

.nav-item.active {
  border-color: rgba(231, 185, 90, 0.28);
  background: linear-gradient(90deg, rgba(231, 185, 90, 0.16), rgba(249, 240, 220, 0.045)), rgba(18, 63, 52, 0.42);
  color: var(--lux-gold);
  box-shadow: none;
}

.nav-item.active::before {
  background: var(--lux-gold);
  box-shadow: 0 0 22px rgba(231, 185, 90, 0.52);
}

.panel {
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.05), rgba(249, 240, 220, 0.025)), rgba(0, 17, 15, 0.74);
  color: var(--lux-cream);
  box-shadow: var(--lux-shadow);
  backdrop-filter: blur(18px);
  animation: premium-panel-enter 420ms ease both;
}

.panel::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 185, 90, 0.76), transparent);
}

.panel h2,
.panel h3 {
  color: var(--lux-paper);
}

.panel p,
.panel small {
  color: var(--lux-muted);
}

.panel .eyebrow {
  color: var(--lux-gold);
}

.panel-head {
  border-bottom: 1px solid var(--lux-line);
}

.premium-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid rgba(231, 185, 90, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 17, 15, 0.98) 0%, rgba(6, 33, 28, 0.96) 52%, rgba(18, 63, 52, 0.82) 100%),
    var(--lux-ink);
  box-shadow: 0 30px 90px rgba(0, 8, 7, 0.45);
}

.premium-command-hero::before {
  opacity: 0.18;
}

.premium-command-hero::after {
  content: "IQ";
  left: auto;
  right: clamp(18px, 4vw, 52px);
  opacity: 0.16;
}

.command-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 320px;
}

.command-hero-copy h2 {
  max-width: 840px;
  color: var(--lux-paper);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
}

.command-hero-copy p {
  max-width: 740px;
  color: rgba(249, 240, 220, 0.86);
}

.command-primary-actions {
  margin-top: 12px;
}

.command-primary-actions .primary-action,
.command-primary-actions .secondary-action {
  min-height: 48px;
  border-radius: 8px;
}

.command-hero-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid rgba(249, 240, 220, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.065), rgba(249, 240, 220, 0.025)), rgba(0, 17, 15, 0.42);
  padding: 16px;
}

.command-hero-orbit span,
.command-hero-orbit strong {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(249, 240, 220, 0.09);
  border-radius: 8px;
  background: rgba(249, 240, 220, 0.045);
  padding: 0 12px;
  color: rgba(249, 240, 220, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-hero-orbit span::after,
.command-hero-orbit strong::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(249, 240, 220, 0.32);
}

.command-hero-orbit strong {
  border-color: rgba(231, 185, 90, 0.38);
  background: rgba(231, 185, 90, 0.14);
  color: var(--lux-gold);
}

.command-hero-orbit strong::after {
  background: var(--lux-gold);
  box-shadow: 0 0 18px rgba(231, 185, 90, 0.72);
}

.command-lane-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.command-lane-strip button {
  min-height: 40px;
  border: 1px solid rgba(249, 240, 220, 0.12);
  border-radius: 999px;
  background: rgba(249, 240, 220, 0.045);
  color: rgba(249, 240, 220, 0.76);
  font-weight: 900;
  padding: 0 14px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.command-lane-strip button:hover {
  border-color: rgba(231, 185, 90, 0.34);
  background: rgba(231, 185, 90, 0.11);
  color: var(--lux-gold);
  transform: translateY(-1px);
}

.premium-iq-brief {
  grid-template-columns: minmax(320px, 1.5fr) repeat(3, minmax(150px, 0.55fr));
}

.next-move-panel article,
.decision-support-grid article,
.metric,
.box,
.result,
.command,
.plan,
.strategy-card,
.command-tile,
.trade-card,
.trade-verdict,
.trade-rules article,
.live-clock,
.live-stat,
.live-select,
.live-panel,
.analysis-pane,
.table-wrap,
.league-health-panel,
.intelligence-os-panel,
.first-run-guide article,
.my-team-hero article,
.my-team-position-card,
.my-team-card,
.waiver-iq-card,
.waiver-iq-hero article {
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.06), rgba(249, 240, 220, 0.026)), rgba(0, 17, 15, 0.58);
  color: var(--lux-cream);
  box-shadow: var(--lux-shadow-soft);
}

.next-move-panel article:hover,
.decision-support-grid article:hover,
.metric:hover,
.command-tile:hover,
.live-panel:hover,
.sos-insight-card:hover {
  border-color: rgba(231, 185, 90, 0.22);
  transform: translateY(-1px);
}

.next-move-panel span,
.decision-support-grid span,
.metric span,
.command-tile span,
.live-stat span,
.analysis-chip span,
.intelligence-grid span,
.league-health-grid span {
  color: var(--lux-subtle);
}

.next-move-primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(231, 185, 90, 0.32) !important;
  background: linear-gradient(135deg, rgba(0, 17, 15, 0.98), rgba(10, 44, 37, 0.96)), var(--lux-ink) !important;
}

.next-move-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--lux-gold);
  pointer-events: none;
}

.next-move-primary::after {
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 185, 90, 0.8), transparent);
}

.next-move-primary span {
  color: var(--lux-gold);
}

.next-move-primary strong {
  color: var(--lux-paper);
  text-wrap: balance;
}

.next-move-primary p,
.decision-support-grid p,
.decision-support-grid strong,
.metric small,
.command-tile small,
.intelligence-reasons p,
.league-health-grid small,
.intelligence-grid small {
  color: var(--lux-muted);
}

.next-move-score {
  position: relative;
  overflow: hidden;
}

.next-move-score::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 185, 90, 0.14), rgba(231, 185, 90, 0.52), transparent);
}

.next-move-score strong,
.metric strong,
.command-tile strong,
.live-stat strong,
.trade-card-head strong,
.intelligence-grid strong,
.league-health-grid strong {
  color: var(--lux-paper);
}

.score-glow {
  color: var(--lux-gold) !important;
  text-shadow: 0 0 28px rgba(231, 185, 90, 0.26);
}

.score-glow[data-score-tone="elite"],
.score-glow[data-score-tone="strong"] {
  animation: score-breathe 2.8s ease-in-out infinite;
}

.score-glow[data-score-tone="elite"] {
  text-shadow:
    0 0 38px rgba(231, 185, 90, 0.46),
    0 0 72px rgba(110, 227, 163, 0.16);
}

.skeleton-line {
  position: relative;
  display: block;
  width: min(100%, 560px);
  height: 0.86em;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(249, 240, 220, 0.12);
}

.skeleton-line.wide {
  width: min(92%, 640px);
}

.skeleton-line.short {
  width: 38%;
}

.skeleton-line.long {
  width: 76%;
}

.skeleton-card {
  display: grid;
  gap: 10px;
  align-content: center;
}

.skeleton-card strong.skeleton-line,
.skeleton-card small.skeleton-line {
  color: transparent;
}

.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(249, 240, 220, 0.32), transparent);
  animation: skeleton-sheen 1.7s ease-in-out infinite;
}

.decision-support-grid {
  grid-template-columns: minmax(300px, 1.35fr) repeat(2, minmax(220px, 0.8fr));
}

.intelligence-os-panel,
.league-health-panel {
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 16px;
}

.intelligence-main-card {
  border-color: rgba(231, 185, 90, 0.24);
  background: linear-gradient(135deg, rgba(231, 185, 90, 0.13), rgba(249, 240, 220, 0.035)), rgba(0, 17, 15, 0.58);
  color: var(--lux-cream);
}

.intelligence-main-card strong {
  color: var(--lux-gold);
}

.intelligence-grid article,
.league-health-grid article {
  border-color: var(--lux-line);
  background: rgba(249, 240, 220, 0.045);
}

.league-health-grid article.good {
  border-left-color: rgba(110, 227, 163, 0.6);
}

.league-health-grid article.warn {
  border-left-color: rgba(231, 185, 90, 0.72);
}

.league-health-grid article.danger {
  border-left-color: rgba(255, 122, 104, 0.72);
}

.sync-stage-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: rgba(249, 240, 220, 0.08);
}

.sync-stage-track span,
.sync-stage-track strong {
  min-height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 17, 15, 0.7);
  color: var(--lux-muted);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.sync-stage-track strong {
  color: var(--lux-gold);
}

.is-syncing .sync-stage-track span,
.is-syncing .command-hero-orbit span {
  animation: stage-scan 1.8s ease-in-out infinite;
}

.is-syncing .sync-stage-track span:nth-child(2),
.is-syncing .command-hero-orbit span:nth-child(2) {
  animation-delay: 120ms;
}

.is-syncing .sync-stage-track span:nth-child(3),
.is-syncing .command-hero-orbit span:nth-child(3) {
  animation-delay: 240ms;
}

.is-syncing .sync-stage-track span:nth-child(4),
.is-syncing .command-hero-orbit span:nth-child(4) {
  animation-delay: 360ms;
}

.is-syncing .sync-stage-track span:nth-child(5),
.is-syncing .command-hero-orbit span:nth-child(5) {
  animation-delay: 480ms;
}

.first-run-guide article {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.first-run-guide span {
  background: rgba(231, 185, 90, 0.16);
  color: var(--lux-gold);
}

.command-sync-controls {
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: rgba(0, 17, 15, 0.56);
  padding: 10px;
}

.command-sync-controls button,
.primary-action,
.grader button,
.board-tools button,
.subscribe-button,
.demo-banner a {
  border-color: rgba(231, 185, 90, 0.42);
  background: var(--lux-gold);
  color: #1b1409;
  box-shadow: 0 14px 34px rgba(0, 8, 7, 0.24);
}

.secondary-action,
.tab,
.position-toggles button,
.live-switches button,
.live-switches select,
.command-sync-controls label {
  border-color: rgba(249, 240, 220, 0.12);
  background: rgba(249, 240, 220, 0.055);
  color: var(--lux-cream);
}

.primary-action:hover,
.secondary-action:hover,
.tab:hover,
.position-toggles button:hover,
.live-switches button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 8, 7, 0.28);
}

input,
select,
textarea,
.board-tools input,
.board-tools select,
.trade-card textarea,
.paste-box,
.sim-tools input,
.sim-tools select,
.tier-board-tools input {
  border-color: rgba(249, 240, 220, 0.14);
  background: rgba(0, 17, 15, 0.62);
  color: var(--lux-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

input::placeholder,
textarea::placeholder {
  color: rgba(249, 240, 220, 0.38);
}

.table-wrap,
.sos-table-shell {
  overflow: auto;
  border-color: var(--lux-line);
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.035), rgba(249, 240, 220, 0.015)), rgba(0, 17, 15, 0.74);
}

#board-table,
#live.sos-panel .sos-table {
  border-collapse: separate;
  border-spacing: 0;
}

#board-table th,
#board-table td,
#live.sos-panel .sos-table th,
#live.sos-panel .sos-table td {
  border-bottom: 1px solid rgba(249, 240, 220, 0.07);
  background: transparent;
  color: rgba(249, 240, 220, 0.78);
}

#board-table th,
#live.sos-panel .sos-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(2, 17, 15, 0.96);
  color: var(--lux-muted);
  backdrop-filter: blur(12px);
}

#board-table td:first-child,
#live.sos-panel .sos-table td:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(3, 19, 16, 0.96);
  color: var(--lux-paper);
  box-shadow: 1px 0 0 rgba(249, 240, 220, 0.08);
}

#board-table tbody tr:nth-child(even):not(.board-tier-divider-row) {
  background: rgba(249, 240, 220, 0.025);
}

#board-table tbody tr:hover:not(.board-tier-divider-row),
#live.sos-panel .sos-table tbody tr:hover {
  background: rgba(231, 185, 90, 0.075);
}

#board-table button.player-link {
  color: var(--lux-paper);
}

.tier-pill,
.precise-tier-pill,
.sos-overall-badge,
.sos-call,
.analysis-chip {
  border-radius: 999px;
}

#live.sos-panel .sos-status-pill,
#live.sos-panel .sos-toolbar,
#live.sos-panel .sos-table-shell,
#live.sos-panel .sos-score-strip article,
#live.sos-panel .sos-insight-card {
  border-color: var(--lux-line);
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.045), rgba(249, 240, 220, 0.018)), rgba(0, 17, 15, 0.72);
  box-shadow: var(--lux-shadow-soft);
}

#live.sos-panel .sos-toolbar {
  background: rgba(0, 17, 15, 0.7);
}

#live.sos-panel .sos-toolbar select,
#live.sos-panel .sos-toolbar input,
#live.sos-panel .sos-week-toggles button,
#live.sos-panel .sos-table th button {
  border-color: rgba(249, 240, 220, 0.12);
  background: rgba(0, 17, 15, 0.62);
  color: var(--lux-cream);
}

#live.sos-panel .sos-cell {
  width: 58px;
  min-height: 32px;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 var(--sos-glow-size, 18px) rgba(0, 0, 0, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

#live.sos-panel .sos-cell:hover,
#live.sos-panel .sos-cell:focus-visible {
  transform: translateY(-1px) scale(1.02);
}

.sos-overall-cell {
  min-width: 188px;
}

.sos-overall-cell .sos-mini-bars {
  margin: 8px 0 5px;
}

#live.sos-panel .sos-table th:first-child,
#live.sos-panel .sos-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 44px;
  background: rgba(3, 19, 16, 0.98);
}

#live.sos-panel .sos-table th:nth-child(2),
#live.sos-panel .sos-table td:nth-child(2) {
  position: sticky;
  left: 44px;
  z-index: 5;
  min-width: 220px;
  background: rgba(3, 19, 16, 0.98);
  box-shadow: 1px 0 0 rgba(249, 240, 220, 0.08);
}

#live.sos-panel .sos-table th:first-child,
#live.sos-panel .sos-table th:nth-child(2) {
  z-index: 7;
}

.trade-verdict,
.trade-score-grid div,
.trade-quality-grid div,
.trade-lineup-grid section {
  background: linear-gradient(180deg, rgba(249, 240, 220, 0.055), rgba(249, 240, 220, 0.02)), rgba(0, 17, 15, 0.62);
  color: var(--lux-cream);
}

.trade-quality-track {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(249, 240, 220, 0.12);
  border-radius: 8px;
  background: rgba(0, 17, 15, 0.58);
}

.trade-quality-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 122, 104, 0.82), rgba(231, 185, 90, 0.88), rgba(110, 227, 163, 0.82));
}

.trade-quality-track b {
  position: relative;
  z-index: 1;
  width: 25%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 249, 0.86);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.trade-breakdown-grid article {
  position: relative;
  overflow: hidden;
}

.trade-breakdown-grid article::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 185, 90, 0.68), transparent);
}

.analysis-pane {
  position: sticky;
  top: 132px;
}

.pick-card,
.intel-card,
.account-progress article,
.account-league-list > article,
.league-health-grid article,
.draft-board-pick,
.player-suggestion,
.trade-idea-card,
.waiver-iq-card article {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    filter 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .pick-card:hover,
  .intel-card:hover,
  .account-progress article:hover,
  .account-league-list > article:hover,
  .league-health-grid article:hover,
  .player-suggestion:hover,
  .trade-idea-card:hover {
    border-color: rgba(231, 185, 90, 0.22);
    box-shadow: 0 18px 38px rgba(0, 8, 7, 0.24);
    transform: translateY(-1px);
  }

  .draft-board-pick:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

.pick-card.newest,
.draft-board-pick.current {
  animation: card-arrive 420ms ease both;
}

#live[data-sync-phase="fetching"] .progress-shell div,
#command[data-sync-phase="fetching"] .sync-stage-track span,
#command[data-sync-phase="rendering"] .sync-stage-track strong {
  background-image: linear-gradient(
    90deg,
    rgba(249, 240, 220, 0.05),
    rgba(231, 185, 90, 0.18),
    rgba(249, 240, 220, 0.05)
  );
  background-size: 200% 100%;
  animation: sync-stripe 900ms linear infinite;
}

#live[aria-busy="true"] .sos-status-pill,
#command[aria-busy="true"] .premium-iq-brief {
  border-color: rgba(231, 185, 90, 0.28);
}

@keyframes premium-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-arrive {
  from {
    box-shadow: 0 0 0 rgba(231, 185, 90, 0);
    transform: translateY(4px);
  }

  to {
    box-shadow: 0 18px 38px rgba(231, 185, 90, 0.2);
    transform: translateY(0);
  }
}

@keyframes sync-stripe {
  from {
    background-position: 0 0;
  }

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

@keyframes skeleton-sheen {
  to {
    transform: translateX(100%);
  }
}

@keyframes score-breathe {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

@keyframes stage-scan {
  0%,
  100% {
    border-color: rgba(249, 240, 220, 0.09);
    background: rgba(249, 240, 220, 0.045);
    color: rgba(249, 240, 220, 0.72);
  }

  50% {
    border-color: rgba(231, 185, 90, 0.42);
    background: rgba(231, 185, 90, 0.13);
    color: var(--lux-gold);
  }
}

@media (max-width: 1180px) {
  .premium-command-hero,
  .premium-iq-brief,
  .decision-support-grid {
    grid-template-columns: 1fr;
  }

  .sync-stage-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 40px;
    padding: 9px 14px 9px 16px;
  }

  .brand-lockup img {
    width: min(250px, 70vw);
  }

  .topbar {
    position: relative;
  }

  .command-hero-copy {
    min-height: 0;
  }

  .command-hero-orbit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .layout {
    padding-inline: 12px;
  }

  .panel {
    padding: 16px;
  }

  .sync-stage-track {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
  }

  .command-lane-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-lane-strip button {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Contrast hardening pass: remove bright diagnostic blocks from dark dashboard surfaces. */
.league-profile-strip,
.league-room-note,
.league-health-panel,
.phase-list div,
.round-guide div {
  border-color: rgba(249, 240, 220, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.062), rgba(249, 240, 220, 0.026)),
    rgba(0, 17, 15, 0.78) !important;
  color: rgba(249, 240, 220, 0.82) !important;
  box-shadow: 0 18px 42px rgba(0, 8, 7, 0.22);
}

.league-profile-strip strong,
.league-room-note strong,
.league-health-head h3,
.league-health-grid strong,
.phase-list span,
.round-guide span {
  color: #fffdf8 !important;
}

.league-profile-strip span,
.league-room-note span,
.league-health-grid span,
.league-health-grid small,
.round-guide span {
  color: rgba(249, 240, 220, 0.72) !important;
}

.league-health-head > strong,
.phase-list strong,
.round-guide strong {
  border: 1px solid rgba(110, 227, 163, 0.28);
  background: rgba(0, 92, 77, 0.26) !important;
  color: #e9fff4 !important;
}

.league-health-grid article {
  border-color: rgba(249, 240, 220, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.06), rgba(249, 240, 220, 0.022)),
    rgba(0, 17, 15, 0.74) !important;
}

.league-health-grid article.good {
  border-left-color: rgba(110, 227, 163, 0.68) !important;
}

.league-health-grid article.warn {
  border-left-color: rgba(231, 185, 90, 0.76) !important;
}

.league-health-grid article.danger {
  border-left-color: rgba(255, 122, 104, 0.8) !important;
}

.phase-list em {
  color: #f2c65d !important;
}

.demo-banner strong,
.result strong,
.command strong,
.plan strong,
.box strong,
.first-run-guide strong,
.command-sync-controls span {
  color: #fffdf8 !important;
}

.result p,
.result small,
.command p,
.plan p,
.box p,
.first-run-guide small,
.command-sync-controls label span,
.command-sync-controls > span {
  color: rgba(249, 240, 220, 0.76) !important;
}

.first-run-guide article {
  border-color: rgba(249, 240, 220, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.058), rgba(249, 240, 220, 0.024)),
    rgba(0, 17, 15, 0.72) !important;
}

.first-run-guide span {
  background: rgba(231, 185, 90, 0.18) !important;
  color: #f6d27a !important;
}

#intelligence-freshness,
.intelligence-reasons p,
.player-synopsis p,
.player-synopsis small,
.player-synopsis-details p,
.player-read-copy p {
  color: rgba(249, 240, 220, 0.78) !important;
}

.intelligence-reasons strong,
.player-synopsis strong,
.player-synopsis-details strong,
.player-read-copy strong {
  color: #fffdf8 !important;
}

.player-synopsis {
  border-color: rgba(249, 240, 220, 0.16) !important;
  border-left-color: rgba(110, 227, 163, 0.7) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.06), rgba(249, 240, 220, 0.022)),
    rgba(0, 17, 15, 0.74) !important;
  box-shadow: 0 18px 42px rgba(0, 8, 7, 0.18);
}

.player-synopsis span {
  color: #6ee3a3 !important;
}

/* Big Board contrast pass: live board data stays readable on dark command-center surfaces. */
#workbooks .table-wrap {
  border-color: rgba(249, 240, 220, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.035), rgba(249, 240, 220, 0.014)),
    rgba(0, 17, 15, 0.82) !important;
  scrollbar-color: rgba(249, 240, 220, 0.48) rgba(0, 17, 15, 0.8);
}

#workbooks #board-table {
  min-width: 1160px;
}

#workbooks #board-table th {
  border-bottom-color: rgba(231, 185, 90, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(10, 34, 28, 0.98), rgba(2, 17, 15, 0.98)) !important;
  color: rgba(249, 240, 220, 0.78) !important;
}

#workbooks #board-table tbody tr:not(.board-tier-divider-row) {
  background:
    linear-gradient(90deg, rgba(110, 227, 163, 0.045), rgba(249, 240, 220, 0.018)),
    rgba(2, 22, 18, 0.92) !important;
}

#workbooks #board-table tbody tr:nth-child(even):not(.board-tier-divider-row) {
  background:
    linear-gradient(90deg, rgba(231, 185, 90, 0.045), rgba(249, 240, 220, 0.018)),
    rgba(6, 28, 23, 0.92) !important;
}

#workbooks #board-table tbody tr.selected-row:not(.board-tier-divider-row) {
  background:
    linear-gradient(90deg, rgba(231, 185, 90, 0.22), rgba(10, 42, 34, 0.96)),
    rgba(4, 30, 25, 0.96) !important;
}

#workbooks #board-table tbody tr:hover:not(.board-tier-divider-row) {
  background:
    linear-gradient(90deg, rgba(110, 227, 163, 0.11), rgba(231, 185, 90, 0.07)),
    rgba(7, 38, 31, 0.98) !important;
}

#workbooks #board-table td {
  border-bottom-color: rgba(249, 240, 220, 0.075) !important;
  background: transparent !important;
  color: rgba(249, 240, 220, 0.84) !important;
  text-shadow: none !important;
}

#workbooks #board-table td:first-child {
  background: rgba(2, 17, 15, 0.98) !important;
  color: #fffdf8 !important;
}

#workbooks #board-table tbody tr.selected-row td:first-child,
#workbooks #board-table tbody tr:hover td:first-child {
  background: rgba(22, 40, 25, 0.98) !important;
}

#workbooks #board-table button.player-link {
  color: #fffdf8 !important;
  font-weight: 950;
}

#workbooks #board-table button.player-link:hover,
#workbooks #board-table button.player-link:focus-visible {
  color: #6ee3a3 !important;
  text-decoration-color: rgba(110, 227, 163, 0.8);
}

#workbooks #board-table .tier-pill,
#workbooks #board-table .precise-tier-pill {
  border-color: rgba(110, 227, 163, 0.36) !important;
  background: rgba(110, 227, 163, 0.12) !important;
  color: #e9fff4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#workbooks #board-table .drafted-badge {
  border-color: rgba(255, 122, 104, 0.34) !important;
  background: rgba(255, 122, 104, 0.12) !important;
  color: #ffd7cf !important;
}

#workbooks .analysis-pane {
  border-color: rgba(249, 240, 220, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.05), rgba(249, 240, 220, 0.018)),
    rgba(0, 17, 15, 0.88) !important;
  color: rgba(249, 240, 220, 0.84) !important;
  box-shadow: 0 22px 58px rgba(0, 8, 7, 0.3);
}

#workbooks .analysis-pane h3,
#workbooks .analysis-pane strong {
  color: #fffdf8 !important;
}

#workbooks .analysis-pane p,
#workbooks .analysis-pane small {
  color: rgba(249, 240, 220, 0.74) !important;
}

#workbooks .analysis-pane .analysis-chip {
  border: 1px solid rgba(249, 240, 220, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.07), rgba(249, 240, 220, 0.025)),
    rgba(2, 22, 18, 0.84) !important;
  color: rgba(249, 240, 220, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#workbooks .analysis-pane .analysis-chip span {
  color: rgba(231, 185, 90, 0.9) !important;
}

#workbooks .analysis-pane .analysis-chip strong {
  color: #fffdf8 !important;
}

#workbooks .analysis-pane .analysis-chip.good,
#workbooks .analysis-pane .analysis-chip.trend-riser {
  border-color: rgba(110, 227, 163, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(110, 227, 163, 0.105), rgba(110, 227, 163, 0.035)),
    rgba(2, 22, 18, 0.84) !important;
}

#workbooks .analysis-pane .analysis-chip.watch {
  border-color: rgba(231, 185, 90, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(231, 185, 90, 0.12), rgba(231, 185, 90, 0.035)),
    rgba(2, 22, 18, 0.84) !important;
}

#workbooks .analysis-pane .analysis-chip.danger,
#workbooks .analysis-pane .analysis-chip.drafted-chip,
#workbooks .analysis-pane .analysis-chip.trend-faller {
  border-color: rgba(255, 122, 104, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 122, 104, 0.12), rgba(255, 122, 104, 0.035)),
    rgba(2, 22, 18, 0.84) !important;
}

#workbooks .board-tools label,
#workbooks .position-filter,
#workbooks .hide-drafted-board {
  color: rgba(249, 240, 220, 0.72) !important;
}

#workbooks .hide-drafted-board {
  border-color: rgba(249, 240, 220, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(249, 240, 220, 0.06), rgba(249, 240, 220, 0.022)),
    rgba(0, 17, 15, 0.76) !important;
  color: rgba(249, 240, 220, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#workbooks .hide-drafted-board input {
  width: 22px;
  height: 22px;
  accent-color: #e7b95a;
}

#workbooks #board-table tbody tr[data-pos="QB"] {
  --board-pos-rgb: 82, 169, 255;
  --board-pos-text: #dcecff;
}

#workbooks #board-table tbody tr[data-pos="RB"] {
  --board-pos-rgb: 110, 227, 163;
  --board-pos-text: #e9fff4;
}

#workbooks #board-table tbody tr[data-pos="WR"] {
  --board-pos-rgb: 231, 185, 90;
  --board-pos-text: #fff2c9;
}

#workbooks #board-table tbody tr[data-pos="TE"] {
  --board-pos-rgb: 80, 211, 190;
  --board-pos-text: #ddfff9;
}

#workbooks #board-table tbody tr[data-pos="DST"] {
  --board-pos-rgb: 155, 176, 255;
  --board-pos-text: #e7ecff;
}

#workbooks #board-table tbody tr[data-pos="K"] {
  --board-pos-rgb: 255, 169, 130;
  --board-pos-text: #ffe6da;
}

#workbooks #board-table tbody tr:not(.board-tier-divider-row) {
  background:
    linear-gradient(
      90deg,
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.17),
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.055) 32%,
      rgba(249, 240, 220, 0.018)
    ),
    rgba(2, 22, 18, 0.92) !important;
  box-shadow: inset 4px 0 0 rgba(var(--board-pos-rgb, 110, 227, 163), 0.72);
}

#workbooks #board-table tbody tr:nth-child(even):not(.board-tier-divider-row) {
  background:
    linear-gradient(
      90deg,
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.14),
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.045) 32%,
      rgba(249, 240, 220, 0.018)
    ),
    rgba(6, 28, 23, 0.92) !important;
}

#workbooks #board-table tbody tr.selected-row:not(.board-tier-divider-row) {
  background:
    linear-gradient(
      90deg,
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.28),
      rgba(231, 185, 90, 0.12),
      rgba(10, 42, 34, 0.96)
    ),
    rgba(4, 30, 25, 0.96) !important;
  box-shadow:
    inset 4px 0 0 rgb(var(--board-pos-rgb, 110, 227, 163)),
    inset 0 0 0 1px rgba(231, 185, 90, 0.48);
}

#workbooks #board-table tbody tr:hover:not(.board-tier-divider-row) {
  background:
    linear-gradient(
      90deg,
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.23),
      rgba(var(--board-pos-rgb, 110, 227, 163), 0.085) 36%,
      rgba(231, 185, 90, 0.06)
    ),
    rgba(7, 38, 31, 0.98) !important;
}

#workbooks #board-table tbody tr:not(.board-tier-divider-row) .tier-pill,
#workbooks #board-table tbody tr:not(.board-tier-divider-row) .precise-tier-pill {
  border-color: rgba(var(--board-pos-rgb, 110, 227, 163), 0.42) !important;
  background: rgba(var(--board-pos-rgb, 110, 227, 163), 0.13) !important;
  color: var(--board-pos-text, #e9fff4) !important;
}

#workbooks #board-table tbody tr[data-pos] td:not(:first-child) {
  background: rgba(var(--board-pos-rgb, 110, 227, 163), 0.045) !important;
}

#workbooks #board-table tbody tr[data-pos].selected-row td:not(:first-child),
#workbooks #board-table tbody tr[data-pos]:hover td:not(:first-child) {
  background: rgba(var(--board-pos-rgb, 110, 227, 163), 0.075) !important;
}

/* Taste reference recreation: premium command-center shell. */
body {
  background:
    radial-gradient(circle at 75% 18%, rgba(97, 216, 93, 0.09), transparent 26%),
    linear-gradient(180deg, #070a0d 0%, #050708 100%) !important;
}

.topbar {
  width: calc(100% - 300px) !important;
  margin-left: 300px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(7, 10, 13, 0.94) !important;
  backdrop-filter: blur(16px);
}

.brand-lockup {
  position: fixed !important;
  left: 28px;
  top: 26px;
  z-index: 30;
}

.brand-lockup img {
  width: 188px !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
}

.brand-lockup .eyebrow,
.brand-lockup h1,
.brand-lockup small {
  display: none !important;
}

.draft-card,
.account-card,
.league-switcher {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(17, 23, 25, 0.9) !important;
  box-shadow: none !important;
}

.layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

.sidebar {
  position: fixed !important;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 300px !important;
  align-content: start;
  padding: 124px 12px 24px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #080c10 !important;
}

.sidebar::after {
  content: none;
  white-space: pre-line;
  display: none;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.7;
}

.nav-item {
  min-height: 58px !important;
  justify-content: flex-start !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 1.02rem !important;
}

.nav-item.active {
  border-color: rgba(240, 200, 93, 0.52) !important;
  background: rgba(240, 200, 93, 0.12) !important;
  color: #f0c85d !important;
}

.content {
  grid-column: 2 !important;
  min-width: 0;
  padding: 128px 28px 48px !important;
}

.panel {
  max-width: 1540px;
  margin-inline: auto;
}

.command-hero,
.next-move-panel,
.metric,
.league-health-panel,
.first-run-guide article,
.command-tile,
.account-grid article,
.trade-card,
.waiver-iq-card,
.my-team-card,
.draft-prep-panel,
.draft-prep-scorecard,
.draft-prep-grid article {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
    rgba(17, 23, 25, 0.9) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
}

.command-hero {
  min-height: 330px !important;
  align-items: center !important;
  overflow: hidden;
}

.command-hero h2 {
  max-width: 620px;
  color: #fff !important;
  font-size: clamp(3.2rem, 5vw, 5rem) !important;
  line-height: 1.05 !important;
}

.command-hero h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin-top: 22px;
  background: rgba(240, 200, 93, 0.8);
}

.primary-action,
.subscribe-button {
  border-color: rgba(240, 200, 93, 0.9) !important;
  background: linear-gradient(180deg, #f3d071, #c9943d) !important;
  color: #090806 !important;
}

.secondary-action,
.live-switches button,
.board-tools button,
.grader button {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

.next-move-panel {
  grid-template-columns: minmax(320px, 1.1fr) repeat(3, minmax(180px, 0.7fr)) !important;
  border-color: rgba(240, 200, 93, 0.48) !important;
}

.next-move-primary strong,
#command-fantasyiq-score,
.league-health-panel strong,
.metric strong {
  color: #62d95b !important;
}

.decision-support-grid article {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

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

.first-run-guide {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .topbar,
  .brand-lockup,
  .sidebar {
    position: static !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  .layout {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    display: flex !important;
    overflow-x: auto;
    padding: 10px 14px !important;
  }

  .sidebar::after {
    display: none;
  }

  .content {
    grid-column: auto !important;
    padding: 18px 14px 36px !important;
  }

  .next-move-panel,
  .metric-grid,
  .first-run-guide {
    grid-template-columns: 1fr !important;
  }
}

/* Taste v3 exact-reference pass: dashboard mapped to references/taste/reference-06.png. */
:root {
  --dash-sidebar: 348px;
  --dash-topbar: 126px;
  --dash-bg: #020707;
  --dash-panel: rgba(15, 24, 25, 0.94);
  --dash-deep: rgba(0, 21, 17, 0.92);
  --dash-line: rgba(231, 185, 90, 0.36);
  --dash-cool-line: rgba(255, 255, 255, 0.14);
  --dash-gold: #efc45d;
  --dash-green: #67d95f;
  --dash-white: #fffdf8;
}

body {
  background:
    linear-gradient(90deg, rgba(231, 185, 90, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(231, 185, 90, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(87, 211, 91, 0.1), transparent 30%),
    linear-gradient(180deg, #020607, #041411 48%, #020707) !important;
  background-size: 118px 118px, 118px 118px, auto, auto !important;
  color: rgba(255, 253, 248, 0.84) !important;
}

.field-overlay {
  opacity: 0.16 !important;
}

.topbar {
  min-height: var(--dash-topbar) !important;
  height: 122px !important;
  width: calc(100% - var(--dash-sidebar)) !important;
  margin-left: var(--dash-sidebar) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 14px !important;
  padding: 14px 48px !important;
  border-bottom: 1px solid rgba(231, 185, 90, 0.24) !important;
  background: rgba(3, 8, 9, 0.98) !important;
}

.brand-lockup {
  position: fixed !important;
  left: calc(-1 * var(--dash-sidebar) + 26px) !important;
  top: 28px !important;
  z-index: 45 !important;
}

.brand-lockup img {
  width: 282px !important;
  max-width: calc(var(--dash-sidebar) - 52px) !important;
}

.draft-card,
.account-card,
.league-switcher {
  position: relative !important;
  width: 300px !important;
  height: 94px !important;
  min-height: 94px !important;
  overflow: hidden !important;
  padding: 12px 18px 12px 82px !important;
  border: 1px solid var(--dash-cool-line) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 52%),
    rgba(14, 22, 23, 0.92) !important;
}

.draft-card::before,
.account-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 34px;
  height: 42px;
  border: 3px solid var(--dash-green);
  border-radius: 50% 50% 8px 8px;
  transform: translateY(-50%);
  opacity: 0.95;
}

.account-card::before {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border-color: #fff;
  box-shadow: 0 22px 0 -8px #fff;
  opacity: 0.9;
}

.draft-card span,
.account-card span,
.league-switcher span {
  color: rgba(255, 253, 248, 0.72) !important;
  font-size: 0.84rem !important;
  text-transform: uppercase !important;
}

.draft-card strong,
.account-card strong,
.league-switcher strong {
  color: var(--dash-white) !important;
  font-size: 1.2rem !important;
}

.account-card button,
.subscribe-button {
  min-height: 38px !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, #f4ce69, #c58b2f) !important;
  color: #070806 !important;
}

.demo-banner {
  position: fixed !important;
  top: 122px !important;
  left: var(--dash-sidebar) !important;
  right: 0 !important;
  z-index: 28 !important;
  min-height: 44px !important;
  padding: 0 64px !important;
  border-top: 1px solid rgba(231, 185, 90, 0.16) !important;
  border-bottom: 1px solid rgba(231, 185, 90, 0.24) !important;
  background: linear-gradient(90deg, rgba(55, 50, 22, 0.72), rgba(7, 37, 29, 0.7)) !important;
}

.demo-banner strong {
  color: var(--dash-white) !important;
  font-size: 0.95rem !important;
}

.demo-banner span {
  color: rgba(255, 253, 248, 0.84) !important;
}

.demo-banner a {
  min-height: 34px !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #f4ce69, #c58b2f) !important;
  color: #070806 !important;
}

.layout {
  grid-template-columns: var(--dash-sidebar) minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: 100vh !important;
}

.sidebar {
  width: var(--dash-sidebar) !important;
  padding: 132px 18px 24px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(231, 185, 90, 0.08), transparent 40%),
    #060a0e !important;
}

.nav-item {
  position: relative !important;
  min-height: 58px !important;
  gap: 18px !important;
  padding-left: 54px !important;
  border-radius: 6px !important;
  color: rgba(255, 253, 248, 0.82) !important;
  font-size: 1.08rem !important;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
  opacity: 0.9;
}

.nav-item:nth-child(1)::before {
  background:
    linear-gradient(currentColor, currentColor) 4px 4px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 4px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 14px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 14px / 6px 6px no-repeat;
}

.nav-item:nth-child(2)::before {
  border-radius: 999px;
}

.nav-item:nth-child(3)::before {
  border-radius: 2px;
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.16);
}

.nav-item:nth-child(4)::before {
  border-radius: 4px;
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.16);
}

.nav-item:nth-child(5)::before {
  border-radius: 999px;
}

.nav-item:nth-child(6)::before {
  border-radius: 4px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.16);
}

.nav-item:nth-child(7)::before {
  border-width: 0 0 3px 3px;
  border-radius: 0;
  transform: skewX(-8deg);
}

.nav-item:nth-child(8)::before {
  border-width: 3px 0 0 3px;
  border-radius: 0;
  transform: rotate(-45deg);
}

.nav-item:nth-child(9)::before {
  border-radius: 999px;
}

.nav-item.active {
  border-color: rgba(231, 185, 90, 0.78) !important;
  background: rgba(231, 185, 90, 0.13) !important;
  color: var(--dash-gold) !important;
}

.sidebar::after {
  margin-top: auto !important;
  border-color: var(--dash-cool-line) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: rgba(255, 253, 248, 0.78) !important;
}

.content {
  grid-column: 2 !important;
  padding: 24px 58px 34px !important;
}

.panel {
  max-width: 1400px !important;
}

.command-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr) !important;
  min-height: 316px !important;
  padding: 28px 34px !important;
  border: 1px solid rgba(231, 185, 90, 0.7) !important;
  border-radius: 6px !important;
  background:
    radial-gradient(circle at 68% 34%, rgba(87, 211, 91, 0.09), transparent 36%),
    linear-gradient(135deg, rgba(9, 42, 34, 0.9), rgba(0, 18, 15, 0.96)) !important;
}

.command-hero .eyebrow {
  color: var(--dash-gold) !important;
  font-size: 1rem !important;
}

.command-hero h2 {
  max-width: 640px !important;
  margin-top: 12px !important;
  font-size: clamp(3.4rem, 4.4vw, 5rem) !important;
  line-height: 0.98 !important;
}

.command-hero h2::after {
  display: none !important;
}

.command-hero p {
  max-width: 680px !important;
  color: rgba(255, 253, 248, 0.84) !important;
  font-size: 1.04rem !important;
}

.command-primary-actions {
  margin-top: 20px !important;
}

.primary-action,
.secondary-action {
  min-height: 50px !important;
  border-radius: 6px !important;
  padding-inline: 24px !important;
}

.primary-action {
  background: linear-gradient(180deg, #f4ce69, #c58b2f) !important;
  color: #070806 !important;
}

.command-hero-orbit {
  display: grid !important;
  gap: 0 !important;
  align-self: center !important;
  border: 1px solid var(--dash-cool-line) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.command-hero-orbit span,
.command-hero-orbit strong {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 253, 248, 0.82) !important;
}

.command-hero-orbit span::after,
.command-hero-orbit strong::after {
  content: "READY";
  color: var(--dash-green);
  font-size: 0.78rem;
}

.command-hero-orbit strong {
  border-bottom: 0 !important;
  border-top: 1px solid rgba(231, 185, 90, 0.58) !important;
  background: rgba(231, 185, 90, 0.12) !important;
  color: var(--dash-gold) !important;
}

.command-hero-orbit strong::after {
  content: "GO";
}

.command-lane-strip {
  justify-content: flex-start !important;
  gap: 14px !important;
  margin: 12px 0 !important;
}

.command-lane-strip button {
  min-height: 36px !important;
  min-width: 128px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: rgba(255, 253, 248, 0.78) !important;
}

.command-lane-strip button:first-child {
  border-color: rgba(231, 185, 90, 0.76) !important;
  color: var(--dash-gold) !important;
}

.next-move-panel {
  grid-template-columns: minmax(430px, 1.35fr) repeat(3, minmax(190px, 0.72fr)) !important;
  gap: 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.next-move-panel > article,
.decision-support-grid > article,
.league-health-panel,
.first-run-guide,
.command-module-grid .command-tile {
  border: 1px solid var(--dash-cool-line) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 50%),
    var(--dash-panel) !important;
}

.next-move-primary {
  border-color: rgba(231, 185, 90, 0.64) !important;
  background:
    radial-gradient(circle at 82% 42%, rgba(87, 211, 91, 0.13), transparent 42%),
    rgba(0, 31, 25, 0.95) !important;
  min-width: 0 !important;
}

.next-move-primary::after {
  inset: auto 0 0 !important;
}

.next-move-primary span,
.next-move-score span,
.decision-support-grid span,
.league-health-panel h3,
.first-run-guide h3 {
  color: var(--dash-gold) !important;
}

.next-move-primary strong {
  color: var(--dash-green) !important;
  font-size: clamp(1.9rem, 2.5vw, 2.85rem) !important;
  line-height: 1 !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance !important;
}

#command-fantasyiq-score,
.next-move-score strong {
  color: var(--dash-green) !important;
}

.decision-support-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.decision-support-grid article:nth-child(1),
.decision-support-grid article:nth-child(2),
.decision-support-grid article:nth-child(3) {
  grid-column: span 2;
}

.decision-support-grid article:nth-child(n + 4) {
  grid-column: span 1;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.league-health-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.first-run-guide {
  padding: 16px !important;
}

.first-run-guide article {
  min-height: 58px !important;
}

@media (max-width: 1100px) {
  :root {
    --dash-sidebar: 100%;
    --dash-topbar: auto;
  }

  .topbar,
  .brand-lockup,
  .demo-banner,
  .sidebar {
    position: static !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  .brand-lockup {
    left: auto !important;
    top: auto !important;
  }

  .topbar {
    min-height: 0 !important;
    display: grid !important;
    padding: 22px 14px !important;
  }

  .field-overlay {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .brand-lockup img {
    width: min(260px, 80vw) !important;
  }

  .demo-banner {
    padding: 18px !important;
  }

  .layout {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 14px !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
    min-width: 150px !important;
  }

  .next-move-primary strong {
    font-size: clamp(1.75rem, 9vw, 2.2rem) !important;
  }

  .content {
    grid-column: auto !important;
    padding: 22px 14px 36px !important;
  }

  .command-hero,
  .next-move-panel,
  .decision-support-grid,
  .metric-grid,
  .league-health-grid {
    grid-template-columns: 1fr !important;
  }

  .decision-support-grid article {
    grid-column: auto !important;
  }
}

/* Approved cleanup pass: honest dashboard shell, readable cards, stable icons. */
:root {
  --dash-sidebar: clamp(288px, 18vw, 348px);
  --dash-panel-readable: rgba(15, 24, 25, 0.96);
  --dash-panel-soft: rgba(20, 31, 32, 0.92);
  --dash-text: #fffdf8;
  --dash-muted-readable: rgba(255, 253, 248, 0.78);
  --dash-soft-readable: rgba(255, 253, 248, 0.62);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 38 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: calc(100% - var(--dash-sidebar)) !important;
  height: auto !important;
  min-height: 106px !important;
  margin-left: var(--dash-sidebar) !important;
  align-items: stretch !important;
  justify-content: normal !important;
  gap: clamp(10px, 1.1vw, 16px) !important;
  overflow: visible !important;
  padding: 12px clamp(18px, 2.5vw, 42px) !important;
}

.brand-lockup {
  position: fixed !important;
  top: 28px !important;
  left: calc(24px - var(--dash-sidebar)) !important;
  z-index: 46 !important;
  width: calc(var(--dash-sidebar) - 48px) !important;
}

.brand-lockup img {
  width: min(282px, calc(var(--dash-sidebar) - 60px)) !important;
  max-width: 100% !important;
}

.draft-card,
.account-card,
.league-switcher {
  display: grid !important;
  align-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 82px !important;
  overflow: visible !important;
  padding: 12px 16px 12px 68px !important;
}

.draft-card::before,
.account-card::before {
  left: 20px !important;
}

.draft-card span,
.draft-card small,
.account-card span,
.account-card small,
.league-switcher span,
.league-switcher small,
.league-switcher-actions small {
  overflow: visible !important;
  color: var(--dash-muted-readable) !important;
  line-height: 1.25 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.draft-card strong,
.account-card strong,
.league-switcher strong {
  color: var(--dash-text) !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

.league-switcher select,
.league-switcher-actions {
  min-width: 0 !important;
  width: 100% !important;
}

.account-card button,
.subscribe-button,
.league-switcher-actions button {
  max-width: 100% !important;
  white-space: normal !important;
}

.layout {
  grid-template-columns: var(--dash-sidebar) minmax(0, 1fr) !important;
  overflow: visible !important;
}

.sidebar {
  width: var(--dash-sidebar) !important;
  padding: 132px 18px 24px !important;
}

.sidebar::after {
  content: none !important;
  display: none !important;
}

.nav-item {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  gap: 16px !important;
  padding: 0 16px 0 58px !important;
  line-height: 1.15 !important;
}

.nav-item::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid currentColor !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: currentColor !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  opacity: 0.92 !important;
  transform: none !important;
}

.nav-item[data-section="command"]::before {
  content: "CC" !important;
}

.nav-item[data-section="my-team"]::before {
  content: "TM" !important;
  border-radius: 999px !important;
}

.nav-item[data-section="workbooks"]::before {
  content: "BB" !important;
}

.nav-item[data-section="draft"]::before {
  content: "DP" !important;
  background: rgba(239, 196, 93, 0.16) !important;
}

.nav-item[data-section="simulator"]::before {
  content: "MO" !important;
  border-radius: 999px !important;
}

.nav-item[data-section="live"]::before {
  content: "SI" !important;
}

.nav-item[data-section="waivers"]::before {
  content: "WI" !important;
}

.nav-item[data-section="trade"]::before {
  content: "TI" !important;
}

.nav-item[data-section="account"]::before {
  content: "AC" !important;
  border-radius: 999px !important;
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: rgba(231, 185, 90, 0.5) !important;
  color: var(--dash-text) !important;
}

.content {
  grid-column: 2 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: clamp(22px, 2.3vw, 34px) clamp(20px, 2.9vw, 56px) 42px !important;
}

.panel {
  width: 100% !important;
  max-width: min(1480px, 100%) !important;
  min-width: 0 !important;
}

.command-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.82fr) !important;
}

.next-move-panel {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.72fr)) !important;
  width: 100% !important;
}

.next-move-panel > article,
.decision-support-grid > article,
.metric,
.league-health-panel,
.first-run-guide,
.command-tile,
#my-team .my-team-hero article,
#my-team .my-team-position-card,
#my-team .my-team-card,
#draft .draft-prep-scorecard,
#draft .draft-prep-grid article,
#draft .draft-prep-panel,
#account .account-grid article,
#account .account-progress article,
#account .account-league-list > article,
.trade-player-chip {
  min-width: 0 !important;
  border-color: var(--dash-cool-line) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 56%),
    var(--dash-panel-readable) !important;
  color: var(--dash-text) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22) !important;
}

.next-move-panel > article {
  overflow: hidden !important;
}

.next-move-primary strong {
  color: var(--dash-green) !important;
}

.next-move-score strong,
#command-roster-weakness {
  color: var(--dash-text) !important;
  font-size: clamp(1.45rem, 1.9vw, 2.25rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
}

#command-fantasyiq-score {
  color: var(--dash-gold) !important;
}

#command-confidence {
  color: var(--dash-green) !important;
}

.next-move-score small,
.next-move-primary p,
.decision-support-grid div,
.metric small,
.league-health-panel p,
.league-health-grid p,
.command-tile p,
#my-team .my-team-hero small,
#my-team .my-team-position-card small,
#my-team .my-team-card p,
#my-team .my-team-card small,
#my-team .my-team-list,
#my-team .my-team-actions,
#draft .draft-prep-panel p,
#draft .draft-prep-panel li,
#draft .draft-prep-grid small,
#account .account-grid p,
#account .account-progress p,
#account .account-league-list p,
#account .account-league-list small,
.trade-player-chip span,
.trade-player-chip small {
  color: var(--dash-muted-readable) !important;
}

.next-move-score span,
.decision-support-grid span,
.metric span,
.league-health-panel h3,
.league-health-grid span,
.command-tile span,
#my-team .my-team-hero span,
#my-team .my-team-position-card span,
#my-team .my-team-card .eyebrow,
#draft .draft-prep-panel .eyebrow,
#draft .draft-prep-grid span,
#account .account-grid span,
#account .account-progress span,
#account .account-league-list span {
  color: var(--dash-gold) !important;
}

#my-team .my-team-hero strong,
#my-team .my-team-position-card strong,
#my-team .my-team-card h3,
#my-team .my-team-card strong,
#draft .draft-prep-scorecard strong,
#draft .draft-prep-panel h3,
#draft .draft-prep-panel strong,
#draft .draft-prep-grid strong,
#account .account-grid strong,
#account .account-progress strong,
#account .account-league-list strong,
#account-dashboard-name,
#account-league-slots,
#account-support-email,
.trade-player-chip strong {
  color: var(--dash-text) !important;
}

#my-team .my-team-hero article:first-child {
  background:
    radial-gradient(circle at 82% 42%, rgba(231, 82, 82, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(0, 31, 25, 0.98), rgba(102, 45, 47, 0.82)) !important;
}

#my-team .my-team-hero article:first-child strong,
#my-team .my-team-actions strong,
#draft .draft-prep-scorecard strong {
  color: var(--dash-text) !important;
}

#account .account-league-list > article {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

#account .account-league-actions {
  flex-wrap: wrap !important;
}

#account .account-league-actions a,
#account .account-league-actions button {
  border-color: rgba(231, 185, 90, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--dash-text) !important;
}

.draft-prep-workgrid,
.my-team-layout,
.account-grid,
.account-progress,
.metric-grid,
.decision-support-grid,
.league-health-grid {
  min-width: 0 !important;
}

.primary-action:hover,
.secondary-action:hover,
.subscribe-button:hover,
.account-card button:hover,
.live-switches button:hover,
.board-tools button:hover,
.grader button:hover,
#account .account-league-actions a:hover,
#account .account-league-actions button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.04) !important;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.subscribe-button:focus-visible,
.account-card button:focus-visible,
.live-switches button:focus-visible,
.board-tools button:focus-visible,
.grader button:focus-visible,
.nav-item:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(239, 196, 93, 0.92) !important;
  outline-offset: 3px !important;
}

@media (max-width: 1320px) {
  :root {
    --dash-sidebar: 300px;
  }

  .topbar {
    padding-inline: 18px !important;
  }

  .draft-card,
  .account-card,
  .league-switcher {
    padding-left: 58px !important;
  }

  .draft-card::before,
  .account-card::before {
    left: 16px !important;
  }

  .command-hero,
  .next-move-panel,
  .decision-support-grid {
    grid-template-columns: 1fr !important;
  }

  .decision-support-grid article {
    grid-column: auto !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --dash-sidebar: 100%;
  }

  .topbar,
  .brand-lockup,
  .demo-banner,
  .sidebar {
    position: static !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .brand-lockup {
    width: auto !important;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sidebar {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 12px 14px !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
    min-width: 154px !important;
  }

  .content {
    grid-column: auto !important;
    padding: 20px 14px 36px !important;
  }
}

@media (max-width: 640px) {
  .draft-card,
  .account-card,
  .league-switcher {
    padding: 14px 16px !important;
  }

  .draft-card::before,
  .account-card::before {
    display: none !important;
  }

  .nav-item {
    min-width: 138px !important;
    padding-left: 50px !important;
  }

  .command-hero h2 {
    font-size: clamp(2.4rem, 12vw, 3.2rem) !important;
  }
}

/* Premium icon system: replaces placeholder initials with small-size designed marks. */
.dashboard-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon-core,
.icon-accent,
.icon-green {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25px;
  vector-effect: non-scaling-stroke;
}

.icon-core {
  stroke: currentcolor;
}

.icon-core.thin {
  opacity: 0.64;
  stroke-width: 1.35px;
}

.icon-accent {
  stroke: var(--icon-accent, #efc45d);
}

.icon-green {
  stroke: var(--icon-green, #62e66b);
}

.icon-accent-fill {
  fill: var(--icon-accent, #efc45d);
}

.icon-green-fill {
  fill: var(--icon-green, #62e66b);
}

.icon-node-fill {
  opacity: 0.18;
}

.nav-item {
  gap: 16px !important;
  min-height: 64px !important;
  padding: 0 18px !important;
}

.nav-item::before {
  content: none !important;
  display: none !important;
}

.nav-icon {
  --icon-accent: #eac15a;
  --icon-green: #62e66b;

  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid rgba(236, 205, 118, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 68% 20%, rgba(98, 230, 107, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 240, 186, 0.12), rgba(7, 18, 17, 0.66));
  color: rgba(255, 253, 248, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -14px 24px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon {
  border-color: rgba(236, 205, 118, 0.56);
  color: rgba(255, 253, 248, 0.98);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -14px 24px rgba(0, 0, 0, 0.2),
    0 12px 26px rgba(0, 0, 0, 0.26);
}

.nav-item.active .nav-icon {
  --icon-accent: #ffd56f;
  --icon-green: #6df36c;

  border-color: rgba(255, 213, 111, 0.82);
  background:
    radial-gradient(circle at 70% 18%, rgba(109, 243, 108, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 213, 111, 0.22), rgba(24, 28, 20, 0.78));
  color: #fff8df;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 213, 111, 0.18),
    0 0 0 1px rgba(255, 213, 111, 0.13),
    0 14px 34px rgba(239, 196, 93, 0.14);
}

.draft-card,
.account-card {
  position: relative !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  align-items: center !important;
  align-content: center !important;
  padding: 14px 18px !important;
}

.draft-card::before,
.account-card::before {
  content: none !important;
  display: none !important;
}

.pass-card-icon,
.account-card-icon {
  --icon-accent: #efc45d;
  --icon-green: #62e66b;

  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  color: rgba(255, 253, 248, 0.88);
  filter: drop-shadow(0 0 14px rgba(98, 230, 107, 0.18));
}

.pass-card-icon {
  color: #eaffee;
}

.account-card-icon {
  --icon-accent: #f5f2e9;

  color: rgba(255, 255, 255, 0.88);
}

.draft-card-copy,
.account-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.draft-card span,
.draft-card small,
.account-card span,
.account-card small {
  min-width: 0;
}

.draft-card .subscribe-button,
.account-card button {
  grid-column: 2;
}

@media (max-width: 1320px) {
  .draft-card,
  .account-card,
  .league-switcher {
    padding-left: 14px !important;
  }
}

@media (max-width: 1180px) {
  .nav-item {
    min-width: 178px !important;
  }
}

@media (max-width: 640px) {
  .draft-card,
  .account-card {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }

  .pass-card-icon,
  .account-card-icon {
    width: 38px;
    height: 38px;
  }

  .nav-item {
    min-width: 154px !important;
    padding: 0 14px !important;
  }

  .nav-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    padding: 4px;
  }
}

/* Taste reference icon pass: use the approved generated artwork as the source of truth. */
.reference-icon {
  display: block;
  max-width: none;
  border: 0 !important;
  background: transparent !important;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.nav-item {
  min-height: 66px !important;
  gap: 16px !important;
  padding: 0 16px !important;
}

.nav-icon.reference-icon {
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 54px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  box-shadow:
    0 0 0 1px rgba(239, 196, 93, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(96, 244, 85, 0.06) !important;
  filter: saturate(1.08) contrast(1.04);
}

.nav-item:hover .nav-icon.reference-icon,
.nav-item:focus-visible .nav-icon.reference-icon {
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(239, 196, 93, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(96, 244, 85, 0.11) !important;
}

.nav-item.active .nav-icon.reference-icon {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 214, 111, 0.28),
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(96, 244, 85, 0.16),
    0 0 22px rgba(239, 196, 93, 0.12) !important;
  filter: saturate(1.16) contrast(1.07) brightness(1.04);
}

.draft-card,
.account-card {
  grid-template-columns: 66px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  padding: 14px 20px !important;
}

.pass-card-icon.reference-icon,
.account-card-icon.reference-icon {
  grid-row: 1 / span 2;
  width: 66px !important;
  height: 71px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  filter: saturate(1.12) contrast(1.04) drop-shadow(0 0 18px rgba(96, 244, 85, 0.11));
}

.draft-card .subscribe-button,
.account-card button {
  grid-column: 2;
}

@media (max-width: 1180px) {
  .nav-item {
    min-width: 202px !important;
  }

  .nav-icon.reference-icon {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 52px !important;
  }
}

@media (max-width: 640px) {
  .draft-card,
  .account-card {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }

  .pass-card-icon.reference-icon,
  .account-card-icon.reference-icon {
    width: 52px !important;
    height: 56px !important;
  }

  .nav-item {
    min-width: 174px !important;
  }

.nav-icon.reference-icon {
    flex-basis: 42px !important;
    width: 42px !important;
    height: 45px !important;
  }
}

/* Command hero status rail: keep stage labels and status pills inside the panel. */
.command-hero {
  column-gap: clamp(28px, 4vw, 64px) !important;
}

.command-hero-orbit {
  position: relative !important;
  isolation: isolate !important;
  justify-self: end !important;
  width: min(100%, 590px) !important;
  min-width: 0 !important;
  padding: 16px !important;
  gap: 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(231, 185, 90, 0.28) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(19, 42, 38, 0.96), rgba(13, 25, 26, 0.98)),
    rgba(7, 14, 15, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 54px rgba(0, 0, 0, 0.24) !important;
}

.command-hero-orbit span,
.command-hero-orbit strong {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) fit-content(92px) !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0 14px 0 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: rgba(255, 253, 248, 0.82) !important;
  column-gap: 16px !important;
  overflow: hidden !important;
}

.command-hero-orbit span::after,
.command-hero-orbit strong::after {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 74px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(99, 238, 96, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(97, 236, 94, 0.11) !important;
  color: var(--dash-green) !important;
  font-size: 0.74rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.command-hero-orbit strong {
  border-color: rgba(231, 185, 90, 0.44) !important;
  background:
    linear-gradient(90deg, rgba(231, 185, 90, 0.18), rgba(231, 185, 90, 0.08)),
    rgba(255, 255, 255, 0.045) !important;
  color: var(--dash-gold) !important;
}

.command-hero-orbit strong::after {
  min-width: 74px !important;
  border-color: rgba(231, 185, 90, 0.58) !important;
  background: rgba(231, 185, 90, 0.16) !important;
  color: var(--dash-gold) !important;
}

@media (max-width: 1180px) {
  .command-hero-orbit {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .command-hero-orbit {
    padding: 12px !important;
  }

  .command-hero-orbit span,
  .command-hero-orbit strong {
    min-height: 46px !important;
    padding-inline: 14px 10px !important;
    column-gap: 10px !important;
  }

  .command-hero-orbit span::after,
  .command-hero-orbit strong::after {
    min-width: 62px !important;
    height: 24px !important;
    font-size: 0.68rem !important;
  }
}
