/* =============================================================================
   Holographic project interface: tile wall (tw-), layer stack (ls-),
   dossier (dz-), file overlay (fo-), arrival sequence (arr-), the
   .holo-skin canvas theme, and the navigation chrome: crumb bar (cb-),
   hub screen (hs-), stack screen (ss-), canvas layer filter and phone layout.
   ============================================================================= */

/* ============================================================================
   TileWall — isometric glass cube field (app/hub3d.jsx). Every class is
   prefixed tw-; custom properties live on .tw-root, never :root.
   ========================================================================== */

.tw-root {
  --tw-bg: #07080c;
  --tw-panel: rgba(14, 17, 24, 0.66);
  --tw-fg: #e6e9f0;
  --tw-fg-dim: #7d8597;
  --tw-cyan: 110, 231, 255;
  --tw-purple: 167, 139, 250;
  --tw-magenta: 255, 79, 216;
  --tw-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--tw-fg);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(var(--tw-purple), 0.14), transparent 70%),
    radial-gradient(55% 45% at 92% 18%, rgba(var(--tw-cyan), 0.09), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(var(--tw-magenta), 0.08), transparent 70%),
    var(--tw-bg);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- header --- */
.tw-head {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 30px 40px 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.tw-kicker {
  font-family: var(--tw-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--tw-cyan));
  text-shadow: 0 0 12px rgba(var(--tw-cyan), 0.55);
}
.tw-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tw-count {
  font-family: var(--tw-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  color: rgb(var(--tw-cyan));
  background: rgba(var(--tw-cyan), 0.08);
  border: 1px solid rgba(var(--tw-cyan), 0.3);
}
.tw-head-right { display: flex; align-items: center; gap: 18px; }
.tw-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--tw-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-fg-dim);
}
.tw-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.tw-legend-hint { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.tw-swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
  transform: rotate(45deg) scaleY(0.8);
}
.tw-swatch-private { background: rgba(var(--tw-magenta), 0.55); box-shadow: 0 0 8px rgba(var(--tw-magenta), 0.8); }
.tw-swatch-shared { background: rgba(var(--tw-cyan), 0.55); box-shadow: 0 0 8px rgba(var(--tw-cyan), 0.8); }

.tw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--tw-panel);
  color: var(--tw-fg);
  font: 500 12.5px/1 'IBM Plex Sans', system-ui, sans-serif;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.tw-btn:hover { border-color: rgba(var(--tw-cyan), 0.5); box-shadow: 0 0 16px rgba(var(--tw-cyan), 0.18); }
.tw-btn:focus-visible { outline: 2px solid rgb(var(--tw-cyan)); outline-offset: 2px; }
.tw-btn-primary {
  height: 44px;
  padding: 0 20px;
  color: #04161c;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, rgb(var(--tw-cyan)), rgb(var(--tw-purple)));
  box-shadow: 0 0 24px rgba(var(--tw-cyan), 0.35);
}
.tw-btn-primary:hover { box-shadow: 0 0 32px rgba(var(--tw-cyan), 0.55); }
.tw-btn-plus { position: relative; width: 12px; height: 12px; }
.tw-btn-plus::before, .tw-btn-plus::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: currentColor;
}
.tw-btn-plus::after { transform: rotate(90deg); }

/* -------------------------------------------------------------- field --- */
.tw-field {
  position: relative;
  margin: 26px 0 56px;
}
.tw-floor {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.tw-floor-line { fill: none; stroke: rgba(var(--tw-cyan), 0.12); stroke-width: 1; }

/* --------------------------------------------------------------- cell --- */
.tw-cell {
  --tw-c: var(--tw-magenta);
  --tw-c2: var(--tw-purple);
  --tw-glow: 0.42;
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.tw-vis-shared { --tw-c: var(--tw-cyan); --tw-c2: 96, 140, 255; }
.tw-cell:hover, .tw-cell:focus-visible, .tw-cell.tw-force-hover { --tw-glow: 0.9; }

/* --------------------------------------------------- 3D glass geometry --- */
.tw-scene {
  position: absolute;
  width: var(--tw-s);
  height: var(--tw-s);
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.tw-shadow {
  position: absolute;
  inset: -22%;
  border-radius: 28%;
  background:
    radial-gradient(closest-side, rgba(var(--tw-c), 0.2), transparent 75%),
    radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent 85%);
  transform: translateZ(-1px) scale(0.92);
  opacity: 0.85;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease;
}
.tw-cell:hover .tw-shadow, .tw-cell:focus-visible .tw-shadow, .tw-force-hover .tw-shadow {
  transform: translateZ(-1px) scale(1.12);
  opacity: 1;
}
.tw-bracket, .tw-focus-bracket {
  position: absolute;
  inset: -15%;
  border-radius: 12px;
  transform: translateZ(0.5px);
}
.tw-bracket {
  border: 1px solid rgba(var(--tw-purple), 0.6);
  box-shadow: 0 0 14px rgba(var(--tw-purple), 0.35), inset 0 0 14px rgba(var(--tw-purple), 0.2);
}
.tw-focus-bracket {
  inset: -21%;
  border: 2px dashed rgba(var(--tw-cyan), 0.95);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tw-cell:focus-visible .tw-focus-bracket { opacity: 1; }

.tw-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(.2, .8, .2, 1);
}
.tw-cell:hover .tw-body, .tw-cell:focus-visible .tw-body, .tw-force-hover .tw-body {
  transform: translateZ(22px);
}
.tw-face {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(var(--tw-c), calc(0.4 + var(--tw-glow) * 0.55));
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.tw-top {
  inset: 0;
  border-radius: 3px;
  transform: translateZ(var(--tw-h));
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 18% 12%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(var(--tw-c), 0.36), rgba(var(--tw-c2), 0.18) 70%);
  box-shadow:
    0 0 calc(10px + var(--tw-glow) * 18px) rgba(var(--tw-c), calc(var(--tw-glow) * 0.8)),
    inset 0 0 22px rgba(var(--tw-c), 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px) saturate(150%);
  backdrop-filter: blur(4px) saturate(150%);
}
.tw-top::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-70%);
  transition: transform 0.7s ease;
}
.tw-cell:hover .tw-top::after, .tw-force-hover .tw-top::after { transform: translateX(70%); }

.tw-side {
  left: 0;
  top: calc((var(--tw-s) - var(--tw-h)) / 2);
  width: var(--tw-s);
  height: var(--tw-h);
  /* Face-local y runs from the floor (top edge) to the cube top (bottom edge). */
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent calc(var(--tw-slab) - 1px),
      rgba(var(--tw-c), 0.55) calc(var(--tw-slab) - 1px), rgba(var(--tw-c), 0.55) var(--tw-slab)),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px),
    linear-gradient(to bottom, rgba(var(--tw-c2), 0.1), rgba(var(--tw-c), 0.3));
}
.tw-f0 {
  transform: translateY(calc(var(--tw-s) / 2)) translateZ(calc(var(--tw-h) / 2)) rotateX(90deg);
  box-shadow: 0 0 calc(var(--tw-glow) * 22px) rgba(var(--tw-c), calc(var(--tw-glow) * 0.55)), inset 0 0 18px rgba(var(--tw-c), 0.25);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.tw-f1 {
  transform: rotateZ(90deg) translateY(calc(var(--tw-s) / 2)) translateZ(calc(var(--tw-h) / 2)) rotateX(90deg);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent calc(var(--tw-slab) - 1px),
      rgba(var(--tw-c), 0.5) calc(var(--tw-slab) - 1px), rgba(var(--tw-c), 0.5) var(--tw-slab)),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px),
    linear-gradient(to bottom, rgba(var(--tw-c2), 0.32), rgba(var(--tw-c2), 0.16) 60%, rgba(var(--tw-c), 0.26));
  box-shadow: 0 0 calc(var(--tw-glow) * 22px) rgba(var(--tw-c2), calc(var(--tw-glow) * 0.5)), inset 0 0 18px rgba(var(--tw-c2), 0.3);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.tw-f2, .tw-f3 {
  background: linear-gradient(to bottom, rgba(var(--tw-c2), 0.05), rgba(var(--tw-c), 0.1));
  border-color: rgba(var(--tw-c), 0.32);
}
.tw-f2 { transform: rotateZ(180deg) translateY(calc(var(--tw-s) / 2)) translateZ(calc(var(--tw-h) / 2)) rotateX(90deg); }
.tw-f3 { transform: rotateZ(270deg) translateY(calc(var(--tw-s) / 2)) translateZ(calc(var(--tw-h) / 2)) rotateX(90deg); }

/* Etched circuit: GraphMiniature restyled as glowing traces on the top face. */
.tw-etch {
  position: absolute;
  inset: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 2px rgba(var(--tw-c), 0.9));
}
/* The miniature is 2:1; stretch it across the square face so traces read at small sizes. */
.tw-etch .mini-svg { flex: none; width: 100%; height: 50%; transform: scaleY(1.75); }
.tw-etch .mini-svg line { stroke: rgba(var(--tw-c), 0.8); stroke-width: 1.4; }
.tw-etch .mini-svg g rect:first-child { fill: rgba(8, 10, 16, 0.42); stroke-width: 1.4; }
.tw-etch .mini-empty {
  font-family: var(--tw-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--tw-c), 0.9);
}

