@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/bigshouldersdisplay.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("/assets/fonts/rethinksans.ttf") format("truetype"); font-style: normal; font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #151112;
  --muted: #6f6467;
  --line: #e1d7d7;
  --panel: #ffffff;
  --page: #f7f3f1;
  --soft: #fff1ef;
  --teal: #c81f32;
  --teal-strong: #7d101d;
  --gold: #c9972f;
  --red: #c81f32;
  --green: #2d7f54;
  --blue: #2f5f9e;
  --black: #100d0e;
  --charcoal: #1b1517;
  --shadow: 0 18px 44px rgba(40, 14, 18, 0.12);
  --display-font: "Big Shoulders Display", Orbitron, "Bank Gothic", "Rajdhani", "Eurostile", "Arial Black", Impact, sans-serif;
}

/* MMA Draft Figma visual pass moved to final overrides below. */

* {
  box-sizing: border-box;
}

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

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.logged-out .app-shell {
  grid-template-columns: 1fr;
}

.logged-out .sidebar,
.logged-out .topbar {
  display: none;
}

.logged-out .main {
  padding: 0;
}

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

.portal-shell .sidebar,
.portal-shell .topbar {
  display: none;
}

.portal-shell .main {
  padding: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(200, 31, 50, 0.16), transparent 34%),
    var(--black);
  color: #fff8f6;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 26px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 900;
  overflow: visible;
}

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

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: #d9c5c6;
  font-size: 0.82rem;
}

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

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f3e9e8;
  text-align: left;
  padding: 9px 12px;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(200, 31, 50, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

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

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

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 8px 12px;
}

.danger-button {
  border-color: rgba(200, 31, 50, 0.58);
  background: #c81f32;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(200, 31, 50, 0.18);
}

.danger-button:hover:not(:disabled) {
  background: #a7192a;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-button {
  border-color: var(--teal);
  background: linear-gradient(135deg, #e63748, var(--teal-strong));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(200, 31, 50, 0.24);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(135deg, #e63748, var(--teal-strong));
  color: white;
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.view {
  display: grid;
  gap: 18px;
}

.logged-out .view {
  min-height: 100vh;
}

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

.panel,
.metric,
.team-card,
.division-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(200, 31, 50, 0.06), rgba(16, 13, 14, 0.02));
  padding: 14px 16px;
}

.panel-body {
  padding: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td.number,
th.number {
  text-align: right;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.green {
  background: #e4f7eb;
  color: var(--green);
}

.badge.gold {
  background: #fff1c9;
  color: #7d5a17;
}

.badge.red {
  background: #ffe1e4;
  color: var(--red);
}

.badge.blue {
  background: #e8f0ff;
  color: var(--blue);
}

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

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-results-stack {
  display: grid;
  gap: 16px;
  width: 100%;
}

.admin-results-stack > .panel {
  min-width: 0;
  width: 100%;
}

.result-list,
.audit-list {
  display: grid;
  gap: 12px;
}

.compact-scroll-list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
}

.compact-scroll-list .result-card,
.compact-scroll-list .audit-row {
  gap: 8px;
  padding: 10px;
}

.compact-scroll-list .result-card p {
  margin: 3px 0;
}

.review-queue-panel,
.ranking-review-panel {
  margin-top: 14px;
}

.compact-panel-header {
  align-items: center;
  margin-bottom: 12px;
}

.review-queue-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.review-queue-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  padding: 8px 10px;
}

.review-queue-row > span {
  color: var(--muted);
  font-weight: 800;
}

.review-queue-row strong,
.review-queue-row small {
  display: block;
}

.ranking-queue-copy strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-change-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #ffcc00;
  border-radius: 4px;
  padding: 0 7px;
  color: #ffcc00;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ranking-change-type.remove {
  border-color: #ff5d5d;
  color: #ff7b7b;
}

.ranking-change-type.add {
  border-color: #00d998;
  color: #00d998;
}

.review-queue-row small {
  margin-top: 2px;
  color: var(--muted);
}

.result-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(200, 31, 50, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fff7f6 100%);
  padding: 14px;
}

.result-card.voided {
  opacity: 0.72;
  background: #f7f7f7;
  border-color: var(--line);
}

.result-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.result-card strong,
.result-card span,
.result-card small {
  display: block;
}

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

.result-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-event {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-card-score {
  min-width: 86px;
  border: 1px solid rgba(16, 17, 19, 0.12);
  border-radius: 8px;
  background: #101113;
  color: white;
  padding: 10px;
  text-align: center;
}

.result-card-score strong {
  font-size: 1.35rem;
}

.result-card-score span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.audit-row strong,
.audit-row span,
.audit-row small {
  display: block;
}

.audit-row strong {
  color: var(--red);
  text-transform: capitalize;
}

.audit-row span,
.audit-row small {
  margin-top: 4px;
  color: var(--muted);
}

.backup-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.backup-panel strong,
.backup-panel p {
  display: block;
}

.result-card .danger-button {
  color: var(--red);
  border-color: rgba(200, 31, 50, 0.38);
}

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

.team-card {
  padding: 14px;
  text-align: left;
}

.team-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(18, 108, 103, 0.12), var(--shadow);
}

.team-card strong,
.team-card span {
  display: block;
}

.team-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.create-team-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(200, 31, 50, 0.16);
  border-radius: 8px;
  background: #fff2f0;
  padding: 14px;
}

.team-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

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

.division-column {
  min-height: 210px;
  padding: 14px;
}

.fighter-pill {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 8px;
  margin-top: 8px;
}

.rank-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--soft);
  color: var(--teal-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

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

.wide-field {
  grid-column: span 2;
}

.full-field {
  grid-column: 1 / -1;
}

.score-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.fighter-select {
  width: 100%;
  min-height: 190px;
  max-width: 100%;
  overflow-y: auto;
}

.score-selection-copy {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-command-page .score-selection-copy {
  color: #8f96a3;
}

.formula-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17242a;
  color: #eff6f4;
  padding: 14px;
  overflow-x: auto;
}

.formula-box code {
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.score-output {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.score-output div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
}

.score-output span,
.score-output strong {
  display: block;
}

.score-output span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-output strong {
  margin-top: 5px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.account-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.account-strip div,
.account-strip strong,
.account-strip span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-strip span,
.muted-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.shared-league-auth-notice,
.shared-league-invite-panel,
.league-share-link-panel {
  border: 1px solid rgba(255, 204, 0, 0.48);
  border-radius: 8px;
  background: #111317;
  color: #ffffff;
}

.shared-league-auth-notice {
  display: grid;
  gap: 4px;
  width: min(760px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 14px 16px;
}

.shared-league-auth-notice strong,
.shared-league-invite-panel span {
  color: #ffcc00;
}

.shared-league-auth-notice span,
.shared-league-invite-panel p {
  color: #aab0ba;
  font-size: 13px;
}

.shared-league-invite-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
}

.shared-league-invite-panel h2 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.shared-league-invite-panel p {
  margin: 0;
}

.shared-league-invite-actions,
.league-share-link-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.league-share-link-panel {
  margin: -6px auto 18px;
  max-width: 1180px;
  padding: 12px 14px;
}

.league-share-link-panel label {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-share-link-panel input {
  flex: 1 1 360px;
  min-width: 0;
}

.auth-panel {
  border-color: rgba(191, 143, 47, 0.45);
}

.text-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: #fff1a2;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 18px;
}

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

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

.rules-page {
  display: grid;
  gap: 18px;
}

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

.scoring-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
}

.scoring-card span,
.example-score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scoring-card strong,
.scoring-card p,
.example-score span,
.example-score strong {
  display: block;
}

.scoring-card strong {
  margin-top: 6px;
}

.scoring-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.example-score {
  display: grid;
  gap: 12px;
}

.example-score div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.example-score div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.example-score strong {
  margin-top: 5px;
}

.rule-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rule-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rule-row span {
  color: var(--muted);
}

.invite-code {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 900;
}

.score-save {
  margin-top: 14px;
}

.landing-shell,
.auth-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(200, 31, 50, 0.28), transparent 34%),
    linear-gradient(135deg, #100d0e 0%, #221719 48%, #f8f1ee 100%);
  color: #fff8f6;
  padding: 26px;
}

.landing-shell::before,
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/mma-mastermind-faceoff-bg.png") center 58% / min(1120px, 92vw) auto no-repeat;
  opacity: 0.28;
  filter: saturate(0.6) contrast(0.95);
}

.landing-shell::after,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 13, 14, 0.92), rgba(16, 13, 14, 0.42) 45%, rgba(248, 241, 238, 0.72)),
    linear-gradient(180deg, rgba(16, 13, 14, 0.34), rgba(200, 31, 50, 0.12));
}

.landing-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.landing-brand .brand-mark {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 0 12px rgba(255, 44, 62, 0.42));
}

.landing-brand strong,
.landing-brand span {
  display: block;
}

.landing-brand span {
  color: #f0c8c6;
  font-size: 0.86rem;
}

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

.landing-shell .ghost-button,
.auth-shell .ghost-button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff8f6;
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 34px;
  align-items: center;
  max-width: 980px;
  min-height: calc(100vh - 250px);
  margin: 0 auto;
  padding: 44px 0;
  text-align: center;
}

.landing-copy {
  display: grid;
  gap: 26px;
  max-width: 900px;
  justify-items: center;
}

.landing-hero-logo {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: clamp(10px, 2vw, 18px);
  width: min(760px, 100%);
  min-height: auto;
  border: 0;
  background: transparent;
  padding: clamp(8px, 1.8vw, 18px);
  box-shadow: none;
}

.landing-hero-logo .brand-mark {
  width: clamp(190px, 24vw, 320px);
  height: clamp(190px, 24vw, 320px);
  border: 0;
  background: transparent;
  padding: 0;
  filter:
    drop-shadow(0 26px 36px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(200, 31, 50, 0.46));
  mix-blend-mode: screen;
}

.hero-wordmark {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.hero-wordmark strong {
  display: block;
  color: #fff8f6;
  font-family: var(--display-font);
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  font-weight: 950;
  line-height: 0.82;
  text-transform: uppercase;
  transform: skewX(-7deg);
  text-shadow:
    0 0 16px rgba(255, 44, 62, 0.34),
    0 6px 0 rgba(125, 16, 29, 0.72),
    0 26px 48px rgba(0, 0, 0, 0.52);
}

.hero-wordmark span {
  display: block;
  color: #ff3b4f;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  font-weight: 900;
  text-transform: uppercase;
  transform: skewX(-7deg);
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.landing-copy h1 {
  max-width: 900px;
  color: #fff8f6;
  font-size: clamp(3rem, 6.8vw, 6.4rem);
  line-height: 0.94;
  font-weight: 950;
  font-family: var(--display-font);
  text-shadow: 0 22px 58px rgba(0, 0, 0, 0.44);
}

.landing-copy p {
  max-width: 660px;
  color: #f3d7d4;
  font-size: 1.08rem;
  line-height: 1.65;
}

.landing-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  align-items: stretch;
}

.landing-feature-grid div {
  display: grid;
  align-content: start;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.91);
  padding: 18px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.landing-feature-grid strong,
.landing-feature-grid span {
  display: block;
}

.landing-feature-grid span {
  margin-top: 8px;
  color: #665759;
  line-height: 1.45;
}

.auth-shell {
  display: grid;
  align-content: start;
  gap: 46px;
}

.auth-page-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.auth-page-grid .panel {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 31, 50, 0.14), transparent 28%),
    linear-gradient(135deg, #fff8f6, #f3ebe8);
  color: var(--ink);
  padding: 26px;
}

.portal-nav,
.portal-brand-hero,
.league-list,
.portal-actions-grid,
.profile-header,
.profile-tabs,
.profile-grid {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.portal-nav,
.portal-left,
.portal-right,
.profile-header,
.profile-tabs,
.league-tile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-nav {
  justify-content: space-between;
  max-width: none;
  margin: -26px -26px 34px;
  border-bottom: 1px solid rgba(200, 31, 50, 0.18);
  background:
    linear-gradient(90deg, rgba(16, 13, 14, 0.98), rgba(56, 18, 22, 0.96));
  padding: 14px 26px;
}

.portal-left,
.portal-right,
.profile-tabs,
.league-tile-actions {
  flex-wrap: wrap;
}

.portal-tab {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f6;
  padding: 8px 12px;
  font-weight: 800;
}

.portal-tab.active,
.portal-tab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(200, 31, 50, 0.28);
}

.portal-brand-hero {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
}

.clean-home-hero {
  min-height: min(58vh, 620px);
  align-content: center;
  margin-bottom: 0;
}

.clean-home-hero .portal-brand-lockup {
  gap: 18px;
}

.clean-home-hero .portal-brand-lockup .brand-mark {
  width: clamp(150px, 18vw, 240px);
  height: clamp(150px, 18vw, 240px);
}

.home-action-panel {
  max-width: 1180px;
  margin: 0 auto 16px;
}

.single-home-panel {
  max-width: 640px;
}

.portal-brand-lockup {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.portal-brand-lockup .brand-mark {
  width: clamp(110px, 12vw, 160px);
  height: clamp(110px, 12vw, 160px);
  border: 0;
  background: transparent;
  filter:
    drop-shadow(0 20px 28px rgba(40, 14, 18, 0.28))
    drop-shadow(0 0 14px rgba(200, 31, 50, 0.28));
}

.portal-brand-lockup strong {
  display: block;
  color: var(--black);
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 950;
  line-height: 0.82;
  text-transform: uppercase;
  transform: skewX(-7deg);
}

.portal-brand-lockup span {
  display: block;
  color: var(--teal-strong);
  font-family: var(--display-font);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  transform: skewX(-7deg);
}

.profile-header h1 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.profile-header p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.6;
}

.league-meta-grid div,
.profile-list div,
.profile-side div {
  display: grid;
  gap: 5px;
}

.league-meta-grid span,
.profile-list span,
.profile-side span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.league-meta-grid strong,
.profile-list strong,
.profile-side strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-notice {
  max-width: 1180px;
  margin: 0 auto 18px;
  border: 1px solid rgba(200, 31, 50, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal-strong);
  padding: 12px 14px;
  font-weight: 800;
}

.league-list,
.league-selector-layout,
.portal-actions-grid,
.profile-grid {
  display: grid;
  gap: 16px;
}

.league-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.league-selector-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  margin-bottom: 16px;
}

.league-select-panel,
.league-side-stack,
.create-league-panel {
  min-height: 100%;
}

.league-side-stack {
  display: grid;
  gap: 16px;
}

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

.portal-panel {
  border: 1px solid rgba(200, 31, 50, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.league-tile {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.league-detail-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(200, 31, 50, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.league-tile-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.league-tile-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

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

.league-tile-actions {
  justify-content: space-between;
  margin-top: auto;
}

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

.league-browser-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(200, 31, 50, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.league-browser-row strong,
.league-browser-row span {
  display: block;
}

.league-browser-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.league-browser-join {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(260px, 100%);
}

.league-browser-join input {
  min-height: 36px;
  min-width: 0;
  width: 150px;
  border: 1px solid rgba(200, 31, 50, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
}

.invite-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(200, 31, 50, 0.18);
  border-radius: 8px;
  background: #fff2f0;
  color: var(--teal-strong);
  padding: 6px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.standard-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.standard-settings span {
  border: 1px solid rgba(200, 31, 50, 0.16);
  border-radius: 8px;
  background: #fff2f0;
  color: #6b3338;
  padding: 7px 9px;
  font-size: 0.84rem;
  font-weight: 800;
}

.ranking-import-panel {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.ranking-import-panel textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ranking-import-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 1fr);
  gap: 12px;
}

.ranking-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.ranking-slot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.ranking-slot-row span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  background: #101113;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.ranking-slot-row input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 9px;
}

.ranking-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ranking-import-result {
  border: 1px solid rgba(200, 31, 50, 0.16);
  border-radius: 8px;
  background: #fff8f6;
  color: var(--teal-strong);
  padding: 10px 12px;
  font-weight: 800;
}

.ranking-adjust-panel {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.ranking-adjust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ranking-tool-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.ranking-tool-card h3 {
  margin: 0;
}

.ranking-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 0.45fr);
  gap: 10px;
}

.ranking-history-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.ranking-history-row {
  border: 1px solid rgba(200, 31, 50, 0.14);
  border-radius: 8px;
  background: #fff8f6;
  padding: 10px;
}

.ranking-history-row strong,
.ranking-history-row span,
.ranking-history-row small {
  display: block;
}

.ranking-history-row strong {
  color: var(--red);
  text-transform: capitalize;
}

.ranking-history-row span,
.ranking-history-row small {
  margin-top: 4px;
  color: var(--muted);
}

.profile-header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.centered-page-header {
  justify-content: center;
  text-align: center;
}

.centered-page-header > div {
  display: grid;
  justify-items: center;
}

.centered-page-header p {
  max-width: 720px;
}

.profile-tabs {
  margin-bottom: 16px;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  align-items: start;
}

.profile-grid.profile-grid-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

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

.profile-summary-list > div {
  min-height: 108px;
  align-content: center;
  border: 1px solid rgba(200, 31, 50, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #fff8f6);
  padding: 16px;
}

.profile-summary-list strong {
  color: var(--ink);
  font-size: 1.05rem;
}

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

.profile-side {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.message-row {
  display: grid;
  gap: 8px;
  border: 1px solid #282d33;
  border-radius: 7px;
  background: #15191e;
  color: #ffffff;
  padding: 14px;
}

.message-row:last-child {
  border-bottom: 1px solid #282d33;
}

.message-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.message-row span {
  color: #aab2bd;
  font-size: 0.82rem;
}

.message-row p {
  margin-bottom: 0;
  color: #ffffff;
  line-height: 1.45;
}

.message-row.unread {
  border-color: rgba(255, 204, 0, 0.82);
  box-shadow: inset 3px 0 0 #ffcc00;
}

.message-row > div > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-unread-badge,
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ffcc00;
  color: #121417;
  font-size: 11px;
  font-weight: 900;
}

.message-reply-button {
  justify-self: start;
  border: 1px solid rgba(255, 204, 0, 0.72);
  border-radius: 4px;
  background: transparent;
  color: #ffcc00;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}

.message-reply-button:hover {
  background: rgba(255, 204, 0, 0.12);
  color: #ffffff;
}

.empty-state {
  color: var(--muted);
  padding: 12px 0;
}

.inbox-button {
  white-space: nowrap;
}

.inbox-button span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  border-radius: 999px;
  background: #15191e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.profile-message-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  color: #ffcc00;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-message-notice b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffcc00;
  color: #15191e;
  font-size: 10px;
}

.profile-page {
  background: #080a0c;
  color: #ffffff;
  font-family: "Rethink Sans", Inter, sans-serif;
}

.profile-page .portal-nav {
  min-height: 81px;
  border-bottom-color: #202429;
  background: #060708;
  padding: 16px 40px;
}

.profile-page .portal-tab,
.profile-page .portal-right .ghost-button {
  min-height: 40px;
  border-color: #303641;
  border-radius: 4px;
  background: #11161d;
  color: #ffffff;
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.profile-page .portal-tab.active,
.profile-page .portal-tab:hover {
  border-color: #ffcc00;
  background: #11161d;
  color: #ffcc00;
}

.profile-page .portal-right .ghost-button {
  border-color: transparent;
  background: transparent;
}

.profile-page .portal-right .ghost-button:hover {
  color: #ffcc00;
}

.profile-page .profile-header,
.profile-page .profile-tabs,
.profile-page .profile-grid {
  width: min(1280px, calc(100vw - 96px));
  max-width: none;
  margin-right: auto;
  margin-left: clamp(26px, 5vw, 72px);
}

.profile-page .profile-header {
  align-items: flex-end;
  border-bottom: 1px solid #24292f;
  padding: 18px 0 20px;
}

.profile-page .profile-header h1,
.profile-page .profile-header p,
.profile-page .profile-content-surface h2,
.profile-page .profile-content-surface h3 {
  color: #ffffff;
  font-family: "Rethink Sans", Inter, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.profile-page .profile-header p,
.profile-page .profile-content-surface .muted-copy {
  color: #aab2bd;
}

.profile-page .profile-tabs {
  border-bottom: 1px solid #24292f;
  margin-bottom: 0;
  padding: 12px 0;
}

.profile-page .profile-grid.profile-grid-single {
  display: block;
  margin-top: 0;
}

.profile-content-surface {
  padding: 22px 0 36px;
}

.profile-content-surface > .panel-header {
  border-bottom: 1px solid #24292f;
  background: transparent;
  padding: 0 0 14px;
}

.profile-content-surface > .panel-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.profile-content-surface > .panel-body {
  padding: 18px 0;
}

.profile-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.profile-summary-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #24292f;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.profile-summary-list > div:last-child {
  border-bottom: 0;
}

.profile-summary-list span {
  color: #8f96a3;
  font-size: 11px;
}

.profile-summary-list strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.profile-page .inbox-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.3fr) minmax(0, 0.7fr);
  min-height: 620px;
  padding: 0;
  border: 1px solid #24292f;
  border-radius: 6px;
  background: #0e1115;
  overflow: hidden;
}

.message-thread-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid #24292f;
  background: #0a0c0f;
}

.message-thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #24292f;
  padding: 13px;
}

.message-thread-toolbar strong {
  color: #ffffff;
  font-size: 13px;
}

.message-thread-toolbar select {
  max-width: 116px;
  border: 1px solid #303640;
  border-radius: 4px;
  background: #15191e;
  color: #d9dfe7;
  padding: 6px;
  font: inherit;
  font-size: 11px;
}

.message-thread-list,
.message-conversation-panel > .message-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #3b434d #0a0c0f;
}

