:root {
  --bg: #eef1f4;
  --surface: #fbfcfd;
  --surface-2: #f5f7f9;
  --ink: #15181d;
  --ink-2: #343b44;
  --muted: #697481;
  --line: #d7dee6;
  --line-strong: #bfc9d4;
  --dark: #101318;
  --dark-2: #171c22;
  --gold: #1f9fe5;
  --gold-soft: #e9f7ff;
  --teal: #22b8a7;
  --blue: #376fcb;
  --red: #c95e53;
  --green: #5e8d63;
  --shadow: 0 14px 38px rgba(17, 22, 28, 0.10);
  --soft-shadow: 0 2px 12px rgba(17, 22, 28, 0.055);
}

body[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #171f2a;
  --ink: #eef4fb;
  --ink-2: #c9d3df;
  --muted: #8fa0b3;
  --line: #283443;
  --line-strong: #3a4a5e;
  --dark: #05080c;
  --dark-2: #0c1118;
  --gold: #52d7ff;
  --gold-soft: #0d2634;
  --teal: #45d1c4;
  --blue: #8db8ff;
  --red: #e0786f;
  --green: #7eb983;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --soft-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

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

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

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 12px 18px;
  border-bottom: 1px solid #27303a;
  background: linear-gradient(90deg, #0f1217, #171c22 48%, #101318);
  color: #f7fafc;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand em,
.eyebrow,
.team-switcher label,
.section-head span,
.health-strip span,
.muted-text {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand em {
  color: #9ba7b5;
  font-size: 10px;
}

.main-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  padding: 5px;
  border-radius: 8px;
}

.main-tabs button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #cbd4df;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.main-tabs button.active,
.main-tabs button:hover {
  background: #f8fafc;
  color: var(--ink);
}

.top-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.room-identifier {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px;
}

.room-identifier span,
.room-identifier em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.room-identifier strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #f8fafc;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.theme-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 currentColor;
}

body[data-theme="dark"] .theme-icon {
  box-shadow: inset 5px 0 0 currentColor;
}

.team-switcher {
  position: relative;
  display: grid;
  gap: 5px;
}

.team-switcher label {
  color: #9ba7b5;
}

.team-switcher input,
.inline-search,
.fit-panel select {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 11px;
  outline: none;
}

.team-switcher input {
  border-color: rgba(255, 255, 255, 0.18);
  background: #0d1117;
  color: #f8fafc;
}

.team-switcher input:focus,
.inline-search:focus,
.fit-panel select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(82, 215, 255, 0.16);
}

.team-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  display: none;
  gap: 6px;
  max-height: 430px;
  overflow: auto;
  border: 1px solid #2e3844;
  background: #101318;
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.team-switcher:focus-within .team-menu,
.team-menu:hover {
  display: grid;
}

.team-menu button,
.play-list button,
.example-list button,
.map-card,
.read-row,
.module-grid button,
.anti-card,
.stack-item,
.utility-card,
.player-card,
.round-button,
.replacement-card {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  border-radius: 6px;
  padding: 10px;
}

.team-menu button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #f8fafc;
}

.team-menu button.active,
.team-menu button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

.workspace {
  display: grid;
  gap: 14px;
  padding: 16px 18px 26px;
}

.command-strip,
.hero-card,
.read-card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.command-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px 16px;
}

.command-strip h1,
.hero-card h2,
.read-card h2,
.section-head h2,
.radar-head h2,
.player-profile h2 {
  margin: 0;
  line-height: 1.08;
}

.command-strip h1 {
  margin-top: 3px;
  font-size: 28px;
}

.health-strip,
.kpi-strip,
.mini-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-strip span,
.kpi,
.mini-kpi {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 10px;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: grid;
  gap: 14px;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 14px;
}

.hero-card {
  display: grid;
  align-content: space-between;
  min-height: 276px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 248, 223, 0.78), rgba(251, 252, 253, 0.94) 44%),
    var(--surface);
}

.hero-card h2 {
  max-width: 860px;
  font-size: 42px;
  letter-spacing: 0;
}

.hero-card p:not(.eyebrow) {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.kpi-strip {
  align-self: end;
}

.cockpit-summary,
.kpi,
.mini-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi,
.mini-kpi {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 154px;
  border-radius: 7px;
  padding: 10px;
}

.kpi span,
.mini-kpi span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi strong,
.mini-kpi strong {
  font-size: 21px;
}

.kpi p,
.mini-kpi p {
  margin: 2px 0 0;
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.28;
  text-transform: none;
}

.read-card,
.panel {
  padding: 14px;
}

.cockpit-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cockpit-summary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 8px;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.82fr) minmax(300px, 0.82fr);
  gap: 12px;
  align-items: start;
}

.cockpit-block {
  min-width: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 7px;
  padding: 12px;
}

.cockpit-block.span-2 {
  grid-row: span 2;
}

.cockpit-map-list,
.cockpit-stack {
  display: grid;
  gap: 8px;
}

.cockpit-map-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 9px;
}

.cockpit-map-card button,
.cockpit-line {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.cockpit-map-card button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 0;
}

.cockpit-map-card strong,
.cockpit-line strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.22;
}

.cockpit-map-card p,
.cockpit-line p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.cockpit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.cockpit-tags span,
.cockpit-line > span {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cockpit-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 9px;
}

.cockpit-line.clickable:hover,
.cockpit-map-card:hover {
  border-color: var(--gold);
  box-shadow: var(--soft-shadow);
}

.prep-pack-panel {
  display: grid;
  gap: 12px;
}

.onboarding-panel {
  display: grid;
  gap: 12px;
}

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

.onboarding-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 12px;
}

.onboarding-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 6px;
}

.onboarding-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

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

.prep-card,
.habit-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 7px;
  padding: 12px;
}

.prep-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 158px;
}

.prep-card.target {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-soft), #ffffff 62%);
}

.prep-card.risk {
  border-color: rgba(201, 94, 83, 0.32);
}

.prep-card.script {
  grid-column: span 2;
}

.prep-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.prep-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.prep-card p,
.prep-card li,
.habit-card p,
.habit-card em {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.prep-card p,
.habit-card p {
  margin: 0;
}

.prep-card em {
  align-self: end;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.prep-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
}

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

.habit-card {
  display: grid;
  gap: 8px;
}

.habit-card em {
  font-style: normal;
}

.habit-card button {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 900;
}

.section-head,
.radar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-head.tight {
  margin-top: 18px;
}

.section-head h2 {
  margin-top: 3px;
  font-size: 18px;
}

.read-stack,
.script-grid,
.map-board,
.play-list,
.example-list,
.evidence-list,
.anti-board,
.stack-list,
.utility-grid,
.player-list,
.replacement-list,
.watch-rounds,
.fit-summary {
  display: grid;
  gap: 8px;
}

.read-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  background: var(--surface-2);
}

.read-row:hover,
.map-card:hover,
.play-list button:hover,
.example-list button:hover,
.anti-card:hover,
.stack-item:hover,
.utility-card:hover,
.player-card:hover,
.round-button:hover,
.replacement-card:hover {
  border-color: var(--gold);
}

.read-row em,
.module-grid span,
.map-rank,
.priority-pill {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.read-row span,
.map-card span,
.play-list span,
.example-list span,
.stack-item span,
.utility-card span,
.player-card span,
.replacement-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.read-row strong,
.map-card strong,
.play-list strong,
.example-list strong,
.anti-card strong,
.stack-item strong,
.utility-card strong,
.player-card strong,
.replacement-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-row p,
.script-card p,
.map-card p,
.anti-card p,
.stack-item p,
.utility-card p,
.fit-summary p,
.muted-text {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.38;
  text-transform: none;
}

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

.script-card {
  border-left: 4px solid var(--gold);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 11px;
}

.script-card strong {
  display: block;
  font-size: 15px;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

.legend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: -2px 0 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 8px;
}

.legend-item strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.legend-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.28;
}

.legend-swatch {
  position: relative;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 1px solid rgba(17, 22, 28, 0.16);
  border-radius: 999px;
  background: var(--muted);
}

.legend-swatch.gold,
.legend-swatch.t-side {
  background: var(--gold);
}

.legend-swatch.blue {
  background: var(--blue);
}

.legend-swatch.green,
.legend-swatch.ct-side {
  background: var(--teal);
}

.legend-swatch.red {
  background: var(--red);
}

.legend-swatch.utility-line {
  width: 28px;
  height: 0;
  margin-top: 8px;
  border: 0;
  border-top: 2px dashed #6ea6df;
  border-radius: 0;
  background: transparent;
}

.editorial-room {
  display: grid;
  gap: 10px;
}

.editorial-lead,
.editorial-card,
.social-strip article {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 12px;
}

.editorial-lead {
  border-left: 4px solid var(--gold);
}

.editorial-lead strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.editorial-lead p,
.editorial-card p,
.social-strip p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.42;
}

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

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

.editorial-card span,
.social-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.editorial-card strong,
.social-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.editorial-card em {
  display: block;
  margin-top: 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

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

.module-grid button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 84px;
  background: #ffffff;
}

.module-grid strong {
  display: block;
  font-size: 17px;
}

.module-grid em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.two-column,
.maps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 14px;
}

.prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.35fr) 330px;
  gap: 14px;
  align-items: start;
}

