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

:root {
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-display: 'Crimson Pro', 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --bg-0: #050709;
  --bg-1: #090b12;
  --bg-2: #0d0f18;
  --bg-3: #131726;
  --panel: rgba(9, 11, 18, 0.85);
  --panel-strong: rgba(9, 11, 18, 0.94);
  --panel-soft: rgba(18, 21, 34, 0.66);
  --line: rgba(90, 120, 170, 0.08);
  --line-strong: rgba(90, 120, 170, 0.18);
  --line-glow: rgba(189, 147, 249, 0.24);
  --text: #9aacca;
  --text-soft: #b8c5dd;
  --text-dim: #6f809f;
  --text-faint: #51607a;
  --text-bright: #dce6f4;
  --accent: #bd93f9;
  --accent-strong: #e7dbff;
  --cyan: #8be9fd;
  --lime: #50fa7b;
  --rose: #ff5555;
  --gold: #f1fa8c;
  --shadow-panel: 0 26px 64px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.22);
  --shadow-panel-soft: 0 10px 22px rgba(0, 0, 0, 0.22);
  --shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(14, 7, 22, 0.32),
    0 0 24px rgba(208, 167, 255, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 14px;
  --space-lg: 16px;
  --space-xl: 18px;
  --space-2xl: 20px;
  --space-3xl: 24px;
  --metric-row-gap: 18px;
  --metric-row-padding: 8px;
  --hover-lift: -1px;
  --chev-sm: 6px;
  --chev-md: 10px;
  --chev-lg: 14px;
  --chev-xl: 20px;
  /* Domed Ecology halo stack — every hõt event gets a multi-layer pulse,
     every cōl rest dims to the matching base. Variants by data-state. */
  --halo-cyan-rest:
    inset 0 0 18px rgba(116, 234, 255, 0.05),
    0 0 22px rgba(116, 234, 255, 0.08);
  --halo-cyan-peak:
    inset 0 0 28px rgba(116, 234, 255, 0.16),
    0 0 42px rgba(116, 234, 255, 0.28),
    0 0 96px rgba(189, 147, 249, 0.18);
  --halo-amber-rest:
    inset 0 0 0 1px rgba(241, 250, 140, 0.10),
    0 0 18px rgba(241, 250, 140, 0.06);
  --halo-amber-peak:
    inset 0 0 0 1px rgba(241, 250, 140, 0.16),
    0 0 30px rgba(241, 250, 140, 0.18),
    inset 0 0 22px rgba(241, 250, 140, 0.06);
  --halo-critical-rest:
    0 0 0 1px rgba(255, 85, 85, 0.10),
    0 0 22px rgba(255, 85, 85, 0.12);
  --halo-critical-peak:
    0 0 0 1px rgba(255, 85, 85, 0.16),
    0 0 36px rgba(255, 85, 85, 0.28),
    inset 0 0 22px rgba(255, 85, 85, 0.10),
    inset 0 0 16px rgba(116, 234, 255, 0.06);
  --thermal-fermata-ms: 1200ms;
}

/* Chevron clip-path utility — preserves the futurecore corner motif while
   collapsing 6+ duplicated polygons into one rule. Three asymmetric
   chevrons elsewhere in the file remain inline (annotated). */
.clip-chev {
  --chev: 10px;
  --chev-r: 6px;
  clip-path: polygon(
    0 var(--chev), var(--chev) 0,
    calc(100% - var(--chev-r)) 0, 100% var(--chev-r),
    100% calc(100% - var(--chev)), calc(100% - var(--chev)) 100%,
    var(--chev-r) 100%, 0 calc(100% - var(--chev-r))
  );
}
.clip-chev-sm { --chev: var(--chev-sm); --chev-r: 4px; }
.clip-chev-md { --chev: var(--chev-md); --chev-r: 6px; }
.clip-chev-lg { --chev: var(--chev-lg); --chev-r: 10px; }
.clip-chev-xl { --chev: var(--chev-xl); --chev-r: 12px; }

@keyframes veilDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.34; }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); opacity: 0.54; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.34; }
}

@keyframes chamberReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glyphPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(208, 167, 255, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 26px rgba(208, 167, 255, 0.18);
    transform: translateY(-1px);
  }
}

@keyframes glyph-breathe {
  0%, 100% {
    opacity: 0.64;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(189, 147, 249, 0.4));
  }
}

@keyframes ingressSheen {
  0% { transform: translateX(-24%); opacity: 0; }
  20% { opacity: 0.18; }
  100% { transform: translateX(124%); opacity: 0; }
}

/* Domed Ecology kinetics — adapted from the TCP/Aperture vocabulary
   (core-pulse, hold-branch-restraint, criticality-burn, alien-capture-scan,
   ingress-ring-collapse, ritual-flicker). CRT-wake is intentionally not
   ported; it suits a gateway boot, not an attestation surface. */
@keyframes core-pulse {
  0%, 100% { box-shadow: var(--halo-cyan-rest); }
  50%      { box-shadow: var(--halo-cyan-peak); }
}
@keyframes hold-branch-restraint {
  0%, 100% { box-shadow: var(--halo-amber-rest); }
  50%      { box-shadow: var(--halo-amber-peak); }
}
@keyframes criticality-burn {
  0%, 100% { box-shadow: var(--halo-critical-rest); }
  50%      { box-shadow: var(--halo-critical-peak); }
}
@keyframes alien-capture-scan {
  0%   { opacity: 0; transform: translateY(-155%); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(260%); }
}
@keyframes ingress-ring-collapse {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.74); opacity: 0.18; }
}
@keyframes ritual-flicker {
  0%, 100% { opacity: 1; }
  6%       { opacity: 0.28; }
  8%       { opacity: 1; }
  43%      { opacity: 0.62; }
  46%      { opacity: 1; }
}
@keyframes coherence-hold {
  0%, 100% { opacity: 0.78; filter: drop-shadow(0 0 4px rgba(80, 250, 123, 0.18)); }
  50%      { opacity: 1;    filter: drop-shadow(0 0 10px rgba(80, 250, 123, 0.36)); }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html {
  background: var(--bg-0);
  color-scheme: dark;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 14%, rgba(139, 233, 253, 0.08), transparent 24%),
    radial-gradient(circle at 82% 11%, rgba(189, 147, 249, 0.08), transparent 24%),
    radial-gradient(circle at 52% 86%, rgba(80, 250, 123, 0.05), transparent 20%),
    linear-gradient(145deg, #050709 0%, #090b12 26%, #0d0f18 58%, #050709 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(180deg, rgba(220, 230, 244, 0.028) 0, rgba(220, 230, 244, 0.028) 1px, transparent 1px, transparent 4px);
  opacity: 0.26;
}

body::after {
  inset: -8%;
  background:
    radial-gradient(circle at 18% 22%, rgba(189, 147, 249, 0.1), transparent 26%),
    radial-gradient(circle at 74% 18%, rgba(139, 233, 253, 0.08), transparent 22%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.82 0 0 0 0 0.88 0 0 0 0 1 0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 220px 220px;
  filter: blur(16px);
  opacity: 0.34;
  animation: veilDrift 24s linear infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 6, 11, 0.9);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 3px solid rgba(7, 6, 11, 0.96);
  background: linear-gradient(180deg, rgba(208, 167, 255, 0.66), rgba(104, 68, 143, 0.66));
}

h1,
h2 {
  margin: 0;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
}

h1 {
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.45rem, 2.1vw, 2.15rem);
  letter-spacing: 0.03em;
}

p,
li {
  font-size: 0.96rem;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--text-bright);
}

button,
input,
textarea,
select {
  font: inherit;
}

.subtitle {
  max-width: 60ch;
  margin: 8px 0 0;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.glyph-lock {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid rgba(189, 147, 249, 0.28);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(189, 147, 249, 0.1) 18% 18.8%, transparent 18.8% 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(11, 13, 20, 0.96), rgba(6, 8, 13, 0.985));
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.6rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(189, 147, 249, 0.12);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 10px 100%, 0 calc(100% - 10px));
  animation: glyph-breathe 5s ease-in-out infinite;
}