/* ------------------------------------------------- holographic ring --- */
.tw-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--tw-s) * 1.85);
  height: calc(var(--tw-s) * 1.85);
  margin: calc(var(--tw-s) * -0.925) 0 0 calc(var(--tw-s) * -0.925);
  transform: translateZ(0.25px);
}
.tw-ring-core, .tw-ring-dash, .tw-ring-pulse, .tw-empty-inner {
  position: absolute;
  border-radius: 50%;
}
.tw-ring-core {
  inset: 0;
  border: 2px solid rgba(var(--tw-cyan), 0.95);
  background: radial-gradient(circle, rgba(var(--tw-cyan), 0.22) 0, rgba(var(--tw-cyan), 0.08) 45%, transparent 68%);
  box-shadow: 0 0 22px rgba(var(--tw-cyan), 0.75), inset 0 0 24px rgba(var(--tw-cyan), 0.55);
}
.tw-ring-dash {
  inset: 11%;
  border: 1.5px dashed rgba(var(--tw-cyan), 0.75);
  animation: tw-spin 14s linear infinite;
}
.tw-ring-pulse {
  inset: 0;
  border: 2px solid rgba(var(--tw-cyan), 0.9);
  box-shadow: 0 0 18px rgba(var(--tw-cyan), 0.7);
  opacity: 0;
  animation: tw-pulse 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.tw-ring-pulse-late { animation-delay: 1.3s; }

@keyframes tw-spin { to { transform: rotate(360deg); } }
@keyframes tw-pulse {
  0% { transform: scale(0.72); opacity: 0.95; }
  100% { transform: scale(1.32); opacity: 0; }
}

/* ------------------------------------------------- active / new / open --- */
.tw-cell-new .tw-face {
  border: 1.5px dashed rgba(230, 233, 240, calc(0.22 + var(--tw-glow) * 0.4));
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tw-cell-new { --tw-c: var(--tw-cyan); --tw-c2: var(--tw-cyan); }
.tw-cell-new:hover .tw-face, .tw-cell-new:focus-visible .tw-face {
  border-color: rgba(var(--tw-cyan), 0.85);
  background: rgba(var(--tw-cyan), 0.05);
}
.tw-cell-new .tw-top::after { display: none; }
.tw-cell-new .tw-shadow { background: radial-gradient(closest-side, rgba(var(--tw-cyan), 0.08), transparent 80%); }
/* Counter-rotated so the plus reads upright on screen rather than as an X. */
.tw-plus { position: absolute; inset: 0; transform: rotate(45deg); }
.tw-plus::before, .tw-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 3px;
  border-radius: 2px;
  background: rgb(var(--tw-cyan));
  box-shadow: 0 0 10px rgba(var(--tw-cyan), 0.9);
  transform: translate(-50%, -50%);
}
.tw-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.tw-is-opening {
  z-index: 200 !important;
  animation: tw-zoom 0.45s cubic-bezier(.55, 0, .7, .2) forwards;
}
.tw-is-opening .tw-body { transform: translateZ(40px); }
@keyframes tw-zoom {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}
.tw-root-opening .tw-cell:not(.tw-is-opening),
.tw-root-opening .tw-head,
.tw-root-opening .tw-floor {
  opacity: 0.07;
  filter: blur(3px);
  pointer-events: none;
}

/* -------------------------------------------------------------- label --- */
.tw-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  padding: 9px 13px 10px;
  border-radius: 12px;
  background: rgba(9, 11, 17, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.38s cubic-bezier(.2, .8, .2, 1);
}
.tw-cell-grid .tw-label {
  left: 50%;
  width: max-content;
  min-width: 150px;
  max-width: calc(100% - 18px);
  align-items: center;
  text-align: center;
  transform: translateX(-50%);
}
.tw-cell-stack .tw-label {
  right: 0;
  transform: translateY(-50%);
}
.tw-cell:hover .tw-label, .tw-force-hover .tw-label {
  border-color: rgba(var(--tw-c), 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--tw-c), 0.14);
}
.tw-cell:focus-visible .tw-label { border-color: rgb(var(--tw-cyan)); box-shadow: 0 0 0 1px rgb(var(--tw-cyan)), 0 0 20px rgba(var(--tw-cyan), 0.3); }
.tw-is-active .tw-label { border-color: rgba(var(--tw-purple), 0.4); }

.tw-label-kickers { display: flex; align-items: center; gap: 7px; min-height: 16px; }
.tw-tag, .tw-kicker-new, .tw-kicker-active {
  font-family: var(--tw-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 99px;
}
.tw-tag-private { color: #ff9be9; background: rgba(var(--tw-magenta), 0.12); border: 1px solid rgba(var(--tw-magenta), 0.38); }
.tw-tag-shared { color: rgb(var(--tw-cyan)); background: rgba(var(--tw-cyan), 0.1); border: 1px solid rgba(var(--tw-cyan), 0.36); }
.tw-kicker-new {
  color: #03191f;
  background: rgb(var(--tw-cyan));
  box-shadow: 0 0 14px rgba(var(--tw-cyan), 0.8);
}
.tw-kicker-active { color: rgb(var(--tw-purple)); border: 1px solid rgba(var(--tw-purple), 0.45); }
.tw-air { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tw-air-confirmed { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); }
.tw-air-pending { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.9); animation: tw-blink 1.6s ease-in-out infinite; }
.tw-air-failed { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.9); }
@keyframes tw-blink { 50% { opacity: 0.35; } }

.tw-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tw-fg);
  word-break: break-word;
  text-wrap: balance;
}
.tw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: 4px 7px;
  font-family: var(--tw-mono);
  font-size: 11px;
  color: var(--tw-fg-dim);
  white-space: nowrap;
}
.tw-cell-grid .tw-meta { justify-content: center; }
.tw-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.tw-meta > span + span::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.tw-cell-new .tw-name { color: rgb(var(--tw-cyan)); }

/* -------------------------------------------------------------- empty --- */
.tw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: calc(100% - 140px);
  box-sizing: border-box;
  padding: 20px 20px 60px;
  text-align: center;
}
.tw-empty-stage {
  position: relative;
  width: min(560px, 92vw);
  height: 230px;
}
.tw-empty-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  transform: rotateX(62deg);
}
.tw-empty-inner {
  inset: 34%;
  border-radius: 6px;
  border: 1.5px dashed rgba(var(--tw-cyan), 0.6);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(var(--tw-cyan), 0.3);
}
.tw-empty-copy {
  max-width: 440px;
  text-wrap: balance;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tw-fg-dim);
}
.tw-empty-lead {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--tw-fg);
}

/* ------------------------------------------------------------- phone --- */
@media (max-width: 600px) {
  .tw-head { flex-wrap: wrap; align-items: center; padding: 20px 14px 0; gap: 12px; }
  .tw-title { font-size: 22px; }
  .tw-head-right { gap: 10px; }
  .tw-legend { display: none; }
  .tw-btn { height: 44px; }
  .tw-field { margin: 14px 0 32px; }
  .tw-label { padding: 10px 12px; }
  .tw-name { font-size: 15px; }
  .tw-meta { font-size: 11.5px; }
}

/* ---------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .tw-root *, .tw-root *::before, .tw-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .tw-ring-pulse { display: none; }
}

/* =============================================================================
   LayerStack — exploded glass planes joined by glowing pillars.
   Every class is ls-prefixed; custom properties live on .ls-root.
   ============================================================================= */

.ls-root {
  --ls-bg: #07080c;
  --ls-panel: #0e1118;
  --ls-fg: #e6e9f0;
  --ls-dim: #7d8597;
  --ls-faint: #545a6b;
  --ls-cyan: #6ee7ff;
  --ls-cyan-hi: #c9f7ff;
  --ls-purple: #a78bfa;
  --ls-mag: #ff4fd8;
  --ls-mag-hi: #ffc2f1;
  --ls-glass-line: rgba(110, 231, 255, 0.10);
  --ls-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ls-spread-ms: 420ms;
  --ls-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ls-fg);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 46% 42% at 44% 56%, rgba(46, 110, 170, 0.20), transparent 70%),
    radial-gradient(ellipse 70% 40% at 44% 100%, rgba(110, 231, 255, 0.08), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 1.5px) 0 0 / 28px 28px,
    var(--ls-bg);
}

/* ------------------------------------------------------------------ header */
.ls-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px 6px;
  position: relative;
  z-index: 2;
}
.ls-kicker {
  font-family: var(--ls-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ls-cyan);
  opacity: 0.85;
}
.ls-title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.ls-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--ls-mono);
  font-size: 11px;
  color: var(--ls-dim);
}
.ls-stat b { color: var(--ls-fg); font-weight: 500; }
.ls-vis {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(110, 231, 255, 0.35);
  color: var(--ls-cyan);
  background: rgba(110, 231, 255, 0.06);
}
.ls-vis-shared {
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--ls-purple);
  background: rgba(167, 139, 250, 0.08);
}

.ls-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 6px 16px 16px;
  font-family: var(--ls-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-faint);
}
.ls-legend { display: inline-flex; align-items: center; gap: 8px; color: var(--ls-dim); }
.ls-swatch {
  display: inline-block;
  width: 2px;
  height: 12px;
  border-radius: 1px;
}
.ls-swatch-pillar { background: var(--ls-cyan); box-shadow: 0 0 6px 1px rgba(110, 231, 255, 0.8); }
.ls-swatch-beam { width: 3px; background: linear-gradient(#e4dcff, var(--ls-purple)); box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.8); }
.ls-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ls-none {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ls-dim);
}

/* ------------------------------------------------------------------- stage */
.ls-stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
}
.ls-scene {
  position: absolute;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}
