:root {
  color-scheme: dark;
  --ink: #eef6f6;
  --muted: #8d9ca8;
  --line: #253241;
  --line-strong: #344657;
  --paper: #0b1118;
  --surface: #121a24;
  --surface-alt: #192432;
  --forest: #00ceb8;
  --forest-2: #36ead7;
  --gold: #f1bf4d;
  /* Podium metals are semantic status colors, not theme accents. */
  --podium-gold: #f1bf4d;
  --podium-silver: #c6d0da;
  --podium-bronze: #c7825a;
  --red: #ff6b5f;
  --blue: #7c8cff;
  --green: #00ceb8;
  --copper: #d3946d;
  --pos-qb: #c65345;
  --pos-rb: #5f7864;
  --pos-wr: #287da8;
  --pos-te: #875d91;
  --pos-def: #145842;
  --pos-pick: #d98a14;
  --pos-other: #7d8581;
  --pending-pick: var(--pos-other);
  --pending-pick-text: var(--pos-rb);
  --pending-pick-soft: #ecefeb;
  --pending-pick-border: #b1b8b3;
  --pending-pick-ink: #5e6560;
  --you-accent: #00ceb8;
  --you-surface: rgba(0, 206, 184, 0.08);
  --you-surface-strong: rgba(0, 206, 184, 0.12);
  --you-border: rgba(0, 206, 184, 0.5);
  --you-ink: #061016;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 206, 184, 0.12), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  background: #080d13;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.brand-block {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

button.brand-home {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.brand-home:focus-visible {
  outline: 2px solid var(--forest-2);
  outline-offset: 3px;
}

.brand-copy {
  min-width: 0;
}

.landing-header-actions {
  display: none;
  flex: 0 0 auto;
  align-items: center;
}

/* Landing page */
.app-shell.is-landing .nav-list,
.app-shell.is-landing .source-note {
  display: none;
}

.app-shell.is-league-picker .landing-header-actions {
  display: flex;
}

.app-shell.is-league-picker .topbar {
  display: none;
}

.landing-hero {
  padding: 26px 0 6px;
}

.landing-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  max-width: 640px;
}

.landing-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
}

.landing-league-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.landing-league-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(16, 24, 33, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.landing-league-row:hover,
.landing-league-row:focus-visible {
  border-color: var(--forest-2);
  background: rgba(0, 206, 184, 0.07);
  outline: none;
}

.landing-league-row .team-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.landing-league-copy {
  display: grid;
  min-width: 0;
}

.landing-league-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-league-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.landing-marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  margin-bottom: 56px;
  padding: 52px 0 68px;
  border-bottom: 1px solid var(--line-strong);
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.landing-marketing-hero .landing-title {
  max-width: 660px;
  margin: 12px 0 20px;
  color: var(--forest);
  font-size: clamp(48px, 5.2vw, 74px);
  line-height: 0.98;
}

.landing-marketing-hero .landing-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.landing-search-form {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 30px;
}

.landing-search-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.landing-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.landing-search-row input {
  min-height: 50px;
  background: var(--surface);
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.landing-search-row .primary-button,
.landing-search-row .secondary-button {
  min-height: 50px;
  padding-inline: 19px;
  font-size: 14px;
}

.landing-hero-trust,
.landing-hero-account {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.landing-hero-trust {
  margin-top: 13px;
}

.landing-hero-trust span {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.landing-hero-trust span:not(:first-child)::before {
  position: absolute;
  top: 50%;
  left: -10px;
  color: var(--line-strong);
  content: "•";
  transform: translateY(-50%);
}

.landing-hero-account {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.landing-hero-account .text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 850;
}

.landing-hero-account .text-button:hover,
.landing-hero-account .text-button:focus-visible {
  color: var(--forest-2);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-product-stage {
  position: relative;
  min-width: 0;
  padding: 34px 18px 66px 10px;
}

.landing-product-stage::before {
  position: absolute;
  inset: 0 0 24px 6%;
  border-radius: 50%;
  background: var(--surface-alt);
  content: "";
  filter: blur(2px);
}

.landing-preview-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.landing-preview-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--forest);
  color: var(--surface);
}

.landing-preview-brand {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 5px;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 900;
}

.landing-preview-topbar > div {
  display: grid;
  gap: 1px;
}

.landing-preview-topbar strong {
  font-size: 11px;
}

.landing-preview-topbar > div span {
  opacity: 0.72;
  font-size: 8px;
}

.landing-preview-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 800;
}

.landing-preview-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.landing-preview-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 374px;
}

.landing-preview-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 15px 10px;
  border-right: 1px solid var(--line);
  background: var(--forest);
  color: var(--surface);
}

.landing-preview-nav span {
  padding: 8px 7px;
  border-radius: 3px;
  opacity: 0.64;
  font-size: 8px;
  font-weight: 800;
}

.landing-preview-nav span.is-active {
  background: var(--primary-soft);
  color: var(--forest);
  opacity: 1;
}

.landing-preview-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 17px;
  background: var(--paper);
}

.landing-preview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.landing-preview-heading > div {
  display: grid;
  gap: 3px;
}

.landing-preview-heading span,
.landing-preview-heading small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
}

.landing-preview-heading strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 15px;
}

.landing-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.landing-preview-kpis article {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.landing-preview-kpis span,
.landing-preview-kpis small {
  color: var(--muted);
  font-size: 6px;
  font-weight: 750;
}

.landing-preview-kpis strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 19px;
}