.glyph-lock::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 0;
  border: 1px solid rgba(144, 231, 255, 0.14);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 6px 100%, 0 calc(100% - 6px));
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.status-pill,
.surface-kicker,
.surface-state,
.section-label,
.subsection-label,
.label,
.data-label,
.summary-label,
.surface-copy,
.mini-note,
.note,
.ingress-copy,
.ingress-meta,
.ingress-note,
.field span,
.proof-label {
  font-family: var(--font-mono);
}

.status-pill {
  padding: 7px 10px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 14, 20, 0.94), rgba(6, 8, 13, 0.98));
  color: var(--text-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 7px, 7px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 5px 100%, 0 calc(100% - 5px));
}

.flight-launch {
  --flight-glow: rgba(36, 240, 109, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(36, 240, 109, 0.46);
  background:
    linear-gradient(180deg, rgba(36, 240, 109, 0.18), rgba(6, 18, 12, 0.92)),
    radial-gradient(circle at 18% 0%, rgba(120, 247, 255, 0.2), transparent 58%);
  color: #d9ffe7;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 22px var(--flight-glow);
  clip-path: polygon(0 9px, 9px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 7px 100%, 0 calc(100% - 7px));
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.flight-launch[type="button"] {
  cursor: pointer;
}

.flight-launch:hover,
.flight-launch:focus-visible {
  border-color: rgba(120, 247, 255, 0.74);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(36, 240, 109, 0.34),
    0 0 42px rgba(120, 247, 255, 0.16);
}

.flight-launch.signout-launch {
  min-height: auto;
  padding-inline: 4px;
  border-color: transparent;
  background: transparent;
  color: rgba(190, 255, 214, 0.9);
  box-shadow: none;
  clip-path: none;
}

.flight-launch.signout-launch:hover,
.flight-launch.signout-launch:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #9cffbf;
  box-shadow: 0 0 14px rgba(36, 240, 109, 0.12);
  transform: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.ingress-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.ingress-flight-launch {
  align-self: flex-start;
}

.flight-launch-compact {
  min-height: 31px;
  padding: 0 10px;
  border-color: rgba(36, 240, 109, 0.28);
  background: rgba(6, 18, 12, 0.58);
  color: rgba(217, 255, 231, 0.78);
  font-size: 0.56rem;
  box-shadow: none;
}

.boot-alert {
  margin: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 143, 181, 0.34);
  background: rgba(38, 10, 18, 0.94);
  color: var(--text-bright);
  box-shadow: var(--shadow-soft);
}

.boot-pending .ingress-note::after {
  content: ' Boot check pending.';
  color: var(--accent-strong);
}

.chrome-grid {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 24px clamp(16px, 2.4vw, 30px) 28px;
}

.chrome-grid::before {
  content: '';
  position: absolute;
  inset: 0 18px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at top, rgba(208, 167, 255, 0.05), transparent 36%);
  pointer-events: none;
}

.vault-sealed .chrome-grid {
  filter: blur(22px) saturate(0.78) brightness(0.78);
  transform: scale(0.986);
  pointer-events: none;
  user-select: none;
}

html[data-safe-harbor-session-open="true"] body.vault-sealed .chrome-grid {
  filter: none;
  transform: none;
  pointer-events: auto;
  user-select: auto;
}

.masthead {
  position: relative;
  top: auto;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(30, 23, 40, 0.9), rgba(8, 7, 12, 0.96)) padding-box,
    linear-gradient(120deg, rgba(208, 167, 255, 0.28), rgba(255, 255, 255, 0.03), rgba(144, 231, 255, 0.2)) border-box;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.masthead::before,
.masthead::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.masthead::before {
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 143, 181, 0.12), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(144, 231, 255, 0.12), transparent 26%);
  opacity: 0.78;
}

.masthead::after {
  top: -20%;
  left: -30%;
  width: 50%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: rotate(14deg);
  animation: ingressSheen 10s linear infinite;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(270px, 312px) minmax(0, 1fr) minmax(250px, 298px);
  grid-template-rows: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  min-height: 0;
}

.panel,
.dock,
.surface-card,
.forge-card,
.ingress-step-panel,
.ingress-console-panel,
.data-stack,
.metric-block,
.code-panel,
.code-area,
.ingress-card,
.proof-row,
.dynamic-target,
.footer-template {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(26, 18, 35, 0.9), rgba(8, 7, 12, 0.95)) padding-box,
    linear-gradient(135deg, rgba(208, 167, 255, 0.24), rgba(255, 255, 255, 0.03), rgba(144, 231, 255, 0.18)) border-box;
  box-shadow: var(--shadow-soft);
}

.panel,
.dock {
  padding: 18px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(150%);
}

.panel::before,
.panel::after,
.dock::before,
.dock::after,
.surface-card::before,
.surface-card::after,
.forge-card::before,
.forge-card::after,
.ingress-step-panel::before,
.ingress-step-panel::after,
.ingress-console-panel::before,
.ingress-console-panel::after,
.ingress-card::before,
.ingress-card::after,
.data-stack::before,
.metric-block::before {
  content: '';
  position: absolute;
  pointer-events: none;
}

.panel::before,
.dock::before,
.surface-card::before,
.forge-card::before,
.ingress-step-panel::before,
.ingress-console-panel::before,
.ingress-card::before,
.data-stack::before,
.metric-block::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at top left, rgba(208, 167, 255, 0.08), transparent 36%);
  opacity: 0.85;
}

.panel::after,
.dock::after,
.surface-card::after,
.forge-card::after,
.ingress-step-panel::after,
.ingress-console-panel::after,
.ingress-card::after {
  top: 14px;
  right: 14px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(216, 225, 255, 0.24));
}

.panel-left { grid-column: 1; grid-row: 1; }
.panel-center { grid-column: 2; grid-row: 1; }
.panel-right { grid-column: 3; grid-row: 1; }
.dock-left { grid-column: 1 / span 2; grid-row: 2; }
.dock-right { grid-column: 3; grid-row: 2; }

.canon-panel {
  background:
    linear-gradient(180deg, rgba(18, 13, 27, 0.94), rgba(7, 6, 11, 0.98)) padding-box,
    linear-gradient(150deg, rgba(255, 203, 136, 0.24), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.16)) border-box;
}

.chamber-panel {
  background:
    linear-gradient(180deg, rgba(17, 11, 24, 0.9), rgba(7, 6, 11, 0.97)) padding-box,
    linear-gradient(140deg, rgba(208, 167, 255, 0.26), rgba(255, 143, 181, 0.08), rgba(144, 231, 255, 0.16)) border-box;
}

.conscience-panel {
  background:
    linear-gradient(180deg, rgba(13, 14, 21, 0.92), rgba(6, 7, 12, 0.98)) padding-box,
    linear-gradient(145deg, rgba(144, 231, 255, 0.22), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.14)) border-box;
}

.operator-dock {
  background:
    linear-gradient(180deg, rgba(20, 13, 28, 0.95), rgba(7, 6, 11, 0.98)) padding-box,
    linear-gradient(135deg, rgba(208, 167, 255, 0.28), rgba(255, 203, 136, 0.12), rgba(255, 255, 255, 0.03)) border-box;
}

.audit-dock {
  background:
    linear-gradient(180deg, rgba(11, 11, 18, 0.95), rgba(6, 6, 10, 0.99)) padding-box,
    linear-gradient(135deg, rgba(144, 231, 255, 0.24), rgba(208, 167, 255, 0.18), rgba(255, 255, 255, 0.03)) border-box;
}

.panel-section + .panel-section {
  margin-top: 20px;
}

.section-label,
.subsection-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label::before,
.subsection-label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(208, 167, 255, 0.36);
}

.section-label::after,
.subsection-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 225, 255, 0.18), transparent);
}

.data-stack,
.metric-block,
.surface-card,
.forge-card,
.ingress-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.surface-card.accent-card {
  background:
    linear-gradient(180deg, rgba(40, 18, 32, 0.96), rgba(15, 11, 22, 0.96)) padding-box,
    linear-gradient(135deg, rgba(255, 143, 181, 0.32), rgba(215, 255, 131, 0.14), rgba(208, 167, 255, 0.24)) border-box;
}

.render-face-card {
  background:
    linear-gradient(180deg, rgba(26, 18, 35, 0.94), rgba(10, 9, 16, 0.96)) padding-box,
    linear-gradient(140deg, rgba(255, 203, 136, 0.18), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.2)) border-box;
}