.message-thread-list {
  display: grid;
  align-content: start;
}

.message-thread-row {
  display: grid;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid #20252b;
  background: transparent;
  color: #dfe5eb;
  padding: 13px;
  text-align: left;
}

.message-thread-row:hover,
.message-thread-row.active {
  background: rgba(255, 204, 0, 0.08);
}

.message-thread-row.active {
  box-shadow: inset 3px 0 0 #ffcc00;
}

.message-thread-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.message-thread-row strong {
  color: #ffffff;
  font-size: 13px;
}

.message-thread-row b {
  border-radius: 999px;
  background: #ffcc00;
  color: #111317;
  padding: 2px 6px;
  font-size: 9px;
}

.message-thread-row span,
.message-thread-row small {
  color: #aab2bd;
  font-size: 10px;
}

.message-thread-row p {
  overflow: hidden;
  margin: 0;
  color: #d9dfe7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr) auto;
  min-height: 0;
}

.message-conversation-header {
  border-bottom: 1px solid #24292f;
  padding: 16px;
}

.message-conversation-header span,
.message-row small {
  color: #aab2bd;
  font-size: 11px;
}

.message-conversation-header h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.message-conversation-panel > .message-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: none;
  padding: 16px;
}

.profile-page .message-row {
  max-width: min(86%, 620px);
  border-radius: 6px;
}

.profile-page .message-row.sent {
  justify-self: end;
  border-color: rgba(255, 204, 0, 0.44);
  background: #1b1c16;
}

.profile-page .message-row.received {
  justify-self: start;
}

.message-compose-form {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(230px, 1fr) auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid #24292f;
  background: #0a0c0f;
  padding: 14px;
}

.message-compose-form .field {
  min-width: 0;
}

.message-compose-form .message-compose-body {
  grid-column: 1 / 3;
}

.message-compose-form > button {
  grid-column: 3;
  grid-row: 2;
}

.message-compose-form label {
  color: #aab2bd;
  font-size: 10px;
}

.message-compose-form select,
.message-compose-form textarea {
  border: 1px solid #303640;
  border-radius: 4px;
  background: #15191e;
  color: #ffffff;
  font: inherit;
}

.message-compose-form select {
  min-height: 38px;
  padding: 8px;
}

.message-compose-form textarea {
  min-height: 42px;
  padding: 9px;
  resize: vertical;
}

@media (max-width: 760px) {
  .profile-page .portal-nav {
    padding: 14px 20px;
  }

  .profile-page .profile-header,
  .profile-page .profile-tabs,
  .profile-page .profile-grid {
    width: auto;
    margin-right: 0;
    margin-left: 0;
  }

  .profile-page .inbox-workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .message-thread-sidebar {
    max-height: 290px;
    border-right: 0;
    border-bottom: 1px solid #24292f;
  }

  .message-conversation-panel {
    min-height: 520px;
  }

  .message-compose-form {
    grid-template-columns: 1fr 1fr;
  }

  .message-compose-form .message-compose-body,
  .message-compose-form > button {
    grid-column: 1 / -1;
  }

  .message-compose-form > button {
    grid-row: auto;
  }
}

.draft-control {
  display: grid;
  gap: 14px;
}

.draft-readiness-panel .panel-header {
  align-items: flex-start;
}

.draft-readiness-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 14px;
}

.readiness-checklist,
.readiness-teams > div {
  display: grid;
  gap: 10px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(16, 17, 19, 0.12);
  border-radius: 8px;
  background: #fff7f6;
  padding: 10px;
}

.readiness-item.done {
  background: #f0fbf7;
  border-color: rgba(18, 108, 103, 0.22);
}

.readiness-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #101113;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.readiness-item strong,
.readiness-item small,
.readiness-team strong,
.readiness-team small {
  display: block;
}

.readiness-item small,
.readiness-team small,
.readiness-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.readiness-note {
  border-left: 3px solid var(--red);
  padding: 8px 10px;
  background: #fff7f6;
}

.readiness-teams {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.readiness-teams > strong {
  display: block;
  margin-bottom: 10px;
}

.readiness-team {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: 8px;
  background: white;
  padding: 9px;
}

.readiness-team > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #101113;
  color: white;
  font-weight: 900;
}

.draft-popout-shell .app-shell {
  display: block;
}

.draft-popout-shell .sidebar,
.draft-popout-shell .topbar {
  display: none;
}

.draft-popout-shell .main {
  min-height: 100vh;
  padding: 22px;
}

.draft-popout-page {
  display: grid;
  gap: 16px;
}

.draft-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(200, 31, 50, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.97), rgba(111, 18, 32, 0.92));
  color: #ffffff;
  padding: 16px 18px;
}

.draft-popout-header .eyebrow,
.draft-popout-header h1 {
  color: #ffffff;
}

.draft-popout-shell .draft-room {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
}

.draft-popout-shell .draft-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.draft-popout-shell .draft-filter-tab {
  min-height: 48px;
  border-radius: 8px;
  white-space: normal;
}

.draft-popout-shell .draft-pool {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: calc(100vh - 370px);
}

.draft-room-launcher .panel-header {
  align-items: center;
}

.draft-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.draft-main {
  min-width: 0;
}

.draft-now {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(200, 31, 50, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.96), rgba(54, 19, 26, 0.94));
  color: #ffffff;
  padding: 12px;
}

.draft-now strong {
  font-size: 1.15rem;
}

.draft-now span {
  color: rgba(255, 255, 255, 0.76);
}

.draft-now small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.draft-schedule-form,
.draft-timer-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.draft-schedule-form .ghost-button,
.draft-timer-form .ghost-button {
  min-height: 40px;
  white-space: nowrap;
}

.draft-turn-alert {
  border: 1px solid rgba(200, 31, 50, 0.24);
  border-radius: 8px;
  background: #fff2f0;
  color: var(--red);
  padding: 10px 12px;
  font-weight: 900;
}

.draft-toolbar input {
  width: 100%;
  min-height: 42px;
}

.draft-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.draft-filter-tab {
  min-height: 38px;
  border: 1px solid rgba(28, 31, 38, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
  white-space: normal;
  box-shadow: inset 0 -1px 0 rgba(28, 31, 38, 0.08);
}

.draft-filter-tab.active,
.draft-filter-tab:hover {
  border-color: rgba(200, 31, 50, 0.34);
  background: #fff2f0;
  color: var(--red);
}

.draft-pool {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  overscroll-behavior: contain;
}

.draft-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  border: 1px solid rgba(20, 22, 28, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.96)),
    linear-gradient(135deg, rgba(200, 31, 50, 0.16), rgba(20, 22, 28, 0.08));
  color: var(--ink);
  padding: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(20, 22, 28, 0.08);
  overflow: hidden;
}

.draft-card:hover:not(:disabled) {
  border-color: rgba(200, 31, 50, 0.58);
  box-shadow: 0 0 0 2px rgba(200, 31, 50, 0.13), 0 12px 26px rgba(20, 22, 28, 0.12);
  transform: translateY(-1px);
}

.draft-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.draft-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.draft-card strong,
.draft-card span,
.draft-card small {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.draft-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.draft-roster-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.draft-team-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 0 12px 12px;
}

.draft-team-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 22, 28, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f8fa);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(20, 22, 28, 0.07);
}

.draft-team-card.active {
  border-color: rgba(200, 31, 50, 0.42);
  background: #fff8f6;
  box-shadow: 0 0 0 2px rgba(200, 31, 50, 0.08);
}

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

.draft-team-card-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.draft-team-card-header span {
  color: var(--muted);
  font-weight: 900;
}

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