.workflow-plan,
.workflow-results,
.workflow-filters,
.workflow-sites {
  display: grid;
  gap: 8px;
}

.subsection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.subsection-head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.subsection-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.workflow-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.coach-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.workflow-answer {
  margin-bottom: 10px;
}

.workflow-answer article {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 10px;
}

.prep-session,
.prep-session-card {
  display: grid;
  gap: 8px;
}

.prep-session-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 10px;
}

.prep-session-card.high {
  border-color: rgba(190, 72, 72, 0.42);
}

.prep-session-card div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.prep-session-card strong {
  font-size: 13px;
}

.prep-session-card span,
.prep-session-card a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.prep-session-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-answer strong {
  font-size: 13px;
}

.workflow-answer p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-filters .span-2 {
  grid-column: span 2;
}

.workflow-filters select {
  min-height: 39px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  padding: 8px;
  outline: none;
}

.workflow-step,
.workflow-round,
.workflow-site {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px;
}

.workflow-step span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-step strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.22;
}

.workflow-step p,
.workflow-round p,
.workflow-round em,
.workflow-site p,
.workflow-site em {
  display: block;
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.workflow-site div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.workflow-site strong {
  font-size: 13px;
  line-height: 1.2;
}

.workflow-site span,
.workflow-site em {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-round button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.workflow-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.workflow-flags span {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
}

.workflow-results.compact {
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.review-board {
  display: grid;
  gap: 8px;
}

.review-item {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 10px;
}

.review-item > span,
.review-item em,
.utility-card em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.review-item strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.2;
}

.review-item p {
  margin: 5px 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.review-actions button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 5px;
  padding: 6px 5px;
  font-size: 10px;
  font-weight: 900;
}

.review-item.approved {
  border-color: rgba(85, 150, 96, 0.38);
}

.review-item.rejected {
  border-color: rgba(190, 72, 72, 0.38);
}

.sticky-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

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

.map-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  background: #ffffff;
}

.map-card.active,
.play-list button.active,
.example-list button.active,
.player-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.map-card p {
  grid-column: 2 / -1;
}

.map-meta {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.map-meta span,
.clip-meta span,
.risk {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.risk.high {
  color: #963c34;
  background: rgba(201, 94, 83, 0.12);
  border-color: rgba(201, 94, 83, 0.24);
}

.risk.medium {
  color: #245a8d;
  background: rgba(82, 215, 255, 0.13);
  border-color: rgba(82, 215, 255, 0.24);
}

.risk.low {
  color: #416d46;
  background: rgba(94, 141, 99, 0.14);
  border-color: rgba(94, 141, 99, 0.24);
}

.coach-script {
  display: grid;
  gap: 8px;
}

.coach-line {
  border-left: 4px solid var(--blue);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 10px;
}

.coach-line strong {
  display: block;
  font-size: 13px;
}

.coach-line p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
}

.veto-board {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.replay-layout {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.playbook-panel,
.evidence-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.play-list button,
.example-list button {
  display: grid;
  gap: 5px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.radar-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark);
  color: #f7fafc;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 19, 23, 0.25);
  padding: 14px;
}

.radar-head {
  margin-bottom: 10px;
}

.radar-head .eyebrow {
  color: #9ba7b5;
}

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

.radar-panel .legend-item {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
}

.radar-panel .legend-item strong {
  color: #f7fafc;
}

.radar-panel .legend-item p {
  color: #aeb9c8;
}

.replay-guide {
  display: grid;
  gap: 4px;
  margin: -4px 0 12px;
  border: 1px solid rgba(82, 215, 255, 0.24);
  border-left: 4px solid var(--gold);
  background: rgba(82, 215, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
}

.replay-guide strong {
  color: #d6f5ff;
  font-size: 12px;
  line-height: 1.2;
}

.replay-guide p {
  margin: 0;
  color: #cbd4df;
  font-size: 12px;
  line-height: 1.42;
}

.clip-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.clip-meta span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #d6dee8;
}

.radar-frame {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark-2);
}

#radarCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.radar-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 19, 24, 0.74);
  color: #cbd4df;
  text-align: center;
  font-weight: 900;
}

.hidden,
.radar-empty.hidden {
  display: none !important;
}

.timeline {
  display: grid;
  gap: 8px;
}

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

.phase-track {
  display: flex;
  gap: 4px;
  min-height: 30px;
}

.phase-chip {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: #94a2b2;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-chip.active {
  background: rgba(82, 215, 255, 0.18);
  color: #d6f5ff;
}

.transport {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.transport label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #cbd4df;
  font-size: 12px;
  font-weight: 900;
}

.transport select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #202731;
  color: #ffffff;
  border-radius: 5px;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 900;
}

.primary-button {
  background: var(--gold);
  color: #061019;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.ghost-button.dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f7fafc;
}

#frameReadout {
  margin-left: auto;
  color: #9ba7b5;
  font-size: 12px;
  font-weight: 900;
}

.evidence-list {
  margin-top: 8px;
}

.player-key-list {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.player-key-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 8px;
}

.player-key-item.dimmed {
  opacity: 0.58;
}

.player-key-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(82, 215, 255, 0.38);
  background: var(--gold-soft);
  color: #0b5f85;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.player-key-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-key-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.player-key-item em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-item {
  border-left: 4px solid var(--gold);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 9px;
  font-size: 12px;
}

.evidence-item.fail {
  border-left-color: var(--red);
}

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

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

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

.anti-card {
  display: grid;
  gap: 6px;
  background: #ffffff;
}

.anti-card .topline,
.stack-item .topline,
.utility-card .topline,
.player-card .topline,
.replacement-card .topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.stack-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 3px;
}

.stack-item {
  display: grid;
  gap: 5px;
  background: var(--surface-2);
}

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

.utility-card {
  display: grid;
  gap: 5px;
  background: #ffffff;
}

.players-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.roster-panel,
.fit-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.inline-search {
  margin-bottom: 10px;
}

.player-list.compact {
  max-height: 330px;
  overflow: auto;
}

.player-card {
  display: grid;
  gap: 5px;
  background: #ffffff;
}

.role-pill,
.fit-panel #fitScore {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  border: 1px solid rgba(82, 215, 255, 0.28);
  background: var(--gold-soft);
  color: #0b5f85;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.mini-kpis {
  margin-bottom: 12px;
}