.reliquary-card {
  box-shadow:
    var(--shadow-soft),
    0 0 30px rgba(255, 143, 181, 0.12),
    0 0 52px rgba(208, 167, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.helper-card {
  background:
    linear-gradient(180deg, rgba(15, 15, 22, 0.96), rgba(8, 7, 12, 0.98)) padding-box,
    linear-gradient(135deg, rgba(144, 231, 255, 0.22), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.16)) border-box;
}

.intake-card {
  background:
    linear-gradient(180deg, rgba(25, 18, 34, 0.96), rgba(10, 8, 14, 0.98)) padding-box,
    linear-gradient(135deg, rgba(208, 167, 255, 0.24), rgba(255, 143, 181, 0.1), rgba(255, 255, 255, 0.03)) border-box;
}

.signature-card {
  background:
    linear-gradient(180deg, rgba(18, 13, 24, 0.96), rgba(8, 7, 12, 0.98)) padding-box,
    linear-gradient(135deg, rgba(255, 203, 136, 0.24), rgba(144, 231, 255, 0.1), rgba(255, 255, 255, 0.03)) border-box;
}

.data-row,
.metric-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--metric-row-gap);
  padding: var(--metric-row-padding) 0;
}

.data-row + .data-row,
.metric-row + .metric-row,
.summary-row + .summary-row {
  border-top: 1px solid var(--line);
}

.label,
.data-label,
.summary-label {
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.value,
.data-value,
.summary-value {
  color: var(--text-bright);
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.footer-template {
  margin: 14px 0 16px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
}

.footer-template.secondary {
  color: var(--cyan);
}

.mint-altar {
  margin: 18px 0 2px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(233, 230, 245, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 12, 24, 0.94), rgba(9, 8, 14, 0.98));
  align-self: center;
  width: min(100%, 760px);
}

.mint-altar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mint-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.mint-value {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(207, 176, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.96), rgba(11, 10, 16, 0.99));
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: clamp(0.94rem, 1.25vw, 1.12rem);
  letter-spacing: 0.16em;
  word-break: break-word;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 34px rgba(139, 233, 253, 0.1),
    0 0 78px rgba(189, 147, 249, 0.08);
}

.mint-copy {
  margin-top: 10px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  color: var(--text-soft);
}

.bullet-list li + li {
  margin-top: 9px;
}

.reference-link-grid {
  display: grid;
  gap: 12px;
}

.reference-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 225, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 15, 23, 0.96), rgba(7, 7, 11, 0.98));
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.reference-link-card strong {
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.45;
}

.reference-link-card:hover {
  transform: translateY(var(--hover-lift));
  border-color: rgba(208, 167, 255, 0.34);
  box-shadow:
    var(--shadow-soft),
    0 0 24px rgba(208, 167, 255, 0.08);
}

.note,
.mini-note,
.surface-copy,
.ingress-copy,
.ingress-meta,
.ingress-note {
  color: var(--text-dim);
}

.surface-copy,
.ingress-copy,
.note,
.ingress-note {
  line-height: 1.72;
}

