:root {
  --bg: #04080f;
  --bg2: #080e1a;
  --bg3: #0c1424;
  --cyan: #00e5ff;
  --pink: #ff2d78;
  --amber: #ffb830;
  --green: #39ff6e;
  --red: #ff3b3b;
  --dim: rgba(0, 229, 255, 0.12);
  --border: rgba(0, 229, 255, 0.18);
  --text: #c8d8e8;
  --muted: #5a7a96;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Orbitron', sans-serif;
  --font-tech: 'Share Tech Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── CRT SCANLINE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── NOISE GRAIN HAZE ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: 0.35;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

/* ── GLOBAL HEADER NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: rgba(4, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-brand .sideways-m {
  display: inline-block;
  transform: rotate(-90deg) translateY(-2px);
  color: var(--pink);
  margin-left: 2px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 45, 120, 0.7);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 12px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* ── ATOMOSPHERIC WASTELAND HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 40, 80, 0.2) 0%, transparent 80%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(255, 45, 120, 0.04) 0%, transparent 60%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 25s linear infinite;
  z-index: 1;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.udm-neon-logo {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 130px);
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow:
    0 0 20px rgba(0, 229, 255, 0.8),
    0 0 50px rgba(0, 229, 255, 0.3);
  z-index: 2;
  line-height: 1;
  margin-bottom: 0.2em;
  position: relative;
}

.udm-neon-logo .rotated-m {
  display: inline-block;
  transform: rotate(-90deg) translateY(6px);
  color: var(--pink);
  text-shadow:
    0 0 20px rgba(255, 45, 120, 0.9),
    0 0 50px rgba(255, 45, 120, 0.3);
  animation: logoFlicker 6s infinite;
}

@keyframes logoFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.85; filter: blur(0.5px); }
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  z-index: 2;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-tech);
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  z-index: 2;
  line-height: 1.5;
}

.hero-tagline strong {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.hero-description {
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 3.5rem;
  z-index: 2;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

/* ── BUTTON STYLING ── */
.btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-primary {
  border-color: var(--cyan);
  color: var(--bg);
  background: var(--cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.45);
}

.btn-secondary {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.btn-tertiary {
  border-color: rgba(200, 216, 232, 0.2);
  color: var(--muted);
  background: transparent;
}

.btn-tertiary:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* ── GENERAL SECTION ELEMENTS ── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

p.section-intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── KINTSUGI DIVIDERS ── */
.kintsugi-div {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.15) 20%,
    rgba(201, 168, 76, 0.4) 40%,
    rgba(201, 168, 76, 0.4) 60%,
    rgba(201, 168, 76, 0.15) 80%,
    transparent 100%
  );
  position: relative;
}

.kintsugi-div::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 45%;
  width: 10%;
  height: 3px;
  background: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
  clip-path: polygon(0% 50%, 15% 0%, 35% 100%, 55% 20%, 75% 80%, 100% 50%);
}

/* ── DRIFTWATCH CARDS ── */
.driftwatch-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-indicator {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 184, 48, 0.35);
  padding: 0.35rem 0.9rem;
  color: var(--amber);
  background: rgba(255, 184, 48, 0.04);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.85); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.drift-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.drift-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
}

.drift-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.card-domain {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-status {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.card-score {
  font-family: var(--font-tech);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.card-reading {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  min-height: 3.6em;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(90, 122, 150, 0.55);
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  padding-top: 0.6rem;
}

/* Status colors mapping */
.status-stable { color: var(--green); }
.status-stable + .card-score { color: var(--green); }
.status-watch  { color: var(--amber); }
.status-watch  + .card-score { color: var(--amber); }
.status-degrade { color: var(--red); }
.status-degrade + .card-score { color: var(--red); }
.status-pinch  { color: var(--pink); }
.status-pinch  + .card-score { color: var(--pink); }

.bar-stable::before { background: var(--green); }
.bar-watch::before  { background: var(--amber); }
.bar-degrade::before { background: var(--red); }
.bar-pinch::before  { background: var(--pink); }

/* ── SHIFT LEGEND ── */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.legend-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.legend-def {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── CHARTS WRAPPERS ── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.chart-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
}

.chart-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chart-block-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e8f4ff;
}

.chart-block-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-block-reading {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--border);
  line-height: 1.6;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

.chart-sources {
  margin-top: 1.2rem;
  font-size: 10px;
  color: rgba(90, 122, 150, 0.5);
  border-top: 1px solid rgba(0, 229, 255, 0.07);
  padding-top: 0.6rem;
}

.chart-sources span {
  color: rgba(0, 229, 255, 0.35);
  margin-right: 0.4rem;
  text-transform: uppercase;
}

/* ── EVIDENCE SECTION ── */
.evidence-quote-card {
  background: var(--bg2);
  border-left: 3px solid var(--cyan);
  padding: 2rem;
  font-family: var(--font-tech);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 3.5rem;
}

.evidence-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg2);
  margin-bottom: 3.5rem;
}

.evidence-table-container h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.02);
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.evidence-table th, .evidence-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.evidence-table th {
  font-family: var(--font-tech);
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.2);
}

.evidence-table tr:last-child td {
  border-bottom: none;
}

.evidence-table tr:hover {
  background: rgba(0, 229, 255, 0.015);
}

.evidence-table .mono-cell {
  font-family: var(--font-tech);
}

.evidence-table .bold-green {
  color: var(--green);
  font-weight: bold;
}

.evidence-table .hash-cell {
  font-family: var(--font-tech);
  font-size: 10px;
  color: var(--muted);
}