.role-rows {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.role-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.role-row div {
  height: 8px;
  overflow: hidden;
  background: #e4eaf0;
  border-radius: 999px;
}

.role-row i {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.split-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.split-area h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.round-button {
  display: grid;
  gap: 4px;
}

.replacement-card {
  border-left: 4px solid var(--teal);
  display: grid;
  gap: 4px;
}

.fit-summary {
  margin: 10px 0;
}

.fit-summary article {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 9px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 7px;
  padding: 12px;
  min-height: 118px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric p {
  margin: 7px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.metric-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.metric-help article {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 10px;
}

.metric-help strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.metric-help p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.data-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  border-bottom: 1px solid #e3e8ee;
  padding: 8px;
  text-align: left;
}

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

pre {
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  border-radius: 6px;
  background: var(--dark);
  color: #d8e0ea;
  padding: 12px;
  white-space: pre-wrap;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.prototype-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 3px;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line-strong);
  background: var(--dark);
  color: #f7fafc;
  border-radius: 9px;
  padding: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.prototype-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.prototype-toast strong {
  font-size: 13px;
}

.prototype-toast span {
  color: #b8c6d6;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.empty {
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 1380px) {
  .app-top {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }

  .briefing-layout,
  .two-column,
  .maps-layout,
  .players-layout,
  .prep-layout,
  .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .main-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .prep-pack-grid,
  .habits-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-block.span-2 {
    grid-row: auto;
  }

  .playbook-panel,
  .evidence-panel,
  .roster-panel,
  .fit-panel,
  .sticky-panel {
    position: static;
    max-height: none;
  }

  .map-board,
  .anti-board,
  .utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-top {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .top-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .command-strip,
  .section-head,
  .radar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card h2 {
    font-size: 30px;
  }

  .script-grid,
  .editorial-grid,
  .social-strip,
    .module-grid,
    .onboarding-grid,
    .prep-pack-grid,
  .habits-board,
  .metric-grid,
  .radar-legend,
  .workflow-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 {
    grid-column: auto;
  }

  .export-actions {
    justify-content: flex-start;
  }

  .anti-layout {
    grid-template-columns: 1fr;
  }

  .replay-layout {
    grid-template-columns: 1fr;
  }

  .playbook-panel,
  .evidence-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 12px;
  }

  .main-tabs,
  .script-grid,
  .editorial-grid,
  .social-strip,
  .module-grid,
  .onboarding-grid,
  .prep-pack-grid,
  .habits-board,
  .map-board,
  .anti-board,
  .utility-grid,
  .cockpit-grid,
  .metric-grid,
  .legend-strip,
  .radar-legend,
  .workflow-filters,
  .split-area {
    grid-template-columns: 1fr;
  }

  .main-tabs {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 1fr);
    grid-template-columns: none;
  }

  .command-strip h1 {
    font-size: 23px;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-card h2 {
    font-size: 25px;
  }

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

  #frameReadout {
    margin-left: 0;
  }

.role-row {
  grid-template-columns: 1fr;
  }
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .radar-panel {
  background: #f8f3ea;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre {
  background: #faf6ee;
}

body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi,
body:not([data-theme="dark"]) .mini-kpi,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .tool-dock-grid span {
  background: #eee7da;
}

body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .ghost-button {
  background: #fbf7ef;
}

@media print {
  body {
    background: #ffffff;
    color: #101820;
  }

  .app-top,
  .command-strip,
  .onboarding-panel,
  .export-actions,
  .prototype-toast,
  .top-actions {
    display: none !important;
  }

  .workspace {
    padding: 0;
  }

  .tab-page {
    display: none !important;
  }

  #prep {
    display: block !important;
  }

  .panel,
  .prep-card {
    break-inside: avoid;
    box-shadow: none;
    border-color: #cbd5e1;
  }

  .prep-layout {
    display: block;
  }
}

body[data-theme="dark"] .app-top {
  border-bottom-color: #1c2632;
  background: linear-gradient(90deg, #05080c, #0c1118 48%, #070b10);
}

body[data-theme="dark"] .main-tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

body[data-theme="dark"] .main-tabs button {
  color: #b6c4d4;
}

body[data-theme="dark"] .main-tabs button.active,
body[data-theme="dark"] .main-tabs button:hover {
  background: #e7edf5;
  color: #0b0f14;
}

body[data-theme="dark"] .team-switcher input,
body[data-theme="dark"] .inline-search,
body[data-theme="dark"] .fit-panel select,
body[data-theme="dark"] .workflow-filters select,
body[data-theme="dark"] .transport select {
  border-color: var(--line);
  background: #0d131b;
  color: var(--ink);
}

body[data-theme="dark"] .team-menu {
  border-color: var(--line-strong);
  background: #0a0e14;
}

body[data-theme="dark"] .team-menu button {
  border-color: var(--line);
  background: #121821;
  color: var(--ink);
}

body[data-theme="dark"] .team-menu button.active,
body[data-theme="dark"] .team-menu button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

body[data-theme="dark"] .command-strip,
body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .read-card,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .radar-panel {
  border-color: var(--line);
  background: var(--surface);
}

body[data-theme="dark"] .hero-card {
  background:
    linear-gradient(135deg, rgba(43, 36, 19, 0.78), rgba(18, 24, 33, 0.96) 48%),
    var(--surface);
}

body[data-theme="dark"] .kpi,
body[data-theme="dark"] .mini-kpi,
body[data-theme="dark"] .read-row,
body[data-theme="dark"] .module-grid button,
body[data-theme="dark"] .cockpit-summary,
body[data-theme="dark"] .cockpit-block,
body[data-theme="dark"] .cockpit-map-card,
body[data-theme="dark"] .cockpit-line,
body[data-theme="dark"] .script-card,
body[data-theme="dark"] .editorial-lead,
body[data-theme="dark"] .editorial-card,
body[data-theme="dark"] .social-strip article,
body[data-theme="dark"] .workflow-answer article,
body[data-theme="dark"] .prep-session-card,
body[data-theme="dark"] .workflow-step,
body[data-theme="dark"] .workflow-round,
body[data-theme="dark"] .workflow-site,
body[data-theme="dark"] .review-item,
body[data-theme="dark"] .map-card,
body[data-theme="dark"] .anti-card,
body[data-theme="dark"] .stack-item,
body[data-theme="dark"] .utility-card,
body[data-theme="dark"] .player-card,
body[data-theme="dark"] .round-button,
body[data-theme="dark"] .replacement-card,
body[data-theme="dark"] .legend-item,
body[data-theme="dark"] .metric,
body[data-theme="dark"] .metric-help article,
body[data-theme="dark"] .prep-card,
body[data-theme="dark"] .habit-card,
body[data-theme="dark"] .role-row,
body[data-theme="dark"] .fit-summary,
body[data-theme="dark"] .data-table,
body[data-theme="dark"] pre {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

body[data-theme="dark"] .cockpit-tags span,
body[data-theme="dark"] .cockpit-line > span,
body[data-theme="dark"] .workflow-flags span,
body[data-theme="dark"] .health-strip span,
body[data-theme="dark"] .status-pill,
body[data-theme="dark"] .role-pill,
body[data-theme="dark"] .clip-meta span,
body[data-theme="dark"] .map-meta span,
body[data-theme="dark"] .review-actions button {
  border-color: var(--line);
  background: #101720;
  color: var(--muted);
}

body[data-theme="dark"] .prep-card.target {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-soft), var(--surface-2) 64%);
}

body[data-theme="dark"] .habit-card button {
  border-color: var(--line);
  background: #101720;
  color: var(--ink);
}

body[data-theme="dark"] .primary-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #101318;
}

body[data-theme="dark"] .ghost-button {
  border-color: var(--line-strong);
  background: #101720;
  color: var(--ink);
}

body[data-theme="dark"] .ghost-button:hover,
body[data-theme="dark"] .review-actions button:hover,
body[data-theme="dark"] .play-list button:hover,
body[data-theme="dark"] .example-list button:hover,
body[data-theme="dark"] .player-card:hover,
body[data-theme="dark"] .map-card:hover,
body[data-theme="dark"] .round-button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

body[data-theme="dark"] .player-card.active,
body[data-theme="dark"] .map-card.active,
body[data-theme="dark"] .play-list button.active,
body[data-theme="dark"] .example-list button.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

body[data-theme="dark"] .radar-frame,
body[data-theme="dark"] .replay-guide {
  border-color: var(--line);
  background: #080c12;
}

body[data-theme="dark"] .radar-empty {
  color: var(--muted);
}

body[data-theme="dark"] .risk.high {
  color: #ff9a91;
}

body[data-theme="dark"] .risk.medium {
  color: #8db8ff;
}

body[data-theme="dark"] .risk.low {
  color: #95d89a;
}

/* 2026-05-11 coach-room redesign: light-linear structure + analyst briefing hierarchy */
:root {
  --bg: #f0ece3;
  --surface: #f8f3ea;
  --surface-2: #ebe4d8;
  --ink: #111827;
  --ink-2: #403a32;
  --muted: #756c5f;
  --line: #ded4c4;
  --line-strong: #c9bca8;
  --dark: #111827;
  --dark-2: #1f2937;
  --gold: #2563eb;
  --gold-soft: #eef4ff;
  --teal: #0f766e;
  --blue: #4f46e5;
  --red: #dc2626;
  --green: #15803d;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.10);
  --soft-shadow: 0 1px 3px rgba(17, 24, 39, 0.055);
}

body {
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.94), rgba(240, 236, 227, 0.98)),
    var(--bg);
}

.app {
  min-height: 100vh;
}

.app-top {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: 260px;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(248, 243, 234, 0.97);
  color: var(--ink);
  box-shadow: 1px 0 0 rgba(17, 24, 39, 0.02);
}

