:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(8, 13, 21, 0.84);
  --panel-strong: rgba(10, 18, 30, 0.95);
  --panel-opaque: #071018;
  --line: rgba(156, 189, 209, 0.2);
  --text: #eff7ff;
  --muted: #8fa5b6;
  --gold: #e7bd6f;
  --cyan: #55d8ff;
  --green: #73f7bf;
  --rose: #ff718e;
  --violet: #a997ff;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 14%, rgba(85, 216, 255, 0.16), transparent 30%),
    radial-gradient(circle at 18% 84%, rgba(231, 189, 111, 0.1), transparent 32%),
    linear-gradient(135deg, #05070b 0%, #09111c 52%, #05070b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.startup-shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 560px);
  gap: 18px;
  align-items: start;
  min-height: 100dvh;
  padding: 42px;
  color: var(--text);
}

.startup-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #071018;
  background: var(--gold);
  font-weight: 900;
}

.startup-shell h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.05;
}

.startup-shell p {
  max-width: 560px;
  color: #c7d9e6;
  line-height: 1.5;
}

.startup-error {
  border-top: 3px solid var(--rose);
}

.startup-error small {
  display: block;
  max-width: 720px;
  color: var(--rose);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.platform-shell {
  display: block;
  width: 100%;
  padding-left: 210px;
  min-height: 100dvh;
  overflow: visible;
}

.left-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: 210px;
  height: 100dvh;
  padding: 18px 14px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.88);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.3);
}

.brand-block {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
}

.brand-block img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-block strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
}

.left-nav nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
}

.left-nav nav button {
  min-height: 38px;
  padding: 0 11px;
  text-align: left;
  color: #c9dce8;
  border: 1px solid transparent;
  background: transparent;
}

.left-nav nav button.active,
.left-nav nav button:hover {
  color: var(--text);
  border-color: rgba(85, 216, 255, 0.34);
  background: rgba(85, 216, 255, 0.07);
}

.left-nav nav button:focus-visible {
  outline: 2px solid rgba(231, 189, 111, 0.85);
  outline-offset: 2px;
}

.module-focused {
  border-color: rgba(231, 189, 111, 0.68) !important;
  box-shadow:
    0 0 0 1px rgba(231, 189, 111, 0.28),
    0 22px 80px rgba(231, 189, 111, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.34) !important;
}

.module-focused:focus {
  outline: none;
}

.dataset-stack {
  padding-top: 12px;
  border-top: 1px solid rgba(143, 165, 182, 0.16);
}

.dataset-stack span {
  display: inline-flex;
  margin: 0 6px 7px 0;
  padding: 6px 8px;
  color: #d8e8f5;
  border: 1px solid rgba(143, 165, 182, 0.22);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
}

.dataset-stack span.pass {
  color: #dffcef;
  border-color: rgba(115, 247, 191, 0.34);
  background: rgba(115, 247, 191, 0.07);
}

.dataset-stack span.warn {
  color: #ffe3aa;
  border-color: rgba(231, 189, 111, 0.42);
  background: rgba(231, 189, 111, 0.07);
}

.dataset-stack span.fail {
  color: #ffd4dc;
  border-color: rgba(255, 113, 142, 0.42);
  background: rgba(255, 113, 142, 0.07);
}

.workspace-panel {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 165, 182, 0.16);
}

.workspace-panel strong,
.workspace-panel span {
  display: block;
}

.workspace-panel strong {
  color: var(--text);
  font-size: 12px;
}

.workspace-panel span {
  color: #b8c7d3;
  font-size: 11px;
  line-height: 1.35;
}

.workspace-panel button {
  min-height: 30px;
  color: #071018;
  border: 1px solid rgba(231, 189, 111, 0.6);
  background: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.territory-browser {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(7, 16, 24, 0.96);
}

.territory-browser > div:first-child {
  min-width: 0;
}

.territory-browser > div:first-child strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.territory-browser-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
}

.territory-browser-strip button {
  flex: 0 0 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  text-align: left;
  color: #c7d9e6;
  border: 1px solid rgba(143, 165, 182, 0.22);
  background: rgba(4, 9, 15, 0.68);
}

.territory-browser-strip button.active {
  color: var(--text);
  border-color: rgba(231, 189, 111, 0.86);
  background: rgba(231, 189, 111, 0.12);
}

.territory-browser-strip span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #071018;
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.territory-browser-strip strong,
.territory-browser-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.territory-browser-strip strong {
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.territory-browser-strip small {
  color: var(--muted);
  font-size: 10px;
}

.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.trust-ribbon div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(115, 247, 191, 0.22);
  background: rgba(115, 247, 191, 0.06);
}

.trust-ribbon span,
.trust-ribbon strong {
  display: block;
}

.trust-ribbon span {
  color: #a9bdca;
  font-size: 11px;
}

.trust-ribbon strong {
  margin-top: 4px;
  color: #eff7ff;
  font-size: 15px;
}

.institution-context-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.institution-context-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.institution-context-form label.wide {
  grid-column: 1 / -1;
}

.institution-context-form span {
  color: #b8c7d3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.institution-context-form input,
.institution-context-form select,
.institution-context-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(5, 8, 13, 0.8);
}

.institution-context-form input,
.institution-context-form select {
  min-height: 36px;
  padding: 0 10px;
}

.institution-context-form textarea {
  padding: 10px;
  resize: vertical;
}

.institution-context-form button {
  min-height: 36px;
  color: #071018;
  border: 1px solid rgba(231, 189, 111, 0.6);
  background: var(--gold);
  font-weight: 900;
}

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

.feeder-readiness-table,
.authority-source-table,
.program-guardrail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.institution-evidence-table article,
.feeder-readiness-table article,
.authority-source-table article,
.program-guardrail-grid article,
.dean-workflow-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.program-guardrail-grid article.blocked {
  border-color: rgba(255, 113, 142, 0.28);
  background: rgba(255, 113, 142, 0.055);
}

.program-guardrail-grid article.ready {
  border-color: rgba(115, 247, 191, 0.24);
  background: rgba(115, 247, 191, 0.055);
}