.mini-note {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.button-grid,
.builder-toolbar,
.dock-toolbar,
.dynamic-row,
.ingress-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-grid.compact {
  gap: 10px;
}

.builder-toolbar,
.dock-toolbar,
.dynamic-row {
  align-items: center;
}

.ingress-footer {
  align-items: flex-end;
  justify-content: space-between;
}

.ingress-bypass {
  display: grid;
  gap: 14px;
}

.ingress-bypass-grid {
  grid-template-columns: 1fr;
}

.ingress-bypass-grid textarea {
  width: 100%;
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  resize: vertical;
}

.control {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(216, 225, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(60, 41, 84, 0.96), rgba(20, 14, 31, 0.98));
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    var(--shadow-panel-soft);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.control:hover:not(:disabled) {
  transform: translateY(var(--hover-lift));
  border-color: rgba(208, 167, 255, 0.46);
  color: var(--text-bright);
  box-shadow: var(--shadow-lift);
}

.control:disabled {
  cursor: default;
  opacity: 0.42;
  box-shadow: none;
}

.control.secondary {
  background:
    linear-gradient(180deg, rgba(28, 22, 40, 0.96), rgba(11, 10, 16, 0.98));
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(216, 225, 255, 0.14);
  border-radius: 16px;
  padding: 13px 14px;
  background:
    linear-gradient(180deg, rgba(8, 7, 12, 0.96), rgba(16, 12, 23, 0.92));
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(208, 167, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(208, 167, 255, 0.18),
    0 0 22px rgba(208, 167, 255, 0.09);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: none;
}

.code-area,
.code-panel {
  width: 100%;
  min-height: 240px;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto;
  word-break: break-word;
  background:
    linear-gradient(180deg, rgba(8, 7, 12, 0.97), rgba(18, 13, 24, 0.94)) padding-box,
    linear-gradient(135deg, rgba(144, 231, 255, 0.16), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.18)) border-box;
}

.code-panel {
  background-image:
    linear-gradient(180deg, rgba(8, 7, 12, 0.97), rgba(18, 13, 24, 0.94)),
    linear-gradient(135deg, rgba(144, 231, 255, 0.16), rgba(255, 255, 255, 0.03), rgba(208, 167, 255, 0.18)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 30px);
}

.ingress-membrane {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 42px) clamp(16px, 4vw, 38px) clamp(24px, 5vw, 56px);
  background:
    radial-gradient(circle at top, rgba(208, 167, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom, rgba(255, 143, 181, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(4, 3, 6, 0.94), rgba(4, 3, 6, 0.985));
  transition: opacity 0.46s ease, visibility 0.46s ease;
}

.ingress-membrane.is-hidden,
.vault-open .ingress-membrane {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-safe-harbor-session-open="true"] .ingress-membrane {
  display: none !important;
}

.ingress-shell {
  position: relative;
  width: min(1500px, 100%);
  padding: clamp(20px, 3vw, 34px);
  border-radius: 36px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(28, 20, 37, 0.92), rgba(7, 6, 11, 0.98)) padding-box,
    linear-gradient(135deg, rgba(255, 143, 181, 0.22), rgba(255, 255, 255, 0.04), rgba(144, 231, 255, 0.18), rgba(208, 167, 255, 0.28)) border-box;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.ingress-shell::before,
.ingress-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.ingress-shell::before {
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ingress-shell::after {
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 143, 181, 0.1), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(144, 231, 255, 0.11), transparent 22%);
  opacity: 0.8;
}

.ingress-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
}

.ingress-intro {
  position: relative;
  z-index: 1;
  max-width: 78ch;
  margin-bottom: 20px;
}

.ingress-stage-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ingress-stage-chip {
  appearance: none;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(216, 225, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(22, 17, 31, 0.94), rgba(8, 7, 12, 0.98));
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ingress-stage-chip.is-active {
  border-color: rgba(208, 167, 255, 0.42);
  color: var(--text-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 28px rgba(208, 167, 255, 0.12);
}

.ingress-stage-chip.is-complete {
  color: var(--lime);
  border-color: rgba(215, 255, 131, 0.26);
}

.ingress-stage-chip.is-locked {
  opacity: 0.46;
  cursor: not-allowed;
}

.ingress-handshake-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.ingress-step-panel,
.ingress-console-panel {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(150%);
}

.ingress-step-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ingress-step-support {
  max-width: 60ch;
  margin-bottom: 16px;
}

.ingress-step-entry {
  display: grid;
  gap: 12px;
}

.ingress-step-nav {
  margin-top: 18px;
  justify-content: space-between;
}

.ingress-console-panel {
  display: grid;
  gap: 16px;
}

.ingress-console-block {
  padding: 16px;
}

.ingress-seal-review {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 225, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 11, 19, 0.94), rgba(8, 7, 12, 0.98));
}

.ingress-final-actions {
  margin-top: auto;
}

.ingress-grid,
.witness-grid,
.forge-grid {
  display: grid;
  gap: 18px;
}

.ingress-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.witness-grid {
  grid-template-areas:
    "reliquary reliquary"
    "render intake";
  align-items: start;
}

.witness-grid > .reliquary-card {
  grid-area: reliquary;
}

.witness-grid > .render-face-card {
  grid-area: render;
}

.witness-grid > .batch-intake-card {
  grid-area: intake;
}

.reliquary-card > .metric-block,
.reliquary-card > .section-label,
.reliquary-card > pre,
.reliquary-card > .button-grid,
.reliquary-card > .note {
  order: 2;
}

.reliquary-card > .mint-altar {
  order: 1;
}

.reliquary-card > .intake-canon-fold {
  order: 1;
}

.ingress-card {
  overflow: hidden;
}

.ingress-card h2 {
  margin-bottom: 12px;
}

.ingress-card.locked {
  opacity: 0.5;
  filter: saturate(0.72);
}

.ingress-card.ready {
  border-image: linear-gradient(135deg, rgba(144, 231, 255, 0.34), rgba(208, 167, 255, 0.28)) 1;
  box-shadow:
    var(--shadow-soft),
    0 0 28px rgba(144, 231, 255, 0.08);
}

.ingress-card.complete {
  border-image: linear-gradient(135deg, rgba(215, 255, 131, 0.34), rgba(255, 143, 181, 0.24)) 1;
  box-shadow:
    var(--shadow-soft),
    0 0 28px rgba(215, 255, 131, 0.08);
}

.ingress-card.complete .surface-state {
  color: var(--lime);
}

.ingress-textarea {
  min-height: 220px;
}

.ingress-textarea:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.surface-head,
.ingress-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.surface-kicker,
.surface-state {
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.surface-kicker {
  color: var(--text-soft);
}

.surface-state {
  color: var(--cyan);
}

.proof-stack,
.triad-summary {
  display: grid;
  gap: 10px;
}

.proof-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
}

.proof-label {
  color: var(--text-dim);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-value {
  color: var(--text-bright);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.dynamic-target {
  margin-top: 14px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.dynamic-target:empty::before {
  content: 'Awaiting injected lane.';
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.packetPreview,
.auditLog {
  min-height: 100%;
}

body.vault-open .masthead,
body.vault-open .panel,
body.vault-open .dock {
  animation: chamberReveal 0.72s ease both;
}

body.vault-open .panel-left { animation-delay: 0.04s; }
body.vault-open .panel-center { animation-delay: 0.1s; }
body.vault-open .panel-right { animation-delay: 0.16s; }
body.vault-open .dock-left { animation-delay: 0.22s; }
body.vault-open .dock-right { animation-delay: 0.28s; }

@media (max-width: 1320px) {
  .main-grid {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(220px, 300px);
  }

  .panel-right {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .dock-left {
    grid-column: 1;
    grid-row: 3;
  }

  .dock-right {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 1080px) {
  .ingress-stage-rail,
  .ingress-handshake-grid,
  .ingress-grid,
  .witness-grid,
  .forge-grid {
    grid-template-columns: 1fr;
  }

  .witness-grid {
    grid-template-areas:
      "reliquary"
      "render"
      "intake";
  }

  .masthead,
  .ingress-head,
  .ingress-step-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-strip {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.35rem, 8vw, 3.8rem);
  }
}

@media (max-width: 920px) {
  .chrome-grid {
    padding: 14px 14px 22px;
    gap: 14px;
  }

  .main-grid {
    display: block;
  }

  .panel,
  .dock {
    margin-top: 14px;
  }

  .ingress-stage-chip {
    min-height: 52px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .ingress-shell,
  .masthead {
    border-radius: 26px;
    padding: 18px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 12px;
  }

  .glyph-lock {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 1.5rem;
  }

  .status-pill,
  .control {
    width: 100%;
    justify-content: center;
  }

  .button-grid,
  .builder-toolbar,
  .dock-toolbar,
  .dynamic-row,
  .ingress-footer,
  .ingress-step-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .ingress-textarea {
    min-height: 180px;
  }

    .section-label,
  .subsection-label {
    letter-spacing: 0.18em;
  }
}

/* Futurecore goth refinement: leaner editorial chamber grammar */

body {
  background:
    radial-gradient(circle at 10% 14%, rgba(165, 141, 103, 0.1), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(145, 183, 199, 0.08), transparent 18%),
    radial-gradient(circle at 52% 78%, rgba(201, 194, 215, 0.08), transparent 26%),
    linear-gradient(180deg, #020205 0%, #06050a 34%, #09060c 68%, #030306 100%);
  font-size: 14px;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%, rgba(255, 255, 255, 0.008) 82%, transparent),
    repeating-linear-gradient(180deg, transparent 0, transparent 28px, rgba(255, 255, 255, 0.013) 29px, transparent 30px),
    repeating-linear-gradient(90deg, transparent 0, transparent 109px, rgba(255, 255, 255, 0.01) 110px, transparent 111px);
  opacity: 0.34;
}

body::after {
  inset: -16%;
  background:
    radial-gradient(circle at 16% 24%, rgba(165, 141, 103, 0.1), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(145, 183, 199, 0.08), transparent 20%),
    radial-gradient(circle at 48% 72%, rgba(201, 194, 215, 0.09), transparent 26%);
  filter: blur(54px);
  opacity: 0.28;
}

h1 {
  font-size: clamp(2.9rem, 4.8vw, 5rem);
  letter-spacing: 0.025em;
  line-height: 0.88;
}

h2 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.subtitle {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.glyph-lock {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 14px;
  border: 1px solid rgba(233, 230, 245, 0.12);
  background:
    linear-gradient(180deg, rgba(25, 18, 33, 0.94), rgba(9, 8, 12, 0.98)),
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.1), transparent 34%);
  box-shadow: none;
}

.glyph-lock::after {
  inset: 6px;
  border-radius: 10px;
  border-color: rgba(154, 226, 255, 0.12);
}

.status-pill {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(233, 230, 245, 0.09);
  background: rgba(8, 8, 12, 0.68);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  box-shadow: none;
}

.chrome-grid {
  gap: 16px;
  padding: 12px clamp(12px, 1.8vw, 24px) 22px;
}

.chrome-grid::before {
  inset: 6px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.07);
  background:
    linear-gradient(180deg, rgba(220, 230, 244, 0.014), transparent 18%),
    radial-gradient(circle at top, rgba(189, 147, 249, 0.035), transparent 42%);
  clip-path: polygon(0 22px, 22px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.masthead {
  top: auto;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.88), rgba(5, 7, 12, 0.985));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(220, 230, 244, 0.02);
  backdrop-filter: blur(14px) saturate(110%);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.masthead::before {
  inset: 0;
  background:
    linear-gradient(128deg, transparent 0 18%, rgba(189, 147, 249, 0.06) 18% 18.6%, transparent 18.6% 70%, rgba(139, 233, 253, 0.04) 70% 70.6%, transparent 70.6% 100%),
    radial-gradient(circle at 8% 16%, rgba(241, 250, 140, 0.05), transparent 16%);
  opacity: 0.8;
}

.masthead::after {
  display: block;
  top: 12px;
  right: 14px;
  left: auto;
  bottom: auto;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(189, 147, 249, 0.55), transparent);
}

.main-grid {
  gap: 16px;
  grid-template-columns: minmax(244px, 290px) minmax(0, 1fr) minmax(236px, 274px);
  grid-template-rows: auto auto;
}

.panel,
.dock,
.surface-card,
.forge-card,
.ingress-step-panel,
.ingress-console-panel,
.data-stack,
.metric-block,
.code-panel,
.code-area,
.ingress-card,
.proof-row,
.dynamic-target,
.footer-template {
  border: 1px solid rgba(90, 120, 170, 0.08);
  background: linear-gradient(180deg, rgba(9, 11, 18, 0.88), rgba(4, 6, 11, 0.985));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(220, 230, 244, 0.015);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 8px 100%, 0 calc(100% - 8px));
  overflow: hidden;
}

.panel,
.dock {
  padding: 16px 14px;
  border-radius: 0;
  backdrop-filter: blur(12px) saturate(118%);
}

.surface-card,
.forge-card,
.ingress-card,
.data-stack,
.metric-block,
.code-panel,
.code-area,
.footer-template,
.dynamic-target {
  border-radius: 0;
}

.panel::before,
.panel::after,
.dock::before,
.dock::after,
.surface-card::before,
.surface-card::after,
.forge-card::before,
.forge-card::after,
.ingress-step-panel::before,
.ingress-step-panel::after,
.ingress-console-panel::before,
.ingress-console-panel::after,
.ingress-card::before,
.ingress-card::after,
.data-stack::before,
.metric-block::before {
  display: block;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(220, 230, 244, 0.018), transparent 16%),
    linear-gradient(122deg, transparent 0 18%, rgba(189, 147, 249, 0.045) 18% 18.5%, transparent 18.5% 100%);
  opacity: 0.84;
}

.panel::after,
.dock::after,
.surface-card::after,
.forge-card::after,
.ingress-step-panel::after,
.ingress-console-panel::after,
.ingress-card::after {
  display: block;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(189, 147, 249, 0.48), transparent);
}

.canon-panel,
.chamber-panel,
.conscience-panel,
.operator-dock,
.audit-dock,
.render-face-card,
.helper-card,
.intake-card,
.signature-card,
.surface-card.accent-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(189, 147, 249, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(9, 11, 18, 0.9), rgba(4, 6, 11, 0.985));
}

.reliquary-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 250, 140, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(13, 11, 18, 0.9), rgba(6, 8, 13, 0.985));
  border-color: rgba(241, 250, 140, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.panel-section + .panel-section {
  margin-top: 18px;
}

.section-label,
.subsection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-label::before,
.subsection-label::before {
  content: '';
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.56;
  box-shadow: none;
}

.section-label::after,
.subsection-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(90, 120, 170, 0.16), transparent 66%);
}

