:root {
  color-scheme: dark;
  --bg: #0b1017;
  --panel: #121923;
  --panel-soft: #161f2b;
  --panel-raised: #1b2633;
  --panel-hover: #233142;
  --ink: #e8edf4;
  --muted: #9aa8ba;
  --line: #2c394a;
  --accent: #15968d;
  --accent-dark: #68d8ce;
  --accent-soft: #123c39;
  --good-soft: #123425;
  --info-soft: #122c43;
  --warn: #f09a68;
  --warn-soft: #3a241d;
  --danger-soft: #3a1d22;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.toolbar,
.metrics,
.layout {
  display: grid;
  gap: 16px;
}

.toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1rem;
}

.brand p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand p[data-state="live"] {
  color: var(--accent-dark);
}

.brand p[data-state="stale"],
.brand p[data-state="error"] {
  color: var(--warn);
}

.freshness-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #efc5ab;
  border-radius: 8px;
  background: var(--warn-soft);
}

.freshness-banner[hidden] {
  display: none;
}

.freshness-banner > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.freshness-banner strong {
  color: var(--warn);
  font-size: 0.88rem;
}

.freshness-banner span {
  color: #f0ad86;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.freshness-banner button {
  flex: 0 0 auto;
}

.freshness-banner button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.source-freshness {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.source-freshness > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.source-freshness dt {
  color: var(--muted, #687385);
  font-size: 0.78rem;
}

.source-freshness dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.settings,
.sleeper-search {
  display: grid;
  gap: 10px;
  align-items: end;
}

.settings {
  grid-template-columns: 120px minmax(160px, 1fr) minmax(160px, 1fr) minmax(190px, 1fr) 92px 82px 104px;
}

.sleeper-search {
  grid-template-columns: minmax(220px, 1fr) 90px 104px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--panel-soft);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 122, 117, 0.16);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

select:disabled {
  color: #9aa4b2;
}

button {
  height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #20aaa0;
}

.secondary-button {
  height: 30px;
  padding: 0 10px;
  background: var(--panel-raised);
  color: var(--ink);
}

.board-heading-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.rank-explainer {
  position: relative;
  color: var(--muted);
  font-size: 0.76rem;
}

.rank-explainer summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
}

.rank-explainer p {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  width: min(430px, 78vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-raised);
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.5;
}

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

.secondary-button:hover {
  background: var(--panel-hover);
}

.metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.command-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 48px 12px 14px;
}

.overlay-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.overlay-toggle:hover {
  background: var(--panel-raised);
  color: var(--ink);
}

.overlay-restore {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.16);
}

.overlay-restore[hidden] {
  display: none;
}

body.overlay-hidden .command-strip {
  display: none;
}

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

.command-mode-row .secondary-button {
  height: 28px;
  padding: 0 9px;
  font-size: 0.74rem;
}

.command-state,
.command-player {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.command-mode-row > span,
.command-player > span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-mode-row > span[data-state="on-clock"] {
  background: var(--warn-soft);
  color: var(--warn);
}

.command-mode-row > span[data-state="waiting"] {
  background: var(--info-soft);
  color: #8ec5f4;
}

.command-state strong,
.command-player strong {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.command-state em,
.command-player em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.command-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 6px;
}

.command-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 9px;
  white-space: nowrap;
}

.command-actions button span {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.command-actions button.queued {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.command-actions button.queued:hover {
  background: #185049;
}

.command-actions button:disabled {
  cursor: default;
  opacity: 0.45;
}

body.dashboard-busy .command-strip {
  box-shadow: inset 0 -3px 0 rgba(11, 122, 117, 0.24), var(--shadow);
}

body.dashboard-busy .command-strip::after {
  content: "";
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: refresh-sweep 1.1s linear infinite;
}

body.dashboard-busy [data-pick-player] {
  pointer-events: none;
  opacity: 0.45;
}

@keyframes refresh-sweep {
  from {
    transform: translateX(-35%);
  }
  to {
    transform: translateX(35%);
  }
}

.lock-alerts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lock-alerts article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-left: 4px solid #cbd6e2;
  border-radius: 6px;
  background: var(--panel-soft);
}

.lock-alerts article.warn {
  border-left-color: #b45d1d;
  background: var(--warn-soft);
}

.lock-alerts article.danger {
  border-left-color: #ff8780;
  background: var(--danger-soft);
}

.lock-alerts article.good {
  border-left-color: #25834e;
  background: var(--good-soft);
}

.lock-alerts span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lock-alerts strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.assistant-panel,
.scoring-panel,
.strategy-panel,
.projection-blend-panel,
.draft-manager,
.identity-review-panel,
.tier-alert-panel,
.pick-compare-panel {
  margin-top: 16px;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draft-manager-grid,
.board-profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  padding: 14px;
}

.board-profile-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  border-top: 1px solid var(--line);
}

.board-profile-actions {
  align-self: end;
}

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  gap: 10px;
  padding: 14px;
}

.scoring-grid input {
  height: 34px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
}

.strategy-grid label {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.strategy-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strategy-grid b {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--panel-raised);
  color: var(--accent-dark);
  font-size: 0.72rem;
}