.ls-layer {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform var(--ls-spread-ms) var(--ls-ease);
}
.ls-fly {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------------ planes */
.ls-plane {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(140, 236, 255, 0.55);
  border-radius: calc(var(--ls-s) * 0.022);
  background:
    linear-gradient(var(--ls-glass-line) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(90deg, var(--ls-glass-line) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(135deg, rgba(110, 231, 255, 0.20) 0%, rgba(60, 120, 255, 0.08) 48%, rgba(167, 139, 250, 0.14) 100%);
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.10),
    0 0 22px rgba(110, 231, 255, 0.24),
    inset 0 0 calc(var(--ls-s) * 0.12) rgba(110, 231, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.25s, border-color 0.25s, background 0.25s, opacity 0.3s, filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.ls-layer.is-top .ls-plane {
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(220, 250, 255, 0.30), transparent 70%),
    linear-gradient(135deg, rgba(150, 236, 255, 0.40) 0%, rgba(90, 200, 255, 0.24) 45%, rgba(70, 140, 255, 0.22) 100%);
  border-color: rgba(200, 250, 255, 0.85);
}
.ls-layer.is-base .ls-plane {
  border-color: rgba(110, 231, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(18, 40, 70, 0.88), rgba(10, 20, 40, 0.92));
}
.ls-layer.is-lit .ls-plane {
  --ls-glass-line: rgba(160, 240, 255, 0.22);
  border-color: var(--ls-cyan-hi);
  filter: brightness(1.3);
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.35),
    0 0 34px rgba(110, 231, 255, 0.50),
    0 0 90px rgba(110, 231, 255, 0.18),
    inset 0 0 calc(var(--ls-s) * 0.16) rgba(110, 231, 255, 0.24);
}
.ls-layer.is-active .ls-plane {
  --ls-glass-line: rgba(255, 120, 225, 0.16);
  border-color: rgba(255, 140, 230, 0.95);
  background:
    linear-gradient(var(--ls-glass-line) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(90deg, var(--ls-glass-line) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(135deg, rgba(255, 79, 216, 0.46) 0%, rgba(255, 79, 216, 0.24) 50%, rgba(255, 130, 200, 0.36) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 79, 216, 0.35),
    0 0 34px rgba(255, 79, 216, 0.55),
    0 0 90px rgba(255, 79, 216, 0.22),
    inset 0 0 calc(var(--ls-s) * 0.16) rgba(255, 79, 216, 0.30);
}
.ls-layer.is-active.is-base .ls-plane {
  background:
    linear-gradient(135deg, rgba(80, 18, 70, 0.9), rgba(40, 10, 40, 0.92));
}
.ls-layer.is-active.is-lit .ls-plane { filter: brightness(1.15); }
.ls-plane:focus-visible {
  border-color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(110, 231, 255, 0.55),
    inset 0 0 calc(var(--ls-s) * 0.16) rgba(110, 231, 255, 0.24);
}
.ls-layer.is-active .ls-plane:focus-visible {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(255, 79, 216, 0.6),
    inset 0 0 calc(var(--ls-s) * 0.16) rgba(255, 79, 216, 0.3);
}

.ls-plane-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.ls-plane-frame {
  position: absolute;
  inset: 4%;
  --ls-tick: rgba(201, 247, 255, 0.55);
  background:
    linear-gradient(var(--ls-tick), var(--ls-tick)) 0 0 / 9% 1px no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 0 0 / 1px 9% no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 100% 0 / 9% 1px no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 100% 0 / 1px 9% no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 0 100% / 9% 1px no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 0 100% / 1px 9% no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 100% 100% / 9% 1px no-repeat,
    linear-gradient(var(--ls-tick), var(--ls-tick)) 100% 100% / 1px 9% no-repeat;
}
.ls-layer.is-active .ls-plane-frame { --ls-tick: rgba(255, 194, 241, 0.75); }

.ls-plane-tag,
.ls-plane-count {
  position: absolute;
  font-family: var(--ls-mono);
  font-size: max(7px, calc(var(--ls-s) * 0.034));
  letter-spacing: 0.14em;
  color: rgba(201, 247, 255, 0.78);
  white-space: nowrap;
}
.ls-plane-tag { left: 9%; top: 9%; }
.ls-plane-count { right: 9%; bottom: 9%; color: rgba(201, 247, 255, 0.55); }
.ls-layer.is-active .ls-plane-tag,
.ls-layer.is-active .ls-plane-count { color: var(--ls-mag-hi); }
.ls-layer.is-top .ls-plane-tag { color: rgba(225, 252, 255, 0.92); }

.ls-plane-title {
  position: absolute;
  left: 9%; top: 15%;
  font-size: calc(var(--ls-s) * 0.07);
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s 0.2s;
}
.ls-layer.is-opening .ls-plane-title { opacity: 1; }

.ls-etch {
  position: absolute;
  left: 8%; top: 29%;
  width: 84%; height: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-etch svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(110, 231, 255, 0.55));
}
.ls-layer.is-active .ls-etch svg { filter: drop-shadow(0 0 3px rgba(255, 79, 216, 0.7)); }
.ls-etch.is-empty {
  border: 1px dashed rgba(201, 247, 255, 0.35);
  border-radius: 4px;
}
.ls-etch .mini-empty {
  font-family: var(--ls-mono);
  font-size: max(8px, calc(var(--ls-s) * 0.036));
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(201, 247, 255, 0.6);
}

.ls-dot {
  position: absolute;
  width: max(4px, calc(var(--ls-s) * 0.022));
  height: max(4px, calc(var(--ls-s) * 0.022));
  margin: calc(max(4px, calc(var(--ls-s) * 0.022)) / -2) 0 0 calc(max(4px, calc(var(--ls-s) * 0.022)) / -2);
  border-radius: 50%;
  background: #e9fdff;
  box-shadow: 0 0 6px 2px rgba(110, 231, 255, 0.9), 0 0 16px 4px rgba(110, 231, 255, 0.35);
}
.ls-dot-src,
.ls-dot-dst {
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(167, 139, 250, 0.95), 0 0 16px 5px rgba(167, 139, 250, 0.4);
}
.ls-dot-dst {
  background: transparent;
  border: 1.5px solid #e4dcff;
}

/* ---------------------------------------------------- circuit-board base */
.ls-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.ls-circuit path {
  fill: none;
  stroke: rgba(110, 231, 255, 0.42);
  stroke-width: 0.8;
}
.ls-circuit circle { fill: rgba(150, 240, 255, 0.75); }
.ls-circuit .ls-chip {
  fill: rgba(110, 231, 255, 0.20);
  stroke: rgba(110, 231, 255, 0.75);
  stroke-width: 0.7;
}
.ls-circuit .ls-pin { fill: rgba(110, 231, 255, 0.6); }
.ls-layer.is-active .ls-circuit path { stroke: rgba(255, 120, 225, 0.45); }
.ls-layer.is-active .ls-circuit circle,
.ls-layer.is-active .ls-circuit .ls-pin { fill: rgba(255, 170, 235, 0.75); }
.ls-layer.is-active .ls-circuit .ls-chip { fill: rgba(255, 79, 216, 0.2); stroke: rgba(255, 120, 225, 0.8); }

/* --------------------------------------------------------- glass edges */
.ls-edge {
  position: absolute;
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.55), rgba(110, 231, 255, 0.22));
  transition: opacity 0.3s, background 0.25s;
}
.ls-edge-front {
  left: 0; top: 100%;
  width: 100%;
  height: var(--ls-thick);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
}
.ls-edge-side {
  right: 100%; top: 0;
  width: var(--ls-thick);
  height: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.30), rgba(110, 231, 255, 0.12));
}
.ls-layer.is-active .ls-edge { background: linear-gradient(90deg, rgba(255, 79, 216, 0.75), rgba(255, 79, 216, 0.35)); }
.ls-layer.is-base .ls-edge-front { background: linear-gradient(90deg, rgba(110, 231, 255, 0.45), rgba(30, 80, 120, 0.6)); }