.label,
.data-label,
.summary-label,
.proof-label,
.field span,
.surface-kicker,
.surface-state,
.ingress-meta,
.mini-note {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.value,
.data-value,
.summary-value,
.proof-value {
  color: var(--text-bright);
}

.reference-link-grid {
  gap: 0;
}

.reference-link-card {
  gap: 6px;
  padding: 12px 12px 12px 16px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.08);
  border-left: 2px solid rgba(189, 147, 249, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.78), rgba(7, 9, 14, 0.96));
  clip-path: polygon(0 8px, 8px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 6px 100%, 0 calc(100% - 6px));
  box-shadow: inset 0 1px 0 rgba(220, 230, 244, 0.015);
}

.reference-link-card + .reference-link-card {
  margin-top: 8px;
}

.reference-link-card:hover {
  transform: translateY(var(--hover-lift));
  border-color: rgba(189, 147, 249, 0.22);
  background:
    linear-gradient(180deg, rgba(14, 13, 22, 0.92), rgba(7, 9, 14, 0.98));
  box-shadow: 0 0 18px rgba(189, 147, 249, 0.08);
}

.fold-panel,
.dock-fold {
  display: grid;
  gap: 14px;
}

.fold-panel summary,
.dock-fold summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  user-select: none;
}

.fold-panel summary::after,
.dock-fold summary::after {
  display: none;
}

.fold-toggle-word {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fold-panel[open] .fold-toggle-word,
.dock-fold[open] .fold-toggle-word {
  color: var(--text-bright);
}

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

.fold-panel summary::before,
.dock-fold summary::before {
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(189, 147, 249, 0.8), transparent);
}

.fold-panel summary::after,
.dock-fold summary::after {
  content: '+';
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.fold-panel[open] summary::after,
.dock-fold[open] summary::after {
  content: '−';
  color: var(--text-bright);
}

.fold-panel .metric-block,
.fold-panel .forge-card,
.fold-panel .button-grid,
.fold-panel .note,
.fold-panel .bullet-list,
.dock-fold .dock-toolbar,
.dock-fold .code-panel {
  margin-top: 0;
}

.reference-drawer .subsection + .subsection {
  margin-top: var(--space-lg);
}

.reliquary-forensic-fold .metric-block + .section-label {
  margin-top: var(--space-lg);
}

.reliquary-forensic-fold .code-panel {
  margin-top: var(--space-md);
}

.surface-copy,
.ingress-copy,
.note,
.ingress-note {
  color: var(--text-soft);
  line-height: 1.66;
}

.control {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 12, 20, 0.96), rgba(7, 9, 14, 0.985));
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  box-shadow:
    inset 0 1px 0 rgba(220, 230, 244, 0.02),
    0 0 0 rgba(0, 0, 0, 0);
  clip-path: polygon(0 8px, 8px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 6px 100%, 0 calc(100% - 6px));
}

.control.secondary {
  background: linear-gradient(180deg, rgba(9, 11, 18, 0.76), rgba(5, 7, 12, 0.94));
}

.control:hover:not(:disabled) {
  transform: translateY(var(--hover-lift));
  border-color: rgba(189, 147, 249, 0.3);
  background:
    linear-gradient(180deg, rgba(18, 15, 28, 0.96), rgba(8, 9, 14, 0.985));
  box-shadow: 0 0 16px rgba(189, 147, 249, 0.08);
}

input,
textarea,
select {
  border-radius: 0;
  padding: 12px 12px;
  border: 1px solid rgba(90, 120, 170, 0.1);
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.97), rgba(8, 10, 16, 0.995));
  box-shadow:
    inset 0 1px 0 rgba(220, 230, 244, 0.015);
  clip-path: polygon(0 8px, 8px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 6px 100%, 0 calc(100% - 6px));
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(189, 147, 249, 0.3);
  box-shadow: 0 0 0 1px rgba(189, 147, 249, 0.12), 0 0 18px rgba(139, 233, 253, 0.04);
}

textarea {
  min-height: 248px;
  padding: 16px 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.75;
}

.code-area,
.code-panel,
.footer-template,
.dynamic-target {
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.96), rgba(10, 9, 14, 0.99));
  border: 1px solid rgba(233, 230, 245, 0.08);
  box-shadow: none;
}

.proof-row {
  grid-template-columns: 136px 1fr;
  padding: 9px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.proof-stack .proof-row + .proof-row {
  border-top: 1px solid var(--line);
}

.dynamic-target {
  min-height: 52px;
}

.ingress-membrane {
  padding: 18px clamp(16px, 3vw, 38px) 34px;
  background:
    radial-gradient(circle at 12% 12%, rgba(189, 147, 249, 0.08), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(139, 233, 253, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.96), rgba(1, 2, 5, 0.992));
}

.ingress-shell {
  width: min(1400px, 100%);
  padding: 18px clamp(16px, 2.6vw, 28px) 20px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.9), rgba(4, 6, 11, 0.992));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(220, 230, 244, 0.02);
  clip-path: polygon(0 20px, 20px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.ingress-shell::before {
  inset: 12px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.08);
  clip-path: polygon(0 12px, 12px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.ingress-shell::after {
  inset: 0;
  background:
    linear-gradient(124deg, transparent 0 18%, rgba(189, 147, 249, 0.055) 18% 18.6%, transparent 18.6% 100%),
    radial-gradient(circle at 10% 16%, rgba(139, 233, 253, 0.05), transparent 18%);
  opacity: 0.82;
}

.ingress-head {
  margin-bottom: 18px;
}

.ingress-intro {
  max-width: 72ch;
  margin-bottom: 18px;
}

.ingress-stage-rail {
  gap: 8px;
  margin: 6px 0 18px;
  border-top: 0;
  border-bottom: 0;
}

.ingress-stage-chip {
  min-height: 42px;
  padding: 11px 14px 10px;
  border: 1px solid rgba(90, 120, 170, 0.08);
  border-right: 1px solid rgba(90, 120, 170, 0.08);
  border-bottom: 1px solid rgba(90, 120, 170, 0.08);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(9, 11, 18, 0.7), rgba(5, 7, 12, 0.94));
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  clip-path: polygon(0 8px, 8px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 6px 100%, 0 calc(100% - 6px));
}

.ingress-stage-chip:last-child {
  border-right: 1px solid rgba(90, 120, 170, 0.08);
}

.ingress-stage-chip.is-active {
  border-color: rgba(189, 147, 249, 0.28);
  background: linear-gradient(180deg, rgba(189, 147, 249, 0.12), rgba(8, 10, 15, 0.94));
  color: var(--text-bright);
  box-shadow: 0 0 16px rgba(189, 147, 249, 0.08);
}

.ingress-stage-chip.is-complete {
  border-color: rgba(80, 250, 123, 0.24);
  color: var(--lime);
}

.ingress-stage-chip.is-locked {
  opacity: 0.34;
}

.ingress-handshake-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.ingress-step-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(189, 147, 249, 0.07), transparent 18%),
    linear-gradient(180deg, rgba(9, 11, 18, 0.88), rgba(4, 6, 11, 0.985));
}

