: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='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-28 16 16)'%3E%3Cellipse cx='16' cy='16' rx='12' ry='7' fill='%238a4f24' stroke='%2327130a' stroke-width='2'/%3E%3Cpath d='M6 16h20' stroke='%23fff3cf' stroke-width='2'/%3E%3Cpath d='M13 12v8M16 11.5v9M19 12v8' stroke='%23fff3cf' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E") 5 5, 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;
}

.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) 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 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;
}

.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);
}

.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-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-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-score-grid div {
  border: 1px solid rgba(216, 195, 146, 0.72);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

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

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

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

.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-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;
}

#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.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.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);
}

.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;
}

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

.live-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(170px, 0.8fr)) minmax(240px, 1fr);
  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 > .live-hero-grid {
  order: 3;
}

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

#live > .draft-room-cheatcode {
  order: 5;
}

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

#live > .live-tier-panel {
  order: 7;
}

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

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

.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);
}

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

.live-panel {
  padding: 16px;
}

.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;
}

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

.qa-list details {
  overflow: hidden;
  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);
}

.qa-list summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 16px;
  color: var(--ink);
  font-weight: 900;
}

.qa-list summary::-webkit-details-marker {
  display: none;
}

.qa-list details[open] summary {
  color: var(--accent);
}

.qa-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

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

.mock-import-panel {
  margin-top: 14px;
}

.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;
}

.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;
}

.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;
}

.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-score-grid,
  .trade-detail-grid,
  .trade-rules,
  .mini-table div,
  .live-hero-grid,
  .live-grid,
  .cheat-grid,
  .sim-layout,
  .cheatcode-hero,
  .cheatcode-grid,
  .cheatcode-grid.secondary,
  .sim-tools,
  .tier-board-tools,
  .sim-player-row,
  .intel-subgrid,
  .draft-order-grid,
  .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;
  }

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

  .league-profile-strip,
  .league-room-note {
    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-verdict > strong {
    font-size: 28px;
    line-height: 1.05;
  }

  .trade-score-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 {
  width: min(460px, 100%);
  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-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-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-message {
  min-height: 24px;
  margin-top: 12px;
  color: #8a4a0b;
  font-weight: 800;
}

.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-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,
.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) {
  .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) {
  .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,
  .account-grid,
  .account-league-list article,
  .trade-card,
  .trade-verdict {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

  .account-league-list article {
    display: grid;
  }

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

  .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,
  .add-league-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .live-switches button,
  .add-league-actions button {
    width: 100%;
  }
}
