:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #66717e;
  --line: #d7dce1;
  --line-strong: #b8c0c8;
  --paper: #ffffff;
  --canvas: #f3f4f2;
  --accent: #c61f46;
  --accent-dark: #971735;
  --accent-soft: #f8e9ed;
  --teal: #08766f;
  --teal-soft: #e3f4f1;
  --amber: #9a6400;
  --amber-soft: #fff2d6;
  --danger: #a4262c;
  --danger-soft: #fbeaec;
  --map-ocean: #0c1822;
  --map-land: #213440;
  --map-border: #6d8591;
  --shadow: 0 12px 32px rgb(24 35 44 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }

button, select, input, textarea { min-width: 0; }

button { cursor: pointer; }

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

:focus-visible { outline: 3px solid #1c73c9; outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: .9rem; }
.brand-copy span { margin-top: 2px; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }

.round-chip { text-align: center; }
.round-chip strong, .round-chip span { display: block; }
.round-chip strong { font-size: .94rem; }
.round-chip span { margin-top: 2px; color: var(--muted); font-size: .72rem; text-transform: uppercase; }

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

.presence, .sync-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.status-dot.local { background: var(--amber); }
.status-dot.error { background: var(--danger); }

.icon-button, .help-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.help-button { border-radius: 50%; color: var(--muted); font-size: .82rem; }
.icon-button:hover, .help-button:hover { border-color: var(--line-strong); background: #f8f9f8; }

.topbar-tutorial, .tutorial-launch {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
  font-size: .76rem;
  font-weight: 800;
}

.topbar-tutorial:hover, .tutorial-launch:hover { border-color: var(--accent); color: var(--accent-dark); }

.workspace {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.round-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 10px 0 22px;
}

.eyebrow { display: block; margin-bottom: 5px; color: var(--accent); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 2.15rem; line-height: 1.08; }
h2 { margin-bottom: 6px; font-size: 1.12rem; line-height: 1.25; }
h3 { margin-bottom: 5px; font-size: .94rem; }
p { color: var(--muted); line-height: 1.55; }

.phase-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
  font-size: .76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e9eceb;
}

.tabs button {
  min-height: 44px;
  padding: 7px 16px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: .83rem;
  font-weight: 700;
}

.tabs button[aria-selected="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 4px rgb(0 0 0 / 8%); }

.band {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.band:first-child { border-top: 0; }
.band-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.band-head > div { min-width: 0; }
.band-head p { margin: 0; font-size: .87rem; }
.title-with-help { display: flex; align-items: center; gap: 8px; }

.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 2px 9px rgb(24 35 44 / 4%);
}

.panel-body { padding: 20px; }

.scenario-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-left: 4px solid var(--accent);
}

.scenario-band p { margin-bottom: 0; }
.scenario-context { padding-left: 20px; border-left: 1px solid var(--line); font-size: .85rem; }
.scenario-context span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }

.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.action-row { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fbfbfa; }
.action-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.action-row-head strong { font-size: .84rem; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { color: #3b4650; font-size: .75rem; font-weight: 750; }
.field-label-row { display: flex; align-items: center; gap: 6px; }
.field-label-row label { flex: 1 1 auto; }
.field label.inline-help { display: flex; align-items: center; gap: 6px; }
.field select, .field input[type="text"], .field input[type="password"], .field input[type="number"], .field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.field select:disabled, .field input:disabled, .field textarea:disabled { background: #eef0ef; }
.field small { color: var(--muted); font-size: .75rem; line-height: 1.4; }

.number-wrap { position: relative; }
.number-wrap input { padding-right: 42px; }
.number-wrap span { position: absolute; top: 50%; right: 11px; color: var(--muted); font-size: .75rem; font-weight: 800; transform: translateY(-50%); pointer-events: none; }

.enterprise-overview { margin: 8px 0 0; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.enterprise-overview-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 12px; }
.enterprise-overview-head h2 { margin: 0; }
.compact-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; background: #f7f8f7; }
.compact-metrics > div { min-width: 0; padding: 11px 13px; border-left: 1px solid var(--line); }
.compact-metrics > div:first-child { border-left: 0; }
.compact-metrics span, .compact-metrics strong { display: block; }
.compact-metrics span { color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.compact-metrics strong { margin-top: 4px; overflow-wrap: anywhere; font-size: .88rem; }
.capital-market-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 12px 0; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f7; }
.capital-market-strip > div { min-width: 0; padding: 10px 12px; border-left: 1px solid var(--line); }
.capital-market-strip > div:first-child { border-left: 0; }
.capital-market-strip span, .capital-market-strip strong { display: block; }
.capital-market-strip span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.capital-market-strip strong { margin-top: 4px; overflow-wrap: anywhere; font-size: .8rem; }

.planning-benchmarks { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f7; }
.planning-benchmark-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.planning-benchmark-head strong { font-size: .72rem; }
.planning-benchmark-head span { color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.planning-benchmark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.planning-benchmark { min-width: 0; min-height: 72px; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.planning-benchmark span, .planning-benchmark strong, .planning-benchmark small { display: block; }
.planning-benchmark span { min-height: 26px; color: var(--muted); font-size: .61rem; font-weight: 750; line-height: 1.3; }
.planning-benchmark strong { margin-top: 3px; font-size: .8rem; }
.planning-benchmark small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.planning-benchmark.in-range strong { color: var(--teal); }
.planning-benchmark.below strong, .planning-benchmark.above strong { color: #9b6917; }

.allocation-block { margin-top: 18px; }
.allocation-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.allocation-head strong { font-size: .75rem; }
.allocation-head span, .allocation-status { font-size: .75rem; font-weight: 800; }
.allocation-head .valid { color: var(--teal); }
.allocation-head .invalid { color: var(--danger); }
.allocation-status { margin-top: 13px; color: var(--muted); }

.research-planner { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.research-planner-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.research-planner-head h3 { margin: 0; font-size: .82rem; }
.research-planner-head > span { color: var(--muted); font-size: .64rem; font-weight: 800; }
.research-cost { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 10px 12px; border: 1px solid #95c9bc; border-radius: 5px; color: #315c54; background: var(--teal-soft); font-size: .7rem; }
.research-cost.invalid { border-color: #dda0a7; color: var(--danger); background: var(--danger-soft); }
.research-empty { margin: 9px 0 0; color: var(--muted); font-size: .7rem; }

.range-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; align-items: center; min-height: 42px; }
.range-wrap output { text-align: right; font-size: .84rem; font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

details.decision-section { border-top: 1px solid var(--line); }
details.decision-section { scroll-margin-top: 82px; }
details.decision-section > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 800; }
details.decision-section > summary::-webkit-details-marker { display: none; }
details.decision-section > summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; }
details.decision-section[open] > summary::after { content: "−"; }
details.decision-section .details-body { position: relative; padding: 0 0 20px; }
.section-help-row { display: flex; justify-content: flex-end; min-height: 44px; margin: -3px 0 8px; }

.decision-form { --sync-rail: 276px; padding-right: calc(20px + var(--sync-rail)); padding-bottom: 24px; }

.round-guide { margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9f8; }
.round-guide-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.round-guide-head h2 { margin: 0; }
.change-summary { display: grid; min-width: 190px; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid #b7d5ce; border-radius: 6px; background: var(--teal-soft); }
.change-summary strong { font-size: 1.4rem; }
.change-summary span { color: #315c54; font-size: .75rem; font-weight: 750; line-height: 1.3; }
.round-checklist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.round-checklist li { display: grid; min-width: 0; grid-template-columns: 28px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.round-checklist li > span { display: grid; width: 26px; height: 26px; grid-row: 1 / 3; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: white; font-size: .75rem; }
.round-checklist li.complete > span { border-color: var(--teal); background: var(--teal); }
.round-checklist strong { overflow-wrap: anywhere; font-size: .75rem; line-height: 1.25; }
.round-checklist small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.change-detail { margin: 11px 0 0; font-size: .75rem; }

.department-progress { margin: 16px 0 4px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #f7f8f7; }
.department-progress > div p { margin: 0; font-size: .72rem; }
.department-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.department-progress button { display: grid; width: 100%; min-height: 52px; grid-template-columns: 26px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); text-align: left; }
.department-progress button.active { border-color: var(--accent); background: var(--accent-soft); }
.department-progress button > span { display: grid; width: 24px; height: 24px; grid-row: 1 / 3; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: .75rem; font-weight: 850; }
.department-progress button strong { font-size: .75rem; }
.department-progress button small { color: var(--muted); font-size: .75rem; }

.decision-footer {
  position: sticky;
  z-index: 10;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  width: calc(var(--sync-rail) - 16px);
  margin-right: calc(-1 * var(--sync-rail));
  margin-left: auto;
}

.primary, .secondary, .quiet, .danger-button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 800;
}
.primary { border: 1px solid var(--accent); color: white; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.secondary { border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); }
.quiet { border: 0; color: var(--muted); background: transparent; }
.danger-button { border: 1px solid #db9ca4; color: var(--danger); background: var(--danger-soft); }

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

.notice {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #34404b;
  background: #f7f8f7;
  font-size: .84rem;
  line-height: 1.45;
}
.notice.success { border-color: #95c9bc; background: var(--teal-soft); }
.notice.warning { border-color: #dfbf78; background: var(--amber-soft); }
.notice.error { border-color: #dda0a7; background: var(--danger-soft); }
.notice strong { display: block; margin-bottom: 3px; }

.conflict-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 14px; }
.conflict-fields { display: grid; gap: 10px; margin-top: 12px; }
.conflict-field { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; }
.conflict-field legend { padding: 0 6px; font-weight: 700; }
.conflict-field p { margin: 4px 0; overflow-wrap: anywhere; }
.draft-history { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.draft-history-head, .revision-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.draft-history-head > div:first-child, .revision-list li > div { display: grid; gap: 3px; }
.draft-history span, .revision-list span { color: var(--muted); font-size: .86rem; }
.revision-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.revision-list li { padding-top: 8px; border-top: 1px solid var(--line); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { min-height: 88px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.metric strong { margin-top: 9px; overflow-wrap: anywhere; font-size: 1.05rem; }

.submission-list { border-top: 1px solid var(--line); }
.submission-row { display: grid; grid-template-columns: 30px minmax(150px, 1fr) 120px minmax(140px, auto); gap: 12px; align-items: center; min-height: 60px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.company-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--company-color, var(--muted)); }
.company-logo { display: block; width: 28px; height: 28px; object-fit: contain; }
.company-logo.small { width: 18px; height: 18px; }
.company-logo.assignment-logo { width: 26px; height: 26px; }
.submission-company strong, .submission-company span { display: block; }
.submission-company span { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.status-label { font-size: .75rem; font-weight: 800; text-transform: capitalize; }
.status-label.submitted, .status-label.approved { color: var(--teal); }
.status-label.pending, .status-label.not_started { color: var(--amber); }

.instructor-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.instructor-roster-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.instructor-roster-head { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f7f8f7; }
.instructor-roster-head h3, .instructor-roster-head p { margin: 0; }
.instructor-roster-head h3 { font-size: .86rem; }
.instructor-roster-head p { margin-top: 2px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.participant-seat-list { display: grid; margin: 0; padding: 0; list-style: none; }
.participant-seat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; min-height: 58px; padding: 8px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.participant-seat:last-child { border-bottom: 0; }
.participant-seat.claimed { border-left-color: #9a7d23; background: #fffaf0; }
.participant-seat.connected { border-left-color: #397f61; background: #edf5f0; }
.participant-seat:focus { outline: 3px solid var(--accent); outline-offset: -3px; }
.participant-seat-identity strong, .participant-seat-identity span { display: block; }
.participant-seat-identity strong { font-size: .78rem; }
.participant-seat-identity span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.participant-seat-actions { flex-wrap: wrap; }
.participant-release { min-height: 44px; padding: 7px 9px; font-size: .7rem; }
.participant-rotate { min-height: 44px; padding: 7px 9px; font-size: .7rem; }
.participant-access-feedback { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.participant-access-feedback.success { color: #245f48; }
.participant-access-feedback.error { color: var(--danger); }
.entry-mode { margin-bottom: 15px; }
.entry-mode button { flex: 1; }
.text-button { width: fit-content; padding: 0; border: 0; color: var(--accent); background: transparent; font-size: .72rem; font-weight: 800; text-decoration: underline; }
.participation-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 14px; }
.participation-table { width: 100%; min-width: 700px; border-collapse: collapse; border-top: 1px solid var(--line); font-size: .75rem; }
.participation-table th, .participation-table td { min-height: 44px; padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.participation-table thead th { color: var(--muted); background: #f7f8f7; font-size: .68rem; text-transform: uppercase; }
.participation-table tbody th { font-weight: 750; }

.decision-comparison { display: grid; gap: 18px; }
.comparison-table-scroll { max-width: 100%; overflow-x: auto; outline-offset: 4px; }
.comparison-table { width: 100%; min-width: 850px; border-collapse: collapse; border-top: 1px solid var(--line); font-size: .75rem; }
.comparison-table th, .comparison-table td { min-height: 48px; padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.comparison-table thead th { color: var(--muted); background: #f7f8f7; font-size: .75rem; text-transform: uppercase; }
.comparison-table tbody th { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.comparison-table tbody tr.selected { background: var(--accent-soft); }
.comparison-table td:nth-child(3) { min-width: 210px; }
.sort-button { min-height: 44px; padding: 6px 4px; border: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 850; text-transform: inherit; }
.review-team-button { min-height: 44px; padding: 7px 9px; white-space: nowrap; }
.team-detail { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f7f8f7; }
.team-detail-head { margin-bottom: 10px; }
.team-detail-head h3 { margin: 0; }
.team-detail .decision-review-card { width: 100%; }
.decision-review-card { width: 330px; flex: 0 0 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.decision-review-head { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 64px; padding: 11px 13px; background: #f7f8f7; border-bottom: 1px solid var(--line); }
.decision-review-head h3 { margin: 0; }
.decision-review-head div > span { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; }
.decision-review-head > strong { max-width: 92px; text-align: right; }
.decision-review-group { padding: 12px 13px; border-bottom: 1px solid var(--line); }
.decision-review-group h4 { margin: 0 0 8px; color: var(--accent); font-size: .75rem; text-transform: uppercase; }
.decision-review-group dl, .review-brief dl { margin: 0; }
.decision-review-row { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr); gap: 9px; padding: 4px 0; font-size: .75rem; line-height: 1.4; }
.decision-review-row dt { color: var(--muted); }
.decision-review-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.review-empty { min-height: 150px; padding: 24px 13px; color: var(--muted); font-size: .78rem; }
.review-brief { padding: 11px 13px; }
.review-brief > summary { cursor: pointer; color: var(--ink); font-size: .75rem; font-weight: 800; }
.review-brief > summary, .technical-details > summary { display: flex; min-height: 44px; align-items: center; }
.review-brief dl { margin-top: 10px; }

.map-shell { overflow: hidden; border: 1px solid #1f3440; border-radius: 7px; background: var(--map-ocean); box-shadow: 0 14px 35px rgb(8 22 31 / 18%); }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; color: white; background: #101f2a; border-bottom: 1px solid #2d4350; }
.map-toolbar strong { font-size: .85rem; }
.map-toolbar span { color: #b7c8d1; font-size: .72rem; }
.map-stage-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 220px); align-items: stretch; }
.map-stage { position: relative; aspect-ratio: 1000 / 520; min-height: 310px; overflow: hidden; }
.world-svg { display: block; width: 100%; height: 100%; }
.map-ocean { fill: var(--map-ocean); }
.map-graticule { fill: none; stroke: #49606c; stroke-width: .65; opacity: .25; }
.map-land { fill: var(--map-land); stroke: #405762; stroke-width: .6; fill-rule: evenodd; }
.map-region { cursor: pointer; fill: var(--region-fill, #6f7d84); fill-opacity: var(--region-opacity, .18); stroke: #7f929b; stroke-width: .55; fill-rule: evenodd; vector-effect: non-scaling-stroke; transition: fill-opacity 160ms ease, stroke 160ms ease; }
.map-region.controlled { stroke: color-mix(in srgb, var(--region-fill) 70%, white); stroke-width: .8; }
.map-region:hover, .map-region.selected { fill-opacity: .72; stroke: white; stroke-width: 1.4; }
.map-country-border { fill: none; stroke: #8aa0aa; stroke-width: .42; opacity: .55; pointer-events: none; vector-effect: non-scaling-stroke; }
.map-admin-border { fill: none; stroke: #728a95; stroke-width: .28; opacity: .4; pointer-events: none; vector-effect: non-scaling-stroke; }
.map-marker { pointer-events: none; fill: var(--marker-fill, #d4dde1); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-marker-interactive { pointer-events: auto; cursor: pointer; }
.map-marker-interactive:hover, .map-marker-interactive.selected { stroke-width: 2.2; stroke: white; }
.map-marker-interactive:focus-visible, .map-region:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.map-label { fill: #8da2ac; font-size: 13px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.map-overlay { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; position: absolute; top: 12px; left: 12px; }
.map-stat { padding: 8px 10px; border: 1px solid #4b6470; border-radius: 5px; color: white; background: rgb(9 21 29 / 86%); }
.map-stat span, .map-stat strong { display: block; }
.map-stat span { color: #9fb2bc; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.map-stat strong { margin-top: 3px; font-size: .8rem; }
.map-legend { display: grid; align-content: start; gap: 8px; padding: 14px; color: #bdcbd2; background: #0a151d; border-left: 1px solid #293e49; font-size: .67rem; }
.map-key-heading { display: grid; gap: 3px; padding-bottom: 6px; border-bottom: 1px solid #293e49; }
.map-key-heading strong { color: white; font-size: .74rem; }
.map-key-heading span, .map-key-note { color: #9fb2bc; font-size: .61rem; line-height: 1.4; }
.map-key-entry { display: grid; grid-template-columns: 10px 18px minmax(0, 1fr); gap: 7px; align-items: center; min-height: 30px; }
.map-key-copy { display: grid; gap: 2px; min-width: 0; }
.map-key-copy strong, .map-key-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-key-copy strong { color: #edf5f7; font-size: .68rem; }
.map-key-status { color: #9fb2bc; font-size: .58rem; }
.map-key-swatch { width: 10px; height: 18px; border-radius: 2px; background: var(--company-color, #80919a); border: 1px solid #d4e0e4; }
.map-key-note { margin: 4px 0 0; }
.map-legend .company-logo { width: 14px; height: 14px; }
.map-inspector { border-top: 1px solid #2c414c; color: white; background: #101f2a; }
.map-inspector-head { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, .9fr); gap: 24px; align-items: end; padding: 18px 20px; }
.map-inspector-title span { color: #9db0ba; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.map-inspector-title h2 { margin: 5px 0 0; color: white; font-size: 1.08rem; }
.map-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.map-summary div { min-width: 0; }
.map-summary dt { color: #9db0ba; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.map-summary dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: .78rem; font-weight: 800; }
.map-composition { margin: 0; padding: 0 20px 17px; color: #bdcbd2; font-size: .72rem; line-height: 1.5; }
.map-geometry-disclosure { margin: 0; padding: 0 20px 17px; color: #f1d59a; font-size: .68rem; line-height: 1.45; }
.map-profile-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-top: 1px solid #2c414c; }
.culture-profile, .territory-context { min-width: 0; padding: 18px 20px 20px; }
.territory-context { border-left: 1px solid #2c414c; }
.map-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-panel-head h3, .territory-context h3 { margin: 0; color: white; font-size: .78rem; }
.map-panel-head .help-button { color: #c7d4da; background: #172a35; border-color: #48606c; }
.culture-grid { margin-top: 13px; }
.culture-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(90px, 1.2fr) 30px; gap: 10px; align-items: center; min-height: 36px; }
.culture-label { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.culture-label strong { overflow: hidden; font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.culture-label span { color: #839ba6; font-size: .58rem; font-weight: 800; }
.culture-track, .share-track { position: relative; display: block; height: 5px; overflow: hidden; border-radius: 2px; background: #2b404b; }
.culture-track i { display: block; width: var(--culture-value); height: 100%; background: #d8e2e6; }
.culture-value { color: #d8e2e6; font-size: .68rem; text-align: right; }
.map-profile-note { margin: 12px 0 0; color: #8299a4; font-size: .6rem; }
.territory-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; background: #2b404b; border: 1px solid #2b404b; }
.territory-facts > div { min-width: 0; min-height: 58px; padding: 10px 11px; background: #132630; }
.territory-facts > div.wide { grid-column: 1 / -1; }
.territory-facts span, .territory-facts strong { display: block; }
.territory-facts span { color: #8fa5af; font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.territory-facts strong { margin-top: 5px; overflow-wrap: anywhere; font-size: .7rem; }
.share-heading { margin-top: 18px !important; }
.territory-share-list { margin-top: 9px; }
.territory-share-row { display: grid; grid-template-columns: minmax(90px, 130px) minmax(70px, 1fr) 44px; gap: 10px; align-items: center; min-height: 29px; }
.share-company { display: flex; align-items: center; gap: 7px; min-width: 0; color: #c4d1d7; font-size: .64rem; }
.share-company > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-company .company-logo { width: 14px; height: 14px; flex: 0 0 14px; }
.share-track i { display: block; width: var(--company-share); height: 100%; background: var(--company-color); }
.territory-share-row > strong { font-size: .64rem; text-align: right; }
.map-loading { display: grid; min-height: 360px; place-items: center; color: #b9cad3; }

.market-analysis-dashboard { display: grid; gap: 18px; }
.market-analysis-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.published-round-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.published-round-nav button { min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--paper); font-size: .75rem; font-weight: 800; }
.published-round-nav button:hover, .published-round-nav button:focus-visible { color: var(--ink); border-color: var(--accent); }
.published-round-nav button.active { color: white; border-color: var(--accent); background: var(--accent); }
.market-analysis-context { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr); gap: 18px; padding: 14px 16px; border: 1px solid #bfd3cc; border-radius: 7px; background: linear-gradient(135deg, #f3f8f5, #fff); }
.market-analysis-context strong, .market-analysis-context p { display: block; }
.market-analysis-context strong { margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.market-analysis-context p { margin: 6px 0 0; color: #40505b; font-size: .75rem; line-height: 1.5; }
.market-analysis-enterprise-context { padding-left: 14px; border-left: 1px solid #c8d8d2; }
.market-analysis-enterprise-context span, .market-analysis-enterprise-context strong, .market-analysis-enterprise-context small { display: block; }
.market-analysis-enterprise-context span { color: var(--accent); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.market-analysis-enterprise-context strong { font-family: inherit; font-size: .82rem; }
.market-analysis-enterprise-context small { margin-top: 5px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.market-analysis-kpis { margin-top: 0; }
.market-analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.market-analysis-panel { min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.market-analysis-panel .performance-section-head { align-items: start; }
.market-analysis-panel .performance-section-head p { text-align: left; }
.market-analysis-note { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.market-analysis-movement-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: market-movement; }
.market-analysis-movement-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.market-analysis-movement-list li > div, .market-analysis-movement-list li span { display: block; }
.market-analysis-movement-list li span { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.market-analysis-movement-list .positive, .market-analysis-company-row .positive { color: var(--teal); }
.market-analysis-movement-list .negative, .market-analysis-company-row .negative { color: var(--danger); }
.market-analysis-company-table { overflow-x: auto; border-top: 1px solid var(--line); }
.market-analysis-company-row { display: grid; grid-template-columns: minmax(145px, 1.3fr) 46px 80px 100px; gap: 10px; align-items: center; min-width: 430px; min-height: 45px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.market-analysis-company-head { min-height: 36px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.market-analysis-company-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.market-analysis-company-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-analysis-company-row > span:not(:first-child) { text-align: right; }
.market-analysis-provenance { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.market-analysis-status { margin: 0; }
.market-analysis-empty { padding: 16px; color: var(--muted); border: 1px dashed var(--line-strong); font-size: .78rem; }

.leaderboard { border-top: 1px solid var(--line); }
.results-view .compact-metrics span, .results-view .metric span { font-size: .75rem; }
.leader-row { display: grid; grid-template-columns: 36px 18px minmax(120px, 1fr) 100px; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.leader-row strong:last-child { text-align: right; }

.financial-table { overflow-x: auto; border-top: 1px solid var(--line); }
.financial-row { display: grid; min-width: 720px; grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(90px, 1fr)) minmax(90px, .8fr); gap: 12px; align-items: center; min-height: 47px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.financial-row.selected { background: var(--accent-soft); }
.financial-head { min-height: 36px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.financial-status { font-weight: 800; text-transform: capitalize; }
.financial-status.strong, .financial-status.stable { color: var(--teal); }
.financial-status.strained, .financial-status.distressed { color: var(--danger); }
.winning-standard { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #95c9bc; border-radius: 6px; background: var(--teal-soft); font-size: .75rem; line-height: 1.45; }
.gradebook-scroll { overflow-x: auto; outline-offset: 4px; }
.gradebook-table { width: 100%; min-width: 1050px; border-collapse: collapse; border-top: 1px solid var(--line); font-size: .75rem; }
.gradebook-table caption { padding: 0 0 10px; color: var(--muted); font-size: .75rem; line-height: 1.45; text-align: left; }
.gradebook-table th, .gradebook-table td { height: 44px; padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; }
.gradebook-table thead th { height: 38px; color: var(--muted); background: #f7f8f7; font-size: .75rem; text-transform: uppercase; }
.gradebook-table th:nth-child(1), .gradebook-table td:nth-child(1) { width: 50px; text-align: center; }
.gradebook-table th:nth-child(2) { min-width: 150px; text-align: left; }
.gradebook-table tbody th { display: flex; align-items: center; gap: 8px; text-align: left; }
.gradebook-score { font-weight: 850; }
.financial-snapshot-head { margin-top: 22px; }
.component-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; }
.component-grid > div { min-width: 0; min-height: 74px; padding: 12px; border-left: 1px solid var(--line); }
.component-grid > div:first-child { border-left: 0; }
.component-grid span, .component-grid strong { display: block; }
.component-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.component-grid strong { margin-top: 8px; font-size: .94rem; }

.performance-report-list { margin-top: 22px; border-top: 1px solid var(--line); }
.company-performance-report { border-bottom: 1px solid var(--line); }
.company-performance-report > summary { position: relative; padding: 15px 34px 15px 0; cursor: pointer; list-style: none; }
.performance-report-list .company-performance-report > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.company-performance-report > summary::-webkit-details-marker { display: none; }
.company-performance-report > summary::after { content: "+"; position: absolute; top: 50%; right: 8px; color: var(--muted); font-size: 1.1rem; transform: translateY(-50%); }
.company-performance-report[open] > summary::after { content: "−"; }
.company-performance-report:not(details) > .performance-report-summary { padding: 17px 0; }
.performance-report-summary { display: grid; grid-template-columns: 18px minmax(130px, 1fr) 80px 90px; gap: 10px; align-items: center; min-height: 28px; font-size: .78rem; }
.performance-report-summary > span:nth-last-child(2), .performance-report-summary > span:last-child { text-align: right; }
.performance-report-body { padding-bottom: 20px; }
.capstone-debrief { width: 100%; }
.capstone-debrief-list { display: grid; width: 100%; gap: 16px; border-top: 0; }
.capstone-debrief-card { width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.capstone-debrief-summary { grid-template-columns: 18px minmax(0, 1fr) minmax(180px, auto); font-size: .82rem; }
.capstone-debrief-summary > span { text-align: right; font-weight: 800; }
.capstone-debrief-body { width: 100%; padding: 12px 0 0; }
.capstone-debrief-body > p { max-width: none; margin: 0 0 12px; font-size: .82rem; line-height: 1.55; }
.capstone-debrief-body .decision-review-group { padding: 12px 0; border-top: 1px solid var(--line); }
.capstone-debrief-body .report-story { width: 100%; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); padding-top: 12px; border-top: 1px solid var(--line); }
.capstone-debrief-body .report-story h3 { margin: 0; font-size: .88rem; }
.capstone-debrief-body .report-story ul { margin-top: 0; }
.performance-readout { margin: 4px 0 18px; padding: 18px 20px; border: 1px solid #bfd3cc; border-radius: 7px; background: linear-gradient(135deg, #f3f8f5, #fff); }
.report-story { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; margin-top: 10px; }
.report-story article { min-width: 0; padding: 4px 18px; border-left: 1px solid #c8d8d2; }
.report-story article:first-child { padding-left: 0; border-left: 0; }
.report-story article > span { color: var(--accent); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.performance-readout h3 { max-width: 760px; margin: 7px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; line-height: 1.25; }
.performance-readout p, .performance-readout li { max-width: 880px; margin: 7px 0 0; color: #40505b; font-size: .75rem; line-height: 1.5; }
.report-story ul { margin: 7px 0 0; padding-left: 17px; }
.report-diagnostics { padding: 0; }
.report-diagnostics > summary { display: grid; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; cursor: pointer; list-style: none; font-weight: 800; }
.report-diagnostics > summary::-webkit-details-marker { display: none; }
.report-diagnostics > summary::after { content: "+"; grid-column: 2; grid-row: 1 / 3; color: var(--muted); font-size: 1.1rem; }
.report-diagnostics[open] > summary::after { content: "−"; }
.report-diagnostics > summary small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.report-diagnostic-body { padding: 4px 0 20px; }
.technical-details { margin-top: 12px; border-top: 1px solid var(--line); }
.technical-details > summary { cursor: pointer; color: var(--muted); font-size: .75rem; font-weight: 750; }
.performance-section { padding: 20px 0; border-top: 1px solid var(--line); }
.performance-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 13px; }
.performance-section-head h3, .performance-section-head p { margin: 0; }
.performance-section-head p { max-width: 620px; font-size: .75rem; text-align: right; }

.statement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.statement-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.statement-panel h4 { margin: 0; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #f7f8f7; font-size: .76rem; }
.statement-rows { padding: 5px 12px 8px; }
.statement-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 28px; align-items: center; color: #40505b; font-size: .75rem; }
.statement-row strong { text-align: right; color: var(--ink); }
.statement-row.subtotal { margin-top: 3px; border-top: 1px solid var(--line); }
.statement-row.total { margin-top: 3px; border-top: 1px solid var(--line); font-weight: 800; }
.statement-row.grand-total { margin-top: 4px; border-top: 2px solid var(--ink); font-weight: 850; }
.statement-note { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); background: #f7f8f7; font-size: .75rem; }
.ratio-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.ratio-grid > div { min-width: 0; padding: 10px; border-left: 1px solid var(--line); }
.ratio-grid > div:first-child { border-left: 0; }
.ratio-grid span, .ratio-grid strong { display: block; }
.ratio-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.ratio-grid strong { margin-top: 5px; font-size: .78rem; }
.capital-markets-report { scroll-margin-top: 76px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.capital-markets-report h4 { margin: 0; font-size: .88rem; }
.capital-market-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--line); }
.capital-market-summary .metric { min-width: 0; padding: 10px; border-left: 1px solid var(--line); }
.capital-market-summary .metric span { font-size: .75rem; }
.capital-market-summary .metric:first-child { border-left: 0; }
.capital-market-pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line); }
.capital-market-pricing > div { min-width: 0; padding: 10px; border-left: 1px solid var(--line); }
.capital-market-pricing > div:first-child { border-left: 0; }
.capital-market-pricing span, .capital-market-pricing strong { display: block; }
.capital-market-pricing span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.capital-market-pricing strong { margin-top: 5px; overflow-wrap: anywhere; font-size: .75rem; }
.capital-market-driver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.capital-driver-panel { padding: 11px; border: 1px solid var(--line); }
.capital-driver-panel > strong { display: block; margin-bottom: 9px; font-size: .75rem; }
.capital-driver-row { display: grid; grid-template-columns: minmax(110px, .8fr) 1fr 28px; gap: 8px; align-items: center; margin-top: 7px; font-size: .75rem; }
.capital-driver-track { height: 5px; background: #e8eceb; }
.capital-driver-track i { display: block; height: 100%; background: var(--teal); }
.capital-driver-row b { text-align: right; font-size: .75rem; }
.accounting-check { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; font-size: .75rem; }
.accounting-check.balanced { border-color: #95c9bc; background: var(--teal-soft); }
.accounting-check.unbalanced { border-color: #dda0a7; background: var(--danger-soft); }

.research-results { min-width: 0; }
.research-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; }
.research-summary-grid > div { min-width: 0; min-height: 82px; padding: 11px 12px; border-left: 1px solid var(--line); }
.research-summary-grid > div:first-child { border-left: 0; }
.research-summary-grid span, .research-summary-grid strong, .research-summary-grid small { display: block; }
.research-summary-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.research-summary-grid strong { margin-top: 6px; overflow-wrap: anywhere; font-size: .84rem; }
.research-summary-grid small { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.research-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.research-chart { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.research-chart.wide { grid-column: 1 / -1; }
.research-chart h4, .research-quotes h4 { margin: 0 0 12px; font-size: .75rem; }
.research-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.research-chart-head span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.nps-stack { display: flex; width: 100%; height: 18px; overflow: hidden; border-radius: 3px; background: #edf0ef; }
.nps-stack i { display: block; width: var(--response-share); height: 100%; }
.nps-stack .detractors, .nps-legend .detractors i { background: #b44351; }
.nps-stack .passives, .nps-legend .passives i { background: #d6a344; }
.nps-stack .promoters, .nps-legend .promoters i { background: #168674; }
.nps-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.nps-legend > span { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 6px; align-items: center; color: var(--muted); font-size: .75rem; }
.nps-legend i { width: 7px; height: 7px; border-radius: 2px; }
.nps-legend strong { color: var(--ink); }
.rating-histogram { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; height: 150px; align-items: end; }
.rating-histogram > div { display: grid; grid-template-rows: 122px 18px; gap: 5px; min-width: 0; text-align: center; }
.rating-count { position: relative; display: flex; z-index: 0; align-items: flex-start; justify-content: center; height: 122px; color: var(--muted); font-size: .75rem; }
.rating-count::after { content: ""; position: absolute; z-index: -1; right: 1px; bottom: 0; left: 1px; height: var(--rating-height); min-height: 2px; background: #627f8d; }
.rating-histogram strong { font-size: .75rem; }
.research-analysis { align-items: start; }
.segment-chart, .relationship-chart, .theme-chart { display: grid; gap: 7px; }
.signed-chart-row { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(90px, 1.2fr) 42px minmax(60px, auto); gap: 8px; align-items: center; min-height: 26px; }
.signed-chart-row > span, .theme-chart span { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.signed-chart-row > strong, .theme-chart strong { font-size: .75rem; text-align: right; }
.signed-chart-row > small { color: var(--muted); font-size: .75rem; }
.signed-track { position: relative; height: 7px; background: linear-gradient(to right, #eef0ef 0 49.7%, #bac3c6 49.7% 50.3%, #eef0ef 50.3% 100%); }
.signed-track i { position: absolute; top: 0; left: var(--bar-left); width: var(--bar-width); height: 100%; }
.signed-track i.positive { background: #168674; }
.signed-track i.negative { background: #b44351; }
.research-qualitative { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 12px; margin-top: 12px; }
.theme-chart > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(80px, 1.2fr) 30px; gap: 8px; align-items: center; min-height: 26px; }
.theme-track { height: 7px; background: #eef0ef; }
.theme-track i { display: block; width: var(--theme-width); height: 100%; background: #627f8d; }
.research-quotes { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; }
.quote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quote-list blockquote { min-width: 0; margin: 0; padding: 10px; border-left: 3px solid var(--line-strong); background: #f7f8f7; }
.quote-list p { margin: 0; font-size: .75rem; line-height: 1.45; }
.quote-list footer { margin-top: 7px; color: var(--muted); font-size: .75rem; }
.research-note { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }

.department-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.department-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.department-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.department-card-head h4 { margin: 0; }
.department-card-head strong { color: var(--accent); font-size: .78rem; }
.department-card > p { min-height: 42px; margin: 6px 0 12px; font-size: .75rem; }
.department-measures { border-top: 1px solid var(--line); }
.department-measures > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.department-measures span { color: var(--muted); font-size: .75rem; }
.department-measures strong { font-size: .75rem; text-align: right; }
.department-measures small { color: var(--muted); font-size: .75rem; }
.department-measures .measure-target { grid-column: 1; }
.department-measures .measure-change { grid-column: 2; text-align: right; }
.department-measures .in_range strong { color: var(--teal); }
.department-measures .below strong, .department-measures .above strong { color: #9b6917; }

.effect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; }
.effect-grid > div { min-width: 0; min-height: 62px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.effect-grid > div:nth-child(4n) { border-right: 0; }
.effect-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.effect-grid span, .effect-grid strong { display: block; }
.effect-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.effect-grid strong { margin-top: 6px; overflow-wrap: anywhere; font-size: .78rem; }

.welcome {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  background: var(--paper);
}
.welcome-intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 72px; background: #17242b; color: white; }
.welcome-intro .brand-mark { width: 46px; height: 46px; color: #ff6689; border-color: #ff6689; }
.welcome-title { max-width: 680px; margin: auto 0; }
.welcome-title .eyebrow { color: #ff8eaa; }
.welcome-title h1 { max-width: 620px; margin-bottom: 18px; font-size: 4.8rem; line-height: .96; }
.welcome-title p { max-width: 580px; color: #c4d0d5; font-size: 1.12rem; }
.training-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.training-step { padding: 13px 0; border-top: 1px solid #506169; }
.training-step span { display: block; margin-bottom: 7px; color: #ff8eaa; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.training-step strong { font-size: .83rem; line-height: 1.35; }
.welcome-foot { color: #82959e; font-size: .7rem; }
.welcome-tutorial { margin-top: 26px; border-color: #71838b; color: #fff; background: transparent; }
.welcome-tutorial:hover { border-color: #ff8eaa; color: #fff; background: rgb(255 142 170 / 12%); }

.welcome-access { display: grid; align-content: center; padding: 68px; background: var(--canvas); }
.access-panel { width: min(500px, 100%); margin: 0 auto; }
.access-panel h2 { font-size: 1.55rem; }
.access-panel > p { margin-bottom: 24px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #e5e8e6; }
.mode-switch button { min-height: 39px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: .8rem; font-weight: 800; }
.mode-switch button.active { color: var(--ink); background: var(--paper); }
.access-form { display: grid; gap: 15px; }
.access-form .primary { width: 100%; min-height: 46px; margin-top: 4px; }
.form-hint { margin: -7px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.setup-group { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.setup-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 12px; }
.setup-heading h3, .setup-heading p { margin: 0; }
.setup-heading h3 { font-size: .92rem; }
.setup-heading p { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.setup-step { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: .72rem; font-weight: 850; }
.game-length-group .field { margin-left: 38px; }
.setup-advanced { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.setup-advanced > summary { min-height: 44px; padding: 12px 14px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.setup-advanced-body { display: grid; gap: 14px; padding: 2px 14px 14px; }
.check-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 44px; padding: 8px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.4; }

.assignment-builder { max-height: min(52vh, 470px); overflow: auto; border-top: 1px solid var(--line); }
.assignment-row { display: grid; grid-template-columns: 28px minmax(92px, 1fr) auto 94px; gap: 10px; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.assignment-row strong { font-size: .82rem; }
.assignment-company span { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #e9eceb; }
.segmented button { min-height: 44px; padding: 7px 9px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; }
.segmented button.active { color: var(--ink); background: white; }
.seat-count-field { gap: 3px; }
.seat-count-field label { font-size: .65rem; line-height: 1.2; }
.seat-count-field select { min-height: 44px; padding: 7px 22px 7px 8px; font-size: .75rem; }

.team-roster-strip { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 12px 18px; align-items: start; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.team-roster-strip h2, .team-roster-strip p { margin: 0; }
.team-roster-strip h2 { font-size: .9rem; }
.team-roster-strip p { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.seat-progress { font-size: .78rem; white-space: nowrap; }
.seat-roster { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.seat-roster li { display: flex; gap: 6px; align-items: center; min-height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--canvas); font-size: .72rem; }
.seat-roster li.claimed { border-color: #c6ad65; color: var(--ink); background: #fffaf0; }
.seat-roster li.connected { border-color: #7da592; color: var(--ink); background: #edf5f0; }
.seat-roster small { font-size: .65rem; font-weight: 800; text-transform: uppercase; }

.codes-overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(12 23 30 / 72%); }
.codes-sheet { width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 7px; background: var(--paper); box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.codes-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.code-box { padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: #f7f8f7; }
.code-box span, .code-box strong { display: block; }
.code-box span { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.code-box strong { margin-top: 5px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.code-list { border-top: 1px solid var(--line); }
.code-team { border-bottom: 1px solid var(--line); }
.code-team-head { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; background: var(--canvas); }
.code-team-head span { color: var(--muted); font-size: .72rem; }
.code-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); font-size: .8rem; }
.code-team .code-row { padding-left: 12px; }
.code-team .code-row:last-child { border-bottom: 0; }
.code-row code { text-align: right; font-weight: 800; }

dialog { width: min(470px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(18 29 36 / 55%); }
.help-dialog { max-height: min(640px, calc(100vh - 32px)); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 1rem; }
.dialog-body { max-height: min(540px, calc(100vh - 150px)); overflow: auto; padding: 18px; }
.dialog-body p { margin: 0; line-height: 1.55; white-space: pre-line; }
.dialog-body p + p { margin-top: 12px; }
.action-dialog-form { margin: 0; }
.action-dialog-body { display: grid; gap: 18px; }
.action-dialog-rationale { display: grid; gap: 7px; }
.action-dialog-rationale textarea { min-height: 96px; resize: vertical; }
.field-hint { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.field-error { color: var(--danger); font-size: .78rem; font-weight: 750; }
.field-error[hidden] { display: none; }
.action-confirmation-dialog .dialog-actions { gap: 8px; }

#tutorial-dialog { width: min(760px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); }
.tutorial-body { display: grid; gap: 0; padding: 8px 18px 18px; overflow: auto; }
.tutorial-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tutorial-step h3 { margin: 0 0 4px; font-size: .9rem; }
.tutorial-step p { margin: 0; font-size: .83rem; }
.tutorial-number { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: .72rem; font-weight: 850; }
.tutorial-note { display: grid; gap: 5px; margin-top: 16px; padding: 13px 14px; border-left: 3px solid var(--teal); background: var(--teal-soft); font-size: .82rem; line-height: 1.45; }
.tutorial-note strong { font-size: .76rem; text-transform: uppercase; }
.dialog-actions { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }

.error-list { margin: 10px 0 0; padding-left: 18px; color: var(--danger); font-size: .78rem; line-height: 1.45; }
.empty-state { padding: 40px 20px; text-align: center; }
.empty-state p { max-width: 520px; margin: 7px auto 0; }
.hash { overflow-wrap: anywhere; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }

@media (max-width: 900px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-intro { min-height: auto; padding: 34px 24px; }
  .welcome-title { margin: 64px 0 28px; }
  .welcome-title h1 { font-size: 3.6rem; }
  .welcome-access { min-height: 620px; padding: 42px 24px; }
  .topbar { grid-template-columns: 1fr auto; }
  .round-chip { display: none; }
  .scenario-band { grid-template-columns: 1fr; }
  .scenario-context { padding: 15px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .field-grid.four, .field-grid.five, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instructor-roster-grid { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .component-grid > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .component-grid > div:nth-child(5), .component-grid > div:nth-child(6) { border-top: 1px solid var(--line); }
  .statement-grid { grid-template-columns: 1fr; }
  .research-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .research-summary-grid > div:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .research-summary-grid > div:nth-child(5) { border-top: 1px solid var(--line); }
  .research-qualitative { grid-template-columns: 1fr; }
  .capital-market-strip, .capital-market-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capital-market-strip > div:nth-child(4), .capital-market-summary .metric:nth-child(4) { border-left: 0; }
  .capital-market-strip > div:nth-child(n+4), .capital-market-summary .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
  .capital-market-pricing { grid-template-columns: 1fr 1fr; }
  .capital-market-pricing > div:nth-child(3) { border-left: 0; }
  .capital-market-pricing > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ratio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ratio-grid > div:nth-child(5) { border-left: 0; }
  .ratio-grid > div:nth-child(n+5) { border-top: 1px solid var(--line); }
  .effect-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .decision-form { padding-right: 20px; }
  .decision-footer { position: static; width: auto; margin-right: 0; margin-left: 0; }
  .round-checklist, .department-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-story { grid-template-columns: 1fr; }
  .report-story article { padding: 14px 0; border-top: 1px solid #c8d8d2; border-left: 0; }
  .report-story article:first-child { border-top: 0; }
  .effect-grid > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .effect-grid > div:nth-child(3n) { border-right: 0; }
  .effect-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
  .map-inspector-head { grid-template-columns: 1fr; gap: 14px; }
  .map-profile-layout { grid-template-columns: 1fr; }
  .territory-context { border-top: 1px solid #2c414c; border-left: 0; }
  .map-stage-layout { grid-template-columns: 1fr; }
  .map-legend { border-top: 1px solid #293e49; border-left: 0; }
  .market-analysis-head, .market-analysis-context, .market-analysis-grid { grid-template-columns: 1fr; }
  .published-round-nav { justify-content: flex-start; }
  .market-analysis-enterprise-context { padding-top: 12px; padding-left: 0; border-top: 1px solid #c8d8d2; border-left: 0; }
}

@media (max-width: 650px) {
  h1 { font-size: 1.75rem; }
  .workspace { width: min(100% - 20px, 1220px); padding-top: 12px; }
  .topbar { min-height: 60px; padding: 8px 10px; }
  .brand-copy span, .presence { display: none; }
  .topbar-actions { gap: 6px; }
  .sync-state { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-tutorial { width: 34px; padding: 0; font-size: 0; }
  .topbar-tutorial::after { content: "i"; font-size: .9rem; font-weight: 900; }
  .round-header { grid-template-columns: 1fr; gap: 10px; }
  .action-grid, .field-grid, .field-grid.three, .field-grid.four, .field-grid.five, .metric-grid { grid-template-columns: 1fr; }
  .compact-metrics { grid-template-columns: 1fr 1fr; }
  .compact-metrics > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .compact-metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
  .compact-metrics > div:nth-child(5) { border-top: 1px solid var(--line); border-left: 0; }
  .component-grid { grid-template-columns: 1fr 1fr; }
  .component-grid > div:nth-child(odd) { border-left: 0; }
  .component-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .conflict-banner, .decision-footer { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .decision-footer .button-row { justify-content: stretch; }
  .decision-footer button { flex: 1; }
  .submission-row { grid-template-columns: 24px minmax(110px, 1fr) 100px; }
  .submission-row .button-row { grid-column: 2 / -1; }
  .participant-seat { grid-template-columns: 1fr; }
  .participant-release { justify-self: start; }
  .assignment-row { grid-template-columns: 28px minmax(0, 1fr) 94px; padding: 8px 0; }
  .assignment-row .segmented { grid-column: 2 / -1; }
  .assignment-row .seat-count-field { grid-column: 3; grid-row: 1; }
  .team-roster-strip { grid-template-columns: 1fr; }
  .seat-progress, .seat-roster { grid-column: 1; }
  .round-guide-head { display: grid; }
  .change-summary { min-width: 0; }
  .round-checklist, .department-progress ol { grid-template-columns: 1fr; }
  .decision-form { padding-bottom: 20px; }
  .decision-review-card { width: 100%; flex-basis: auto; }
  .performance-report-summary { grid-template-columns: 18px minmax(100px, 1fr) 62px; }
  .performance-report-list .company-performance-report > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .performance-report-list .company-performance-report > summary > span:nth-of-type(2) { grid-column: 1 / -1; }
  .performance-report-summary > span:last-child { grid-column: 2 / -1; text-align: left; }
  .capstone-debrief-card { padding: 15px 14px; }
  .capstone-debrief-summary { grid-template-columns: 18px minmax(0, 1fr); }
  .capstone-debrief-summary > span { grid-column: 2; text-align: left; }
  .capstone-debrief-body .report-story { grid-template-columns: 1fr; }
  .capstone-debrief-body .report-story ul { margin-top: 8px; }
  .performance-section-head { display: block; }
  .performance-section-head p { margin-top: 4px; text-align: left; }
  .department-grid { grid-template-columns: 1fr; }
  .capital-market-strip, .capital-market-summary { grid-template-columns: 1fr 1fr; }
  .capital-market-strip > div, .capital-market-summary .metric { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .capital-market-strip > div:nth-child(odd), .capital-market-summary .metric:nth-child(odd) { border-left: 0; }
  .capital-market-strip > div:nth-child(-n+2), .capital-market-summary .metric:nth-child(-n+2) { border-top: 0; }
  .capital-market-driver-grid { grid-template-columns: 1fr; }
  .capital-driver-row { grid-template-columns: minmax(100px, .8fr) 1fr 26px; }
  .department-card > p { min-height: 0; }
  .ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratio-grid > div, .ratio-grid > div:nth-child(5) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .ratio-grid > div:nth-child(odd) { border-left: 0; }
  .ratio-grid > div:nth-child(-n+2) { border-top: 0; }
  .accounting-check { display: grid; }
  .research-planner-head, .research-cost { align-items: flex-start; flex-direction: column; }
  .research-summary-grid { grid-template-columns: 1fr 1fr; }
  .research-summary-grid > div { border-top: 1px solid var(--line); }
  .research-summary-grid > div:nth-child(odd) { border-left: 0; }
  .research-summary-grid > div:nth-child(-n+2) { border-top: 0; }
  .research-chart-grid { grid-template-columns: 1fr; }
  .research-chart.wide { grid-column: auto; }
  .quote-list { grid-template-columns: 1fr; }
  .signed-chart-row { grid-template-columns: minmax(92px, .8fr) minmax(70px, 1.2fr) 38px; }
  .signed-chart-row > small { display: none; }
  .winning-standard { grid-template-columns: 1fr; gap: 4px; }
  .effect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .effect-grid > div:nth-child(2n) { border-right: 0; }
  .effect-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .effect-grid > div:last-child { border-bottom: 0; }
  .training-steps { grid-template-columns: 1fr; }
  .training-step { padding: 10px 0; }
  .codes-callout { grid-template-columns: 1fr; }
  .map-stage { min-height: 260px; aspect-ratio: auto; }
  .map-overlay { grid-template-columns: 1fr; }
  .map-stat:nth-child(n+2) { display: none; }
  .map-inspector-head, .culture-profile, .territory-context { padding-right: 14px; padding-left: 14px; }
  .map-composition, .map-geometry-disclosure { padding-right: 14px; padding-left: 14px; }
  .map-summary { gap: 8px; }
  .culture-row { grid-template-columns: minmax(126px, 1fr) minmax(70px, 1fr) 28px; gap: 8px; }
  .territory-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .welcome-title h1 { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #4f5965;
    --line: #9ca5ad;
    --line-strong: #68747e;
  }

  :focus-visible { outline-width: 4px; }
  .primary, .secondary, .icon-button, .help-button, .tabs button, .department-progress button, .sort-button, .review-team-button, summary { border-width: 2px; }
  .tabs button[aria-selected="true"], .department-progress button.active, .comparison-table tbody tr.selected { outline: 2px solid currentColor; outline-offset: -2px; }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .primary, .secondary, .icon-button, .help-button, .tabs button, .department-progress button, .sort-button, .review-team-button, summary { border: 2px solid ButtonText; }
  .tabs button[aria-selected="true"], .department-progress button.active, .comparison-table tbody tr.selected { outline: 3px solid Highlight; outline-offset: -3px; }
  .status-dot { border: 2px solid CanvasText; background: Canvas; }
  .round-checklist li.complete > span, .department-progress button > span { border: 2px solid Highlight; color: HighlightText; background: Highlight; }
  .draft-history, .revision-list li { border-color: CanvasText; color: CanvasText; background: Canvas; }
  .draft-history span, .revision-list span { color: CanvasText; }
  .financial-status, .status-label, .allocation-head .valid, .allocation-head .invalid { color: CanvasText; text-decoration: underline; text-decoration-thickness: 2px; }
  .map-shell, .map-inspector, .map-toolbar { border-color: CanvasText; color: CanvasText; background: Canvas; }
  .map-legend, .map-key-heading, .market-analysis-context { border-color: CanvasText; color: CanvasText; background: Canvas; }
  .map-key-swatch { border-color: CanvasText; background: Canvas; }
  .published-round-nav button { border-color: ButtonText; color: ButtonText; background: ButtonFace; }
  .published-round-nav button.active { border-color: Highlight; color: HighlightText; background: Highlight; }
}