.institution-evidence-table strong,
.institution-evidence-table span,
.institution-evidence-table p,
.feeder-readiness-table strong,
.feeder-readiness-table span,
.feeder-readiness-table p,
.authority-source-table strong,
.authority-source-table span,
.authority-source-table p,
.program-guardrail-grid strong,
.program-guardrail-grid span,
.dean-workflow-card strong,
.dean-workflow-card span,
.dean-workflow-card small {
  display: block;
}

.institution-evidence-table strong,
.feeder-readiness-table strong,
.authority-source-table strong,
.program-guardrail-grid strong,
.dean-workflow-card strong {
  color: var(--text);
  font-size: 13px;
}

.institution-evidence-table span,
.feeder-readiness-table span,
.authority-source-table span {
  margin-top: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.institution-evidence-table p,
.feeder-readiness-table p,
.authority-source-table p,
.program-guardrail-grid span,
.dean-workflow-card span {
  margin: 6px 0 0;
  color: #c7d9e6;
  font-size: 12px;
  line-height: 1.45;
}

.authority-source-links {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 16px;
}

.authority-source-links a {
  color: var(--ice);
}

.authority-source-links small {
  color: var(--muted);
}

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

.dean-workflow-card small {
  margin-top: 8px;
  color: #8fa5b6;
  font-size: 11px;
}

.platform-main {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  min-height: 100dvh;
  padding: 12px;
}

.top-intelbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(420px, 1.4fr) minmax(260px, 0.75fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 15, 0.72);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.eyebrow,
.panel-title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.22;
}

.command-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid rgba(85, 216, 255, 0.32);
  background: rgba(3, 8, 15, 0.82);
}

.command-bar label {
  color: #eff7ff;
  font-size: 13px;
  line-height: 1.35;
}

.command-bar label strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-bar input {
  width: 100%;
  min-height: 24px;
  color: #eff7ff;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.command-bar button,
.command-bar a,
.spatial-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #071018;
  border: 0;
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.command-bar button:disabled {
  cursor: not-allowed;
  color: #aebdca;
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(143, 165, 182, 0.12);
}

.command-bar button.query-gate-button {
  color: #f7edd9;
  border: 1px solid rgba(231, 189, 111, 0.52);
  background: rgba(231, 189, 111, 0.16);
}

.command-bar button.query-gate-button:hover {
  background: rgba(231, 189, 111, 0.26);
}

.context-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.context-cluster span {
  padding: 6px 8px;
  color: #d8e8f5;
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(8, 13, 21, 0.78);
  font-size: 10px;
  line-height: 1.25;
}

.industry-search-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(85, 216, 255, 0.26);
  background: rgba(5, 10, 17, 0.76);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.industry-search-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(126px, 0.22fr) minmax(150px, 0.28fr) minmax(168px, 0.32fr) auto;
  gap: 8px;
  align-items: end;
}

.industry-search-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.industry-search-form span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.industry-search-form input,
.industry-search-form select {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(3, 8, 15, 0.9);
  padding: 0 10px;
  outline: 0;
}

.industry-search-form input:focus,
.industry-search-form select:focus {
  border-color: rgba(231, 189, 111, 0.72);
  box-shadow: 0 0 0 1px rgba(231, 189, 111, 0.22);
}

.industry-search-form button,
.industry-result-card button,
.industry-result-action,
.industry-search-status button {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #071018;
  border: 0;
  background: var(--gold);
  font-weight: 800;
}

.industry-search-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.industry-search-status span {
  color: #b8c7d3;
  font-size: 12px;
  line-height: 1.35;
}

.industry-search-status button {
  min-height: 28px;
  color: #dff3ff;
  border: 1px solid rgba(85, 216, 255, 0.26);
  background: rgba(85, 216, 255, 0.08);
  font-size: 11px;
}

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

.industry-result-card,
.industry-search-empty {
  min-width: 0;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.industry-result-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-height: 230px;
  padding: 11px;
}

.industry-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.industry-result-actions button,
.industry-result-action {
  flex: 1 1 112px;
}

.industry-result-kicker,
.industry-result-card strong,
.industry-result-card p,
.industry-result-card small {
  display: block;
}

.industry-result-kicker {
  min-height: 28px;
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.industry-result-card strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.18;
}

.industry-result-card p {
  margin: 8px 0 0;
  color: #c7d9e6;
  font-size: 12px;
  line-height: 1.4;
}

.industry-result-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.industry-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}


.industry-result-chips span {
  padding: 4px 6px;
  color: #dffcef;
  border: 1px solid rgba(115, 247, 191, 0.22);
  background: rgba(115, 247, 191, 0.06);
  font-size: 10px;
  line-height: 1.2;
}

.search-result-point {
  filter: drop-shadow(0 0 10px rgba(231, 189, 111, 0.72));
}

.search-result-tooltip {
  border-color: rgba(231, 189, 111, 0.72) !important;
}

.industry-search-empty {
  grid-column: 1 / -1;
  padding: 12px;
  color: #c7d9e6;
  font-size: 13px;
}

.industry-search-empty.error {
  color: #ffd4dc;
  border-color: rgba(255, 113, 142, 0.42);
}

.workbench-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(500px, 58vh) auto auto;
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding-top: 10px;
}

.module-workbench,
.answer-card,
.retailer-save-report,
.spatial-workbench,
.map-support-rail,
.ranking-workbench,
.reasoning-workbench,
.market-workbench,
.education-workbench,
.school-chair-workbench,
.graph-workbench,
.evidence-workbench,
.activity-rail,
.evidence-drawer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.module-workbench {
  grid-row: 2;
  grid-column: 1 / 2;
  align-self: start;
  max-height: min(760px, calc(100dvh - 150px));
  overflow: auto;
  padding: 14px;
}

.module-workbench .insight-card {
  margin-top: 10px;
}

.retailer-save-report {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.module-workbench .retailer-save-report {
  margin-top: 14px;
  border-color: rgba(231, 189, 111, 0.34);
  background: rgba(231, 189, 111, 0.05);
  box-shadow: none;
}

.save-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.save-report-header h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

.save-report-header span {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #081018;
  background: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.save-report-grid,
.ecosystem-lesson-grid {
  display: grid;
  gap: 10px;
}

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

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

.ecosystem-lesson-panel {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 165, 182, 0.18);
}

.ecosystem-lesson-panel h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.2;
}