.ingress-step-head {
  margin-bottom: 16px;
  gap: 20px;
}

#ingressStepPrompt {
  max-width: 11ch;
  font-size: clamp(2.1rem, 4.3vw, 3.9rem);
  line-height: 0.92;
}

.surface-state {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid rgba(90, 120, 170, 0.1);
  background: rgba(8, 10, 15, 0.76);
  clip-path: polygon(0 6px, 6px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 4px 100%, 0 calc(100% - 4px));
}

.ingress-step-support {
  max-width: 44ch;
  margin-bottom: 18px;
  font-size: 1rem;
}

.ingress-step-entry {
  gap: 14px;
}

.ingress-step-nav {
  margin-top: 20px;
  justify-content: flex-start;
}

.ingress-seal-review {
  padding: 2px 0 0;
}

.ingress-console-panel {
  display: grid;
  gap: 16px;
  padding: 16px 14px;
  border: 1px solid rgba(90, 120, 170, 0.08);
  border-left: 1px solid rgba(90, 120, 170, 0.08);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.84), rgba(4, 6, 11, 0.97));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.ingress-console-block {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(90, 120, 170, 0.08);
  border-bottom: 1px solid rgba(90, 120, 170, 0.08);
  border-radius: 0;
  background: transparent;
}

.ingress-bypass,
.ingress-final-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(90, 120, 170, 0.08);
}

.ingress-bypass-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-bright);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  list-style: none;
  text-transform: uppercase;
}

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

.ingress-bypass-summary::before {
  content: '+';
  color: var(--accent);
  margin-right: 2px;
}

.ingress-bypass[open] > .ingress-bypass-summary::before {
  content: '-';
}

.ingress-bypass-summary span:last-child {
  color: var(--text-faint);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.ingress-bypass-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ingress-bypass-grid {
  gap: 12px;
}

.witness-grid,
.forge-grid {
  gap: 14px;
}

.forge-fold {
  align-content: start;
}

.forge-fold > .forge-card {
  margin-top: 0;
}

.surface-card,
.forge-card,
.ingress-card {
  padding: 18px;
}

@media (max-width: 1080px) {
  .masthead,
  .ingress-head,
  .ingress-step-head {
    gap: 14px;
  }

  .ingress-console-panel {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(233, 230, 245, 0.08);
  }

  #ingressStepPrompt {
    max-width: none;
    font-size: clamp(2.4rem, 7vw, 4rem);
  }
}

