/* ============================================================
   R24 PULSE — Platform demo section
   Restyled to match the parent R24 marketing site (v6_4):
   • Inter type system
   • Navy / teal / red / gold palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ---- R24 site palette (matches v6_4) ---- */
  --navy-900: #0C1020;
  --navy-800: #111827;
  --navy-700: #1A2540;
  --navy-600: #1E2D54;
  --navy-500: #243366;
  --navy-400: #2E4275;

  /* Softened dark surface — used in place of near-black on full-bleed dark
     sections (challenges, consolidation, ROI, CTA, dual-cloud). A dark indigo
     navy that ties to the brand navy instead of reading as flat black. */
  --surface-dark: #16152F;

  --red-600:  #A01E28;
  --red-500:  #C82333;
  --red-400:  #E03243;
  --red-100:  #FAE8EA;

  --teal-600: #0F5E6A;
  --teal-500: #1A8A9A;
  --teal-400: #27AABB;
  --teal-100: #E0F7FA;

  --gold-500: #D4A322;
  --gold-100: #FDF3D0;

  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;

  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r:     6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --ease:  0.2s ease;

  /* ---- r24i token aliases — keep old vars resolving to new palette ---- */
  --r24-navy:        var(--navy-800);
  --r24-navy-500:    var(--navy-700);
  --r24-navy-400:    var(--navy-600);
  --r24-navy-300:    #6B7280;
  --r24-navy-200:    #BCC0CD;
  --r24-navy-100:    var(--gray-200);
  --r24-navy-050:    var(--gray-100);
  --r24-coral:       var(--red-500);
  --r24-coral-600:   var(--red-600);
  --r24-coral-400:   var(--red-400);
  --r24-coral-200:   #F5BDC5;
  --r24-coral-100:   var(--red-100);
  --r24-gold:        var(--gold-500);
  --r24-gold-600:    #8B6E14;
  --r24-gold-400:    #E8C870;
  --r24-gold-100:    var(--gold-100);
  --r24-ink:         var(--navy-900);
  --r24-paper:       var(--white);
  --r24-paper-soft:  var(--gray-50);
  --r24-paper-cool:  var(--gray-100);
  --r24-success:     var(--teal-500);
  --r24-warning:     var(--gold-500);
  --r24-danger:      var(--red-500);
  --r24-info:        var(--teal-500);
  --font-ui:         var(--font);
  --font-display:    var(--font);
  --font-mono:       var(--mono);
  --fg:              var(--gray-800);
  --fg-muted:        var(--gray-600);
  --fg-subtle:       var(--gray-400);
  --border:          var(--gray-200);
  --border-strong:   #C5C6CC;
  --shadow-sm:       0 2px 6px rgba(0,0,0,0.06);
  --shadow:          0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg:       0 18px 40px rgba(0,0,0,0.14);
  --bg:              var(--white);
  --bg-soft:         var(--gray-50);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Top bar (R24 marketing-site style) ===== */