.save-action-card,
.ecosystem-lesson-card {
  display: grid;
  gap: 8px;
  min-height: 230px;
  padding: 12px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.ecosystem-lesson-card {
  min-height: 260px;
  border-color: rgba(85, 216, 255, 0.22);
}

.save-action-card span,
.ecosystem-lesson-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ecosystem-lesson-card span {
  color: var(--cyan);
}

.save-action-card strong,
.ecosystem-lesson-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.save-action-card p,
.save-action-card small,
.save-action-card em,
.ecosystem-lesson-card p,
.ecosystem-lesson-card em {
  margin: 0;
  color: #c7d9e6;
  font-size: 12px;
  line-height: 1.38;
}

.save-action-card small,
.ecosystem-lesson-card p {
  color: var(--muted);
}

.save-action-card em,
.ecosystem-lesson-card em {
  color: #f4ddb0;
  font-style: normal;
}

.map-support-rail {
  grid-row: 1;
  grid-column: 1 / -1;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(240px, 0.8fr) minmax(190px, 0.55fr);
  gap: 8px;
  align-items: start;
  align-self: start;
  margin: 84px 10px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.map-support-rail > * {
  pointer-events: auto;
}

.question-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.question-bank button,
.question-bank a {
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  color: #c7d9e6;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  text-decoration: none;
}

.question-bank button.active,
.question-bank button:hover,
.question-bank a.active,
.question-bank a:hover {
  color: var(--text);
  border-color: rgba(231, 189, 111, 0.82);
}

.answer-card {
  margin-top: 12px;
  padding: 14px;
  background: rgba(4, 9, 15, 0.62);
}

.answer-card.generated-run {
  border-color: rgba(115, 247, 191, 0.54);
  animation: generatedPulse 760ms ease-out;
}

.answer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.generated-status {
  margin: -2px 0 10px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.3;
}

.confidence-pill {
  padding: 6px 9px;
  color: #071018;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.question-results {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.answer-state-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  width: 100%;
  padding: 9px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.answer-state-row.active {
  border-color: rgba(231, 189, 111, 0.92);
  background: rgba(231, 189, 111, 0.1);
}

.answer-state-row strong,
.answer-state-row small,
.answer-state-row em {
  display: block;
}

.answer-state-row small {
  margin-top: 3px;
  color: #c2d2de;
  font-size: 11px;
  line-height: 1.35;
}

.answer-state-row em {
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.score-card {
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.score-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.score-card strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.spatial-workbench {
  position: relative;
  grid-row: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr);
  overflow: hidden;
  min-height: 0;
}

.leaflet-stage::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 32%, rgba(5, 7, 11, 0.42) 78%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.58), transparent 22%, transparent 68%, rgba(5, 7, 11, 0.76));
}

.spatial-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(5, 9, 15, 0.76);
}

.spatial-header h2 {
  margin-bottom: 0;
}

.leaflet-stage {
  position: relative;
  z-index: 1;
  min-height: 420px;
  background: #05070b;
}

.leaflet-container {
  background: #05070b;
  font-family: inherit;
}

.leaflet-control-attribution {
  color: rgba(191, 209, 221, 0.62);
  background: rgba(5, 9, 15, 0.72);
}

.leaflet-control-zoom a {
  color: var(--text);
  border-color: rgba(143, 165, 182, 0.22);
  background: rgba(8, 13, 21, 0.88);
}

.leaflet-interactive {
  filter: drop-shadow(0 0 9px rgba(85, 216, 255, 0.2));
}

.heat-map-halo,
.heat-map-core {
  mix-blend-mode: screen;
}

.territory-pulse {
  transition: opacity 180ms ease, stroke-width 180ms ease, fill-opacity 180ms ease;
}

.territory-pulse.active {
  animation: territoryPulse 2.8s ease-in-out infinite;
}

.relationship-flow {
  animation: relationshipFlow 4.8s linear infinite;
}

.node-point {
  transition: opacity 160ms ease, r 160ms ease;
}

.node-point.active {
  filter: drop-shadow(0 0 10px rgba(115, 247, 191, 0.34));
}

.selected-location-pulse {
  animation: selectedLocationPulse 1.55s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(231, 189, 111, 0.6));
}

.selected-location-flag {
  width: 24px !important;
  height: 34px !important;
  background: transparent;
}

.selected-location-flag span {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border: 2px solid #071018;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  box-shadow:
    0 0 0 2px rgba(231, 189, 111, 0.32),
    0 0 26px rgba(231, 189, 111, 0.74);
}

.selected-location-flag span::after {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 999px;
  background: #071018;
}

.selected-location-label {
  color: #071018;
  border: 0;
  background: var(--gold);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
  font-weight: 900;
}

@keyframes territoryPulse {
  0% {
    stroke-opacity: 0.62;
    fill-opacity: 0.08;
  }

  50% {
    stroke-opacity: 0.98;
    fill-opacity: 0.19;
  }

  100% {
    stroke-opacity: 0.62;
    fill-opacity: 0.08;
  }
}

@keyframes selectedLocationPulse {
  0% {
    stroke-opacity: 0.98;
    fill-opacity: 0.08;
    stroke-width: 2;
  }

  50% {
    stroke-opacity: 0.42;
    fill-opacity: 0.24;
    stroke-width: 5;
  }

  100% {
    stroke-opacity: 0.98;
    fill-opacity: 0.08;
    stroke-width: 2;
  }
}

@keyframes generatedPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(115, 247, 191, 0.6),
      0 0 42px rgba(115, 247, 191, 0.22);
  }

  100% {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  }
}

@keyframes relationshipFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -64;
  }
}

.intel-tooltip {
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.26);
  background: rgba(8, 13, 21, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.layer-panel {
  position: static;
  z-index: auto;
  width: auto;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(5, 9, 15, 0.76);
  backdrop-filter: blur(16px);
}

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

.panel-chrome .panel-title {
  margin-bottom: 0;
}

.panel-minimize {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.28);
  background: rgba(11, 20, 31, 0.82);
  font-size: 18px;
  line-height: 1;
}