@media (max-width: 920px) {
  .masthead,
  .ingress-shell {
    padding: 18px;
    border-radius: 0;
  }

  .chrome-grid::before {
    inset: 6px;
    border-radius: 0;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .glyph-lock {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .status-pill,
  .control {
    width: 100%;
  }

  .ingress-stage-chip {
    border-right: 0;
    border-bottom: 1px solid rgba(233, 230, 245, 0.08);
  }

  .ingress-stage-chip.is-active,
  .ingress-stage-chip.is-complete {
    border-bottom-width: 1px;
    box-shadow: inset 3px 0 0 rgba(207, 176, 255, 0.4);
  }
}

.svg-attestation-probes .attestation-summary {
  color: var(--lime);
  letter-spacing: 0.24em;
  text-shadow: 0 0 12px rgba(80, 250, 123, 0.35);
}

.svg-attestation-probes .attestation-summary::before {
  background: linear-gradient(90deg, rgba(80, 250, 123, 0.85), transparent);
}

.svg-attestation-probes .attestation-hint {
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  margin-left: 8px;
  text-shadow: none;
}

.batch-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.batch-node-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(233, 230, 245, 0.12);
  border-radius: 6px;
  background: rgba(20, 18, 32, 0.4);
}

.batch-node-title {
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.batch-node-meta {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
}

.batch-node-card .route-to-trainer {
  align-self: flex-start;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  margin-top: 4px;
}

.intake-canon-fold {
  margin-top: 18px;
}

.intake-canon-fold > summary {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.intake-canon-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(25, 18, 34, 0.96), rgba(10, 8, 14, 0.98)) padding-box,
    linear-gradient(135deg, rgba(208, 167, 255, 0.24), rgba(255, 143, 181, 0.1), rgba(255, 255, 255, 0.03)) border-box;
  border: 1px solid transparent;
  border-radius: 10px;
}

.intake-canon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intake-canon-grid .field-wide {
  grid-column: 1 / -1;
}

.intake-canon-subsection {
  margin-top: 6px;
}

.intake-canon-card .helper-card {
  padding: 12px 14px;
  border-radius: 8px;
}

.intake-canon-card .helper-card .button-grid {
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .intake-canon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .intake-canon-grid {
    grid-template-columns: 1fr;
  }
}

/* Patch 35.2: mobile-first Safe Harbor ingress membrane. Keep desktop vault
   posture intact; compact only narrow or short operator surfaces. */
@media (max-width: 720px), (max-height: 560px) {
  html,
  body {
    overflow-x: hidden;
  }

  .ingress-membrane {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      max(8px, env(safe-area-inset-right, 0px))
      max(14px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ingress-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 18px;
    clip-path: none;
    overflow: visible;
  }

  .ingress-shell::before {
    inset: 6px;
    border-radius: 14px;
    clip-path: none;
  }

  .ingress-shell::after {
    opacity: 0.36;
  }

  .ingress-head {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ingress-shell .title-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .ingress-shell .glyph-lock {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 1.12rem;
  }

  .ingress-shell h1,
  .ingress-shell .title-group h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
  }

  .ingress-shell .subtitle {
    max-width: 34ch;
    margin-top: 6px;
    font-size: 0.56rem;
    line-height: 1.45;
    letter-spacing: 0.12em;
  }

  .status-strip.ingress-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    justify-content: stretch;
  }

  .ingress-shell .status-pill {
    width: auto;
    min-height: 28px;
    padding: 0 6px;
    justify-content: center;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .ingress-intro {
    margin: 8px 0 10px;
  }

  .ingress-intro .section-label {
    margin-bottom: 6px;
  }

  .ingress-intro .ingress-copy {
    max-height: 4.6em;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .ingress-stage-rail {
    display: flex;
    gap: 7px;
    margin: 8px -4px 12px;
    padding: 0 4px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .ingress-stage-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 122px;
    min-height: 34px;
    padding: 8px 10px;
    border-right: 1px solid rgba(90, 120, 170, 0.08);
    border-bottom: 1px solid rgba(90, 120, 170, 0.08);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-align: left;
    white-space: nowrap;
  }

  .ingress-stage-chip.is-active,
  .ingress-stage-chip.is-complete {
    box-shadow: inset 0 -2px 0 rgba(207, 176, 255, 0.4);
  }

  .ingress-handshake-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ingress-step-panel,
  .ingress-console-panel {
    min-width: 0;
    padding: 12px;
    clip-path: none;
  }

  .ingress-console-panel {
    gap: 10px;
    border-left: 1px solid rgba(90, 120, 170, 0.08);
    border-top: 1px solid rgba(90, 120, 170, 0.08);
  }

  .ingress-step-head {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
  }

  #ingressStepPrompt {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.55rem);
    line-height: 1;
  }

  .surface-state {
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .ingress-step-support,
  .ingress-note,
  .ingress-meta {
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .ingress-step-support {
    margin-bottom: 10px;
  }

  .ingress-textarea {
    min-height: 150px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .ingress-step-nav,
  .ingress-final-actions {
    flex-direction: row;
    gap: 8px;
  }

  .ingress-step-nav .control,
  .ingress-final-actions .control {
    width: auto;
    min-height: 38px;
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .ingress-console-block {
    padding: 8px 0;
  }

  .ingress-console-block .metric-row {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 8px;
  }

  .ingress-bypass {
    padding-top: 10px;
  }

  .ingress-bypass-summary {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid rgba(90, 120, 170, 0.1);
    background: rgba(8, 10, 15, 0.64);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .ingress-bypass-body {
    gap: 10px;
    margin-top: 10px;
  }

  .ingress-bypass-grid textarea {
    min-height: 84px;
  }
}

@media (max-width: 420px) {
  .ingress-membrane {
    padding-inline: 6px;
  }

  .ingress-shell {
    padding: 10px;
  }

  .ingress-shell .title-group {
    grid-template-columns: 1fr;
  }

  .ingress-shell .glyph-lock {
    display: none;
  }

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

  .ingress-shell .status-pill {
    justify-content: flex-start;
  }

  .ingress-intro .ingress-copy {
    max-height: 3.2em;
  }

  .ingress-step-panel,
  .ingress-console-panel {
    padding: 10px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .ingress-head {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    align-items: start;
  }

  .ingress-intro .ingress-copy {
    max-height: 2.2em;
  }

  .ingress-textarea {
    min-height: 110px;
  }
}

.safe-harbor-receipt-mount {
  margin-top: 12px;
}

.operator-receipt {
  border: 1px solid rgba(189, 147, 249, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(189, 147, 249, 0.1), rgba(7, 10, 16, 0.78)),
    rgba(5, 7, 12, 0.82);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.operator-receipt:not([open]) {
  padding: 9px 10px;
}

.operator-receipt[data-status="blocked"] {
  border-color: rgba(255, 85, 85, 0.3);
}

.operator-receipt[data-status="ready"] {
  border-color: rgba(139, 233, 253, 0.28);
}

.operator-receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.operator-receipt-head::-webkit-details-marker {
  display: none;
}

.operator-receipt h3 {
  margin: 4px 0 0;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 2.5vw, 1.12rem);
  line-height: 1.05;
}

.operator-receipt .section-kicker {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.operator-receipt-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 233, 253, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.34);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.operator-receipt-grid > div {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 9px;
  background: rgba(8, 10, 15, 0.58);
}

.operator-receipt-grid span,
.operator-receipt-next span,
.operator-receipt-risk span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.operator-receipt-grid strong,
.operator-receipt-next,
.operator-receipt-risk {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operator-receipt-next,
.operator-receipt-risk {
  margin: 9px 0 0;
}

.operator-receipt-next-inline {
  margin-top: 5px;
  font-size: 0.7rem;
}

.operator-receipt-next-inline span {
  display: inline;
  margin-right: 6px;
}

.operator-receipt-risk {
  color: var(--gold);
}

.operator-receipt-debug {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.operator-receipt-debug summary {
  cursor: pointer;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.operator-receipt-debug pre {
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .operator-receipt-head,
  .operator-receipt-grid {
    grid-template-columns: 1fr;
  }

  .operator-receipt-head {
    display: grid;
  }
}

/* Portrait phones need a stricter triad-first membrane. Landscape already has
   enough horizontal room; this keeps portrait from burning the first screen on
   ornament, status copy, and explanatory text. */
@media (max-width: 520px) and (orientation: portrait) {
  .ingress-membrane {
    place-items: stretch center;
    padding:
      max(6px, env(safe-area-inset-top, 0px))
      max(6px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(6px, env(safe-area-inset-left, 0px));
  }

  .ingress-shell {
    min-height: calc(100dvh - 18px);
    padding: 9px;
    border-radius: 14px;
  }

  .ingress-shell::before {
    inset: 5px;
    border-radius: 10px;
  }

  .ingress-shell::after {
    opacity: 0.22;
  }

  .ingress-head {
    gap: 6px;
    margin-bottom: 6px;
  }

  .ingress-shell .title-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ingress-shell .glyph-lock {
    display: none;
  }

  .ingress-shell h1,
  .ingress-shell .title-group h1 {
    font-size: clamp(1.42rem, 7vw, 1.82rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
  }

  .ingress-shell .subtitle {
    max-width: none;
    margin-top: 4px;
    font-size: 0.5rem;
    line-height: 1.25;
    letter-spacing: 0.08em;
  }

  .status-strip.ingress-status {
    display: flex;
    grid-template-columns: none;
    gap: 5px;
    margin-top: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ingress-shell .status-pill {
    flex: 0 0 auto;
    min-height: 23px;
    padding: 0 7px;
    justify-content: center;
    font-size: 0.46rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .ingress-intro {
    margin: 4px 0 6px;
  }

  .ingress-intro .section-label {
    margin-bottom: 0;
    font-size: 0.52rem;
  }

  .ingress-intro .ingress-copy {
    display: none;
  }

  .ingress-stage-rail {
    gap: 5px;
    margin: 4px -3px 7px;
    padding: 0 3px 5px;
  }

  .ingress-stage-chip {
    min-width: 98px;
    min-height: 29px;
    padding: 6px 8px;
    font-size: 0.47rem;
    letter-spacing: 0.07em;
  }

  .ingress-handshake-grid {
    gap: 7px;
  }

  .ingress-step-panel,
  .ingress-console-panel {
    padding: 9px;
  }

  .ingress-step-head {
    gap: 5px;
    margin-bottom: 5px;
  }

  #ingressStepPrompt {
    font-size: clamp(1.2rem, 6.3vw, 1.55rem);
    line-height: 0.98;
  }

  .surface-state {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .ingress-step-support {
    max-height: 2.6em;
    overflow: hidden;
    margin-bottom: 7px;
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .ingress-textarea {
    height: clamp(170px, 34dvh, 240px);
    min-height: 170px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .ingress-meta {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .ingress-step-nav,
  .ingress-final-actions {
    gap: 6px;
  }

  .ingress-step-nav .control,
  .ingress-final-actions .control {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .ingress-console-panel {
    gap: 8px;
  }

  .ingress-console-block {
    display: none;
  }

  .ingress-bypass-summary {
    min-height: 30px;
    padding: 7px 8px;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .safe-harbor-receipt-mount {
    margin-top: 8px;
  }
}

/* ==========================================================================
   Domed Ecology surfacing — thermal regulation made visible.
   States: body[data-thermal="col"|"hot"|"fermata"]. Drives halos, scan beams,
   ring collapse, panel desaturation. Every effect fires for a reason — never
   decorative. See plan: /root/.claude/plans/could-you-make-safe-distributed-shell.md
   ========================================================================== */

/* 米 — pattern coherence sigil. Bright + steady when triad fingerprint and
   cross-lane stability agree; gold+flicker on drift; faint when dormant. */
.coherence-sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  padding: 0 8px;
  color: var(--text-faint);
  letter-spacing: 0;
  transition: color 220ms ease, filter 220ms ease, opacity 220ms ease;
  user-select: none;
}
.coherence-sigil[data-state="steady"] {
  color: var(--lime);
  animation: coherence-hold 4.8s ease-in-out infinite;
}
.coherence-sigil[data-state="drift"] {
  color: var(--gold);
  animation: ritual-flicker 1.6s ease-in-out infinite;
}
.coherence-sigil[data-state="dormant"] {
  color: var(--text-faint);
  opacity: 0.5;
}

/* Concentric ring layer inside the ingress seal step. Three nested rings
   centered behind the seal panel; collapse 60ms staggered when triad enters
   hõt or after a successful seal. */
.ingress-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.ingress-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(116, 234, 255, 0.18);
  box-shadow: inset 0 0 18px rgba(116, 234, 255, 0.06);
}
.ingress-ring-a { width: 152px; height: 152px; }
.ingress-ring-b { width: 220px; height: 220px; border-color: rgba(116, 234, 255, 0.12); }
.ingress-ring-c { width: 294px; height: 294px; border-color: rgba(116, 234, 255, 0.08); }
body[data-thermal="hot"] .ingress-ring-a,
body[data-thermal="fermata"] .ingress-ring-a {
  animation: ingress-ring-collapse 1200ms ease forwards;
}
body[data-thermal="hot"] .ingress-ring-b,
body[data-thermal="fermata"] .ingress-ring-b {
  animation: ingress-ring-collapse 1200ms ease 60ms forwards;
}
body[data-thermal="hot"] .ingress-ring-c,
body[data-thermal="fermata"] .ingress-ring-c {
  animation: ingress-ring-collapse 1200ms ease 120ms forwards;
}

/* Reliquary scan beam — sweeps once at the cōl→hõt transition. */
.reliquary-card {
  position: relative;
  overflow: hidden;
}
.reliquary-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(116, 234, 255, 0.18), transparent);
  pointer-events: none;
  opacity: 0;
}
body[data-thermal="hot"] .reliquary-card::before,
body[data-thermal="fermata"] .reliquary-card::before {
  animation: none;
}

/* SHI mint value — base halo when the value is just held in recall, full
   triple-layer pulse once an SHI is actually minted. */
.mint-value[data-state="minted"] {
  animation: none;
  box-shadow:
    var(--halo-cyan-rest),
    0 0 48px rgba(139, 233, 253, 0.32),
    0 0 110px rgba(139, 233, 253, 0.16),
    0 0 150px rgba(189, 147, 249, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.mint-value[data-state="recoverable"] {
  box-shadow:
    var(--halo-cyan-rest),
    0 0 38px rgba(139, 233, 253, 0.24),
    0 0 94px rgba(139, 233, 253, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* Mint / Seal Payload button — amber breathing while staged, full cyan halo
   once sealed. Critical pulse remains available via data-state="critical"
   for any future error surfacing. */
.control[data-state="staged"],
.control[data-state="ready"] {
  animation: hold-branch-restraint 2.6s ease-in-out infinite;
}
.control[data-state="sealed"] {
  box-shadow: var(--halo-cyan-peak);
}
.control[data-state="critical"] {
  animation: criticality-burn 1.8s ease-in-out infinite;
}

/* Harbor recommendation readout — color + glow on landing states. */
#harborReadout[data-state="sealed"] {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(80, 250, 123, 0.35);
}
#harborReadout[data-state="eligible"] {
  color: var(--cyan);
}

/* Status pills — TCP-style data-state palette swap. */
.status-pill[data-state="critical"] {
  color: var(--rose);
  border-color: rgba(255, 85, 85, 0.32);
  background: rgba(255, 85, 85, 0.08);
}
.status-pill[data-state="hold"] {
  color: var(--gold);
  border-color: rgba(241, 250, 140, 0.28);
  background: rgba(241, 250, 140, 0.06);
}
.status-pill[data-state="passage"] {
  color: var(--lime);
  border-color: rgba(80, 250, 123, 0.28);
  background: rgba(80, 250, 123, 0.06);
}
.status-pill[data-state="dormant"] {
  color: var(--text-faint);
}

/* 𝄐 — the fermata curtain. Surface settles for 1200ms after every successful
   seal: panels desaturate, controls (other than the just-sealed one) lock,
   the SHI value flickers once and resumes its base pulse. */
body[data-thermal="fermata"] .chamber-panel,
body[data-thermal="fermata"] .canon-panel,
body[data-thermal="fermata"] .conscience-panel {
  filter: saturate(0.92) brightness(0.96);
  transition: filter 320ms ease;
}
body[data-thermal="fermata"] .control:not([data-state="sealed"]):not(#covenantExport) {
  pointer-events: none;
  opacity: 0.72;
}
body[data-thermal="fermata"] .reliquary-card .mint-value[data-state="minted"] {
  animation: none;
  box-shadow: var(--halo-cyan-rest);
}

/* Reduced-motion guard — kinetic motion suppressed; static color states and
   halos still apply (motion sensitivity, not color sensitivity). */
@media (prefers-reduced-motion: reduce) {
  .coherence-sigil[data-state="steady"],
  .coherence-sigil[data-state="drift"],
  body[data-thermal="hot"] .ingress-ring-a,
  body[data-thermal="hot"] .ingress-ring-b,
  body[data-thermal="hot"] .ingress-ring-c,
  body[data-thermal="fermata"] .ingress-ring-a,
  body[data-thermal="fermata"] .ingress-ring-b,
  body[data-thermal="fermata"] .ingress-ring-c,
  body[data-thermal="hot"] .reliquary-card::before,
  body[data-thermal="fermata"] .reliquary-card::before,
  .mint-value[data-state="minted"],
  .control[data-state="staged"],
  .control[data-state="ready"],
  .control[data-state="critical"],
  body[data-thermal="fermata"] .reliquary-card .mint-value[data-state="minted"] {
    animation: none !important;
  }
  body[data-thermal="fermata"] .chamber-panel,
  body[data-thermal="fermata"] .canon-panel,
  body[data-thermal="fermata"] .conscience-panel {
    filter: none;
  }
}

/* Mobile guards for the Domed Ecology surfacing.
   - 米 sigil joins the ingress-status grid as an auto-width prefix column
     so the three pills keep equal-width columns at 720/560 breakpoints.
   - Concentric rings hide entirely on phones; they are decorative and
     would otherwise overflow the (narrower, shorter) seal-step panel. */
@media (max-width: 720px), (max-height: 560px) {
  .status-strip.ingress-status {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
  }
  .coherence-sigil { padding: 0 4px; font-size: 13px; }
  .ingress-rings { display: none; }
}
@media (max-width: 420px) {
  .status-strip.ingress-status .coherence-sigil { grid-column: 1 / -1; }
}

@media (max-width: 720px), (max-height: 560px) {
  .ingress-head-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .ingress-flight-launch {
    justify-self: start;
    align-self: center;
    min-height: 32px;
    padding-inline: 12px;
    font-size: 0.56rem;
  }
}

@media (max-width: 640px) {
  .flight-launch-compact {
    flex: 0 0 auto;
    min-height: 27px;
    font-size: 0.5rem;
  }
}

.safe-harbor-scroll-rail {
  display: none;
}

[id="covenantCanonSection"],
[id="witnessSurfaceSection"],
[id="mintedIssuanceSection"],
[id="packetVaultSection"],
[id="intakeCanonFold"],
[id="svgAttestationSection"],
[id="tauricIntakeSection"],
[id="operatorHandshakeSection"],
[id="operatorMirrorSection"] {
  scroll-margin-top: 24px;
}

@media (min-width: 1120px) {
  .chrome-grid {
    width: min(100%, 1740px);
    max-width: 1720px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(168px, 224px);
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .masthead,
  .main-grid {
    grid-column: 1;
  }

  .safe-harbor-scroll-rail {
    position: sticky;
    top: 18px;
    z-index: 16;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 14px 12px;
    border: 1px solid rgba(90, 120, 170, 0.14);
    background:
      linear-gradient(180deg, rgba(10, 12, 19, 0.92), rgba(5, 7, 12, 0.985)),
      radial-gradient(circle at 18% 8%, rgba(139, 233, 253, 0.08), transparent 48%),
      radial-gradient(circle at 84% 2%, rgba(189, 147, 249, 0.09), transparent 42%);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(220, 230, 244, 0.025);
    clip-path: polygon(0 18px, 18px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 10px 100%, 0 calc(100% - 10px));
  }

  .rail-kicker {
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  .rail-status-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 10px;
    padding: 10px;
    border: 1px solid rgba(233, 230, 245, 0.08);
    background: rgba(4, 6, 11, 0.66);
  }

  .rail-status-grid span {
    color: var(--text-faint);
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .rail-status-grid strong {
    min-width: 0;
    color: var(--text-bright);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .rail-links,
  .rail-actions {
    display: grid;
    gap: 7px;
  }

  .safe-harbor-scroll-rail a,
  .safe-harbor-scroll-rail button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    padding: 7px 9px;
    border: 1px solid rgba(90, 120, 170, 0.13);
    background: rgba(6, 8, 13, 0.66);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 8px, 8px 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  }

  .safe-harbor-scroll-rail a::after {
    content: '↘';
    color: rgba(139, 233, 253, 0.48);
    font-size: 0.58rem;
  }

  .safe-harbor-scroll-rail a:hover,
  .safe-harbor-scroll-rail a:focus-visible,
  .safe-harbor-scroll-rail button:hover,
  .safe-harbor-scroll-rail button:focus-visible,
  .safe-harbor-scroll-rail a.is-active {
    border-color: rgba(139, 233, 253, 0.34);
    color: var(--accent-strong);
    background: rgba(139, 233, 253, 0.055);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.08);
  }

  .rail-actions {
    padding-top: 8px;
    border-top: 1px solid rgba(233, 230, 245, 0.08);
  }

  .rail-actions button:last-child {
    border-color: transparent;
    background: transparent;
    color: rgba(190, 255, 214, 0.9);
    box-shadow: none;
  }
}

/* Desktop centering guard: keep the Safe Harbor cockpit balanced instead of
   letting the working panels hug the left edge on wide screens. */
@media (min-width: 921px) and (max-width: 1119px) {
  .chrome-grid {
    width: min(100%, 1600px);
    max-width: 1600px;
    margin-inline: auto;
  }

  .main-grid {
    width: 100%;
    margin-inline: auto;
  }
}
