/* BalticFusion · r-mac-data-scenarios — dark cinematic theme */

:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --panel: #121830;
  --panel-2: #1a2148;
  --border: #232a52;
  --text: #e6ecff;
  --text-dim: #9aa3c7;
  --accent: #5be7ff;
  --accent-2: #7c5cff;
  --warn: #ffb547;
  --alert: #ff4d6d;
  --ok: #46d39a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text); margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* ---- Disclaimer strip ---- */
.disclaimer-strip {
  background: #1a0f2a;
  color: var(--warn);
  border-bottom: 1px solid #2a1a3a;
  font-size: 0.78rem;
  padding: 4px 16px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---- Top navigation ---- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topnav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.topnav .brand .accent { color: var(--accent); }
.topnav nav a {
  margin-left: 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.topnav nav a:hover { color: var(--accent); }

/* ---- Hero (landing) ---- */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .hero-map {
  position: absolute;
  inset: 0;
}
.hero .hero-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 360px;
  max-height: calc(100% - 40px);
  background: rgba(18, 24, 48, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.hero .hero-panel h2 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 4px;
}
.hero .hero-panel .subtitle {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.hero .hero-panel .composite {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0 10px;
}
.hero .hero-panel .composite .score {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--alert);
}
.hero .hero-panel .composite .label { color: var(--text-dim); font-size: 0.78rem; }

.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed rgba(255,255,255,0.06);
  font-size: 0.82rem;
}
.stage-list li:first-child { border-top: none; }
.stage-list .tag {
  display: inline-block;
  min-width: 24px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 0.7rem;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  flex-shrink: 0;
}
.stage-list .tag.A { background: #5be7ff; }
.stage-list .tag.B { background: #7c5cff; color: #fff; }
.stage-list .tag.C { background: #ffb547; }
.stage-list .tag.D { background: #ff4d6d; color: #fff; }
.stage-list .tag.E { background: #46d39a; }

/* ---- Gallery ---- */
.gallery-wrap {
  padding: 30px 28px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.gallery-wrap .gallery-intro {
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 760px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, border-color 120ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.card .thumb {
  height: 160px;
  background: #0a0f24;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card .thumb svg { width: 100%; height: 100%; display: block; }
.card .body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.card .body .id-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.card .body .sid {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.card .body h3 { font-size: 0.95rem; margin: 0 0 6px; }
.card .body p { color: var(--text-dim); font-size: 0.83rem; margin: 0 0 12px; flex: 1; }
.card .body .open {
  display: inline-block;
  padding: 6px 10px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.82rem;
  align-self: flex-start;
}
.card .body .open:hover { text-decoration: none; background: #8ff0ff; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 20px 28px;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.footer .footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer h4 { color: var(--text); font-size: 0.85rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.07em; }
.footer a { color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 2px 0; }

/* ---- Scenario page layout ---- */
.scenario-header {
  padding: 14px 22px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.scenario-header h1 { margin: 0; }
.scenario-header .subtitle { color: var(--text-dim); margin-top: 2px; font-size: 0.9rem; }

.time-slider-wrap {
  padding: 8px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.time-slider-wrap input[type=range] { flex: 1; accent-color: var(--accent); }
.time-slider-wrap .ts-label {
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  min-width: 320px;
}
.time-slider-wrap .play-btn {
  padding: 4px 10px;
  font-size: 0.95rem;
  line-height: 1;
  min-width: 36px;
}

.scenario-body {
  display: grid;
  grid-template-columns: 7fr 3fr;
  height: calc(100vh - 130px);
  min-height: 600px;
}
.scenario-map {
  position: relative;
  border-right: 1px solid var(--border);
}
.scenario-map .map-host { position: absolute; inset: 0; }
.scenario-side {
  background: var(--panel);
  overflow-y: auto;
  padding: 14px 16px 24px;
}
.scenario-side h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 18px 0 8px;
}
.scenario-side h3:first-child { margin-top: 0; }

/* ---- Timeline panel ---- */
.timeline {
  font-size: 0.82rem;
}
.timeline-event {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  padding: 6px 4px;
  border-left: 2px solid transparent;
  cursor: pointer;
  border-radius: 3px;
}
.timeline-event:hover { background: rgba(91,231,255,0.06); border-left-color: var(--accent); }
.timeline-event.active { background: rgba(91,231,255,0.12); border-left-color: var(--accent); }
.timeline-event .t {
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
}
.timeline-event .ev { color: var(--text); line-height: 1.35; }
.timeline-event .ev .notes { color: var(--text-dim); font-size: 0.74rem; margin-top: 2px; }
.timeline-event.stage-A { border-left-color: #5be7ff44; }
.timeline-event.stage-B { border-left-color: #7c5cff44; }
.timeline-event.stage-C { border-left-color: #ffb54744; }
.timeline-event.stage-D { border-left-color: #ff4d6d44; }
.timeline-event.stage-E { border-left-color: #46d39a44; }

/* ---- Charts ---- */
.chart {
  width: 100%;
  height: 180px;
  margin-bottom: 14px;
  background: var(--panel-2);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.chart.tall { height: 240px; }

/* ---- Weights table ---- */
.weights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 6px;
}
.weights-table th, .weights-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.weights-table th { color: var(--text-dim); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.weights-table .num { text-align: right; font-family: ui-monospace, Consolas, monospace; }
.weights-table .alert-row { color: var(--alert); }
.threshold-bar {
  margin: 8px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.threshold-bar .pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--alert);
  color: #fff;
  font-weight: 600;
  margin-left: 6px;
}
.threshold-bar .pill.ok { background: var(--ok); color: var(--bg); }
.threshold-bar .pill.alert { background: var(--alert); color: #fff; }
.threshold-bar .alert-indicator { font-weight: 700; margin-right: 4px; color: var(--text); }

/* ---- Live page ---- */
.live-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: calc(100vh - 60px);
}
.live-map { position: relative; }
.live-map .map-host { position: absolute; inset: 0; }
.live-side {
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 16px 16px 24px;
  overflow-y: auto;
}
.live-side h3 { color: var(--accent); font-size: 0.95rem; }
.counter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
}
.counter .label { color: var(--text-dim); font-size: 0.82rem; }
.counter .value { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: ui-monospace, Consolas, monospace; }
.counter.planes .value { color: var(--warn); }
.btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
}
.btn:hover { background: #8ff0ff; }
.btn.paused { background: var(--warn); }
.status {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: ui-monospace, Consolas, monospace;
}
.status.error { color: var(--alert); }
.status.ok { color: var(--ok); }

/* ---- Roles section ---------------------------------------------------- */
:root {
  --role-commander: #ffb547;
  --role-watch:     #5be7ff;
  --role-intel:     #b288ff;
  --role-forensic:  #ff89a8;
  --role-integrator:#7ee787;
}

.roles-wrap {
  padding: 30px 28px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.roles-wrap > h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.roles-wrap .roles-intro {
  color: var(--text-dim);
  max-width: 820px;
  margin: 0 0 20px;
}
.roles-wrap .roles-intro strong { color: var(--text); }

/* Swim-lane diagram on gallery page */
.swim-lane {
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 8px;
  padding: 18px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 16px 0 28px;
}
.swim-lane .lane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 150px;
}
.swim-lane .lane .lane-icon {
  width: 44px; height: 44px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 4px currentColor);
}
.swim-lane .lane h4 {
  font-size: 0.82rem;
  margin: 0 0 4px;
  color: var(--lane-color, var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.swim-lane .lane p {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}
.swim-lane .lane .step-num {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--lane-color, var(--accent));
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: 99px;
}
.swim-lane .lane::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  z-index: 2;
}
.swim-lane .lane:last-child::after { content: ''; }

/* Role cards on gallery */
.role-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.role-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--role-color, var(--accent));
  border-radius: 10px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px var(--role-color, var(--accent));
}
.role-card .role-icon {
  width: 40px; height: 40px;
  color: var(--role-color, var(--accent));
  margin-bottom: 10px;
}
.role-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--role-color, var(--accent));
}
.role-card .tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 10px;
}
.role-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0 0 14px;
  flex: 1;
}
.role-card .open {
  align-self: flex-start;
  display: inline-block;
  padding: 6px 11px;
  background: var(--role-color, var(--accent));
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.82rem;
}
.role-card .open:hover { text-decoration: none; filter: brightness(1.1); }

/* Role detail page */
.role-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}
.role-detail .role-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--role-color, var(--accent));
  margin-bottom: 22px;
}
.role-detail .role-hero .role-icon-lg {
  width: 64px; height: 64px;
  flex-shrink: 0;
  color: var(--role-color, var(--accent));
  filter: drop-shadow(0 0 6px currentColor);
}
.role-detail .role-hero h1 {
  margin: 0 0 4px;
  color: var(--role-color, var(--accent));
  font-size: 1.7rem;
}
.role-detail .role-hero .tagline {
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
  margin: 0;
}
.role-detail h2 {
  color: var(--role-color, var(--accent));
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 30px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* Persona block */
.persona-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.persona-block .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid var(--role-color, var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--role-color, var(--accent));
}
.persona-block .avatar svg { width: 80px; height: 80px; }
.persona-block .persona-text h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.persona-block .persona-text .persona-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 0 0 10px;
}
.persona-block .persona-text p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}
.persona-block .synthetic-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255,181,71,0.12);
  border: 1px solid rgba(255,181,71,0.35);
  color: var(--warn);
  border-radius: 99px;
}

/* Workflow timeline-style list */
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.workflow-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255,255,255,0.07);
}
.workflow-list li:first-child { border-top: none; }
.workflow-list .time {
  color: var(--role-color, var(--accent));
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}
.workflow-list .act {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Data products table */
.dp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dp-table th, .dp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.dp-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--panel-2);
}
.dp-table td code {
  background: var(--panel-2);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.78rem;
}
.dp-table .cadence { color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }

/* Linked scenarios */
.linked-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.linked-scenarios a.linked-scen {
  display: block;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--role-color, var(--accent));
  border-radius: 6px;
  color: var(--text);
}
.linked-scenarios a.linked-scen:hover { text-decoration: none; background: var(--panel-2); }
.linked-scenarios .sid {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--role-color, var(--accent));
}
.linked-scenarios .ls-title {
  display: block;
  font-weight: 600;
  margin: 2px 0 4px;
}
.linked-scenarios .ls-note {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* Tool chips */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text);
}
.tool-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--role-color, var(--accent));
}

/* Data Agent prompts */
.prompt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.prompt-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--role-color, var(--accent));
  border-radius: 6px;
  padding: 10px 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text);
}
.prompt-list li::before {
  content: '"';
  color: var(--role-color, var(--accent));
  margin-right: 4px;
  font-size: 1.1rem;
}
.prompt-list li::after {
  content: '"';
  color: var(--role-color, var(--accent));
  margin-left: 2px;
  font-size: 1.1rem;
}

/* Mockup screenshot area */
.mockup {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.mockup .mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mockup .mockup-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.mockup .mockup-bar .dot.active { background: var(--role-color, var(--accent)); }
.mockup .mockup-bar .mockup-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: ui-monospace, Consolas, monospace;
}
.mockup svg.mockup-svg {
  width: 100%;
  height: 280px;
  display: block;
}

