/* Fantasy Mock Draft — thin overlays on NFL mock-draft (mds) + schedule CSS */

.fmd-page .pfn-tool-panel {
  max-width: none;
}

.fmd-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.fmd-league-brief {
  margin: 0 0 1rem;
}

/* Board preview — position filters (do not inherit topbar week-strip flex:1 stretch) */
.fmd-page .fmd-pos-strip.sched-week-strip,
.fmd-page .fmd-pos-strip {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 1rem 0.75rem;
  min-height: 0;
  max-height: none;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.fmd-page .fmd-pos-strip .sched-week-pill {
  flex: 0 0 auto;
  align-self: center;
  min-width: 2.75rem;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  padding: 0 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid #ccdcf1;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.05);
  color: #0f2a5a;
  transform: none;
}

.fmd-page .fmd-pos-strip .sched-week-pill:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #fff;
  text-decoration: none;
}

.fmd-page .fmd-pos-strip .sched-week-pill.is-active {
  background: linear-gradient(180deg, #1aa7ff 0%, #0a8fe0 100%);
  border-color: #0a8fe0;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(14, 116, 200, 0.2);
  transform: none;
}

.fmd-page .fmd-pos-strip .sched-week-pill.is-active:hover {
  background: linear-gradient(180deg, #1aa7ff 0%, #0090e0 100%);
  border-color: #0090e0;
  color: #fff;
  transform: translateY(-1px);
}

/* Board preview header polish */
.fmd-page .mds-best-available .mds-panel-head {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1rem 0.85rem;
}

.fmd-page .mds-best-available .mds-panel-head h2 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.fmd-page .mds-best-available .mds-panel-head .mds-hint {
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 36rem;
}

.fmd-page .mds-best-available .mds-search {
  min-width: min(100%, 12rem);
  flex: 1 1 10rem;
  max-width: 16rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border-color: #c9daf0;
  margin-left: auto;
}

.fmd-player-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  flex-wrap: nowrap;
}

.fmd-player-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.fmd-player-name {
  font-weight: 700;
}

.fmd-player-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ff-text-muted, #64748b);
}

.fmd-player-cell .mds-avatar--row,
.fmd-player-cell img.mds-avatar,
.fmd-player-cell .mds-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fmd-mgr-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.fmd-mgr-badge {
  --fmd-mgr: #0b6bcb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fmd-mgr);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.fmd-mgr-badge--sm {
  width: 22px;
  height: 22px;
  font-size: 0.58rem;
}

.fmd-mgr-badge--md {
  width: 34px;
  height: 34px;
  font-size: 0.72rem;
}

.fmd-mgr-badge--xl {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

/* Prospect modal — Heisman profile chip */
.fmd-page .mds-prospect-profile-link {
  margin: 0.85rem 0 0;
  display: flex;
  justify-content: flex-start;
}

.fmd-page .mds-prospect-profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #ccdcf1;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.05);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f2a5a;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.fmd-page .mds-prospect-profile-chip:hover {
  color: #0a5fe0;
  border-color: #93c5fd;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(14, 116, 200, 0.12);
}

html[data-theme="dark"] .fmd-page .mds-prospect-profile-chip {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .fmd-page .mds-prospect-profile-chip:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 14px rgba(14, 116, 200, 0.2);
}

.fmd-clock-identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.fmd-clock-slot {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ff-text-muted, #64748b);
}

.mds-player-draft-name,
.mds-preview-name {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.mds-player-draft-name:hover:not(:disabled),
tr.mds-preview-row:hover .mds-preview-name {
  color: #0b6bcb;
  text-decoration: underline;
}

.mds-player-draft-name:disabled {
  cursor: default;
  opacity: 0.85;
}

tr.mds-preview-row {
  cursor: pointer;
}

.fmd-pos-rank {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ff-text-muted, #64748b);
  font-weight: 600;
}

.fmd-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fmd-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.fmd-manager-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem 0.85rem;
  max-height: 320px;
  overflow: auto;
}

.fmd-manager-btn {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  background: var(--ff-surface-sunken, #f8fafc);
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.fmd-manager-btn.is-active {
  border-color: #3ec6ff;
  background: rgba(62, 198, 255, 0.12);
}

.fmd-manager-btn.is-user {
  font-weight: 700;
}

.fmd-manager-btn.is-on-clock {
  box-shadow: inset 3px 0 0 #3ec6ff;
}

.fmd-manager-copy {
  min-width: 0;
  flex: 1;
}

.fmd-manager-btn span {
  display: block;
}

.fmd-manager-btn em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ff-text-muted, #64748b);
  font-weight: 500;
  margin-top: 0.1rem;
}

.fmd-manager-last {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ff-text, #334155);
}

.fmd-manager-last--empty {
  color: #94a3b8;
  font-weight: 500;
}

.fmd-manager-last .mds-avatar--xs,
.fmd-manager-last .mds-avatar-wrap {
  width: 18px;
  height: 18px;
}

#lastPickFlash {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mds-avatar--xs {
  width: 18px;
  height: 18px;
  font-size: 0.55rem;
}