.strategy-grid input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.projection-blend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
}

.projection-blend-grid label {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.projection-blend-grid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.projection-blend-grid b {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--panel-raised);
  color: var(--accent-dark);
  font-size: 0.72rem;
}

.projection-blend-grid input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.player-context-editor,
.board-preference-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.player-context-editor label,
.board-preference-editor label {
  display: grid;
  gap: 5px;
}

.player-context-editor label.wide,
.board-preference-editor label.wide {
  grid-column: 1 / -1;
}

.player-context-editor span,
.board-preference-editor span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-context-editor input,
.player-context-editor select,
.board-preference-editor input,
.board-preference-editor select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: var(--panel);
}

.identity-review-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding: 14px;
}

.identity-review-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.identity-review-card header,
.identity-review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.identity-review-card header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.identity-review-card header strong {
  overflow-wrap: anywhere;
}

.identity-review-card header span,
.identity-review-grid > div > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-review-card header em {
  color: var(--warn);
  font-style: normal;
  font-weight: 900;
}

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

.identity-review-grid > div {
  display: grid;
  gap: 6px;
}

.candidate-button {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-height: 48px;
  height: auto;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.candidate-button:hover,
.candidate-button.selected {
  border-color: rgba(11, 122, 117, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.candidate-button strong,
.candidate-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.candidate-button strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.candidate-button span {
  color: var(--muted);
  font-size: 0.74rem;
}

.identity-review-card footer input {
  flex: 1 1 220px;
  height: 34px;
}

.identity-review-card footer button {
  height: 34px;
}

.secondary-toolbar {
  grid-template-columns: minmax(220px, 320px) 1fr;
  margin-top: 16px;
}

.sleeper-summary {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.sleeper-summary strong,
.sleeper-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sleeper-summary span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics article,
section,
.rec-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics article {
  padding: 14px 16px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  margin-top: 16px;
}

.main-column {
  display: grid;
  gap: 16px;
}

body.lock-mode .command-strip {
  position: sticky;
  top: 10px;
  z-index: 15;
  border: 2px solid var(--accent);
  box-shadow: 0 12px 34px rgba(11, 122, 117, 0.16);
}

body.lock-mode .command-player strong {
  font-size: 1.55rem;
}

body.lock-mode .command-actions button {
  min-height: 46px;
  font-size: 0.92rem;
  font-weight: 900;
}

body.lock-mode .scoring-panel,
body.lock-mode .strategy-panel,
body.lock-mode .projection-blend-panel,
body.lock-mode .identity-review-panel,
body.lock-mode .strategy-lab-panel {
  display: none;
}

body.lock-mode .assistant-panel,
body.lock-mode .pick-compare-panel,
body.lock-mode .tier-alert-panel,
body.lock-mode .simulation-panel {
  margin-top: 12px;
}

body.lock-mode .layout {
  grid-template-columns: minmax(0, 1.25fr) 360px;
}

section {
  overflow: hidden;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.section-collapse-toggle {
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.section-collapse-toggle:hover {
  background: var(--panel-raised);
  color: var(--ink);
}

.section-collapsed > :not(.section-heading) {
  display: none;
}

.section-collapsed .section-heading {
  border-bottom: 0;
}

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

.board-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(130px, 170px) auto;
  gap: 10px;
  align-items: end;
}

.board-controls label {
  min-width: 0;
}

.board-controls input,
.board-controls select {
  height: 32px;
}

.tab {
  height: 30px;
  min-width: 44px;
  padding: 0 10px;
  background: var(--panel-raised);
  color: var(--ink);
}

.tab.active {
  background: var(--accent);
  color: white;
}

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

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

.lineup-optimizer-panel {
  border: 1px solid #b9d7d5;
  border-radius: 8px;
  background: var(--panel-soft);
}

.optimizer-explainer {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lineup-optimizer-results {
  padding: 0 14px 14px;
}

.optimizer-recommendation,
.optimizer-unavailable {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.optimizer-recommendation header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
}

.optimizer-recommendation header span,
.optimizer-recommendation header em {
  color: var(--muted);
  font-size: 0.78rem;
}

.optimizer-recommendation header strong {
  font-size: 1.05rem;
}

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

.optimizer-metrics div {
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.optimizer-metrics dt,
.optimizer-metrics dd {
  margin: 0;
}

.optimizer-metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.optimizer-metrics dd {
  margin-top: 3px;
  font-weight: 850;
}

.optimizer-recommendation p,
.optimizer-unavailable p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.optimizer-recommendation h3 {
  margin: 2px 0 0;
  font-size: 0.82rem;
}

.optimizer-alternatives {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 22px;
}

.optimizer-alternatives li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  font-size: 0.8rem;
}

.optimizer-alternatives span,
.optimizer-alternatives em,
.optimizer-recommendation small,
.optimizer-unavailable small {
  color: var(--muted);
  font-size: 0.74rem;
}

.season-outlook-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 0;
}

.season-outlook-controls .control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.season-outlook-controls .slider {
  width: 90px;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.season-outlook-controls output {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--ink);
  min-width: 2.5em;
}

.playoff-hero-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--good-soft);
  color: #6dd3a0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.season-outlook-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.season-outlook-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.season-outlook-card.recommended {
  border-color: rgba(11, 122, 117, 0.55);
  box-shadow: inset 3px 0 0 var(--accent);
}

.season-outlook-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.season-outlook-card header span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.season-outlook-card header em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.season-outlook-card > strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.season-outlook-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.season-outlook-card dl div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.season-outlook-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.season-outlook-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

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

.strategy-lab article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.strategy-lab article.active {
  border-color: rgba(11, 122, 117, 0.45);
  box-shadow: inset 3px 0 0 var(--accent);
}

.strategy-lab header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strategy-lab header span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.strategy-lab header em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.strategy-lab button {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
}

.strategy-lab button strong {
  overflow-wrap: anywhere;
}

.strategy-lab button small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.strategy-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.strategy-mix span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.strategy-lab ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-lab li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.strategy-lab li strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.strategy-lab li span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.policy-lab-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 180px)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.policy-lab-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.policy-lab-results {
  padding: 14px;
}

.policy-gate {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(240px, 1.6fr);
  gap: 12px;
}

.policy-gate > div,
.policy-gate ul,
.policy-regret article {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.policy-gate > div {
  display: grid;
  gap: 4px;
}

.policy-gate > div span,
.policy-gate small,
.policy-regret span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.policy-gate > div strong {
  font-size: 1.4rem;
}

.policy-gate.passed > div:first-child { box-shadow: inset 3px 0 0 #16835f; }
.policy-gate.rejected > div:first-child { box-shadow: inset 3px 0 0 #bd3c35; }

.policy-gate ul {
  display: grid;
  gap: 7px;
  list-style: none;
}

.policy-gate li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.policy-gate li span { min-width: 34px; color: #6dd3a0; }
.policy-gate li.fail span { color: #ff8780; }

.policy-regret { margin-top: 14px; }
.policy-regret h3 { margin: 0 0 8px; font-size: 0.9rem; }
.policy-regret-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.policy-regret article { display: grid; gap: 4px; min-width: 0; }
.policy-regret strong { overflow-wrap: anywhere; font-size: 0.78rem; }

@media (max-width: 800px) {
  .policy-lab-controls,
  .policy-gate,
  .policy-regret-list { grid-template-columns: 1fr; }
}

.assistant-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.assistant-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assistant-card header span:first-child,
.risk {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.risk.hot {
  background: var(--warn-soft);
  color: var(--warn);
}

.assistant-card strong {
  font-size: 1.15rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

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

.assistant-meta span {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.strategy-row span,
.strategy-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--good-soft);
  color: #6dd3a0;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.strategy-row .survival {
  background: var(--info-soft);
  color: #8ec5f4;
}

.strategy-row .survival.danger {
  background: var(--warn-soft);
  color: var(--warn);
}

.strategy-row .availability-label {
  background: var(--warn-soft);
  color: #f4bd66;
  letter-spacing: 0.02em;
}

.explainability {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.explainability.compact {
  padding: 0;
}

.explainability > p {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.explainability.compact > p {
  display: none;
}

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

.explain-factor {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-left: 3px solid #cbd6e2;
  border-radius: 6px;
  background: var(--panel-raised);
}

.explainability.compact .explain-factor {
  padding: 7px 8px;
}

.explain-factor.tone-positive {
  border-left-color: #25834e;
  background: var(--good-soft);
}

.explain-factor.tone-warning {
  border-left-color: #b45d1d;
  background: var(--warn-soft);
}

.explain-factor.tone-risk {
  border-left-color: #ff8780;
  background: var(--danger-soft);
}

.explain-factor dt,
.explain-factor dd {
  margin: 0;
}

.explain-factor dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.explain-factor dd {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.explain-factor span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.3;
}

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

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

.simulation-options article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.simulation-options article > strong {
  overflow-wrap: anywhere;
}

.simulation-options article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.simulation-options article b {
  color: var(--ink);
}

.conditional-scenarios {
  border-top: 1px solid var(--line);
}

.conditional-scenarios[hidden] {
  display: none;
}

.scenario-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.scenario-heading h3 {
  margin: 0;
  font-size: 0.9rem;
}

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

.scenario-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.scenario-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.scenario-card.recommended {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.scenario-card[data-decision="wait"] {
  border-color: rgba(22, 131, 95, 0.45);
}

.scenario-card[data-decision="caution"] {
  border-color: rgba(190, 126, 25, 0.5);
}

.scenario-card[data-decision="avoid"] {
  opacity: 0.82;
}

.scenario-card[data-decision="take"] header em { color: var(--accent-dark); font-weight: 900; }
.scenario-card[data-decision="wait"] header em { color: #6dd3a0; font-weight: 900; }
.scenario-card[data-decision="caution"] header em { color: #f4bd66; font-weight: 900; }

.scenario-card header,
.scenario-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scenario-card header span {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.scenario-card header em,
.scenario-card small {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}

.scenario-card > strong {
  overflow-wrap: anywhere;
}

.scenario-card dl {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
}

.scenario-card dt,
.scenario-card dd {
  margin: 0;
  font-size: 0.76rem;
}

.scenario-card dt {
  color: var(--muted);
}

.scenario-card dd {
  max-width: 58%;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.fallout-grid article {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.fallout-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fallout-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

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

.tier-alerts article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd6e2;
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.tier-alerts article.last,
.tier-alerts article.thin {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.tier-alerts article.cliff {
  border-left-color: var(--accent);
}

.tier-alerts header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tier-alerts header span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.tier-alerts header em,
.tier-alerts small,
.tier-alerts p {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
}

.tier-alerts strong {
  overflow-wrap: anywhere;
}

.league-memory ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.league-memory li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: var(--panel-raised);
  cursor: pointer;
}

.league-memory li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--info-soft);
  color: #8ec5f4;
  font-weight: 950;
}

.league-memory strong,
.league-memory em {
  display: block;
  overflow-wrap: anywhere;
}

.league-memory strong {
  font-size: 0.84rem;
}

.league-memory em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
}

.league-memory small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.assistant-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.pick-compare {
  padding: 14px;
}

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

.compare-cards.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.compare-cards article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.compare-cards article.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.compare-cards header,
.compare-cards dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compare-cards header span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-cards header em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.compare-cards article > strong {
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.compare-cards small,
.compare-cards p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.compare-cards p {
  margin: 0;
  font-weight: 750;
}

.compare-cards dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.compare-cards dt,
.compare-cards dd {
  margin: 0;
  font-size: 0.74rem;
}

.compare-cards dt {
  color: var(--muted);
  font-weight: 800;
}

.compare-cards dd {
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.rec-card {
  padding: 12px;
}

.rec-card header {
  display: grid;
  gap: 4px;
  min-height: 52px;
}

.rec-card header span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.rec-card header strong {
  line-height: 1.2;
}

.rec-score {
  margin: 12px 0;
  padding: 10px;
  border-radius: 6px;
  background: var(--accent-soft);
}

.rec-score span {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.rec-score small {
  color: var(--muted);
  font-weight: 700;
}

.rec-card ol,
.recent-picks,
.projected-picks ol,
.team-rosters ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.projected-picks {
  padding: 12px 14px 14px;
}

.projected-picks ol {
  display: grid;
  gap: 8px;
}

.projected-picks li {
  display: grid;
  grid-template-columns: 44px 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.projected-picks li.user-pick {
  border-color: rgba(11, 122, 117, 0.4);
  background: var(--accent-soft);
}

.projected-picks span,
.projected-picks strong,
.projected-picks em {
  min-width: 0;
}

.projected-picks span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.projected-picks strong {
  font-size: 0.88rem;
}

.projected-picks em {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
}

.rec-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.rec-card li span,
td strong {
  overflow-wrap: anywhere;
}

.rec-card li em {
  color: var(--warn);
  font-style: normal;
  font-weight: 900;
}

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

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

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

th {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-size: 0.92rem;
}

.player-row {
  cursor: pointer;
}

.player-row:hover {
  background: var(--panel-soft);
}

.player-row.selected {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

td span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

td .strategy-pill {
  display: inline-flex;
  margin-top: 0;
  color: #6dd3a0;
}

td .board-tag {
  display: inline-flex;
  width: fit-content;
  margin: 3px 0 0 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

td .board-tag.tag-target {
  background: var(--good-soft);
  color: #6dd3a0;
}

td .board-tag.tag-sleeper {
  background: var(--info-soft);
  color: #8ec5f4;
}

td .board-tag.tag-fade {
  background: var(--warn-soft);
  color: var(--warn);
}

.injury-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.injury-questionable {
  background: var(--warn-soft);
  color: #f4bd66;
}
.injury-doubtful {
  background: var(--warn-soft);
  color: #f09a68;
}
.injury-out,
.injury-pup,
.injury-nfi {
  background: var(--danger-soft);
  color: #ff8780;
}
.injury-suspended {
  background: var(--panel-raised);
  color: var(--muted);
}

.low-sample-badge {
  margin-left: 3px;
  font-size: 0.6rem;
  color: var(--warn);
  opacity: 0.7;
  cursor: help;
}

.pick-actions {
  white-space: nowrap;
}

.pick-actions button {
  height: 28px;
  padding: 0 8px;
  margin-right: 5px;
  font-size: 0.78rem;
}

.pick-actions button.queued {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pick-actions button:last-child,
.pick-actions button[data-queue-player] {
  background: var(--panel-raised);
  color: var(--ink);
}

.pick-actions button[data-queue-player].queued {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.side-column section {
  position: sticky;
  top: 16px;
}

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

.side-column section {
  position: static;
}

.side-column section:first-child {
  position: sticky;
  top: 16px;
}

.draft-queue {
  padding: 12px 14px 14px;
}

.draft-queue ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.draft-queue li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.draft-queue li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.queue-player {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.queue-player:hover {
  background: transparent;
  color: var(--accent-dark);
}

.queue-player strong,
.queue-player em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.queue-player strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.queue-player em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.draft-queue li > div {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.draft-queue .secondary-button {
  height: 26px;
  padding: 0 7px;
  font-size: 0.72rem;
}

.draft-queue .secondary-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.draft-sync {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.sync-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd6e2;
  border-radius: 6px;
  background: var(--panel-soft);
}

.sync-card.good {
  border-left-color: var(--accent);
}

.sync-card.warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.sync-card.offline {
  border-left-color: #5b6ee1;
}

.sync-card header {
  display: grid;
  gap: 3px;
}

.sync-card header span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sync-card header strong {
  overflow-wrap: anywhere;
}

.sync-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.sync-card dl div {
  display: grid;
  gap: 1px;
  padding: 7px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.sync-card dt,
.sync-card dd {
  margin: 0;
}

.sync-card dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-card dd {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-actions .secondary-button {
  height: 28px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.sync-issue-group {
  display: grid;
  gap: 7px;
}

.sync-issue-group > strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sync-issue-group ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sync-issue-group li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.sync-issue-group li > span {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.sync-issue-group b,
.sync-issue-group em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sync-issue-group b {
  font-size: 0.84rem;
}

.sync-issue-group em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.watchlist {
  padding: 12px 14px 14px;
}

.watchlist ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watchlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd6e2;
  border-radius: 6px;
  background: var(--panel-soft);
}

.watchlist li.tag-target {
  border-left-color: var(--accent);
}

.watchlist li.tag-sleeper,
.watchlist li.tag-watch {
  border-left-color: #5b6ee1;
}

.watchlist li.tag-fade {
  border-left-color: var(--warn);
}

.watchlist button[data-detail-player] {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: 100%;
  height: auto;
  padding: 9px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.watchlist button[data-detail-player]:hover {
  background: var(--panel-soft);
  color: var(--accent-dark);
}

.watchlist button[data-remove-watch] {
  height: 28px;
  margin-right: 8px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.watchlist strong,
.watchlist span,
.watchlist em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.watchlist strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.watchlist span,
.watchlist em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.roster-summary {
  padding: 12px 14px 14px;
}

.roster-counts,
.my-picks,
.slot-gaps,
.team-position ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.roster-counts li {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.roster-counts span,
.roster-counts em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-counts strong {
  font-size: 1.35rem;
  line-height: 1;
}

.roster-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.roster-slots span {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.slots-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  background: var(--accent-soft);
}

.slots-left strong {
  color: var(--accent-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.slots-left span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-gaps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.slot-gaps li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.slot-gaps span {
  color: var(--muted);
}

.construction-plan {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.construction-plan header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  background: var(--panel-soft);
}

.construction-plan header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.construction-plan header strong {
  font-size: 0.82rem;
}

.construction-plan ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.construction-plan li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.construction-plan li.status-starter {
  background: var(--accent-soft);
}

.construction-plan li div {
  min-width: 0;
}

.construction-plan li strong,
.construction-plan li em {
  font-size: 0.8rem;
}

.construction-plan li span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.construction-plan li em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.construction-plan button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.75rem;
}

.drafted-team {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.team-position {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.team-position header {
  padding: 7px 9px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.team-position li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
}

.team-position li span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.team-position li strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.my-picks {
  margin-top: 10px;
}

.my-picks li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}

.recent-picks {
  padding: 8px 14px 14px;
}

.recent-picks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.recent-picks li:last-child {
  border-bottom: 0;
}

.recent-picks li div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recent-picks li strong,
.recent-picks li span {
  overflow-wrap: anywhere;
}

.recent-picks li span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.recent-picks .secondary-button {
  height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.team-rosters {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.team-rosters article {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.team-rosters article.mine {
  border-color: rgba(11, 122, 117, 0.45);
}

.team-rosters header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  background: var(--panel-soft);
}

.team-rosters article.mine header {
  background: var(--accent-soft);
}

.team-rosters header strong,
.team-rosters header span {
  font-size: 0.8rem;
}

.team-rosters header span {
  color: var(--muted);
  font-weight: 800;
}

.team-rosters div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 9px;
}

.team-rosters div span {
  padding: 5px 6px;
  border-radius: 5px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.team-rosters li {
  padding: 7px 9px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 700;
}

.adp-viz-panel {
  margin-top: 16px;
}

.adp-viz-controls {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.adp-scatter-plot {
  padding: 14px;
  overflow-x: auto;
}

.adp-scatter-plot svg {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
}

.adp-scatter-plot .dot {
  cursor: pointer;
  transition: opacity 0.15s;
}

.adp-scatter-plot .dot:hover {
  opacity: 0.9;
  stroke: var(--ink);
  stroke-width: 2;
}

.adp-value-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 14px;
}

.adp-value-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.adp-value-card header {
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adp-value-card.bargain header {
  background: var(--good-soft);
  color: #6dd3a0;
}

.adp-value-card.reach header {
  background: var(--danger-soft);
  color: #ff8780;
}

.adp-value-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.adp-value-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.1s;
}

.adp-value-card li:hover {
  background: var(--panel-soft);
}

.adp-value-card li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.adp-value-card li strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.adp-value-card li small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.adp-value-card li em {
  color: var(--ink);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.adp-value-card li.bargain-row em {
  color: #6dd3a0;
}

.adp-value-card li.reach-row em {
  color: #ff8780;
}

.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.scatter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.scatter-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scatter-tooltip {
  position: fixed;
  z-index: 40;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}

.scatter-tooltip.visible {
  opacity: 1;
}

@media (max-width: 680px) {
  .adp-value-panels {
    grid-template-columns: 1fr;
  }

  /* Keep the decision fields usable on a phone.  Secondary diagnostics remain
     available in the detail drawer, while rank/player/ADP/projection/actions
     stay in the viewport instead of forcing a clipped 850px table. */
  #tables .table-wrap table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  #tables .table-wrap th,
  #tables .table-wrap td {
    padding: 8px 6px;
    overflow-wrap: anywhere;
  }

  #tables .table-wrap th:nth-child(2),
  #tables .table-wrap td:nth-child(2),
  #tables .table-wrap th:nth-child(5),
  #tables .table-wrap td:nth-child(5),
  #tables .table-wrap th:nth-child(7),
  #tables .table-wrap td:nth-child(7),
  #tables .table-wrap th:nth-child(8),
  #tables .table-wrap td:nth-child(8),
  #tables .table-wrap th:nth-child(9),
  #tables .table-wrap td:nth-child(9) {
    display: none;
  }

  #tables .table-wrap th:nth-child(1),
  #tables .table-wrap td:nth-child(1) { width: 12%; }
  #tables .table-wrap th:nth-child(3),
  #tables .table-wrap td:nth-child(3) { width: 42%; }
  #tables .table-wrap th:nth-child(4),
  #tables .table-wrap td:nth-child(4),
  #tables .table-wrap th:nth-child(6),
  #tables .table-wrap td:nth-child(6) { width: 14%; }
  #tables .table-wrap th:nth-child(10),
  #tables .table-wrap td:nth-child(10) { width: 18%; }
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.empty.compact {
  padding: 10px 0;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.detail-drawer.open {
  display: block;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 42, 0.28);
}

.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -16px 0 36px rgba(21, 32, 43, 0.16);
}

.detail-panel > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.detail-panel header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.detail-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.detail-body section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-body h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

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

.detail-summary article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 1.12rem;
}

.detail-summary .injury-status strong {
  font-size: 0.95rem;
}
.detail-summary .injury-status strong.injury-questionable { color: #f4bd66; }
.detail-summary .injury-status strong.injury-doubtful { color: #f09a68; }
.detail-summary .injury-status strong.injury-out,
.detail-summary .injury-status strong.injury-pup,
.detail-summary .injury-status strong.injury-nfi { color: #ff8780; }

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

.detail-grid div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid dd {
  font-size: 1rem;
  font-weight: 900;
}

.source-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.65rem 0 0;
}

.detail-flags {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.detail-flags li {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .toolbar,
  .command-strip,
  .layout {
    grid-template-columns: 1fr;
  }

  .settings,
  .sleeper-search,
  .board-controls,
  .lock-alerts,
  .draft-manager-grid,
  .board-profile-grid,
  .scoring-grid,
  .strategy-grid,
  .projection-blend-grid,
  .identity-review-grid,
  .metrics,
  .assistant-cards,
  .optimizer-metrics,
  .season-outlook-options,
  .strategy-lab,
  .tier-alerts,
  .compare-cards,
  .simulation-options,
  .scenario-options,
  .recommendations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-column section,
  .side-column section:first-child {
    position: static;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .toolbar,
  .section-heading,
  .command-strip,
  .freshness-banner {
    align-items: stretch;
  }

  .settings,
  .sleeper-search,
  .board-controls,
  .lock-alerts,
  .draft-manager-grid,
  .board-profile-grid,
  .scoring-grid,
  .strategy-grid,
  .projection-blend-grid,
  .player-context-editor,
  .board-preference-editor,
  .metrics,
  .assistant-cards,
  .season-outlook-options,
  .strategy-lab,
  .tier-alerts,
  .compare-cards,
  .compare-cards.compact,
  .fallout-grid,
  .simulation-options,
  .scenario-options,
  .recommendations {
    grid-template-columns: 1fr;
  }

  .scenario-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    flex-direction: column;
  }

  .rec-card li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rec-card li span {
    overflow-wrap: normal;
  }

  .rec-card li em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .optimizer-recommendation header {
    grid-template-columns: 1fr auto;
  }

  .optimizer-recommendation header span {
    grid-column: 1 / -1;
  }

  .freshness-banner {
    flex-direction: column;
  }

  .command-strip {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-right: -10px;
    margin-left: -10px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -10px 24px rgba(21, 32, 43, 0.12);
  }

  .overlay-restore {
    right: 10px;
    bottom: 10px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

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

  .identity-review-card header,
  .identity-review-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .freshness-banner button {
    width: 100%;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }
}
.trade-analyzer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}
.trade-side { display: grid; gap: 8px; }
.trade-side > header { display: grid; gap: 6px; }
.trade-side > header strong { font-size: 0.9rem; color: var(--accent-dark); }
.trade-player-search { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.85rem; }
.trade-player-results { position: absolute; z-index: 30; width: calc(100% - 28px); max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: var(--shadow); }
.trade-player-option { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 0.82rem; gap: 8px; }
.trade-player-option:hover { background: var(--panel-raised); }
.trade-player-option small { color: var(--muted); flex-shrink: 0; }
.trade-assets { display: grid; gap: 6px; min-height: 60px; }
.trade-asset { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); font-size: 0.82rem; }
.trade-asset strong { grid-column: 2; }
.trade-asset small { grid-column: 2; color: var(--muted); }
.trade-asset-value { grid-column: 3; grid-row: 1/3; font-weight: 950; font-size: 0.9rem; color: var(--accent-dark); }
.trade-asset-pick { border-color: var(--accent); background: var(--accent-soft); }
.trade-remove { grid-column: 1; grid-row: 1/3; width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--warn); cursor: pointer; font-size: 1rem; font-weight: 950; line-height: 1; }
.trade-remove:hover { border-color: var(--warn); background: var(--danger-soft); }
.trade-vs { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 0 4px; }
.trade-vs span { padding: 8px; border-radius: 999px; background: var(--accent); color: white; font-size: 0.78rem; font-weight: 950; }
.trade-controls { display: flex; gap: 6px; align-items: center; }
.trade-controls label { display: flex; gap: 6px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.trade-controls select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.8rem; }
.trade-summary { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-raised); font-size: 0.85rem; font-weight: 950; }
.trade-verdict { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; font-weight: 950; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.trade-pick-ref { padding: 0 14px 10px; }
.trade-pick-ref details { font-size: 0.82rem; }
.trade-pick-ref summary { cursor: pointer; color: var(--accent); font-weight: 800; }
.trade-pick-chart { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; padding: 10px 0; font-size: 0.75rem; }
.trade-pick-chart span { display: flex; justify-content: space-between; padding: 3px 6px; border-radius: 3px; background: var(--panel-soft); }
.trade-age-analysis { padding: 0 14px 10px; }
.trade-age-detail { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 8px 0; }
.trade-age-detail article { display: flex; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.82rem; }
.trade-age-detail article strong { color: var(--muted); }
@media (max-width: 1100px) { .trade-analyzer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .trade-analyzer { grid-template-columns: 1fr; } }

.pick-trading-panel .trade-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.trade-method-select select { width: 100%; }
.trade-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.trade-tab {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: center;
}
.trade-tab.active { background: var(--accent); color: #fff; }
.trade-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trade-panel label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}
.trade-panel label span { color: var(--muted); }
.trade-panel input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.trade-panel button {
  padding: 6px 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.trade-evaluation {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  margin-top: 4px;
}
.trade-evaluation.positive { border-color: #2a9d8f; }
.trade-evaluation.risk { border-color: #e76f51; }
.trade-side ol { margin: 0; padding-left: 16px; font-size: 0.85rem; }
.trade-side ol li { list-style: decimal; }
.trade-verdict strong.positive { color: #2a9d8f; }
.trade-verdict strong.risk { color: #e76f51; }
.pick-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.pick-chart-table th,
.pick-chart-table td {
  padding: 4px 8px;
  border: 1px solid var(--line);
  text-align: center;
}
.pick-chart-table th { background: var(--bg); font-weight: 600; }
.pick-chart-table td:first-child { text-align: left; font-weight: 600; }
.chart-panel { width: min(95vw, 700px); }

.keeper-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.keeper-declarations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.keeper-team {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg);
}
.keeper-team header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.keeper-entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.keeper-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.keeper-row .keeper-name {
  flex: 1;
  min-width: 0;
}
.keeper-row .keeper-cost {
  width: 72px;
}
.keeper-analysis-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.keeper-analysis-panel h3 {
  font-size: 0.85rem;
  margin: 0 0 8px;
  color: var(--muted);
}
tr.keeper-decision-great, tr.good {
  background: var(--good-soft);
}
tr.keeper-decision-bad, tr.warn {
  background: var(--warn-soft);
}
.keeper-analysis-panel table td {
  font-size: 0.78rem;
  padding: 4px 8px;
}
.keeper-analysis-panel table th {
  font-size: 0.72rem;
}

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

.recap-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.recap-grade {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 950;
  color: white;
  flex: 0 0 auto;
}

.recap-grade.grade-a { background: #1b8c5a; }
.recap-grade.grade-b { background: #2d7fb8; }
.recap-grade.grade-c { background: #9a8c2a; }
.recap-grade.grade-d { background: #b86a2d; }
.recap-grade.grade-f { background: #b43a33; }

.recap-hero-stats {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.recap-hero-stats strong { font-size: 1.15rem; }

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

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

.recap-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.recap-section h3 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
}

.recap-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.recap-table th,
.recap-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.recap-table th {
  background: var(--panel-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.recap-table td.grade-a strong { color: #1b8c5a; }
.recap-table td.grade-b strong { color: #2d7fb8; }
.recap-table td.grade-c strong { color: #9a8c2a; }
.recap-table td.grade-d strong { color: #b86a2d; }
.recap-table td.grade-f strong { color: #b43a33; }

.recap-value-card {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-left: 4px solid #cbd6e2;
  border-radius: 6px;
  background: var(--panel-raised);
}

.recap-value-card.good {
  border-left-color: #25834e;
  background: var(--good-soft);
}

.recap-value-card.warn {
  border-left-color: #b45d1d;
  background: var(--warn-soft);
}

.recap-value-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recap-value-card strong { font-size: 0.92rem; overflow-wrap: anywhere; }

.recap-value-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.recap-roster-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-raised);
}

.recap-pos-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: fit-content;
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 900;
  color: white;
}

.recap-pos-bar.pos-qb { background: #3b82b6; }
.recap-pos-bar.pos-rb { background: #1b8c5a; }
.recap-pos-bar.pos-wr { background: #9a8c2a; }
.recap-pos-bar.pos-te { background: #b86a2d; }

.recap-slot-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

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

.recap-finish div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-raised);
  text-align: center;
}

.recap-finish span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recap-finish strong { font-size: 1.05rem; }

.recap-picks-detail {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
}

.recap-picks-detail summary {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.recap-picks-detail .recap-table {
  border-top: 1px solid var(--line);
}

/* Draft-first workspace: setup and research stay available on demand. */
[hidden] { display: none !important; }

.header-actions, .focus-heading, .focus-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-actions { justify-content: flex-end; }
.board-link { color: var(--accent-dark); font-size: 0.88rem; font-weight: 700; }
.workspace-disclosure {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.workspace-disclosure > summary {
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.88rem;
}
.workspace-disclosure > summary::marker { color: var(--accent); }
.workspace-disclosure > summary span {
  margin-left: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}
.workspace-disclosure > summary:hover { background: var(--accent-soft); }
.workspace-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.disclosure-content { padding: 16px; }
.disclosure-content > section { margin-top: 16px; }
.disclosure-content .secondary-toolbar { grid-template-columns: minmax(0, 1fr); box-shadow: none; }
.disclosure-content .settings { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.disclosure-content .sleeper-search { max-width: 640px; }
.next-pick-focus {
  margin-top: 16px;
  border: 1px solid #b7d9d3;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--accent-soft), var(--panel) 65%);
  padding: 20px;
}
.focus-heading { margin-bottom: 16px; flex-wrap: wrap; }
.focus-heading h2 { margin-top: 4px; font-size: 1.25rem; }
.focus-eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-dark); }
.focus-timing { padding: 8px 12px; border-radius: 6px; background: var(--accent-soft); font-size: 0.86rem; font-weight: 750; }
.focus-timing[data-state="on-clock"] { color: white; background: var(--accent-dark); }
.focus-candidates { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 14px; }
.focus-candidate { min-width: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.focus-candidate.primary { border-color: #92c7bb; }
.focus-candidate h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.focus-candidate.primary h3 { font-size: 1.7rem; letter-spacing: -0.025em; }
.focus-player-meta, .focus-reason, .focus-caveat { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.focus-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.78rem; color: var(--muted); }
.focus-stats b { color: var(--ink); }
.focus-actions { margin-top: auto; padding-top: 6px; justify-content: flex-start; flex-wrap: wrap; }
.focus-actions .secondary-button { height: 38px; }
.focus-actions button:disabled { cursor: default; opacity: 0.6; }
.focus-caveat { margin-top: 12px; font-size: 0.75rem; }
#draft-board { scroll-margin-top: 16px; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 800px) {
  .focus-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-candidate.primary { grid-column: 1 / -1; }
  .workspace-disclosure > summary span { display: block; margin: 6px 0 0 16px; line-height: 1.5; }
}
@media (max-width: 680px) {
  /* A tall sticky command panel used to cover the forecast on phones. */
  .command-strip, body.lock-mode .command-strip {
    margin-top: 10px;
    margin-bottom: 0;
    position: relative;
    top: auto;
    bottom: auto;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
  }
  body.lock-mode .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .app-shell > .toolbar { grid-template-columns: minmax(0, 1fr); }
  .header-actions { justify-content: space-between; }
  .next-pick-focus { padding: 14px; }
  .app-shell > .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .app-shell > .metrics article:first-child, .app-shell > .metrics article:last-child { display: none; }
  .metrics article { padding: 10px; }
  .metrics span { font-size: 0.65rem; }
  .metrics strong { font-size: 1.3rem; }
  .focus-candidate { padding: 12px; }
  .focus-candidate.alternative { gap: 6px; }
  .focus-candidate.alternative h3 { font-size: 1rem; }
  .focus-candidate.alternative .focus-actions { gap: 6px; }
  .focus-candidate.alternative button { padding: 0 8px; font-size: 0.8rem; }
  .disclosure-content { padding: 10px; }
  .disclosure-content .settings, .disclosure-content .sleeper-search { grid-template-columns: minmax(0, 1fr); }
}

/* Keep setup guidance close without competing with the next-pick card. */
.workflow-help { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 6px; font-size: .85rem; }
.workflow-help p { margin-top: 5px; color: var(--muted); line-height: 1.5; }
#auction-feedback { color: var(--warn); line-height: 1.5; }
#auction-bid-area select { max-width: 130px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
@media (max-width: 480px) {
  .header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .header-actions > * { min-width: 0; min-height: 40px; white-space: normal; text-align: center; align-content: center; }
}