.brand {
  gap: 10px;
  min-height: 56px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  border-radius: 8px;
  background: #0b0f14;
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.brand em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.main-tabs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.main-tabs::before {
  content: "Workspace";
  margin: 2px 0 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-tabs button {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.main-tabs button.active,
.main-tabs button:hover {
  border-color: var(--line);
  background: var(--gold-soft);
  color: var(--gold);
}

.top-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.room-identifier {
  margin-top: -8px;
  border-color: var(--line);
  background: #ebe4d8;
}

.theme-toggle {
  justify-content: center;
  min-height: 38px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  border-radius: 8px;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.team-switcher label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.team-switcher input {
  border-color: var(--line);
  background: #faf6ee;
  color: var(--ink);
  border-radius: 8px;
}

.team-menu {
  right: auto;
  left: 0;
  width: min(360px, calc(100vw - 36px));
  border-color: var(--line);
  background: #faf6ee;
}

.team-menu button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.team-menu button.active,
.team-menu button:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.workspace {
  margin-left: 260px;
  padding: 28px 36px 48px;
  gap: 20px;
}

.command-strip {
  padding: 2px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.command-strip h1,
.hero-card h2,
.read-card h2,
.section-head h2,
.radar-head h2,
.player-profile h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.command-strip h1 {
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
}

.eyebrow,
.team-switcher label,
.section-head span,
.health-strip span,
.muted-text,
.prep-card span,
.workflow-filters label,
.subsection-head span,
.status-pill,
.kpi span,
.mini-kpi span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.panel,
.hero-card,
.read-card,
.radar-panel {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.panel,
.read-card {
  padding: 18px;
}

.section-head,
.radar-head {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.section-head h2,
.radar-head h2 {
  font-size: 22px;
  font-weight: 700;
}

.hero-card {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(232, 239, 251, 0.72), rgba(248, 243, 234, 0.98) 56%),
    var(--surface);
}

.hero-card h2 {
  font-size: 44px;
  font-weight: 700;
}

.health-strip span,
.kpi,
.mini-kpi,
.status-pill,
.role-pill,
.clip-meta span,
.map-meta span {
  border-color: var(--line);
  background: #faf6ee;
  color: var(--ink-2);
  border-radius: 8px;
}

.prep-pack-grid,
.habits-board,
.metric-grid {
  gap: 14px;
}

.prep-card,
.habit-card,
.cockpit-block,
.cockpit-map-card,
.cockpit-line,
.workflow-answer article,
.prep-session-card,
.workflow-step,
.workflow-round,
.workflow-site,
.review-item,
.map-card,
.anti-card,
.stack-item,
.utility-card,
.player-card,
.round-button,
.replacement-card,
.legend-item,
.metric,
.metric-help article,
.role-row,
.fit-summary,
.data-table {
  border-color: var(--line);
  background: #faf6ee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.035);
}

.prep-card {
  min-height: 164px;
  padding: 16px;
}

.prep-card.target {
  border-color: rgba(37, 99, 235, 0.34);
  background:
    linear-gradient(180deg, rgba(238, 244, 255, 0.88), rgba(255, 255, 255, 0.98));
}

.prep-card::before,
.kpi::before,
.mini-kpi::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.72;
}

.prep-card.risk::before {
  background: var(--red);
}

.prep-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}

.prep-card p,
.prep-card li,
.habit-card p,
.habit-card em,
.read-row p,
.script-card p,
.map-card p,
.anti-card p,
.stack-item p,
.utility-card p,
.fit-summary p,
.muted-text {
  color: var(--ink-2);
  font-weight: 500;
}

.onboarding-panel {
  background: #f6efe1;
}

.onboarding-grid article {
  background: var(--surface);
  border-radius: 8px;
}

.tool-dock-panel {
  background:
    linear-gradient(180deg, rgba(248, 243, 234, 0.98), rgba(240, 236, 227, 0.98)),
    var(--surface);
}

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

.tool-dock-grid button {
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  background: #faf6ee;
  color: var(--ink);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.035);
}

.tool-dock-grid button:hover {
  border-color: rgba(37, 99, 235, 0.44);
  background: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
}

.tool-dock-grid span {
  width: fit-content;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.tool-dock-grid strong {
  font-size: 15px;
  line-height: 1.18;
}

.tool-dock-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.38;
}

.script-card,
.editorial-lead {
  border-left-color: var(--gold);
}

.read-row:hover,
.map-card:hover,
.play-list button:hover,
.example-list button:hover,
.anti-card:hover,
.stack-item:hover,
.utility-card:hover,
.player-card:hover,
.round-button:hover,
.replacement-card:hover,
.cockpit-line.clickable:hover,
.cockpit-map-card:hover {
  border-color: rgba(37, 99, 235, 0.44);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.08);
}

.primary-button {
  border-radius: 8px;
}

.ghost-button {
  border-radius: 8px;
  background: #ffffff;
}

body[data-theme="dark"] {
  --bg: #0b1017;
  --surface: #111827;
  --surface-2: #172033;
  --ink: #f8fafc;
  --ink-2: #d1d5db;
  --muted: #94a3b8;
  --line: #263245;
  --line-strong: #334155;
  --gold: #60a5fa;
  --gold-soft: #0f233f;
  --blue: #93c5fd;
  --teal: #5eead4;
  --red: #f87171;
  --green: #86efac;
}

body[data-theme="dark"] {
  background: #0b1017;
}

/* Coachroom13 final cascade: real cream mode. */
html {
  background: #e7dbc9;
}

html:has(body[data-theme="dark"]) {
  background: #0b1017;
}

body:not([data-theme="dark"]) {
  --bg: #e7dbc9;
  --surface: #f3eadc;
  --surface-2: #eadcc8;
  --ink: #211a14;
  --ink-2: #43372c;
  --muted: #766756;
  --line: #cbb99f;
  --line-strong: #ae9779;
  --gold: #416fa6;
  --gold-soft: #d9e4ee;
  --teal: #397f76;
  --blue: #416fa6;
  --red: #a84e44;
  --green: #557d4d;
  --shadow: 0 18px 42px rgba(62, 45, 29, 0.12);
  --soft-shadow: 0 1px 3px rgba(62, 45, 29, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 244, 225, 0.62), transparent 30%),
    linear-gradient(180deg, #eee2d0 0%, #e6d8c4 100%);
  color: var(--ink);
}

body:not([data-theme="dark"]) .app-top {
  background: #e5d6c1;
  border-right-color: #c2ae91;
  color: var(--ink);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .replay-layout .panel,
body:not([data-theme="dark"]) .evidence-panel,
body:not([data-theme="dark"]) .playbook-panel {
  background: #f3eadc;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(217, 228, 238, 0.78), rgba(243, 234, 220, 0.98) 56%),
    #f3eadc;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .ghost-button,
body:not([data-theme="dark"]) .play-list button,
body:not([data-theme="dark"]) .example-list button,
body:not([data-theme="dark"]) .player-key-item,
body:not([data-theme="dark"]) .evidence-item {
  background: #f8efdf;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand strong,
body:not([data-theme="dark"]) .command-strip h1,
body:not([data-theme="dark"]) .hero-card h2,
body:not([data-theme="dark"]) .read-card h2,
body:not([data-theme="dark"]) .section-head h2,
body:not([data-theme="dark"]) .prep-card strong,
body:not([data-theme="dark"]) .habit-card strong,
body:not([data-theme="dark"]) .tool-dock-grid strong,
body:not([data-theme="dark"]) .play-list strong,
body:not([data-theme="dark"]) .example-list strong,
body:not([data-theme="dark"]) .player-key-item strong,
body:not([data-theme="dark"]) .evidence-item strong,
body:not([data-theme="dark"]) .metric strong,
body:not([data-theme="dark"]) .map-card strong,
body:not([data-theme="dark"]) .anti-card strong,
body:not([data-theme="dark"]) .utility-card strong,
body:not([data-theme="dark"]) .player-card strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .muted-text,
body:not([data-theme="dark"]) .hero-card p,
body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .play-list p,
body:not([data-theme="dark"]) .example-list p,
body:not([data-theme="dark"]) .player-key-item p,
body:not([data-theme="dark"]) .evidence-item p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .utility-card p {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .brand em,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span,
body:not([data-theme="dark"]) .room-identifier span,
body:not([data-theme="dark"]) .room-identifier em {
  color: var(--muted);
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span {
  background: #eadcc8;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #554638;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #416fa6;
  background: #416fa6;
  color: #fff8ed;
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #315a8a;
  background: #315a8a;
}

body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .play-list button:hover,
body:not([data-theme="dark"]) .example-list button:hover,
body:not([data-theme="dark"]) .play-list button.active,
body:not([data-theme="dark"]) .example-list button.active,
body:not([data-theme="dark"]) .player-card:hover,
body:not([data-theme="dark"]) .map-card:hover,
body:not([data-theme="dark"]) .round-button:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
}

body:not([data-theme="dark"]) .radar-panel {
  background: #11161d;
  border-color: #3f4d5d;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .radar-panel .legend-item strong,
body:not([data-theme="dark"]) .replay-guide strong {
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head .eyebrow,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) #frameReadout {
  color: #b9c6d5;
}

body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .replay-guide,
body:not([data-theme="dark"]) .phase-chip,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .transport .ghost-button,
body:not([data-theme="dark"]) .transport .ghost-button.dark {
  background: #1b2430;
  border-color: #3f4d5d;
  color: #eef5ff;
}

body:not([data-theme="dark"]) .radar-panel .legend-item p,
body:not([data-theme="dark"]) .replay-guide p,
body:not([data-theme="dark"]) .transport label {
  color: #d4deea;
}

body:not([data-theme="dark"]) .radar-frame {
  background: #080c12;
  border-color: #3f4d5d;
}

body:not([data-theme="dark"]) .player-key-number {
  background: #416fa6;
  border-color: #315a8a;
  color: #fff8ed;
}

.brand-meaning {
  max-width: 720px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.brand-meaning strong {
  color: inherit;
}

/* Coachroom13: cream light mode, softer than white and easier to read. */
html {
  background: #e7dbc9;
}

html:has(body[data-theme="dark"]) {
  background: #0b1017;
}

body:not([data-theme="dark"]) {
  --bg: #e7dbc9;
  --surface: #f3eadc;
  --surface-2: #eadcc8;
  --ink: #211a14;
  --ink-2: #43372c;
  --muted: #766756;
  --line: #cbb99f;
  --line-strong: #ae9779;
  --gold: #416fa6;
  --gold-soft: #d9e4ee;
  --teal: #397f76;
  --blue: #416fa6;
  --red: #a84e44;
  --green: #557d4d;
  --shadow: 0 18px 42px rgba(62, 45, 29, 0.12);
  --soft-shadow: 0 1px 3px rgba(62, 45, 29, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 244, 225, 0.62), transparent 30%),
    linear-gradient(180deg, #eee2d0 0%, #e6d8c4 100%);
  color: var(--ink);
}

body:not([data-theme="dark"]) .app-top {
  background: #e5d6c1;
  border-right-color: #c2ae91;
  color: var(--ink);
  box-shadow: 1px 0 0 rgba(82, 61, 38, 0.08);
}

body:not([data-theme="dark"]) .brand,
body:not([data-theme="dark"]) .top-actions,
body:not([data-theme="dark"]) .command-strip,
body:not([data-theme="dark"]) .section-head,
body:not([data-theme="dark"]) .radar-head {
  border-color: var(--line);
}

body:not([data-theme="dark"]) .brand strong,
body:not([data-theme="dark"]) .command-strip h1,
body:not([data-theme="dark"]) .hero-card h2,
body:not([data-theme="dark"]) .read-card h2,
body:not([data-theme="dark"]) .section-head h2,
body:not([data-theme="dark"]) .player-profile h2,
body:not([data-theme="dark"]) .prep-card strong,
body:not([data-theme="dark"]) .habit-card strong,
body:not([data-theme="dark"]) .cockpit-block strong,
body:not([data-theme="dark"]) .cockpit-map-card strong,
body:not([data-theme="dark"]) .cockpit-line strong,
body:not([data-theme="dark"]) .workflow-answer strong,
body:not([data-theme="dark"]) .workflow-step strong,
body:not([data-theme="dark"]) .workflow-round strong,
body:not([data-theme="dark"]) .workflow-site strong,
body:not([data-theme="dark"]) .review-item strong,
body:not([data-theme="dark"]) .map-card strong,
body:not([data-theme="dark"]) .anti-card strong,
body:not([data-theme="dark"]) .stack-item strong,
body:not([data-theme="dark"]) .utility-card strong,
body:not([data-theme="dark"]) .player-card strong,
body:not([data-theme="dark"]) .round-button strong,
body:not([data-theme="dark"]) .replacement-card strong,
body:not([data-theme="dark"]) .metric strong,
body:not([data-theme="dark"]) .metric-help strong,
body:not([data-theme="dark"]) .role-row strong,
body:not([data-theme="dark"]) .fit-summary strong,
body:not([data-theme="dark"]) .tool-dock-grid strong,
body:not([data-theme="dark"]) .onboarding-grid strong,
body:not([data-theme="dark"]) .read-row strong,
body:not([data-theme="dark"]) .script-card strong,
body:not([data-theme="dark"]) .editorial-card strong,
body:not([data-theme="dark"]) .data-table strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand em,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .subsection-head span,
body:not([data-theme="dark"]) .prep-card span,
body:not([data-theme="dark"]) .workflow-filters label,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) th,
body:not([data-theme="dark"]) .room-identifier span,
body:not([data-theme="dark"]) .room-identifier em {
  color: var(--muted);
}

body:not([data-theme="dark"]) .muted-text,
body:not([data-theme="dark"]) .hero-card p,
body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .onboarding-grid p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .metric-help p,
body:not([data-theme="dark"]) .read-row p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .stack-item p,
body:not([data-theme="dark"]) .utility-card p,
body:not([data-theme="dark"]) .fit-summary p,
body:not([data-theme="dark"]) .workflow-step p,
body:not([data-theme="dark"]) .workflow-round p,
body:not([data-theme="dark"]) .workflow-site p,
body:not([data-theme="dark"]) .review-item p,
body:not([data-theme="dark"]) .script-card p,
body:not([data-theme="dark"]) .editorial-card p,
body:not([data-theme="dark"]) .data-table p {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .replay-layout .panel,
body:not([data-theme="dark"]) .evidence-panel,
body:not([data-theme="dark"]) .playbook-panel {
  background: #f3eadc;
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(217, 228, 238, 0.78), rgba(243, 234, 220, 0.98) 56%),
    #f3eadc;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .ghost-button,
body:not([data-theme="dark"]) .play-list button,
body:not([data-theme="dark"]) .example-list button,
body:not([data-theme="dark"]) .player-key-item,
body:not([data-theme="dark"]) .evidence-item {
  background: #f8efdf;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span {
  background: #eadcc8;
  border-color: var(--line);
  color: var(--muted);
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #554638;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #416fa6;
  background: #416fa6;
  color: #fff8ed;
  box-shadow: 0 8px 22px rgba(65, 111, 166, 0.18);
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #315a8a;
  background: #315a8a;
}

body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .review-actions button:hover,
body:not([data-theme="dark"]) .read-row:hover,
body:not([data-theme="dark"]) .map-card:hover,
body:not([data-theme="dark"]) .play-list button:hover,
body:not([data-theme="dark"]) .example-list button:hover,
body:not([data-theme="dark"]) .play-list button.active,
body:not([data-theme="dark"]) .example-list button.active,
body:not([data-theme="dark"]) .anti-card:hover,
body:not([data-theme="dark"]) .stack-item:hover,
body:not([data-theme="dark"]) .utility-card:hover,
body:not([data-theme="dark"]) .player-card:hover,
body:not([data-theme="dark"]) .round-button:hover,
body:not([data-theme="dark"]) .replacement-card:hover,
body:not([data-theme="dark"]) .cockpit-line.clickable:hover,
body:not([data-theme="dark"]) .cockpit-map-card:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
  box-shadow: 0 8px 22px rgba(65, 111, 166, 0.10);
}

body:not([data-theme="dark"]) .prep-card.target {
  background:
    linear-gradient(180deg, rgba(217, 228, 238, 0.84), rgba(248, 239, 223, 0.98));
  border-color: #97abc1;
}

body:not([data-theme="dark"]) .risk.high {
  color: #7e2b24;
  background: #edd5cc;
  border-color: #c58e80;
}

body:not([data-theme="dark"]) .risk.medium {
  color: #214b80;
  background: #d9e4ee;
  border-color: #97abc1;
}

body:not([data-theme="dark"]) .risk.low {
  color: #356231;
  background: #dce8d0;
  border-color: #9bb38d;
}

body:not([data-theme="dark"]) .radar-panel {
  background: #11161d;
  border-color: #3f4d5d;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .radar-panel .legend-item strong,
body:not([data-theme="dark"]) .replay-guide strong {
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head .eyebrow,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) #frameReadout {
  color: #b9c6d5;
}

body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .replay-guide,
body:not([data-theme="dark"]) .phase-chip,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .transport .ghost-button,
body:not([data-theme="dark"]) .transport .ghost-button.dark {
  background: #1b2430;
  border-color: #3f4d5d;
  color: #eef5ff;
}

body:not([data-theme="dark"]) .radar-panel .legend-item p,
body:not([data-theme="dark"]) .replay-guide p,
body:not([data-theme="dark"]) .transport label {
  color: #d4deea;
}

body:not([data-theme="dark"]) .radar-frame {
  background: #080c12;
  border-color: #3f4d5d;
}

body:not([data-theme="dark"]) .phase-chip.active,
body:not([data-theme="dark"]) .transport .ghost-button:hover,
body:not([data-theme="dark"]) .transport .ghost-button.dark:hover {
  background: #33435e;
  border-color: #91b6ee;
  color: #f5f9ff;
}

body:not([data-theme="dark"]) .transport {
  border-top-color: #3f4d5d;
}

body:not([data-theme="dark"]) .player-key-number {
  background: #416fa6;
  border-color: #315a8a;
  color: #fff8ed;
}

body:not([data-theme="dark"]) .radar-empty {
  background: rgba(8, 12, 18, 0.78);
  color: #f8fafc;
}

/* Coachroom12: Tools tab readability in warm/light mode. */
body:not([data-theme="dark"]) .replay-layout .panel,
body:not([data-theme="dark"]) .evidence-panel,
body:not([data-theme="dark"]) .playbook-panel {
  background: #362d27;
  border-color: #725d4e;
}

body:not([data-theme="dark"]) .replay-layout .section-head h2,
body:not([data-theme="dark"]) .replay-layout .section-head .eyebrow,
body:not([data-theme="dark"]) .replay-layout .section-head span {
  color: #fff4e8;
}

body:not([data-theme="dark"]) .play-list button,
body:not([data-theme="dark"]) .example-list button,
body:not([data-theme="dark"]) .player-key-item,
body:not([data-theme="dark"]) .evidence-item {
  background: #493c33;
  border-color: #756151;
  color: #fff4e8;
}

body:not([data-theme="dark"]) .play-list button:hover,
body:not([data-theme="dark"]) .example-list button:hover,
body:not([data-theme="dark"]) .play-list button.active,
body:not([data-theme="dark"]) .example-list button.active {
  background: #33435e;
  border-color: #91b6ee;
  color: #f5f9ff;
}

body:not([data-theme="dark"]) .play-list strong,
body:not([data-theme="dark"]) .example-list strong,
body:not([data-theme="dark"]) .player-key-item strong,
body:not([data-theme="dark"]) .evidence-item strong {
  color: #fff9f1;
}

body:not([data-theme="dark"]) .play-list p,
body:not([data-theme="dark"]) .example-list p,
body:not([data-theme="dark"]) .player-key-item p,
body:not([data-theme="dark"]) .evidence-item p,
body:not([data-theme="dark"]) .player-key-item em {
  color: #ead8c4;
}

body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span {
  background: #302923;
  border-color: #756151;
  color: #d9c6b0;
}

body:not([data-theme="dark"]) .radar-panel {
  background: #11161d;
  border-color: #465260;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .radar-panel .section-head h2,
body:not([data-theme="dark"]) .radar-panel .legend-item strong,
body:not([data-theme="dark"]) .replay-guide strong {
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head .eyebrow,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) #frameReadout {
  color: #b9c6d5;
}

body:not([data-theme="dark"]) .radar-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .replay-guide,
body:not([data-theme="dark"]) .phase-chip,
body:not([data-theme="dark"]) .transport select {
  background: #1b2430;
  border-color: #3f4d5d;
  color: #eef5ff;
}

body:not([data-theme="dark"]) .radar-panel .legend-item p,
body:not([data-theme="dark"]) .replay-guide p,
body:not([data-theme="dark"]) .transport label {
  color: #d4deea;
}

body:not([data-theme="dark"]) .radar-frame {
  background: #080c12;
  border-color: #3f4d5d;
}

body:not([data-theme="dark"]) .phase-chip.active {
  background: #33435e;
  border-color: #91b6ee;
  color: #f5f9ff;
}

body:not([data-theme="dark"]) .transport {
  border-top-color: #3f4d5d;
}

body:not([data-theme="dark"]) .transport .ghost-button,
body:not([data-theme="dark"]) .transport .ghost-button.dark {
  background: #1b2430;
  border-color: #4b5c70;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .transport .ghost-button:hover,
body:not([data-theme="dark"]) .transport .ghost-button.dark:hover {
  background: #33435e;
  border-color: #91b6ee;
}

body:not([data-theme="dark"]) .player-key-number {
  background: #9ec5ff;
  border-color: #c2d9ff;
  color: #101318;
}

body:not([data-theme="dark"]) .radar-empty {
  background: rgba(8, 12, 18, 0.78);
  color: #f8fafc;
}

body[data-theme="dark"] .app-top {
  border-right-color: var(--line);
  border-bottom: 0;
  background: rgba(12, 17, 24, 0.97);
  color: var(--ink);
}

body[data-theme="dark"] .brand {
  border-bottom-color: var(--line);
}

body[data-theme="dark"] .brand strong {
  color: var(--ink);
}

body[data-theme="dark"] .main-tabs {
  border: 0;
  background: transparent;
}

body[data-theme="dark"] .main-tabs button.active,
body[data-theme="dark"] .main-tabs button:hover {
  border-color: var(--line);
  background: var(--gold-soft);
  color: var(--gold);
}

body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .team-switcher input,
body[data-theme="dark"] .inline-search,
body[data-theme="dark"] .fit-panel select,
body[data-theme="dark"] .workflow-filters select,
body[data-theme="dark"] .transport select,
body[data-theme="dark"] .ghost-button,
body[data-theme="dark"] .room-identifier,
body[data-theme="dark"] .team-menu,
body[data-theme="dark"] .team-menu button {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

body[data-theme="dark"] .command-strip {
  border-bottom-color: var(--line);
  background: transparent;
}

body[data-theme="dark"] .hero-card {
  background:
    linear-gradient(135deg, rgba(15, 35, 63, 0.92), rgba(17, 24, 39, 0.96) 58%),
    var(--surface);
}

body[data-theme="dark"] .onboarding-panel,
body[data-theme="dark"] .tool-dock-panel,
body[data-theme="dark"] .prep-card.target {
  background: var(--surface);
}

body[data-theme="dark"] .prep-card,
body[data-theme="dark"] .habit-card,
body[data-theme="dark"] .cockpit-block,
body[data-theme="dark"] .cockpit-map-card,
body[data-theme="dark"] .cockpit-line,
body[data-theme="dark"] .workflow-answer article,
body[data-theme="dark"] .prep-session-card,
body[data-theme="dark"] .workflow-step,
body[data-theme="dark"] .workflow-round,
body[data-theme="dark"] .workflow-site,
body[data-theme="dark"] .review-item,
body[data-theme="dark"] .map-card,
body[data-theme="dark"] .anti-card,
body[data-theme="dark"] .stack-item,
body[data-theme="dark"] .utility-card,
body[data-theme="dark"] .player-card,
body[data-theme="dark"] .round-button,
body[data-theme="dark"] .replacement-card,
body[data-theme="dark"] .legend-item,
body[data-theme="dark"] .metric,
body[data-theme="dark"] .metric-help article,
body[data-theme="dark"] .role-row,
body[data-theme="dark"] .fit-summary,
body[data-theme="dark"] .data-table,
body[data-theme="dark"] .onboarding-grid article {
  background: var(--surface-2);
}

body[data-theme="dark"] .tool-dock-grid button {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

body[data-theme="dark"] .tool-dock-grid button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

body[data-theme="dark"] .tool-dock-grid span {
  border-color: var(--line);
  background: #101720;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .workspace {
    padding: 24px 24px 42px;
  }

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

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

@media (max-width: 980px) {
  .app-top {
    position: sticky;
    inset: 0 auto auto 0;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    min-height: 0;
    padding-bottom: 10px;
  }

  .main-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .main-tabs::before {
    display: none;
  }

  .main-tabs button {
    justify-content: center;
    text-align: center;
    padding: 0 8px;
  }

  .top-actions {
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: 0;
    border-top: 0;
  }

  .room-identifier {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

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

@media (max-width: 640px) {
  .workspace {
    padding: 16px 14px 32px;
  }

  .main-tabs {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    grid-template-columns: none;
  }

  .command-strip h1 {
    font-size: 28px;
  }

  .hero-card h2 {
    font-size: 30px;
  }

  .section-head h2,
  .radar-head h2 {
    font-size: 20px;
  }

  .tool-dock-grid {
    grid-template-columns: 1fr;
  }
}

/* Contrast pass for the cream interface */
body:not([data-theme="dark"]) {
  --ink: #101018;
  --ink-2: #2e2923;
  --muted: #5f5549;
  --line: #d4c5ae;
  --line-strong: #b9a78d;
  --gold: #1d4ed8;
  --gold-soft: #e4ecfb;
  --red: #b42318;
  --green: #116a3a;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(29, 78, 216, 0.18);
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #173ea9;
  background: #173ea9;
  color: #ffffff;
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #4f463b;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #a9bde8;
  background: #dce7fb;
  color: #123f98;
}

body:not([data-theme="dark"]) .prep-card span,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .subsection-head span,
body:not([data-theme="dark"]) .workflow-filters label,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) th {
  color: #554b3f;
}

body:not([data-theme="dark"]) .muted-text,
body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .onboarding-grid p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .metric-help p,
body:not([data-theme="dark"]) .read-row p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .stack-item p,
body:not([data-theme="dark"]) .utility-card p,
body:not([data-theme="dark"]) .fit-summary p {
  color: #393229;
}

body:not([data-theme="dark"]) .ghost-button {
  border-color: #c5b69e;
  color: #201b16;
}

body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .review-actions button:hover {
  border-color: #9ab4e8;
  background: #e4ecfb;
  color: #123f98;
}

body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .workflow-flags span {
  border-color: #c7b8a1;
  background: #e7ddcc;
}

body:not([data-theme="dark"]) .risk.high {
  color: #8f1d16;
  background: #f4d8d3;
  border-color: #d99a90;
}

body:not([data-theme="dark"]) .risk.medium {
  color: #174ea6;
  background: #dce7fb;
  border-color: #9ab4e8;
}

body:not([data-theme="dark"]) .risk.low {
  color: #0f5f34;
  background: #dcebdd;
  border-color: #9fc59d;
}

/* Eye-comfort light palette: soft warm grey, less yellow and less white glare. */
body:not([data-theme="dark"]) {
  --bg: #eceeed;
  --surface: #f4f5f3;
  --surface-2: #e4e7e5;
  --ink: #101318;
  --ink-2: #30343a;
  --muted: #5f666d;
  --line: #cbd1d1;
  --line-strong: #b8c0c0;
  --gold: #1e5fbf;
  --gold-soft: #dbe7f6;
}

body:not([data-theme="dark"]) {
  background:
    linear-gradient(180deg, rgba(240, 242, 241, 0.96), rgba(236, 238, 237, 0.98)),
    var(--bg);
}

body:not([data-theme="dark"]) .app-top {
  background: rgba(244, 245, 243, 0.98);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .radar-panel {
  background: #f4f5f3;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .ghost-button {
  background: #f7f8f6;
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle {
  background: #e6e9e7;
}

body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .workflow-flags span {
  border-color: #c2caca;
  background: #e1e5e4;
  color: #4d565e;
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #47505a;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #a9bddb;
  background: #dbe7f6;
  color: #194f9f;
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(219, 231, 246, 0.72), rgba(244, 245, 243, 0.98) 58%),
    #f4f5f3;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #1e5fbf;
  background: #1e5fbf;
}

/* Warm lounge light mode: lower brightness, warmer surfaces, still readable. */
body:not([data-theme="dark"]) {
  --bg: #25211e;
  --surface: #332d29;
  --surface-2: #3b342f;
  --ink: #f5eee5;
  --ink-2: #e0d4c7;
  --muted: #b8aa9a;
  --line: #574b42;
  --line-strong: #6b5a4e;
  --gold: #8fb7ff;
  --gold-soft: #2f3d55;
  --teal: #72d4c7;
  --blue: #9bbcff;
  --red: #ff9a8f;
  --green: #98d59d;
  --shadow: 0 18px 46px rgba(11, 8, 6, 0.24);
  --soft-shadow: 0 1px 3px rgba(11, 8, 6, 0.18);
}

body:not([data-theme="dark"]) {
  background:
    radial-gradient(circle at 20% 0%, rgba(84, 69, 56, 0.34), transparent 34%),
    linear-gradient(180deg, #2b2622, #211d1a);
  color: var(--ink);
}

body:not([data-theme="dark"]) .app-top {
  background: rgba(36, 31, 28, 0.98);
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand strong,
body:not([data-theme="dark"]) .command-strip h1,
body:not([data-theme="dark"]) .section-head h2,
body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .prep-card strong,
body:not([data-theme="dark"]) .tool-dock-grid strong,
body:not([data-theme="dark"]) .onboarding-grid strong,
body:not([data-theme="dark"]) .read-row strong,
body:not([data-theme="dark"]) .map-card strong,
body:not([data-theme="dark"]) .anti-card strong,
body:not([data-theme="dark"]) .stack-item strong,
body:not([data-theme="dark"]) .utility-card strong,
body:not([data-theme="dark"]) .player-card strong,
body:not([data-theme="dark"]) .replacement-card strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .radar-panel {
  background: #332d29;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .ghost-button {
  background: #3b342f;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle {
  background: #2d2824;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(47, 61, 85, 0.64), rgba(51, 45, 41, 0.98) 58%),
    #332d29;
}

body:not([data-theme="dark"]) .prep-card.target {
  background:
    linear-gradient(180deg, rgba(47, 61, 85, 0.72), rgba(59, 52, 47, 0.98));
}

body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .onboarding-grid p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .metric-help p,
body:not([data-theme="dark"]) .read-row p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .stack-item p,
body:not([data-theme="dark"]) .utility-card p,
body:not([data-theme="dark"]) .fit-summary p,
body:not([data-theme="dark"]) .muted-text {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .prep-card span,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .subsection-head span,
body:not([data-theme="dark"]) .workflow-filters label,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) th {
  color: var(--muted);
}

body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .workflow-flags span {
  background: #2b2622;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .main-tabs button {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover,
body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .review-actions button:hover {
  border-color: #5f79a7;
  background: #2f3d55;
  color: #dbe8ff;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #8fb7ff;
  background: #8fb7ff;
  color: #111827;
  box-shadow: 0 8px 24px rgba(143, 183, 255, 0.18);
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #b6d0ff;
  background: #b6d0ff;
  color: #111827;
}

body:not([data-theme="dark"]) .risk.high {
  color: #ffd6d1;
  background: #5b302d;
  border-color: #8c4c45;
}

body:not([data-theme="dark"]) .risk.medium {
  color: #dbe8ff;
  background: #2f3d55;
  border-color: #5f79a7;
}

body:not([data-theme="dark"]) .risk.low {
  color: #d9f8dc;
  background: #294833;
  border-color: #5f875f;
}

/* Coachroom10: base Signal Room visual repair. Keeps the warm room mood, but restores hierarchy and legibility. */
body:not([data-theme="dark"]) {
  --bg: #28211d;
  --surface: #352d28;
  --surface-2: #42372f;
  --ink: #fff4e8;
  --ink-2: #ead8c4;
  --muted: #c8b49f;
  --line: #665449;
  --line-strong: #7b6759;
  --gold: #9ec5ff;
  --gold-soft: #33435e;
  --teal: #79dbc9;
  --blue: #a8c9ff;
  --red: #ff9d91;
  --green: #a5df9b;
  --shadow: 0 22px 58px rgba(10, 7, 5, 0.28);
  --soft-shadow: 0 1px 2px rgba(10, 7, 5, 0.28);
  background:
    radial-gradient(circle at 18% 0%, rgba(113, 87, 63, 0.26), transparent 32%),
    radial-gradient(circle at 72% 8%, rgba(68, 87, 111, 0.16), transparent 28%),
    linear-gradient(180deg, #2d2520 0%, #231d19 100%);
  color: var(--ink);
}

body:not([data-theme="dark"]) .app-top {
  background: rgba(39, 32, 28, 0.985);
  border-right-color: #58483e;
  box-shadow: 1px 0 0 rgba(255, 244, 232, 0.03);
}

body:not([data-theme="dark"]) .brand,
body:not([data-theme="dark"]) .top-actions,
body:not([data-theme="dark"]) .command-strip,
body:not([data-theme="dark"]) .section-head,
body:not([data-theme="dark"]) .radar-head {
  border-color: var(--line);
}

body:not([data-theme="dark"]) .workspace {
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand strong,
body:not([data-theme="dark"]) .command-strip h1,
body:not([data-theme="dark"]) .hero-card h2,
body:not([data-theme="dark"]) .read-card h2,
body:not([data-theme="dark"]) .section-head h2,
body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .player-profile h2,
body:not([data-theme="dark"]) .prep-card strong,
body:not([data-theme="dark"]) .habit-card strong,
body:not([data-theme="dark"]) .cockpit-block strong,
body:not([data-theme="dark"]) .cockpit-map-card strong,
body:not([data-theme="dark"]) .cockpit-line strong,
body:not([data-theme="dark"]) .workflow-answer strong,
body:not([data-theme="dark"]) .workflow-step strong,
body:not([data-theme="dark"]) .workflow-round strong,
body:not([data-theme="dark"]) .workflow-site strong,
body:not([data-theme="dark"]) .review-item strong,
body:not([data-theme="dark"]) .map-card strong,
body:not([data-theme="dark"]) .anti-card strong,
body:not([data-theme="dark"]) .stack-item strong,
body:not([data-theme="dark"]) .utility-card strong,
body:not([data-theme="dark"]) .player-card strong,
body:not([data-theme="dark"]) .round-button strong,
body:not([data-theme="dark"]) .replacement-card strong,
body:not([data-theme="dark"]) .metric strong,
body:not([data-theme="dark"]) .metric-help strong,
body:not([data-theme="dark"]) .role-row strong,
body:not([data-theme="dark"]) .fit-summary strong,
body:not([data-theme="dark"]) .tool-dock-grid strong,
body:not([data-theme="dark"]) .onboarding-grid strong,
body:not([data-theme="dark"]) .read-row strong,
body:not([data-theme="dark"]) .script-card strong,
body:not([data-theme="dark"]) .editorial-card strong,
body:not([data-theme="dark"]) .data-table strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand em,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .subsection-head span,
body:not([data-theme="dark"]) .radar-head span,
body:not([data-theme="dark"]) .prep-card span,
body:not([data-theme="dark"]) .workflow-filters label,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) th,
body:not([data-theme="dark"]) .room-identifier span,
body:not([data-theme="dark"]) .room-identifier em {
  color: var(--muted);
}

body:not([data-theme="dark"]) .muted-text,
body:not([data-theme="dark"]) .hero-card p,
body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .onboarding-grid p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .metric-help p,
body:not([data-theme="dark"]) .read-row p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .stack-item p,
body:not([data-theme="dark"]) .utility-card p,
body:not([data-theme="dark"]) .fit-summary p,
body:not([data-theme="dark"]) .workflow-step p,
body:not([data-theme="dark"]) .workflow-round p,
body:not([data-theme="dark"]) .workflow-site p,
body:not([data-theme="dark"]) .review-item p,
body:not([data-theme="dark"]) .script-card p,
body:not([data-theme="dark"]) .editorial-card p,
body:not([data-theme="dark"]) .data-table p {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card {
  background: rgba(53, 45, 40, 0.98);
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(51, 67, 94, 0.68), rgba(53, 45, 40, 0.98) 58%),
    #352d28;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .ghost-button {
  background: #41362f;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .prep-card.target {
  background:
    linear-gradient(180deg, rgba(51, 67, 94, 0.78), rgba(65, 54, 47, 0.98));
  border-color: #6f83a6;
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle {
  background: #2f2823;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .room-identifier strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .workflow-flags span,
body:not([data-theme="dark"]) .legend-item {
  background: #302923;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #ddc9b4;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #6f83a6;
  background: #33435e;
  color: #edf5ff;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #9ec5ff;
  background: #9ec5ff;
  color: #101318;
  box-shadow: 0 8px 24px rgba(158, 197, 255, 0.18);
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #c1d9ff;
  background: #c1d9ff;
}

body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .review-actions button:hover,
body:not([data-theme="dark"]) .read-row:hover,
body:not([data-theme="dark"]) .map-card:hover,
body:not([data-theme="dark"]) .play-list button:hover,
body:not([data-theme="dark"]) .example-list button:hover,
body:not([data-theme="dark"]) .anti-card:hover,
body:not([data-theme="dark"]) .stack-item:hover,
body:not([data-theme="dark"]) .utility-card:hover,
body:not([data-theme="dark"]) .player-card:hover,
body:not([data-theme="dark"]) .round-button:hover,
body:not([data-theme="dark"]) .replacement-card:hover,
body:not([data-theme="dark"]) .cockpit-line.clickable:hover,
body:not([data-theme="dark"]) .cockpit-map-card:hover {
  border-color: #6f83a6;
  background: #33435e;
  color: #edf5ff;
  box-shadow: 0 8px 24px rgba(10, 7, 5, 0.18);
}

body:not([data-theme="dark"]) .radar-panel {
  background: #17191d;
  border-color: #3e454f;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-panel .radar-head,
body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .radar-panel .transport,
body:not([data-theme="dark"]) .radar-panel .player-key,
body:not([data-theme="dark"]) .radar-panel .play-list button,
body:not([data-theme="dark"]) .radar-panel .example-list button {
  border-color: rgba(255, 255, 255, 0.12);
}

body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .radar-panel .transport select,
body:not([data-theme="dark"]) .radar-panel .play-list button,
body:not([data-theme="dark"]) .radar-panel .example-list button {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

html {
  min-height: 100%;
  background: #28211d;
}

html:has(body[data-theme="dark"]) {
  background: #0b1017;
}

body {
  min-height: 100vh;
}

body[data-theme="dark"] {
  background: #0b1017;
}

/* Coachroom13 final cascade: real cream mode. */
html {
  background: #e7dbc9;
}

html:has(body[data-theme="dark"]) {
  background: #0b1017;
}

body:not([data-theme="dark"]) {
  --bg: #e7dbc9;
  --surface: #f3eadc;
  --surface-2: #eadcc8;
  --ink: #211a14;
  --ink-2: #43372c;
  --muted: #766756;
  --line: #cbb99f;
  --line-strong: #ae9779;
  --gold: #416fa6;
  --gold-soft: #d9e4ee;
  --teal: #397f76;
  --blue: #416fa6;
  --red: #a84e44;
  --green: #557d4d;
  --shadow: 0 18px 42px rgba(62, 45, 29, 0.12);
  --soft-shadow: 0 1px 3px rgba(62, 45, 29, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 244, 225, 0.62), transparent 30%),
    linear-gradient(180deg, #eee2d0 0%, #e6d8c4 100%);
  color: var(--ink);
}

body:not([data-theme="dark"]) .app-top {
  background: #e5d6c1;
  border-right-color: #c2ae91;
  color: var(--ink);
}

body:not([data-theme="dark"]) .panel,
body:not([data-theme="dark"]) .read-card,
body:not([data-theme="dark"]) .hero-card,
body:not([data-theme="dark"]) .replay-layout .panel,
body:not([data-theme="dark"]) .evidence-panel,
body:not([data-theme="dark"]) .playbook-panel {
  background: #f3eadc;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .hero-card {
  background:
    linear-gradient(135deg, rgba(217, 228, 238, 0.78), rgba(243, 234, 220, 0.98) 56%),
    #f3eadc;
}

body:not([data-theme="dark"]) .prep-card,
body:not([data-theme="dark"]) .habit-card,
body:not([data-theme="dark"]) .cockpit-block,
body:not([data-theme="dark"]) .cockpit-map-card,
body:not([data-theme="dark"]) .cockpit-line,
body:not([data-theme="dark"]) .workflow-answer article,
body:not([data-theme="dark"]) .prep-session-card,
body:not([data-theme="dark"]) .workflow-step,
body:not([data-theme="dark"]) .workflow-round,
body:not([data-theme="dark"]) .workflow-site,
body:not([data-theme="dark"]) .review-item,
body:not([data-theme="dark"]) .map-card,
body:not([data-theme="dark"]) .anti-card,
body:not([data-theme="dark"]) .stack-item,
body:not([data-theme="dark"]) .utility-card,
body:not([data-theme="dark"]) .player-card,
body:not([data-theme="dark"]) .round-button,
body:not([data-theme="dark"]) .replacement-card,
body:not([data-theme="dark"]) .metric,
body:not([data-theme="dark"]) .metric-help article,
body:not([data-theme="dark"]) .role-row,
body:not([data-theme="dark"]) .fit-summary,
body:not([data-theme="dark"]) .data-table,
body:not([data-theme="dark"]) .tool-dock-grid button,
body:not([data-theme="dark"]) .onboarding-grid article,
body:not([data-theme="dark"]) .module-grid button,
body:not([data-theme="dark"]) .read-row,
body:not([data-theme="dark"]) .script-card,
body:not([data-theme="dark"]) .editorial-lead,
body:not([data-theme="dark"]) .editorial-card,
body:not([data-theme="dark"]) .social-strip article,
body:not([data-theme="dark"]) pre,
body:not([data-theme="dark"]) .team-menu,
body:not([data-theme="dark"]) .team-menu button,
body:not([data-theme="dark"]) .team-switcher input,
body:not([data-theme="dark"]) .inline-search,
body:not([data-theme="dark"]) .fit-panel select,
body:not([data-theme="dark"]) .workflow-filters select,
body:not([data-theme="dark"]) .ghost-button,
body:not([data-theme="dark"]) .play-list button,
body:not([data-theme="dark"]) .example-list button,
body:not([data-theme="dark"]) .player-key-item,
body:not([data-theme="dark"]) .evidence-item {
  background: #f8efdf;
  border-color: var(--line);
  color: var(--ink);
}

body:not([data-theme="dark"]) .brand strong,
body:not([data-theme="dark"]) .command-strip h1,
body:not([data-theme="dark"]) .hero-card h2,
body:not([data-theme="dark"]) .read-card h2,
body:not([data-theme="dark"]) .section-head h2,
body:not([data-theme="dark"]) .prep-card strong,
body:not([data-theme="dark"]) .habit-card strong,
body:not([data-theme="dark"]) .tool-dock-grid strong,
body:not([data-theme="dark"]) .play-list strong,
body:not([data-theme="dark"]) .example-list strong,
body:not([data-theme="dark"]) .player-key-item strong,
body:not([data-theme="dark"]) .evidence-item strong,
body:not([data-theme="dark"]) .metric strong,
body:not([data-theme="dark"]) .map-card strong,
body:not([data-theme="dark"]) .anti-card strong,
body:not([data-theme="dark"]) .utility-card strong,
body:not([data-theme="dark"]) .player-card strong {
  color: var(--ink);
}

body:not([data-theme="dark"]) .muted-text,
body:not([data-theme="dark"]) .hero-card p,
body:not([data-theme="dark"]) .prep-card p,
body:not([data-theme="dark"]) .prep-card li,
body:not([data-theme="dark"]) .habit-card p,
body:not([data-theme="dark"]) .habit-card em,
body:not([data-theme="dark"]) .tool-dock-grid p,
body:not([data-theme="dark"]) .play-list p,
body:not([data-theme="dark"]) .example-list p,
body:not([data-theme="dark"]) .player-key-item p,
body:not([data-theme="dark"]) .evidence-item p,
body:not([data-theme="dark"]) .metric p,
body:not([data-theme="dark"]) .map-card p,
body:not([data-theme="dark"]) .anti-card p,
body:not([data-theme="dark"]) .utility-card p {
  color: var(--ink-2);
}

body:not([data-theme="dark"]) .brand em,
body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .team-switcher label,
body:not([data-theme="dark"]) .section-head span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .kpi span,
body:not([data-theme="dark"]) .mini-kpi span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span,
body:not([data-theme="dark"]) .room-identifier span,
body:not([data-theme="dark"]) .room-identifier em {
  color: var(--muted);
}

body:not([data-theme="dark"]) .onboarding-panel,
body:not([data-theme="dark"]) .tool-dock-panel,
body:not([data-theme="dark"]) .room-identifier,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .health-strip span,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .role-pill,
body:not([data-theme="dark"]) .tool-dock-grid span,
body:not([data-theme="dark"]) .map-meta span,
body:not([data-theme="dark"]) .legend-item,
body:not([data-theme="dark"]) .play-list span,
body:not([data-theme="dark"]) .example-list span {
  background: #eadcc8;
  border-color: var(--line);
}

body:not([data-theme="dark"]) .main-tabs button {
  color: #554638;
}

body:not([data-theme="dark"]) .main-tabs button.active,
body:not([data-theme="dark"]) .main-tabs button:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
}

body:not([data-theme="dark"]) .primary-button {
  border-color: #416fa6;
  background: #416fa6;
  color: #fff8ed;
}

body:not([data-theme="dark"]) .primary-button:hover {
  border-color: #315a8a;
  background: #315a8a;
}

body:not([data-theme="dark"]) .ghost-button:hover,
body:not([data-theme="dark"]) .tool-dock-grid button:hover,
body:not([data-theme="dark"]) .habit-card button:hover,
body:not([data-theme="dark"]) .play-list button:hover,
body:not([data-theme="dark"]) .example-list button:hover,
body:not([data-theme="dark"]) .play-list button.active,
body:not([data-theme="dark"]) .example-list button.active,
body:not([data-theme="dark"]) .player-card:hover,
body:not([data-theme="dark"]) .map-card:hover,
body:not([data-theme="dark"]) .round-button:hover {
  border-color: #97abc1;
  background: #d9e4ee;
  color: #214b80;
}

body:not([data-theme="dark"]) .radar-panel {
  background: #11161d;
  border-color: #3f4d5d;
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head h2,
body:not([data-theme="dark"]) .radar-panel .legend-item strong,
body:not([data-theme="dark"]) .replay-guide strong {
  color: #f8fafc;
}

body:not([data-theme="dark"]) .radar-head .eyebrow,
body:not([data-theme="dark"]) .clip-meta span,
body:not([data-theme="dark"]) #frameReadout {
  color: #b9c6d5;
}

body:not([data-theme="dark"]) .radar-panel .legend-item,
body:not([data-theme="dark"]) .replay-guide,
body:not([data-theme="dark"]) .phase-chip,
body:not([data-theme="dark"]) .transport select,
body:not([data-theme="dark"]) .transport .ghost-button,
body:not([data-theme="dark"]) .transport .ghost-button.dark {
  background: #1b2430;
  border-color: #3f4d5d;
  color: #eef5ff;
}

body:not([data-theme="dark"]) .radar-panel .legend-item p,
body:not([data-theme="dark"]) .replay-guide p,
body:not([data-theme="dark"]) .transport label {
  color: #d4deea;
}

body:not([data-theme="dark"]) .radar-frame {
  background: #080c12;
  border-color: #3f4d5d;
}

body:not([data-theme="dark"]) .player-key-number {
  background: #416fa6;
  border-color: #315a8a;
  color: #fff8ed;
}