/* ------------------------------------------------------ pillars & beams */
.ls-pillar,
.ls-beam {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform var(--ls-spread-ms) var(--ls-ease), opacity 0.3s;
}
.ls-pillar-core,
.ls-beam-core {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  transform-origin: 50% 100%;
  transition: height var(--ls-spread-ms) var(--ls-ease);
}
.ls-pillar-core {
  background: linear-gradient(to top, rgba(110, 231, 255, 0) 0%, #bdf5ff 10%, #6ee7ff 50%, #bdf5ff 90%, rgba(110, 231, 255, 0) 100%);
  box-shadow: 0 0 5px 1px rgba(110, 231, 255, 0.75), 0 0 16px 3px rgba(110, 231, 255, 0.28);
}
.ls-beam-core {
  left: -1.5px;
  width: 3px;
  background:
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.9) 18px, rgba(255, 255, 255, 0) 22px) 0 0 / 100% 44px,
    linear-gradient(to top, var(--ls-beam, #a78bfa), #e4dcff 50%, var(--ls-beam, #a78bfa));
  box-shadow: 0 0 6px 1px var(--ls-beam, #a78bfa), 0 0 18px 3px rgba(167, 139, 250, 0.35);
  opacity: 0.95;
  animation: ls-flow-up 1.4s linear infinite;
}
.ls-beam.is-down .ls-beam-core { animation-name: ls-flow-down; }
@keyframes ls-flow-up { from { background-position: 0 0, 0 0; } to { background-position: 0 -44px, 0 0; } }
@keyframes ls-flow-down { from { background-position: 0 0, 0 0; } to { background-position: 0 44px, 0 0; } }

.ls-holo {
  position: absolute;
  left: -32%; top: -32%;
  width: 164%; height: 164%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(110, 231, 255, 0.16) 0 14%, transparent 15% 38%,
      rgba(110, 231, 255, 0.55) 38.6%, transparent 39.6% 46%,
      rgba(110, 231, 255, 0.22) 46.4%, transparent 47.4% 60%,
      rgba(110, 231, 255, 0.10) 60.4%, transparent 61.4%),
    radial-gradient(circle, rgba(46, 140, 200, 0.22), transparent 62%);
  transition: transform var(--ls-spread-ms) var(--ls-ease), opacity 0.3s;
}

/* ------------------------------------------------------------- callouts */
.ls-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ls-callout {
  position: absolute;
  left: 0; top: 0;
  transition: transform var(--ls-spread-ms) var(--ls-ease), opacity 0.3s;
}
.ls-leader {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 247, 255, 0.85), rgba(110, 231, 255, 0.25));
  transition: width var(--ls-spread-ms) var(--ls-ease), background 0.25s;
}
.ls-leader::before {
  content: '';
  position: absolute;
  left: -3px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e9fdff;
  box-shadow: 0 0 8px 2px rgba(110, 231, 255, 0.85);
}
.ls-card {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 12px 8px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-left: 2px solid rgba(110, 231, 255, 0.55);
  border-radius: 6px;
  background: rgba(14, 17, 24, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, left var(--ls-spread-ms) var(--ls-ease);
}
.ls-card-kicker {
  font-family: var(--ls-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ls-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  min-width: 0;
}
.ls-card-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-card-meta {
  flex: 0 0 auto;
  font-family: var(--ls-mono);
  font-size: 10.5px;
  color: var(--ls-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-card-links { color: var(--ls-purple); }
.ls-callout.is-lit .ls-card {
  border-color: rgba(110, 231, 255, 0.45);
  border-left-color: var(--ls-cyan);
  background: rgba(20, 30, 44, 0.85);
  box-shadow: 0 0 24px rgba(110, 231, 255, 0.16);
}
.ls-callout.is-lit .ls-leader { background: linear-gradient(90deg, #fff, rgba(110, 231, 255, 0.6)); }
.ls-callout.is-active .ls-card {
  border-color: rgba(255, 79, 216, 0.45);
  border-left-color: var(--ls-mag);
  background: rgba(40, 12, 36, 0.78);
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.18);
}
.ls-callout.is-active .ls-card-kicker { color: var(--ls-mag); }
.ls-callout.is-active .ls-leader { background: linear-gradient(90deg, var(--ls-mag-hi), rgba(255, 79, 216, 0.35)); }
.ls-callout.is-active .ls-leader::before { background: #fff0fb; box-shadow: 0 0 8px 2px rgba(255, 79, 216, 0.9); }

/* -------------------------------------------------------------- opening */
.ls-layer.is-opening {
  transition: transform var(--ls-flatten) cubic-bezier(0.65, 0, 0.25, 1);
}
.ls-root.is-opening .ls-layer:not(.is-opening) .ls-plane,
.ls-root.is-opening .ls-layer:not(.is-opening) .ls-edge,
.ls-root.is-opening .ls-layer.is-opening .ls-edge,
.ls-root.is-opening .ls-pillar,
.ls-root.is-opening .ls-beam,
.ls-root.is-opening .ls-holo,
.ls-root.is-opening .ls-callout {
  opacity: 0;
}
.ls-root.is-opening .ls-edge { transition-duration: 90ms; }
.ls-root.is-opening .ls-layer.is-opening .ls-plane { filter: none; cursor: default; }
.ls-root.is-opening .ls-layer.is-opening .ls-plane-tag,
.ls-root.is-opening .ls-layer.is-opening .ls-plane-count {
  font-size: max(7px, calc(var(--ls-s) * 0.028));
}

/* ------------------------------------------------------------- assembly */
.ls-root.is-fly .ls-fly {
  animation: ls-fly-in var(--ls-fly) cubic-bezier(0.16, 0.84, 0.3, 1) both;
  animation-delay: calc(var(--ls-order) * var(--ls-stagger));
}
.ls-root.is-fly .ls-fly > * {
  animation: ls-fade-in calc(var(--ls-fly) * 0.7) ease-out both;
  animation-delay: calc(var(--ls-order) * var(--ls-stagger));
}
.ls-root.is-fly .ls-callout {
  animation: ls-fade-in 400ms ease-out both;
  animation-delay: calc(var(--ls-order) * var(--ls-stagger) + 300ms);
}
.ls-root.is-fly .ls-pillar,
.ls-root.is-fly .ls-beam,
.ls-root.is-fly .ls-holo {
  animation: ls-fade-in 500ms ease-out both;
  animation-delay: calc((var(--ls-n) - 1) * var(--ls-stagger) + 320ms);
}
@keyframes ls-fly-in {
  from { transform: translate3d(0, 0, calc(var(--ls-s) * -1.6)) rotateZ(-10deg); }
  to   { transform: translate3d(0, 0, 0) rotateZ(0deg); }
}
@keyframes ls-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ls-layer.is-ignite .ls-plane {
  animation: ls-ignite 1300ms ease-out;
}
.ls-layer.is-ignite .ls-plane-inner::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 20%; height: 20%;
  margin: -10% 0 0 -10%;
  border-radius: 50%;
  border: 2px solid rgba(255, 194, 241, 0.9);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.8);
  animation: ls-ring 1100ms ease-out both;
}
@keyframes ls-ignite {
  0%   { filter: brightness(1); }
  22%  { filter: brightness(1.9) saturate(1.3); box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.6), 0 0 60px rgba(255, 79, 216, 0.8), 0 0 140px rgba(255, 79, 216, 0.35), inset 0 0 calc(var(--ls-s) * 0.3) rgba(255, 79, 216, 0.5); border-color: #fff; }
  100% { filter: brightness(1); }
}
@keyframes ls-ring {
  from { transform: scale(0.2); opacity: 1; }
  to   { transform: scale(5.2); opacity: 0; }
}

/* --------------------------------------------------------------- compact */
.ls-root.ls-compact .ls-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 14px 4px;
}
.ls-root.ls-compact .ls-title { font-size: 19px; }
.ls-root.ls-compact .ls-head-meta { gap: 6px 12px; font-size: 10.5px; }
.ls-root.ls-compact .ls-card { padding: 6px 8px 7px; }
.ls-root.ls-compact .ls-card-row { display: block; }
.ls-root.ls-compact .ls-card-meta { margin-top: 2px; }
.ls-root.ls-compact .ls-card-kicker { font-size: 8.5px; letter-spacing: 0.1em; }
.ls-root.ls-compact .ls-card-label { font-size: 13px; }
.ls-root.ls-compact .ls-card-meta { font-size: 9px; }
.ls-root.ls-compact .ls-foot { gap: 6px 16px; letter-spacing: 0.08em; }
.ls-root.ls-compact .ls-leader::before { width: 5px; height: 5px; left: -2px; top: -2px; }
.ls-root.ls-compact .ls-foot { padding-bottom: 14px; }

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ls-root *,
  .ls-root *::before,
  .ls-root *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================================================================
   Conduit — holographic layer
   dz-   File dossier (fanned deck of file cards)
   fo-   File overlay ("SECTOR_xx File" banner view)
   arr-  Arrival sequence (intake confirmation)
   .holo-skin  Hologram skin for the node canvas. Colors, borders, shadows,
               backgrounds and filters only: port positions are measured from
               DOM layout, so nothing here may change node sizes or paddings.
   ============================================================================= */

.holo-skin, .dz-root, .fo-root, .arr-root, .cb-root, .hs-root, .ss-root, .canvas-root {
  --holo-cyan:      #6ee7ff;
  --holo-cyan-hi:   #b8f6ff;
  --holo-cyan-line: rgba(110, 231, 255, 0.32);
  --holo-cyan-faint:rgba(110, 231, 255, 0.08);
  --holo-magenta:   #ff4fd8;
  --holo-green:     #10b981;
  --holo-amber:     #f59e0b;
  --holo-red:       #ef4444;
  --holo-purple:    #a78bfa;
  --holo-ink:       #e6e9f0;
  --holo-dim:       #7d8597;
  --holo-navy:      #040a14;
  --holo-glass:     rgba(8, 18, 32, 0.88);
  --holo-mono:      'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --holo-sans:      'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* -----------------------------------------------------------------------------
   Status stamp (shared by dossier cards and the file overlay)
   ----------------------------------------------------------------------------- */
.dz-stamp {
  --stamp: var(--holo-cyan);
  display: inline-block;
  font-family: var(--holo-mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stamp);
  padding: 3px 7px 3px 9px;
  border: 1.5px solid var(--stamp);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 0 0 3px color-mix(in srgb, var(--stamp) 35%, transparent),
              0 0 10px color-mix(in srgb, var(--stamp) 30%, transparent);
  background: color-mix(in srgb, var(--stamp) 9%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--stamp) 55%, transparent);
  white-space: nowrap;
}
.dz-stamp-confirmed { --stamp: var(--holo-green); }
.dz-stamp-pending   { --stamp: var(--holo-amber); }
.dz-stamp-failed    { --stamp: var(--holo-red); }
.dz-stamp-info      { --stamp: #b8c7dd; }

/* =============================================================================
   Dossier
   ============================================================================= */
.dz-root {
  --dz-card-h: 180px;
  --dz-dx: 9px;
  --dz-dy: 30px;
  --dz-rot: -0.7deg;
  --dz-shrink: 0.028;
  width: 100%;
  max-width: 360px;
  font-family: var(--holo-sans);
  color: var(--holo-ink);
}

.dz-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  column-gap: 10px; row-gap: 2px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--holo-cyan-line);
  margin-bottom: 16px;
  position: relative;
}
.dz-head::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px;
  background: var(--holo-cyan); box-shadow: 0 0 8px var(--holo-cyan);
}
.dz-head-kicker {
  grid-column: 1 / -1;
  font-family: var(--holo-mono); font-size: 9.5px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--holo-cyan);
}
.dz-head-title {
  margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dz-head-count {
  font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--holo-dim);
}

.dz-empty {
  height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed rgba(110, 231, 255, 0.22);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(110, 231, 255, 0.035) 0 6px, transparent 6px 12px);
  color: var(--holo-dim);
}
.dz-empty-code { font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(110, 231, 255, 0.45); }
.dz-empty-text { font-size: 12px; }

