@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Sora:wght@400;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #06090d;
  --bg-soft: #0a0f14;
  --surface: rgba(8, 14, 20, 0.84);
  --surface-strong: rgba(10, 18, 24, 0.94);
  --line: rgba(120, 255, 229, 0.14);
  --line-strong: rgba(120, 255, 229, 0.28);
  --text: #d8fff8;
  --text-soft: rgba(216, 255, 248, 0.76);
  --muted: #74a39f;
  --accent: #78ffe5;
  --accent-soft: rgba(120, 255, 229, 0.14);
  --adversary: #ff8769;
  --ally: #78ffe5;
  --neutral: #91a9b0;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: min(1280px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  background:
    radial-gradient(circle at top center, rgba(120, 255, 229, 0.08), transparent 0 30rem),
    linear-gradient(180deg, #06090d 0%, #070b10 42%, #05080c 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(120, 255, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 229, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 90%);
  opacity: 0.3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(120, 255, 229, 0.018) 0%,
    transparent 12%,
    transparent 88%,
    rgba(120, 255, 229, 0.018) 100%
  );
}

.shell {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.masthead,
.workspace-toolbar,
.command-row,
.search-form,
.stakeholder-header,
.development-header,
.risk-header,
.chip-row {
  display: flex;
}

.masthead,
.workspace-toolbar,
.command-row {
  align-items: center;
  justify-content: space-between;
}

.masthead {
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.brand-mark {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
  font-weight: 600;
}

.brand-note,
.masthead-meta,
.eyebrow,
.meta-label,
.section-label,
.panel-state,
.workspace-status,
.footer,
.timeline-date,
.stakeholder-kind,
.development-source,
.empty-copy {
  color: var(--muted);
}

.brand-note,
.masthead-meta,
.meta-label,
.section-label,
.panel-state,
.development-source,
.timeline-date,
.stakeholder-kind {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.masthead-meta {
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(8, 14, 20, 0.72);
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(120, 255, 229, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: end;
  padding: 5.25rem 0 3.2rem;
  border-top: 1px solid var(--line);
}

.hero-copy {
  max-width: 52rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.9rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(4rem, 11vw, 8rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-text {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-tag {
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(120, 255, 229, 0.03);
}

.command-row {
  gap: 0.85rem;
  padding: 1rem 0 3.25rem;
  flex-direction: column;
  align-items: stretch;
}

.search-form {
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 18, 0.82);
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(120, 255, 229, 0.12);
}

.search-form input,
.search-form button,
.example-topic {
  appearance: none;
  border: 0;
  border-radius: 0;
  color: var(--text);
  font: inherit;
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 1rem 1.05rem;
  background: transparent;
  outline: none;
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-form button {
  padding: 0 1.1rem;
  min-width: 12rem;
  border-left: 1px solid var(--line-strong);
  background: rgba(120, 255, 229, 0.06);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.search-form button:hover,
.search-form button:focus-visible,
.example-topic:hover,
.example-topic:focus-visible {
  background: rgba(120, 255, 229, 0.12);
}

.search-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

body.is-loading .button-text::after {
  content: " / loading";
  color: var(--accent);
  animation: pulse 1s linear infinite;
}

.assist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
}

.example-topic {
  padding: 0.92rem 0.82rem;
  border: 1px solid var(--line);
  background: rgba(120, 255, 229, 0.04);
  cursor: pointer;
  white-space: nowrap;
}

.workspace {
  padding-top: 1rem;
  animation: rise 320ms ease forwards;
}

.workspace-toolbar {
  gap: 1rem;
  align-items: flex-end;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.workspace-status {
  text-align: right;
  font-size: 0.82rem;
}

.workspace-status p,
.inline-error,
.footer p,
.hero-text,
.development-item p,
.relevance-item p,
.risk-item p,
.timeline-item p,
.summary-list p,
.stakeholder-copy p {
  margin: 0;
}

.workspace-stack {
  display: grid;
  gap: 2.6rem;
  padding-top: 2.1rem;
}

.band-header {
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
}

.band-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.8;
}

.overview-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 3rem;
  align-items: start;
  transition: transform 240ms ease;
}

.overview-canvas[data-scene="pressure"] .map-card {
  border-color: rgba(120, 255, 229, 0.24);
  background:
    radial-gradient(circle at 60% 22%, rgba(120, 255, 229, 0.1), transparent 54%),
    rgba(8, 14, 20, 0.6);
}

.overview-canvas[data-scene="europe"] .map-card {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(8, 14, 20, 0.58);
}

.overview-copy {
  display: grid;
  gap: 1.2rem;
}

.scene-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem;
  border: 1px solid rgba(120, 255, 229, 0.12);
  background: rgba(8, 14, 20, 0.5);
}

.scene-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.62rem 0.84rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.scene-toggle:hover,
.scene-toggle:focus-visible {
  color: var(--text);
}

.scene-toggle.is-active {
  color: #041013;
  background: var(--accent);
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.glance-card {
  appearance: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(120, 255, 229, 0.12);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.glance-card:hover,
.glance-card:focus-visible {
  border-color: rgba(120, 255, 229, 0.32);
  transform: translateY(-1px);
}

.glance-card.is-active strong {
  color: var(--accent);
}

.glance-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.glance-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.scene-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
  background:
    linear-gradient(135deg, rgba(120, 255, 229, 0.06), transparent 48%),
    rgba(8, 14, 20, 0.52);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hotspot-section {
  display: grid;
  gap: 1rem;
}

.hotspot-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.hotspot-card {
  appearance: none;
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(120, 255, 229, 0.12);
  background:
    linear-gradient(180deg, rgba(120, 255, 229, 0.05), transparent 45%),
    rgba(8, 14, 20, 0.56);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.hotspot-card:hover,
.hotspot-card:focus-visible {
  border-color: rgba(120, 255, 229, 0.28);
  transform: translateY(-1px);
}

.hotspot-card.is-active {
  border-color: rgba(120, 255, 229, 0.34);
  background:
    linear-gradient(180deg, rgba(120, 255, 229, 0.08), transparent 52%),
    rgba(8, 14, 20, 0.68);
}

.hotspot-card strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  line-height: 1.35;
}

.hotspot-card p,
.hotspot-card-meta {
  margin: 0;
}

.hotspot-card p {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.hotspot-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.hotspot-card-region,
.hotspot-card-tone {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hotspot-card-region {
  color: var(--muted);
}

.hotspot-card-tone {
  padding: 0.24rem 0.45rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
}

.hotspot-card-tone[data-urgency="critical"] {
  color: #041013;
  background: var(--accent);
  border-color: transparent;
}

.hotspot-card-tone[data-urgency="spillover"] {
  color: #ffd4c8;
  border-color: rgba(255, 135, 105, 0.26);
  background: rgba(255, 135, 105, 0.08);
}

.hotspot-card-tone[data-urgency="underwatched"] {
  color: #b7c7cb;
  border-color: rgba(145, 169, 176, 0.24);
  background: rgba(145, 169, 176, 0.08);
}

.scene-panel-head {
  display: grid;
  gap: 0.35rem;
}

h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.scene-body {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 42rem;
}

.scene-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.scene-metric {
  padding: 0.56rem 0.72rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
  background: rgba(120, 255, 229, 0.04);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.55rem;
  border: 1px solid rgba(120, 255, 229, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 255, 229, 0.05), transparent 56%),
    rgba(8, 14, 20, 0.54);
}

.map-toolbar {
  display: flex;
  justify-content: flex-end;
}

.map-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
  background: rgba(8, 14, 20, 0.68);
}

.map-control-button {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid rgba(120, 255, 229, 0.16);
  background: rgba(12, 22, 30, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.map-control-button:hover,
.map-control-button:focus-visible {
  border-color: rgba(120, 255, 229, 0.34);
  background: rgba(18, 31, 42, 0.96);
  transform: translateY(-1px);
}

.map-control-button-reset {
  min-width: auto;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-control-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.map-zoom-level {
  min-width: 3.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.world-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 229, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 255, 229, 0.04), transparent 65%),
    rgba(4, 9, 14, 0.58);
  outline: none;
}

.map-visual:focus-visible {
  border-color: rgba(120, 255, 229, 0.32);
  box-shadow: 0 0 0 1px rgba(120, 255, 229, 0.14);
}

.map-visual.is-draggable {
  cursor: grab;
}

.map-visual.is-panning {
  cursor: grabbing;
}

.map-stage {
  position: relative;
  transform: translate(var(--map-pan-x, 0px), var(--map-pan-y, 0px))
    scale(var(--map-scale, 1));
  transform-origin: center center;
  transition: transform 180ms ease;
  will-change: transform;
}

.map-stage.is-panning {
  transition: none;
}

.continent {
  fill: rgba(216, 255, 248, 0.08);
  stroke: rgba(120, 255, 229, 0.12);
  stroke-width: 1.1;
}

.world-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.world-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.focus-arc {
  fill: none;
  stroke: rgba(120, 255, 229, 0.34);
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  animation: dash 12s linear infinite;
}

.map-hotspot {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease;
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  transform: scale(1.04);
}

.map-hotspot.is-muted {
  opacity: 0.4;
}

.map-hotspot-core {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: rgba(120, 255, 229, 0.9);
  box-shadow: 0 0 0 0 rgba(120, 255, 229, 0.35);
  animation: ping 2.2s ease-out infinite;
}

.map-hotspot-europe {
  left: 54%;
  top: 27%;
}

.map-hotspot-taiwan {
  left: 78.2%;
  top: 41.5%;
}

.map-hotspot-japan {
  left: 71.8%;
  top: 39%;
}

.map-hotspot-levant {
  left: 58%;
  top: 38%;
}

.map-hotspot-iran {
  left: 63.5%;
  top: 39%;
}

.map-hotspot-caucasus {
  left: 61.5%;
  top: 31.5%;
}

.map-hotspot-sudan {
  left: 56.2%;
  top: 47.5%;
}

.map-hotspot-sahel {
  left: 47.5%;
  top: 44%;
}

.map-hotspot-south-america {
  left: 24.5%;
  top: 46%;
}

.map-hotspot-label {
  padding: 0.24rem 0.44rem;
  border: 1px solid rgba(120, 255, 229, 0.12);
  background: rgba(8, 14, 20, 0.72);
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-hotspot.is-active .map-hotspot-core {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(120, 255, 229, 0.6);
}

.map-hotspot.is-active .map-hotspot-label {
  color: var(--text);
  border-color: rgba(120, 255, 229, 0.28);
}

.map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-tag {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(120, 255, 229, 0.14);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-tag-hot {
  color: var(--text);
  border-color: rgba(120, 255, 229, 0.26);
}

.detail-stack {
  display: grid;
  gap: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(120, 255, 229, 0.12);
}

.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(120, 255, 229, 0.05), transparent 28%),
    var(--surface);
  position: relative;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.panel summary::-webkit-details-marker {
  display: none;
}

.panel summary::after {
  content: "+";
  color: var(--accent);
}

.panel[open] summary::after {
  content: "−";
}

.panel:hover {
  border-color: rgba(120, 255, 229, 0.24);
}

.panel-body {
  padding: 0 1rem 1rem;
}

.panel-summary .panel-body {
  max-width: 42rem;
  padding-bottom: 1.35rem;
}

.panel-summary .summary-list {
  gap: 1.1rem;
}

.panel-summary .summary-list p {
  font-size: 0.92rem;
}

.panel-summary .summary-list p:first-child {
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
}

.panel-drawer {
  background: rgba(8, 14, 20, 0.42);
}

.panel-drawer summary {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.panel-drawer[open] {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(120, 255, 229, 0.06), transparent 32%),
    rgba(8, 14, 20, 0.58);
}

.inline-error {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 135, 105, 0.34);
  color: #ffc5b5;
  background: rgba(255, 135, 105, 0.08);
}

.summary-list,
.stakeholder-list,
.timeline-list,
.development-list,
.risk-list,
.relevance-list,
.skeleton-stack {
  display: grid;
  gap: 0.9rem;
}

.summary-list p,
.development-item p,
.relevance-item p,
.risk-item p,
.timeline-item p,
.stakeholder-copy p {
  color: var(--text-soft);
  line-height: 1.8;
}

.stakeholder-row,
.development-item,
.risk-item,
.relevance-item {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(120, 255, 229, 0.1);
}

.stakeholder-row:first-child,
.development-item:first-child,
.risk-item:first-child,
.relevance-item:first-child,
.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.stakeholder-header,
.development-header,
.risk-header {
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.stakeholder-name,
.timeline-item strong,
.development-item strong,
.risk-item strong,
.relevance-item strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  line-height: 1.35;
}

.relationship-badge,
.impact-chip,
.probability-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.relationship-badge[data-tone="ally"] {
  color: var(--ally);
  border-color: rgba(120, 255, 229, 0.26);
  background: rgba(120, 255, 229, 0.08);
}

.relationship-badge[data-tone="adversary"] {
  color: var(--adversary);
  border-color: rgba(255, 135, 105, 0.26);
  background: rgba(255, 135, 105, 0.08);
}

.relationship-badge[data-tone="neutral"] {
  color: var(--neutral);
  border-color: rgba(145, 169, 176, 0.24);
  background: rgba(145, 169, 176, 0.08);
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
  border-left: 1px solid rgba(120, 255, 229, 0.22);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.32rem;
  top: 0.18rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(120, 255, 229, 0.5);
}

.timeline-date {
  display: block;
  margin-bottom: 0.38rem;
}

.chip-row {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.impact-chip,
.probability-chip {
  color: var(--text);
  background: rgba(120, 255, 229, 0.04);
}

.probability-chip[data-probability="high"] {
  color: #ffc0b0;
  border-color: rgba(255, 135, 105, 0.28);
}

.probability-chip[data-probability="medium"] {
  color: #99fff0;
}

.probability-chip[data-probability="low"] {
  color: #a4bfc5;
}

.skeleton-line {
  height: 0.84rem;
  background:
    linear-gradient(90deg, rgba(120, 255, 229, 0.04), rgba(120, 255, 229, 0.16), rgba(120, 255, 229, 0.04));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-line.short {
  width: 56%;
}

.skeleton-line.medium {
  width: 74%;
}

.skeleton-line.tall {
  width: 88%;
}

.empty-copy {
  line-height: 1.8;
}

.footer {
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.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;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 255, 229, 0.36);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(120, 255, 229, 0);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -64;
  }
}

@media (max-width: 1040px) {
  .hero,
  .command-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .assist-row {
    justify-content: flex-start;
  }

  .workspace-toolbar,
  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-status {
    text-align: left;
  }

  .overview-canvas,
  .glance-grid,
  .hotspot-board {
    grid-template-columns: 1fr;
  }

  .map-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 1rem, 100%);
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    min-height: 3.2rem;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .masthead-meta {
    width: 100%;
    justify-content: center;
  }

  .scene-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .scene-toggle {
    flex: 1;
    text-align: center;
  }

  .scene-metrics,
  .hero-tags {
    gap: 0.5rem;
  }

  .map-toolbar {
    justify-content: flex-start;
  }

  .map-zoom-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .map-hotspot-label {
    display: none;
  }
}