.panel-minimize:hover {
  border-color: rgba(77, 217, 255, 0.62);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(77, 217, 255, 0.14);
}

.collapsible-panel .panel-body {
  margin-top: 9px;
}

.collapsible-panel.collapsed {
  overflow: hidden;
}

.collapsible-panel.collapsed .panel-body {
  display: none;
}

.layer-panel.collapsed {
  width: auto;
}

.brand-segment-controls {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(143, 165, 182, 0.18);
}

.heat-layer-controls {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(143, 165, 182, 0.18);
}

.heat-toggle span {
  color: #f4ddb0;
}

.lens-summary {
  margin: -2px 0 8px;
  color: #d8e8f5;
  font-size: 11px;
  line-height: 1.35;
}

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

.segment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.segment-actions button,
.segment-grid button,
.segment-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 5px 7px;
  color: #c9d8e4;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(11, 20, 31, 0.6);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
}

.segment-grid button.active,
.segment-grid button:hover,
.segment-grid a.active,
.segment-grid a:hover,
.segment-actions button.active,
.segment-actions button:hover {
  color: #091015;
  border-color: rgba(231, 189, 111, 0.78);
  background: linear-gradient(90deg, rgba(231, 189, 111, 0.95), rgba(115, 247, 191, 0.86));
  box-shadow: 0 0 18px rgba(231, 189, 111, 0.16);
}

.toggle {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 27px;
  color: #d8e8f5;
  font-size: 12px;
}

.toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
}

.legend {
  position: static;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(5, 9, 15, 0.72);
  backdrop-filter: blur(18px);
}