.dz-deck {
  position: relative;
  height: calc(var(--dz-card-h) + (var(--n) - 1) * var(--dz-dy));
  transition: height 260ms cubic-bezier(.2, .8, .2, 1);
}
.dz-deck:hover, .dz-deck:focus-within {
  --dz-dx: 13px;
  --dz-dy: 54px;
  --dz-rot: -1.4deg;
}

.dz-card {
  --dz-kind: var(--holo-cyan);
  --lift: 0px;
  --glow: 0;
  position: absolute; left: 0; bottom: 0;
  width: calc(100% - (var(--n) - 1) * 9px);
  height: var(--dz-card-h);
  margin: 0; padding: 10px 12px 12px;
  display: flex; flex-direction: column; align-items: stretch;
  text-align: left; color: inherit; font: inherit;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dz-kind) 10%, transparent) 0, transparent 46px),
    repeating-linear-gradient(0deg, rgba(110, 231, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(16, 32, 50, 0.97), rgba(7, 14, 25, 0.97));
  border: 1px solid color-mix(in srgb, var(--dz-kind) 40%, transparent);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 22px color-mix(in srgb, var(--dz-kind) 7%, transparent),
    0 -6px 18px rgba(0, 0, 0, 0.45),
    0 0 calc(var(--glow) * 22px) color-mix(in srgb, var(--dz-kind) 35%, transparent);
  transform-origin: 0 0;
  transform:
    translate(calc(var(--i) * var(--dz-dx)), calc(var(--i) * var(--dz-dy) * -1 + var(--lift)))
    rotate(calc(var(--i) * var(--dz-rot)))
    scale(calc(1 - var(--i) * var(--dz-shrink)));
  filter: brightness(calc(1 - var(--i) * 0.09 + var(--glow) * 0.18));
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), filter 160ms, box-shadow 160ms, border-color 160ms;
  cursor: pointer;
  overflow: hidden;
}
.dz-card:hover, .dz-card:focus-visible {
  --lift: -10px;
  --glow: 1;
  border-color: var(--dz-kind);
}
.dz-card:focus-visible {
  outline: 2px solid var(--holo-cyan-hi);
  outline-offset: 2px;
}
.dz-kind-airtable  { --dz-kind: #6ee7ff; }
.dz-kind-flashback { --dz-kind: #a78bfa; }
.dz-kind-idea      { --dz-kind: #f0abfc; }
.dz-kind-asset     { --dz-kind: #5eead4; }

.dz-card-top {
  display: flex; align-items: center; gap: 8px;
  height: 18px; flex: 0 0 18px;
}
.dz-card-tab {
  font-family: var(--holo-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #041019;
  background: var(--dz-kind);
  padding: 2px 7px; border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--dz-kind) 45%, transparent);
  white-space: nowrap;
}
.dz-card-hatch {
  flex: 1; height: 8px; min-width: 12px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--dz-kind) 40%, transparent) 0 2px, transparent 2px 6px);
  opacity: 0.7;
}
.dz-card-serial {
  font-family: var(--holo-mono); font-size: 9px; letter-spacing: 0.06em;
  color: var(--holo-dim);
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dz-card-kind {
  margin-top: 10px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--holo-ink);
  text-shadow: 0 0 12px color-mix(in srgb, var(--dz-kind) 45%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.dz-card-title {
  margin-top: 4px;
  font-size: 12.5px; font-weight: 500; color: var(--holo-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dz-card-sub {
  margin-top: 1px;
  font-size: 11px; color: var(--holo-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dz-card-fields {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 3px;
  padding-top: 8px;
  padding-right: 96px;
  border-top: 1px solid rgba(110, 231, 255, 0.1);
  min-width: 0;
}
.dz-field { display: flex; gap: 8px; min-width: 0; font-family: var(--holo-mono); font-size: 10px; line-height: 1.4; }
.dz-field-label {
  flex: 0 0 50px; color: var(--holo-dim);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px; line-height: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dz-field-value { flex: 1; min-width: 0; color: #cfe9f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-card-stamp {
  position: absolute; right: 12px; bottom: 14px;
  transform: rotate(-7deg);
  transform-origin: 100% 100%;
}

@media (max-width: 480px) {
  .dz-root { max-width: none; }
  .dz-root, .dz-deck:hover, .dz-deck:focus-within { --dz-dx: 0px; --dz-rot: 0deg; }
  .dz-root { --dz-dy: 28px; --dz-shrink: 0.03; }
  .dz-deck:hover, .dz-deck:focus-within { --dz-dy: 46px; }
  .dz-card { width: 100%; transform-origin: 50% 0; }
}

/* =============================================================================
   File overlay
   ============================================================================= */
.fo-root {
  position: fixed; inset: 0; z-index: 1000;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 5vh 24px 6vh;
  font-family: var(--holo-sans); color: var(--holo-ink);
  background-color: rgba(2, 5, 10, 0.8);
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fo-fade 180ms ease-out both;
}
.fo-panel {
  position: relative;
  width: min(1080px, 100%);
  margin: auto 0;
  background-color: #04101f;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(110, 231, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 70% 0%, rgba(40, 110, 190, 0.28), transparent 60%);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
  border: 1px solid var(--holo-cyan-line);
  box-shadow:
    inset 0 0 60px rgba(110, 231, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(110, 231, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.7);
  padding: 30px 0 30px;
  overflow: hidden;
  animation: fo-rise 280ms cubic-bezier(.2, .8, .2, 1) both;
}
.fo-panel::before, .fo-panel::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--holo-cyan); border-style: solid;
}
.fo-panel::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.fo-panel::after  { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }

.fo-marks {
  position: absolute; right: 36px; top: 210px;
  width: 240px; height: 240px;
  fill: none; stroke: var(--holo-cyan); stroke-width: 1;
  opacity: 0.22; pointer-events: none;
}

.fo-redact {
  height: 20px; margin: 0 auto;
  width: min(560px, 70%);
  background:
    repeating-linear-gradient(90deg,
      rgba(190, 210, 240, 0.5) 0 18px, rgba(120, 150, 200, 0.18) 18px 26px,
      rgba(210, 225, 250, 0.38) 26px 52px, rgba(90, 120, 170, 0.2) 52px 60px);
  filter: blur(3.5px);
  opacity: 0.75;
}
.fo-redact-top    { margin-bottom: 12px; transform: translateX(-6%); }
.fo-redact-bottom { margin-top: 12px; width: min(620px, 76%); transform: translateX(4%); }

.fo-banner {
  position: relative;
  margin: 0 auto;
  width: min(760px, calc(100% - 64px));
  padding: 18px 30px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 38%),
    linear-gradient(90deg, #11345f 0%, #1c5aa0 46%, #144a87 70%, #0e2f58 100%);
  border-top: 1px solid rgba(190, 225, 255, 0.75);
  border-bottom: 1px solid rgba(100, 160, 230, 0.6);
  box-shadow: 0 0 0 1px rgba(10, 30, 60, 0.9), 0 0 40px rgba(60, 140, 230, 0.35), inset 0 -12px 30px rgba(0, 10, 30, 0.35);
  animation: fo-wipe 460ms cubic-bezier(.2, .8, .2, 1) 80ms both;
}
.fo-banner-kicker {
  display: block;
  font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(214, 236, 255, 0.72);
  margin-bottom: 6px;
}
.fo-banner-title { margin: 0; font-weight: 500; line-height: 1; color: #f4f9ff; text-shadow: 0 0 18px rgba(170, 215, 255, 0.45); }
.fo-banner-code {
  display: block;
  font-size: clamp(38px, 6.4vw, 72px);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.fo-banner-file {
  display: block;
  margin-top: 6px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 400;
  color: rgba(234, 244, 255, 0.92);
}

.fo-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 9px;
  background: rgba(4, 14, 28, 0.85);
  border: 1px solid var(--holo-cyan-line);
  border-radius: 3px;
  color: var(--holo-cyan);
}
.fo-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.fo-close-key { font-family: var(--holo-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--holo-dim); }
.fo-close:hover { border-color: var(--holo-cyan); box-shadow: 0 0 14px rgba(110, 231, 255, 0.3); }
.fo-close:focus-visible { outline: 2px solid var(--holo-cyan-hi); outline-offset: 2px; }

.fo-body {
  position: relative;
  padding: 30px 40px 4px;
  max-width: 900px;
}
.fo-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fo-kind {
  font-family: var(--holo-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--holo-cyan);
}
.fo-stamp { font-size: 11px; transform: rotate(-4deg); }
.fo-title { margin: 14px 0 0; font-size: 24px; font-weight: 600; letter-spacing: 0.005em; line-height: 1.25; }
.fo-sub { margin: 6px 0 0; color: var(--holo-dim); font-size: 13px; }

.fo-transcript {
  margin-top: 22px;
  padding: 16px 18px 18px;
  background: rgba(4, 16, 31, 0.86);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-left: 2px solid #f0abfc;
  box-shadow: inset 0 0 30px rgba(240, 171, 252, 0.05);
}
.fo-transcript-label {
  display: block;
  font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #f0abfc; margin-bottom: 10px;
}
.fo-transcript-text {
  margin: 0;
  font-size: 14.5px; line-height: 1.65; color: #e9f3f8;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.fo-grid {
  margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(110, 231, 255, 0.22);
  border-left: 1px solid rgba(110, 231, 255, 0.22);
}
.fo-field {
  margin: 0; padding: 11px 14px 12px; min-width: 0;
  background: rgba(4, 14, 28, 0.94);
  border-right: 1px solid rgba(110, 231, 255, 0.22);
  border-bottom: 1px solid rgba(110, 231, 255, 0.22);
}
.fo-field-wide { grid-column: 1 / -1; }
.fo-field-label {
  font-family: var(--holo-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--holo-dim); margin-bottom: 5px;
}
.fo-field-value {
  margin: 0;
  font-family: var(--holo-mono); font-size: 12.5px; color: #dff5fb; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.fo-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 10px 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #041019; background: var(--holo-cyan);
  border-radius: 3px; text-decoration: none;
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.35);
}
.fo-link:hover { background: var(--holo-cyan-hi); }
.fo-link:focus-visible { outline: 2px solid var(--holo-cyan-hi); outline-offset: 3px; }

@media (max-width: 640px) {
  .fo-root { padding: 0; align-items: stretch; }
  .fo-panel { width: 100%; min-height: 100%; border-left: 0; border-right: 0; padding-top: 58px; }
  .fo-banner { width: calc(100% - 24px); padding: 14px 18px 16px; }
  .fo-body { padding: 24px 18px 8px; }
  .fo-grid { grid-template-columns: 1fr; }
  .fo-marks { width: 150px; height: 150px; right: -30px; top: 230px; opacity: 0.16; }
  .fo-title { font-size: 20px; }
}

@keyframes fo-fade { from { opacity: 0; } }
@keyframes fo-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@keyframes fo-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* =============================================================================
   Arrival sequence
   ============================================================================= */
.arr-root {
  position: fixed; inset: 0; z-index: 1100;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  font-family: var(--holo-sans); color: var(--holo-ink);
  background:
    radial-gradient(ellipse 55% 40% at 50% 70%, rgba(48, 170, 220, 0.26), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(16, 40, 70, 0.55), transparent 75%),
    #02060c;
  outline: none;
  animation: fo-fade 260ms ease-out both;
}

.arr-floor {
  position: absolute; left: -50%; right: -50%; bottom: -6%; height: 62%;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  transform: perspective(520px) rotateX(68deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.arr-stage {
  position: absolute; left: 50%; top: 74%;
  width: min(620px, 130vw); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  perspective: 900px;
  pointer-events: none;
}
.arr-table {
  position: absolute; inset: 0;
  transform: rotateX(70deg);
}
.arr-ring { position: absolute; border-radius: 50%; }
.arr-ring-halo {
  inset: 2%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.34) 0, rgba(110, 231, 255, 0.12) 38%, transparent 66%);
}
.arr-ring-outer {
  inset: 10%;
  border: 1px solid rgba(110, 231, 255, 0.4);
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.18);
}
.arr-ring-core {
  inset: 27%;
  border: 9px solid #a6f4ff;
  box-shadow:
    0 0 24px 4px rgba(110, 231, 255, 0.85),
    0 0 70px 12px rgba(110, 231, 255, 0.35),
    inset 0 0 24px 4px rgba(110, 231, 255, 0.75);
  animation: arr-core-in 700ms cubic-bezier(.2, .8, .2, 1) 120ms both, arr-breathe 3.2s ease-in-out 1.2s infinite;
}
.arr-ring-inner {
  inset: 37%;
  border: 2px solid rgba(190, 248, 255, 0.75);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.55), inset 0 0 18px rgba(110, 231, 255, 0.35);
  animation: arr-core-in 700ms cubic-bezier(.2, .8, .2, 1) 240ms both;
}
.arr-pulse {
  position: absolute; inset: 27%;
  border-radius: 50%;
  border: 2px solid var(--holo-cyan);
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.6);
  opacity: 0;
  animation: arr-pulse 1.5s cubic-bezier(.15, .6, .3, 1) var(--d) 2 both;
}
.arr-beam {
  position: absolute; left: 50%; bottom: 50%;
  width: 70%; height: 100%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse 34% 100% at 50% 100%, rgba(150, 240, 255, 0.24), rgba(110, 231, 255, 0.06) 55%, transparent 80%),
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(110, 231, 255, 0.12), transparent 75%);
  animation: arr-beam-in 900ms ease-out 450ms both;
}
.arr-ring-ticks {
  inset: 14%;
  background: repeating-conic-gradient(rgba(110, 231, 255, 0.6) 0 0.7deg, transparent 0.7deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 63%, #000 64%, #000 69%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 63%, #000 64%, #000 69%, transparent 70%);
  animation: arr-core-in 700ms cubic-bezier(.2, .8, .2, 1) 320ms both, arr-spin 40s linear 1s infinite;
}

.arr-card-wrap {
  position: relative; z-index: 2;
  width: min(440px, 100%);
  margin-top: -9vh;
  perspective: 1100px;
}
.arr-card {
  position: relative;
  padding: 16px 22px 20px;
  background:
    repeating-linear-gradient(0deg, rgba(110, 231, 255, 0.03) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(16, 40, 60, 0.94), rgba(5, 14, 26, 0.95));
  border: 1px solid rgba(110, 231, 255, 0.5);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 40px rgba(110, 231, 255, 0.07),
    0 0 46px rgba(110, 231, 255, 0.2),
    0 30px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: arr-fly 950ms cubic-bezier(.16, .84, .24, 1) 700ms both;
}
.arr-card::before, .arr-card::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--holo-cyan); border-style: solid;
}
.arr-card::before { left: 5px; top: 5px; border-width: 2px 0 0 2px; }
.arr-card::after  { right: 5px; bottom: 5px; border-width: 0 2px 2px 0; }