/* ── 9-PART GAUNTLET BOARD ── */
.gauntlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.gauntlet-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.gauntlet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.gauntlet-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.gauntlet-status {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: bold;
}

.status-pass {
  background: rgba(57, 255, 110, 0.1);
  color: var(--green);
  border: 1px solid rgba(57, 255, 110, 0.25);
}

.gauntlet-metrics {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.gauntlet-metrics strong {
  color: var(--cyan);
}

/* ── CLAIM BOUNDARY MEMBRANE ── */
.boundary-membrane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .boundary-membrane { grid-template-columns: 1fr; }
  header { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
}

.membrane-col {
  background: var(--bg2);
  border: 1px solid;
  padding: 2rem;
}

.membrane-col.allowed {
  border-color: rgba(57, 255, 110, 0.2);
  background: rgba(57, 255, 110, 0.01);
}

.membrane-col.disallowed {
  border-color: rgba(255, 45, 120, 0.2);
  background: rgba(255, 45, 120, 0.015);
}

.membrane-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.membrane-col.allowed h4 { color: var(--green); }
.membrane-col.disallowed h4 { color: var(--pink); }

.membrane-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.membrane-list li {
  font-size: 12.5px;
  color: var(--muted);
  position: relative;
  padding-left: 1.25rem;
}

.membrane-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1;
}

.membrane-col.allowed li::before { color: var(--green); }
.membrane-col.disallowed li::before { color: var(--pink); }

/* ── FIELD GUIDE ACCORDION ── */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.guide-item {
  border-bottom: 1px solid var(--border);
}

.guide-item:last-child {
  border-bottom: none;
}

.guide-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.guide-trigger-text {
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
  font-weight: bold;
}

.guide-trigger-arrow {
  color: var(--cyan);
  font-size: 18px;
  transition: transform 0.25s;
}

.guide-item.active .guide-trigger-arrow {
  transform: rotate(90deg);
}

.guide-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.15);
}

.guide-content-inner {
  padding: 1.5rem 1.75rem;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-content-inner p {
  margin-bottom: 1rem;
}

.guide-content-inner p:last-child {
  margin-bottom: 0;
}

.guide-content-inner strong {
  color: var(--cyan);
}

/* ── ORGANIZATIONAL STORY MANIFESTO ── */
.manifesto-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 860px) {
  .manifesto-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.manifesto-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.manifesto-main p strong {
  color: var(--text);
}

.manifesto-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2.2rem;
  position: relative;
}

.manifesto-sidebar h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.manifesto-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manifesto-sidebar-list li {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}

.manifesto-sidebar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ── TERMINAL INTERFACE PANEL ── */
#command-deck {
  position: fixed;
  bottom: 0;
  left: 5%;
  right: 5%;
  z-index: 200;
  background: #020408;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

#command-deck.deck-collapsed {
  transform: translateY(calc(100% - 44px));
}

.deck-header {
  height: 44px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.deck-title {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text);
  display: flex;
  align-items: center;
  font-weight: bold;
}

.terminal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
  margin-right: 8px;
  animation: livePulse 1.5s infinite;
}

#deck-status {
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.1em;
  background: rgba(255, 45, 120, 0.15);
  color: var(--pink);
  border: 1px solid rgba(255, 45, 120, 0.3);
  padding: 0.15rem 0.5rem;
}

#deck-status.linked {
  background: rgba(57, 255, 110, 0.1);
  color: var(--green);
  border: 1px solid rgba(57, 255, 110, 0.3);
  animation: none;
}

.btn-deck-toggle {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.deck-body {
  height: 240px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.terminal-log {
  flex-grow: 1;
  overflow-y: auto;
  font-family: var(--font-tech);
  font-size: 12px;
  color: #77aa77;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-right: 0.5rem;
}

.terminal-log .log-user {
  color: var(--cyan);
}

.terminal-log .log-system {
  color: var(--muted);
}

.terminal-log .log-error {
  color: var(--red);
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 229, 255, 0.1);
  padding: 0.4rem 0.8rem;
}

.prompt-symbol {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--green);
  margin-right: 0.6rem;
  font-weight: bold;
}

#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.08em;
  background: var(--bg2);
}

footer .udm-foot-title {
  font-family: var(--font-sans);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ── SENSORY SCAR INTAKE GATE STYLES ── */
.scar-container-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .scar-container-layout {
    grid-template-columns: 1fr;
  }
}

.scar-console-card, .scar-lifecycle-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.scar-console-card h3, .scar-lifecycle-card h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.console-header {
  display: flex;
  align-items: center;
}

.green-dot {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.domain-selector-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.btn-domain-select {
  font-family: var(--font-tech);
  font-size: 11px;
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-domain-select:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--text);
}

.btn-domain-select.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: bold;
}

.json-code-block-wrap {
  background: #020408;
  border: 1px solid rgba(0, 229, 255, 0.08);
  padding: 1.25rem;
  height: 240px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8ab4f8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.json-code-block-wrap pre {
  margin: 0;
  white-space: pre-wrap;
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-console {
  padding: 0.5rem 1rem !important;
  font-size: 12px !important;
}

.export-status-log {
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Lifecycle flow elements */
.lifecycle-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lifecycle-step {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-left: 2px solid rgba(90, 122, 150, 0.2);
  transition: all 0.25s ease-in-out;
}

.lifecycle-step.active {
  border-left-color: var(--cyan);
  background: rgba(0, 229, 255, 0.02);
}

.lifecycle-step.admitted-step {
  border-left-color: var(--green);
  background: rgba(57, 255, 110, 0.01);
}

.step-num {
  font-family: var(--font-tech);
  font-size: 10px;
  color: var(--cyan);
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.step-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.step-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