/* Roles teaser on landing page */
.roles-teaser {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 30px;
}
.roles-teaser .teaser-card {
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.roles-teaser .teaser-card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.roles-teaser .teaser-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.roles-teaser .role-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.roles-teaser .role-dots .rdot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}
.roles-teaser .teaser-card .open {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
}
.roles-teaser .teaser-card .open:hover { text-decoration: none; background: #8ff0ff; }

@media (max-width: 900px) {
  .swim-lane { grid-template-columns: 1fr; }
  .swim-lane .lane::after { content: '↓'; right: 50%; transform: translateX(50%); top: auto; bottom: -16px; }
  .persona-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ---- Map attribution overrides ---- */
.maplibregl-ctrl-attrib {
  background: rgba(11,16,32,0.7) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}
.maplibregl-ctrl-attrib a { color: var(--accent) !important; }

/* ---- Map loading spinner ---- */
.map-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(124,92,255,0.25);
  border-top-color: #7c5cff;
  border-radius: 50%;
  animation: map-spin 0.7s linear infinite;
}
@keyframes map-spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .scenario-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .scenario-map { height: 60vh; border-right: none; border-bottom: 1px solid var(--border); }
  .scenario-side { max-height: none; }
  .hero .hero-panel { position: static; width: auto; margin: 0 16px 16px; max-height: none; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero .hero-map { position: relative; height: 50vh; }
  .live-wrap { grid-template-columns: 1fr; }
  .live-map { height: 60vh; }
  .footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Roles: brief-spec aliases + per-role accent strips ---- */
:root {
  --accent-amber:   #ffb547;
  --accent-cyan:    #5be7ff;
  --accent-violet:  #b288ff;
  --accent-rose:    #ff89a8;
  --accent-green:   #7ee787;
}
.role-accent-commander             { --role-color: var(--role-commander);  border-top-color: var(--role-commander); }
.role-accent-watch-operator        { --role-color: var(--role-watch);      border-top-color: var(--role-watch); }
.role-accent-intel-analyst         { --role-color: var(--role-intel);      border-top-color: var(--role-intel); }
.role-accent-forensic-investigator { --role-color: var(--role-forensic);   border-top-color: var(--role-forensic); }
.role-accent-data-integrator       { --role-color: var(--role-integrator); border-top-color: var(--role-integrator); }

.role-strip {
  height: 4px;
  background: var(--role-color, var(--accent));
  width: 100%;
  margin: 0;
}

/* Scenario sidebar "Who uses this?" link to roles */
.who-uses {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 6px;
  font-size: 0.78rem;
}
.who-uses a { color: var(--accent); font-weight: 600; }