.arr-card-head { display: flex; align-items: center; gap: 10px; }
.arr-card-tab {
  font-family: var(--holo-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  color: #041019; background: var(--holo-cyan); padding: 3px 8px; border-radius: 2px;
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.5);
}
.arr-card-hatch {
  flex: 1; height: 8px; min-width: 16px;
  background: repeating-linear-gradient(135deg, rgba(110, 231, 255, 0.4) 0 2px, transparent 2px 6px);
}
.arr-card-serial {
  font-family: var(--holo-mono); font-size: 10px; color: var(--holo-dim);
  max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.arr-line-created {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-family: var(--holo-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: arr-slide 420ms ease-out 1.55s both;
}
.arr-tick {
  width: 14px; height: 14px; flex: 0 0 14px;
  border: 1.5px solid currentColor; border-radius: 2px;
  position: relative;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.arr-tick::after {
  content: ''; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.arr-name {
  margin: 10px 0 0;
  font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 22px rgba(110, 231, 255, 0.25);
  animation: arr-up 380ms ease-out 1.7s both;
}
.arr-tags {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
  animation: arr-up 380ms ease-out 1.85s both;
}
.arr-vis {
  font-family: var(--holo-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; border: 1px solid;
}
.arr-vis-private {
  color: #ff8fe6; border-color: rgba(255, 79, 216, 0.6); background: rgba(255, 79, 216, 0.12);
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.25);
}
.arr-vis-shared {
  color: var(--holo-cyan); border-color: rgba(110, 231, 255, 0.6); background: rgba(110, 231, 255, 0.1);
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.22);
}
.arr-req { font-family: var(--holo-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--holo-dim); }
.arr-mono {
  margin-top: 10px;
  font-family: var(--holo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(184, 246, 255, 0.62);
  overflow-wrap: anywhere;
  animation: arr-up 380ms ease-out 1.95s both;
}

.arr-air {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(110, 231, 255, 0.14);
}
.arr-air-stamp {
  --stamp: var(--holo-green);
  font-family: var(--holo-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stamp);
  padding: 6px 11px 6px 13px;
  border: 2px solid var(--stamp);
  border-radius: 2px;
  background: color-mix(in srgb, var(--stamp) 10%, transparent);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4), inset 0 0 0 3px color-mix(in srgb, var(--stamp) 35%, transparent),
              0 0 18px color-mix(in srgb, var(--stamp) 35%, transparent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--stamp) 60%, transparent);
  transform: rotate(-3deg);
  white-space: nowrap;
  animation: arr-stamp 340ms cubic-bezier(.3, 1.4, .5, 1) 2.2s both;
}
.arr-air-pending { --stamp: var(--holo-amber); }
.arr-air-failed  { --stamp: var(--holo-red); }
.arr-air-note {
  flex: 1; min-width: 160px;
  font-size: 12px; color: var(--holo-dim); line-height: 1.45;
  animation: arr-up 380ms ease-out 2.4s both;
}

.arr-actions {
  display: flex; justify-content: flex-end;
  min-height: 42px; margin-top: 18px;
}
.arr-enter {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: none; border-radius: 3px;
  background: var(--holo-cyan); color: #041019;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 0 22px rgba(110, 231, 255, 0.45);
  animation: arr-up 300ms ease-out both;
}
.arr-enter:hover { background: var(--holo-cyan-hi); }
.arr-enter:focus-visible { outline: 2px solid var(--holo-cyan-hi); outline-offset: 3px; }

.arr-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(110, 231, 255, 0.16) 80%, rgba(184, 246, 255, 0.4));
  pointer-events: none;
  opacity: 0;
  animation: arr-scan 700ms ease-in-out 1.55s both;
}