.narrative-stream {
  position: static;
  z-index: auto;
  width: auto;
  max-height: 190px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(5, 9, 15, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.narrative-stream.collapsed {
  width: auto;
  max-height: none;
  overflow: hidden;
}

.stream-context {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.narrative-lead {
  padding: 11px 0;
  border-top: 1px solid rgba(143, 165, 182, 0.16);
  animation: narrativeReveal 360ms ease both;
}

.narrative-lead:first-of-type {
  border-top: 0;
}

.narrative-lead span,
.narrative-lead strong,
.narrative-lead small {
  display: block;
}

.narrative-lead span {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.narrative-lead strong {
  margin-bottom: 5px;
  color: var(--text);
}

.narrative-lead p {
  margin-bottom: 6px;
  color: #b8c7d3;
  font-size: 12px;
  line-height: 1.42;
}

.narrative-lead small {
  color: rgba(115, 247, 191, 0.78);
  font-size: 11px;
}

.narrative-lead:hover {
  border-color: rgba(85, 216, 255, 0.28);
}

@keyframes narrativeReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.swatch.retailer {
  background: var(--gold);
}

.swatch.publicSchool {
  background: var(--green);
}

.swatch.privateSchool {
  background: var(--cyan);
}

.swatch.university {
  background: var(--violet);
}

.swatch.supplier {
  background: var(--rose);
}

.ranking-workbench {
  grid-row: 2;
  grid-column: 2 / 3;
  align-self: start;
  max-height: min(760px, calc(100dvh - 150px));
  overflow: auto;
  padding: 13px;
}

.reasoning-workbench,
.market-workbench,
.education-workbench,
.school-chair-workbench,
.graph-workbench,
.evidence-workbench,
.activity-rail {
  grid-row: 2;
  grid-column: 2 / 3;
  align-self: start;
}

.ranking-workbench,
.reasoning-workbench,
.market-workbench,
.education-workbench,
.school-chair-workbench,
.graph-workbench,
.evidence-workbench,
.activity-rail {
  display: none;
}

.ranking-workbench.module-focused,
.reasoning-workbench.module-focused,
.market-workbench.module-focused,
.education-workbench.module-focused,
.school-chair-workbench.module-focused,
.graph-workbench.module-focused,
.evidence-workbench.module-focused,
.activity-rail.module-focused {
  display: block;
}

.spatial-workbench.module-focused ~ .module-workbench {
  grid-column: 1 / 2;
}

.spatial-workbench.module-focused ~ .ranking-workbench {
  display: block;
  grid-column: 2 / 3;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 9px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(4, 9, 15, 0.58);
}

.ranking-row.active {
  border-color: rgba(231, 189, 111, 0.9);
  box-shadow: inset 0 0 0 1px rgba(231, 189, 111, 0.22), 0 0 22px rgba(231, 189, 111, 0.12);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #071018;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.ranking-row strong,
.ranking-row small,
.ranking-row em,
.insight-card span,
.insight-card strong,
.workbench-summary strong,
.workbench-summary span,
.activity-rail strong,
.activity-rail span,
.evidence-fact strong,
.evidence-fact span {
  display: block;
}

.ranking-row strong,
.insight-card strong,
.workbench-summary strong,
.activity-rail strong,
.evidence-fact strong {
  margin-bottom: 4px;
  color: var(--text);
}

.ranking-row small,
.ranking-row em,
.insight-card p,
.insight-card small,
.workbench-summary span,
.activity-rail span,
.evidence-fact span,
.reasoning-list li,
.evidence-drawer li,
.evidence-drawer p {
  color: #b8c7d3;
  font-size: 12px;
  line-height: 1.42;
}

.ranking-row em {
  margin-top: 5px;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.reasoning-workbench,
.market-workbench,
.education-workbench,
.school-chair-workbench,
.graph-workbench,
.evidence-workbench,
.activity-rail {
  overflow: auto;
  padding: 13px;
}

.reasoning-list {
  margin: 0;
  padding-left: 20px;
}

.reasoning-list li {
  margin-bottom: 9px;
}

.workbench-summary,
.insight-card,
.activity-rail article,
.evidence-fact {
  padding: 10px 0;
  border-top: 1px solid rgba(143, 165, 182, 0.16);
}

.workbench-summary:first-of-type,
.insight-card:first-of-type,
.activity-rail article:first-of-type,
.evidence-fact:first-of-type {
  border-top: 0;
}

.fact-table {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.fact-table div {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(143, 165, 182, 0.12);
}

.fact-table div:first-child {
  border-top: 0;
}

.visual-impact-panel,
.billboard-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 165, 182, 0.18);
}

.visual-impact-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.venn-panel {
  position: relative;
  min-height: 224px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.venn-panel b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #071018;
  background: var(--gold);
  padding: 6px 9px;
  font-size: 11px;
  text-transform: uppercase;
}

.venn-circle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  text-align: center;
  mix-blend-mode: screen;
}

.venn-circle strong,
.venn-circle span {
  display: block;
}

.venn-circle strong {
  color: var(--text);
  font-size: 13px;
}

.venn-circle span {
  max-width: 90px;
  color: #d8e8f5;
  font-size: 10px;
  line-height: 1.2;
}

.venn-circle.searchers {
  left: calc(50% - 178px);
  top: 28px;
  background: rgba(115, 247, 191, 0.3);
  border: 1px solid rgba(115, 247, 191, 0.45);
}

.venn-circle.sellers {
  left: calc(50% + 40px);
  top: 28px;
  background: rgba(231, 189, 111, 0.3);
  border: 1px solid rgba(231, 189, 111, 0.45);
}

.venn-circle.finds {
  left: calc(50% - 69px);
  bottom: 18px;
  background: rgba(85, 216, 255, 0.3);
  border: 1px solid rgba(85, 216, 255, 0.45);
}

.impact-bars {
  display: grid;
  gap: 8px;
}

.impact-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(143, 165, 182, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.impact-bar span,
.impact-bar strong,
.impact-bar i {
  display: block;
}

.impact-bar span {
  color: #c7d9e6;
  font-size: 11px;
}

.impact-bar strong {
  color: var(--text);
  font-size: 13px;
}

.impact-bar i {
  grid-column: 1 / -1;
  height: 8px;
  background:
    linear-gradient(90deg, var(--bar-color) 0 var(--bar), rgba(143, 165, 182, 0.13) var(--bar) 100%);
}

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

.billboard-card {
  padding: 10px;
  border: 1px solid rgba(231, 189, 111, 0.24);
  background: rgba(231, 189, 111, 0.045);
}

.billboard-card span,
.billboard-card strong {
  display: block;
}

.billboard-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.billboard-card strong {
  margin-top: 4px;
  color: var(--text);
}

.billboard-card ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.billboard-card li {
  margin-bottom: 5px;
  color: #c7d9e6;
  font-size: 12px;
  line-height: 1.35;
}

.fact-table dt,
.fact-table dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
}

.fact-table dt {
  color: var(--cyan);
  font-weight: 700;
}

.fact-table dd {
  color: #d6e4ef;
  overflow-wrap: anywhere;
}

.fact-table a,
.fact-action {
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 189, 111, 0.45);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.fact-table a:hover,
.fact-table a:focus-visible,
.fact-action:hover,
.fact-action:focus-visible {
  color: #ffe0a3;
  border-bottom-color: #ffe0a3;
}

.brief-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 10px;
}

.brief-action-bar button {
  min-height: 30px;
  padding: 6px 9px;
  color: #d8e8f5;
  border: 1px solid rgba(143, 165, 182, 0.26);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
}

.brief-action-bar button:first-child,
.brief-action-bar button:nth-child(2) {
  color: #071018;
  border-color: rgba(231, 189, 111, 0.7);
  background: var(--gold);
}

.workspace-toast {
  margin: 0 0 10px;
  color: var(--green) !important;
  font-weight: 800;
}

.feed-health-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feed-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.feed-health strong,
.feed-health span {
  display: block;
}

.feed-health strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
}

.feed-health span,
.feed-health small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.feed-health.pass {
  border-color: rgba(115, 247, 191, 0.28);
}

.feed-health.warn {
  border-color: rgba(231, 189, 111, 0.34);
}

.feed-health.fail {
  border-color: rgba(255, 113, 142, 0.34);
}

.insight-card span {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-card p {
  margin-bottom: 6px;
}

.insight-card small {
  display: block;
  color: rgba(115, 247, 191, 0.78);
}

.map-error {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 18px 20px;
}

.evidence-drawer,
.state-report-drawer {
  position: fixed;
  top: 112px;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: min(580px, calc(100vw - 36px));
  overflow: auto;
  padding: 18px;
  transform: translateX(calc(100% + 44px));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.state-report-drawer {
  width: min(980px, calc(100vw - 36px));
  border: 1px solid rgba(231, 189, 111, 0.48);
  background: var(--panel-opaque);
  box-shadow:
    0 0 0 1px rgba(231, 189, 111, 0.26),
    0 30px 90px rgba(0, 0, 0, 0.72);
  backdrop-filter: none;
}

.evidence-drawer.open,
.state-report-drawer.open {
  transform: translateX(0);
  box-shadow:
    0 0 0 1px rgba(231, 189, 111, 0.32),
    0 30px 90px rgba(0, 0, 0, 0.62);
}

.evidence-drawer:focus,
.state-report-drawer:focus {
  outline: 1px solid rgba(231, 189, 111, 0.72);
  outline-offset: 3px;
}

.evidence-drawer h2,
.state-report-drawer h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.evidence-drawer ul,
.state-report-drawer ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.state-report-section {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(143, 165, 182, 0.18);
}

.state-report-section > strong {
  color: var(--text);
}

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

.state-report-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.state-report-card {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.state-report-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-report-card.lesson span {
  color: var(--cyan);
}

.state-report-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.state-report-card p,
.state-report-card small,
.state-report-card em {
  margin: 0;
  color: #c7d9e6;
  font-size: 12px;
  line-height: 1.38;
}

.state-report-card small {
  color: var(--muted);
}

.state-report-card em {
  color: #f4ddb0;
  font-style: normal;
}

.close-evidence {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1380px) {
  .platform-shell {
    padding-left: 176px;
  }

  .left-nav {
    width: 176px;
    padding: 14px 10px;
  }

  .brand-block {
    grid-template-columns: 32px 1fr;
    gap: 8px;
  }

  .brand-block img {
    width: 32px;
    height: 32px;
  }

  .brand-block strong {
    font-size: 12px;
  }

  .left-nav nav button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .platform-main {
    padding: 12px;
  }

  .top-intelbar {
    grid-template-columns: minmax(190px, 0.7fr) minmax(320px, 1.4fr) minmax(190px, 0.7fr);
    gap: 10px;
    padding: 10px;
  }

  .workbench-grid {
    grid-template-columns: minmax(240px, 0.82fr) minmax(440px, 1.5fr) minmax(258px, 0.9fr);
    gap: 10px;
  }

  .map-support-rail {
    grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.2fr) minmax(220px, 0.8fr);
    gap: 10px;
  }

  .context-cluster span {
    font-size: 10px;
  }
}

@media (max-width: 1180px) {
  html,
  body,
  #app {
    height: auto;
    min-height: 100%;
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .platform-shell {
    padding-left: 0;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .left-nav {
    display: none;
    position: static;
    width: auto;
    height: auto;
  }

  .platform-main {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 12px;
  }

  .top-intelbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
  }

  .context-cluster {
    justify-content: flex-start;
  }

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

  .workbench-grid {
    display: grid;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    min-height: 0;
    padding-top: 12px;
  }

  .spatial-workbench {
    order: 1;
  }

  .map-support-rail {
    order: 2;
  }

  .module-workbench {
    order: 3;
  }

  .ranking-workbench {
    order: 4;
  }

  .reasoning-workbench {
    order: 5;
  }

  .market-workbench {
    order: 6;
  }

  .education-workbench {
    order: 7;
  }

  .school-chair-workbench {
    order: 8;
  }

  .graph-workbench {
    order: 9;
  }

  .evidence-workbench {
    order: 10;
  }

  .activity-rail {
    order: 11;
  }

  .spatial-workbench,
  .map-support-rail,
  .ranking-workbench,
  .module-workbench,
  .reasoning-workbench,
  .market-workbench,
  .education-workbench,
  .school-chair-workbench,
  .graph-workbench,
  .evidence-workbench,
  .activity-rail {
    grid-row: auto;
    grid-column: auto;
    min-height: 0;
    max-height: none;
  }

  .spatial-workbench {
    grid-template-rows: auto minmax(560px, 72vh);
    min-height: 0;
  }

  .leaflet-stage {
    min-height: 560px;
  }

  .map-support-rail {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .ranking-workbench {
    max-height: 460px;
  }

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

@media (max-width: 760px) {
  .platform-main {
    padding: 10px;
  }

  .top-intelbar {
    padding: 10px;
  }

  h1 {
    font-size: 21px;
    line-height: 1.08;
  }

  h2 {
    font-size: 17px;
    line-height: 1.18;
  }

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

  .command-bar button,
  .spatial-header button {
    width: 100%;
  }

  .context-cluster span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .workbench-grid {
    gap: 10px;
  }

  .module-workbench,
  .reasoning-workbench,
  .market-workbench,
  .education-workbench,
  .school-chair-workbench,
  .graph-workbench,
  .evidence-workbench,
  .activity-rail {
    padding: 12px;
  }

  .trust-ribbon,
  .institution-context-form,
  .institution-evidence-table,
  .feeder-readiness-table,
  .authority-source-table,
  .program-guardrail-grid,
  .dean-workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spatial-workbench {
    grid-template-rows: auto 620px;
    min-height: 0;
  }

  .spatial-header {
    top: auto;
    left: auto;
    right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .leaflet-stage {
    min-height: 620px;
  }

  .layer-panel {
    width: 100%;
    max-height: none;
    overflow: auto;
    padding: 10px;
  }

  .layer-panel.collapsed {
    width: 100%;
  }

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

  .segment-grid button {
    min-height: 32px;
    text-align: center;
  }

  .narrative-stream,
  .narrative-stream.collapsed {
    width: auto;
    max-height: none;
    padding: 11px;
  }

  .legend {
    justify-content: center;
  }

  .ranking-workbench {
    max-height: 420px;
  }

  .ranking-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .score-strip {
    grid-template-columns: 1fr;
  }

  .evidence-drawer,
  .state-report-drawer {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 16px;
  }

  .state-report-card-grid,
  .state-report-card-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Spatial intelligence scenes v1 — map is one analytical view, not the page. */
.scene-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 20px;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(85, 216, 255, 0.24);
  background: linear-gradient(135deg, rgba(11, 25, 38, 0.96), rgba(7, 16, 25, 0.9));
}

.scene-summary h2 {
  max-width: 940px;
  margin: 4px 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.scene-summary-copy > p:last-child {
  max-width: 780px;
  margin: 0;
  color: #aebfcb;
  line-height: 1.5;
}

.scene-priorities {
  display: grid;
  gap: 7px;
}

.scene-priorities button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(2, 7, 12, 0.48);
}

.scene-priorities button.active { border-color: var(--gold); }
.scene-priorities button > span { grid-row: 1 / 3; display: grid; place-items: center; color: #071018; background: var(--gold); font-weight: 900; }
.scene-priorities strong { font-size: 13px; }
.scene-priorities small { color: var(--muted); font-size: 10px; }

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

.scene-switcher button {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  text-align: left;
  color: #d6e3ec;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(6, 12, 19, 0.78);
}

.scene-switcher button:hover,
.scene-switcher button.active { border-color: var(--cyan); background: rgba(85, 216, 255, 0.1); }
.scene-switcher button.active strong { color: var(--cyan); }
.scene-switcher strong { font-size: 14px; }
.scene-switcher span { color: var(--muted); font-size: 10px; }
.scene-switcher .evidence-view-button { border-color: rgba(231, 189, 111, 0.34); }

.scene-refine,
.deep-analysis {
  margin-top: 10px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(5, 10, 16, 0.72);
}

.scene-refine > summary,
.deep-analysis > summary {
  padding: 12px 14px;
  color: #b9c9d4;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.scene-refine[open] > summary,
.deep-analysis[open] > summary { color: var(--cyan); border-bottom: 1px solid var(--line); }
.scene-refine .territory-browser,
.scene-refine .industry-search-panel { margin: 10px; }

.workbench-grid.scene-map {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(540px, 66vh) auto;
}

.workbench-grid .spatial-workbench,
.workbench-grid .map-support-rail { display: none; }
.workbench-grid .spatial-workbench.scene-active,
.workbench-grid .map-support-rail.scene-active { display: grid; }
.workbench-grid .spatial-workbench.scene-active { grid-column: 1 / -1; grid-row: 1; }
.workbench-grid .map-support-rail.scene-active { grid-column: 1 / -1; grid-row: 1; }

.legacy-detail { display: none !important; }
.deep-analysis { grid-column: 1 / -1; }
.workbench-grid.scene-compare,
.workbench-grid.scene-network { grid-template-rows: auto auto; }
.workbench-grid.scene-compare .deep-analysis,
.workbench-grid.scene-network .deep-analysis { grid-row: 2; }
.deep-analysis .role-operating-system,
.deep-analysis .market-signal-board { margin: 10px; }

.comparison-scene,
.network-scene {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}

.comparison-scene > header,
.network-scene > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.comparison-scene header h2,
.network-scene header h2 { margin: 3px 0 0; font-size: 24px; }
.comparison-scene header > p { max-width: 360px; color: var(--muted); font-size: 12px; }
.network-scene header button { padding: 10px 12px; color: #071018; border: 0; background: var(--gold); font-weight: 900; }

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(95px, .65fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
}

.comparison-header { padding: 0 12px 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.comparison-row { width: 100%; padding: 12px; text-align: left; color: var(--text); border: 1px solid rgba(143,165,182,.16); background: rgba(2,7,12,.48); }
.comparison-row + .comparison-row { margin-top: 6px; }
.comparison-row:hover,
.comparison-row.active { border-color: var(--gold); background: rgba(231,189,111,.07); }
.comparison-name { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; }
.comparison-name > b { grid-row: 1 / 3; display: grid; place-items: center; color: #071018; background: var(--gold); }
.comparison-name small,
.evidence-grade small { color: var(--muted); font-size: 10px; }
.metric-bar { position: relative; display: block; height: 30px; overflow: hidden; background: rgba(85,216,255,.06); }
.metric-bar i { position: absolute; inset: 0 auto 0 0; background: rgba(85,216,255,.22); }
.metric-bar.pressure i { background: rgba(231,189,111,.24); }
.metric-bar strong { position: relative; display: grid; align-items: center; height: 100%; padding: 0 8px; font-size: 12px; }
.evidence-grade { display: grid; }
.posture { color: #dce8ef; font-size: 11px; line-height: 1.35; }

.network-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
  min-height: 380px;
  padding: 42px 18px 24px;
  background: radial-gradient(circle at 50% 43%, rgba(85,216,255,.14), transparent 28%), rgba(2,7,12,.45);
}

.network-center {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 50%;
  display: grid;
  gap: 5px;
  width: 210px;
  padding: 22px;
  transform: translate(-50%,-50%);
  text-align: center;
  border: 1px solid var(--gold);
  background: #0a1520;
  box-shadow: 0 0 46px rgba(231,189,111,.16);
}

.network-center span,
.network-node span { color: var(--cyan); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.network-center strong { font-size: 24px; }
.network-center small,
.network-node small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.network-node { position: relative; z-index: 2; display: grid; gap: 6px; align-self: end; min-height: 120px; padding: 16px; border: 1px solid rgba(143,165,182,.22); background: #071018; }
.network-node::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 100px; background: linear-gradient(var(--cyan), transparent); transform: rotate(calc((var(--node-index) - 2) * -16deg)); transform-origin: bottom; opacity: .38; }
.network-node strong { font-size: 28px; }
.network-node.school { border-color: rgba(115,247,191,.45); }
.network-node.retail,
.network-node.dealer { border-color: rgba(231,189,111,.45); }
.network-node.supplier { border-color: rgba(255,113,142,.45); }
.network-node.university { border-color: rgba(169,151,255,.45); }
.network-boundary { display: flex; gap: 14px; margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(231,189,111,.06); }
.network-boundary span { color: #b9c8d2; font-size: 12px; }

@media (max-width: 980px) {
  .scene-summary { grid-template-columns: 1fr; }
  .scene-switcher { grid-template-columns: repeat(2, 1fr); }
  .comparison-scene { overflow-x: auto; }
  .comparison-header,
  .comparison-row { min-width: 780px; }
  .network-canvas { grid-template-columns: repeat(2, minmax(0,1fr)); padding-top: 220px; }
  .network-center { top: 110px; }
  .network-node::before { display: none; }
}

@media (max-width: 620px) {
  .scene-switcher { grid-template-columns: 1fr; }
  .scene-summary { padding: 16px; }
  .network-canvas { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .platform-main {
    padding: 8px;
  }

  .top-intelbar {
    padding: 9px;
  }

  .eyebrow,
  .panel-title {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: 19px;
  }

  .context-cluster {
    display: none;
  }

  .spatial-workbench {
    grid-template-rows: auto 680px;
    min-height: 0;
  }

  .leaflet-stage {
    min-height: 680px;
  }

  .layer-panel {
    width: calc(100% - 16px);
  }

  .layer-panel.collapsed {
    width: calc(100% - 16px);
  }

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

  .narrative-stream,
  .narrative-stream.collapsed {
    max-height: 30%;
  }

  .feed-health-stack,
  .ranking-list {
    gap: 7px;
  }
}


.role-operating-system {
  grid-row: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(124, 211, 164, 0.42);
  background: linear-gradient(135deg, rgba(124, 211, 164, 0.1), rgba(85, 216, 255, 0.045)), rgba(7, 16, 24, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.role-os-header,
.role-switcher {
  grid-column: 1 / -1;
}

.role-operating-system .visual-impact-panel {
  grid-column: 1 / 2;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.role-operating-system .role-decision-grid {
  grid-column: 1 / -1;
}

.role-operating-system .billboard-panel {
  grid-column: 1 / -1;
}

.role-os-header,
.role-switcher {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.role-os-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
}

.role-os-header > span {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #071018;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.role-switcher {
  justify-content: flex-start;
  align-items: center;
}

.role-switcher span {
  color: #c2d2de;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-switcher button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid rgba(143, 165, 182, 0.28);
  background: rgba(4, 9, 15, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.role-switcher button.active {
  color: #071018;
  border-color: transparent;
  background: var(--gold);
}

.role-decision-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(190px, 0.75fr) minmax(190px, 0.75fr);
  gap: 8px;
}

.role-decision-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(143, 165, 182, 0.24);
  background: rgba(4, 9, 15, 0.58);
}

.role-decision-card.primary {
  border-color: rgba(124, 211, 164, 0.48);
  background: rgba(124, 211, 164, 0.08);
}

.role-decision-card.warning {
  border-color: rgba(255, 113, 142, 0.34);
}

.role-decision-card.proof {
  border-color: rgba(85, 216, 255, 0.34);
  grid-column: auto;
}

.role-decision-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-decision-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.role-decision-card p,
.role-decision-card li,
.role-decision-card small,
.role-decision-card em {
  margin: 0;
  color: #c2d2de;
  font-size: 11px;
  line-height: 1.32;
}

.role-decision-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  max-height: 150px;
  overflow: auto;
}

.role-decision-card li b,
.role-decision-card li small,
.role-decision-card li em {
  display: block;
}

.role-decision-card li b {
  color: var(--text);
}

.role-decision-card li em {
  color: var(--green);
  font-style: normal;
}

.role-decision-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: #071018;
  border: 0;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.role-operating-system .visual-impact-panel {
  display: none;
}

.market-signal-board {
  grid-row: 4;
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(85, 216, 255, 0.26);
  background: rgba(7, 16, 24, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.signal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.signal-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
}

.signal-header > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: #071018;
  background: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-tape {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}

.signal-tape div {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.signal-tape span {
  color: #c7d9e6;
  font-size: 11px;
  white-space: nowrap;
}

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

.signal-visual-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8px;
}

.signal-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(4, 9, 15, 0.58);
}

.signal-card span,
.signal-card strong,
.signal-card p {
  display: block;
}

.signal-card span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-card strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.signal-card p {
  margin: 0;
  color: #c2d2de;
  font-size: 11px;
  line-height: 1.32;
}

.signal-chart {
  height: 8px;
  background: rgba(143, 165, 182, 0.14);
}

.signal-chart i {
  display: block;
  height: 100%;
  background: var(--green);
}

.brand-bars,
.mix-bars {
  display: grid;
  gap: 8px;
}

.brand-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.5fr) auto;
  gap: 8px;
  align-items: center;
}

.brand-bars b,
.brand-bars small,
.mix-bars b,
.mix-bars small {
  color: #c7d9e6;
  font-size: 11px;
  line-height: 1.2;
}

.brand-bars i {
  height: 8px;
  background: rgba(143, 165, 182, 0.14);
}

.brand-bars em {
  display: block;
  height: 100%;
  background: var(--gold);
}

.mix-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 160px;
  align-items: end;
}

.mix-bars div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-height: 160px;
}

.mix-bars i {
  display: block;
  align-self: end;
  min-height: 8px;
  background: linear-gradient(180deg, var(--cyan), rgba(85, 216, 255, 0.28));
}

@media (max-width: 1180px) {
  .industry-search-form,
  .industry-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-search-box,
  .industry-search-form button {
    grid-column: 1 / -1;
  }

  .role-operating-system {
    order: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .role-operating-system .visual-impact-panel,
  .role-operating-system .role-decision-grid,
  .role-operating-system .billboard-panel {
    grid-column: 1 / -1;
  }

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

  .save-report-grid,
  .ecosystem-lesson-grid,
  .role-perspective-grid {
    grid-template-columns: 1fr;
  }

  .save-action-card,
  .ecosystem-lesson-card,
  .role-perspective-card,
  .role-decision-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .industry-search-form,
  .industry-search-results {
    grid-template-columns: 1fr;
  }

  .industry-result-card {
    min-height: 0;
  }

  .role-operating-system {
    padding: 10px;
  }

  .role-os-header {
    display: grid;
  }

  .role-os-header h2 {
    font-size: 20px;
  }

  .role-os-header > span {
    justify-self: start;
  }

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

  .role-switcher button {
    width: 100%;
  }
}

.opportunity-dashboard {
  display: grid;
  gap: 14px;
}

.opportunity-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.opportunity-dashboard-header h2,
.opportunity-dashboard-header p {
  margin: 0;
}

.opportunity-dashboard-header p {
  margin-top: 4px;
  color: #b8c7d3;
  font-size: 13px;
  line-height: 1.4;
}

.opportunity-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(143, 165, 182, 0.2);
  background: rgba(7, 16, 24, 0.72);
}

.opportunity-form label {
  display: grid;
  gap: 6px;
  color: #dce8f1;
  font-size: 12px;
  font-weight: 800;
}

.opportunity-form input,
.opportunity-form select,
.opportunity-form textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(143, 165, 182, 0.28);
  border-radius: 6px;
  background: rgba(3, 8, 14, 0.82);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.opportunity-description-field {
  grid-column: 1 / -1;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 12px;
  min-height: 260px;
}

.opportunity-list,
.opportunity-detail {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(7, 16, 24, 0.58);
}

.opportunity-row {
  display: grid;
  gap: 4px;
  min-height: 74px;
  text-align: left;
  border: 1px solid rgba(143, 165, 182, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 10px;
}

.opportunity-row:hover,
.opportunity-row.active {
  border-color: rgba(231, 189, 111, 0.58);
  background: rgba(231, 189, 111, 0.08);
}

.opportunity-row strong,
.opportunity-row span,
.opportunity-row small,
.opportunity-detail h3,
.opportunity-detail p,
.opportunity-detail dd {
  overflow-wrap: anywhere;
}

.opportunity-row span,
.opportunity-row small,
.opportunity-detail p,
.opportunity-detail dd {
  color: #b8c7d3;
}

.opportunity-detail dl {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.opportunity-detail dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
}

.opportunity-detail dt {
  color: #8fa5b6;
  font-size: 12px;
  font-weight: 800;
}

.opportunity-empty {
  color: #b8c7d3;
  margin: 0;
}

.map-header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.map-engine-badge {
  border: 1px solid rgba(92, 213, 255, 0.32);
  color: #b9edff;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.maplibregl-map {
  font: inherit;
}

.maplibregl-ctrl-group {
  background: rgba(7, 16, 24, 0.9);
}

@media (max-width: 900px) {
  .opportunity-form,
  .opportunity-grid {
    grid-template-columns: 1fr;
  }
}