.draft-team-division-grid span {
  border: 1px solid rgba(20, 22, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 5px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.draft-team-division-grid span.filled {
  background: #e4f7eb;
  color: var(--green);
}

.draft-team-picks {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.draft-team-picks div {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px;
}

.draft-team-picks span,
.draft-team-picks small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.draft-team-picks small {
  color: var(--muted);
  font-size: 0.76rem;
}

.draft-table td {
  min-width: 180px;
  vertical-align: top;
}

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

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

.draft-cell-pick {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(36, 55, 54, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 7px;
}

.draft-cell-pick + .draft-cell-pick {
  margin-top: 7px;
}

.draft-cell-pick.active {
  border-color: rgba(200, 31, 50, 0.32);
  background: #fff8df;
}

.on-clock-cell {
  background: #f7edcf;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-two,
  .kpi-grid,
  .team-grid,
  .division-grid,
  .claim-grid,
  .auth-grid,
  .draft-pool,
  .draft-room,
  .scoring-grid,
  .landing-hero,
  .landing-feature-grid,
  .auth-page-grid,
  .league-selector-layout,
  .league-list,
  .portal-actions-grid,
  .profile-grid,
  .ranking-adjust-grid,
  .ranking-slot-grid,
  .inbox-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-room,
  .draft-popout-shell .draft-room {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .draft-pool,
  .draft-popout-shell .draft-pool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-popout-shell .draft-filter-tabs,
  .draft-filter-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list,
  .grid-two,
  .kpi-grid,
  .team-grid,
  .create-team-box,
  .team-create-form,
  .division-grid,
  .form-grid,
  .score-output,
  .score-entry-grid,
  .claim-grid,
  .scoring-grid,
  .auth-grid,
  .rule-row,
  .draft-pool,
  .draft-room,
  .draft-readiness-grid,
  .ranking-adjust-grid,
  .ranking-inline-fields,
  .ranking-import-toolbar,
  .ranking-slot-grid,
  .draft-now,
  .draft-schedule-form,
  .draft-timer-form,
  .landing-hero,
  .landing-feature-grid,
  .auth-page-grid {
    grid-template-columns: 1fr;
  }

  .result-card-main {
    grid-template-columns: 1fr;
  }

  .backup-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-roster-sidebar {
    position: static;
    max-height: none;
  }

  .draft-team-list {
    max-height: 460px;
  }

  .draft-filter-tabs,
  .draft-popout-shell .draft-filter-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-filter-tab {
    min-height: 44px;
  }

  .landing-shell,
  .auth-shell,
  .portal-page {
    padding: 18px;
  }

  .portal-nav {
    margin: -18px -18px 28px;
    padding: 14px 18px;
  }

  .landing-shell::before,
  .auth-shell::before {
    background-size: 128vw auto;
    opacity: 0.16;
  }

  .landing-nav,
  .portal-nav,
  .profile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero {
    min-height: auto;
    padding: 36px 0;
  }

  .landing-hero-logo {
    grid-template-columns: 1fr;
    max-width: 420px;
    background: radial-gradient(circle at 50% 30%, rgba(200, 31, 50, 0.18), transparent 58%);
  }

  .landing-hero-logo .brand-mark {
    width: 180px;
    height: 180px;
  }

  .hero-wordmark {
    justify-items: center;
    text-align: center;
  }

  .landing-feature-grid {
    margin-top: 0;
  }

  .wide-field {
    grid-column: span 1;
  }

  .account-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .league-selector-layout,
  .league-list,
  .portal-actions-grid,
  .profile-grid,
  .profile-list,
  .inbox-layout,
  .league-meta-grid {
    grid-template-columns: 1fr;
  }

  .portal-right,
  .portal-left,
  .league-tile-header,
  .league-browser-row,
  .league-tile-actions,
  .message-row div {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final MMA Draft theme overrides */
body {
  background: #050607;
  color: #f7f8fb;
}

.main,
.portal-page {
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 208, 0, 0.09), transparent 24%),
    linear-gradient(180deg, #080a0d, #050607);
  color: #f7f8fb;
}

.sidebar,
.topbar,
.portal-nav {
  border-color: #252b36;
  background: #07090b;
}

.panel,
.metric,
.team-card,
.division-column,
.portal-panel {
  border: 1px solid #252b36;
  border-radius: 8px;
  background: #12161c;
  color: #f7f8fb;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.panel-header {
  border-bottom-color: #252b36;
  background: linear-gradient(90deg, rgba(255, 208, 0, 0.06), transparent);
}

h1,
h2,
h3,
.brand strong,
.landing-brand strong,
.portal-brand-lockup strong,
.primary-button,
.ghost-button,
.portal-tab,
.nav-item,
.badge {
  font-family: "Arial Narrow", "Roboto Condensed", "DIN Condensed", Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.panel-header h2,
.league-dashboard-hero .eyebrow,
.section-kicker {
  color: #ffd000;
}

.muted-copy,
.metric span,
.metric small,
.field label,
th,
.draft-card span,
.draft-card small,
.draft-team-picks small {
  color: #9aa4b5;
}

.primary-button,
.primary-link {
  border-color: #ffd000;
  border-radius: 6px;
  background: #ffd000;
  color: #050607;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.28), 0 12px 30px rgba(255, 208, 0, 0.18);
}

.primary-button:hover:not(:disabled),
.primary-link:hover {
  background: #ffdf3d;
}

.ghost-button,
.icon-button,
.portal-tab {
  border-color: #3a4250;
  border-radius: 6px;
  background: #11161e;
  color: #f7f8fb;
}

.portal-tab {
  border-color: transparent;
  background: transparent;
  color: #9aa4b5;
}

.portal-tab.active,
.portal-tab:hover,
.nav-item.active,
.nav-item:hover {
  background: rgba(255, 208, 0, 0.16);
  color: #ffd000;
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.league-browser-join input,
.ranking-slot-row input {
  border-color: #252b36;
  background: #171c24;
  color: #f7f8fb;
}

.badge.gold,
.badge.green {
  background: #ffd000;
  color: #050607;
}

.badge.blue {
  background: #232a36;
  color: #a9b4c7;
}

.badge.red,
.danger-button {
  background: #ef3340;
  color: #ffffff;
}

.landing-shell,
.auth-shell {
  background: #050607;
  color: #f7f8fb;
  padding: 0;
}

.landing-shell::before,
.auth-shell::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.28), rgba(5, 6, 7, 0.94)),
    repeating-linear-gradient(62deg, transparent 0 28px, rgba(255, 208, 0, 0.08) 29px 31px, transparent 32px 58px),
    repeating-linear-gradient(118deg, transparent 0 28px, rgba(255, 208, 0, 0.07) 29px 31px, transparent 32px 58px),
    radial-gradient(circle at 52% 38%, rgba(255, 208, 0, 0.36), transparent 15%),
    url("./assets/mma-mastermind-faceoff-bg.png") center 25% / min(920px, 92vw) auto no-repeat;
  opacity: 1;
  filter: none;
}

.landing-shell::after,
.auth-shell::after {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.2), #050607 57%),
    radial-gradient(circle at 50% 18%, rgba(255, 208, 0, 0.28), transparent 26%);
}

.landing-nav {
  max-width: none;
  min-height: 86px;
  border-bottom: 1px solid #1f2530;
  background: rgba(5, 6, 7, 0.88);
  padding: 18px 80px;
}

.landing-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.landing-brand strong {
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 0.9;
}

.landing-brand span {
  display: none;
}

.landing-actions {
  align-items: center;
}

.landing-actions a {
  color: #f7f8fb;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.landing-actions a:hover {
  color: #ffd000;
}

.landing-hero {
  justify-items: start;
  max-width: none;
  min-height: 600px;
  padding: 120px 80px 88px;
  text-align: left;
}

.landing-copy {
  justify-items: start;
  max-width: 760px;
  gap: 14px;
}

.landing-status,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 3px;
  background: #ffd000;
  color: #050607;
  padding: 6px 10px;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(4.4rem, 8.3vw, 8.5rem);
  line-height: 0.82;
  text-align: left;
  text-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
  transform: none;
}

.landing-copy h1 em,
.portal-brand-lockup span,
.score-output strong,
.draft-card small:first-of-type,
.draft-team-card-header span {
  color: #ffd000;
  font-style: normal;
}

.landing-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 0.9;
}

.landing-copy p,
.landing-overview p,
.landing-final-cta p,
.home-subline {
  color: #9aa4b5;
  line-height: 1.65;
}

.landing-cta-row,
.landing-stat-strip,
.landing-footer,
.league-dashboard-hero,
.draft-popout-clock {
  display: flex;
}

.landing-cta-row {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.landing-stat-strip {
  justify-content: center;
  gap: clamp(26px, 8vw, 110px);
  border-top: 1px solid #1f2530;
  border-bottom: 1px solid #1f2530;
  background: #10141a;
  padding: 22px;
}

.landing-stat-strip span {
  color: #f7f8fb;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-stat-strip span::before {
  content: "+";
  margin-right: 10px;
  color: #ffd000;
}

.landing-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 80px;
}

.landing-section > .section-kicker,
.landing-scoring-preview > .section-kicker {
  margin: 0 auto 12px;
}

.landing-section > h2,
.landing-scoring-preview > h2,
.landing-final-cta h2 {
  color: #ffffff;
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  line-height: 0.92;
  text-align: center;
}

.landing-feature-grid {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 52px;
}

.landing-feature-grid div {
  min-height: 210px;
  border-color: #222936;
  background: #12161c;
  color: #f7f8fb;
  text-align: left;
  box-shadow: none;
}

.landing-feature-grid b {
  color: #ffd000;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

.landing-feature-grid strong {
  margin-top: 30px;
  color: #ffffff;
  font-size: 1.35rem;
}

.landing-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 74px;
  align-items: center;
}

.landing-overview h2,
.landing-overview .section-kicker {
  margin-left: 0;
  text-align: left;
}

.landing-overview ul {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.landing-overview li {
  display: grid;
  gap: 4px;
  border-left: 3px solid #ffd000;
  padding-left: 14px;
}

.landing-holo-card {
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid #303847;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(239, 51, 64, 0.12)),
    radial-gradient(circle at 50% 45%, rgba(30, 130, 255, 0.22), transparent 34%),
    #0d1218;
  box-shadow: inset 0 0 70px rgba(255, 208, 0, 0.08), 0 30px 80px rgba(0, 0, 0, 0.42);
  padding: 34px;
  text-align: center;
}

.landing-holo-card strong {
  color: #ffffff;
  font-size: 2rem;
}

.landing-holo-card span {
  color: #57c7ff;
}

.landing-rule-table {
  display: grid;
  max-width: 1280px;
  margin: 46px auto 0;
  border: 1px solid #252b36;
  border-radius: 8px;
  overflow: hidden;
}

.landing-rule-table div {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid #252b36;
  background: #12161c;
  padding: 18px 22px;
}

.landing-rule-table div:last-child {
  border-bottom: 0;
}

.landing-final-cta {
  display: grid;
  min-height: 420px;
  align-content: center;
  justify-items: center;
  gap: 16px;
  border-bottom: 1px solid #1f2530;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 208, 0, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(5, 6, 7, 0), rgba(5, 6, 7, 0.8));
  padding: 80px 22px;
  text-align: center;
}

.landing-footer {
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #1f2530;
  background: #050607;
  padding: 46px 80px;
}

.landing-footer > span {
  color: #ffd000;
  font-weight: 900;
}

.portal-page {
  padding: 0 0 32px;
}

.portal-nav {
  min-height: 86px;
  margin: 0 0 34px;
  padding: 18px 32px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clean-home-hero {
  min-height: calc(100vh - 190px);
  margin-bottom: 0;
}

.portal-brand-lockup .brand-mark {
  width: clamp(210px, 22vw, 340px);
  height: clamp(210px, 22vw, 340px);
  filter: drop-shadow(0 0 24px rgba(239, 51, 64, 0.32)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}

.portal-brand-lockup strong {
  color: #ffffff;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.78;
  transform: none;
}

.home-action-panel,
.profile-header,
.profile-tabs,
.profile-grid,
.ranking-import-panel,
.ranking-adjust-panel,
.portal-panel,
.league-dashboard-hero,
.view > .panel,
.view > .grid-two,
.view > .kpi-grid,
.rules-page {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.league-dashboard-hero {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.league-dashboard-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.86;
}

.metric strong {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
}

.team-card,
.league-detail-panel,
.league-browser-row,
.ranking-tool-card,
.readiness-item,
.readiness-teams,
.readiness-team,
.fighter-pill,
.score-output div,
.scoring-card,
.audit-row,
.result-card,
.draft-team-card,
.draft-team-picks div {
  border-color: #252b36;
  background: #11161e;
  color: #f7f8fb;
}

.admin-command-page .review-queue-row,
.league-shell .review-queue-row {
  border-color: #252b36;
  background: #11161e;
  color: #f7f8fb;
}

.admin-command-page .review-queue-row > span,
.admin-command-page .review-queue-row small,
.league-shell .review-queue-row > span,
.league-shell .review-queue-row small {
  color: #8f96a3;
}

.standard-settings span,
.invite-chip,
.ranking-import-result,
.portal-notice {
  border-color: rgba(255, 208, 0, 0.28);
  background: rgba(255, 208, 0, 0.1);
  color: #ffd000;
}

.admin-command-page .portal-nav {
  margin-bottom: 0;
}

.admin-mode-strip {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin-bottom: 54px;
  background: #ffd000;
  color: #050607;
  padding: 0 40px;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-mode-strip::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 16px;
  border-radius: 50%;
  background: #050607;
}

.admin-command-page .profile-header {
  display: none;
}

.admin-command-page .admin-results-stack,
.admin-command-page > .panel {
  max-width: 1360px;
}

.admin-users-panel {
  margin-top: 18px;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  border-bottom: 1px solid #252b36;
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-users-table th {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-users-table td {
  color: #d9dde5;
  font-size: 13px;
}

.admin-users-table td strong {
  display: block;
  color: #ffffff;
}

.admin-users-table td small {
  display: block;
  margin-top: 3px;
  color: #8f96a3;
}

.admin-user-name-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.admin-user-name-button:hover,
.admin-user-name-button:focus-visible {
  color: #ffd400;
  outline: 0;
}

.admin-user-email-row td {
  padding-top: 0;
  color: #aeb7c6;
}

.admin-user-email-row span {
  display: inline-block;
  margin-right: 9px;
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-user-email-row strong {
  color: #ffffff;
}

.admin-users-table .number {
  text-align: center;
}

.admin-results-stack {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.72fr);
  align-items: start;
}

.admin-results-stack > .panel:first-child {
  grid-row: span 2;
}

.result-card,
.score-output div,
.formula-box {
  background: #0d1117;
}

.result-event,
.audit-row strong,
.ranking-history-row strong {
  color: #ffd000;
}

.draft-popout-shell .main {
  padding: 0;
}

.draft-popout-page {
  min-height: 100vh;
  gap: 0;
  background: #050607;
}

.draft-popout-header {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #252b36;
  border-radius: 0;
  background: #10141a;
  color: #ffffff;
  padding: 18px 32px;
}

.draft-popout-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1;
}

.draft-popout-header p {
  margin: 4px 0 0;
  color: #ffd000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.draft-popout-clock {
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.draft-popout-clock span {
  color: #9aa4b5;
}

.draft-popout-clock strong {
  min-width: 76px;
  border: 1px solid #ef3340;
  border-radius: 6px;
  color: #ff4b56;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.1rem;
  text-align: center;
}

.draft-popout-page > .portal-notice,
.draft-popout-page > .draft-readiness-panel,
.draft-popout-page > .draft-room-launcher,
.draft-popout-page > .draft-admin-settings,
.draft-popout-page > .panel,
.draft-popout-page > .draft-room {
  margin: 20px 32px;
}

.draft-room {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 24px;
}

.draft-room > .panel,
.draft-main > .panel,
.draft-roster-sidebar {
  background: transparent;
  box-shadow: none;
}

.draft-room .panel-header {
  border-bottom: 0;
  background: transparent;
}

.draft-room .panel-header h2 {
  color: #ffffff;
  font-size: 1.9rem;
}

.draft-now {
  border-color: rgba(255, 208, 0, 0.42);
  background: #10141a;
}

.draft-turn-alert {
  border-color: rgba(255, 208, 0, 0.44);
  background: rgba(255, 208, 0, 0.12);
  color: #ffd000;
}

.draft-filter-tabs,
.draft-popout-shell .draft-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 10px;
}

.draft-filter-tab,
.draft-popout-shell .draft-filter-tab {
  min-height: 40px;
  border-color: #252b36;
  border-radius: 6px;
  background: #12161c;
  color: #9aa4b5;
}

.draft-filter-tab.active,
.draft-filter-tab:hover {
  border-color: #ffd000;
  background: #ffd000;
  color: #050607;
}

.draft-pool,
.draft-popout-shell .draft-pool {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: none;
  overflow: visible;
  padding: 4px 0 0;
}

.draft-card {
  align-content: start;
  min-height: 176px;
  border-color: #252b36;
  border-radius: 8px;
  background: #12161c;
  color: #f7f8fb;
  padding: 16px;
  box-shadow: none;
}

.draft-card:hover:not(:disabled) {
  border-color: #ffd000;
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.28), 0 18px 36px rgba(0, 0, 0, 0.32);
}

.draft-avatar {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #242b36;
}

.draft-card strong,
.draft-team-card-header strong {
  color: #ffffff;
}

.draft-roster-sidebar {
  top: 92px;
}

.draft-team-list {
  padding: 0;
}

.draft-team-card.active {
  border-color: #ffd000;
  background: #171913;
}

.draft-team-division-grid span {
  border-color: #252b36;
  background: #0d1117;
}

.draft-team-division-grid span.filled {
  background: rgba(0, 224, 139, 0.12);
  color: #00e08b;
}

.on-clock-cell,
.draft-cell-pick.active {
  background: rgba(255, 208, 0, 0.1);
}

@media (max-width: 1100px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .landing-overview,
  .admin-results-stack,
  .draft-popout-shell .draft-pool,
  .draft-pool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-room,
  .draft-popout-shell .draft-room {
    grid-template-columns: 1fr;
  }

  .draft-roster-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .landing-nav,
  .portal-nav,
  .draft-popout-header,
  .landing-footer,
  .landing-stat-strip,
  .league-dashboard-hero,
  .draft-popout-clock {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero {
    min-height: 520px;
    padding-top: 74px;
  }

  .landing-copy h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .landing-feature-grid,
  .landing-overview,
  .landing-rule-table div,
  .admin-results-stack,
  .draft-popout-shell .draft-pool,
  .draft-pool {
    grid-template-columns: 1fr;
  }

  .portal-brand-lockup strong {
    font-size: clamp(3.2rem, 17vw, 5.3rem);
  }
}

/* Landing page match for Figma frame 20-4 */
.landing-shell {
  background: #050607;
}

.landing-shell::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.58) 34%, rgba(5, 6, 7, 0.95) 100%),
    linear-gradient(180deg, rgba(255, 208, 0, 0.18), transparent 38%),
    repeating-linear-gradient(63deg, transparent 0 30px, rgba(255, 208, 0, 0.08) 31px 33px, transparent 34px 61px),
    repeating-linear-gradient(117deg, transparent 0 30px, rgba(255, 208, 0, 0.07) 31px 33px, transparent 34px 61px),
    radial-gradient(ellipse at 50% 20%, rgba(255, 208, 0, 0.42), transparent 22%),
    radial-gradient(ellipse at 48% 42%, rgba(255, 208, 0, 0.34), transparent 18%),
    url("./assets/mma-mastermind-faceoff-bg.png") center 21% / min(860px, 76vw) auto no-repeat;
}

.landing-shell::after {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.04) 0%, rgba(5, 6, 7, 0.16) 22%, #050607 58%),
    radial-gradient(ellipse at 54% 25%, rgba(255, 255, 255, 0.16), transparent 9%),
    radial-gradient(ellipse at 43% 21%, rgba(255, 255, 255, 0.12), transparent 8%);
}

.landing-nav {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: 34px;
  padding: 18px clamp(28px, 5.6vw, 80px);
}

.landing-brand strong {
  display: inline-flex;
  gap: 7px;
  color: #ffffff;
}

.landing-brand strong em {
  color: #ffd000;
  font-style: normal;
}

.landing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.landing-menu {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 54px);
}

.landing-account-actions {
  display: flex;
  gap: 10px;
}

.landing-hero {
  position: relative;
  min-height: 610px;
  padding: 118px clamp(28px, 5.6vw, 80px) 86px;
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: clamp(60px, 11vw, 190px);
  bottom: 88px;
  width: min(520px, 39vw);
  aspect-ratio: 1.9 / 1;
  border: 16px solid rgba(13, 16, 20, 0.9);
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 208, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.65);
  background:
    repeating-linear-gradient(62deg, transparent 0 19px, rgba(255, 208, 0, 0.22) 20px 21px, transparent 22px 41px),
    repeating-linear-gradient(118deg, transparent 0 19px, rgba(255, 208, 0, 0.2) 20px 21px, transparent 22px 41px),
    linear-gradient(180deg, rgba(255, 208, 0, 0.14), rgba(5, 6, 7, 0.28));
  opacity: 0.58;
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 1;
}

.landing-status {
  background: #ffd000;
  color: #050607;
}

.landing-copy h1 {
  max-width: 820px;
  font-size: clamp(4.75rem, 9vw, 8.8rem);
  letter-spacing: 0;
}

.landing-copy h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.35rem);
  color: #ffffff;
}

.landing-copy p {
  max-width: 650px;
}

.landing-stat-strip {
  font-size: 1.08rem;
}

.landing-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.landing-section .section-kicker {
  display: flex;
  justify-content: center;
  margin: 0 auto 13px;
}

.landing-feature-grid div {
  padding: 34px;
}

.landing-feature-grid b {
  margin-bottom: 10px;
}

.landing-overview {
  border-top: 1px solid #151a22;
}

.landing-overview .section-kicker {
  justify-content: flex-start;
}

.landing-holo-card {
  position: relative;
  overflow: hidden;
}

.landing-holo-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(87, 199, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(87, 199, 255, 0.24), transparent 18% 82%, rgba(239, 51, 64, 0.2)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(87, 199, 255, 0.12) 19px 20px);
  opacity: 0.46;
}

.landing-holo-card span,
.landing-holo-card strong,
.landing-holo-card small {
  position: relative;
  z-index: 1;
}

.landing-scoring-preview {
  max-width: none;
  border-top: 1px solid #151a22;
  border-bottom: 1px solid #151a22;
}

.landing-scoring-preview > * {
  max-width: 1280px;
}

.landing-rule-table strong {
  color: #ffffff;
}

.landing-rule-table span {
  color: #9aa4b5;
}

.landing-final-cta {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 208, 0, 0.22), transparent 18%),
    repeating-linear-gradient(62deg, transparent 0 34px, rgba(255, 208, 0, 0.05) 35px 36px, transparent 37px 68px),
    linear-gradient(180deg, #050607, #090b0e);
}

.landing-footer {
  align-items: center;
}

.landing-footer-copy {
  display: grid;
  gap: 8px;
  max-width: 360px;
  color: #8d99ab;
}

.landing-footer-copy p {
  margin: 0;
  line-height: 1.5;
}

.landing-footer-copy strong {
  color: #ffd000;
}

@media (max-width: 900px) {
  .landing-nav,
  .landing-actions {
    grid-template-columns: 1fr;
  }

  .landing-menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-hero::after {
    right: 22px;
    bottom: 52px;
    width: min(440px, 72vw);
    opacity: 0.28;
  }
}

@media (max-width: 680px) {
  .landing-account-actions {
    flex-direction: column;
  }

  .landing-hero {
    padding-top: 72px;
  }

  .landing-hero::after {
    display: none;
  }
}

/* Logged-in dashboard match for Figma frame 20-310 */
.dashboard-home-page {
  min-height: 100vh;
  background: #07080a;
  color: #ffffff;
  font-family: "Rethink Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.dashboard-home-page button {
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
}

.dashboard-top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 81px;
  border-bottom: 1px solid #202429;
  background: #060708;
  padding: 16px 40px;
}

.dashboard-brand-group,
.dashboard-user-actions,
.dashboard-sidebar-item,
.dashboard-context-row,
.dashboard-create-button,
.dashboard-league-badges,
.dashboard-members-badge,
.dashboard-card-actions,
.dashboard-card-footer,
.dashboard-card-footer > div,
.dashboard-browse-actions,
.dashboard-section-title,
.dashboard-trend {
  display: flex;
  align-items: center;
}

.dashboard-brand-group {
  gap: 12px;
}

.dashboard-brand-group .brand-mark,
.dashboard-home-page .brand-mark {
  width: 48px;
  height: 48px;
  filter: none;
}

.dashboard-brand-group strong {
  display: block;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-brand-group em {
  color: #ffcc00;
  font-style: normal;
}

.dashboard-user-actions {
  gap: 12px;
}

.dashboard-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #303641;
  border-radius: 4px;
  background: #11161d;
  color: #ffffff;
  padding: 0 16px;
  text-align: center;
}