.arr-skip {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  height: 32px; padding: 0 12px;
  background: rgba(4, 14, 28, 0.7);
  border: 1px solid rgba(110, 231, 255, 0.25); border-radius: 3px;
  color: var(--holo-dim);
  font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.arr-skip:hover { color: var(--holo-ink); border-color: var(--holo-cyan); }
.arr-skip:focus-visible { outline: 2px solid var(--holo-cyan-hi); outline-offset: 2px; }

.arr-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 520px) {
  .arr-root {
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .arr-skip {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
  .arr-card-wrap { margin-top: -8vh; width: min(440px, 100%); }
  .arr-card { padding: 14px 16px 16px; }
  .arr-name { font-size: 22px; }
  .arr-stage { top: 80%; width: min(92vw, 420px); }
  .arr-air-stamp { font-size: 12px; }
  .arr-enter { width: 100%; min-height: 44px; justify-content: center; }
}

@keyframes arr-pulse {
  0%   { opacity: 0.95; transform: scale(0.75); }
  100% { opacity: 0;    transform: scale(2.55); }
}
@keyframes arr-core-in {
  from { opacity: 0; transform: scale(0.35); }
}
@keyframes arr-breathe {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}
@keyframes arr-beam-in { from { opacity: 0; transform: translateX(-50%) scaleY(0.2); } }
@keyframes arr-spin { to { transform: rotate(360deg); } }
@keyframes arr-fly {
  0%   { opacity: 0; transform: translate3d(0, 34vh, -520px) rotateX(62deg) scale(0.45); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes arr-slide { from { opacity: 0; transform: translateX(-14px); letter-spacing: 0.5em; } }
@keyframes arr-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes arr-stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  to   { opacity: 1; transform: rotate(-3deg) scale(1); }
}
@keyframes arr-scan {
  0%   { opacity: 0; transform: translateY(-100%); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(260%); }
}

.arr-reduced .arr-pulse { display: none; }
.arr-reduced, .arr-reduced * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .arr-pulse, .arr-scan { display: none; }
  .arr-root, .arr-root *,
  .fo-root, .fo-root *,
  .dz-root * { animation: none !important; transition: none !important; }
}

/* =============================================================================
   Hologram skin for the node canvas
   ============================================================================= */
.holo-skin .canvas-root { background: var(--holo-navy); }

.holo-skin .canvas-bg {
  background-color: var(--holo-navy);
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.055) 1px, transparent 1px);
}
.holo-skin .canvas-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(40, 120, 190, 0.14), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}
.no-grid .holo-skin .canvas-bg,
.no-grid.holo-skin .canvas-bg,
.holo-skin .no-grid .canvas-bg { background-image: none; }

/* Major grid every 5 cells. Lives inside the transformed content layer so it
   pans and zooms with the graph; aligned to the 24px fine grid at origin. */
.holo-skin .canvas-content::before {
  content: '';
  position: absolute; left: -24000px; top: -24000px;
  width: 48000px; height: 48000px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
}
.no-grid .holo-skin .canvas-content::before,
.no-grid.holo-skin .canvas-content::before,
.holo-skin .no-grid .canvas-content::before { display: none; }

/* Wires */
.holo-skin .conn-layer path:not([stroke="transparent"]) {
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(184, 246, 255, 0.85)) drop-shadow(0 0 5px rgba(110, 231, 255, 0.45));
}
.holo-skin .conn-layer path.conn-live {
  filter: drop-shadow(0 0 4px rgba(255, 79, 216, 0.7));
}
.holo-skin .conn-layer circle { fill: #06101e; }

/* Node cards: glass */
.holo-skin .node-card {
  background:
    linear-gradient(180deg, rgba(110, 231, 255, 0.07) 0%, rgba(110, 231, 255, 0.015) 38%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(110, 231, 255, 0.022) 0 1px, transparent 1px 3px),
    rgba(7, 17, 31, 0.8);
  border-color: rgba(110, 231, 255, 0.3) !important;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(184, 246, 255, 0.12),
    inset 0 0 24px rgba(110, 231, 255, 0.06),
    0 0 16px rgba(110, 231, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.holo-skin .node-card:hover {
  border-color: rgba(110, 231, 255, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(184, 246, 255, 0.16),
    inset 0 0 26px rgba(110, 231, 255, 0.09),
    0 0 22px rgba(110, 231, 255, 0.16),
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
}
.holo-skin .node-card.selected {
  background:
    linear-gradient(180deg, rgba(255, 79, 216, 0.09) 0%, rgba(255, 79, 216, 0.02) 40%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(110, 231, 255, 0.022) 0 1px, transparent 1px 3px),
    rgba(12, 14, 32, 0.84);
  border-color: rgba(255, 79, 216, 0.85) !important;
  box-shadow:
    0 0 0 1px rgba(255, 79, 216, 0.4),
    inset 0 0 26px rgba(255, 79, 216, 0.1),
    0 0 26px rgba(255, 79, 216, 0.38),
    0 12px 36px rgba(0, 0, 0, 0.55) !important;
}

.holo-skin .node-header {
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.09), rgba(110, 231, 255, 0.02) 70%) !important;
  border-bottom: 1px solid rgba(110, 231, 255, 0.16) !important;
}
.holo-skin .node-card.selected .node-header {
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.12), rgba(255, 79, 216, 0.02) 70%) !important;
  border-bottom-color: rgba(255, 79, 216, 0.28) !important;
}
/* Category color as a thin glowing bar along the top edge (the tag's inline
   color is the category color, so currentColor carries it). */