.topbar {
  background: rgba(10,15,30,0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 200;
}
.topbar__logo { height: 32px; }
.topbar__actions { display: flex; gap: 12px; align-items: center; }
.btn-ghost-dark {
  background: transparent;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 16px;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-coral {
  background: var(--red-500);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-coral:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-coral:active { transform: scale(0.98); }

/* ===== Section header (matches v6_4 marketing pattern) ===== */
.section {
  background: var(--white);
  padding: 80px 32px 96px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,138,154,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,138,154,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.section__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* ===== Hero / section opener ===== */
.hero {
  text-align: center;
  margin-bottom: 56px;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 16px;
}
.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(39,170,187,0.18);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  margin: 0 0 16px;
}
.hero__title em {
  font-style: normal;
  color: var(--teal-500);
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.stat__num {
  font-family: var(--font);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.stat__num small {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-500);
}
.stat__label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-top: 8px;
  text-align: center;
}

/* ===== Demo console ===== */
.fit-scaler {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
.fit-scaler--scroll {
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.fit-scaler__inner {
  flex: 0 0 auto;
}
/* Inside the scaler the console keeps its native two-column layout at all
   sizes — FitScaler handles fitting, so viewport media queries shouldn't
   restructure it. */
.console-fit .console-wrap {
  grid-template-columns: 360px 1fr;
}
.console-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.10), 0 4px 14px rgba(0,0,0,0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 720px;
}

/* Left rail — module list */
.rail {
  background: var(--navy-800);
  color: #fff;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}
.rail__head {
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.rail__title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin: 0 0 6px;
}
.rail__sub {
  font-family: var(--font);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.rail__head--play {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rail__play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.rail__play:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.rail__play.is-playing {
  color: var(--teal-400);
  border-color: rgba(39,170,187,0.4);
  background: rgba(39,170,187,0.12);
}
.module__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--teal-400);
  box-shadow: 0 0 8px rgba(39,170,187,0.5);
  animation-name: modProgress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  pointer-events: none;
}
@keyframes modProgress {
  from { width: 0; }
  to   { width: 100%; }
}
.rail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.module {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 14px 24px;
  align-items: center;
  cursor: pointer;
  position: relative;
  border-left: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}
.module:hover { background: rgba(255,255,255,0.03); }
.module--active {
  background: linear-gradient(90deg, rgba(26,138,154,0.14) 0%, rgba(26,138,154,0) 75%);
  border-left-color: var(--teal-500);
}
.module--active .module__num { color: var(--teal-400); }
.module--active .module__name { color: #fff; }
.module--active .module__tag { color: var(--teal-400); }
.module__num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  transition: color var(--ease);
}
.module__name {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
}
.module__tag {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  transition: color var(--ease);
}
.rail__footer {
  padding: 16px 24px 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail__footer .live { display: inline-flex; align-items: center; gap: 8px; }
.rail__footer .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(39,170,187,0.2);
  animation: blink 2s infinite;
}

/* Right canvas */
.canvas {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}
.canvas__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-600);
}
.canvas__bar-left { display: flex; align-items: center; gap: 14px; }
.canvas__bar-left .crumb { display: inline-flex; align-items: center; gap: 8px; }
.canvas__bar-left .crumb__id {
  background: var(--teal-100);
  color: var(--teal-600);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.canvas__bar-left .crumb__title {
  color: var(--navy-800);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.canvas__bar-right { display: flex; align-items: center; gap: 14px; }
.canvas__bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.dot--red {
  background: var(--red-500);
  box-shadow: 0 0 0 3px rgba(200,35,51,0.18);
  animation: blink 1.6s infinite;
}
.dot--green { background: var(--teal-500); }
.dot--amber { background: var(--gold-500); }

.canvas__body {
  flex: 1;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.canvas__view {
  position: absolute;
  inset: 28px;
  opacity: 0;
  pointer-events: none;
}
.canvas__view--active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Generic product UI primitives ===== */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.card__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.card__body { padding: 14px 16px; }

.kpi { padding: 16px; }
.kpi__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.kpi__value {
  font-family: var(--font);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.kpi__delta {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi__delta--up { color: var(--red-500); }
.kpi__delta--down { color: var(--teal-500); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--coral { background: rgba(200,35,51,0.10); color: var(--red-600); }
.pill--gold  { background: rgba(212,163,34,0.16); color: #8B6E14; }
.pill--green { background: rgba(26,138,154,0.12); color: var(--teal-600); }
.pill--navy  { background: var(--gray-100); color: var(--navy-800); }
.pill--ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }

.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }

/* ============================================================
   Module 01 — Real-Time Risk Monitoring
   ============================================================ */
.m01 { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.m01__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; flex: 1; min-height: 0; }

/* ----- Incident header ----- */
.m01__hdr {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 12px;
  background: #FDF6E9; /* paper-cream like product header */
  border: 1px solid #E8DEC8;
  border-radius: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.m01__hdr-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  color: var(--navy-800);
  white-space: nowrap;
}
.m01__hdr-title svg { color: var(--red-500); }
.m01__hdr-fields {
  display: flex; align-items: center; gap: 14px;
  flex: 1; overflow: hidden;
  border-left: 1px solid rgba(20,19,44,0.10);
  padding-left: 14px;
  min-width: 0;
}
.m01__hdr-field {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font); min-width: 0;
}
.m01__hdr-lab {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.10em; color: var(--gray-500);
  text-transform: uppercase;
  white-space: nowrap;
}
.m01__hdr-val {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  color: var(--navy-800);
  background: rgba(20,19,44,0.05);
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.m01__hdr-val--red   { background: rgba(217,34,67,0.10);  color: #c41f3a; border: 1px solid rgba(217,34,67,0.18); }
.m01__hdr-val--amber { background: rgba(217,176,68,0.16); color: #a07e16; border: 1px solid rgba(217,176,68,0.30); }

/* ----- Map: geofence circle ----- */
.geofence {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(217,34,67,0.10) 0%,
    rgba(217,34,67,0.22) 75%,
    rgba(217,34,67,0.28) 100%);
  border: 2px solid rgba(217,34,67,0.65);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(217,34,67,0.25),
    inset 0 0 30px rgba(217,34,67,0.10);
}
.geofence__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1A77FF;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(26,119,255,0.35);
}

/* ----- User pins ----- */
.upin {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(20,19,44,0.30);
  z-index: 2;
}
.upin svg { color: #fff; stroke-width: 2.5; }
.upin--green { background: #2EA770; }
.upin--red   { background: #D92243; box-shadow: 0 2px 8px rgba(217,34,67,0.55), 0 0 0 4px rgba(217,34,67,0.18); animation: pinPulse 1.6s ease-in-out infinite; }
.upin--gray  { background: #6B7280; }

/* Office / asset markers — pure white tile, navy building glyph */
.office-pin {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #fff;
  border: 2px solid var(--navy-800, #14132C);
  color: var(--navy-800, #14132C);
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(20,19,44,0.30);
  z-index: 4;
}

/* Threat markers — round severity-coloured pins (mirrors the platform map) */
.threat-pin {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(20,19,44,0.40);
  z-index: 3;
}
.threat-pin--red   { background: #D92243; }
.threat-pin--amber { background: #E5A82E; }
.threat-pin svg {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

/* New right-column wrapper: panel + "View all threats" button below it */
.m01__right {
  display: flex; flex-direction: column;
  min-height: 0;
  gap: 8px;
}
.m01__right .m01__threats { flex: 1; min-height: 0; }

/* ----- Incoming Threats panel (matches the R24 PULSE platform list) ----- */
.m01__threats {
  background: var(--navy-800);
  border-radius: 10px;
  padding: 0;
  display: flex; flex-direction: column;
  min-height: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.m01__threats-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.m01__threats-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  color: #fff;
}
.m01__threats-title svg { color: var(--gold-500, #C9AD61); }
.m01__threats-count {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  margin-left: 2px;
}
.m01__threats-filter {
  appearance: none; cursor: pointer;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  padding: 5px 7px;
  display: grid; place-items: center;
}
.m01__threats-list {
  list-style: none; padding: 0; margin: 0;
  flex: 1; overflow: auto;
  min-height: 0;
}
.m01__threats-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 120ms ease;
}
.m01__threats-item:last-child { border-bottom: 0; }
.m01__threats-item:hover { background: rgba(255,255,255,0.03); }
.m01__threats-text { flex: 1; min-width: 0; }
.m01__threats-name {
  font-size: 12px; font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
}
.m01__threats-region {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.m01__threats-sev {
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
  text-transform: uppercase;
}
.m01__threats-sev--amber  { background: #E5A82E; color: #1a1308; }
.m01__threats-sev--red    { background: #D92243; color: #fff; }
.m01__threats-all {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  width: 100%;
}
.m01__threats-all:hover { background: #1F1B3D; color: #fff; }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(217,34,67,0.55), 0 0 0 4px rgba(217,34,67,0.18); }
  50%      { box-shadow: 0 2px 8px rgba(217,34,67,0.55), 0 0 0 8px rgba(217,34,67,0.06); }
}

/* ----- Responses panel ----- */
.m01__panel {
  background: var(--navy-800);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column;
  min-height: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}
.m01__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.m01__panel-title {
  font-family: var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em;
}
.m01__panel-count {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--teal-300, #54C8B4);
  background: rgba(54,200,180,0.10);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.m01__resp {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; overflow: auto;
  min-height: 0;
}
.m01__resp-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}
.m01__resp-badge {
  font-family: var(--mono); font-size: 9px;
  font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 6px; border-radius: 3px;
  text-align: center;
}
.m01__resp-badge--ok       { background: #2EA770; color: #fff; }
.m01__resp-badge--not_ok   { background: #d92243; color: #fff; }
.m01__resp-badge--no_resp  {
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.65);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  padding: 3px 4px;
}
.m01__resp-name {
  font-size: 11.5px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m01__resp-call {
  appearance: none; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 5px;
}
.m01__resp-call:hover { background: rgba(255,255,255,0.14); }
.m01__resp-call--active {
  background: rgba(46,167,112,0.18);
  border-color: rgba(46,167,112,0.45);
  color: #6fe2a8;
  animation: callingPulse 1.4s ease-in-out infinite;
}
.m01__resp-call--active svg { animation: callingShake 0.9s ease-in-out infinite; }
@keyframes callingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,167,112,0.35); }
  50%      { box-shadow: 0 0 0 4px rgba(46,167,112,0.00); }
}
@keyframes callingShake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}
.m01__resp-more {
  text-align: center;
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  padding: 4px 0 0;
}

/* ----- Bottom stats row ----- */
.m01__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.m01__stat {
  background: var(--navy-800);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 6px;
}
.m01__stat-lab {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  font-weight: 600;
}
.m01__stat-row {
  display: flex; align-items: baseline; gap: 6px;
}
.m01__stat-val {
  font-family: var(--font); font-size: 24px; font-weight: 800;
  color: #fff;
  line-height: 1;
  font-feature-settings: "tnum";
}
.m01__stat-unit {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.05em;
}
.m01__stat-pct {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.70);
}
.m01__stat--red   .m01__stat-lab { color: #ff6c84; }
.m01__stat--red   { border-color: rgba(217,34,67,0.30); background: linear-gradient(180deg, rgba(217,34,67,0.10) 0%, var(--navy-800) 50%); }
.m01__stat--green .m01__stat-lab { color: #54e1a4; }
.m01__stat--green { border-color: rgba(46,167,112,0.30); background: linear-gradient(180deg, rgba(46,167,112,0.10) 0%, var(--navy-800) 50%); }
.m01__stat--gray  .m01__stat-lab { color: rgba(255,255,255,0.70); }
.m01__feed { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

/* ============================================================
   World map — branded HERE-style map background (R24 platform look)
   ============================================================ */
.m01__map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--navy-700);
  background: #cfe7f5; /* fallback ocean blue while image loads */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 2px 18px rgba(20,19,44,0.35);
}

/* World-map default — clean Google-style world tile used by Module 03 and others */
.world {
  position: absolute; inset: 0;
  background-image: url("assets/r24-world-map.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Subtle vignette so labels in corners read against the bright map */
.world::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,19,44,0.18) 0%, rgba(20,19,44,0) 14%, rgba(20,19,44,0) 86%, rgba(20,19,44,0.22) 100%),
    linear-gradient(90deg,  rgba(20,19,44,0.14) 0%, rgba(20,19,44,0) 12%, rgba(20,19,44,0) 88%, rgba(20,19,44,0.14) 100%);
  pointer-events: none;
}
.world__grid {
  /* Real map already has detail; keep an extremely faint scan line for "operational" feel */
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(20,19,44,0.03) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

/* ---- Geo zone markers (R24 platform-style: dark navy circle, severity ring + ping) ---- */
.geo {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(20,19,44,0.35), 0 0 0 1px rgba(20,19,44,0.6);
  display: grid; place-items: center;
  color: currentColor;
  transform: translate(-50%, -50%);
}
.geo::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.6;
  animation: ping 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ping {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.geo__core {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px var(--navy-800);
}
.geo--red   { color: #FF4A66; }
.geo--amber { color: #FFC04A; }
.geo--green { color: #54C8B4; }

.map-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--navy-800);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(20,19,44,0.12);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(20,19,44,0.18);
  transform: translateY(-6px);
}
.map-label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  margin-right: 6px;
  vertical-align: 1px;
}
.map-label[data-sev="amber"]::before { background: var(--gold-500); }
.map-label[data-sev="green"]::before { background: var(--teal-500); }

.map-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.88);
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid rgba(20,19,44,0.08);
  box-shadow: 0 1px 4px rgba(20,19,44,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.alert-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--gray-200);
  align-items: center;
}
.alert-row__bar { width: 4px; border-radius: 2px; align-self: stretch; }
.alert-row__bar--red   { background: var(--red-500); }
.alert-row__bar--amber { background: var(--gold-500); }
.alert-row__bar--green { background: var(--teal-500); }
.alert-row__title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-800);
  margin: 0 0 2px;
}
.alert-row__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}
.alert-row__time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-align: right;
}
.scroll-area { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }

/* ============================================================
   Module 02 — Live Personnel Tracking
   ============================================================ */
.m02 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; height: 100%; }
.pin {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red-500);
  border: 2px solid #fff;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 9.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.pin--green { background: var(--teal-500); }
.pin--amber { background: var(--gold-500); }
.pin--navy  { background: var(--navy-500); }
.pin__accuracy {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.25;
}
.person-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.person-row:last-child { border-bottom: 0; }
.person-row__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy-800);
  display: grid; place-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
}
.person-row__name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-800);
}
.person-row__loc {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gray-600);
}

/* ============================================================
   Module 03 — Master Data Management
   ============================================================ */
.m03 {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 1.3fr;
  grid-template-rows: auto 1fr;
  gap: 14px;
  height: 100%;
}
.m03__sources {
  grid-column: 1; grid-row: 1 / span 2;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 0;
  overflow: hidden;
}

/* Stack-reduction counter */
.m03__reduce {
  background: linear-gradient(135deg, rgba(26,138,154,0.06), rgba(201,173,97,0.04));
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 5px;
}
.m03__reduce-row {
  display: flex; align-items: baseline; justify-content: space-between;
}
.m03__reduce-label {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.12em; color: var(--gray-500);
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.m03__reduce-val {
  font-family: var(--font); font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--teal-600), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.m03__reduce-bar {
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.m03__reduce-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
  transition: width 280ms ease-out;
}
.m03__reduce-hint {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.04em; color: var(--gray-500);
}
.m03__pipe { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.m03__golden { grid-column: 3; grid-row: 1 / span 2; }

.source-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
}

/* ----- Split-box variant (Contact Management / Integration + state chip) ----- */
.source-row--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  gap: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20,19,44,0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  border-left: 3px solid transparent;
}
.source-row--split:hover {
  box-shadow: 0 2px 8px rgba(20,19,44,0.10);
}
.source-row--split:active { transform: scale(0.99); }
.source-row--state-integrated { border-left-color: #2EA770; }
.source-row--state-reducing   { border-left-color: #E5A82E; }
.source-row--state-native     { border-left-color: #1A8A9A; }

.source-row__top {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 6px 10px;
}
.source-row__heading {
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--navy-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-row__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}
.source-row__category {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; min-width: 0;
}

/* 3-state chip */
.source-row__state {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.source-row__state-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.source-row__state--integrated { color: #2EA770; background: rgba(46,167,112,0.10); }
.source-row__state--reducing   { color: #b07c00; background: rgba(229,168,46,0.14); }
.source-row__state--native     { color: #1A8A9A; background: rgba(26,138,154,0.12); }

/* Bring your own vendor */
.source-row--byov {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1.5px dashed var(--gray-300);
  background: rgba(0,0,0,0.01);
  box-shadow: none;
  cursor: default;
}
.source-row__top--byov {
  background: transparent;
  border-bottom: 1px dashed var(--gray-300);
}
.source-row__heading--byov {
  color: var(--gray-500);
  font-weight: 600;
}
.source-row__byov-input {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font);
  font-size: 11px;
  color: var(--navy-800);
  flex: 1; min-width: 0;
  outline: none;
  padding: 0;
}
.source-row__byov-input::placeholder { color: var(--gray-400); }
.source-row__badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.source-row__name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-800);
}
.source-row__sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-600);
}

.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.golden-card {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,163,34,0.3);
}
.golden-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.golden-card__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.golden-card__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.field-row {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.field-row span:first-child {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 9.5px;
}
.field-row span:last-child { color: #fff; font-weight: 500; }

/* ============================================================
   Module 04 — Multi-Channel Broadcasting
   ============================================================ */
.m04 { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
.m04__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; flex: 1; min-height: 0; }
.m04__actions {
  display: flex; gap: 10px; justify-content: center;
  padding-top: 4px;
}

.composer {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.composer__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.composer__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.composer__msg {
  font-family: var(--font);
  font-size: 13px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.5;
}
.composer__chan { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  color: var(--navy-800);
}
.chip--on {
  background: var(--navy-800); color: #fff;
  border-color: var(--navy-800);
}

.cascade {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.cascade__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.cascade__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.channel {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.channel__name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.channel__bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.channel__bar > i {
  display: block;
  height: 100%;
  background: var(--teal-400);
  border-radius: 3px;
}
.channel__pct {
  font-family: var(--mono);
  font-size: 12px;
  color: #fff;
  text-align: right;
  font-weight: 600;
}
.channel--failed .channel__name { color: var(--red-400); }
.channel--failed .channel__bar > i { background: var(--red-400); width: 18% !important; }

/* ============================================================
   Module 05 — Journey Management
   ============================================================ */
.m05 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; height: 100%; }

.itinerary {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column;
}
.itinerary__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.itinerary__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-800);
}
.itinerary__route {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.tl { position: relative; padding-left: 28px; }
.tl::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gray-200);
}
.tl__item { position: relative; padding: 8px 0 14px; }
.tl__item::before {
  content: "";
  position: absolute;
  left: -23px; top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-200);
}
.tl__item--done::before { background: var(--teal-500); border-color: var(--teal-500); }
.tl__item--active::before {
  background: var(--red-500);
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(200,35,51,0.18);
  animation: blink 1.6s infinite;
}
.tl__item--alert::before { background: var(--red-500); border-color: var(--red-500); }
.tl__time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.tl__title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-800);
}
.tl__sub {
  font-family: var(--font);
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

/* ============================================================
   Module 06 — Reverse Panic & Silent Distress
   ============================================================ */
.m06 {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: 100%;
  align-items: center;
}
.phone {
  width: 280px;
  height: 560px;
  background: #1A1A20;
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.25),
    0 6px 14px rgba(0,0,0,0.12),
    inset 0 0 0 2px #2a2a30;
  margin: 0 auto;
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 3;
}
.phone__screen {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 50px 20px 24px;
  display: flex;
  flex-direction: column;
}
.phone__status {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between;
  margin-bottom: 22px;
}
.phone__heading {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.phone__hint {
  font-family: var(--font);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.phone__pin {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 22px;
}
.phone__pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}
.phone__pin-dot--filled { background: #fff; border-color: #fff; }
.phone__keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}
.phone__key {
  height: 52px;
  display: grid; place-items: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}
.phone__key--press {
  background: rgba(200,35,51,0.18);
  border-color: rgba(200,35,51,0.45);
  box-shadow: inset 0 0 0 1px var(--red-500);
}

/* Real app screenshot variant (Module 06 — Reverse Panic friend alert) */
.phone__screen--shot {
  padding: 0;
  display: block;
}
.phone__shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.phone__shot-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(20,19,44,0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}
.phone__shot-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 3px rgba(200,35,51,0.25);
  animation: blink 1.6s infinite;
}

.gsoc {
  background: var(--navy-900);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(200,35,51,0.3);
  position: relative;
}
.gsoc::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--red-500);
  border-radius: 12px 12px 0 0;
}
.gsoc__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gsoc__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.gsoc__title::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--red-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200,35,51,0.18);
  animation: blink 1.6s infinite;
}
.gsoc__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.gsoc__row span:first-child {
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.gsoc__row span:last-child { color: #fff; font-weight: 500; }
.gsoc__audio {
  background: rgba(200,35,51,0.08);
  border: 1px solid rgba(200,35,51,0.3);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-400);
}
.audio-bars { display: flex; align-items: center; gap: 2px; }
.audio-bars > i {
  display: block; width: 3px;
  background: var(--red-400);
  border-radius: 2px;
  animation: audio 1.2s ease-in-out infinite;
}
.audio-bars > i:nth-child(1) { height: 8px; animation-delay: 0s; }
.audio-bars > i:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.audio-bars > i:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.audio-bars > i:nth-child(4) { height: 16px; animation-delay: 0.1s; }
.audio-bars > i:nth-child(5) { height: 9px; animation-delay: 0.25s; }
.audio-bars > i:nth-child(6) { height: 12px; animation-delay: 0.05s; }
@keyframes audio {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ============================================================
   Module 07 — Audit Traceability
   ============================================================ */
.m07 { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.audit-table {
  background: var(--navy-900);
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
  border: 1px solid rgba(212,163,34,0.2);
}
.audit-table__head {
  display: grid;
  grid-template-columns: 110px 90px 1fr 110px 1fr 90px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.audit-row {
  display: grid;
  grid-template-columns: 110px 90px 1fr 110px 1fr 90px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 11px;
  align-items: center;
}
.audit-row__hash { color: var(--gold-500); }
.audit-row__when { color: rgba(255,255,255,0.7); }
.audit-row__actor {
  color: #fff; font-weight: 600;
  font-family: var(--font);
  font-size: 12px;
}
.audit-row__sop { color: rgba(255,255,255,0.5); font-size: 10.5px; }
.audit-row__action {
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-size: 12px;
}
.audit-row__chip { display: flex; justify-content: flex-end; }
.audit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ============================================================
   Module 08 — Executive Dashboard (mirrors live R24 portal)
   ============================================================ */
.m08 {
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #fff;
}
.m08__topbar {
  height: 52px;
  background: #29244D;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  flex-shrink: 0;
}
.m08__topbar .logo-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red-500);
  display: grid; place-items: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  border: 1.5px solid #fff;
}
.m08__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 14px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--font);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.m08__user {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 4px 10px 4px 6px;
  font-family: var(--font); font-size: 11px;
  color: rgba(255,255,255,0.85);
}
.m08__user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
}
.m08__user-name { font-weight: 700; font-size: 11.5px; color: #fff; line-height: 1.1; }
.m08__user-role {
  font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-family: var(--mono);
  white-space: nowrap;
}
.m08__body {
  flex: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 0;
}
.m08__sidebar {
  background: #1F1B3D;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.m08__sidebar-item {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
}
.m08__sidebar-item--active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.m08__main {
  position: relative;
  background: linear-gradient(180deg, #EEF2F8 0%, #E0E6F0 100%);
  overflow: hidden;
}
.m08__map { position: absolute; inset: 0; }
.m08__map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m08__threat-panel {
  position: absolute;
  top: 14px; left: 14px;
  width: 220px;
  background: #1F1B3D;
  border-radius: 10px;
  color: #fff;
  padding: 12px 12px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 3;
}
.m08__threat-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font); font-weight: 700; font-size: 12px;
  margin-bottom: 8px;
}
.m08__threat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font); font-size: 11px;
  color: rgba(255,255,255,0.85);
  gap: 8px;
}
.m08__threat-row:first-of-type { border-top: 0; }
.m08__threat-pill {
  font-family: var(--mono); font-size: 8.5px;
  padding: 2px 6px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.m08__threat-pill--major { background: var(--red-500); color: #fff; }
.m08__threat-pill--mod   { background: var(--gold-500); color: #fff; }
.m08__threat-pill--ltd   { background: rgba(212,163,34,0.25); color: #8B6E14; }

.m08__widgets {
  position: absolute;
  top: 14px; right: 14px;
  width: 200px;
  display: flex; flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.m08__widget {
  background: #1F1B3D;
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.m08__widget-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font); font-weight: 600; font-size: 11px;
  margin-bottom: 4px;
  color: #fff;
  white-space: nowrap;
}
.m08__widget-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 8px;
  padding: 1px 5px; border-radius: 3px;
  background: var(--red-500); color: #fff;
  font-weight: 700; letter-spacing: 0.05em;
}
.m08__widget-value {
  font-family: var(--font); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; gap: 6px;
  line-height: 1;
}
.m08__widget-line {
  display: flex; align-items: center;
  padding: 4px 0;
  font-family: var(--font); font-size: 11px;
  color: rgba(255,255,255,0.85);
  gap: 8px;
}
.m08__widget-line .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.m08__bottom {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.m08__action {
  background: #1F1B3D;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex; align-items: center;
  gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 11px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.mkr {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid; place-items: center;
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.mkr--red   { background: var(--red-500); }
.mkr--green { background: var(--teal-500); }
.mkr--amber { background: var(--gold-500); }
.mkr--navy  { background: var(--navy-800); }
.mkr--cluster {
  width: 36px; height: 36px;
  font-family: var(--font); font-weight: 700; font-size: 11px;
}

.user-popup {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  border: 1px solid var(--gray-200);
  z-index: 4;
}
.user-popup__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.user-popup__name {
  font-family: var(--font); font-weight: 700; font-size: 13px;
  color: var(--navy-800);
}
.user-popup__row {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 8px;
  padding: 3px 0;
  font-family: var(--font); font-size: 10.5px;
}
.user-popup__row span:first-child { color: var(--gray-400); }
.user-popup__row span:last-child { color: var(--navy-800); font-weight: 500; text-align: right; }
.user-popup__btn {
  width: 100%; margin-top: 10px;
  background: var(--teal-500);
  color: #fff; border: 0;
  border-radius: 6px; padding: 7px 10px;
  font-family: var(--font); font-weight: 700; font-size: 11px;
  cursor: pointer;
}

/* ============================================================
   Module 09 — Responder Integration
   ============================================================ */
.m09 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; height: 100%; }
.m09__map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--navy-900);
}
.responder-route { position: absolute; inset: 0; pointer-events: none; }
.eta-card {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}
.eta-number {
  font-family: var(--font);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.eta-number small {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-500);
}
.responder-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.responder-card__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(212,163,34,0.16);
  color: var(--gold-500);
  display: grid; place-items: center;
}

/* Tweaks panel */
.tweaks-host {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
}

/* ============================================================
   R24 Response · 10 Core Integrated Modules — red accent variants
   (Skeleton; reuses .module / .rail / .canvas / .deep-dive from PULSE.)
   ============================================================ */
.response-modules { position: relative; }

.eyebrow--red { color: var(--red-500); }

.section-h2__count--red {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rail--red { background: linear-gradient(180deg, #2A1F2F 0%, #1F1422 100%); }
.module--red .module__num { color: rgba(255,255,255,0.55); }
.module--red.module--active {
  background: linear-gradient(90deg, rgba(217,34,67,0.18) 0%, rgba(217,34,67,0.04) 100%);
  border-left: 2px solid var(--red-500);
}
.module--red.module--active .module__num,
.module--red.module--active .module__name { color: #fff; }

.crumb__id--red {
  background: rgba(217,34,67,0.10);
  color: var(--red-600);
}

.live--red {
  background: rgba(217,34,67,0.14);
  color: #FBB6C0;
  border: 1px solid rgba(217,34,67,0.35);
}

.deep-dive--red::before {
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
}
.deep-dive--red .deep-dive__metric-val {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.deep-dive__cta--red { color: var(--red-500); }
.deep-dive__cta--red:hover { color: var(--red-600); }

/* ============================================================
   Module 04-1 — Broadcast Response Management
   ============================================================ */

/* Give the canvas extra room when 04-1 is active so the full
   page (map → KPIs → responses → status + comments) fits without
   an internal scrollbar — the page itself scrolls instead. */
.canvas:has(.canvas__view--active .m04r) { min-height: 940px; }

.m04r {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  font-family: var(--font);
}

/* ----- Row 1 · Hero ----- */
.m04r__hero {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 10px;
  min-height: 270px;
}
.m04r__map-card,
.m04r__meta-card {
  background: #0F2A2E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.m04r__map-card { padding: 12px 14px 10px; min-height: 0; }
.m04r__map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.m04r__map-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: #fff;
  white-space: nowrap;
}
.m04r__map-type { text-align: right; line-height: 1.2; white-space: nowrap; }
.m04r__map-type-lab {
  display: block;
  font-weight: 700; font-size: 12px; color: #fff;
}
.m04r__map-type-val {
  font-size: 11px; color: rgba(255,255,255,0.7);
  font-family: var(--font);
}
.m04r__map-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  margin: 6px 0 8px;
}
.m04r__map-canvas {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #102a30;
  min-height: 0;
}
.m04r__map-canvas .world {
  filter: saturate(0.65) brightness(1.04);
}
.m04r__geofence {
  position: absolute;
  width: 30%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(217, 34, 67, 0.32);
  border: 2px solid #D92243;
  box-shadow:
    0 0 0 1px rgba(217,34,67,0.25),
    0 0 30px rgba(217,34,67,0.25);
  z-index: 2;
}
.m04r__centre {
  position: absolute;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #14132C;
  border: 1.5px solid #fff;
  z-index: 3;
}
.m04r__upin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  z-index: 4;
}
.m04r__map-attr {
  position: absolute;
  right: 8px; bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  z-index: 5;
}

/* ----- Meta column (right of map) ----- */
.m04r__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.m04r__meta-card { padding: 10px 12px 12px; }
.m04r__meta-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 12.5px; color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
}
.m04r__meta-pill {
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1.5px solid var(--r24-gold, #C9AD61);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 10px;
}
.m04r__meta-info {
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.m04r__meta-info p { margin: 0; }

/* ----- Row 2 · KPI cards ----- */
.m04r__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex-shrink: 0;
}
.m04r__kpi {
  background: #0F2A2E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  display: flex; flex-direction: column;
  gap: 6px;
}
.m04r__kpi-head { display: flex; align-items: center; gap: 8px; }
.m04r__kpi-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 999px;
  padding: 0 7px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  font-family: var(--font);
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
.m04r__kpi-icon--neutral { background: rgba(255,255,255,0.1); }
.m04r__kpi-icon--red     { background: #D92243; }
.m04r__kpi-icon--gray    { background: #6B7280; letter-spacing: 0.1em; }
.m04r__kpi-icon--green   { background: #2EA770; }
.m04r__kpi-lab {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}
.m04r__kpi-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.m04r__kpi-num {
  font-family: var(--font);
  font-weight: 800; font-size: 26px;
  color: #fff; line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
}
.m04r__kpi-unit {
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.m04r__kpi-ring {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.m04r__kpi-ring svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.m04r__kpi-ring span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: 9px; font-weight: 700;
  color: #fff;
}

/* ----- Row 3 · Responses ----- */
.m04r__resp {
  background: #0F2A2E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px 10px;
  color: #fff;
  display: flex; flex-direction: column;
  min-height: 0;
  flex-shrink: 0;
}
.m04r__resp-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  margin-bottom: 8px;
}
.m04r__resp-count { color: rgba(255,255,255,0.55); font-weight: 500; }
.m04r__resp-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.m04r__resp-col { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.m04r__resp-tab {
  align-self: flex-start;
  font-family: var(--font);
  font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}
.m04r__resp-tab--notok { background: #D92243; }
.m04r__resp-tab--no    { background: #6B7280; }
.m04r__resp-tab--ok    { background: #2EA770; }

.m04r__resp-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.m04r__resp-col li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  min-width: 0;
}
.m04r__resp-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.03em;
  font-family: var(--font);
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
.m04r__resp-mark--notok { background: #D92243; }
.m04r__resp-mark--no    { background: #6B7280; letter-spacing: 0.1em; }
.m04r__resp-mark--ok    { background: #2EA770; }
.m04r__resp-name {
  flex: 1;
  color: rgba(255,255,255,0.92);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m04r__ext { color: rgba(255,255,255,0.45); flex-shrink: 0; }
.m04r__call {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
}
.m04r__call:hover { background: rgba(255,255,255,0.12); }
.m04r__resp-more {
  color: rgba(255,255,255,0.55);
  font-size: 10.5px;
  justify-content: center !important;
  padding-top: 8px !important;
  border-bottom: 0 !important;
}

/* ----- Row 4 · Status + Comments ----- */
.m04r__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}
.m04r__status,
.m04r__comments {
  background: #0F2A2E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px 12px;
  color: #fff;
}
.m04r__status-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 12.5px; color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
}
.m04r__status-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.m04r__status-list::before {
  content: "";
  position: absolute; left: 4px; top: 8px; bottom: 8px;
  width: 1px; background: rgba(255,255,255,0.12);
}
.m04r__status-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 3px 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  position: relative;
  white-space: nowrap;
}
.m04r__status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: #0F2A2E;
  flex-shrink: 0;
  z-index: 1;
}
.m04r__status-t {
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  min-width: 38px;
}
.m04r__comments-empty {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   Module 05 — Incident & Responder Management
   ============================================================ */
.canvas:has(.canvas__view--active .m05i) { min-height: 960px; }

.m05i {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  font-family: var(--font);
  background: #FAF7EE;
  border: 1px solid rgba(20,19,44,0.08);
  border-radius: 14px;
  box-shadow:
    0 10px 28px rgba(20,19,44,0.08),
    0 2px 4px rgba(20,19,44,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 14px;
  overflow: hidden;
}

/* ----- Header bar ----- */
.m05i__hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  flex-shrink: 0;
}
.m05i__hdr-left { display: flex; align-items: center; gap: 10px; }
.m05i__back {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  color: var(--gray-700, #2D2A60);
  cursor: pointer;
  padding: 0;
}
.m05i__hdr-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 2px;
}
.m05i__hdr-title {
  font-family: var(--font); font-weight: 800; font-size: 19px;
  color: var(--navy-800, #2D2A60);
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  line-height: 1.05;
  white-space: nowrap;
}
.m05i__hdr-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-100, #E0F2F4);
  color: var(--teal-600, #1A8A9A);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.m05i__hdr-history { color: var(--gray-500); display: inline-flex; }

.m05i__hdr-mid {
  display: flex; justify-content: center;
}
.m05i__refresh {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0F2A2E;
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font); font-weight: 600; font-size: 11.5px;
  white-space: nowrap;
}

.m05i__hdr-right {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: nowrap;
  justify-self: end;
}
.m05i__hdr-detail {
  font-family: var(--font); font-weight: 700; font-size: 10.5px;
  color: var(--gray-700, #2D2A60);
  white-space: nowrap;
  line-height: 1.2;
}
.m05i__hdr-detail span {
  color: var(--gray-500); font-weight: 500;
  margin-left: 4px;
}
.m05i__check {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--gray-700, #2D2A60);
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.m05i__check input {
  width: 12px; height: 12px;
  accent-color: var(--teal-500, #27AABB);
  margin: 0;
}

/* ----- 3-column body ----- */
.m05i__grid {
  display: grid;
  grid-template-columns: 210px 1fr 240px;
  gap: 10px;
  flex: 1;
  min-height: 0;
  position: relative; /* positioning context for the full-bleed map */
}

/* ----- Left rail (incident details) ----- */
.m05i__rail {
  position: relative; z-index: 2; /* float over the map */
  grid-column: 1;
  background: rgba(15, 42, 46, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
  box-shadow: 0 8px 28px rgba(20,19,44,0.22);
}
.m05i__user {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.m05i__user-avatar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font); font-weight: 700; font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}
.m05i__user-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m05i__user-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 12.5px; color: #fff;
  margin: 0;
  line-height: 1.25;
}
.m05i__user-name .m05i__ext { color: rgba(255,255,255,0.5); }
.m05i__user-pill {
  align-self: flex-start;
  background: #D92243;
  color: #fff;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.m05i__field { display: flex; flex-direction: column; gap: 4px; }
.m05i__field > summary { list-style: none; cursor: pointer; }
.m05i__field > summary::-webkit-details-marker { display: none; }
.m05i__field-sum {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  user-select: none;
}
.m05i__field-chev {
  color: rgba(255,255,255,0.55);
  transition: transform 180ms ease;
  flex-shrink: 0;
}
.m05i__field[open] > summary .m05i__field-chev { transform: rotate(180deg); }
.m05i__field:not([open]) > summary { padding-bottom: 0; }
.m05i__field-lab {
  font-weight: 700; font-size: 13px; color: #fff;
  margin: 0;
}
.m05i__field-val {
  font-size: 11.5px; color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.45;
}
.m05i__field-val--bold { font-weight: 600; color: #fff; }
.m05i__field-body {
  font-size: 11.5px; color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}
.m05i__field-body--row { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.m05i__field-muted { color: rgba(255,255,255,0.5); }
.m05i__read-more {
  align-self: flex-end;
  font-size: 11px;
  color: var(--r24-coral, #D92243);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}

/* ----- Centre: map ----- */
/* Map is a full-bleed background spanning the whole body; the detail rail
   (left) and the actions rail (right) float over it. */
.m05i__map {
  position: absolute; inset: 0;
  z-index: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F0EDE3;
  min-height: 0;
}
.m05i__map-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.m05i__map-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(45,42,96,0.06), rgba(45,42,96,0.12));
}
.m05i__geofence {
  position: absolute;
  left: 50%; top: 38%;
  width: 62%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(217, 34, 67, 0.28);
  border: 2px solid #D92243;
  box-shadow:
    0 0 0 1px rgba(217,34,67,0.2),
    0 0 30px rgba(217,34,67,0.18);
  z-index: 2;
  pointer-events: none;
}
.m05i__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  color: #fff;
  z-index: 4;
}
.m05i__pin--red    { background: #D92243; }
.m05i__pin--blue   { background: #2E6FE0; }
.m05i__pin--gray   { background: #5B6370; }
.m05i__pin--green  {
  background: #2EA770;
  box-shadow: 0 2px 8px rgba(46,167,112,0.6), 0 0 0 4px rgba(46,167,112,0.2);
  animation: blink 1.8s ease-in-out infinite;
}
.m05i__pin--red-user {
  background: #D92243;
  width: 26px; height: 26px;
  box-shadow: 0 2px 10px rgba(217,34,67,0.65), 0 0 0 4px rgba(217,34,67,0.22);
  animation: pinPulse 1.4s ease-in-out infinite;
  z-index: 5;
}
.m05i__map-attr {
  position: absolute; right: 10px; bottom: 8px;
  font-family: var(--mono); font-size: 10px;
  color: rgba(20,19,44,0.5);
  z-index: 5;
}

/* Animated route line (dashed dispatch path) */
.m05i__route {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}
.m05i__route path {
  animation: m05i-dash 0.9s linear infinite;
}
@keyframes m05i-dash {
  to { stroke-dashoffset: -2.4; }
}

/* Ambulance — animates between positions */
.m05i__ambulance {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  z-index: 6;
  transition: left 1.6s cubic-bezier(.5,.1,.2,1), top 1.6s cubic-bezier(.5,.1,.2,1);
  filter: drop-shadow(0 2px 4px rgba(20,19,44,0.35));
}
.m05i__ambulance svg { display: block; }
.m05i__ambulance--stage-2 {
  animation: m05i-rock 0.55s ease-in-out infinite alternate;
}
.m05i__ambulance--stage-3 {
  filter: drop-shadow(0 2px 4px rgba(20,19,44,0.35)) drop-shadow(0 0 6px rgba(46,167,112,0.65));
}
@keyframes m05i-rock {
  from { transform: translate(-50%, -50%) translateY(0); }
  to   { transform: translate(-50%, -50%) translateY(-1.5px); }
}

/* Flashing light bar — only blinks when en route */
.m05i__amb-light { opacity: 0.4; }
.m05i__ambulance--stage-1 .m05i__amb-light,
.m05i__ambulance--stage-2 .m05i__amb-light {
  animation: m05i-flash 0.6s steps(2) infinite;
}
.m05i__ambulance--stage-2 .m05i__amb-light--r { animation-delay: 0.3s; }
.m05i__ambulance--stage-1 .m05i__amb-light--r { animation-delay: 0.3s; }
@keyframes m05i-flash {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

/* "Arrived" pop-up */
.m05i__amb-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2EA770;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(46,167,112,0.45);
  animation: m05i-pop 360ms cubic-bezier(.34,1.56,.64,1);
}
.m05i__amb-pop::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: #2EA770;
}
@keyframes m05i-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ----- Right rail: actions + comments ----- */
.m05i__actions {
  position: relative; z-index: 2; /* float over the map */
  grid-column: 3;
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}
.m05i__actions-row { display: flex; gap: 8px; }
.m05i__btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff;
  color: var(--navy-800, #2D2A60);
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font); font-weight: 700; font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.m05i__btn--primary {
  background: #0F2A2E;
  color: #fff;
  border-color: #0F2A2E;
}
.m05i__card {
  background: rgba(15, 42, 46, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  display: flex; flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(20,19,44,0.22);
}
.m05i__card-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; color: #fff;
  white-space: nowrap;
}
.m05i__action { display: flex; flex-direction: column; gap: 6px; }
.m05i__action-tag {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.m05i__action-tag--gold  { background: var(--r24-gold, #C9AD61); color: #14132C; box-shadow: 0 0 0 0 rgba(201,173,97,0); }
.m05i__action-tag--amber { background: #F39C12; color: #14132C; box-shadow: 0 0 0 4px rgba(243,156,18,0.18); }
.m05i__action-tag--blue  { background: #2E6FE0; color: #fff;    box-shadow: 0 0 0 4px rgba(46,111,224,0.18); }
.m05i__action-tag--green { background: #2EA770; color: #fff;    box-shadow: 0 0 0 4px rgba(46,167,112,0.22); }
.m05i__action-tag:hover  { filter: brightness(1.08); }
.m05i__action-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.4;
}
.m05i__action-row--main { color: #fff; }
.m05i__action-ic {
  display: inline-flex; color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.m05i__action-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.m05i__action-pill--gold  { background: rgba(201,173,97,0.12); border-color: rgba(201,173,97,0.35); }
.m05i__action-pill--amber { background: rgba(243,156,18,0.15); border-color: rgba(243,156,18,0.45); color: #FBD38D; }
.m05i__action-pill--blue  { background: rgba(46,111,224,0.18); border-color: rgba(46,111,224,0.5);  color: #9BB7F5; }
.m05i__action-pill--green { background: rgba(46,167,112,0.18); border-color: rgba(46,167,112,0.5);  color: #7CE0B8; }

.m05i__comment {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font); font-size: 12px;
  outline: none;
}
.m05i__comment::placeholder { color: rgba(255,255,255,0.4); }
.m05i__comment-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font); font-weight: 700; font-size: 12px;
  cursor: pointer;
}
.m05i__comment-btn:hover { background: rgba(255,255,255,0.06); }

/* Responsive */
@media (max-width: 1180px) {
  .console-wrap { grid-template-columns: 280px 1fr; }
}
@media (max-width: 880px) {
  .console-wrap { grid-template-columns: 1fr; }
  .canvas { min-height: 600px; }
  .section { padding: 56px 20px 72px; }
}