.dashboard-profile-link span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-signout-button {
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-profile-link:hover span {
  color: #ffcc00;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 81px);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-right: 1px solid #202429;
  background: #060708;
  padding: 24px 0;
}

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

.dashboard-sidebar-item {
  width: 100%;
  min-height: 46px;
  gap: 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #8f96a3;
  padding: 12px 16px 12px 20px;
  text-align: left;
}

.dashboard-sidebar-item span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-sidebar-item strong {
  border-radius: 4px;
  background: #ffcc00;
  color: #07080a;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-sidebar-item.active,
.dashboard-sidebar-item:hover {
  border-left-color: #ffcc00;
  background: rgba(255, 204, 0, 0.13);
  color: #ffcc00;
}

.dashboard-leave-button {
  min-height: 36px;
  border: 1px solid rgba(255, 82, 82, .52);
  border-radius: 4px;
  background: transparent;
  color: #ff9a9a;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-leave-button:hover {
  border-color: #ff5252;
  background: rgba(255, 82, 82, .1);
  color: #fff;
}

.dashboard-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.dashboard-sidebar-spacer {
  flex: 1;
}

.dashboard-live-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0 20px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #111317;
  padding: 12px;
}

.dashboard-live-card::before {
  content: "";
  position: absolute;
  top: -17px;
  right: 0;
  left: 0;
  height: 1px;
  background: #202429;
}

.dashboard-live-card span {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-live-card strong {
  color: #ffcc00;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-live-card small {
  color: #00e676;
  font-size: 12px;
}

.dashboard-live-card small::before,
.dashboard-status-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  min-width: 0;
}

.dashboard-main-column {
  display: grid;
  align-content: start;
  gap: 32px;
  min-width: 0;
  padding: 40px 32px 40px 40px;
}

.dashboard-welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-context-row {
  gap: 12px;
  margin-bottom: 8px;
}

.dashboard-context-row span {
  color: #ffcc00;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-context-row strong {
  border: 1px solid #ffcc00;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.08);
  color: #ffcc00;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-welcome-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-create-button,
.dashboard-enter-button,
.dashboard-muted-button,
.dashboard-preview-button,
.dashboard-card-footer button,
.dashboard-icon-button,
.dashboard-text-link {
  min-height: 40px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-create-button {
  justify-content: center;
  gap: 8px;
  border: 1px solid #ffcc00;
  background: #ffcc00;
  color: #07080a;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 16px;
  padding: 12px 24px;
}

.dashboard-create-button.compact {
  font-size: 14px;
  padding: 10px 16px;
}

.dashboard-create-button .dashboard-icon {
  width: 16px;
  height: 16px;
}

.dashboard-create-button:hover,
.dashboard-enter-button:hover {
  background: #ffd633;
}

.dashboard-notice {
  max-width: none;
  margin: 0;
}

.dashboard-stat-card {
  display: grid;
  gap: 12px;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 20px;
}

.dashboard-stat-header,
.dashboard-stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.dashboard-stat-card span {
  color: #8f96a3;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-stat-icon-wrap {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #202429;
}

.dashboard-stat-icon-wrap .dashboard-icon {
  width: 16px;
  height: 16px;
}

.dashboard-stat-card strong {
  display: block;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-trend {
  gap: 2px;
  color: #00e676;
}

.dashboard-trend .dashboard-icon {
  width: 12px;
  height: 12px;
}

.dashboard-trend span {
  color: #00e676;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.dashboard-section {
  display: grid;
  gap: 20px;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section-title {
  gap: 12px;
}

.dashboard-section-title > span {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: #ffcc00;
}

.dashboard-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-section-title-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-section-title-button:hover {
  color: #ffcc00;
}

.dashboard-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 520px);
  gap: 20px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #111317;
  color: #ffffff;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.dashboard-section-toggle:hover,
.dashboard-section-toggle:focus-visible {
  border-color: #ffcc00;
  background: #15181d;
  outline: none;
}

.dashboard-section-toggle > span:first-child {
  display: grid;
  gap: 3px;
}

.dashboard-section-toggle strong {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-section-toggle small {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-section-toggle-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-section-toggle-action b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 204, 0, 0.55);
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
}

.dashboard-collapsible-content {
  min-width: 0;
}

.dashboard-text-link {
  border: 0;
  background: transparent;
  color: #ffcc00;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-leagues-grid,
.dashboard-browse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-league-card,
.dashboard-browse-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 24px;
}

.dashboard-league-card.selected {
  border-color: #ffcc00;
  box-shadow: 0 4px 18px rgba(255, 204, 0, 0.08);
}

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

.dashboard-league-card h3,
.dashboard-browse-card h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.dashboard-browse-card h3 {
  font-size: 18px;
}

.dashboard-league-badges {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-type-badge {
  border: 1px solid #b166ff;
  border-radius: 4px;
  background: rgba(74, 47, 107, 0.2);
  color: #d9a6ff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-type-badge.public {
  border-color: #00e676;
  background: rgba(47, 107, 47, 0.2);
  color: #00e676;
}

.dashboard-members-badge {
  gap: 4px;
  color: #8f96a3;
  font-size: 12px;
}

.dashboard-members-badge .dashboard-icon {
  width: 12px;
  height: 12px;
}

.dashboard-card-line {
  height: 1px;
  background: #202429;
}

.dashboard-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-card-stats div:last-child {
  text-align: right;
}

.dashboard-card-stats span {
  display: block;
  color: #8f96a3;
  font-size: 11px;
  text-transform: uppercase;
}

.dashboard-card-stats strong {
  display: block;
  margin-top: 2px;
  color: #f5f6f8;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-card-stats div:first-child strong {
  color: #ffcc00;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-card-actions {
  gap: 8px;
}

.dashboard-enter-button,
.dashboard-muted-button {
  flex: 1;
  justify-content: center;
  border: 1px solid #ffcc00;
  background: #ffcc00;
  color: #07080a;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 14px;
  padding: 10px 16px;
}

.dashboard-muted-button {
  border-color: #202429;
  background: #202429;
  color: #ffffff;
}

.dashboard-icon-button,
.dashboard-preview-button,
.dashboard-card-footer button {
  border: 1px solid #202429;
  background: transparent;
  color: #ffffff;
  padding: 8px 12px;
}

.dashboard-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
}

.dashboard-icon-button .dashboard-icon {
  width: 14px;
  height: 14px;
}

.dashboard-card-footer {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-card-footer > div {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.dashboard-card-footer button {
  min-height: 34px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-card-footer button.filled,
.dashboard-card-footer button:hover,
.dashboard-preview-button:hover {
  background: #202429;
}

.dashboard-card-footer button:disabled,
.dashboard-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-status-dot {
  color: #00e676;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-status-dot.locked {
  color: #ff3d00;
}

.dashboard-browse-card {
  gap: 12px;
  padding: 20px;
}

.dashboard-browse-card p {
  margin: 0;
  color: #8f96a3;
  font-size: 12px;
}

.dashboard-browse-actions {
  gap: 8px;
}

.dashboard-preview-button {
  flex: 0 0 auto;
}

.dashboard-join-form {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.dashboard-join-form input {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  border: 1px solid #202429;
  border-radius: 4px;
  background: #171c24;
  color: #ffffff;
  padding: 8px 10px;
}

.dashboard-action-panel .home-action-panel {
  max-width: none;
  margin: 0;
}

.dashboard-action-panel .panel-header {
  background: transparent;
}

.dashboard-list-page {
  display: grid;
  align-content: start;
  gap: 24px;
}

.dashboard-list-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-list-page-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-list-page-header p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #8f96a3;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 190px));
  gap: 12px;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 16px;
}

.dashboard-filter-bar label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-filter-bar label:only-child {
  grid-column: 1 / -1;
}

.dashboard-filter-bar span {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-filter-bar input,
.dashboard-filter-bar select {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 1px solid #202429;
  border-radius: 4px;
  background: #171c24;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 14px;
}

.dashboard-filter-bar input:focus,
.dashboard-filter-bar select:focus {
  border-color: #ffcc00;
  outline: none;
}

.dashboard-filter-bar .league-availability-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  width: fit-content;
  min-height: 32px;
  cursor: pointer;
}

.dashboard-filter-bar .league-availability-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: #ffcc00;
  color-scheme: dark;
}

.dashboard-filter-bar .league-availability-toggle span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.dashboard-filter-bar .league-availability-toggle input:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 3px;
}

.dashboard-wide-league-list {
  display: grid;
  gap: 14px;
}

.dashboard-wide-league-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: center;
  gap: 20px;
  min-width: 0;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 22px;
}

.dashboard-wide-league-row.selected {
  border-color: #ffcc00;
  box-shadow: 0 4px 18px rgba(255, 204, 0, 0.08);
}

.dashboard-wide-league-main {
  min-width: 0;
}

.dashboard-wide-league-main h3 {
  margin: 12px 0 6px;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.dashboard-wide-league-main p {
  margin: 0;
  color: #8f96a3;
  font-size: 13px;
}

.dashboard-wide-league-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-wide-league-actions .dashboard-enter-button,
.dashboard-wide-league-actions .dashboard-muted-button,
.dashboard-wide-league-actions .dashboard-preview-button {
  flex: 0 0 auto;
}

.dashboard-wide-league-actions .dashboard-join-form {
  flex: 1 1 290px;
  justify-content: flex-end;
}

.dashboard-preview-button.selected {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.12);
  color: #ffcc00;
}

.dashboard-invite-chip {
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-create-tab {
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: calc(100vh - 161px);
}

.dashboard-create-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-create-tab-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-create-tab-header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #8f96a3;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-create-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-create-info-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 20px;
}

.dashboard-create-info-grid span {
  color: #ffcc00;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-create-info-grid strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-create-info-grid p {
  margin: 0;
  color: #8f96a3;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-create-form-slot {
  align-self: end;
  margin-top: auto;
}

.dashboard-create-form-slot .home-action-panel {
  max-width: none;
  margin: 0;
}

.dashboard-create-form-slot .create-league-panel {
  border-color: #202429;
  background: #111317;
  box-shadow: none;
}

.dashboard-create-form-slot .panel-header {
  background: transparent;
}

.dashboard-rankings-panel {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 16px;
  height: calc(100vh - 81px);
  min-width: 0;
  overflow-y: auto;
  border-left: 1px solid #202429;
  background: #060708;
  padding: 40px 32px 40px 24px;
}

.dashboard-rankings-panel .dashboard-section-title {
  justify-content: flex-start;
}

.dashboard-rankings-panel .dashboard-text-link {
  justify-self: end;
  font-size: 12px;
  text-decoration: none;
}

.dashboard-rankings-table {
  overflow: hidden;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
}

.dashboard-rankings-header,
.dashboard-ranking-row {
  display: grid;
  grid-template-columns: 40px minmax(86px, 1fr) minmax(76px, 96px);
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
}

.dashboard-rankings-header {
  background: #202429;
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-ranking-row {
  min-height: 58px;
  border-bottom: 1px solid #202429;
}

.dashboard-ranking-row:last-child {
  border-bottom: 0;
}

.dashboard-ranking-row strong {
  color: #ffcc00;
  font-size: 12px;
}

.dashboard-ranking-row span {
  min-width: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-ranking-row small {
  color: #8f96a3;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-empty {
  margin: 0;
  border: 1px dashed #202429;
  border-radius: 8px;
  color: #8f96a3;
  padding: 16px;
}

.landing-brand .brand-mark,
.portal-brand-lockup .brand-mark {
  filter: drop-shadow(0 0 18px rgba(255, 204, 0, 0.26));
}

.league-shell .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  background: #07080a;
  color: #ffffff;
}

.league-shell .sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid #202429;
  background: #060708;
  padding: 24px 0;
}

.league-shell .brand {
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 20px;
}

.league-shell .brand .brand-mark {
  width: 48px;
  height: 48px;
}

.league-shell .brand strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.league-shell .brand span {
  color: #8f96a3;
}

.league-shell .nav-list {
  gap: 8px;
}

.league-shell .nav-item {
  gap: 12px;
  min-height: 46px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #8f96a3;
  padding: 12px 16px 12px 20px;
  font-family: "Geist", Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.league-shell .nav-item img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.league-shell .nav-item.active,
.league-shell .nav-item:hover {
  border-left-color: #ffcc00;
  background: rgba(255, 204, 0, 0.13);
  color: #ffcc00;
}

.league-shell .main {
  min-width: 0;
  background: #07080a;
  padding: 0 32px 40px;
}

.league-shell .topbar {
  min-height: 81px;
  margin: 0 -32px 32px;
  border-bottom: 1px solid #202429;
  background: #060708;
  padding: 16px 40px;
}

.league-shell .topbar .eyebrow {
  color: #ffcc00;
  font-family: "Geist", Inter, sans-serif;
  font-size: 12px;
}

.league-shell .topbar h1 {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.league-shell .topbar-actions .ghost-button,
.league-shell .topbar-actions .primary-button {
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.league-shell .account-strip {
  max-width: 1180px;
  margin: 0 auto 18px;
  border-color: #202429;
  background: #111317;
  color: #ffffff;
  box-shadow: none;
}

.league-shell table {
  min-width: 760px;
}

.league-shell th,
.league-shell td {
  border-bottom-color: #202429;
}

@media (max-width: 1180px) {
  .dashboard-body,
  .league-shell .app-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar,
  .league-shell .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #202429;
  }

  .dashboard-sidebar-list,
  .league-shell .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-live-card {
    display: none;
  }

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

  .dashboard-rankings-panel {
    position: static;
    height: auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #202429;
    padding: 32px;
  }
}

@media (max-width: 760px) {
  .dashboard-top-navigation,
  .dashboard-welcome-header,
  .dashboard-section-header,
  .dashboard-card-stats,
  .dashboard-card-footer,
  .dashboard-user-actions,
  .league-shell .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shared-league-invite-panel,
  .shared-league-invite-actions,
  .league-share-link-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .league-share-link-panel input,
  .league-share-link-panel button {
    width: 100%;
  }

  .dashboard-top-navigation,
  .dashboard-main-column,
  .dashboard-rankings-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dashboard-sidebar-list,
  .league-shell .nav-list,
  .dashboard-leagues-grid,
  .dashboard-browse-grid,
  .dashboard-create-info-grid,
  .dashboard-filter-bar,
  .dashboard-wide-league-row,
  .dashboard-rankings-header,
  .dashboard-ranking-row {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar-item {
    min-height: 44px;
  }

  .dashboard-card-stats div:last-child,
  .dashboard-profile-link {
    justify-items: start;
    text-align: left;
  }

  .dashboard-card-footer > div,
  .dashboard-card-actions,
  .dashboard-browse-actions,
  .dashboard-wide-league-actions,
  .dashboard-join-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .dashboard-wide-league-actions .dashboard-enter-button,
  .dashboard-wide-league-actions .dashboard-muted-button,
  .dashboard-wide-league-actions .dashboard-preview-button,
  .dashboard-wide-league-actions .dashboard-join-form {
    width: 100%;
  }

  .dashboard-card-footer {
    display: flex;
  }

  .dashboard-icon-button {
    width: 100%;
  }

  .league-shell .main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .league-shell .topbar {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Exact Figma landing page, frame 20:4 */
.logged-out .view {
  display: block;
  gap: 0;
}

.figma-landing-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #07080a;
  color: #ffffff;
  font-family: "Rethink Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.figma-landing-page *,
.figma-landing-page *::before,
.figma-landing-page *::after {
  box-sizing: border-box;
}

.figma-landing-page img {
  display: block;
}

.figma-landing-page a {
  color: inherit;
  text-decoration: none;
}

.figma-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 73px;
  border-bottom: 1px solid #202429;
  background: #060708;
  padding: 12px 80px;
}

.figma-landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.figma-landing-logo img {
  width: 40px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(79%) sepia(69%) saturate(1058%) hue-rotate(358deg) brightness(104%) contrast(104%);
  object-fit: contain;
}

.figma-landing-logo strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.figma-landing-logo span {
  color: #ffcc00;
}

.figma-landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
  color: #ffffff;
  font-family: "Geist", Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  text-transform: uppercase;
}

.figma-landing-nav-links a:hover,
.figma-social-links a:hover {
  color: #ffcc00;
}

.figma-landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  border: 1.5px solid #ffcc00;
  border-radius: 4px;
  background: #ffcc00;
  color: #07080a;
  padding: 14px 28px;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.figma-landing-button:hover {
  border-color: #ffd93d;
  background: #ffd93d;
}

.figma-landing-button.is-outline {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.figma-landing-button.is-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.figma-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
  padding: 80px;
}

.figma-hero-image,
.figma-final-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.7);
}

.figma-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: min(640px, 100%);
}

.figma-hero-badge {
  border-radius: 4px;
  background: #ffcc00;
  color: #07080a;
  padding: 6px 12px;
  font-family: "Geist", Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.33;
  text-transform: uppercase;
}

.figma-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 90px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.figma-hero h1 span {
  color: #ffcc00;
}

.figma-hero-subhead {
  margin: 12px 0 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.figma-hero-copy {
  max-width: 640px;
  margin: 0;
  color: #8f96a3;
  font-family: "Rethink Sans", Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.figma-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.figma-ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 64px;
  border-top: 1px solid #202429;
  border-bottom: 1px solid #202429;
  background: #121417;
  padding: 16px 20px;
}

.figma-ticker div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.figma-ticker span {
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: #ffcc00;
}

.figma-ticker strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.09;
  text-transform: uppercase;
}

.figma-section,
.figma-league-section,
.figma-scoring-section {
  background: #07080a;
  padding: 96px 80px;
}

.figma-section-heading,
.figma-league-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.figma-section-heading {
  align-items: center;
  margin: 0 auto 64px;
  text-align: center;
}

.figma-landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.figma-landing-eyebrow span {
  width: 8px;
  height: 8px;
  background: #ffcc00;
}

.figma-landing-eyebrow strong {
  color: #ffcc00;
  font-family: "Geist", Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  text-transform: uppercase;
}

.figma-section-heading h2,
.figma-league-heading h2,
.figma-final-content h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.figma-section-heading h2,
.figma-league-heading h2 {
  font-size: 48px;
  line-height: 1.1;
}

.figma-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.figma-step-card {
  min-width: 0;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 32px;
}

.figma-step-card > strong {
  display: block;
  color: #ffcc00;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.figma-step-card h3 {
  margin: 20px 0 8px;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: 0;
  text-transform: uppercase;
}

.figma-step-card p,
.figma-league-copy > p,
.figma-league-bullet p,
.figma-scoring-row p,
.figma-final-content p,
.figma-footer p {
  margin: 0;
  color: #8f96a3;
  font-family: "Rethink Sans", Inter, sans-serif;
  font-weight: 400;
}

.figma-step-card p,
.figma-league-bullet p,
.figma-scoring-row p {
  font-size: 14px;
  line-height: 1.5;
}

.figma-league-section {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 560px);
  align-items: center;
  gap: 80px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.figma-league-image-wrap {
  overflow: hidden;
  border: 1px solid #202429;
  border-radius: 8px;
}

.figma-league-image-wrap img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

.figma-league-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.figma-league-section-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.figma-league-section-centered .figma-league-copy {
  max-width: 720px;
  align-items: center;
}

.figma-league-section-centered .figma-league-heading,
.figma-league-section-centered .figma-league-bullets {
  align-items: center;
}

.figma-league-section-centered .figma-league-bullet {
  max-width: 580px;
  text-align: left;
}

.figma-league-copy > p {
  font-size: 16px;
  line-height: 1.6;
}

.figma-league-bullets {
  display: grid;
  gap: 20px;
}

.figma-league-bullet {
  display: flex;
  gap: 16px;
}

.figma-league-bullet > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.15);
}

.figma-league-bullet img {
  width: 16px;
  height: 16px;
}

.figma-league-bullet strong {
  display: block;
  margin: 0 0 4px;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.figma-scoring-section {
  border-top: 1px solid #202429;
  border-bottom: 1px solid #202429;
  background: #060708;
}

.figma-scoring-table {
  overflow: hidden;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
}

.figma-scoring-row {
  display: grid;
  grid-template-columns: 240px 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #202429;
  padding: 16px 24px;
}

.figma-scoring-row:last-child {
  border-bottom: 0;
}

.figma-scoring-row > strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.figma-scoring-row > span {
  width: max-content;
  border: 1px solid #ffcc00;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  padding: 4px 12px;
  font-family: "Geist", Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
}

.figma-final-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  padding: 120px 80px;
  text-align: center;
}

.figma-final-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, 0.85);
}