.holo-skin .node-cat-tag::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  opacity: 0.9;
  pointer-events: none;
}
.holo-skin .node-cat-tag {
  background: rgba(4, 12, 24, 0.6);
  border-radius: 2px;
  text-shadow: 0 0 6px currentColor;
}
.holo-skin .node-title {
  font-family: var(--holo-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9f8ff;
  text-shadow: 0 0 10px rgba(110, 231, 255, 0.35);
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.holo-skin .node-collapse-btn { color: rgba(110, 231, 255, 0.55); }
.holo-skin .node-collapse-btn:hover { color: var(--holo-cyan); background: rgba(110, 231, 255, 0.08); }

.holo-skin .node-summary {
  background: rgba(110, 231, 255, 0.045);
  border-left-color: var(--holo-cyan);
  color: #9fc6d4;
}

.holo-skin .port-dot {
  filter: drop-shadow(0 0 2.5px rgba(110, 231, 255, 0.7));
}
.holo-skin .port-row:hover .port-dot {
  filter: drop-shadow(0 0 4px rgba(184, 246, 255, 0.95)) brightness(1.2);
}
.holo-skin .port-label { color: #8fb2c2; }
.holo-skin .port-row:hover .port-label { color: #e9f8ff; }
.holo-skin .port-type-tag { opacity: 0.7; }
.holo-skin .dot-mini { filter: drop-shadow(0 0 2px rgba(110, 231, 255, 0.6)); }

.holo-skin .node-status-ok   { box-shadow: 0 0 10px rgba(16, 185, 129, 0.9); }
.holo-skin .node-status-err  { box-shadow: 0 0 10px rgba(239, 68, 68, 0.9); }
.holo-skin .node-status-spin { box-shadow: 0 0 10px rgba(245, 158, 11, 0.9); }

/* Planner annotations: keep their tints, add a holographic edge. */
.holo-skin .planner-node:not(.planner-milestone):not(.planner-section-group) {
  box-shadow: 0 0 0 1px rgba(110, 231, 255, 0.35), 0 0 22px rgba(110, 231, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.5) !important;
}
.holo-skin .planner-node.selected:not(.planner-milestone):not(.planner-section-group) {
  box-shadow: 0 0 0 2px var(--holo-magenta), 0 0 26px rgba(255, 79, 216, 0.45), 0 14px 32px rgba(0, 0, 0, 0.55) !important;
}
.holo-skin .planner-section-group { background: rgba(110, 231, 255, 0.025) !important; }
.holo-skin .milestone-diamond { filter: drop-shadow(0 0 14px rgba(110, 231, 255, 0.35)); }
.holo-skin .milestone-foot .milestone-date { color: #8fb2c2; }

.holo-skin .marquee {
  background: rgba(255, 79, 216, 0.06);
  border-color: rgba(255, 79, 216, 0.6);
  box-shadow: 0 0 14px rgba(255, 79, 216, 0.25);
}

/* Minimap + zoom: matching glass */
.holo-skin .minimap {
  background: transparent;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(110, 231, 255, 0.3), 0 0 18px rgba(110, 231, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.holo-skin .minimap > rect:first-child {
  fill: rgba(4, 12, 24, 0.82);
  stroke: rgba(110, 231, 255, 0.12);
}
.holo-skin .minimap > rect[fill="none"] {
  stroke: var(--holo-cyan);
  filter: drop-shadow(0 0 3px rgba(110, 231, 255, 0.8));
}
.holo-skin .zoom-controls {
  background: rgba(4, 12, 24, 0.82);
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.holo-skin .zoom-controls button { color: rgba(110, 231, 255, 0.7); }
.holo-skin .zoom-controls button:hover { color: var(--holo-cyan); background: rgba(110, 231, 255, 0.08); }
.holo-skin .zoom-value { color: #8fb2c2; letter-spacing: 0.08em; }

/* =============================================================================
   Crumb bar — ALL PROJECTS / project / layer, layer tabs, status chips
   (app/screens.jsx). Shown on every screen; under the toolbar on the canvas.
   ============================================================================= */
.cb-root {
  position: relative; z-index: 25;
  flex: 0 0 auto; min-height: 46px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  font-family: var(--holo-mono); color: var(--holo-ink);
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.97), rgba(4, 10, 18, 0.97));
  border-bottom: 1px solid var(--holo-cyan-line);
  box-shadow: 0 1px 0 rgba(110, 231, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.cb-on-canvas { min-height: 38px; }
.cb-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cb-brand-name { font-weight: 700; font-size: 11px; letter-spacing: 0.24em; }

.cb-trail {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; min-width: 0; flex: 0 1 auto;
}
.cb-trail li { display: flex; align-items: center; min-width: 0; }
.cb-trail li + li::before {
  content: '/'; margin: 0 6px; font-size: 12px; color: rgba(110, 231, 255, 0.35);
}
.cb-crumb {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0; max-width: 280px; min-height: 30px; padding: 4px 8px;
  border: 1px solid transparent; border-radius: 3px;
  background: transparent; color: var(--holo-dim);
  font: inherit; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: color 120ms, background 120ms, border-color 120ms;
}
.cb-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-crumb svg { flex: 0 0 auto; }
button.cb-crumb:hover {
  color: var(--holo-cyan-hi); border-color: var(--holo-cyan-line); background: var(--holo-cyan-faint);
}
.cb-current { color: var(--holo-cyan); text-shadow: 0 0 8px rgba(110, 231, 255, 0.45); }
span.cb-crumb { cursor: default; }

.cb-tabs {
  display: flex; align-items: center; gap: 4px;
  min-width: 0; flex: 1 1 auto; padding: 6px 0;
  overflow-x: auto; scrollbar-width: none;
}
.cb-tabs::-webkit-scrollbar { display: none; }
.cb-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 4px 10px;
  border: 1px solid rgba(110, 231, 255, 0.14); border-radius: 2px;
  background: rgba(110, 231, 255, 0.03); color: #9fb6c6;
  font: inherit; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: color 120ms, background 120ms, border-color 120ms, box-shadow 120ms;
}
.cb-tab:hover { color: var(--holo-cyan-hi); border-color: var(--holo-cyan-line); background: var(--holo-cyan-faint); }
.cb-tab-n { font-size: 9.5px; letter-spacing: 0.04em; color: rgba(110, 231, 255, 0.55); }
.cb-tab-on {
  color: #02060c; background: var(--holo-cyan); border-color: var(--holo-cyan);
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.45);
}
.cb-tab-on:hover { color: #02060c; background: var(--holo-cyan-hi); }
.cb-tab-on .cb-tab-n { color: rgba(2, 6, 12, 0.65); }
.cb-ghost { margin-left: 6px; border-style: dashed; }
.cb-ghost.cb-tab-on {
  color: #1a0614; background: var(--holo-magenta); border-color: var(--holo-magenta);
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.45);
}

.cb-chips { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.cb-chip {
  --tone: #8fb2c2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); border-radius: 2px;
  background: color-mix(in srgb, var(--tone) 8%, transparent); color: var(--tone);
  font: inherit; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.cb-chip-btn { cursor: pointer; }
.cb-chip-btn:hover { background: color-mix(in srgb, var(--tone) 18%, transparent); }
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 6px var(--tone); }
.cb-tone-confirmed { --tone: var(--holo-green); }
.cb-tone-pending   { --tone: var(--holo-amber); }
.cb-tone-failed    { --tone: var(--holo-red); }
.cb-tone-idle      { --tone: #8fb2c2; }
.cb-vis-private    { --tone: var(--holo-purple); }
.cb-vis-shared     { --tone: var(--holo-cyan); }

.cb-crumb:focus-visible, .cb-tab:focus-visible, .cb-chip-btn:focus-visible {
  outline: 2px solid var(--holo-cyan); outline-offset: 1px;
}

/* =============================================================================
   Hub screen — tile wall host + share-link banners
   ============================================================================= */
.hs-root { position: relative; flex: 1 1 auto; min-height: 0; }
.hs-banner {
  position: absolute; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(640px, calc(100% - 24px));
  padding: 10px 14px; border: 1px solid; border-radius: 3px;
  font-family: var(--holo-mono); font-size: 11px; line-height: 1.45; letter-spacing: 0.03em;
  background: rgba(4, 10, 20, 0.95); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.hs-banner-info  { border-color: var(--holo-cyan-line); color: var(--holo-cyan-hi); }
.hs-banner-error { border-color: rgba(239, 68, 68, 0.6); color: #fecaca; }
.hs-banner strong {
  color: var(--holo-red); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
}
.hs-banner button {
  margin-left: 6px; min-height: 28px; padding: 4px 10px;
  border: 1px solid rgba(254, 202, 202, 0.35); border-radius: 2px;
  background: transparent; color: inherit; font: inherit; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.hs-banner button:hover { background: rgba(239, 68, 68, 0.14); }
.hs-spin {
  width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%;
  border: 1.5px solid rgba(110, 231, 255, 0.25); border-top-color: var(--holo-cyan);
  animation: hs-spin 0.9s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* =============================================================================
   Stack screen — layer stack beside the file dossier
   ============================================================================= */
.ss-root {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  background: #07080c;
}
.ss-stage { position: relative; min-width: 0; min-height: 0; }
.ss-side {
  min-height: 0; overflow-y: auto;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 26px 22px 36px;
  border-left: 1px solid rgba(110, 231, 255, 0.12);
  background:
    linear-gradient(rgba(110, 231, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(180deg, rgba(8, 18, 32, 0.75), rgba(4, 8, 14, 0.92));
}
/* Hidden (not removed) behind the arrival sequence so the stack can measure
   itself and assemble the moment the sequence finishes. */
.ss-awaiting .ss-stage, .ss-awaiting .ss-side { visibility: hidden; }

/* =============================================================================
   Canvas layer filter — faded nodes from other layers + empty-layer hint
   ============================================================================= */
.canvas-root { touch-action: none; }
.canvas-ghosts {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: none; opacity: 0.2; filter: saturate(0.35);
}
.canvas-empty {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; pointer-events: none;
}
.canvas-empty-card {
  max-width: 340px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  border: 1px dashed rgba(110, 231, 255, 0.32); border-radius: 4px;
  background: rgba(4, 10, 20, 0.82); color: #9fb6c6;
  font-size: 12px; line-height: 1.5;
}
.canvas-empty-kicker {
  font-family: var(--holo-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--holo-cyan);
}

/* =============================================================================
   Tablet / phone layout
   ============================================================================= */
@media (max-width: 1100px) {
  .ss-root { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 900px) {
  .ss-root { display: flex; flex-direction: column; overflow-y: auto; }
  .ss-stage { flex: 0 0 auto; height: min(74vh, 620px); }
  .ss-side {
    flex: 0 0 auto; overflow: visible;
    border-left: 0; border-top: 1px solid rgba(110, 231, 255, 0.12);
    padding: 20px 14px 32px;
  }
}

@media (max-width: 760px) {
  .conduit-root { height: 100dvh; }

  .cb-root {
    flex-wrap: wrap; gap: 0 6px;
    padding: max(4px, env(safe-area-inset-top)) 10px 2px;
  }
  .cb-brand { display: none; }
  .cb-trail { flex: 1 1 0%; min-width: 0; order: 1; overflow: hidden; }
  .cb-crumb { max-width: 100%; padding: 4px 4px; letter-spacing: 0.08em; }
  .cb-on-canvas .cb-trail li:last-child { display: none; }
  .cb-tabs {
    order: 3; flex: 1 0 100%; padding: 2px 0 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  }
  .cb-chips {
    order: 2; flex: 0 1 auto; max-width: 58%; min-width: 0;
    flex-wrap: nowrap; gap: 4px; margin-left: 6px; overflow: hidden;
    justify-content: flex-end;
  }
  .cb-chip { letter-spacing: 0.06em; padding: 3px 6px; }
  .cb-vis { display: none; }

  .toolbar { grid-template-columns: auto minmax(0, 1fr) auto; height: 48px; flex-basis: 48px; padding: 0 8px; gap: 4px; }
  .toolbar .brand-text, .toolbar .toolbar-divider, .toolbar .tb-wide { display: none; }
  .toolbar .brand { padding-right: 0; }
  .toolbar-center { justify-self: stretch; min-width: 0; }
  .project-switcher-wrap { min-width: 0; }
  .project-switcher-trigger { max-width: 100%; padding: 6px 8px; }
  .project-switcher-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toolbar-section { gap: 2px; }
  .run-btn { padding: 8px 10px; }
  .run-btn span:not(.run-dot) { display: none; }

  /* Library / inspector open as drawers over the canvas. */
  .workspace { position: relative; }
  .workspace > .sidebar:not(.sidebar-collapsed),
  .workspace > .inspector:not(.inspector-collapsed) {
    position: absolute; top: 0; bottom: 0; z-index: 40;
    width: min(86vw, 340px); max-width: none;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.6);
  }
  .workspace > .sidebar:not(.sidebar-collapsed) { left: 0; }
  .workspace > .inspector:not(.inspector-collapsed) { right: 0; }
  .sidebar-collapsed, .inspector-collapsed { flex-basis: 30px; max-width: 30px; }

  .ss-stage { height: calc(100dvh - 108px); }

  .minimap { display: none; }
  .minimap-wrap { right: 10px; bottom: calc(56px + env(safe-area-inset-bottom)); }
  .status-bar {
    height: calc(28px + env(safe-area-inset-bottom));
    flex-basis: calc(28px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .status-bar .status-section:not(:last-child) { display: none; }
  .status-bar .status-section:last-child > span:not(.status-pill) { display: none; }

  /* The console title and stats wrap onto the canvas at this width.
     Keep the tab switcher and the expand button on one line. */
  .run-panel { height: 40px; overflow: hidden; }
  .run-panel.open { height: min(220px, 42vh); }
  .run-panel-head { height: 40px; padding: 0 8px; }
  .run-panel-title { gap: 6px; min-width: 0; flex: 1 1 auto; }
  .run-panel-name, .run-panel-title > .sidebar-kicker, .run-stats { display: none; }
  .run-tabs { margin-left: 0; flex: 0 0 auto; }
  .run-panel-actions { flex: 0 0 auto; }
  .run-panel .icon-btn { width: 32px; height: 32px; }

  /* Stack the category above the node title inside the drawer. */
  .inspector-head { align-items: flex-start; }
  .inspector-head .sidebar-title {
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 0; flex: 1 1 auto;
  }
  .inspector-head .sidebar-kicker {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .inspector-title-input { min-width: 0; }
}

@media (pointer: coarse) {
  .tb-btn { width: 40px; height: 40px; }
  .cb-tab { min-height: 36px; padding: 6px 12px; }
  .cb-crumb { min-height: 36px; }
  .zoom-controls button { width: 34px; height: 34px; }
  .library-item { min-height: 48px; }
}