.landing-preview-feature {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.landing-preview-feature-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.landing-preview-feature-head span,
.landing-preview-feature-head small {
  color: var(--muted);
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-preview-feature-head strong {
  color: var(--forest);
  font-size: 8px;
}

.landing-preview-tree {
  display: grid;
  grid-template-columns: minmax(78px, 0.8fr) auto minmax(78px, 0.8fr) auto minmax(84px, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 130px;
  padding: 16px 12px;
}

.landing-preview-asset,
.landing-preview-finals span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.landing-preview-asset.is-origin {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.landing-preview-asset span,
.landing-preview-finals span {
  color: var(--ink);
  font-size: 7px;
  font-weight: 850;
}

.landing-preview-asset small {
  color: var(--muted);
  font-size: 5px;
}

.landing-preview-arrow,
.landing-preview-branch {
  color: var(--saddle);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.landing-preview-finals {
  display: grid;
  gap: 6px;
}

.landing-preview-float {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: 166px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.landing-preview-float span,
.landing-preview-float small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.landing-preview-float strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 12px;
}

.landing-preview-float.is-predictions {
  right: -8px;
  bottom: 25px;
  transform: rotate(1.15deg);
}

.landing-preview-float.is-recap {
  bottom: 3px;
  left: -12px;
  transform: rotate(-1.15deg);
}

.landing-feature-intro {
  max-width: 780px;
  margin: 102px auto 64px;
  text-align: center;
}

.landing-feature-intro h3,
.landing-more-heading h3,
.landing-how-it-works h3,
.landing-final-cta h3,
.landing-league-id h3 {
  margin: 8px 0 12px;
  color: var(--forest);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.landing-feature-intro > p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.landing-feature-story {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: 58px;
  margin-bottom: 104px;
}

.landing-feature-story.is-yearbooks {
  grid-template-columns: minmax(500px, 1.18fr) minmax(0, 0.82fr);
}

.landing-feature-copy {
  position: relative;
  padding: 28px 0;
}

.landing-feature-number {
  display: block;
  margin-bottom: 30px;
  color: var(--line-strong);
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.landing-feature-copy h3 {
  margin: 8px 0 16px;
  color: var(--forest);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
}

.landing-feature-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.landing-feature-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.landing-feature-points li {
  position: relative;
  padding-left: 21px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.landing-feature-points li::before {
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--saddle);
  content: "";
  transform: rotate(45deg);
}

.landing-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.landing-feature-link span {
  color: var(--saddle);
  font-size: 17px;
  transition: transform 150ms ease;
}

.landing-feature-link:hover,
.landing-feature-link:focus-visible {
  color: var(--saddle-dark);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-feature-link:hover span,
.landing-feature-link:focus-visible span {
  transform: translateX(3px);
}

.landing-feature-visual {
  position: relative;
  min-width: 0;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.landing-visual-toolbar,
.landing-ballot-head {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--forest);
  color: var(--surface);
}

.landing-visual-toolbar span,
.landing-visual-toolbar small,
.landing-ballot-head span,
.landing-ballot-head small {
  opacity: 0.72;
  font-size: 9px;
  font-weight: 750;
}

.landing-visual-toolbar strong,
.landing-ballot-head strong {
  font-family: Georgia, serif;
  font-size: 22px;
}

.landing-feature-visual.landing-trade-visual {
  display: grid;
  min-height: 0;
  align-content: start;
}

.landing-trade-flow {
  display: grid;
  grid-template-columns:
    minmax(112px, 0.9fr)
    clamp(24px, 4vw, 44px)
    minmax(116px, 0.9fr)
    clamp(28px, 5vw, 54px)
    minmax(132px, 1fr);
  align-items: center;
  padding: 34px 22px 24px;
}

.landing-trade-node {
  display: grid;
  gap: 5px;
  min-height: 88px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.landing-trade-node.is-origin {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.landing-trade-node span,
.landing-trade-node small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.landing-trade-node strong {
  color: var(--forest);
  font-size: 14px;
}

.landing-trade-connector {
  position: relative;
  height: 2px;
  background: var(--line-strong);
}

.landing-trade-connector::after {
  position: relative;
  top: -4px;
  right: -100%;
  display: block;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}

.landing-trade-split {
  position: relative;
  height: 156px;
}

.landing-trade-split::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--line-strong);
  content: "";
}

.landing-trade-split::after {
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 50%;
  width: 2px;
  background: var(--line-strong);
  content: "";
}

.landing-trade-split i {
  position: absolute;
  right: 0;
  left: 50%;
  height: 2px;
  background: var(--line-strong);
}

.landing-trade-split i:first-child {
  top: 25%;
}

.landing-trade-split i:last-child {
  bottom: 25%;
}

.landing-trade-finals {
  display: grid;
  gap: 14px;
}

.landing-trade-result {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 11px;
}

.landing-trade-result strong {
  color: var(--forest);
}

.landing-feature-story.is-predictions {
  grid-template-columns: minmax(500px, 1.18fr) minmax(0, 0.82fr);
}

.landing-prediction-visual {
  padding-bottom: 20px;
  background: var(--paper);
}

.landing-ballot-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.landing-ballot-head span,
.landing-ballot-head strong {
  grid-column: 1;
}

.landing-ballot-head small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.landing-ballot-progress {
  height: 5px;
  background: var(--surface-alt);
}

.landing-ballot-progress span {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--saddle);
}

.landing-prediction-visual article {
  display: grid;
  gap: 7px;
  margin: 18px 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.landing-prediction-visual article > span {
  color: var(--saddle);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-prediction-visual article > strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 16px;
}

.landing-prediction-visual article > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.landing-prediction-visual i {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.landing-prediction-visual i.is-selected {
  border-color: var(--secondary-border);
  background: var(--secondary-soft);
  color: var(--forest);
}

.landing-ballot-seal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 20px 0;
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--forest);
  color: var(--surface);
}

.landing-ballot-seal span {
  opacity: 0.72;
  font-size: 9px;
}

.landing-ballot-seal strong {
  font-size: 10px;
  text-transform: uppercase;
}

.landing-yearbook-visual {
  display: grid;
  align-content: start;
  background: var(--paper);
}

.landing-yearbook-cover {
  display: grid;
  min-height: 240px;
  align-content: center;
  justify-items: start;
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(18, 61, 47, 0.98) 0%, rgba(18, 61, 47, 0.9) 36%, rgba(18, 61, 47, 0.58) 58%, rgba(18, 61, 47, 0.08) 100%),
    var(--ceremony-art) 58% center / cover no-repeat;
  color: var(--surface);
  text-align: left;
}

.landing-yearbook-cover > span {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-yearbook-cover p {
  margin: 0 0 5px;
  opacity: 0.7;
  font-size: 10px;
  text-transform: uppercase;
}

.landing-yearbook-cover strong {
  font-family: Georgia, serif;
  font-size: 28px;
}

.landing-yearbook-cover small {
  margin-top: 8px;
  opacity: 0.72;
}

.landing-yearbook-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 22px 20px 12px;
}

.landing-yearbook-podium article {
  display: grid;
  gap: 4px;
  min-height: 82px;
  align-content: center;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--podium-silver);
  background: var(--surface);
  text-align: center;
}

.landing-yearbook-podium article.is-first {
  min-height: 108px;
  border-top-color: var(--podium-gold);
}

.landing-yearbook-podium article.is-third {
  border-top-color: var(--podium-bronze);
}

.landing-yearbook-podium span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 18px;
}

.landing-yearbook-podium strong {
  color: var(--forest);
  font-size: 10px;
}

.landing-yearbook-podium small {
  color: var(--muted);
  font-size: 8px;
}

.landing-yearbook-chapters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.landing-yearbook-chapters span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.landing-feature-visual.landing-draft-visual {
  min-height: 0;
  background: var(--paper);
}

.landing-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.2);
  background: var(--forest);
  color: var(--surface);
}

.landing-draft-head > div {
  display: grid;
  gap: 4px;
}

.landing-draft-head span,
.landing-draft-head small {
  opacity: 0.72;
  font-size: 9px;
  font-weight: 750;
}

.landing-draft-head strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.landing-draft-formula {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.landing-draft-formula b {
  color: var(--saddle);
  font-size: 14px;
}

.landing-draft-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 18px 12px;
}

.landing-draft-highlights article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 5px;
  background: var(--surface);
}

.landing-draft-highlights article:nth-child(2) {
  border-top-color: var(--saddle);
}

.landing-draft-highlights article:nth-child(3) {
  border-top-color: var(--podium-gold);
}

.landing-draft-highlights span,
.landing-draft-highlights small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-draft-highlights strong {
  overflow: hidden;
  color: var(--forest);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-draft-class {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.landing-draft-class-head,
.landing-draft-class article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}

.landing-draft-class-head {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-draft-class article {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
}

.landing-draft-pick {
  color: var(--saddle);
  font-family: Georgia, serif;
  font-size: 12px;
}

.landing-draft-player,
.landing-draft-outcome {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.landing-draft-player b,
.landing-draft-player small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-draft-player b {
  color: var(--forest);
  font-size: 10px;
}

.landing-draft-player small,
.landing-draft-outcome small {
  color: var(--muted);
  font-size: 7px;
}

.landing-draft-outcome {
  justify-items: end;
  text-align: right;
}

.landing-draft-outcome b {
  color: var(--forest);
  font-size: 8px;
}

.landing-draft-outcome.is-home-run b {
  color: var(--saddle);
}

.landing-draft-outcome.is-starter b {
  color: var(--field-sage);
}

.landing-more-features {
  margin: 122px 0 100px;
}

.landing-more-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

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

.landing-more-grid article,
.landing-more-grid > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.landing-more-grid > a {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.landing-more-grid > a:hover,
.landing-more-grid > a:focus-visible {
  border-color: var(--saddle);
  box-shadow: 0 10px 28px rgba(41, 35, 26, 0.09);
  outline: 3px solid rgba(155, 87, 56, 0.1);
  transform: translateY(-2px);
}

.landing-more-grid article {
  grid-template-columns: auto minmax(0, 1fr);
}

.landing-more-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--primary-border);
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--saddle);
}

.landing-more-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.landing-more-grid h4 {
  margin: 1px 0 6px;
  color: var(--forest);
  font-size: 18px;
}

.landing-more-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.landing-more-arrow {
  align-self: center;
  color: var(--saddle);
  font-size: 18px;
  font-weight: 850;
  transition: transform 160ms ease;
}

.landing-more-grid > a:hover .landing-more-arrow,
.landing-more-grid > a:focus-visible .landing-more-arrow {
  transform: translateX(3px);
}

.landing-how-it-works {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 56px;
  margin: 100px 0;
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.landing-how-it-works ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-how-it-works li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.landing-how-it-works li:last-child {
  border-bottom: 0;
}

.landing-how-it-works li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

.landing-how-it-works strong {
  color: var(--forest);
  font-size: 14px;
}

.landing-how-it-works p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 100px 0 34px;
  padding: 44px 46px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--surface);
}

.landing-final-cta .eyebrow,
.landing-final-cta h3 {
  color: var(--surface);
}

.landing-final-cta h3 {
  margin-bottom: 7px;
}

.landing-final-cta p:last-child {
  margin: 0;
  opacity: 0.72;
}

.landing-final-cta .primary-button {
  flex: 0 0 auto;
  background: var(--surface);
  color: var(--forest);
}

.landing-league-id {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 42px;
  margin-bottom: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.landing-league-id h3 {
  margin-bottom: 6px;
  font-size: 27px;
}

.landing-league-id p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.landing-id-form {
  display: grid;
  gap: 7px;
}

.account-signin-benefits {
  display: grid;
  gap: 8px;
  margin: 17px 0 20px;
  padding: 0;
  list-style: none;
}

.account-signin-benefits li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.account-signin-benefits li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.account-signin-security {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-connect-panel {
  padding: 24px;
  border: 1px solid var(--secondary-border);
  border-radius: 8px;
  background: var(--secondary-soft);
}

.account-connect-panel .section-heading {
  border-bottom-color: var(--secondary-border);
}

@media (max-width: 1080px) {
  .landing-marketing-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 30px;
  }

  .landing-product-stage {
    padding-inline: 0;
  }

  .landing-feature-story,
  .landing-feature-story.is-predictions,
  .landing-feature-story.is-yearbooks {
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
    gap: 38px;
  }

  .landing-feature-story.is-predictions,
  .landing-feature-story.is-yearbooks {
    grid-template-columns: minmax(440px, 1.2fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 900px) {
  .landing-marketing-hero,
  .landing-feature-story,
  .landing-feature-story.is-predictions,
  .landing-feature-story.is-yearbooks,
  .landing-how-it-works,
  .landing-league-id {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-marketing-hero {
    padding-top: 36px;
  }

  .landing-product-stage {
    width: min(680px, 100%);
    justify-self: center;
  }

  .landing-feature-story.is-predictions .landing-prediction-visual,
  .landing-feature-story.is-yearbooks .landing-yearbook-visual {
    order: 2;
  }

  .landing-feature-story.is-predictions .landing-feature-copy,
  .landing-feature-story.is-yearbooks .landing-feature-copy {
    order: 1;
  }

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

  .landing-feature-visual {
    min-height: 450px;
  }

  .landing-how-it-works {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .landing-marketing-hero {
    min-height: 0;
    margin-bottom: 38px;
    padding: 30px 0 42px;
  }

  .landing-marketing-hero .landing-title {
    font-size: 43px;
  }

  .landing-marketing-hero .landing-sub {
    font-size: 15px;
  }

  .landing-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-search-row .primary-button,
  .landing-search-row .secondary-button {
    width: 100%;
  }

  .landing-hero-trust {
    gap: 6px 12px;
  }

  .landing-hero-trust span:not(:first-child)::before {
    left: -8px;
  }

  .landing-product-stage {
    margin-top: 12px;
    padding: 14px 0 58px;
  }

  .landing-preview-shell {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 330px;
  }

  .landing-preview-nav {
    padding-inline: 6px;
  }

  .landing-preview-nav span {
    overflow: hidden;
    padding-inline: 4px;
    font-size: 6px;
  }

  .landing-preview-main {
    padding: 10px;
  }

  .landing-preview-heading small {
    display: none;
  }

  .landing-preview-tree {
    grid-template-columns: 1fr auto 1fr;
  }

  .landing-preview-branch,
  .landing-preview-finals {
    display: none;
  }

  .landing-preview-float {
    min-width: 140px;
    padding: 10px;
  }

  .landing-preview-float.is-predictions {
    right: -4px;
  }

  .landing-preview-float.is-predictions,
  .landing-preview-float.is-recap {
    transform: none;
  }

  .landing-feature-intro {
    margin: 72px auto 44px;
    text-align: left;
  }

  .landing-feature-intro h3,
  .landing-more-heading h3,
  .landing-how-it-works h3,
  .landing-final-cta h3 {
    font-size: 36px;
  }

  .landing-feature-story {
    gap: 24px;
    margin-bottom: 72px;
  }

  .landing-feature-number {
    margin-bottom: 18px;
    font-size: 44px;
  }

  .landing-feature-copy h3 {
    font-size: 34px;
  }

  .landing-feature-visual {
    min-height: 420px;
  }

  .landing-trade-flow {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 18px 18px;
  }

  .landing-trade-node {
    min-height: 76px;
  }

  .landing-trade-connector,
  .landing-trade-split {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: var(--line-strong);
  }

  .landing-trade-connector::after,
  .landing-trade-split::before,
  .landing-trade-split::after,
  .landing-trade-split i {
    display: none;
  }

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

  .landing-trade-result {
    justify-content: center;
    padding: 0 18px 18px;
  }

  .landing-yearbook-cover {
    min-height: 230px;
    padding: 24px;
    background:
      linear-gradient(90deg, rgba(18, 61, 47, 0.97) 0%, rgba(18, 61, 47, 0.82) 48%, rgba(18, 61, 47, 0.28) 100%),
      var(--ceremony-art) 62% center / cover no-repeat;
  }

  .landing-draft-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-draft-formula {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 4px;
    padding-inline: 12px;
    font-size: 8px;
    text-align: center;
  }

  .landing-draft-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-draft-highlights article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-draft-highlights article strong {
    grid-column: 1;
  }

  .landing-draft-highlights article small {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .landing-more-features {
    margin: 86px 0 72px;
  }

  .landing-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-how-it-works {
    margin: 72px 0;
    padding: 28px 22px;
  }

  .landing-final-cta {
    align-items: flex-start;
    flex-direction: column;
    margin: 72px 0 28px;
    padding: 32px 24px;
  }

  .landing-final-cta .primary-button {
    width: 100%;
  }

  .landing-league-id {
    gap: 18px;
  }
}

@media (max-width: 360px) {
  .app-shell.is-league-picker .brand-block {
    gap: 8px;
  }

  .app-shell.is-league-picker .brand-block h1 {
    overflow: hidden;
    font-size: 13px;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
  }
}

.brand-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 206, 184, 0.38);
  background: rgba(0, 206, 184, 0.12);
  color: var(--forest-2);
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-block h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
}

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

.sidebar-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  color: var(--forest-2);
  background: rgba(0, 206, 184, 0.1);
  border: 1px solid rgba(0, 206, 184, 0.28);
  border-radius: 6px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: rgba(0, 206, 184, 0.16);
  border-color: var(--forest-2);
  outline: none;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c8d4dc;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 650;
}

.nav-item[hidden] {
  display: none !important;
}

.nav-icon {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #8fa4b5;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-icon-jersey svg {
  width: 23px;
  height: 23px;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-notification-dot {
  display: block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #123d2f;
}

.nav-notification-dot[hidden] {
  display: none;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: rgba(0, 206, 184, 0.09);
  outline: none;
}

.nav-item.is-active {
  background: rgba(0, 206, 184, 0.15);
  color: var(--forest-2);
  font-weight: 700;
}

.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon,
.nav-item.is-active .nav-icon {
  color: var(--forest-2);
}

.source-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

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

  .app-shell.sidebar-collapsed .sidebar-header {
    display: grid;
    justify-items: center;
  }

  .app-shell.sidebar-collapsed .brand-block {
    justify-content: center;
  }

  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .source-note {
    display: none;
  }

  .app-shell.sidebar-collapsed .brand-mark {
    width: 42px;
    height: 42px;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

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

  .app-shell.sidebar-collapsed .nav-item {
    display: grid;
    height: 42px;
    padding: 0;
    place-items: center;
    text-align: center;
  }

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

  .app-shell.sidebar-collapsed .nav-icon {
    width: 26px;
    height: 26px;
  }

  .app-shell.sidebar-collapsed .nav-icon svg {
    width: 21px;
    height: 21px;
  }

  .app-shell.sidebar-collapsed .nav-notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    margin: 0;
  }
}

.content-area {
  min-width: 0;
  padding: 26px 34px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.12;
}

.topbar-title {
  min-width: 0;
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crumb-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.crumb-link:hover,
.crumb-link:focus-visible {
  color: var(--forest-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.crumb-sep {
  color: var(--muted);
  font-size: 13px;
}

.crumb-current {
  color: var(--forest-2);
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 14px 6px 7px;
  color: var(--ink);
  background: rgba(0, 206, 184, 0.08);
  border: 1px solid rgba(0, 206, 184, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.identity-chip:hover,
.identity-chip:focus-visible {
  background: rgba(0, 206, 184, 0.16);
  border-color: var(--forest-2);
  outline: none;
}

.identity-chip .team-avatar {
  width: 26px;
  height: 26px;
  font-size: 9px;
  border-radius: 50%;
}

.identity-chip[hidden] {
  display: none;
}

.manager-picker-modal {
  width: min(560px, 100%);
}

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

.manager-picker-option {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 10px 12px;
  color: var(--ink);
  background: rgba(16, 24, 33, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.manager-picker-option:hover,
.manager-picker-option:focus-visible {
  background: rgba(0, 206, 184, 0.1);
  border-color: var(--forest-2);
  outline: none;
}

.manager-picker-option.is-current {
  border-color: var(--forest-2);
  background: rgba(0, 206, 184, 0.14);
}

.manager-picker-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.manager-picker-foot {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ */
/* "You" highlighting across tables, lists, and cards                  */
/* ------------------------------------------------------------------ */

tr.is-you td {
  background: var(--you-surface);
}

tr.is-you td:first-child {
  box-shadow: inset 2px 0 0 var(--you-accent);
}

.leader-row.is-you,
.dna-row.is-you {
  background: var(--you-surface);
  box-shadow: inset 2px 0 0 var(--you-accent);
}

.leader-row.is-you {
  padding-left: 8px;
  padding-right: 6px;
  border-radius: 4px;
}

.dna-row.is-you {
  padding-left: 8px;
  border-radius: 4px;
}

.team-card-button.is-you {
  border-color: var(--you-border);
  border-top-color: var(--you-accent);
  background: var(--you-surface);
}

.draft-slot.is-you {
  background: var(--you-surface-strong);
  box-shadow: inset 0 -2px 0 var(--you-accent);
}

.draft-slot.is-you strong {
  color: var(--you-accent);
}

.trade-card.is-you {
  border-left: 2px solid var(--you-accent);
}

.you-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  color: var(--you-ink);
  background: var(--you-accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.departed-badge,
.former-owner-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  color: var(--muted);
  background: rgba(130, 144, 168, 0.14);
  border: 1px solid rgba(130, 144, 168, 0.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}

.former-owner-row td {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Draft capital board                                                 */
/* ------------------------------------------------------------------ */

.capital-manager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.capital-manager .team-avatar {
  width: 26px;
  height: 26px;
  font-size: 9px;
}

.capital-table th,
.capital-table td {
  white-space: nowrap;
}

.capital-cell {
  min-width: 96px;
}

.capital-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 4px 2px 0;
  padding: 3px 9px;
  color: var(--muted);
  background: rgba(16, 24, 33, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.capital-pick-slot {
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

button.capital-chip.is-acquired {
  color: var(--forest-2);
  background: rgba(0, 206, 184, 0.1);
  border-color: rgba(0, 206, 184, 0.4);
  cursor: pointer;
}

button.capital-chip.is-acquired:hover,
button.capital-chip.is-acquired:focus-visible {
  background: rgba(0, 206, 184, 0.2);
  border-color: var(--forest-2);
  outline: none;
}

.capital-chip.is-lost {
  color: #e08585;
  background: rgba(224, 133, 133, 0.08);
  border-color: rgba(224, 133, 133, 0.35);
}

.capital-total {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.capital-total.is-rich {
  color: var(--forest-2);
}

.capital-total.is-poor {
  color: #e08585;
}

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

.settled-pick-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* League facts: all-play, draft DNA, roster roots, trade matrix       */
/* ------------------------------------------------------------------ */

.luck-pos {
  color: var(--forest-2);
  font-weight: 800;
}

.luck-neg {
  color: #e08585;
  font-weight: 800;
}

.dna-chart {
  width: min(100%, 1180px);
}

.dna-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.dna-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "manager meta"
    "bar bar";
  gap: 8px 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.dna-bar {
  grid-area: bar;
  display: flex;
  width: 100%;
  height: 24px;
  overflow: hidden;
  background: rgba(16, 24, 33, 0.6);
  border-radius: 4px;
}

.dna-row > .capital-manager {
  grid-area: manager;
  min-width: 0;
}

.dna-row > .capital-manager strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dna-seg {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  height: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.dna-seg:focus-visible {
  outline: 2px solid var(--forest-2);
  outline-offset: -2px;
}

.dna-seg-label {
  max-width: 100%;
  overflow: hidden;
  padding: 0 3px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(5, 8, 13, 0.65);
}

.dna-seg.is-tiny .dna-seg-label {
  display: none;
}

.dna-seg.pos-qb {
  background: var(--pos-qb);
}

.dna-seg.pos-rb {
  background: var(--pos-rb);
}

.dna-seg.pos-wr {
  background: var(--pos-wr);
}

.dna-seg.pos-te {
  background: var(--pos-te);
}

.dna-seg.pos-def {
  background: var(--pos-def);
  box-shadow: inset 0 0 0 1px rgba(238, 246, 246, 0.3);
}

.dna-seg.pos-other {
  background: var(--pos-other);
}

#appView[data-dna-highlight] .dna-seg {
  opacity: 0.28;
  filter: saturate(0.6);
}

#appView[data-dna-highlight="qb"] .dna-seg[data-dna-position="qb"],
#appView[data-dna-highlight="rb"] .dna-seg[data-dna-position="rb"],
#appView[data-dna-highlight="wr"] .dna-seg[data-dna-position="wr"],
#appView[data-dna-highlight="te"] .dna-seg[data-dna-position="te"],
#appView[data-dna-highlight="def"] .dna-seg[data-dna-position="def"],
#appView[data-dna-highlight="idp"] .dna-seg[data-dna-position="idp"],
#appView[data-dna-highlight="k"] .dna-seg[data-dna-position="k"],
#appView[data-dna-highlight="other"] .dna-seg[data-dna-position="other"] {
  opacity: 1;
  filter: saturate(1.16) brightness(1.08);
  box-shadow: inset 0 0 0 2px rgba(238, 246, 246, 0.28);
}

.dna-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.survivor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.survivor-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
  background: rgba(16, 24, 33, 0.62);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.survivor-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survivor-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.trade-matrix th,
.trade-matrix td {
  width: 48px;
  min-width: 48px;
  padding: 5px 4px;
  text-align: center;
  vertical-align: middle;
}

.trade-matrix th:first-child,
.trade-matrix td.trade-matrix-row {
  width: 146px;
  min-width: 146px;
  max-width: 146px;
}

.trade-matrix .team-avatar {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  font-size: 8px;
}

.trade-matrix-row {
  text-align: left;
}

.trade-matrix-row .capital-manager {
  width: 100%;
  min-width: 0;
}

.trade-matrix-row .capital-manager strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-matrix-cell {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  margin: 0 auto;
  border-radius: 4px;
  color: #061016;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.trade-matrix-cell.is-zero,
.trade-matrix-cell.is-self {
  color: var(--muted);
  background: transparent;
}

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

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 11px;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(0, 206, 184, 0.18);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 13px;
  min-height: 40px;
  font-weight: 800;
}

.primary-button {
  background: var(--forest);
  color: #061016;
}

.primary-button:hover {
  background: var(--forest-2);
}

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

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--forest-2);
}

.danger-button {
  background: var(--surface);
  color: var(--red);
  border-color: #e8c6bf;
}

.ghost-button {
  background: transparent;
  color: var(--forest);
  border-color: transparent;
}

.view-region {
  padding-top: 24px;
}

.alert-region {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.alert {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.alert.error {
  border-color: #e3b0a7;
  color: #8b3528;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading h3 {
  margin: 0;
  font-size: 20px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.band {
  margin-bottom: 30px;
}

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

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

.kpi-card,
.tile,
.trade-card,
.vote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-card {
  display: grid;
  align-content: center;
  padding: 15px;
  min-height: 96px;
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.kpi-value {
  margin: 9px 0 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  hyphens: none;
  white-space: nowrap;
  word-break: keep-all;
}

.kpi-detail {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.facts-section {
  display: grid;
  gap: 14px;
}

.facts-editorial-hero {
  display: grid;
  gap: 20px;
}

.facts-hero-copy {
  max-width: 760px;
}

.facts-hero-copy h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-family: "Literata", Charter, Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  text-wrap: balance;
}

.facts-hero-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.facts-insight-card,
.facts-highlight-card,
.facts-deep-dive,
.startup-survivors-summary {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facts-insight-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 170px;
  padding: 17px;
  border-top: 3px solid var(--forest);
}

.facts-insight-card[data-insight-category="trades"] {
  border-top-color: var(--copper, var(--gold));
}

.facts-insight-card[data-insight-category="teamBuilding"] {
  border-top-color: var(--blue);
}

.facts-insight-card .fact-label,
.facts-highlight-card .fact-label {
  margin-bottom: 0;
}

.facts-insight-card > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.facts-insight-title {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-family: "Literata", Charter, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: anywhere;
}

button.facts-insight-title:hover,
button.facts-insight-title:focus-visible {
  color: var(--forest-2);
  outline: none;
}

.facts-insight-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.facts-insight-pair .story-team-button {
  font-family: inherit;
  font-size: inherit;
}

.facts-trade-tree-link {
  width: fit-content;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.facts-trade-tree-link:hover,
.facts-trade-tree-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facts-chapter {
  gap: 18px;
  margin-top: 42px;
}

.facts-chapter-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-strong);
}

.facts-chapter-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--copper, var(--gold));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.facts-chapter-heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Literata", Charter, Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
}

.facts-chapter-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.facts-subsection {
  display: grid;
  gap: 14px;
}

.facts-subsection + .facts-subsection,
.facts-subsection-heading {
  margin-top: 18px;
}

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

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

.facts-highlight-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
}

.facts-highlight-card .story-team-button {
  font-size: 18px;
}

.facts-highlight-card > strong {
  color: var(--ink);
  font-family: "Literata", Charter, Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.facts-deep-dive {
  overflow: hidden;
}

.facts-deep-dive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.facts-deep-dive > summary::-webkit-details-marker {
  display: none;
}

.facts-deep-dive > summary::after {
  color: var(--forest-2);
  font-size: 18px;
  font-weight: 900;
  content: "+";
}

.facts-deep-dive[open] > summary::after {
  content: "−";
}

.facts-deep-dive > summary span {
  color: var(--ink);
  font-weight: 850;
}

.facts-deep-dive > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.facts-deep-dive[open] > summary {
  border-bottom: 1px solid var(--line);
}

.facts-table-wrap,
.facts-deep-dive > .dna-chart,
.facts-deep-dive > .records-list,
.facts-deep-dive > .survivor-grid {
  margin: 0;
  padding: 14px;
}

.sample-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

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

.rivalry-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rivalry-list .story-team-button {
  color: var(--forest-2);
  font-size: 13px;
}

.startup-survivors-summary {
  display: grid;
  gap: 14px;
  padding: 17px;
}

.startup-survivors-summary > div:first-child > strong {
  color: var(--ink);
  font-family: "Literata", Charter, Georgia, serif;
  font-size: 24px;
}

.startup-survivors-summary > div:first-child > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.survivor-deep-dive {
  box-shadow: none;
}

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

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

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

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

.story-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  background: linear-gradient(145deg, rgba(18, 26, 36, 0.94), rgba(14, 22, 31, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.story-card-head .fact-label {
  margin: 0;
}

.story-card.compact {
  min-height: 188px;
}

.story-value {
  min-width: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.story-detail {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.story-swap,
.story-chain-arrow {
  color: var(--muted);
  font-weight: 850;
}

.story-team-button,
.story-pick-button {
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.story-team-button {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.story-pick-button {
  width: fit-content;
  font-size: 17px;
  line-height: 1.15;
}

.story-team-button:hover,
.story-team-button:focus-visible,
.story-pick-button:hover,
.story-pick-button:focus-visible {
  color: var(--forest-2);
  outline: none;
}

.story-team-missing {
  color: var(--muted);
  font-weight: 750;
}

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

.blockbuster-side {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 20, 29, 0.7);
}

.blockbuster-side .story-team-button {
  font-size: 16px;
}

.blockbuster-side span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.story-bar-row {
  display: grid;
  grid-template-columns: minmax(86px, max-content) minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
}

.story-bar-label {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.story-bar-label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
}

.story-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b2a39;
}

.story-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--blue));
}

.story-bar-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.pick-journey-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
}

.pick-journey-chain .story-team-button {
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fact-card {
  min-width: 0;
  min-height: 128px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(18, 26, 36, 0.94), rgba(14, 22, 31, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.fact-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-value {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.fact-list {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.team-fact-list {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.fact-list.expanded {
  margin-top: 8px;
}

.fact-list span {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
}

.fact-team-button {
  display: block;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.fact-team-button:hover,
.fact-team-button:focus-visible {
  color: var(--forest-2);
  outline: none;
}

.fact-asset-button {
  font-size: 18px;
  line-height: 1.15;
}

.fact-expander {
  margin-top: 8px;
}

.fact-expander summary {
  color: var(--forest-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.fact-expander[open] summary {
  display: none;
}

.fact-expander summary:focus-visible {
  outline: 1px solid var(--forest-2);
  outline-offset: 3px;
}

.fact-toggle-less {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
}

.fact-toggle-less:hover,
.fact-toggle-less:focus-visible {
  color: var(--blue);
  outline: none;
}

.fact-card .fact-detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.hero-card {
  align-content: start;
  min-height: 108px;
}

.dashboard-draft-card {
  appearance: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.dashboard-draft-card:hover,
.dashboard-draft-card:focus-visible {
  background: color-mix(in srgb, var(--forest-2) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--forest-2) 62%, var(--line));
  outline: none;
}

.dashboard-card-link {
  align-self: end;
  margin-top: 10px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 850;
}

.hero-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
}

.hero-person .team-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.hero-person strong {
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.title-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 16px 12px 14px;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.title-card:hover,
.title-card:focus-visible {
  border-color: var(--forest-2);
  background: rgba(0, 206, 184, 0.05);
  outline: none;
}

.title-card.is-you {
  border-color: var(--you-border);
}

.title-year {
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.title-card .team-avatar {
  width: 44px;
  height: 44px;
}

.title-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-runner {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.title-payout {
  font-size: 13px;
  font-weight: 800;
}

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

.leader-name .team-avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.leader-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-meta {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.records-list.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tile {
  padding: 18px;
  min-width: 0;
}

.tile h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.leader-row,
.pick-row {
  display: grid;
  grid-template-columns: minmax(142px, 1fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.leader-row:last-child,
.pick-row:last-child {
  border-bottom: 0;
}

.weekly-score-meta {
  display: grid;
  grid-template-columns: 84px 48px 48px;
  gap: 10px;
  justify-items: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 9px;
  background: var(--surface-alt);
  overflow: hidden;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--blue));
  min-width: 4px;
}

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

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

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

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #101821;
}

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

.place-badge {
  display: inline-grid;
  grid-template-columns: 1.25em 18px;
  align-items: center;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
}

.place-badge > span:first-child {
  text-align: center;
}

.table-team-link {
  display: inline;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  text-align: left;
  font-weight: 850;
}

.table-team-link:hover,
.table-team-link:focus-visible {
  color: var(--forest-2);
  text-decoration: underline;
  outline: none;
}

.trophy-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.36));
}

.trophy-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.trophy-1 {
  color: var(--podium-gold);
}

.trophy-2 {
  color: var(--podium-silver);
}

.trophy-3 {
  color: var(--podium-bronze);
}

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

.result-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin: 0 0 10px;
}

.toolbar .field {
  min-width: 180px;
}

.toolbar .field.grow {
  flex: 1;
  min-width: 240px;
}

.asset-filter-field {
  flex-basis: 100%;
}

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

.filter-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check:hover {
  border-color: var(--forest-2);
}

.filter-check:focus-within {
  border-color: var(--forest-2);
  outline: 3px solid rgba(0, 206, 184, 0.18);
}

.filter-check.is-checked {
  color: var(--forest-2);
  background: rgba(0, 206, 184, 0.1);
  border-color: rgba(0, 206, 184, 0.5);
}

.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  color: #e08585;
  background: transparent;
  border: 1px solid rgba(224, 133, 133, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.filter-clear:hover,
.filter-clear:focus-visible {
  background: rgba(224, 133, 133, 0.1);
  border-color: #e08585;
  outline: none;
}

.filter-clear[hidden] {
  display: none;
}

.league-id-cell {
  max-width: 170px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-list,
.vote-list,
.pick-list {
  display: grid;
  gap: 12px;
}

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

.team-card-button {
  display: grid;
  align-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  min-height: 142px;
  overflow: hidden;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(145deg, #121a24, #0f1720);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-card-button:hover,
.team-card-button:focus-visible {
  border-color: rgba(0, 206, 184, 0.62);
  outline: none;
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.team-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.library-card-badge {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.team-card-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-card-name > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-copy > span,
.team-card-stats {
  color: var(--muted);
}

.team-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  overflow: hidden;
  place-items: center;
  color: var(--forest-2);
  background:
    radial-gradient(circle at 28% 22%, rgba(246, 197, 77, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(0, 206, 184, 0.32), rgba(42, 92, 86, 0.72));
  border: 1px solid rgba(0, 206, 184, 0.38);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.team-avatar.large {
  width: 76px;
  height: 76px;
  font-size: 24px;
}

.team-avatar-initials,
.team-avatar img {
  position: absolute;
  inset: 0;
}

.team-avatar-initials {
  display: grid;
  place-items: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.team-card-stats span {
  display: grid;
  min-width: 0;
  min-height: 34px;
  padding: 6px 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-hero {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.team-hero-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

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

.team-identity > div {
  min-width: 0;
}

.team-hero-main h3 {
  margin: 4px 0 0;
  font-size: 34px;
  overflow-wrap: anywhere;
}

.team-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-section-nav {
  margin-top: 14px;
}

.team-section-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 10px;
  background: rgba(25, 36, 50, 0.86);
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
}

.team-section-pill:hover,
.team-section-pill:focus-visible {
  border-color: var(--forest-2);
  background: rgba(0, 206, 184, 0.12);
  outline: none;
}

.team-section-anchor {
  scroll-margin-top: 24px;
}

.team-stat-strip {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.8fr) minmax(130px, 0.9fr) minmax(170px, 1.2fr);
  width: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 26, 36, 0.86), rgba(14, 22, 31, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-stat {
  min-width: 0;
  padding: 15px 16px;
  border-left: 1px solid var(--line);
}

.team-stat:first-child {
  border-left: 0;
}

.team-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  hyphens: none;
  white-space: nowrap;
  word-break: keep-all;
}

.team-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.team-draft-resume .section-heading {
  align-items: flex-start;
}

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

.draft-resume-stat,
.draft-resume-story {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(145deg, rgba(18, 27, 38, 0.88), rgba(10, 17, 24, 0.9));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draft-resume-stat {
  display: grid;
  align-content: start;
  min-height: 116px;
}

.draft-resume-stat > span,
.draft-resume-story > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-resume-stat strong {
  margin-top: 11px;
  color: var(--forest-2);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.draft-resume-stat small,
.draft-resume-story small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.draft-resume-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.draft-resume-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.draft-resume-story > span,
.draft-resume-story > strong,
.draft-resume-story > small {
  grid-column: 1;
}

.draft-resume-story > strong {
  margin-top: 8px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-resume-story .draft-result-badge {
  grid-column: 2;
  grid-row: 1 / span 3;
  font-style: normal;
}

.team-draft-history-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 20px 0 10px;
}

.team-draft-history-heading h4,
.team-draft-history-heading p {
  margin: 0;
}

.team-draft-history-heading p,
.team-draft-history-heading > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.team-draft-history-heading > span {
  max-width: 460px;
  text-align: right;
}

.trade-card {
  position: relative;
  padding: 16px 16px 42px;
}

.trade-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.trade-title {
  margin: 0;
  font-size: 17px;
}

.trade-card-number {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
}

.trade-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(156, 178, 201, 0.44);
  border-radius: 999px;
  background: rgba(19, 32, 46, 0.72);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.trade-number-badge:hover,
.trade-number-badge:focus-visible {
  border-color: var(--forest-2);
  color: var(--forest-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 206, 184, 0.12);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 750;
}

.pill.warn {
  background: rgba(241, 191, 77, 0.16);
  color: #ffd983;
}

.pill.good {
  background: rgba(0, 206, 184, 0.16);
  color: var(--forest-2);
}

.season-pill {
  background: var(--surface-alt);
  border: 1px solid var(--season-color);
  color: var(--season-color);
}

.season-jump-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.season-jump-button:hover,
.season-jump-button:focus-visible {
  outline: none;
}

.season-jump-button:hover .season-pill,
.season-jump-button:focus-visible .season-pill {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(0, 206, 184, 0.14);
}

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

.trade-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trade-results-head .result-count {
  margin-bottom: 0;
}

.trade-direction-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.trade-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #101821;
}

.trade-side h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.trade-side-direction {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink);
}

.asset-list li {
  margin: 7px 0;
}

.asset-line-content {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  vertical-align: middle;
}

.position-marker {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--pos-other);
  box-shadow: 0 0 0 1px rgba(238, 246, 246, 0.12);
}

.position-marker.pos-qb {
  background: var(--pos-qb);
}

.position-marker.pos-rb {
  background: var(--pos-rb);
}

.position-marker.pos-wr {
  background: var(--pos-wr);
}

.position-marker.pos-te {
  background: var(--pos-te);
}

.position-marker.pos-def {
  background: var(--pos-def);
  box-shadow: 0 0 0 1px rgba(238, 246, 246, 0.3);
}

.position-marker.pos-other {
  background: var(--pos-other);
}

.position-marker.pos-pick {
  background: var(--pos-pick);
}

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

.asset-button {
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 0;
  text-align: left;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.asset-label {
  min-width: 0;
  max-width: 100%;
  color: var(--forest);
  font-weight: 750;
}

.asset-line-content .asset-button,
.asset-line-content .asset-label {
  overflow-wrap: anywhere;
}

.asset-label.asset-pick,
.asset-button.asset-pick {
  font-variant-numeric: tabular-nums;
}

.asset-label.asset-pick.is-pending,
.asset-button.asset-pick.is-pending {
  color: var(--pending-pick-text);
  font-weight: 500;
}

.asset-button.asset-pick.is-pending {
  text-decoration-color: color-mix(in srgb, var(--pending-pick-text) 52%, transparent);
}

.asset-label.asset-pick.is-resolved,
.asset-button.asset-pick.is-resolved {
  color: #00b39f;
  font-weight: 850;
}

.asset-button.asset-pick.is-resolved {
  text-decoration-thickness: 2px;
}

.asset-trade-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(156, 178, 201, 0.48);
  border-radius: 999px;
  background: rgba(16, 28, 40, 0.46);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.asset-trade-count svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-button:hover,
.asset-button:focus-visible {
  color: var(--blue);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px 24px;
  background: rgba(5, 10, 14, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.asset-modal {
  width: min(920px, 100%);
  max-height: min(760px, 88vh);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(12, 21, 17, 0.28);
}

.trade-detail-modal {
  max-height: calc(100vh - 32px);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-title-row .eyebrow {
  margin: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font-weight: 900;
}

.modal-body {
  overflow: auto;
  padding: 16px 22px 22px;
}

.ownership-choice-modal {
  width: min(820px, 100%);
}

.ownership-choice-intro {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.55;
}

.ownership-automatic-note {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-alt);
}

.ownership-automatic-note span {
  color: var(--muted);
  line-height: 1.45;
}

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

.ownership-optional-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ownership-optional-grid ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.ownership-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ownership-choice-button {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 18px;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 8px;
}

.ownership-choice-button strong {
  font-size: 18px;
}

.ownership-choice-button span {
  line-height: 1.4;
  opacity: 0.82;
}

.ownership-choice-button:hover,
.ownership-choice-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ownership-choice-button.is-owner {
  background: var(--red);
  color: var(--paper);
}

.ownership-choice-dismiss {
  margin: 12px 0 0;
  text-align: center;
}

.modal-trade {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 42px;
  margin-bottom: 12px;
  background: var(--surface-alt);
  color: var(--ink);
}

.trade-detail-card {
  margin-bottom: 0;
}

.modal-trade-number {
  right: 14px;
  bottom: 12px;
}

.trade-detail-sides {
  margin-bottom: 0;
}

.modal-trade-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal-trade-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-pill-row {
  margin-top: 0;
}

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

.modal-trade-sides h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Draft Analyzer                                                      */
/* ------------------------------------------------------------------ */

.draft-view-switch {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.draft-page-toolbar .draft-view-switch {
  margin-left: 0;
}

.draft-page-toolbar > [data-go-view] {
  margin-left: auto;
}

.draft-season-field {
  flex: 0 0 160px;
  min-width: 160px;
}

.draft-season-field select {
  font-weight: 800;
}

.draft-view-switch .tab-button:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.draft-analyzer-hero {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(241, 191, 77, 0.12), transparent 24rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.draft-analyzer-hero .section-heading {
  align-items: flex-start;
}

.draft-analyzer-hero .section-heading p:not(.eyebrow) {
  max-width: 760px;
  line-height: 1.5;
}

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

.draft-analyzer-highlights article {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 112px;
  padding: 13px;
  background: rgba(8, 13, 19, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draft-analyzer-highlights span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-analyzer-highlights strong {
  margin-top: 10px;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-analyzer-highlights small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.draft-analyzer-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.draft-analyzer-jump > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-analyzer-jump button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--forest-2);
  background: rgba(12, 28, 34, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.draft-analyzer-jump button:hover,
.draft-analyzer-jump button:focus-visible {
  background: rgba(0, 206, 184, 0.12);
  border-color: var(--forest-2);
  outline: none;
}

.draft-score-explainer {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.8fr);
  gap: 18px;
  padding: 17px;
  background: linear-gradient(145deg, rgba(14, 29, 34, 0.96), rgba(11, 18, 25, 0.94));
  border: 1px solid color-mix(in srgb, var(--forest-2) 32%, var(--line));
  border-radius: 9px;
}

.draft-score-explainer-intro h3,
.draft-score-explainer-intro p {
  margin: 0;
}

.draft-score-explainer-intro h3 {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.25;
}

.draft-score-explainer-intro p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.draft-score-explainer-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  background: rgba(7, 13, 18, 0.46);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.draft-score-explainer-grid strong {
  color: var(--ink);
  font-size: 11px;
}

.draft-score-explainer-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.draft-scope-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.draft-scope-section.is-all-time {
  background:
    radial-gradient(circle at top right, rgba(0, 206, 184, 0.08), transparent 25rem),
    rgba(10, 17, 24, 0.54);
  border-top: 3px solid color-mix(in srgb, var(--forest-2) 72%, transparent);
}

.draft-scope-section.is-class {
  background:
    radial-gradient(circle at top right, rgba(241, 191, 77, 0.08), transparent 22rem),
    rgba(10, 17, 24, 0.54);
  border-top: 3px solid color-mix(in srgb, var(--gold) 68%, transparent);
}

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

.draft-analyzer-table {
  min-width: 920px;
}

.draft-analyzer-table th,
.draft-analyzer-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.draft-leaderboard-table {
  width: 100%;
  min-width: 880px;
  table-layout: fixed;
}

.draft-class-table {
  width: 100%;
  min-width: 800px;
  table-layout: fixed;
}

.draft-leaderboard-table th:nth-child(1) { width: 6%; }
.draft-leaderboard-table th:nth-child(2) { width: 22%; }
.draft-leaderboard-table th:nth-child(3),
.draft-leaderboard-table th:nth-child(4),
.draft-leaderboard-table th:nth-child(7) { width: 9%; }
.draft-leaderboard-table th:nth-child(5),
.draft-leaderboard-table th:nth-child(6),
.draft-leaderboard-table th:nth-child(8) { width: 10%; }
.draft-leaderboard-table th:nth-child(9) { width: 15%; }

.draft-class-table th:nth-child(1) { width: 7%; }
.draft-class-table th:nth-child(2) { width: 20%; }
.draft-class-table th:nth-child(3),
.draft-class-table th:nth-child(4),
.draft-class-table th:nth-child(5),
.draft-class-table th:nth-child(6) { width: 11%; }
.draft-class-table th:nth-child(7) { width: 12%; }
.draft-class-table th:nth-child(8) { width: 17%; }

.draft-leaderboard-table th,
.draft-leaderboard-table td,
.draft-class-table th,
.draft-class-table td {
  padding-right: 9px;
  padding-left: 9px;
  text-align: center;
}

.draft-leaderboard-table th,
.draft-class-table th {
  white-space: normal;
}

.draft-leaderboard-table th:nth-child(2),
.draft-leaderboard-table td:nth-child(2),
.draft-class-table th:nth-child(2),
.draft-class-table td:nth-child(2) {
  text-align: left;
}

.draft-class-table td:nth-child(8) {
  line-height: 1.25;
  white-space: normal;
}

.draft-leaderboard-table .draft-manager-cell {
  width: 100%;
  min-width: 0;
}

.draft-leaderboard-table .draft-manager-cell > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-metric-header {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 72px;
  line-height: 1.1;
}

.draft-metric-header > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.draft-metric-header small {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.draft-metric-trigger {
  appearance: none;
  padding: 2px 1px;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 2px;
  cursor: help;
}

.draft-metric-trigger:hover,
.draft-metric-trigger:focus-visible {
  color: var(--forest-2);
  background: color-mix(in srgb, var(--forest-2) 10%, transparent);
  outline: 3px solid color-mix(in srgb, var(--forest-2) 22%, transparent);
  outline-offset: 2px;
}

.draft-metric-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  min-width: 220px;
  max-width: min(430px, calc(100vw - 16px));
  padding: 13px;
  color: var(--text);
  background: #0d1720;
  border: 1px solid color-mix(in srgb, var(--forest-2) 38%, var(--line));
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.draft-metric-tooltip-heading {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-metric-pick-list {
  display: grid;
  gap: 8px;
  max-height: min(340px, 60vh);
  padding-right: 4px;
  overflow-y: auto;
}

.draft-metric-pick {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(190px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.draft-metric-pick strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-metric-pick-detail,
.draft-metric-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.draft-metric-pick-detail {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.draft-metric-pick-detail span {
  white-space: nowrap;
}

.draft-metric-pick-detail small {
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.draft-manager-cell,
.draft-player-receipt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.draft-manager-cell .team-avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.draft-player-receipt small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.draft-score {
  font-variant-numeric: tabular-nums;
}

.draft-score.is-positive {
  color: var(--forest-2);
}

.draft-score.is-negative {
  color: var(--red);
}

.draft-score.is-neutral {
  color: var(--muted);
}

.draft-score-breakdown {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.draft-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(141, 156, 168, 0.1);
  border: 1px solid rgba(141, 156, 168, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.draft-result-badge.is-superstar {
  color: #081016;
  background: linear-gradient(135deg, #fff0a8, var(--gold));
  border-color: var(--gold);
}

.draft-result-badge.is-home_run {
  color: #071112;
  background: var(--forest-2);
  border-color: var(--forest-2);
}

.draft-result-badge.is-star,
.draft-result-badge.is-starter {
  color: #dce1ff;
  background: rgba(124, 140, 255, 0.16);
  border-color: rgba(124, 140, 255, 0.45);
}

.draft-result-badge.is-major_miss {
  color: #ffd4d0;
  background: rgba(255, 107, 95, 0.13);
  border-color: rgba(255, 107, 95, 0.42);
}

.draft-result-badge.is-developing {
  color: #b9c9d6;
  background: rgba(141, 156, 168, 0.08);
  border-style: dashed;
}

.draft-methodology details {
  padding: 14px 16px;
  background: rgba(18, 26, 36, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draft-methodology summary {
  color: var(--forest-2);
  font-weight: 850;
  cursor: pointer;
}

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

.draft-methodology-grid div {
  padding: 12px;
  background: rgba(8, 13, 19, 0.5);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.draft-methodology-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.draft-board-section {
  display: grid;
  gap: 12px;
}

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

.draft-board-grid {
  display: grid;
  gap: 3px;
}

.draft-board-corner,
.draft-slot,
.draft-round-label {
  background: rgba(18, 26, 36, 0.86);
  border: 1px solid var(--line);
}

.draft-board-corner,
.draft-round-label {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px;
}

.draft-slot .team-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.draft-slot strong {
  overflow: hidden;
  color: #b6c7d6;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-pick {
  position: relative;
  display: grid;
  min-height: 88px;
  padding: 8px 9px;
  overflow: hidden;
  color: #091521;
  background: #4aa5c9;
  border: 1px solid rgba(6, 16, 22, 0.7);
  border-radius: 5px;
  text-align: left;
  box-shadow: inset 0 -18px 28px rgba(0, 0, 0, 0.08);
}

.draft-pick-button {
  width: 100%;
  cursor: pointer;
}

.draft-pick-button:hover,
.draft-pick-button:focus-visible {
  outline: 2px solid var(--forest-2);
  outline-offset: -2px;
}

.draft-pick.is-empty {
  background: rgba(18, 26, 36, 0.5);
  border-color: rgba(37, 50, 65, 0.6);
  box-shadow: none;
}

.draft-pick.is-traded {
  box-shadow:
    inset 0 -18px 28px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2px rgba(238, 246, 246, 0.18);
}

.draft-pick.pos-qb {
  background: var(--pos-qb);
}

.draft-pick.pos-rb {
  background: var(--pos-rb);
}

.draft-pick.pos-wr {
  background: var(--pos-wr);
}

.draft-pick.pos-te {
  background: var(--pos-te);
}

.draft-pick.pos-def {
  background: var(--pos-def);
  box-shadow:
    inset 0 -18px 28px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(238, 246, 246, 0.3);
}

.draft-pick.pos-def strong {
  color: #eef6f6;
}

.draft-pick.pos-def .draft-player-meta {
  color: rgba(238, 246, 246, 0.72);
}

.draft-pick.pos-def .draft-pick-no {
  color: rgba(238, 246, 246, 0.58);
}

.draft-pick.pos-other {
  background: var(--pos-other);
}

.draft-pick-no {
  position: absolute;
  top: 8px;
  right: 9px;
  color: rgba(9, 21, 33, 0.58);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.draft-pick strong {
  align-self: end;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #081323;
  font-size: 16px;
  line-height: 1.08;
  overflow-wrap: normal;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.draft-player-meta {
  margin-top: 3px;
  color: rgba(9, 21, 33, 0.72);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
}

.draft-trade-chip {
  justify-self: end;
  align-self: end;
  max-width: 100%;
  margin: 7px -6px -5px 0;
  padding: 3px 7px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(8, 13, 19, 0.58);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.pick-card h4 {
  margin: 0;
}

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

.small-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.small-value {
  display: block;
  margin-top: 4px;
  font-weight: 750;
}

.trophy-case {
  display: grid;
  gap: 16px;
}

.trophy-case-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 26, 36, 0.92), rgba(12, 18, 25, 0.96));
  box-shadow: var(--shadow);
}

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

.performance-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(52, 70, 87, 0.72);
  border-radius: 8px;
  background: rgba(13, 21, 30, 0.62);
}

.performance-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trophy-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trophy-case-grid.weekly {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}

.trophy-case-card {
  display: grid;
  min-height: 124px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid rgba(52, 70, 87, 0.78);
  border-radius: 8px;
  background: rgba(13, 21, 30, 0.74);
  text-align: center;
}

.case-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.case-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.trophy-case-icon {
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.42));
}

.football-icon {
  color: #8b5438;
  filter: drop-shadow(0 0 12px rgba(139, 84, 56, 0.22));
}

.football-laces {
  fill: none;
  stroke: #f0c7a8;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trophy-case-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.trophy-case-card > span:not(.case-icon) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.trophy-case-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.weekly-card {
  min-height: 82px;
  gap: 3px;
  padding: 9px 7px;
}

.weekly-card .case-icon {
  width: 26px;
  height: 26px;
}

.weekly-card .case-icon svg {
  width: 22px;
  height: 22px;
}

.weekly-card strong {
  font-size: 16px;
}

.weekly-card > span:not(.case-icon) {
  font-size: 11px;
}

.weekly-card small {
  font-size: 10px;
}

.trophy-case-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.tab-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--forest);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.tab-button.is-active {
  background: var(--forest);
  color: #061016;
  border-color: var(--forest);
}

.yearbook-live-shell {
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.yearbook-season-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.yearbook-season-switcher > div:first-child {
  display: grid;
  gap: 4px;
}

.yearbook-season-switcher p,
.yearbook-season-switcher span {
  margin: 0;
}

.yearbook-season-switcher > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.yearbook-season-options {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.yearbook-season-options .tab-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yearbook-season-options small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yearbook-live-dot,
.yearbook-live-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 206, 184, 0.16);
}

.yearbook-live-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 34px;
  border-top: 4px solid var(--forest);
}

.yearbook-live-copy h3 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.yearbook-live-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.yearbook-live-status {
  display: grid;
  min-width: 190px;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.yearbook-live-status > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yearbook-live-status strong {
  font-size: 18px;
}

.yearbook-live-status small {
  color: var(--muted);
}

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

.yearbook-live-leaders .edition-stat-card {
  min-width: 0;
  border-top: 3px solid var(--forest);
}

@media (max-width: 840px) {
  .yearbook-season-switcher,
  .yearbook-live-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .yearbook-season-switcher {
    flex-direction: column;
  }

  .yearbook-season-options {
    justify-content: flex-start;
  }

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

@media (max-width: 540px) {
  .yearbook-season-switcher,
  .yearbook-live-hero {
    padding: 18px;
  }

  .yearbook-live-leaders {
    grid-template-columns: 1fr;
  }
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

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

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

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.vote-card {
  padding: 16px;
}

.vote-summary {
  margin-bottom: 14px;
}

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

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

.vote-summary-card.approved {
  border-color: rgba(0, 206, 184, 0.32);
}

.vote-summary-card.rejected {
  border-color: rgba(199, 130, 90, 0.32);
}

.vote-summary-card.other {
  border-color: rgba(113, 129, 255, 0.32);
}

.vote-summary-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-summary-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vote-summary-card li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vote-summary-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.vote-summary-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.vote-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.answer-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
  margin-top: 5px;
}

.answer-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.answer-row.is-winner:not(.is-approved):not(.is-rejected):not(.is-choice):not(.is-neutral) strong {
  color: var(--forest-2);
}

.answer-row.is-winner:not(.is-approved):not(.is-rejected):not(.is-choice):not(.is-neutral) .answer-bar span {
  background: var(--forest-2);
}

.answer-row.is-approved strong {
  color: var(--green);
}

.answer-row.is-approved .answer-bar span {
  background: var(--green);
}

.answer-row.is-rejected strong {
  color: var(--red);
}

.answer-row.is-rejected .answer-bar span {
  background: var(--red);
}

.answer-row.is-choice-1 {
  --answer-color: var(--forest-2);
}

.answer-row.is-choice-2 {
  --answer-color: var(--saddle, #9b5738);
}

.answer-row.is-choice-3 {
  --answer-color: var(--pos-wr);
}

.answer-row.is-choice-4 {
  --answer-color: var(--pos-rb);
}

.answer-row.is-choice-5 {
  --answer-color: var(--pos-te);
}

.answer-row.is-choice-6 {
  --answer-color: var(--pos-other);
}

.answer-row.is-choice strong {
  color: var(--answer-color);
}

.answer-row.is-choice .answer-bar span {
  background: var(--answer-color);
}

.answer-row.is-neutral strong {
  color: var(--muted);
}

.answer-row.is-neutral .answer-bar span {
  background: var(--pos-other);
}

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

.award-grid .tile {
  display: grid;
  gap: 8px;
}

.award-grid strong {
  font-size: 19px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  padding: 24px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(18, 26, 36, 0.72);
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

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

  /* The sidebar becomes a sticky top bar: compact brand row + a horizontally
     scrollable strip of nav pills, so content starts right below it. */
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    height: auto;
    gap: 10px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-toggle {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-block h1 {
    font-size: 15px;
  }

  .brand-block p {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 4px;
    margin: 0 -14px;
    padding: 0 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 11px;
    font-size: 14px;
    white-space: nowrap;
  }

  .source-note {
    display: none;
  }

  .content-area {
    padding: 22px;
  }

  .topbar,
  .dashboard-grid,
  .records-grid,
  .records-list.compact,
  .two-col,
  .trade-sides,
  .modal-trade-sides,
  .team-hero-main,
  .performance-grid,
  .pick-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-self: start;
    justify-content: flex-start;
  }

  .topbar .identity-chip {
    justify-self: start;
  }

  .team-grid,
  .award-grid,
  .vote-summary-grid,
  .team-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-stat {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .team-stat:nth-child(odd) {
    border-left: 0;
  }

  .team-stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .kpi-grid,
  .facts-grid,
  .facts-insight-grid,
  .survivor-grid-featured,
  .trade-story-grid.primary,
  .trade-story-grid.compact,
  .dash-hero-grid,
  .title-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .content-area {
    padding: 18px 14px 34px;
  }

  .ownership-optional-grid,
  .ownership-choice-actions {
    grid-template-columns: 1fr;
  }

  .ownership-choice-button {
    min-height: auto;
  }

  .kpi-grid,
  .dash-hero-grid,
  .facts-kpi-grid,
  .facts-grid,
  .facts-insight-grid,
  .facts-highlight-grid,
  .facts-archetype-grid,
  .facts-highlight-grid-two,
  .survivor-grid-featured,
  .trade-story-grid.primary,
  .trade-story-grid.compact,
  .team-grid,
  .award-grid,
  .vote-summary-grid,
  .team-stat-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .team-identity {
    align-items: flex-start;
  }

  .team-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .team-hero-main h3 {
    font-size: 28px;
  }

  .team-stat,
  .team-stat:nth-child(odd),
  .team-stat:nth-child(-n + 2) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .team-stat:first-child {
    border-top: 0;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    width: 100%;
  }

  .leader-row,
  .pick-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .dna-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "manager"
      "bar"
      "meta";
    gap: 6px;
  }

  .dna-meta {
    text-align: left;
  }

  .facts-editorial-hero {
    padding: 18px;
  }

  .facts-insight-card {
    min-height: 0;
  }

  .facts-chapter {
    margin-top: 30px;
  }

  .facts-chapter-heading h3 {
    font-size: 24px;
  }

  .facts-deep-dive > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .facts-deep-dive > summary small {
    width: calc(100% - 28px);
    margin-left: 0;
    text-align: left;
  }
}

/* ------------------------------------------------------------------ */
/* Trade trees & chain ledger                                          */
/* ------------------------------------------------------------------ */

.modal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 8px;
  background: rgba(16, 24, 33, 0.62);
}

.trade-detail-modal .modal-tabs {
  min-height: 48px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.modal-tab {
  min-height: 32px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(19, 32, 45, 0.72);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.modal-tab:hover,
.modal-tab:focus-visible {
  color: var(--forest-2);
  outline: none;
}

.modal-tab.is-active {
  background: rgba(0, 206, 184, 0.14);
  border-color: rgba(0, 206, 184, 0.55);
  color: var(--ink);
}

.trade-detail-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  border-top: 0;
  overscroll-behavior: contain;
}

.trade-tree-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trade-tree-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-card-number {
  gap: 6px;
}

.tree-manager-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tree-manager-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tree-manager-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tree-manager-pill:hover,
.tree-manager-pill:focus-visible {
  color: var(--forest-2);
  border-color: var(--forest-2);
  outline: none;
}

.tree-manager-pill.is-active {
  border-color: var(--forest);
  color: var(--forest-2);
  background: rgba(0, 206, 184, 0.1);
}

.chain-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101821;
  padding: 14px;
}

.ledger-col h5 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.ledger-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.ledger-col li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px dashed rgba(52, 70, 87, 0.55);
  padding-bottom: 7px;
}

.ledger-col li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ledger-asset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ledger-arrow {
  align-self: center;
  text-align: center;
  color: var(--forest);
  font-size: 20px;
  font-weight: 900;
}

.ledger-note {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.chain-summary {
  margin: 10px 2px 18px;
  font-size: 13px;
}

.chain-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.chain-status.is-held {
  color: #06231f;
  background: var(--forest);
}

.chain-status.is-pending {
  color: #8ff7ec;
  border-color: rgba(143, 247, 236, 0.42);
  background: rgba(0, 206, 184, 0.08);
}

.chain-status.is-exited {
  color: #c3ccd6;
  background: rgba(141, 156, 168, 0.16);
  border-color: rgba(141, 156, 168, 0.35);
}

.chain-status.is-neutral {
  color: var(--muted);
  border-color: var(--line-strong);
}

.chain-tree {
  margin-top: 6px;
}

.chain-tree-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 6px;
}

.chain-root-card {
  display: block;
  border-color: var(--line-strong);
}

.chain-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
}

.chain-list-root {
  padding-left: 26px;
  margin-top: 8px;
}

.chain-node {
  position: relative;
  padding: 10px 0 0 18px;
}

.chain-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(52, 70, 87, 0.85);
}

.chain-node:last-child::before {
  bottom: auto;
  height: 30px;
}

.chain-node::after {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 16px;
  height: 2px;
  background: rgba(52, 70, 87, 0.85);
}

.chain-node-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 100%;
}

.chain-asset-card {
  font-size: 13.5px;
  font-weight: 700;
}

.chain-asset-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chain-asset-label.asset-pick {
  font-variant-numeric: tabular-nums;
}

.chain-asset-label.asset-pick.is-resolved {
  color: #00b39f;
  font-weight: 850;
}

.chain-asset-label.asset-pick.is-pending {
  color: var(--pending-pick-text);
}

.chain-trade-card {
  display: block;
  background: #101821;
  border-color: var(--line-strong);
}

.chain-trade-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.chain-sent-line {
  font-size: 12px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.chain-merge-card {
  border-style: dashed;
  color: var(--muted);
  font-size: 12.5px;
}

.chain-footnote {
  font-size: 12px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .chain-ledger {
    grid-template-columns: 1fr;
  }

  .ledger-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .chain-list,
  .chain-list-root {
    padding-left: 12px;
  }
}

.chain-tree-tools {
  display: inline-flex;
  gap: 6px;
}

.chain-tool-button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}

.chain-tool-button:hover,
.chain-tool-button:focus-visible {
  color: var(--forest-2);
  border-color: var(--forest-2);
  outline: none;
}

.chain-asset-card.is-toggle {
  cursor: pointer;
}

.chain-asset-card.is-toggle:hover,
.chain-asset-card.is-toggle:focus-visible {
  border-color: var(--forest-2);
  outline: none;
}

.chain-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  color: var(--forest);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: transform 140ms ease;
}

.chain-branch:not(.is-collapsed) > .chain-node-card .chain-caret {
  transform: rotate(90deg);
}

.chain-branch.is-collapsed > .chain-list {
  display: none;
}

.trade-share-shell {
  margin-bottom: 20px;
}

.trade-share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trade-share-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.trade-share-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.trade-share-button {
  font-size: 12px;
  white-space: nowrap;
}

.trade-share-receipt {
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    radial-gradient(circle at 7% 0%, rgba(0, 206, 184, 0.18), transparent 44%),
    #0b1118;
  box-shadow: inset 0 3px 0 rgba(54, 234, 215, 0.72);
}

.trade-receipt-masthead,
.trade-receipt-title-row,
.trade-receipt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trade-receipt-masthead {
  margin-bottom: 18px;
}

.trade-receipt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trade-receipt-brand > b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--forest);
  color: #06231f;
  font-size: 14px;
  font-weight: 950;
}

.trade-receipt-brand > span {
  display: grid;
  min-width: 0;
}

.trade-receipt-brand strong {
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trade-receipt-brand small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-receipt-number {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trade-receipt-title-row {
  align-items: flex-end;
  margin-bottom: 16px;
}

.trade-receipt-title-row h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 950;
  line-height: 1;
}

.trade-receipt-title-row h4 span {
  color: var(--forest-2);
  font-size: 0.62em;
  font-weight: 850;
}

.trade-receipt-title-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.trade-receipt-score {
  display: grid;
  flex: 0 0 auto;
  color: var(--forest-2);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.trade-receipt-score span {
  color: var(--muted);
  font-size: 0.72em;
}

.trade-receipt-score small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.trade-share-receipt .chain-ledger {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 24, 33, 0.9);
}

.trade-receipt-footer {
  align-items: baseline;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}

.trade-receipt-footer strong {
  flex: 0 0 auto;
  color: var(--forest-2);
  font-size: 11px;
}

@media (max-width: 720px) {
  #tradeModal {
    place-items: stretch;
    padding: 0;
  }

  #tradeModal .trade-detail-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  #tradeModal .modal-head {
    padding: 10px 14px;
  }

  #tradeModal .modal-head .eyebrow {
    display: none;
  }

  #tradeModal .modal-head h3 {
    margin: 0 0 2px;
    font-size: 17px;
  }

  #tradeModal .modal-head p {
    font-size: 11px;
  }

  #tradeModal .trade-detail-modal .modal-tabs {
    min-height: 42px;
    padding: 7px 14px;
  }

  #tradeModal .modal-body {
    padding: 10px 12px 24px;
  }

  .tree-manager-row {
    margin-bottom: 10px;
  }

  .trade-share-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .trade-share-buttons {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    width: 100%;
  }

  .trade-share-button {
    min-width: 0;
  }

  .trade-share-receipt {
    padding: 13px;
    border-radius: 6px;
  }

  .trade-receipt-masthead {
    margin-bottom: 8px;
  }

  .trade-receipt-brand > b {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .trade-receipt-brand strong,
  .trade-receipt-brand small,
  .trade-receipt-number {
    font-size: 8px;
  }

  .trade-receipt-title-row {
    margin-bottom: 8px;
  }

  .trade-receipt-title-row h4 {
    font-size: clamp(16px, 4.7vw, 19px);
  }

  .trade-receipt-title-row h4 span {
    display: inline;
    margin: 0 0 0 3px;
    font-size: 0.78em;
  }

  .trade-receipt-title-row p {
    margin-top: 4px;
    font-size: 8px;
  }

  .trade-receipt-score {
    font-size: 17px;
  }

  .trade-receipt-score small {
    margin-top: 3px;
    font-size: 7px;
  }

  .trade-share-receipt .chain-ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .trade-share-receipt .ledger-arrow {
    align-self: center;
    justify-self: center;
    transform: rotate(90deg);
    font-size: 18px;
  }

  .trade-share-receipt .ledger-col h5 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.25;
  }

  .trade-share-receipt .ledger-col ul {
    gap: 6px;
  }

  .trade-share-receipt .ledger-col li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
    font-size: 12px;
    line-height: 1.18;
  }

  .trade-share-receipt .ledger-asset {
    gap: 6px;
    font-weight: 850;
  }

  .trade-share-receipt .asset-button,
  .trade-share-receipt .asset-label,
  .trade-share-receipt .asset-button.asset-pick.is-pending,
  .trade-share-receipt .asset-label.asset-pick.is-pending {
    font-weight: 850;
  }

  .trade-share-receipt .position-marker {
    flex-basis: 7px;
    width: 7px;
    min-width: 7px;
    height: 22px;
  }

  .trade-share-receipt .chain-status {
    min-height: 16px;
    padding: 1px 5px;
    font-size: 8px;
  }

  .trade-share-receipt .ledger-note {
    font-size: 8px;
    white-space: normal;
  }

  .trade-receipt-footer {
    gap: 10px;
    font-size: 9px;
    line-height: 1.3;
  }

  .trade-receipt-footer strong {
    font-size: 9px;
  }
}

.vote-builder-result {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list code {
  color: var(--forest-2);
}

.alert.success {
  border-color: rgba(0, 206, 184, 0.55);
  background: rgba(0, 206, 184, 0.1);
}

.alert.info {
  border-color: rgba(124, 140, 255, 0.5);
  background: rgba(124, 140, 255, 0.09);
}

.ballot-hero h3 {
  margin: 4px 0 6px;
  font-size: 30px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.owner-sign-in-card h3 {
  margin-top: 4px;
}

.owner-email {
  display: inline-flex;
  margin: 8px 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 206, 184, 0.42);
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.08);
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 800;
}

.auth-callback-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-callback-card {
  width: min(560px, 100%);
}

.auth-callback-card h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.account-chip:hover,
.account-chip:focus-visible,
.account-chip.is-signed-in {
  border-color: var(--forest-2);
  outline: none;
}

.account-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.account-chip.is-signed-in .account-chip-dot {
  background: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(0, 206, 184, 0.12);
}

.account-menu-backdrop {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 78px 28px 28px;
}

.account-menu {
  display: grid;
  width: min(420px, 100%);
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

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

.account-menu-head h3 {
  margin: 4px 0 0;
}

.account-menu > button:not(.icon-button) {
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.account-menu > button:not(.icon-button):hover,
.account-menu > button:not(.icon-button):focus-visible {
  color: var(--forest-2);
  outline: none;
}

.account-inline {
  padding-top: 4px;
}

.time-capsule-hero h3,
.rules-hero h3,
.settings-hero h3 {
  max-width: 900px;
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

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

.time-capsule-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0, 206, 184, 0.08), rgba(124, 140, 255, 0.04));
}

.time-capsule-card.reality-check {
  background: linear-gradient(160deg, rgba(255, 190, 92, 0.1), rgba(124, 140, 255, 0.04));
}

.time-capsule-card h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.time-capsule-card-action {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.time-capsule-card-actions {
  display: grid;
  width: 100%;
  gap: 8px;
}

.time-capsule-card-actions .primary-button,
.time-capsule-card-actions .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.time-capsule-owner-state {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
}

.time-capsule-claim-link {
  padding: 0;
  color: var(--forest-2);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.time-capsule-claim-link:hover,
.time-capsule-claim-link:focus-visible {
  color: var(--saddle, #a65f3d);
  outline: none;
}

.time-capsule-owner-state #claimYearbookResult {
  flex-basis: 100%;
}

.feature-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 206, 184, 0.4);
  border-radius: 999px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-badge.premium-candidate {
  border-color: rgba(255, 190, 92, 0.46);
  color: #ffd081;
}

.owner-manage-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 206, 184, 0.35);
  border-radius: 14px;
  background: rgba(0, 206, 184, 0.06);
}

.section-builder {
  margin-top: 18px;
}

.section-dashboard {
  margin-top: 18px;
}

.operations-panel {
  margin-top: 18px;
}

.operations-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.operations-metrics article {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.operations-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.operations-metrics strong {
  font-size: 25px;
}

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

.operations-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.operations-card h4 {
  margin: 0 0 13px;
  font-size: 17px;
}

.participation-list {
  display: grid;
  gap: 11px;
}

.participation-row {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.participation-row:first-child {
  padding-top: 0;
}

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

.participation-row > div:first-child {
  display: grid;
  gap: 3px;
}

.participation-row > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.participation-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.participation-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-2), var(--gold));
}

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

.response-roster-group {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.response-roster-group.is-submitted {
  border-color: var(--you-border);
}

.response-roster-group.is-pending {
  border-color: var(--line-strong);
}

.response-roster-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.response-roster-heading strong {
  color: var(--ink);
  font-size: 12px;
}

.response-follow-up-copy {
  flex: 0 0 auto;
  font-size: 11px;
}

.response-manager-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.response-manager-list span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.response-manager-empty {
  color: var(--muted);
  font-size: 11px;
}

.section-response-follow-up {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.section-dashboard-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.section-create-shortcuts {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
}

.section-create-shortcuts > div:first-child {
  display: grid;
  gap: 4px;
}

.section-create-shortcuts > div:first-child strong {
  color: var(--ink);
  font-size: 16px;
}

.section-create-shortcuts > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.section-create-shortcut-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-dashboard-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.section-dashboard-summary,
.ballot-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-dashboard-summary h4 {
  margin: 5px 0 6px;
  font-size: 19px;
}

.section-dashboard-actions {
  flex-wrap: wrap;
}

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

.section-submission-audit summary {
  width: fit-content;
  cursor: pointer;
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 900;
}

.section-submission-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.section-submission-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.section-submission-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.section-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-status-open {
  border-color: rgba(0, 206, 184, 0.48);
  color: var(--forest-2);
}

.section-status-published {
  border-color: rgba(255, 190, 92, 0.48);
  color: var(--gold);
}

.section-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-edit-form[hidden] {
  display: none;
}

.question-editor-help {
  margin: 4px 0 12px;
}

.question-editor-list {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.question-editor-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 100px auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.question-editor-row .question-remove {
  margin-bottom: 2px;
}

.ballot-form-band {
  border-color: rgba(0, 206, 184, 0.28);
}

.ballot-question {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.ballot-question > span,
.ballot-question legend {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.ballot-question legend {
  padding: 0 5px;
}

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

.ballot-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.ballot-choice:has(input:checked) {
  border-color: rgba(0, 206, 184, 0.55);
  background: rgba(0, 206, 184, 0.08);
}

.ballot-choice-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.ballot-choice-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ballot-choice-copy small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.field-hint {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.published-answer-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.published-answer-list blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--forest-2);
  background: rgba(0, 206, 184, 0.05);
  color: var(--text);
  line-height: 1.5;
}

/* Preseason Predictions */
.prediction-builder {
  overflow: hidden;
  border: 1px solid #d8c9a8;
  border-radius: 18px;
  background: #f3ead8;
  color: #172923;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.prediction-builder-state,
.prediction-dashboard-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.prediction-builder-state {
  padding: 13px 20px;
  border-bottom: 1px solid #c8d6bc;
  background: #dfe9d5;
  color: #27483d;
}

.prediction-builder-state strong,
.prediction-dashboard-state strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prediction-builder-state span,
.prediction-dashboard-state span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.prediction-builder-heading {
  align-items: flex-start;
  margin: 0;
  padding: 24px 24px 18px;
}

.prediction-builder-heading h3 {
  margin-top: 5px;
  color: #172923;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.025em;
}

.prediction-builder-heading p {
  max-width: 680px;
  color: #53645d;
}

.prediction-builder .eyebrow {
  color: #396759;
}

.prediction-pack-summary {
  padding: 7px 10px;
  border: 1px solid #cdbf9f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #53645d;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.prediction-setup-form {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.prediction-builder .field {
  color: #53645d;
}

.prediction-builder input,
.prediction-builder select,
.prediction-builder textarea {
  border-color: #cdbf9f;
  background: rgba(255, 255, 255, 0.78);
  color: #172923;
}

.prediction-player-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #bed2c5;
  border-radius: 10px;
  background: #e9f1e7;
  color: #31574a;
  font-size: 12px;
}

.prediction-player-ready strong {
  flex: 0 0 auto;
  font-weight: 900;
}

.prediction-player-ready.is-warning {
  border-color: #ddbc80;
  background: #f7e6c5;
  color: #704918;
}

.prediction-pack-groups {
  display: grid;
  gap: 18px;
}

.prediction-pack-group {
  min-width: 0;
}

.prediction-pack-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.prediction-pack-heading h4 {
  max-width: 690px;
  margin: 4px 0 0;
  color: #9b5738;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.prediction-pack-heading .eyebrow {
  color: #315f51;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.prediction-pack-heading > span {
  flex: 0 0 auto;
  color: #68766f;
  font-size: 11px;
  font-weight: 800;
}

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

.prediction-pack-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d9cdb4;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.prediction-pack-card:hover {
  border-color: #77998c;
  transform: translateY(-1px);
}

.prediction-pack-card:has(input:checked) {
  border-color: #6f998a;
  background: #fffdf7;
}

.prediction-pack-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.prediction-pack-card:has(input:focus-visible) {
  outline: 3px solid rgba(49, 112, 93, 0.24);
  outline-offset: 2px;
}

.prediction-pack-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #b8aa8d;
  border-radius: 6px;
  background: #f6efdf;
  color: transparent;
  font-size: 12px;
  font-weight: 950;
}

.prediction-pack-card:has(input:checked) .prediction-pack-check {
  border-color: #315f51;
  background: #315f51;
  color: #fffdf7;
}

.prediction-pack-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.prediction-pack-copy strong {
  color: #172923;
  font-size: 13px;
  line-height: 1.35;
}

.prediction-pack-copy small {
  color: #69766f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.prediction-pack-badge,
.ballot-question-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(49, 95, 81, 0.28);
  border-radius: 999px;
  background: #e5eee8;
  color: #315f51;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prediction-pack-badge.is-fun,
.ballot-question-badge.is-fun {
  border-color: rgba(154, 105, 35, 0.25);
  background: #f6ead3;
  color: #81581e;
}

.prediction-builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}

.prediction-builder .secondary-button {
  border-color: #bcae91;
  background: rgba(255, 255, 255, 0.6);
  color: #263a33;
}

.prediction-builder .primary-button {
  background: #315f51;
  color: #fffdf7;
}

.prediction-builder .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.prediction-preview-modal {
  width: min(980px, 100%);
  max-height: min(880px, 92vh);
  border: 1px solid #bba888;
  border-radius: 16px;
}

.prediction-preview-modal .modal-head {
  background: #f3ead8;
}

.prediction-preview-modal .modal-head p {
  max-width: 660px;
  margin-bottom: 0;
}

.prediction-preview-modal .modal-body {
  padding: 18px 22px 24px;
  background: #fffdf7;
}

.prediction-preview-form {
  display: grid;
  gap: 20px;
}

.prediction-preview-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.prediction-draft-saved,
.prediction-sent-confirmation,
.prediction-submit-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid #b9cdbf;
  border-radius: 12px;
  background: #e7efe6;
  color: #294b40;
}

.prediction-draft-saved > div:first-child,
.prediction-sent-confirmation,
.prediction-submit-receipt {
  display: grid;
  gap: 3px;
}

.prediction-draft-saved span,
.prediction-sent-confirmation span,
.prediction-submit-receipt span {
  font-size: 12px;
}

.prediction-dashboard-card {
  background: var(--surface-soft);
}

.prediction-dashboard-participation {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.prediction-dashboard-participation > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.prediction-dashboard-participation strong {
  color: var(--ink);
  font-size: 13px;
}

.prediction-dashboard-participation span {
  color: var(--muted);
  font-size: 12px;
}

.prediction-public-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 13px 17px;
  border: 1px solid;
  border-radius: 12px;
}

.prediction-public-state.is-draft {
  border-color: #cbd8c1;
  background: #e4eddb;
  color: #27483d;
}

.prediction-public-state strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prediction-public-state span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.prediction-response-form {
  display: grid;
  gap: 20px;
}

.ballot-progress {
  display: grid;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 206, 184, 0.28);
  border-radius: 12px;
  background: rgba(0, 206, 184, 0.06);
}

.ballot-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ballot-progress strong {
  font-size: 13px;
}

.ballot-progress span {
  color: var(--muted);
  font-size: 11px;
}

.ballot-progress > div:last-child {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-alt);
}

.ballot-progress > div:last-child span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 180ms ease;
}

.ballot-linked-roster {
  display: grid;
  gap: 2px;
  width: min(100%, 420px);
  padding: 13px 15px;
  border: 1px solid rgba(0, 206, 184, 0.3);
  border-radius: 12px;
  background: rgba(0, 206, 184, 0.07);
}

.ballot-linked-roster > span,
.ballot-linked-roster > small {
  color: var(--muted);
  font-size: 11px;
}

.ballot-linked-roster > span {
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ballot-linked-roster > strong {
  color: var(--ink);
  font-size: 16px;
}

.ballot-question-group {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.ballot-question-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 16px;
  align-items: end;
  padding-bottom: 4px;
}

.ballot-question-group-heading .eyebrow,
.ballot-question-group-heading h3 {
  grid-column: 1;
}

.ballot-question-group-heading .eyebrow {
  color: #9b5738;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.ballot-question-group-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.ballot-question-group-heading > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ballot-question {
  box-shadow: none;
}

.ballot-question > span,
.ballot-question legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--ink);
}

.ballot-question .muted {
  margin: 4px 0 2px;
  font-size: 11px;
  font-weight: 550;
}

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

.ballot-choice input {
  width: auto;
  accent-color: var(--forest);
}

.player-search-control {
  position: relative;
  margin-top: 7px;
}

.player-search-control > input[type="search"] {
  margin: 0;
}

.player-search-results {
  display: grid;
  max-height: 220px;
  margin-top: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(12, 21, 17, 0.12);
}

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

.player-search-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.player-search-results button:last-child {
  border-bottom: 0;
}

.player-search-results button:hover,
.player-search-results button:focus-visible {
  outline: 0;
  background: var(--surface-alt);
}

.player-search-results button strong {
  font-size: 12px;
}

.player-search-results button span,
.player-search-results p {
  color: var(--muted);
  font-size: 11px;
}

.player-search-results p {
  margin: 0;
  padding: 12px;
}

.ballot-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.ballot-submit-row .primary-button {
  min-width: 240px;
}

.prediction-submit-receipt {
  border-color: rgba(0, 206, 184, 0.32);
  background: rgba(0, 206, 184, 0.08);
  color: var(--ink);
}

.prediction-results-group {
  margin-top: 22px;
}

.prediction-results-group > .eyebrow {
  margin-bottom: 9px;
}

.prediction-actual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 191, 77, 0.3);
  border-radius: 9px;
  background: rgba(241, 191, 77, 0.08);
}

.prediction-actual span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-scoreboard {
  margin: 16px 0 26px;
  padding: 18px;
  border: 1px solid rgba(241, 191, 77, 0.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(241, 191, 77, 0.1), rgba(0, 206, 184, 0.05));
}

.prediction-scoreboard-list {
  display: grid;
  gap: 7px;
}

.prediction-scoreboard-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.prediction-scoreboard-list > div > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(241, 191, 77, 0.14);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.prediction-scoreboard-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.published-answer-list blockquote footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.decision-example {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border-left: 3px solid var(--forest-2);
  background: rgba(0, 206, 184, 0.05);
}

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

.feature-access-grid {
  display: grid;
  gap: 8px;
}

.feature-access-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.feature-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.12);
  color: var(--forest-2);
  font-size: 19px;
  font-weight: 900;
}

.feature-upgrade {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature-unchecked {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.premium-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-leagues-section {
  margin-top: 18px;
}

.onboarding-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(0, 206, 184, 0.38);
  border-radius: 999px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
}

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

.onboarding-step {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.onboarding-step.is-complete {
  border-color: rgba(0, 206, 184, 0.32);
}

.onboarding-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.onboarding-step.is-complete .onboarding-step-number {
  border-color: rgba(0, 206, 184, 0.44);
  background: rgba(0, 206, 184, 0.1);
  color: var(--forest-2);
}

.onboarding-step h4,
.owned-yearbook-card h4 {
  margin: 2px 0 5px;
  font-size: 17px;
}

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

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

.owned-yearbook-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.owned-yearbook-card.is-current {
  border-color: rgba(0, 206, 184, 0.45);
}

.ballot-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-sleeper-form {
  margin-bottom: 16px;
}

.account-picker-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-field {
  min-width: max-content;
}

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

.account-league-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.account-league-row.is-current {
  border-color: rgba(0, 206, 184, 0.45);
}

.account-league-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-league-copy strong,
.account-league-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-league-copy span {
  color: var(--muted);
  font-size: 13px;
}

/* Publishable Season Recap */
.edition-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.edition-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(0, 206, 184, 0.32);
  border-radius: 24px;
  background:
    linear-gradient(115deg, rgba(0, 206, 184, 0.18), transparent 44%),
    radial-gradient(circle at 82% 18%, rgba(241, 191, 77, 0.2), transparent 24rem),
    linear-gradient(155deg, #101b25, #080d13 68%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.edition-cover::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 78%);
  pointer-events: none;
}

.edition-cover-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition-cover-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 760px;
  min-width: 0;
  padding: 86px 34px 42px;
}

.edition-kicker,
.edition-chapter-heading p,
.edition-stat-label {
  margin: 0;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition-cover-copy h3 {
  max-width: 720px;
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.edition-deck {
  max-width: 690px;
  margin: 0;
  color: #c2cdd4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.edition-cover-actions {
  margin-top: 28px;
}

.edition-champion-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: center;
  justify-self: center;
  min-width: 220px;
  align-items: center;
  flex-direction: column;
  padding: 30px 24px;
  border: 1px solid rgba(241, 191, 77, 0.38);
  border-radius: 999px 999px 28px 28px;
  background: rgba(8, 13, 19, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  text-align: center;
}

.edition-champion-lockup .team-avatar.large {
  width: 88px;
  height: 88px;
  font-size: 22px;
  border-color: rgba(241, 191, 77, 0.5);
}

.edition-crown {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 28px;
}

.edition-champion-lockup p {
  margin: 16px 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-champion-lockup strong {
  max-width: 190px;
  font-size: 22px;
}

.edition-champion-lockup > span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.edition-season-switcher,
.edition-chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 19, 27, 0.82);
}

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

.edition-hook-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.edition-hook-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-hook-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.edition-hook-card p {
  margin: 18px 0 3px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.edition-hook-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.edition-season-switcher > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.edition-season-switcher > div,
.edition-chapter-nav {
  flex-wrap: wrap;
}

.edition-chapter-nav {
  justify-content: center;
  position: sticky;
  top: 10px;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.edition-chapter-nav button {
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 850;
}

.edition-chapter-nav button:hover,
.edition-chapter-nav button:focus-visible {
  color: var(--forest-2);
  outline: none;
}

.edition-chapter {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--surface);
}

.edition-chapter-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.edition-chapter-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(0, 206, 184, 0.3);
  border-radius: 999px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 900;
}

.edition-chapter-heading h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.edition-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 28px;
}

.edition-podium-card {
  display: flex;
  min-height: 175px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 8px 8px;
  background: var(--surface-alt);
  text-align: center;
}

.edition-podium-card.edition-place-1 {
  min-height: 224px;
  border-color: rgba(241, 191, 77, 0.46);
  background: linear-gradient(180deg, rgba(241, 191, 77, 0.14), var(--surface-alt));
}

.edition-podium-card .team-avatar.large {
  width: 62px;
  height: 62px;
}

.edition-podium-place {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.edition-stat-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.54);
}

.edition-stat-manager,
.edition-draft-player {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.edition-stat-manager strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-stat-value {
  margin: 24px 0 2px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.edition-stat-card > span,
.edition-draft-lead > span,
.edition-empty-chapter span,
.edition-movement-card > span,
.edition-draft-class-leader > div > span,
.edition-stake-card > span {
  color: var(--muted);
  font-size: 12px;
}

.edition-subchapter-heading {
  margin-top: 28px;
}

.edition-subchapter-heading h4 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

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

.edition-movement-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.46);
}

.edition-movement-card.is-fall {
  border-left-color: var(--red);
}

.edition-movement-value {
  margin: 22px 0 3px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.edition-build-blueprint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(241, 191, 77, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 191, 77, 0.1), rgba(8, 13, 19, 0.48));
}

.edition-build-story {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.edition-build-story h4 {
  margin: 5px 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.15;
}

.edition-build-story > div > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.edition-build-mix {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
}

.edition-build-mix > span {
  display: grid;
  gap: 2px;
  min-width: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(8, 13, 19, 0.42);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.edition-build-mix strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.edition-pillar-heading {
  margin-top: 30px;
}

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

.edition-pillar-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.46);
}

.edition-pillar-card.is-draft {
  border-top-color: var(--forest-2);
}

.edition-pillar-card.is-trade {
  border-top-color: var(--gold);
}

.edition-pillar-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.edition-pillar-player .asset-button {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-pillar-card > p {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.edition-pillar-card > p span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.edition-origin-badge {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-pillar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.edition-role-badge {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-pillar-card.is-draft .edition-origin-badge {
  color: var(--forest-2);
}

.edition-pillar-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.edition-trade-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 206, 184, 0.28);
  border-radius: 18px;
  background: rgba(0, 206, 184, 0.055);
}

.edition-trade-feature h4 {
  margin: 8px 0;
  font-size: 28px;
}

.edition-trade-feature p {
  color: var(--muted);
}

.edition-trade-method {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.edition-trade-sides {
  display: grid;
  gap: 10px;
}

.edition-trade-sides > div {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 13, 19, 0.48);
}

.edition-trade-side-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edition-trade-side-head span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
}

.edition-trade-side-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-trade-side-head strong {
  color: var(--ink);
  font-size: 14px;
}

.edition-trade-assets {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.edition-trade-assets li {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
}

.edition-trade-assets .asset-button {
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-market-notes,
.edition-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.edition-market-notes article,
.edition-number-card,
.edition-draft-lead {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.46);
}

.edition-market-notes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-market-notes strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.edition-market-notes p {
  margin: 5px 0 0;
  color: var(--forest-2);
}

.edition-draft-grid {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(130px, 0.6fr));
}

.edition-draft-class-leader {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-bottom: 12px;
  padding: 24px;
  border: 1px solid rgba(241, 191, 77, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 191, 77, 0.1), rgba(8, 13, 19, 0.48));
}

.edition-draft-class-leader .team-avatar.large {
  width: 54px;
  height: 54px;
}

.edition-draft-class-score {
  margin: 22px 0 2px;
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.edition-draft-class-leader > ul {
  display: grid;
  align-content: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-draft-class-leader li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 13, 19, 0.42);
}

.edition-draft-class-leader li > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edition-draft-class-leader li small {
  color: var(--muted);
}

.edition-draft-lead {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.edition-draft-player strong {
  font-size: 22px;
}

.edition-number-card {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
}

.edition-number-card strong {
  color: var(--forest-2);
  font-size: 34px;
  line-height: 1;
}

.edition-number-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.edition-empty-chapter {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.edition-next {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  padding: 44px;
  border: 1px solid rgba(241, 191, 77, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(241, 191, 77, 0.16), transparent 25rem),
    linear-gradient(145deg, #121a24, #080d13);
  text-align: center;
}

.edition-next h3 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em;
}

.edition-next > p:not(.edition-kicker) {
  max-width: 650px;
  margin: 0 0 24px;
  color: #b6c2ca;
  font-size: 17px;
  line-height: 1.55;
}

.edition-stakes-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 28px;
  text-align: left;
}

.edition-stake-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.56);
}

.edition-stake-card h4 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.edition-made-with {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 920px) {
  .draft-analyzer-highlights,
  .draft-resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-score-explainer {
    grid-template-columns: 1fr;
  }

  .time-capsule-grid,
  .settings-grid,
  .owned-yearbook-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

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

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

  .owner-manage-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-league-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-league-row .secondary-button {
    grid-column: 1 / -1;
  }

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

  .question-editor-row {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.5fr) 90px auto;
  }

  .edition-cover {
    grid-template-columns: 1fr;
  }

  .edition-champion-lockup {
    justify-self: start;
    margin: 0 34px 38px;
    border-radius: 22px;
  }

  .edition-stat-grid,
  .edition-draft-grid,
  .edition-hook-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edition-hook-card:first-child {
    grid-column: 1 / -1;
  }

  .edition-draft-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .draft-page-toolbar > [data-go-view] {
    width: 100%;
    margin-left: 0;
  }

  .draft-view-switch {
    width: 100%;
    margin-left: 0;
  }

  .draft-view-switch .tab-button {
    flex: 1;
  }

  .draft-analyzer-highlights,
  .draft-methodology-grid,
  .draft-resume-grid,
  .draft-resume-stories,
  .draft-score-explainer-grid {
    grid-template-columns: 1fr;
  }

  .draft-score-explainer,
  .draft-scope-section {
    padding: 14px;
  }

  .draft-season-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .team-draft-resume .section-heading {
    flex-direction: column;
  }

  .team-draft-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-draft-history-heading > span {
    text-align: left;
  }

  .section-dashboard-summary,
  .ballot-hero-top,
  .section-create-shortcuts {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-create-shortcut-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .section-submission-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .section-submission-row span {
    text-align: left;
  }

  .section-edit-form,
  .question-editor-row,
  .ballot-choice-grid,
  .ranking-grid,
  .response-roster-summary,
  .prediction-pack-list {
    grid-template-columns: 1fr;
  }

  .prediction-builder-state,
  .prediction-dashboard-state,
  .prediction-public-state,
  .prediction-pack-heading,
  .prediction-draft-saved,
  .ballot-progress > div:first-child,
  .prediction-actual {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .prediction-builder-heading {
    gap: 10px;
    padding: 20px 16px 15px;
  }

  .prediction-pack-summary {
    white-space: normal;
  }

  .prediction-setup-form {
    padding: 0 16px 18px;
  }

  .prediction-builder-state {
    padding: 12px 16px;
  }

  .prediction-player-ready {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .prediction-pack-heading {
    align-items: flex-start;
  }

  .prediction-preview-modal-backdrop {
    padding: 8px;
  }

  .prediction-preview-modal {
    max-height: calc(100vh - 16px);
  }

  .prediction-preview-modal .modal-head,
  .prediction-preview-modal .modal-body {
    padding: 16px;
  }

  .prediction-preview-actions,
  .prediction-preview-actions > * {
    width: 100%;
  }

  .prediction-builder-actions,
  .ballot-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .prediction-builder-actions > *,
  .ballot-submit-row .primary-button,
  .prediction-draft-saved .button-row,
  .prediction-draft-saved .button-row > * {
    width: 100%;
  }

  .prediction-scoreboard-list > div {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .prediction-scoreboard-list em {
    grid-column: 2;
  }

  .question-editor-row .question-remove {
    justify-self: end;
  }

  .section-dashboard-actions > *,
  .section-dashboard-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .owned-yearbook-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .owned-yearbook-card .secondary-button {
    grid-column: 1 / -1;
  }

  .ballot-hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .operations-metrics {
    grid-template-columns: 1fr;
  }

  .edition-cover {
    min-height: 0;
    border-radius: 18px;
  }

  .edition-cover-topline {
    position: relative;
    padding: 18px 20px 0;
  }

  .edition-cover-copy {
    padding: 46px 20px 28px;
  }

  .edition-cover-copy h3 {
    font-size: 42px;
  }

  .edition-cover-actions,
  .edition-next .button-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .edition-cover-actions > *,
  .edition-next .button-row > * {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .edition-champion-lockup {
    width: calc(100% - 40px);
    min-width: 0;
    margin: 0 20px 22px;
  }

  .edition-season-switcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .edition-chapter-nav {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .edition-chapter-nav::-webkit-scrollbar {
    display: none;
  }

  .edition-chapter-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .edition-season-switcher > div {
    display: flex;
    flex-wrap: wrap;
  }

  .edition-chapter {
    padding: 22px 16px;
  }

  .edition-podium {
    grid-template-columns: 1fr;
  }

  .edition-podium-card,
  .edition-podium-card.edition-place-1 {
    min-height: 0;
    border-radius: 14px;
  }

  .edition-stat-grid,
  .edition-market-notes,
  .edition-draft-grid,
  .edition-trade-feature,
  .edition-hook-strip,
  .edition-movement-grid,
  .edition-build-blueprint,
  .edition-draft-class-leader,
  .edition-stakes-grid {
    grid-template-columns: 1fr;
  }

  .edition-build-mix {
    width: 100%;
  }

  .edition-hook-card:first-child {
    grid-column: auto;
  }

  .edition-draft-lead {
    grid-column: auto;
  }

  .edition-next {
    min-height: 0;
    padding: 38px 20px;
  }
}

/* Member sign-in nudge ----------------------------------------------------- */

.sign-in-nudge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(760px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(8, 13, 19, 0.26);
}

.sign-in-nudge-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--forest);
  color: #fff;
  font-family: Literata, Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.sign-in-nudge-copy {
  min-width: 0;
}

.sign-in-nudge-copy h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.sign-in-nudge-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sign-in-nudge-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sign-in-nudge-actions .primary-button {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .sign-in-nudge {
    right: 12px;
    bottom: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100vw - 24px);
    padding: 15px;
  }

  .sign-in-nudge-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .sign-in-nudge-actions > * {
    width: 100%;
  }
}

/* Private account analytics ------------------------------------------------ */

.analytics-private-gate {
  max-width: 760px;
  margin-inline: auto;
}

.analytics-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.analytics-hero > div:first-child {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.analytics-hero h3,
.analytics-league-card h4,
.analytics-chart-card h3,
.analytics-manager-panel h3,
.analytics-session-panel h3 {
  margin: 0;
}

.analytics-private-badge {
  width: fit-content;
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px solid var(--you-border);
  border-radius: 999px;
  background: var(--you-surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.analytics-window-picker {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.analytics-window-picker button {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-window-picker button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.analytics-metrics article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.analytics-metrics span,
.analytics-metrics small,
.analytics-league-card span,
.analytics-league-card small {
  color: var(--muted);
}

.analytics-metrics span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.analytics-metrics strong {
  color: var(--ink);
  font-family: Literata, Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.analytics-metrics small,
.analytics-league-card small {
  font-size: 11px;
}

.analytics-league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.analytics-league-grid > .band,
.analytics-chart-grid > .band {
  margin-bottom: 0;
}

.analytics-league-card {
  display: grid;
  gap: 5px;
}

.analytics-league-card > strong {
  margin-top: 7px;
  color: var(--ink);
  font-family: Literata, Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.analytics-league-card > div {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.analytics-chart-card {
  min-width: 0;
}

.analytics-bars {
  display: grid;
  gap: 12px;
}

.analytics-bar-row {
  display: grid;
  gap: 6px;
}

.analytics-bar-row > div:first-child {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.analytics-bar-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar-row > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.analytics-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-2), var(--gold));
}

.analytics-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.analytics-manager-table td {
  vertical-align: middle;
}

.analytics-manager-table td:first-child {
  display: grid;
  gap: 2px;
  min-width: 145px;
}

.analytics-manager-table td:first-child small {
  color: var(--muted);
  font-size: 10px;
}

.analytics-manager-table tr.is-unseen {
  opacity: 0.68;
}

.analytics-status {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.analytics-status.is-active {
  border-color: var(--you-border);
  background: var(--you-surface);
  color: var(--ink);
}

.analytics-status.is-authenticated {
  border-color: rgba(0, 206, 184, 0.48);
  background: rgba(0, 206, 184, 0.12);
  color: var(--forest-2);
}

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

.analytics-session-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.analytics-session-head,
.analytics-session-foot,
.analytics-session-actions {
  display: flex;
  gap: 8px 14px;
  align-items: center;
  flex-wrap: wrap;
}

.analytics-session-head {
  justify-content: space-between;
}

.analytics-session-auth {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.analytics-session-head > div {
  display: grid;
  gap: 2px;
}

.analytics-session-head strong {
  color: var(--ink);
  font-size: 14px;
}

.analytics-session-head span,
.analytics-session-head time,
.analytics-session-foot {
  color: var(--muted);
  font-size: 10px;
}

.analytics-session-card p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.analytics-session-actions span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .analytics-hero {
    flex-direction: column;
  }

  .analytics-toolbar {
    width: 100%;
    justify-content: space-between;
  }

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

@media (max-width: 600px) {
  .analytics-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-window-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .analytics-metrics,
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }

  .analytics-session-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