.figma-final-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.figma-final-content h2 {
  font-size: 64px;
  line-height: 1;
}

.figma-final-content p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
}

.figma-footer {
  border-top: 1px solid #202429;
  background: #060708;
  padding: 80px 80px 40px;
}

.figma-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.figma-footer-brand {
  max-width: 360px;
}

.figma-footer-brand > p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.figma-footer-brand > strong {
  display: block;
  margin-top: 16px;
  color: #ffcc00;
  font-family: "Geist", Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
}

.figma-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
}

.figma-footer-bottom p {
  font-size: 12px;
  line-height: 1.5;
}

.figma-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.figma-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #8f96a3;
}

.figma-social-links img {
  width: 18px;
  height: 18px;
}

.brand-mark.mma-logo img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(69%) saturate(1058%) hue-rotate(358deg) brightness(104%) contrast(104%);
}

@media (max-width: 1100px) {
  .figma-landing-nav,
  .figma-hero,
  .figma-section,
  .figma-league-section,
  .figma-scoring-section,
  .figma-final-cta,
  .figma-footer {
    padding-right: 40px;
    padding-left: 40px;
  }

  .figma-league-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .figma-league-image-wrap img {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .figma-landing-nav {
    flex-wrap: wrap;
  }

  .figma-landing-nav-links {
    order: 3;
    justify-content: flex-start;
    width: 100%;
  }

  .figma-steps-grid {
    grid-template-columns: 1fr;
  }

  .figma-scoring-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .figma-landing-nav,
  .figma-hero,
  .figma-section,
  .figma-league-section,
  .figma-scoring-section,
  .figma-final-cta,
  .figma-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .figma-landing-nav {
    align-items: stretch;
    gap: 18px;
  }

  .figma-landing-nav-links {
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .figma-landing-button {
    width: 100%;
  }

  .figma-hero {
    min-height: 620px;
  }

  .figma-hero h1 {
    font-size: 68px;
  }

  .figma-hero-subhead {
    font-size: 38px;
  }

  .figma-hero-copy,
  .figma-final-content p {
    font-size: 16px;
  }

  .figma-section-heading h2,
  .figma-league-heading h2 {
    font-size: 44px;
  }

  .figma-ticker {
    justify-content: flex-start;
  }

  .figma-league-image-wrap img {
    min-height: 280px;
  }

  .figma-final-content h2 {
    font-size: 48px;
  }

  .figma-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* League interior Figma system */
.league-shell {
  background: #07080a;
  color: #ffffff;
  font-family: "Rethink Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.league-shell .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  background: #07080a;
  color: #ffffff;
}

.league-shell button,
.league-shell input,
.league-shell select,
.league-shell textarea {
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
}

.league-shell h1,
.league-shell h2,
.league-shell h3,
.league-shell .brand strong,
.league-shell .metric strong,
.league-shell .team-card strong,
.league-shell .division-column h3,
.league-shell .fighter-pill > span:nth-child(2),
.league-shell .scoring-card strong,
.league-shell .result-card strong,
.league-shell .draft-now strong,
.league-shell .draft-card strong,
.league-shell .draft-team-card-header strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.league-shell .sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid #202429;
  background: #060708;
  padding: 24px 0;
}

.league-shell .brand {
  gap: 12px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 20px;
}

.league-shell .brand .brand-mark {
  width: 48px;
  height: 48px;
}

.league-shell .brand strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.league-shell .brand span {
  color: #8f96a3;
  font-size: 12px;
}

.league-shell .nav-list {
  display: grid;
  gap: 8px;
}

.league-shell .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #8f96a3;
  padding: 12px 16px 12px 20px;
  text-align: left;
  text-transform: none;
}

.league-shell .nav-item span {
  flex: 1;
  min-width: 0;
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.league-shell .nav-item.active,
.league-shell .nav-item:hover {
  border-left-color: #ffcc00;
  background: rgba(255, 204, 0, 0.13);
  color: #ffcc00;
}

.league-shell .nav-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(75%) sepia(93%) saturate(780%) hue-rotate(2deg) brightness(107%) contrast(106%);
}

.dashboard-sidebar .dashboard-icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(93%) saturate(780%) hue-rotate(2deg) brightness(107%) contrast(106%);
}

.league-shell .main {
  min-width: 0;
  background: #07080a;
  padding: 0 32px 40px;
}

.league-shell .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 81px;
  margin: 0 -32px 32px;
  border-bottom: 1px solid #202429;
  background: #060708;
  padding: 16px 40px;
}

.league-shell .topbar .eyebrow,
.league-shell .eyebrow {
  margin: 0 0 4px;
  color: #ffcc00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.33;
  text-transform: uppercase;
}

.league-shell .topbar h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.league-shell .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.league-shell .view {
  display: grid;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.league-shell .league-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  margin: 0;
}

.league-shell .league-dashboard-hero h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.league-shell .kpi-grid,
.league-shell .grid-two,
.league-shell .team-grid,
.league-shell .division-grid,
.league-shell .scoring-grid,
.league-shell .claim-grid,
.league-shell .form-grid,
.league-shell .score-output,
.league-shell .draft-readiness-grid {
  display: grid;
  gap: 16px;
}

.league-shell .kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.league-shell .grid-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.league-shell .team-grid,
.league-shell .division-grid,
.league-shell .scoring-grid,
.league-shell .claim-grid,
.league-shell .score-output {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.league-shell .panel,
.league-shell .metric,
.league-shell .team-card,
.league-shell .division-column,
.league-shell .scoring-card,
.league-shell .result-card,
.league-shell .audit-row,
.league-shell .readiness-item,
.league-shell .readiness-teams,
.league-shell .draft-team-card,
.league-shell .score-output div,
.league-shell .create-team-box,
.league-shell .formula-box,
.league-shell .account-strip {
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  color: #ffffff;
  box-shadow: none;
}

.league-shell .panel {
  overflow: hidden;
}

.league-shell .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #202429;
  background: transparent;
  padding: 16px 20px;
}

.league-shell .panel-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.league-shell .panel-body {
  padding: 20px;
}

.league-shell .muted-copy,
.league-shell .metric span,
.league-shell .metric small,
.league-shell .team-card span,
.league-shell .score-row span,
.league-shell .rule-row span,
.league-shell .scoring-card p,
.league-shell .example-score span,
.league-shell .draft-now span,
.league-shell .draft-card span,
.league-shell .draft-card small,
.league-shell .draft-team-card span,
.league-shell .draft-team-picks small,
.league-shell .readiness-item small,
.league-shell .result-card p,
.league-shell .result-card small,
.league-shell .audit-row span,
.league-shell .audit-row small {
  color: #8f96a3;
}

.league-shell .league-activity-list { display: grid; max-height: 430px; overflow-y: auto; }
.league-shell .league-activity-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 220px; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #202429; }
.league-shell .league-activity-row:last-child { border-bottom: 0; }
.league-shell .league-activity-row > div { display: grid; gap: 4px; min-width: 0; }
.league-shell .league-activity-row strong { color: #ffffff; }
.league-shell .league-activity-row span, .league-shell .league-activity-row time { color: #8f96a3; font-size: 0.82rem; }
.league-shell .league-activity-row time { text-align: right; }
.league-shell .league-activity-kind { display: inline-flex; justify-content: center; align-items: center; min-height: 25px; border: 1px solid #313842; border-radius: 4px; padding: 3px 7px; color: #d8dde7; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.league-shell .league-activity-kind.draft, .league-shell .league-activity-kind.commissioner { border-color: #e0b600; color: #ffd11a; }
.league-shell .league-activity-kind.trade { border-color: #7866d8; color: #b6aaff; }
.league-shell .league-activity-kind.waiver { border-color: #14a46d; color: #51d89c; }
.league-shell .league-activity-kind.result { border-color: #d95757; color: #ff9191; }
.league-shell .league-activity-empty { padding: 20px; margin: 0; }

.league-shell .trade-status-panel .panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.league-shell .trade-status-panel .panel-body > div {
  display: grid;
  gap: 4px;
}

.league-shell .trade-status-panel .panel-body span:not(.badge) {
  color: #8f96a3;
  font-size: 0.86rem;
}

.league-shell .trade-protection-form {
  display: flex;
  align-items: end;
  gap: 14px;
}

.league-shell .trade-protection-form .field { flex: 1; }

@media (max-width: 700px) {
  .league-shell .league-activity-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px 16px;
  }

  .league-shell .league-activity-kind { justify-self: start; }
  .league-shell .league-activity-row time { text-align: left; }
  .league-shell .trade-status-panel .panel-body { align-items: flex-start; flex-direction: column; }
  .league-shell .trade-protection-form { align-items: stretch; flex-direction: column; }
}

.league-shell .metric {
  padding: 20px;
}

.league-shell .metric span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell .metric strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.league-shell .metric small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.league-shell .primary-button,
.league-shell .primary-link,
.league-shell .ghost-button,
.league-shell .danger-button,
.league-shell .icon-button,
.league-shell .portal-tab,
.league-shell .draft-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.league-shell .primary-button,
.league-shell .primary-link {
  border: 1px solid #ffcc00;
  background: #ffcc00;
  color: #07080a;
  box-shadow: none;
}

.league-shell .primary-button:hover:not(:disabled),
.league-shell .primary-link:hover {
  background: #ffd633;
}

.league-shell .ghost-button,
.league-shell .icon-button,
.league-shell .portal-tab,
.league-shell .draft-filter-tab {
  border: 1px solid #202429;
  background: #111317;
  color: #ffffff;
}

.league-shell .ghost-button:hover:not(:disabled),
.league-shell .portal-tab.active,
.league-shell .portal-tab:hover,
.league-shell .draft-filter-tab.active,
.league-shell .draft-filter-tab:hover {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.13);
  color: #ffcc00;
}

.league-shell .danger-button {
  border-color: #ff3d00;
  background: rgba(255, 61, 0, 0.14);
  color: #ff8a65;
}

.league-shell .badge {
  min-height: 24px;
  border: 1px solid #202429;
  border-radius: 4px;
  background: #202429;
  color: #8f96a3;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell .badge.green {
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
}

.league-shell .badge.gold {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
}

.league-shell .badge.blue {
  border-color: #57c7ff;
  background: rgba(87, 199, 255, 0.12);
  color: #57c7ff;
}

.league-shell .badge.red {
  border-color: #ff3d00;
  background: rgba(255, 61, 0, 0.14);
  color: #ff8a65;
}

.league-shell .table-wrap {
  overflow-x: auto;
}

.league-shell table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #111317;
}

.league-shell th,
.league-shell td {
  border-bottom: 1px solid #202429;
  color: #d9dde4;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

.league-shell th {
  background: #202429;
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell td strong {
  color: #ffffff;
}

.league-shell td small {
  display: block;
  margin-top: 5px;
  color: #8f96a3;
  font-size: 11px;
  white-space: normal;
}

.league-shell td.number,
.league-shell th.number {
  text-align: right;
}

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

.league-shell .score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid #202429;
  padding: 12px 0;
}

.league-shell .score-row:last-child {
  border-bottom: 0;
}

.league-shell .score-row strong:last-child {
  color: #ffcc00;
}

.league-shell .team-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  text-align: left;
}

.league-shell .team-card-select {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.league-shell .team-card-select:hover strong {
  color: #ffcc00;
}

.league-shell .team-remove-member {
  margin-top: 10px;
  border: 1px solid rgba(255, 82, 82, .58);
  border-radius: 4px;
  background: transparent;
  color: #ff9a9a;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
}

.league-shell .team-remove-member:hover {
  border-color: #ff5252;
  background: rgba(255, 82, 82, .1);
  color: #fff;
}

.league-shell .member-management-panel,
.league-shell .league-delete-panel {
  margin-top: 16px;
}

.league-shell .member-management-list {
  display: grid;
  gap: 8px;
}

.league-shell .member-management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #272c33;
  border-radius: 6px;
  background: #0d1117;
  padding: 12px;
}

.league-shell .member-management-row div {
  display: grid;
  gap: 3px;
}

.league-shell .member-management-row span {
  color: #8f96a3;
  font-size: 12px;
}

.league-shell .team-card.selected {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
  box-shadow: 0 4px 18px rgba(255, 204, 0, 0.08);
}

.league-shell .team-card strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.league-shell .team-card span {
  margin: 0;
  font-size: 13px;
}

.league-shell .create-team-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: end;
  padding: 18px;
}

.league-shell .create-team-box h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.league-shell .team-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.league-shell .division-column {
  min-height: 210px;
  padding: 16px;
}

.league-shell .division-column h3 {
  margin: 0 0 10px;
  color: #ffcc00;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.league-shell .fighter-pill {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #0d1117;
  padding: 8px;
  margin-top: 8px;
}

.league-shell .fighter-pill > span:nth-child(2) {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.league-shell .fighter-pill strong {
  color: #00e676;
  font-size: 12px;
}

.league-shell .rank-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  font-size: 11px;
  font-weight: 900;
}

.league-shell .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.league-shell .field {
  display: grid;
  gap: 6px;
}

.league-shell .field label,
.league-shell .toolbar label {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell .field small {
  color: #8f96a3;
}

.league-shell .field input,
.league-shell .field select,
.league-shell .field textarea,
.league-shell .toolbar input,
.league-shell .toolbar select,
.league-shell .league-browser-join input,
.league-shell .ranking-slot-row input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #202429;
  border-radius: 4px;
  background: #171c24;
  color: #ffffff;
  padding: 9px 12px;
}

.league-shell .field input:focus,
.league-shell .field select:focus,
.league-shell .field textarea:focus,
.league-shell .toolbar input:focus,
.league-shell .toolbar select:focus {
  border-color: #ffcc00;
  outline: none;
}

.league-shell .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.league-shell .wide-field {
  grid-column: span 2;
}

.league-shell .full-field {
  grid-column: 1 / -1;
}

.league-shell .fighter-select {
  min-height: 190px;
}

.league-shell .rules-page {
  display: grid;
  gap: 24px;
}

.league-shell .scoring-card {
  padding: 18px;
}

.league-shell .scoring-card span,
.league-shell .example-score span {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell .scoring-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.league-shell .scoring-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.league-shell .rules-list,
.league-shell .example-score,
.league-shell .stack,
.league-shell .result-list,
.league-shell .audit-list {
  display: grid;
  gap: 12px;
}

.league-shell .rule-row,
.league-shell .example-score div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid #202429;
  padding-bottom: 12px;
}

.league-shell .rule-row:last-child,
.league-shell .example-score div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.league-shell .rule-row strong,
.league-shell .example-score strong {
  color: #ffffff;
}

.league-shell .formula-box {
  overflow-x: auto;
  padding: 16px;
}

.league-shell .formula-box code {
  color: #d9dde4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: pre;
}

.league-shell .draft-readiness-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
}

.league-shell .readiness-checklist,
.league-shell .readiness-teams > div {
  display: grid;
  gap: 10px;
}

.league-shell .readiness-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.league-shell .readiness-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: rgba(255, 61, 0, 0.14);
  color: #ff8a65;
  font-size: 12px;
  font-weight: 900;
}

.league-shell .readiness-item.done > span {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
}

.league-shell .readiness-item strong,
.league-shell .readiness-teams > strong,
.league-shell .readiness-team strong {
  color: #ffffff;
}

.league-shell .readiness-teams {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.league-shell .readiness-team {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #0d1117;
  padding: 10px;
}

.league-shell .readiness-team > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  font-weight: 900;
}

.league-shell .draft-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 24px;
}

.league-shell .draft-room > .panel,
.league-shell .draft-main > .panel,
.league-shell .draft-roster-sidebar {
  background: transparent;
}

.league-shell .draft-control {
  display: grid;
  gap: 16px;
}

.league-shell .draft-now,
.league-shell .draft-turn-alert {
  border: 1px solid rgba(255, 204, 0, 0.42);
  border-radius: 6px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  padding: 14px;
}

.league-shell .draft-now strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.league-shell .draft-now span {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.league-shell .draft-now small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 204, 0, 0.72);
  line-height: 1.45;
}

.league-shell .draft-schedule-form,
.league-shell .draft-timer-form {
  border-color: #202429;
  border-radius: 6px;
  background: #0f1319;
}

.league-shell .draft-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
}

.league-shell .draft-pool {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: none;
  overflow: visible;
  padding: 4px 0 0;
}

.league-shell .draft-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 176px;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  color: #ffffff;
  padding: 16px;
  text-align: left;
  box-shadow: none;
}

.league-shell .draft-card:hover:not(:disabled) {
  border-color: #ffcc00;
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.28), 0 18px 36px rgba(0, 0, 0, 0.32);
}

.league-shell .draft-card:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.league-shell .draft-avatar {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #242b36;
}