.fmd-pick-you td {
  background: rgba(62, 198, 255, 0.08);
}

.mds-timer.is-urgent {
  color: #ef4444;
}

.fmd-share-url {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  word-break: break-all;
}

#mdsTradePanel .mds-insights {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.75rem;
}

.mds-need-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.mds-need-bar i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0b1f3a, #3ec6ff);
}

tr.is-on-clock td {
  background: rgba(62, 198, 255, 0.12);
  font-weight: 700;
}

.mds-roster-extra:not([hidden]) {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
}

.mds-roster-extra li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mds-roster-extra em {
  margin-left: auto;
  font-style: normal;
  color: var(--ff-text-muted, #64748b);
  font-size: 0.75rem;
}

/* ─── Hive board (NFL-parity card grid) ─── */

.mds-main-grid.is-hive-mode .mds-tables-row,
.mds-main-grid.is-hive-mode .mds-bottom-row {
  display: none;
}

.mds-main-grid.is-hive-mode #mdsHiveBoard {
  display: block;
}

.mds-main-grid:not(.is-hive-mode) #mdsHiveBoard {
  display: none;
}

.fmd-page .mds-hive-cell--K .mds-hive-accent { background-color: #94a3b8; }
.fmd-page .mds-hive-cell--DST .mds-hive-accent { background-color: #64748b; }
.fmd-page .mds-roster-tile--FLEX .mds-roster-tile-pos,
.fmd-page .mds-roster-tile--SUPERFLEX .mds-roster-tile-pos { color: #0a5fe0; }
.fmd-page .mds-roster-tile--K .mds-roster-tile-pos,
.fmd-page .mds-roster-tile--DST .mds-roster-tile-pos { color: #64748b; }

/* ─── Launch studio: beat NFL two-field setup CSS ─── */

.fmd-page .mds-launch-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  width: 100%;
}

.fmd-page .mds-launch-grid > .mds-hero,
.fmd-page .mds-launch-grid > .mds-setup-board {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.fmd-page .mds-setup-board {
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem 1rem;
  max-width: none;
  grid-template-columns: none;
  grid-template-rows: none;
}

.fmd-page .mds-setup-board .mds-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  max-width: none;
}

.fmd-page .mds-setup-board .mds-field-card {
  max-width: none;
  min-width: 0;
  flex: none;
}

.fmd-page .mds-setup-board .mds-setup-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  width: 100%;
  grid-column: auto;
  grid-row: auto;
  border-top: 1px solid var(--ff-border, #f1f5f9);
  padding: 0.85rem 0 0;
  margin-top: auto;
}

.fmd-page .mds-setup-board .mds-setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.fmd-page .mds-setup-board .mds-btn--lg {
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  justify-content: center;
  text-align: center;
}

.fmd-page .mds-studio:not(.is-live) #startDraftBtn {
  min-width: min(100%, 16rem);
  margin-inline: auto;
}

/* Primary CTA — FantasyHQ blue with light lift */
.fmd-page #startDraftBtn.mds-btn--primary,
.fmd-page #makePickBtn.mds-btn--primary {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1aa7ff 0%, #0a8fe0 100%);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.12), 0 6px 16px rgba(14, 116, 200, 0.22);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.fmd-page #startDraftBtn.mds-btn--primary:hover:not(:disabled),
.fmd-page #makePickBtn.mds-btn--primary:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 31, 58, 0.14), 0 10px 22px rgba(14, 116, 200, 0.28);
  background: linear-gradient(180deg, #1aa7ff 0%, #0a8fe0 100%);
}

.fmd-page #startDraftBtn.mds-btn--primary:active:not(:disabled),
.fmd-page #makePickBtn.mds-btn--primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

.fmd-page .mds-multi-panel {
  margin: 0;
}

.fmd-slot-preview {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mds-blue, #0b6bcb);
  letter-spacing: 0.01em;
}

.fmd-live-dock-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mds-muted, #64748b);
}

.fmd-page .mds-studio:not(.is-live) .fmd-board-title-live,
.fmd-page .mds-studio.is-live .fmd-board-title-launch {
  display: none;
}

.fmd-page .mds-studio:not(.is-live) .fmd-live-only {
  display: none !important;
}

.fmd-page .mds-studio:not(.is-live) .mds-tables-row {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "best";
}

.fmd-page .mds-studio.is-live .mds-hero,
.fmd-page .mds-studio.is-live .fmd-setup-config {
  display: none !important;
}

.fmd-page .mds-studio.is-live .mds-launch-grid {
  display: block;
  margin-bottom: 0.65rem;
  position: sticky;
  top: 3.15rem;
  z-index: 40;
}

.fmd-page .mds-studio.is-live .mds-setup-board {
  padding: 0.65rem 1rem;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.1);
  border: 1px solid var(--ff-border, #dbe3ef);
}

.fmd-page .mds-studio.is-live .mds-setup-footer {
  border-top: none;
  padding: 0;
  margin: 0;
  justify-content: space-between;
}

.fmd-page .mds-studio.is-live .fmd-live-dock-label {
  display: block;
}

.fmd-page .mds-launch-grid .mds-hero .sched-hero-playbook {
  display: none;
}

.fmd-page .mds-launch-grid .mds-hero {
  overflow: hidden;
}

/* Desktop: Schedule-style hero rail + setup board */
@media (min-width: 960px) {
  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid {
    display: grid !important;
    grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
    grid-template-areas: "hero setup";
    align-items: stretch;
    gap: 0.85rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid > .mds-hero {
    grid-area: hero;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid > .mds-setup-board {
    grid-area: setup;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 28.5rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0;
    padding: 1.15rem 1.15rem 0;
    min-height: 28.5rem;
    width: 100%;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-badge {
    margin-bottom: 1rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-copy {
    flex: 0 0 auto;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-kicker {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    font-size: clamp(2.05rem, 2.5vw, 2.7rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-title__schedule {
    background: var(--dash-accent-grad, linear-gradient(100deg, var(--fh-accent, #4da3ff) 10%, color-mix(in srgb, var(--fh-accent, #4da3ff) 55%, #fff) 90%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-sub {
    font-size: 0.82rem;
    max-width: none;
    margin: 0 0 1rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-features {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 0;
    flex: 0 0 auto;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-features li {
    align-items: flex-start;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-features small {
    display: block;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-features b {
    font-size: 0.78rem;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-playbook {
    display: block;
    margin-top: auto;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-playbook-card .prb-playbook__art {
    height: 112px;
  }
}

@media (max-width: 1079px) {
  .fmd-page .mds-setup-board .mds-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fmd-page,
  .fmd-page .pfn-main,
  .fmd-page .pfn-tool-panel,
  .fmd-page .mds-studio {
    overflow-x: clip;
    max-width: 100%;
  }

  .fmd-page .mds-launch-grid .mds-hero .sched-hero-features,
  .fmd-page .mds-launch-grid .mds-hero .sched-hero-playbook {
    display: none !important;
  }

  .fmd-topbar-meta {
    display: none;
  }

  .fmd-page .sched-topbar {
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .fmd-page .sched-topbar-week {
    flex: 0 0 auto;
  }

  .fmd-page .sched-topbar-controls {
    width: auto;
    margin-left: auto;
  }

  .fmd-page .sched-week-nav {
    flex: 1 1 100%;
    min-width: 0;
  }

  .fmd-page .sched-week-strip-wrap,
  .fmd-page .sched-week-strip {
    width: 100%;
    max-width: 100%;
  }

  .fmd-page .sched-week-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
  }

  .fmd-page .sched-week-strip::-webkit-scrollbar {
    display: none;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero {
    padding: 0.85rem 1rem;
    min-height: 0;
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-title {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
  }

  .fmd-page .mds-studio:not(.is-live) .mds-launch-grid .mds-hero .sched-hero-sub {
    font-size: 0.88rem;
    margin: 0;
  }

  /* Setup — readable 2-col on phones, sticky CTA */
  .fmd-page .mds-setup-board {
    padding: 0.95rem 0.95rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    gap: 0.75rem;
  }

  .fmd-page .mds-setup-board .mds-setup-head h2 {
    font-size: 1.2rem;
  }

  .fmd-page .mds-setup-board .mds-setup-head .mds-hint,
  .fmd-page .fmd-slot-preview,
  .fmd-page #fmdBoardSource {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .fmd-page .mds-setup-board .mds-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.65rem;
  }

  .fmd-page .mds-setup-board .mds-field {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .fmd-page .mds-setup-board .mds-select,
  .fmd-page .mds-setup-board .mds-select--grow {
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
  }

  .fmd-page .mds-setup-board .mds-setup-head .mds-hint {
    text-align: left;
    flex-basis: 100%;
  }

  .fmd-page .mds-setup-footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: var(--ff-surface-raised, #fff);
    margin: 0.15rem -0.95rem calc(-0.85rem - env(safe-area-inset-bottom, 0px));
    padding: 0.75rem 0.95rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ff-border, #e8eef5);
    box-shadow: 0 -10px 24px rgba(11, 31, 58, 0.08);
  }

  .fmd-page .mds-studio.is-live .mds-setup-footer {
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: static;
  }

  .fmd-page .mds-setup-board .mds-setup-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .fmd-page .mds-setup-board .mds-setup-actions .mds-btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
  }

  .fmd-page .mds-studio:not(.is-live) #startDraftBtn {
    min-width: 0;
    width: 100%;
  }

  .fmd-page .mds-studio.is-live .mds-launch-grid {
    top: 3rem;
  }

  /* War room briefing */
  .fmd-page .fmd-league-brief {
    margin: 0.75rem 0 1rem;
  }

  .fmd-page .mds-team-brief__head h2 {
    font-size: 1.35rem;
  }

  .fmd-page .mds-team-brief__sub {
    font-size: 0.88rem;
  }

  .fmd-page .mds-team-brief__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .fmd-page .mds-team-brief__card h3 {
    font-size: 0.95rem;
  }

  .fmd-page .fmd-need-chips li {
    min-height: 32px;
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
  }

  .fmd-page .fmd-brief-fit-copy strong {
    font-size: 0.92rem;
  }

  .fmd-page .fmd-how-steps li {
    font-size: 0.9rem;
  }

  /* Live draft chrome */
  .fmd-page .mds-view-bar {
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
  }

  .fmd-page .mds-view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .fmd-page .mds-view-btn {
    min-height: 44px;
    justify-content: center;
    font-size: 0.82rem;
  }

  .fmd-page .mds-status-row {
    grid-template-columns: 1fr;
  }

  .fmd-page .mds-tables-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .fmd-page .mds-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fmd-page .mds-bottom-row {
    grid-template-columns: 1fr;
  }

  .fmd-page .mds-hive-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .fmd-page .mds-hive-legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .fmd-page .mds-hive-legend::-webkit-scrollbar {
    display: none;
  }

  .fmd-page .mds-hive-controls {
    flex-wrap: wrap;
  }

  .fmd-page .mds-roster-summary-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }

  .fmd-page .mds-roster-summary-row::-webkit-scrollbar {
    display: none;
  }

  .fmd-page .mds-best-available .mds-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .fmd-page .mds-best-available .mds-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    flex: 1 1 auto;
  }

  .fmd-page .fmd-pos-strip.sched-week-strip,
  .fmd-page .fmd-pos-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.45rem 0.85rem 0.7rem;
  }

  .fmd-page .fmd-pos-strip::-webkit-scrollbar {
    display: none;
  }

  .fmd-page .fmd-pos-strip .sched-week-pill {
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    min-width: 3rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 720px) {
  .fmd-page .sched-topbar .sched-week-pill,
  .fmd-page .mds-view-btn,
  .fmd-page .mds-field-toggle-btn {
    min-height: 44px;
  }

  .fmd-page .mds-setup-board .mds-setup-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Narrow phones — keep pairs side-by-side when space allows */
@media (min-width: 420px) and (max-width: 720px) {
  .fmd-page .mds-setup-board .mds-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Briefing ─── */

.fmd-need-chips {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fmd-need-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 107, 203, 0.08);
  border: 1px solid rgba(11, 107, 203, 0.18);
  color: var(--mds-ink, #0b1f3a);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fmd-need-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--mds-muted, #64748b);
}

.fmd-brief-fits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fmd-brief-fits img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.fmd-brief-fit-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.05rem;
}

.fmd-brief-fit-copy strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mds-ink, #0b1f3a);
}

.fmd-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.fmd-how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mds-ink, #0b1f3a);
  line-height: 1.35;
}

.fmd-how-steps span {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.fmd-page .mds-studio.is-live .fmd-league-brief {
  display: none;
}

/* ─── Hive + managers dark ─── */

html[data-theme="dark"] .fmd-page .fmd-error {
  color: #fca5a5;
}

html[data-theme="dark"] .fmd-page .fmd-slot-preview {
  color: var(--fh-accent, #4da3ff);
}

html[data-theme="dark"] .fmd-page .fmd-manager-btn {
  background: var(--ff-surface-sunken);
  color: var(--ff-text);
}

html[data-theme="dark"] .fmd-page .fmd-manager-btn.is-active {
  background: rgba(62, 198, 255, 0.14);
}

html[data-theme="dark"] .fmd-page .fmd-manager-last {
  color: var(--ff-text);
}

html[data-theme="dark"] .fmd-page .fmd-need-chips li {
  background: rgba(77, 163, 255, 0.12);
  border-color: rgba(77, 163, 255, 0.28);
  color: var(--ff-heading);
}

html[data-theme="dark"] .fmd-page .fmd-how-steps span {
  background: #163d73;
}

html[data-theme="dark"] .fmd-page .mds-studio.is-live .mds-setup-footer,
html[data-theme="dark"] .fmd-page .mds-setup-footer {
  background: var(--ff-surface-raised);
  border-color: var(--ff-border);
}

html[data-theme="dark"] .fmd-page .fmd-brief-fit-copy strong {
  color: var(--ff-heading);
}

.fmd-page .sched-week-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.fmd-topbar-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mds-muted, #7a90b3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmd-page .sched-week-pill {
  min-height: 36px;
  height: auto;
  padding: 0.35rem 0.7rem;
}

.fmd-page .mds-view-btn {
  min-height: 40px;
}

/* SEO related links + compare CTA — Heisman chips */
.fmd-page .mds-seo-related {
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.fmd-page .mds-seo-related a,
.fmd-page .fmd-seo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ccdcf1;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.05);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f2a5a;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease, filter 0.12s ease;
}

.fmd-page .mds-seo-related a:hover,
.fmd-page .fmd-seo-chip:hover {
  color: #0a5fe0;
  border-color: #93c5fd;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(14, 116, 200, 0.12);
}

.fmd-page .fmd-seo-chip--primary {
  border: 0;
  background: linear-gradient(180deg, #1aa7ff 0%, #0a8fe0 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.12), 0 6px 16px rgba(14, 116, 200, 0.22);
  margin: 0 0.2rem;
  vertical-align: middle;
}

.fmd-page .fmd-seo-chip--primary:hover {
  color: #fff;
  filter: brightness(1.04);
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(11, 31, 58, 0.14), 0 10px 22px rgba(14, 116, 200, 0.28);
}

.fmd-page .mds-seo-compare__note {
  font-size: 0.95rem;
  line-height: 1.55;
}

html[data-theme="dark"] .fmd-page .mds-seo-related a,
html[data-theme="dark"] .fmd-page .fmd-seo-chip:not(.fmd-seo-chip--primary) {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  color: #e2e8f0;
}

html[data-theme="dark"] .fmd-page .mds-seo-related a:hover,
html[data-theme="dark"] .fmd-page .fmd-seo-chip:not(.fmd-seo-chip--primary):hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

@media (max-width: 900px) {
  .fmd-page .mds-seo-related {
    gap: 0.45rem;
  }

  .fmd-page .mds-seo-related a {
    min-height: 40px;
    font-size: 0.84rem;
  }

  .fmd-page .fmd-seo-chip--primary {
    display: inline-flex;
    margin: 0.35rem 0;
  }
}

/* Field View — portrait phone canvas (match /mock-draft) */
@media (max-width: 640px) {
  .fmd-page .mds-main-grid.is-field-mode .mds-roster-card {
    padding-inline: 0.65rem;
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-field-stage-wrap {
    position: relative;
    width: min(100%, calc(72dvh * 1 / 1.75));
    max-width: 100%;
    aspect-ratio: 1 / 1.75;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 14px;
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-field-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 175%;
    height: calc(100% / 1.75);
    min-height: 0;
    max-width: none;
    aspect-ratio: unset;
    margin: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
    --mds-field-slot-rot: -90deg;
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-field-node--empty {
    width: clamp(34px, 8.5vw, 46px);
    font-size: 10px;
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-field-node-face .mds-avatar-wrap,
  .fmd-page .mds-main-grid.is-field-mode .mds-field-node-face .mds-field-node-avatar,
  .fmd-page .mds-main-grid.is-field-mode .mds-field-node-face .mds-avatar--placeholder {
    width: clamp(36px, 9vw, 48px);
    height: clamp(36px, 9vw, 48px);
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-roster-summary-row {
    justify-content: flex-start;
  }

  .fmd-page .mds-main-grid.is-field-mode .mds-field-toolbar {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
}