.league-shell .draft-card strong {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.league-shell .draft-team-list,
.league-shell .draft-team-picks {
  display: grid;
  gap: 10px;
}

.league-shell .draft-team-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.league-shell .draft-team-card.active {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

.league-shell .draft-team-card-header,
.league-shell .draft-team-division-grid,
.league-shell .draft-team-picks div {
  display: grid;
  gap: 8px;
}

.league-shell .draft-team-card-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.league-shell .draft-team-division-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.league-shell .draft-team-division-grid span,
.league-shell .draft-team-picks div {
  border: 1px solid #202429;
  border-radius: 4px;
  background: #0d1117;
  color: #8f96a3;
  padding: 7px 8px;
  font-size: 11px;
}

.league-shell .draft-team-division-grid span.filled {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
}

.league-shell .draft-cell-pick {
  display: grid;
  gap: 3px;
  border: 1px solid #202429;
  border-radius: 4px;
  background: #0d1117;
  padding: 8px;
}

.league-shell .draft-cell-pick.active,
.league-shell .on-clock-cell {
  background: rgba(255, 204, 0, 0.1);
}

.league-shell .on-clock-cell {
  box-shadow: inset 3px 0 0 #ffcc00;
}

.league-shell .notice,
.league-shell .portal-notice,
.league-shell .readiness-note {
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 6px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  padding: 12px 14px;
}

.league-shell .result-card {
  padding: 7px 9px;
}

.league-shell .result-list.compact-scroll-list {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 6px;
}

.league-shell .result-card-main {
  gap: 8px;
}

.league-shell .result-card-main > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
}

.league-shell .result-card-main > div:first-child strong { font-size: 13px; }
.league-shell .result-event { font-size: 9px; }

.league-shell .result-card p,
.league-shell .result-card small {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1.25;
}

.league-shell .result-card-score {
  min-width: 58px;
  padding: 5px;
}

.league-shell .result-card-score strong {
  font-size: 16px;
}

.portal-shell .forum-hero,
.portal-shell .forum-board-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.dashboard-forum-page .forum-hero,
.dashboard-forum-page .forum-board-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.dashboard-forum-page .forum-hero { margin: 0 0 20px; }
.dashboard-forum-page .forum-hero h1 { margin: 5px 0; }
.dashboard-forum-page .forum-hero p { color: #8f96a3; margin: 0; }
.dashboard-forum-page .forum-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 16px; align-items: start; }
.dashboard-forum-page .forum-sidebar,
.dashboard-forum-page .forum-board { border: 1px solid #252b33; border-radius: 6px; background: #10141a; }
.dashboard-forum-page .forum-sidebar { display: grid; gap: 2px; padding: 12px; }
.dashboard-forum-page .forum-sidebar > span { color: #8f96a3; padding: 8px 9px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dashboard-forum-page .forum-sidebar button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border: 0; border-left: 3px solid transparent; background: transparent; color: #c6ced8; padding: 12px 9px; text-align: left; cursor: pointer; }
.dashboard-forum-page .forum-sidebar button.active { border-left-color: #ffcc00; background: rgba(255, 204, 0, .08); color: #fff; }
.dashboard-forum-page .forum-sidebar small { color: #8f96a3; font-size: 10px; }
.dashboard-forum-page .forum-board-header { padding: 18px 20px; border-bottom: 1px solid #252b33; }
.dashboard-forum-page .forum-board-header span,
.dashboard-forum-page .forum-column-labels { color: #8f96a3; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dashboard-forum-page .forum-board-header h2 { margin: 4px 0 0; color: #fff; }
.dashboard-forum-page .forum-column-labels,
.dashboard-forum-page .forum-thread { display: grid; grid-template-columns: minmax(0, 1fr) 130px 145px; gap: 16px; align-items: center; }
.dashboard-forum-page .forum-column-labels { padding: 10px 20px; background: #0b0e13; }
.dashboard-forum-page .forum-thread { width: 100%; border: 0; border-top: 1px solid #252b33; background: transparent; color: inherit; padding: 14px 20px; text-align: left; cursor: pointer; }
.dashboard-forum-page .forum-thread:hover { background: rgba(255, 204, 0, .035); }
.dashboard-forum-page .forum-thread-main strong { color: #ffcc00; font-size: 15px; }
.dashboard-forum-page .forum-thread-main small { display: block; margin: 4px 0 0; color: #a8afba; font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-forum-page .forum-thread > span,
.dashboard-forum-page .forum-thread time { color: #a8afba; font-size: 12px; overflow-wrap: anywhere; }
.dashboard-forum-page .forum-thread > span small { display: block; margin-top: 4px; color: #8f96a3; }
.dashboard-forum-page .forum-compose { position: fixed; z-index: 20; top: 50%; left: 50%; width: min(720px, calc(100vw - 32px)); transform: translate(-50%, -50%); box-shadow: 0 26px 70px rgba(0,0,0,.65); }
.dashboard-forum-page .forum-compose textarea { min-height: 220px; resize: vertical; }
.dashboard-forum-page .forum-compose[hidden] { display: none; }
.dashboard-forum-page .forum-full-post,
.dashboard-forum-page .forum-reply,
.dashboard-forum-page .forum-reply-form { padding: 22px; }
.dashboard-forum-page .forum-full-post { border-bottom: 1px solid #252b33; }
.dashboard-forum-page .forum-full-post header,
.dashboard-forum-page .forum-reply header { display: flex; justify-content: space-between; gap: 14px; color: #fff; }
.dashboard-forum-page .forum-post-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dashboard-forum-page .forum-delete-button { min-height: 28px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.dashboard-forum-page .forum-full-post time,
.dashboard-forum-page .forum-reply time { color: #8f96a3; font-size: 12px; }
.dashboard-forum-page .forum-full-post p,
.dashboard-forum-page .forum-reply p { color: #d8dde5; line-height: 1.65; white-space: pre-wrap; }
.dashboard-forum-page .forum-replies { border-bottom: 1px solid #252b33; }
.dashboard-forum-page .forum-replies-header { display: flex; justify-content: space-between; padding: 14px 22px; background: #0b0e13; color: #fff; }
.dashboard-forum-page .forum-replies-header span { color: #8f96a3; font-size: 11px; text-transform: uppercase; }
.dashboard-forum-page .forum-reply-list { max-height: 680px; overflow-y: auto; }
.dashboard-forum-page .forum-reply { border-top: 1px solid #252b33; }
.dashboard-forum-page .forum-reply-form textarea { min-height: 180px; resize: vertical; }
.portal-shell .forum-hero { margin: 34px 0 20px; }
.portal-shell .forum-hero h1 { margin: 5px 0; }
.portal-shell .forum-hero p { color: #8f96a3; margin: 0; }
.portal-shell .forum-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 16px; align-items: start; }
.portal-shell .forum-hero,
.portal-shell .forum-shell { width: min(1180px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.portal-shell .forum-sidebar,
.portal-shell .forum-board { border: 1px solid #252b33; border-radius: 6px; background: #10141a; }
.portal-shell .forum-sidebar { display: grid; gap: 2px; padding: 12px; }
.portal-shell .forum-sidebar > span { color: #8f96a3; padding: 8px 9px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.portal-shell .forum-sidebar button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border: 0; border-left: 3px solid transparent; background: transparent; color: #c6ced8; padding: 12px 9px; text-align: left; cursor: pointer; }
.portal-shell .forum-sidebar button.active { border-left-color: #ffcc00; background: rgba(255, 204, 0, .08); color: #fff; }
.portal-shell .forum-sidebar small { color: #8f96a3; font-size: 10px; }
.portal-shell .forum-board-header { padding: 18px 20px; border-bottom: 1px solid #252b33; }
.portal-shell .forum-board-header span,
.portal-shell .forum-column-labels { color: #8f96a3; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.portal-shell .forum-board-header h2 { margin: 4px 0 0; color: #fff; }
.portal-shell .forum-column-labels,
.portal-shell .forum-thread { display: grid; grid-template-columns: minmax(0, 1fr) 130px 145px; gap: 16px; align-items: center; }
.portal-shell .forum-column-labels { padding: 10px 20px; background: #0b0e13; }
.portal-shell .forum-thread { width: 100%; border: 0; border-top: 1px solid #252b33; background: transparent; color: inherit; padding: 14px 20px; text-align: left; cursor: pointer; }
.portal-shell .forum-thread:hover { background: rgba(255, 204, 0, .035); }
.portal-shell .forum-thread-main strong { color: #ffcc00; font-size: 15px; }
.portal-shell .forum-thread-main small { display: block; margin: 4px 0 0; color: #a8afba; font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-shell .forum-thread > span,
.portal-shell .forum-thread time { color: #a8afba; font-size: 12px; overflow-wrap: anywhere; }
.portal-shell .forum-thread > span small { display: block; margin-top: 4px; color: #8f96a3; }
.portal-shell .forum-compose { position: fixed; z-index: 20; top: 50%; left: 50%; width: min(720px, calc(100vw - 32px)); transform: translate(-50%, -50%); box-shadow: 0 26px 70px rgba(0,0,0,.65); }
.portal-shell .forum-compose textarea { min-height: 220px; resize: vertical; }
.portal-shell .forum-compose[hidden] { display: none; }
.portal-shell .forum-full-post,
.portal-shell .forum-reply,
.portal-shell .forum-reply-form { padding: 22px; }
.portal-shell .forum-full-post { border-bottom: 1px solid #252b33; }
.portal-shell .forum-full-post header,
.portal-shell .forum-reply header { display: flex; justify-content: space-between; gap: 14px; color: #fff; }
.portal-shell .forum-post-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.portal-shell .forum-delete-button { min-height: 28px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.portal-shell .forum-full-post time,
.portal-shell .forum-reply time { color: #8f96a3; font-size: 12px; }
.portal-shell .forum-full-post p,
.portal-shell .forum-reply p { color: #d8dde5; line-height: 1.65; white-space: pre-wrap; }
.portal-shell .forum-replies { border-bottom: 1px solid #252b33; }
.portal-shell .forum-replies-header { display: flex; justify-content: space-between; padding: 14px 22px; background: #0b0e13; color: #fff; }
.portal-shell .forum-replies-header span { color: #8f96a3; font-size: 11px; text-transform: uppercase; }
.portal-shell .forum-reply-list { max-height: 680px; overflow-y: auto; }
.portal-shell .forum-reply { border-top: 1px solid #252b33; }
.portal-shell .forum-reply-form textarea { min-height: 180px; resize: vertical; }

.portal-shell .settings-toggle { display: flex; align-items: center; gap: 9px; color: #d9dde4; font-size: 13px; }
.portal-shell .settings-toggle input { width: 18px; height: 18px; accent-color: #ffcc00; }
.portal-shell .custom-rules-fields { border: 1px solid #303744; border-radius: 6px; background: #0d1117; padding: 14px; }
.portal-shell .league-type-explainer { border: 1px solid rgba(255, 204, 0, .45); border-left: 3px solid #ffcc00; border-radius: 6px; background: #15130c; padding: 12px 14px; color: #c7cbd4; font-size: 13px; line-height: 1.5; }
.portal-shell .league-type-explainer strong { color: #ffcc00; display: block; font-family: var(--display-font); font-size: 15px; text-transform: uppercase; }
.portal-shell .league-type-explainer p { margin: 5px 0 0; }

.league-shell .draft-rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #303744;
  border-radius: 6px;
  background: #11161d;
  padding: 11px 12px;
}
.league-shell .draft-rule-summary strong { color: #fff; margin-right: 4px; }
.league-shell .draft-rule-summary span { border-radius: 4px; padding: 4px 7px; font-size: 11px; font-weight: 800; }
.league-shell .draft-rule-summary .higher { background: rgba(0, 230, 118, .13); color: #00e676; }
.league-shell .draft-rule-summary .lower { background: rgba(255, 82, 82, .13); color: #ff8a80; }
.league-shell .draft-rule-summary.prospect-rule-summary { display: block; border-color: rgba(255, 204, 0, .5); }
.league-shell .draft-rule-summary.prospect-rule-summary span { display: block; border: 0; padding: 4px 0 0; color: #c7cbd4; font-weight: 600; line-height: 1.45; }
.league-shell .draft-room-flex-status { color: #ffcc00; font-size: 11px; font-weight: 800; }

@media (max-width: 900px) {
  .portal-shell .forum-shell { grid-template-columns: 1fr; }
  .portal-shell .forum-column-labels { display: none; }
  .portal-shell .forum-thread { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 900px) {
  .dashboard-forum-page .forum-shell { grid-template-columns: 1fr; }
  .dashboard-forum-page .forum-column-labels { display: none; }
  .dashboard-forum-page .forum-thread { grid-template-columns: 1fr; gap: 5px; }
}

.league-shell .result-card.voided {
  border-color: #202429;
  background: #0d1117;
  opacity: 0.72;
}

.league-shell .result-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.league-shell .result-event {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.league-shell .result-card-score {
  min-width: 86px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #0d1117;
  color: #ffffff;
  padding: 10px;
  text-align: center;
}

.league-shell .result-card-score strong {
  color: #ffcc00;
  font-size: 26px;
}

.league-shell .audit-row {
  padding: 12px;
}

.league-shell .audit-row strong {
  color: #ffcc00;
}

.league-shell .backup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.league-shell .waivers-page,
.league-shell .waiver-choice-list {
  display: grid;
  gap: 24px;
}

.league-shell .waiver-window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.league-shell .waiver-window-card,
.league-shell .waiver-choice-row,
.league-shell .waiver-locked-list {
  border: 1px solid #202429;
  border-radius: 8px;
  background: #0d1117;
  color: #ffffff;
  padding: 16px;
}

.league-shell .waiver-window-card {
  display: grid;
  gap: 8px;
}

.league-shell .waiver-window-card span,
.league-shell .waiver-locked-list strong {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-shell .waiver-window-card strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.league-shell .waiver-window-card p,
.league-shell .waiver-locked-list span,
.league-shell .waiver-locked-list small {
  margin: 0;
  color: #8f96a3;
  font-size: 13px;
  line-height: 1.5;
}

.league-shell .waiver-choice-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.league-shell .waiver-choice-row > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  font-weight: 900;
}

.league-shell .waiver-fighter-picker {
  position: relative;
  min-width: 0;
}

.league-shell .waiver-fighter-picker > label {
  display: block;
  margin-bottom: 7px;
}

.league-shell .waiver-fighter-picker input[type="search"] {
  width: 100%;
  border-color: #252b36;
  background: #11161e;
  color: #ffffff;
}

.league-shell .waiver-fighter-picker input[type="search"]:focus {
  border-color: #ffcc00;
  outline: none;
}

.league-shell .waiver-picker-selected {
  display: grid;
  gap: 2px;
  min-height: 44px;
  border-left: 2px solid #ffcc00;
  background: #11161e;
  color: #c7ccd5;
  padding: 8px 10px;
  font-size: 12px;
}

.league-shell .waiver-picker-selected strong { color: #fff; font-size: 13px; }
.league-shell .waiver-picker-selected span { color: #8f96a3; font-size: 11px; }
.league-shell .waiver-browse-button { width: 100%; margin-top: 8px; }

.league-shell .waiver-browser-slot { grid-column: 1 / -1; margin-top: 12px; }
.league-shell .waiver-browser { border: 1px solid #343b46; border-radius: 6px; background: #090b0f; padding: 14px; }
.league-shell .waiver-browser-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.league-shell .waiver-browser-header > div { min-width: 0; }
.league-shell .waiver-browser-header span { color: #ffcc00; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.league-shell .waiver-browser-header h3 { margin: 3px 0 0; color: #fff; font-size: 18px; }
.league-shell .waiver-browser-header .icon-button { min-width: 34px; min-height: 34px; padding: 4px; }
.league-shell .waiver-browser input[type="search"] { width: 100%; border-color: #303744; background: #11161e; color: #fff; }
.league-shell .waiver-filter-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 12px -2px; padding: 2px; scrollbar-color: #ffcc00 #11161e; }
.league-shell .waiver-filter-tabs button { flex: 0 0 auto; min-height: 32px; border: 1px solid #303744; border-radius: 4px; background: #11161e; color: #aeb5c0; padding: 5px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.league-shell .waiver-filter-tabs button.active { border-color: #ffcc00; background: rgba(255, 204, 0, .12); color: #ffcc00; }
.league-shell .waiver-browser-list { display: grid; gap: 6px; max-height: 390px; overflow-y: auto; padding-right: 4px; scrollbar-color: #ffcc00 #11161e; }
.league-shell .waiver-browser-fighter { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; border: 1px solid #252b36; border-radius: 5px; background: #11161e; color: #fff; padding: 8px 10px; text-align: left; }
.league-shell .waiver-browser-fighter:hover { border-color: #ffcc00; background: rgba(255, 204, 0, .07); }
.league-shell .waiver-browser-fighter .rank-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: rgba(255, 204, 0, .12); color: #ffcc00; font-size: 11px; font-weight: 900; }
.league-shell .waiver-browser-fighter span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.league-shell .waiver-browser-fighter strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.league-shell .waiver-browser-fighter small { color: #8f96a3; font-size: 11px; }
.league-shell .waiver-browser-fighter b { color: #ffcc00; font-size: 11px; text-transform: uppercase; }

.league-shell .waiver-search-results {
  display: grid;
  gap: 5px;
  max-height: 224px;
  overflow-y: auto;
  margin-top: 7px;
}

.league-shell .waiver-search-result {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #252b36;
  border-radius: 4px;
  background: #11161e;
  color: #ffffff;
  padding: 8px 9px;
  text-align: left;
}

.league-shell .waiver-search-result:hover {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

.league-shell .waiver-search-result strong {
  font-size: 13px;
}

.league-shell .waiver-search-result span,
.league-shell .waiver-search-empty {
  color: #8f96a3;
  font-size: 11px;
}

.league-shell .waiver-search-empty {
  margin: 0;
  padding: 8px;
}

.league-shell .waiver-priority-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.league-shell .waiver-priority-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  border: 1px solid #202429;
  border-radius: 5px;
  background: #0d1117;
  padding: 10px;
}

.league-shell .waiver-priority-row > span {
  grid-row: span 2;
  color: #ffcc00;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.league-shell .waiver-priority-row strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.league-shell .waiver-priority-row small {
  color: #8f96a3;
}

.league-shell .waiver-priority-row.mine {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

.league-shell .waiver-locked-list {
  display: grid;
  gap: 6px;
}

.league-shell .trades-page {
  display: grid;
  gap: 24px;
}

.league-shell .trade-builder-grid,
.league-shell .trade-sides,
.league-shell .trade-block-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.league-shell .trade-builder-side,
.league-shell .trade-offer-card,
.league-shell .trade-block-list,
.league-shell .trade-block-manage {
  border: 1px solid #202429;
  border-radius: 8px;
  background: linear-gradient(145deg, #0d1117, #090b0f);
  padding: 16px;
}

.league-shell .trade-builder-side h3,
.league-shell .trade-block-list h3,
.league-shell .trade-block-manage h3,
.league-shell .trade-offer-list h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.league-shell .trade-fighter-list,
.league-shell .trade-offer-list,
.league-shell .trade-team-tabs,
.league-shell .trade-block-list,
.league-shell .trade-block-manage {
  display: grid;
  gap: 10px;
}

.league-shell .trade-picker-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 0;
  color: #51d89c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.league-shell .trade-picker-label.protected {
  margin-top: 12px;
  color: #ffb4b4;
}

.league-shell .trade-picker-label span {
  min-width: 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 6px;
  text-align: center;
}

.league-shell .trade-fighter-choice,
.league-shell .trade-block-toggle,
.league-shell .trade-block-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid #252b33;
  border-radius: 6px;
  background: #11161d;
  padding: 12px;
  color: #ffffff;
}

.league-shell .trade-fighter-choice {
  justify-content: flex-start;
  cursor: pointer;
}

.league-shell .trade-fighter-choice input {
  width: 18px;
  height: 18px;
  accent-color: #ffcc00;
}

.league-shell .trade-fighter-choice span,
.league-shell .trade-block-toggle div,
.league-shell .trade-block-card {
  min-width: 0;
}

.league-shell .trade-fighter-choice strong,
.league-shell .trade-block-toggle strong,
.league-shell .trade-block-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #ffffff;
}

.league-shell .trade-fighter-choice small,
.league-shell .trade-block-toggle span,
.league-shell .trade-block-card span,
.league-shell .trade-block-card small,
.league-shell .trade-offer-header small,
.league-shell .trade-sides span {
  display: block;
  color: #8f96a3;
  font-size: 12px;
  line-height: 1.35;
}

.league-shell .trade-fighter-choice.disabled,
.league-shell .trade-block-toggle.disabled {
  opacity: 0.55;
}

.league-shell .trade-offer-card {
  display: grid;
  gap: 14px;
}

.league-shell .trade-offer-header,
.league-shell .trade-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.league-shell .trade-offer-header strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.league-shell .trade-sides > div {
  border: 1px solid #202429;
  border-radius: 6px;
  background: #080a0d;
  padding: 12px;
}

.league-shell .trade-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 6px 0 0;
  max-width: 100%;
  border: 1px solid rgba(255, 204, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.league-shell .trade-chip small {
  color: #c6ced8;
  font-weight: 700;
}

.league-shell .trade-team-tabs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.league-shell .trade-team-tabs button {
  border: 1px solid #252b33;
  border-radius: 6px;
  background: #11161d;
  color: #c6ced8;
  padding: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.league-shell .trade-team-tabs button.active {
  border-color: #ffcc00;
  color: #ffcc00;
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.18), 0 16px 38px rgba(255, 204, 0, 0.08);
}

.league-shell .trade-block-toggle .primary-button,
.league-shell .trade-block-toggle .ghost-button {
  min-width: 92px;
}

@media (max-width: 900px) {
  .league-shell .trade-builder-grid,
  .league-shell .trade-sides,
  .league-shell .trade-block-layout {
    grid-template-columns: 1fr;
  }

  .league-shell .trade-offer-header,
  .league-shell .trade-actions,
  .league-shell .trade-block-toggle {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-command-page .admin-results-stack,
.league-shell .admin-results-stack {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-command-page .admin-results-stack > .panel:first-child,
.league-shell .admin-results-stack > .panel:first-child {
  grid-row: auto;
}

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

  .league-shell .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #202429;
  }

  .league-shell .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .league-shell .grid-two,
  .league-shell .draft-room,
  .league-shell .draft-readiness-grid,
  .league-shell .waiver-window-grid {
    grid-template-columns: 1fr;
  }

  .league-shell .draft-pool,
  .league-shell .team-grid,
  .league-shell .division-grid,
  .league-shell .scoring-grid,
  .league-shell .claim-grid,
  .league-shell .score-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .league-shell .main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .league-shell .topbar,
  .league-shell .topbar-actions,
  .league-shell .league-dashboard-hero,
  .league-shell .panel-header,
  .league-shell .backup-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .league-shell .topbar {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .league-shell .nav-list,
  .league-shell .kpi-grid,
  .league-shell .draft-pool,
  .league-shell .team-grid,
  .league-shell .division-grid,
  .league-shell .scoring-grid,
  .league-shell .claim-grid,
  .league-shell .score-output,
  .league-shell .form-grid,
  .league-shell .create-team-box,
  .league-shell .team-create-form,
  .league-shell .rule-row,
  .league-shell .example-score div,
  .league-shell .result-card-main,
  .league-shell .draft-team-division-grid,
  .league-shell .waiver-choice-row {
    grid-template-columns: 1fr;
  }

  .league-shell .wide-field,
  .league-shell .full-field {
    grid-column: auto;
  }

  .league-shell .primary-button,
  .league-shell .primary-link,
  .league-shell .ghost-button,
  .league-shell .danger-button {
    width: 100%;
  }
}

.draft-popout-shell {
  background: #050607;
}

body.draft-popout-shell .app-shell {
  display: block;
}

body.draft-popout-shell .sidebar,
body.draft-popout-shell .topbar {
  display: none !important;
}

.draft-popout-shell .main,
.draft-popout-shell .view {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.draft-room-studio {
  min-height: 100vh;
  background: #050607;
  color: #f7f8fb;
  font-family: "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
}

.draft-room-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, auto) minmax(160px, auto) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #252b36;
  background: rgba(10, 12, 15, 0.98);
  padding: 16px 28px;
}

.draft-room-brand,
.draft-room-current,
.draft-popout-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.draft-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #d6dbe4;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.draft-sound-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #ffcc00;
}

.draft-sound-control-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.league-shell .draft-sound-control-row .draft-sound-toggle {
  border: 1px solid #303743;
  border-radius: 5px;
  background: #11161d;
  padding: 0 11px;
}

.draft-room-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.draft-room-brand span,
.draft-room-current span,
.draft-popout-clock span,
.draft-room-panel-header span,
.draft-room-banner span,
.draft-room-selected-card span,
.draft-room-pick-meta span,
.draft-room-pick-row span {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.draft-room-brand h1 {
  margin: 2px 0 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.draft-room-current {
  display: grid;
  gap: 4px;
}

.draft-room-current strong {
  color: #ffffff;
  font-size: 15px;
}

.draft-popout-clock {
  justify-content: flex-end;
}

.draft-popout-clock strong {
  min-width: 90px;
  border: 1px solid #ffcc00;
  border-radius: 6px;
  background: rgba(255, 204, 0, 0.12);
  color: #ffcc00;
  padding: 9px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  text-align: center;
}

.draft-popout-clock strong.red {
  border-color: #ff3d00;
  background: rgba(255, 61, 0, 0.14);
  color: #ff8a65;
}

.draft-room-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #202429;
  background: #10141a;
  padding: 12px 28px;
}

.draft-room-banner strong {
  color: #ffffff;
  font-size: 14px;
}

.draft-room-layout,
.draft-room-setup {
  display: grid;
  grid-template-columns: minmax(430px, 1.2fr) minmax(340px, 0.8fr) minmax(300px, 0.65fr);
  gap: 20px;
  align-items: start;
  padding: 24px 28px 28px;
}

.draft-room-setup {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.draft-room-setup-main,
.draft-room-center {
  display: grid;
  gap: 20px;
}

.draft-room-panel,
.draft-room-studio .panel {
  border: 1px solid #202429;
  border-radius: 8px;
  background: #0d1117;
  color: #ffffff;
  overflow: hidden;
  box-shadow: none;
}

.draft-room-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #202429;
  padding: 16px 18px;
}

.draft-room-panel-header h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.draft-room-panel-header strong {
  color: #8f96a3;
  font-size: 12px;
  text-transform: uppercase;
}

.draft-room-pool-body,
.draft-room-selection-body,
.draft-room-board-grid,
.draft-room-team-list {
  padding: 18px;
}

.draft-room-pool-body {
  display: grid;
  gap: 14px;
}

.draft-room-search-row {
  display: grid;
  gap: 6px;
}

.draft-room-search-row label {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.draft-room-search-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #171c24;
  color: #ffffff;
  padding: 11px 14px;
}

.draft-room-search-row input:focus {
  border-color: #ffcc00;
  outline: none;
}

.draft-room-studio .draft-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
}

.draft-room-studio .draft-filter-tab {
  min-height: 38px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #111317;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.draft-room-studio .draft-filter-tab.active,
.draft-room-studio .draft-filter-tab:hover {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.13);
  color: #ffcc00;
}

.draft-room-fighter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  padding-right: 4px;
}

.draft-room-fighter-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 146px;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  color: #ffffff;
  padding: 14px;
  text-align: left;
}

.draft-room-fighter-card:hover:not(:disabled),
.draft-room-fighter-card.selected {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.09);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.25);
}

.draft-room-fighter-card:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.draft-room-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  font-size: 11px;
  font-weight: 900;
}

.draft-room-fighter-card strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.draft-room-fighter-card > span:not(.draft-room-rank),
.draft-room-fighter-card small,
.draft-room-selection-body p,
.draft-room-selected-card small,
.draft-room-team-card span,
.draft-room-team-picks small,
.draft-room-pick-row small {
  color: #8f96a3;
}

.draft-room-selection-body,
.draft-room-team-list,
.draft-room-team-card,
.draft-room-team-picks,
.draft-room-pick-list {
  display: grid;
  gap: 12px;
}

.draft-room-pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-room-pick-meta span {
  border: 1px solid #202429;
  border-radius: 4px;
  background: #111317;
  padding: 6px 8px;
}

.draft-room-selection-body p {
  margin: 0;
  line-height: 1.45;
}

.draft-room-selected-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 16px;
}

.draft-room-selected-card.has-selection {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.09);
}

.draft-room-selected-card strong {
  color: #ffffff;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.draft-room-confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draft-room-confirm-row .primary-button,
.draft-room-confirm-row .ghost-button {
  flex: 1;
  min-width: 150px;
}

.draft-room-studio .primary-button:disabled,
.draft-room-studio .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.draft-room-board-grid h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.draft-room-pick-row {
  display: grid;
  gap: 4px;
  border: 1px solid #202429;
  border-radius: 6px;
  background: #111317;
  padding: 11px;
}

.draft-room-pick-row.current {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.09);
}

.draft-room-pick-row strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.draft-room-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
}

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

.draft-room-team-list {
  max-height: min(48vh, 520px);
  overflow-y: auto;
}

.draft-chat-panel { min-width: 0; }
.draft-chat-messages { max-height: 260px; overflow-y: auto; padding: 8px 16px; }
.draft-chat-message { border-bottom: 1px solid #202429; padding: 10px 0; }
.draft-chat-message:last-child { border-bottom: 0; }
.draft-chat-message header { display: flex; justify-content: space-between; gap: 8px; color: #fff; }
.draft-chat-message header strong { color: #dce2eb; font-size: 12px; }
.draft-chat-message header time { color: #7f8795; font-size: 10px; }
.draft-chat-message p { margin: 5px 0 0; color: #c3cad5; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.draft-chat-message.mine strong { color: #ffcc00; }
.draft-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid #202429; padding: 12px 16px; }
.draft-chat-form textarea { min-height: 42px; max-height: 100px; border: 1px solid #343c48; border-radius: 5px; background: #171c24; color: #fff; padding: 9px; resize: vertical; }
.draft-chat-form .primary-button { min-height: 42px; align-self: end; }
.draft-chat-locked { margin: 0; border-top: 1px solid #202429; padding: 14px 16px; color: #8f96a3; font-size: 12px; }

.draft-room-roster-select {
  display: grid;
  gap: 6px;
}

.draft-room-roster-select > span {
  color: #8f96a3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.draft-room-roster-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ffcc00;
  border-radius: 6px;
  background: #171c24;
  color: #ffffff;
  padding: 0 38px 0 12px;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.draft-room-roster-select select:focus {
  outline: 2px solid rgba(255, 204, 0, 0.34);
  outline-offset: 2px;
}

.draft-room-team-card {
  border: 1px solid #202429;
  border-radius: 8px;
  background: #111317;
  padding: 13px;
}

.draft-room-team-card.active {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

.draft-room-team-card.mine {
  box-shadow: inset 3px 0 0 #ffcc00;
}

.draft-room-team-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.draft-room-team-header strong,
.draft-room-team-picks strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.draft-room-team-header em {
  color: #ffcc00;
  font-style: normal;
  font-weight: 900;
}

.draft-room-team-divisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.draft-room-team-divisions span {
  border: 1px solid #202429;
  border-radius: 4px;
  background: #0d1117;
  color: #8f96a3;
  padding: 6px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.draft-room-team-divisions span.filled {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
}

.draft-room-team-picks {
  max-height: 240px;
  overflow-y: auto;
}

.draft-room-team-picks div {
  border: 1px solid #202429;
  border-radius: 4px;
  background: #0d1117;
  padding: 8px;
}

.draft-room-team-picks small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .draft-room-topbar,
  .draft-room-layout,
  .draft-room-setup,
  .draft-room-board-grid {
    grid-template-columns: 1fr;
  }

  .draft-room-sidebar {
    position: static;
  }

  .draft-room-fighter-grid,
  .draft-room-team-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .draft-room-topbar,
  .draft-room-banner,
  .draft-room-layout,
  .draft-room-setup {
    padding-right: 18px;
    padding-left: 18px;
  }

  .draft-room-banner,
  .draft-room-confirm-row {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-room-brand h1,
  .draft-room-selected-card strong {
    font-size: 24px;
  }

  .draft-room-team-divisions {
    grid-template-columns: 1fr;
  }

  .draft-chat-form {
    grid-template-columns: 1fr;
  }
}

.draft-popout-shell .view {
  max-width: none;
}

/* Return-to-draft reminder; stays clear of the draft controls on small screens. */
.autodraft-reminder {
  position: fixed;
  z-index: 10000;
  top: 16px;
  right: 16px;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 20px;
  border: 2px solid #e5b54b;
  border-radius: 14px;
  background: #152131;
  color: #fff;
  box-shadow: 0 12px 40px #0008;
}
.autodraft-reminder strong { font-size: 1.2rem; }
.autodraft-reminder p { margin: 10px 0 16px; line-height: 1.5; }
.autodraft-reminder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.autodraft-reminder button { min-height: 44px; }

.password-input-control { position: relative; width: 100%; min-width: 0; }
.password-input-control > input { width: 100%; box-sizing: border-box; padding-right: 54px; min-height: 44px; }
.password-visibility-toggle {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 40px;
  padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #737373; cursor: pointer;
}
.password-visibility-toggle:hover { color: #a77a00; background: #e5b54b22; }
.password-visibility-toggle:focus-visible { outline: 2px solid #bd8a00; outline-offset: -2px; }
.password-eye-slash { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye-slash { display: block; }

/* Account screens use black text on light surfaces for clear contrast. */
.auth-shell .auth-panel, .auth-shell .panel-header, .auth-shell .panel-body { background: #fff; color: #000; }
.auth-shell .auth-panel :is(h2, p, label, small, span, a, button, input),
.auth-shell .auth-panel .muted-copy { color: #000; }
.auth-shell .auth-panel input { background: #fff; border: 1px solid #666; }
.auth-shell .auth-panel input::placeholder { color: #444; }
.auth-shell .auth-panel .ghost-button, .auth-shell .auth-panel .text-button { color: #000; background: #f2f2f2; border-color: #666; }
.auth-shell .password-visibility-toggle { color: #000; }
.account-requirements { display: block; font-size: .85rem; line-height: 1.5; margin-top: 6px; }
.email-action-page .sidebar, .email-action-page .topbar { display: none; }
.email-action-page .app-shell { display: block; }
.email-action-page .main, .email-action-page .view { margin: 0; padding: 0; }
.auth-shell.auth-centered { min-height: 100dvh; box-sizing: border-box; display: grid; place-items: center; align-content: center; padding: 24px; }
.auth-centered > .auth-page-grid { width: min(100%, 520px); margin: 0; grid-template-columns: minmax(0, 1fr); }
.auth-centered .verification-card { width: min(100%, 520px); }
.auth-centered .panel { overflow-wrap: anywhere; }

.draft-room-team-divisions button { border: 1px solid #555; border-radius: 6px; background: #f5f5f5; color: #111; padding: 8px; cursor: pointer; font: inherit; }
.draft-room-team-divisions button[aria-pressed="true"] { background: #ffcf00; color: #000; border-color: #ffcf00; }
.draft-room-team-picks, .draft-room-team-list, .draft-chat-messages { overscroll-behavior: contain; overflow-anchor: none; }
@media (min-width: 1181px) {
  .draft-room-topbar { grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(110px, auto)); }
  .draft-room-topbar .draft-sound-toggle { grid-column: 3; }
}
@media (max-width: 1180px) {
  .draft-room-topbar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-room-brand { grid-column: 1 / -1; }
}
.queued-draft-fighter { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; }
.queued-draft-fighter small { grid-column: 1; }
.queued-draft-fighter button { grid-column: 2; grid-row: 1 / 3; }
.draft-room-selected-card .queued-draft-fighter strong { font-size: 20px; }
.draft-start-time strong { font-size: .95rem; }

.draft-presence-list { padding: 0 14px; margin: 8px 0; font-size: .85rem; }
.draft-presence-event { padding: 7px 10px; font-size: .85rem; background: #fff1b8; color: #111; border-radius: 6px; }

/* Keep one scrollable fighter list inside each panel, with its controls visible. */
.draft-room-team-list { max-height: none; overflow: visible; }
.draft-room-sidebar { position: static; }
.draft-room-selection-body > p { color: #e4e7ec; }
.draft-room-board-grid { max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1180px) {
  .draft-room-fighter-grid { max-height: min(55vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
}


.site-legal-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding: 28px 20px; background: #0b0d10; color: #fff; font: 14px/1.5 system-ui, sans-serif; }
.site-legal-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-acknowledgment { display: grid; gap: 14px; color: #111; }
.legal-acknowledgment label { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font: 15px/1.5 system-ui, sans-serif; color: #111; }
.legal-acknowledgment input[type="checkbox"] { flex: 0 0 auto; width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: #17191d; }
.legal-acknowledgment a { color: #163d78; text-decoration: underline; }
.legal-acknowledgment p { color: #333; font-size: 13px; line-height: 1.5; margin: 0; }
.site-legal-footer a:focus-visible, .legal-acknowledgment a:focus-visible { outline: 2px solid #a16a00; outline-offset: 3px; }

/* Email preferences share the dark Profile surfaces and yellow controls. */
.profile-page .profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.email-preferences-form { color: #fff; background: transparent; }
.email-preferences-form .panel-header { padding: 0 0 14px; background: transparent; border-bottom: 1px solid #24292f; }
.profile-page .email-preferences-form h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; }
.email-preferences-form .panel-body { padding: 18px 0 0; }
.email-preferences-form p { margin: 0 0 22px; line-height: 1.6; color: #aab2bd; max-width: 760px; }
.email-preference-option { display: flex; align-items: flex-start; gap: 14px; padding: 18px; margin: 0 0 12px; background: #11161d; border: 1px solid #24292f; border-radius: 10px; cursor: pointer; }
.email-preference-option:hover { border-color: #626b78; }
.email-preference-option:focus-within { outline: 2px solid #ffcc00; outline-offset: 2px; }
.email-preference-option input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #ffcc00; color-scheme: dark; }
.email-preference-option strong, .email-preference-option small { display: block; color: #fff; }
.email-preference-option small { color: #b8c0cb; font-size: 14px; line-height: 1.5; margin-top: 5px; }
.email-preference-actions { padding-top: 10px; }
@media (max-width: 600px) {
  .profile-page .profile-header, .profile-page .profile-tabs, .profile-page .profile-grid { width: auto; margin-left: 16px; margin-right: 16px; }
  .profile-page .profile-header { align-items: stretch; }
  .profile-page .profile-header > div { min-width: 0; }
  .profile-page .profile-header p { overflow-wrap: anywhere; }
  .email-preference-option { padding: 16px; }
  .email-preference-actions .primary-button { width: 100%; }
}

/* Current fighter points and debut result entry */
.fighter-points-since { display: block; font-size: 11px; margin-top: 4px; }
.fighter-points-panel .panel-header p { margin: 6px 0 0; }
.fighter-points-table-wrap { overflow-x: auto; }
.showing-fighter-points .dashboard-workspace { grid-template-columns: minmax(0, 1fr); }
.fighter-points-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.fighter-points-table th:first-child { width: 55px; }
.fighter-points-table th:nth-child(3) { width: 55px; }
.fighter-points-table th:last-child { width: 80px; }
.fighter-points-table td:nth-child(2) { overflow-wrap: anywhere; }
.fighter-points-table th, .fighter-points-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #dedede; }
.fighter-points-table th:last-child, .fighter-points-table td:last-child { text-align: right; }
.fighter-points-table small { display: block; margin-top: 4px; }
.fighter-points-empty { padding: 24px 0; }
.new-score-fighter { margin-top: 12px; padding: 14px; border: 1px solid #b8b8b8; border-radius: 8px; background: #171c24; color: #f4f6fa; }
.new-score-fighter[hidden] { display: none; }
.new-score-fighter label { color: #c9ced8; display: block; margin: 8px 0 6px; }
.new-score-fighter small { display: block; margin-top: 10px; color: #f4f6fa; line-height: 1.5; }
@media (max-width: 600px) {
  .fighter-points-table th, .fighter-points-table td { padding: 12px 4px; }
  .fighter-points-table th:first-child { width: 40px; }
  .fighter-points-table th:nth-child(3) { width: 50px; }
  .fighter-points-table th:last-child { width: 64px; }
}

/* Final fight points and their saved opponent-ranking calculation. */
.score-output, .league-shell .score-output { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score-final-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #343b46; border-radius: 12px; background: #171c23; color: #f3f4f6; min-width: 0; }
.score-final-card > span { font-size: 13px; line-height: 1.5; color: #c1c7d0; }
.score-final-card .score-final-total { font-size: 25px; color: #ffffff; }
.score-final-total small { font-size: 13px; font-weight: 500; }
.score-preview-message { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.score-review-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
@media (max-width: 650px) { .score-output, .score-review-breakdown { grid-template-columns: minmax(0, 1fr); } }

.score-ownership-form { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid #343b46; }
.score-ownership-form label { display: grid; gap: 8px; }
.score-ownership-form button { justify-self: start; }
.score-final-card > .score-history-warning { color: #ffe28a; }
.score-ownership-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #343b46; border-radius: 8px; background: #171c23; color: #f3f4f6; font: inherit; font-size: 16px; }
.score-ownership-form select:focus-visible { outline: 2px solid #ffd400; outline-offset: 2px; }

.fighter-history-content { padding: 12px; font-size: 13px; color: #e2e6ed; overflow-wrap: anywhere; }
.fighter-history-content p { line-height: 1.5; color: #c1c7d0; }
.fighter-fight-breakdown { padding: 12px 0; border-top: 1px solid #343b46; }
.fighter-fight-breakdown h4 { margin: 0; color: #ffffff; font-size: 14px; }
.fighter-fight-breakdown dl { margin: 12px 0; }
.fighter-fight-breakdown dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.fighter-fight-breakdown dt small { display: block; color: #b5bdc9; }
.fighter-fight-breakdown dd { margin: 0; white-space: nowrap; }
.fighter-fight-breakdown .history-base { border-top: 1px solid #343b46; font-weight: 700; }
.history-final { font-size: 18px; color: #ffd400; }
.history-refresh { margin: 0 12px 12px; }


.fighter-points-toggle { padding: 4px 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.fighter-points-toggle:focus-visible { outline: 2px solid #ffd400; outline-offset: 3px; }
.fighter-points-history-row[hidden] { display: none; }
.fighter-points-table .fighter-points-history-row > td { padding: 0; white-space: normal; text-align: left; }
.fighter-points-history-row .fighter-history-content { max-width: 760px; }

.league-shell [data-clear-waiver-choice] {
  grid-column: 2 / -1;
  justify-self: end;
}

/* Standard Rules uses the dashboard palette with readable white body text. */
.dashboard-home-page .standard-rules-page {
  width: 100%;
  color: #fff;
  line-height: 1.6;
}
.dashboard-home-page .standard-rules-page :is(p, span, strong, code, h2, h3) {
  color: #fff;
}
.dashboard-home-page .standard-rules-page :is(.scoring-card, .formula-box) {
  background: #10151c;
  border-color: #303640;
}
.dashboard-home-page .standard-rules-page .badge {
  color: #ffcc00;
  background: #252008;
  border-color: #5b4a08;
}
.dashboard-home-page .standard-rules-page :is(.scoring-card p, .rule-row span) {
  line-height: 1.6;
}

.league-shell #league-scores-section { color: #fff; }
.league-shell #league-scores-section summary { cursor: pointer; padding: 12px 0; color: #ffcc00; }
.league-shell .league-fighter-score { border-top: 1px solid #303640; padding: 8px 0; }
.league-shell .league-fighter-score summary span { display: block; color: #fff; margin-top: 4px; }
.league-shell #league-scores-section :is(p, dt, dd, small, .history-final) { color: #fff; }

.event-lock-admin .panel-body > p, .event-lock-admin form > p { color: #fff; line-height: 1.5; }
.event-lock-choices { max-height: 240px; overflow-y: auto; margin: 12px 0; border: 1px solid #34383e; padding: 8px; }
.event-lock-admin .event-fighter-choice { display: flex; align-items: center; gap: 10px; padding: 8px; color: #fff; cursor: pointer; }
.event-lock-admin .event-fighter-choice input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: #ffcc00; }
.event-fighter-choice small { display: block; }
.event-lock-card { border-top: 1px solid #34383e; margin-top: 16px; padding: 16px 0; color: #fff; }
.event-lock-card button, #event-lock-selected button { margin: 6px 8px 6px 0; }
#event-lock-form > label { display: block; margin-top: 14px; color: #fff; }
#event-lock-search {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #34383e;
  border-radius: 6px;
  background: #171c24;
  color: #fff;
  font: inherit;
}
#event-lock-search:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }
#event-lock-start { color-scheme: dark; }
.event-lock-admin h3 { margin-top: 24px; }

.fighter-points-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #fff; }
.fighter-points-pagination > div, .fighter-points-pagination label { display: flex; align-items: center; gap: 8px; }
.fighter-points-pagination label { margin: 0; white-space: nowrap; }
.fighter-points-pagination select { width: auto; min-width: 56px; margin: 0; padding: 6px; }
.fighter-points-pagination button { width: auto; padding: 8px 12px; }
.fighter-points-pagination button:disabled { opacity: .45; cursor: default; }

/* Keep private-league join controls from squeezing the league description. */
.dashboard-wide-league-row { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.dashboard-wide-league-actions { min-width: 0; }
.dashboard-wide-league-actions .dashboard-join-form { flex: 0 1 100%; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.dashboard-join-form .password-input-control { flex: 1 1 0; min-width: 0; }
.dashboard-wide-league-actions .dashboard-join-form button { white-space: normal; }
@media (max-width: 1180px) {
  .dashboard-wide-league-row { grid-template-columns: minmax(0, 1fr); }
  .dashboard-wide-league-actions { justify-content: flex-start; }
}

.home-without-activity .dashboard-workspace { grid-template-columns: minmax(0, 1fr); }
.home-activity { display: grid; align-content: start; gap: 32px; min-width: 0; }
.home-activity section { min-width: 0; }
.home-activity p, .home-activity small { color: #dce0e6; line-height: 1.5; }
.home-activity-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #30343b; color: white; }
.home-activity-row > div { min-width: 0; overflow-wrap: anywhere; }
.home-activity-row small { display: block; font-size: 12px; font-weight: 400; }
.home-activity-row > b { text-align: right; font-size: 14px; flex-shrink: 0; max-width: 48%; }
.home-score-list { max-height: 480px; overflow-y: auto; }
.home-league-bars { display: grid; gap: 10px; }
.home-league-bars .dashboard-wide-league-row { padding: 14px 16px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.home-league-bars .dashboard-wide-league-main h3 { margin: 6px 0; font-size: 22px; }
.home-league-bars .dashboard-wide-league-actions { flex-direction: row; justify-content: flex-start; align-items: center; }
.home-league-bars .dashboard-wide-league-actions > button { width: auto; }
.home-league-bars .dashboard-join-form { max-width: 420px; }
.home-league-bars { container-type: inline-size; }
@container (min-width: 600px) {
  .home-league-bars .dashboard-wide-league-row { grid-template-columns: minmax(0, 1fr) 220px; }
  .home-league-bars .dashboard-wide-league-actions { justify-content: flex-end; }
  .home-league-bars .dashboard-wide-league-actions .dashboard-join-form { flex-basis: 100%; }
}
.home-league-bars .dashboard-league-badges { gap: 6px; }
.home-league-bars .dashboard-wide-league-actions button { min-height: 36px; padding: 8px 10px; }
/* Shared visual rhythm for member pages. */
:root { --member-text: #f5f6f8; --member-muted: #c0c7d2; --member-border: #303640; --member-radius: 8px; }
.logged-in .muted-copy, .logged-in .dashboard-wide-league-main p, .logged-in .dashboard-list-page-header p { color: var(--member-muted); }
.logged-in .primary-button, .logged-in .ghost-button, .logged-in .dashboard-enter-button, .logged-in .dashboard-muted-button, .logged-in .dashboard-preview-button { border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.logged-in :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #ffcc00; outline-offset: 3px; }
.logged-in :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border-radius: 6px; }
.logged-in :is(input,select,textarea):disabled, .logged-in button:disabled { opacity: .5; cursor: not-allowed; }
.logged-in .field label { color: var(--member-text); font-size: 13px; font-weight: 600; }
.logged-in .table-wrap { border-radius: var(--member-radius); overflow-x: auto; }
.logged-in table th { color: var(--member-muted); font-size: 12px; letter-spacing: .04em; }
.logged-in table td { color: var(--member-text); padding-top: 13px; padding-bottom: 13px; }
.logged-in table td.number, .logged-in .fighter-points-table td:last-child, .home-activity-row > b { font-variant-numeric: tabular-nums; }
.logged-in table tbody tr:not(.fighter-points-history-row):hover { background: rgba(255,255,255,.035); }
.logged-in .table-empty, .logged-in .dashboard-empty { color: var(--member-muted); padding: 22px 16px; line-height: 1.6; }
.dashboard-main-column { padding: 28px; gap: 24px; }
.dashboard-welcome-header h1 { font-size: clamp(28px,3vw,40px); line-height: 1.1; }
.home-welcome-copy { margin: 10px 0 18px; color: var(--member-muted); font-size: 15px; line-height: 1.5; }
.home-primary-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-primary-actions button { min-height: 44px; padding: 11px 18px; }
.dashboard-context-row { color: var(--member-muted); }
.dashboard-list-page-header h1, .league-dashboard-hero h2 { font-size: clamp(28px,3vw,38px); }
.dashboard-section-toggle { background: transparent; border-color: var(--member-border); }
.league-quick-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.league-quick-summary > div { background: #14181e; border: 1px solid var(--member-border); border-radius: var(--member-radius); padding: 16px; min-width: 0; }
.league-quick-summary span, .league-quick-summary small { display: block; color: var(--member-muted); font-size: 12px; line-height: 1.5; }
.league-quick-summary strong { display: block; color: white; font-size: 20px; line-height: 1.3; margin: 6px 0; overflow-wrap: anywhere; }
.league-extra-summary { margin-bottom: 22px; }
.league-extra-summary > summary { cursor: pointer; color: var(--member-muted); padding: 10px 0; }
.league-extra-summary .kpi-grid { margin-top: 12px; }
.mobile-menu-button { display: none; }
.fighter-profile-link { display: inline; border: 0; padding: 0; background: none; color: #fff; text-align: left; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: #767b83; text-underline-offset: 4px; }
.fighter-profile-link:hover { color: #ffcc00; }
.profile-secondary { display: block; color: var(--member-muted); font-size: 12px; margin-top: 6px; }
.fighter-profile-dialog { width: min(720px,calc(100vw - 32px)); max-height: 85dvh; box-sizing: border-box; background: #11151b; color: white; border: 1px solid var(--member-border); border-radius: 12px; padding: 24px; }
.fighter-profile-dialog::backdrop { background: rgba(0,0,0,.78); }
.profile-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-dialog-top > span, .fighter-profile-dialog > p { color: var(--member-muted); }
.fighter-profile-dialog h2 { font-size: 30px; margin: 16px 0 8px; }
.fighter-profile-dialog .league-quick-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 1180px) {
  .logged-in .mobile-menu-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; background: #161b23; border: 1px solid var(--member-border); border-radius: 6px; color: white; padding: 10px 14px; font-weight: 700; }
  .logged-in .dashboard-sidebar { padding: 12px 20px; }
  .logged-in .dashboard-sidebar-list, .league-shell .sidebar .nav-list { display: none; }
  .logged-in.mobile-nav-open .dashboard-sidebar-list { display: grid; margin-top: 10px; }
  .league-shell.mobile-nav-open .sidebar .nav-list { display: flex; margin-top: 10px; }
  .league-shell .sidebar { position: static; width: auto; height: auto; padding: 12px 20px; }
  .league-shell .app-shell { grid-template-columns: minmax(0,1fr); }
  .league-shell .sidebar .brand { display: none; }
  .dashboard-user-actions { display: flex; gap: 8px; }
  .dashboard-user-actions button { width: auto; min-height: 40px; }
}
@media (max-width: 600px) {
  .dashboard-top-navigation { gap: 12px; padding: 14px 20px; }
  .dashboard-main-column { padding: 20px; }
  .league-quick-summary { grid-template-columns: minmax(0,1fr); }
  .league-quick-summary > div { padding: 12px 14px; }
  .league-quick-summary strong { font-size: 18px; }
  .fighter-profile-dialog { padding: 16px; }
  .home-primary-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-primary-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .logged-in *, .logged-in *::before, .logged-in *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.account-details > summary { cursor: pointer; color: white; font-weight: 700; padding: 4px 0; }
.account-details > summary small { color: var(--member-muted); font-size: 12px; font-weight: 400; margin-left: 10px; }
.league-shell details.account-details { display: block; padding: 12px 16px; }
.league-shell details.account-details > div { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 1180px) {
  .dashboard-home-page .dashboard-user-actions { flex-direction: row; justify-content: flex-start; }
  .dashboard-home-page .dashboard-user-actions > button { flex: 0 1 auto; width: auto; }
  .league-shell .topbar-actions { display: flex; flex-direction: row; flex-wrap: wrap; }
  .league-shell .topbar-actions > button { width: auto; }
}
.home-activity-tabs, .home-ranking-filters { display: flex; gap: 8px; }
.home-activity-tabs { position: sticky; top: 0; z-index: 1; background: #090b0d; padding: 8px 0; }
.home-activity-tabs button { flex: 1; min-width: 0; min-height: 44px; border: 1px solid #434a56; border-radius: 6px; background: #14181e; color: white; font-weight: 700; }
.home-activity-tabs button[aria-selected=true] { background: #ffcc00; color: #080808; border-color: #ffcc00; }
.home-ranking-filters { flex-wrap: wrap; margin: 14px 0; }
.home-ranking-filters button { min-height: 36px; padding: 6px 10px; border: 1px solid #434a56; border-radius: 6px; background: #14181e; color: white; }
.home-ranking-filters button[aria-pressed=true] { border-color: #ffcc00; color: #ffcc00; }
.home-activity [role=tabpanel][hidden] { display: none; }
.home-activity [role=tabpanel] h2 { margin: 0; font-size: 24px; }
.home-ranking-list { max-height: 480px; overflow-y: auto; }
.ranking-window-events { margin-bottom: 12px; color: #c0c7d2; font-size: 12px; }
.ranking-window-events summary { cursor: pointer; }
.home-activity { gap: 16px; }
