:root {
  --ps-blue: #56b6ff;
  --ps-cyan: #62e7db;
  --ps-amber: #f6c55b;
  --ps-red: #ff7185;
  --ps-ink: #050b16;
  --ps-panel: rgba(7, 17, 33, 0.92);
  --ps-line: rgba(129, 167, 214, 0.2);
  --ps-muted: #9cafc6;
}

.problem-space-shell {
  position: relative;
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  overflow: hidden;
  border: 1px solid var(--ps-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(86, 182, 255, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(9, 23, 43, 0.96), rgba(3, 9, 19, 0.98));
  color: #eef6ff;
  isolation: isolate;
}

.problem-space-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(86, 182, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 182, 255, 0.15) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.problem-space-pilot-panel .problem-space-shell {
  margin: 0;
  border: 0;
  background-color: transparent;
}

.problem-space-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.problem-space-heading h2,
.problem-space-heading h3 {
  margin: 0.4rem 0 0.5rem;
  color: #f7fbff;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.15;
}

.problem-space-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--ps-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.problem-space-kicker {
  color: var(--ps-cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.problem-space-view-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  background: rgba(2, 8, 17, 0.74);
}

.problem-space-view-controls button {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ps-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.problem-space-view-controls button[aria-pressed="true"] {
  background: var(--ps-blue);
  color: #03101f;
  box-shadow: 0 0 22px rgba(86, 182, 255, 0.27);
}

.problem-space-model {
  margin-top: 1.3rem;
}

.problem-space-identity {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  background: rgba(2, 8, 17, 0.66);
}

.problem-space-identity div span,
.problem-space-score > span,
.problem-space-plain-language span,
.problem-space-gates > div span,
.problem-space-model footer span {
  display: block;
  color: var(--ps-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.problem-space-identity div strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.problem-space-identity em {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(246, 197, 91, 0.34);
  border-radius: 999px;
  color: var(--ps-amber);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.operational-mode {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(280px, 1.2fr) auto;
  gap: 0.85rem 1rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(246, 197, 91, 0.28);
  border-left: 4px solid var(--ps-amber);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(246, 197, 91, 0.08), rgba(2, 8, 17, 0.7));
}
.operational-mode[data-mode="authorized-live"] { border-color: rgba(98, 231, 219, 0.45); border-left-color: var(--ps-cyan); background: linear-gradient(90deg, rgba(98, 231, 219, 0.10), rgba(2, 8, 17, 0.72)); }
.operational-mode[data-mode="advisory-live"] { border-left-color: var(--ps-red); }
.operational-mode > div { display: grid; gap: 0.2rem; }
.operational-mode span { color: var(--ps-muted); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.1em; }
.operational-mode strong { color: #fff; font-size: 0.86rem; letter-spacing: 0.04em; }
.operational-mode em { color: var(--ps-amber); font-size: 0.62rem; font-style: normal; font-weight: 850; letter-spacing: 0.06em; }
.operational-mode[data-mode="authorized-live"] em { color: var(--ps-cyan); }
.operational-mode[data-mode="advisory-live"] em { color: var(--ps-red); }
.operational-mode p { margin: 0; color: #bfd1e4; font-size: 0.76rem; line-height: 1.45; }
.operational-mode details { align-self: stretch; }
.operational-mode summary { color: #dcecff; font-size: 0.68rem; font-weight: 800; cursor: pointer; }
.operational-mode ul { display: grid; gap: 0.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.operational-mode li { display: flex; gap: 0.35rem; align-items: center; color: var(--ps-muted); font-size: 0.62rem; white-space: nowrap; }
.operational-mode li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ps-red); }
.operational-mode li[data-state="passed"] i { background: var(--ps-cyan); }

.problem-space-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(270px, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.problem-space-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(58, 168, 255, 0.10), transparent 40%),
    rgba(2, 8, 17, 0.78);
  perspective: 920px;
}

.problem-space-topology {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(285px, 1fr) auto auto;
  min-height: 100%;
  padding: 0.9rem;
}
.topology-status {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.topology-status span,
.topology-status em,
.topology-status strong,
.topology-location-button {
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(98, 231, 219, 0.28);
  border-radius: 999px;
  background: rgba(2, 8, 17, 0.78);
  color: var(--ps-cyan);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
.topology-location-button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.topology-location-button:hover,
.topology-location-button:focus-visible,
.topology-location-button[aria-expanded="true"] {
  transform: translateY(-1px);
  outline: none;
  background: rgba(86, 182, 255, 0.14);
  box-shadow: 0 0 20px rgba(86, 182, 255, 0.22);
}
.topology-status em {
  color: #dcecff;
  font-style: normal;
}
.problem-space-topology[data-precision="unknown"] .topology-status em { color: var(--ps-muted); }
.problem-space-topology[data-precision="inferred"] .topology-location-button { color: var(--ps-amber); border-color: rgba(246, 197, 91, 0.38); }
.problem-space-topology[data-precision="unknown"] .topology-location-button { color: var(--ps-red); border-color: rgba(255, 113, 133, 0.38); }
.topology-scene {
  position: relative;
  min-height: 285px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}
.topology-scene:focus-visible { box-shadow: inset 0 0 0 2px rgba(98, 231, 219, 0.66); }
.topology-scene.is-dragging { cursor: grabbing; }
.topology-scene-object {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: scale(var(--scene-scale, 1));
  transform-origin: 50% 50%;
  transition: transform 180ms ease;
}
.topology-scene.is-dragging .topology-scene-object { transition: none; }
.topology-scene::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 8% 3% 12%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(98, 231, 219, 0.22) 49%, rgba(255,255,255,0.72) 50%, rgba(98, 231, 219, 0.15) 51%, transparent 53%);
  background-size: 100% 210%;
  mix-blend-mode: screen;
  animation: topology-scan 5.4s linear infinite;
  opacity: calc(0.24 + (var(--geometry-fidelity) * 0.5));
}
.topology-scene::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 8% 3% 12%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(120, 207, 255, 0.14), transparent 55%), linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.08) 48%, transparent 62%);
}
.topology-scene svg {
  position: absolute;
  inset: 2% 1% 4%;
  width: 98%;
  height: 94%;
  overflow: visible;
  transform: rotateX(var(--scene-rotate-x, 58deg)) rotateZ(var(--scene-rotate-z, -8deg)) translateZ(2px);
  transform-origin: 50% 54%;
  opacity: calc(0.28 + (var(--geometry-fidelity) * 0.72));
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.48));
  transition: transform 420ms ease;
}
.problem-space-topology[data-physical-geometry="true"] .topology-structure {
  fill: rgba(75, 164, 216, 0.16);
  stroke: rgba(189, 234, 255, 0.82);
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.55));
}
.problem-space-topology[data-assembly-state="emerging"] .topology-structure,
.problem-space-topology[data-assembly-state="emerging"] .topology-connectors { stroke-dasharray: 10 9; }
.problem-space-topology[data-assembly-state="conflicted"] .topology-scene svg { filter: drop-shadow(0 0 18px rgba(255, 113, 133, 0.32)); }
.problem-space-topology[data-assembly-state="true"] .topology-scene svg { filter: drop-shadow(0 0 20px rgba(98, 231, 219, 0.30)); }
.topology-assembly-label {
  position: absolute;
  z-index: 4;
  top: 0.6rem;
  left: 0.35rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.48rem 0.6rem;
  border-left: 3px solid var(--ps-blue);
  background: rgba(2, 8, 17, 0.82);
}
.topology-assembly-label span { color: #e6f4ff; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.07em; }
.topology-assembly-label b { color: var(--ps-muted); font-size: 0.55rem; letter-spacing: 0.06em; }
.problem-space-topology[data-assembly-state="true"] .topology-assembly-label { border-color: var(--ps-cyan); }
.problem-space-topology[data-assembly-state="conflicted"] .topology-assembly-label { border-color: var(--ps-red); }
.topology-grid { fill: rgba(7, 26, 45, 0.54); stroke: rgba(98, 231, 219, 0.13); stroke-width: 1; }
.topology-structure { fill: rgba(86, 182, 255, 0.06); stroke: rgba(120, 207, 255, 0.52); stroke-width: 3; }
.topology-connectors { stroke: rgba(246, 197, 91, 0.42); stroke-width: 2; stroke-dasharray: 8 8; }
.topology-direction-route line { stroke: #f3c56d; stroke-width: 4; stroke-dasharray: 9 7; vector-effect: non-scaling-stroke; }
.topology-direction-route circle { fill: rgba(243,197,109,.12); stroke: #f3c56d; stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.topology-direction-route text,.topology-current-tag { fill:#fff0ce;stroke:#081320;stroke-width:5px;stroke-linejoin:round;paint-order:stroke;letter-spacing:.07em;font-size:11px;font-weight:900; }
.topology-current-tag { fill:#9df6e2; }
.topology-direction-routes { filter: drop-shadow(0 0 8px rgba(243,197,109,.54)); }
#direction-candidate-arrow path { fill: #f3c56d; }
.topology-node circle {
  fill: #0d5d8d;
  stroke: #bdeaff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.topology-node text {
  fill: #d9efff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: #04101e;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.topology-node.is-issue circle {
  fill: var(--ps-amber);
  stroke: #fff3c1;
  filter: drop-shadow(0 0 12px rgba(246, 197, 91, 0.95));
  animation: topology-issue-pulse 1.8s ease-in-out infinite;
}
.topology-node.is-verified circle {
  fill: var(--ps-cyan);
  filter: drop-shadow(0 0 14px rgba(98, 231, 219, 0.95));
}
.topology-node.is-issue text { fill: #fff3c1; }
.topology-priority {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%) translateZ(110px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #fff, var(--ps-cyan) 28%, #1679c0 72%);
  box-shadow: 0 0 22px var(--ps-blue), 0 0 58px rgba(86, 182, 255, 0.42);
  color: #041221;
  isolation: isolate;
  animation: topology-sphere-float 3.8s ease-in-out infinite;
}
.topology-priority::before,
.topology-priority::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.topology-priority::before {
  inset: 6px;
  z-index: -1;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.92), rgba(127,235,255,.35) 24%, rgba(16,89,166,.2) 65%, transparent 72%);
  box-shadow: inset -13px -15px 22px rgba(0, 20, 60, .55), inset 7px 6px 15px rgba(255,255,255,.38);
}
.topology-priority::after {
  inset: -16px;
  border: 1px solid rgba(98,231,219,.42);
  animation: topology-sphere-orbit 3s linear infinite;
}
.topology-priority i {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -24px;
  height: 13px;
  z-index: -2;
  border-radius: 50%;
  background: rgba(86,182,255,.36);
  filter: blur(8px);
  animation: topology-sphere-shadow 3.8s ease-in-out infinite;
}
.topology-priority span { font-size: 1rem; font-weight: 900; line-height: 1; }
.topology-priority small { font-size: 0.46rem; font-weight: 900; letter-spacing: 0.08em; }
.topology-navigation {
  position: absolute;
  z-index: 7;
  right: 0.5rem;
  bottom: 0.45rem;
  display: flex;
  gap: 0.35rem;
}
.topology-navigation button {
  min-width: 34px;
  min-height: 34px;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(98,231,219,.28);
  border-radius: 8px;
  background: rgba(2,8,17,.84);
  color: #dff9ff;
  font: 800 .62rem/1 inherit;
  cursor: pointer;
}
.topology-navigation button:hover,
.topology-navigation button:focus-visible { border-color: var(--ps-cyan); outline: none; background: rgba(86,182,255,.18); }
.topology-move-hint {
  position: absolute;
  z-index: 6;
  left: 0.65rem;
  bottom: 0.85rem;
  color: #8297af;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  pointer-events: none;
}
.topology-evidence-inspector {
  position: absolute;
  z-index: 9;
  top: 4.2rem;
  right: 1rem;
  width: min(390px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(86,182,255,.42);
  border-radius: 14px;
  background: rgba(3,11,24,.96);
  box-shadow: 0 20px 54px rgba(0,0,0,.52), 0 0 28px rgba(86,182,255,.12);
}
.topology-evidence-inspector[hidden] { display: none; }
.topology-evidence-inspector > div span { display:block; color: var(--ps-cyan); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.topology-evidence-inspector > div strong { display:block; margin-top:.3rem; color:#fff; font-size:.9rem; }
.topology-evidence-inspector > button { position:absolute; top:.55rem; right:.55rem; width:32px; height:32px; border:1px solid rgba(255,255,255,.18); border-radius:50%; background:#071426; color:#fff; font-size:1.1rem; cursor:pointer; }
.topology-evidence-inspector p { margin:.8rem 0; color:#a8bdd3; font-size:.75rem; line-height:1.5; }
.topology-evidence-inspector dl { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; margin:0; }
.topology-evidence-inspector dl div { padding:.55rem; border:1px solid rgba(129,167,214,.15); background:rgba(8,23,42,.72); }
.topology-evidence-inspector dt { color:#7f95ad; font-size:.58rem; font-weight:850; text-transform:uppercase; }
.topology-evidence-inspector dd { margin:.2rem 0 0; color:#eef8ff; font-size:.7rem; line-height:1.35; }
.topology-location-readout {
  position: relative;
  z-index: 4;
  width: min(560px, 92%);
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--ps-amber);
  background: rgba(2, 8, 17, 0.82);
}
.problem-space-topology[data-precision="verified"] .topology-location-readout { border-color: var(--ps-cyan); }
.problem-space-topology[data-precision="unknown"] .topology-location-readout { border-color: var(--ps-red); }
.topology-location-readout span { color: var(--ps-muted); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.09em; }
.topology-location-readout strong { display: block; margin-top: 0.2rem; color: #fff; font-size: 0.82rem; }
.topology-location-readout p { margin: 0.25rem 0 0; color: var(--ps-muted); font-size: 0.7rem; line-height: 1.35; }
.topology-direction-readout { position:relative;z-index:4;margin-top:.5rem;padding:.65rem .8rem;border-left:3px solid #f3c56d;border-radius:8px;background:rgba(2,8,17,.90);overflow-wrap:anywhere; }
.topology-direction-points { display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-bottom:.7rem; }
.topology-direction-points>div { padding:.6rem;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(9,37,47,.66); }
.topology-direction-points>div:first-child { border-color:rgba(110,231,183,.6); }
.topology-direction-points>div:last-child { border-color:rgba(243,197,109,.55); }
.topology-direction-points span,.topology-direction-points small { display:block;font-size:.58rem;line-height:1.35; }
.topology-direction-points strong { display:block;margin:.32rem 0;color:#fff;font-size:.86rem;line-height:1.3; }
.topology-direction-points small { color:#a9c4d3;font-weight:800; }
.topology-direction-readout span { display:block;color:#f3c56d;font-size:.63rem;font-weight:900;letter-spacing:.07em; }
.topology-direction-points>div:first-child span { color:#9df6e2; }
.topology-direction-readout strong { display:block;margin-top:.3rem;color:#fff;font-size:.78rem;line-height:1.4; }
.topology-direction-readout p { margin:.32rem 0 0;color:#c2d4e0;font-size:.69rem;line-height:1.4; }
.topology-direction-readout small { display:block;margin-top:.35rem;color:#91dce8; }
.topology-direction-readout[data-direction-status="HOLD"] { border-color:#ef7182; }
.formation-direction-link { display:inline-block;margin:.2rem 0 .45rem;padding:.46rem .7rem;border:1px solid #65bbcf;border-radius:8px;color:#c7f4ff;font-size:.78rem;font-weight:800;text-decoration:none; }
.formation-direction-link:hover,.formation-direction-link:focus-visible { background:rgba(86,182,255,.16);outline:2px solid #86e2f0;outline-offset:2px; }
.problem-space-stage:has(.topology-direction-readout) { min-height:750px; }
.topology-location-metrics {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.2fr;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(129, 167, 214, 0.18);
}
.topology-location-metrics small { display: block; color: #8195ad; font-size: 0.52rem; font-weight: 850; letter-spacing: 0.06em; }
.topology-location-metrics b { display: block; margin-top: 0.18rem; color: #eef7ff; font-size: 0.65rem; line-height: 1.3; }
.topology-location-metrics i { display: block; height: 4px; margin-top: 0.3rem; overflow: hidden; border-radius: 999px; background: #152236; }
.topology-location-metrics u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ps-blue), var(--ps-cyan)); text-decoration: none; }
.topology-axis-labels {
  position: absolute;
  inset: auto 14px 10px auto;
  display: grid;
  gap: 0.2rem;
  color: #70849d;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: right;
}

@keyframes topology-issue-pulse {
  0%, 100% { stroke-width: 3; opacity: 1; }
  50% { stroke-width: 10; opacity: 0.72; }
}

@keyframes topology-scan {
  from { background-position: 0 -115%; }
  to { background-position: 0 115%; }
}

@keyframes topology-sphere-float {
  0%, 100% { translate: 0 0; filter: brightness(1); }
  50% { translate: 0 -17px; filter: brightness(1.16); }
}
@keyframes topology-sphere-orbit {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}
@keyframes topology-sphere-shadow {
  0%,100% { opacity:.78; transform:scale(1); }
  50% { opacity:.32; transform:scale(.68); }
}

.problem-space-cube {
  position: absolute;
  inset: 44px 50px 46px 72px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-34deg);
}

.problem-space-plane {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(98, 231, 219, 0.3);
  background-image:
    linear-gradient(rgba(98, 231, 219, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 231, 219, 0.16) 1px, transparent 1px);
  background-size: 20% 20%;
}

.problem-space-plane--floor { transform: translateZ(0); }
.problem-space-plane--back {
  transform-origin: top;
  transform: rotateX(-90deg);
  opacity: 0.55;
}
.problem-space-plane--side {
  transform-origin: left;
  transform: rotateY(90deg);
  opacity: 0.5;
}

.problem-space-axis {
  position: absolute;
  color: rgba(211, 235, 255, 0.75);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.problem-space-axis--x { right: -16px; bottom: -27px; }
.problem-space-axis--y { left: -48px; top: 4px; transform: rotate(90deg); transform-origin: left; }
.problem-space-axis--z { left: 4px; top: -25px; }

.problem-space-point {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) translateZ(var(--point-z)) rotateZ(34deg) rotateX(-58deg);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #fff, var(--ps-cyan) 28%, #1679c0 72%);
  box-shadow: 0 0 18px var(--ps-blue), 0 0 48px rgba(86, 182, 255, 0.48);
  color: #041221;
  isolation: isolate;
  animation: problem-space-float 4.8s ease-in-out infinite;
}

.problem-space-point i::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, rgba(255,255,255,.95), rgba(98,231,219,.32) 28%, rgba(22,121,192,.15) 62%, transparent 70%);
  box-shadow: inset -8px -10px 18px rgba(2,8,17,.42), inset 5px 4px 12px rgba(255,255,255,.28);
}

.problem-space-point::before,
.problem-space-point::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(98, 231, 219, 0.45);
  border-radius: 50%;
  animation: problem-space-pulse 2.8s ease-out infinite;
}

.problem-space-point::after { animation-delay: 1.4s; }
.problem-space-point b { position: relative; z-index: 2; font-size: 0.9rem; }
.problem-space-point i { position: absolute; inset: 0; border-radius: inherit; }

.problem-space-shadow {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(86, 182, 255, 0.24);
  filter: blur(8px);
  animation: problem-space-shadow-breathe 4.8s ease-in-out infinite;
}

.problem-space-legend {
  position: absolute;
  inset: auto 16px 12px;
  display: flex;
  justify-content: space-between;
  color: #70849d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes problem-space-pulse {
  from { opacity: 0.7; transform: scale(0.75); }
  to { opacity: 0; transform: scale(1.75); }
}

@keyframes problem-space-float {
  0%, 100% { translate: 0 0; filter: brightness(1); }
  50% { translate: 0 -13px; filter: brightness(1.16); }
}

@keyframes problem-space-shadow-breathe {
  0%, 100% { opacity: .72; scale: 1; }
  50% { opacity: .38; scale: .72; }
}

.problem-space-explanation {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  background: rgba(2, 8, 17, 0.74);
}

.problem-space-score {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.25rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ps-line);
}

.problem-space-score > span { grid-column: 1 / -1; }
.problem-space-score strong { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.problem-space-score strong small { color: var(--ps-muted); font-size: 1rem; }
.problem-space-score em {
  margin-bottom: 0.25rem;
  color: var(--ps-amber);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}
.problem-space-score > span { color: #9bdfe4; font-weight: 850; letter-spacing: .07em; }
.problem-space-score > span small { display:block; margin-top:.3rem; color:#b5c7da; font-size:.77rem; font-weight:500; letter-spacing:0; }

.evidence-assembly {
  padding: 1rem;
  border: 1px solid rgba(86, 182, 255, 0.18);
  border-radius: 12px;
  background: rgba(8, 24, 43, 0.62);
}
.evidence-assembly-heading {
  display: grid;
  gap: 0.25rem;
}
.evidence-assembly-heading span { color: var(--ps-muted); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.09em; }
.evidence-assembly-heading strong { color: #eaf6ff; font-size: 1.05rem; letter-spacing: 0.02em; }
.evidence-assembly[data-state="true"] .evidence-assembly-heading strong { color: var(--ps-cyan); }
.evidence-assembly[data-state="conflicted"] .evidence-assembly-heading strong { color: var(--ps-red); }
.evidence-assembly-meter { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.55rem; }
.evidence-assembly-meter i { flex: 1; height: 12px; overflow: hidden; border-radius: 999px; background: #263b52; }
.evidence-assembly-meter u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ps-blue), var(--ps-cyan)); text-decoration: none; }
.evidence-assembly-meter b { color: #effbff; font-size: .9rem; white-space: nowrap; }
.evidence-assembly-subtitle { color:#b8cadb; font-size:.76rem; line-height:1.45; margin-top:.55rem; }
.evidence-assembly ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.evidence-assembly li { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 0.45rem; align-items: center; min-width: 0; padding:.34rem .15rem; border-bottom:1px solid rgba(129,167,214,.12); }
.evidence-assembly li i { width: 9px; height: 9px; border-radius: 50%; background: #8095aa; }
.evidence-assembly li[data-state="partial"] i { background: var(--ps-amber); }
.evidence-assembly li[data-state="strong"] i { background: var(--ps-cyan); }
.evidence-assembly li span { color: #e3eff9; font-size: .79rem; line-height:1.3; }
.evidence-assembly li b { color: #effbff; font-size: .77rem; text-align:right; }
.evidence-assembly li[data-state="missing"] b { color:#afc0d1; font-weight:600; }
.evidence-assembly p { margin: .8rem 0 0; color: #bbcedf; font-size: .78rem; line-height: 1.55; }

.telemetry-rhythm { padding:1rem; border:1px solid rgba(98,231,219,.27); border-radius:14px; background:linear-gradient(145deg,rgba(9,31,48,.9),rgba(5,15,30,.88)); }
.telemetry-heading { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:.7rem; }
.telemetry-heading div { display:grid; gap:.3rem; }
.telemetry-heading span { color:#8de9df; font-size:.69rem; font-weight:850; letter-spacing:.09em; }
.telemetry-heading strong { color:#f0faff; font-size:1.02rem; line-height:1.35; }
.telemetry-heading b { color:#f6c55b; font-size:.68rem; letter-spacing:.04em; }
.telemetry-empty { display:flex; gap:.8rem; align-items:center; min-height:110px; margin-top:.85rem; padding:1rem; border:1px dashed #58738e; border-radius:10px; background:rgba(14,31,50,.5); }
.telemetry-empty span { font-size:2.2rem; color:#72b9cc; }
.telemetry-empty p,.telemetry-rhythm>p { color:#c5d7e5; font-size:.78rem; line-height:1.55; margin:.7rem 0 0; }
.telemetry-chart { margin-top:.8rem; padding:.6rem .5rem .4rem; border:1px solid #34536e; border-radius:10px; background:#08192b; }
.telemetry-chart svg { width:100%; height:auto; min-height:150px; display:block; }
.telemetry-chart text { fill:#b5cbdc; font-size:12px; font-weight:700; }
.telemetry-time { display:flex; justify-content:space-between; color:#c7d9e8; font-size:.73rem; padding:0 .65rem; }
.telemetry-legend { list-style:none; display:grid; gap:.45rem; margin:.8rem 0 0; padding:0; }
.telemetry-legend li { display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:.5rem; align-items:center; color:#e4f4fb; font-size:.78rem; }
.telemetry-legend i { width:10px; height:10px; border-radius:50%; }
.telemetry-legend b { color:#e5f9fa; }

.problem-space-bars {
  display: grid;
  gap: 1rem;
}

.problem-space-bars > div > span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #dcecff;
  font-size: 0.88rem;
  font-weight: 700;
}

.problem-space-bars > div > span b { color: var(--ps-cyan); }
.problem-space-bars > div > i {
  display: block;
  height: 11px;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 99px;
  background: #152236;
}
.problem-space-bars > div > i u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ps-blue), var(--ps-cyan));
  text-decoration: none;
}
.problem-space-bars small {
  display: block;
  margin-top: 0.35rem;
  color: var(--ps-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.problem-space-guidance-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(79, 209, 255, 0.3);
  border-radius: 12px;
  background: rgba(10, 41, 68, 0.5);
}
.problem-space-guidance-note strong {
  flex: 0 0 auto;
  color: var(--ps-cyan);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}
.problem-space-guidance-note span {
  color: #d6e4f4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.unified-six-way-field { margin:1rem 0; padding:1rem; border:1px solid rgba(98,231,219,.34); border-radius:14px; background:radial-gradient(circle at 50% 32%,rgba(86,182,255,.13),transparent 38%),rgba(4,14,28,.82); color:#dcecff; }
.unified-six-way-field > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.unified-six-way-field > header span { display:block; color:#62e7db; font-size:.58rem; font-weight:900; letter-spacing:.1em; }
.unified-six-way-field > header strong { display:block; margin-top:.15rem; color:#fff; font-size:1rem; }
.unified-six-way-field > header em { color:#a9bed3; font-size:.66rem; font-style:normal; }
.unified-field-lens { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; position:relative; }
.unified-field-lens article { min-height:78px; padding:.65rem; border:1px solid rgba(129,167,214,.2); border-radius:10px; background:rgba(7,22,40,.78); }
.unified-field-lens article[data-selected="true"] { border-color:#62e7db; box-shadow:inset 0 0 20px rgba(98,231,219,.09); }
.unified-field-lens article span,.unified-field-lens article b,.unified-field-lens article small { display:block; }
.unified-field-lens article span { color:#eaf6ff; font-size:.7rem; font-weight:800; }
.unified-field-lens article b { margin:.25rem 0; color:#62e7db; font-size:1rem; }
.unified-field-lens article small { color:#8298ae; font-size:.56rem; line-height:1.35; }
.unified-field-core { position:absolute; z-index:2; left:50%; top:50%; width:70px; height:70px; display:flex; flex-direction:column; align-items:center; justify-content:center; transform:translate(-50%,-50%); border:1px solid #62e7db; border-radius:50%; background:#071426; box-shadow:0 0 25px rgba(98,231,219,.2); cursor:grab; touch-action:none; user-select:none; }
.unified-field-core[data-dragging="true"] { cursor:grabbing; opacity:.86; box-shadow:0 0 34px rgba(98,231,219,.42); }
.unified-field-core:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.unified-field-core b { color:#fff; font-size:1.1rem; }
.unified-field-core small { color:#62e7db; font-size:.42rem; font-weight:900; text-align:center; }
.unified-field-modules { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.8rem; }
.unified-field-modules span { padding:.35rem .5rem; border:1px solid rgba(129,167,214,.2); border-radius:999px; color:#8fa6bd; font-size:.55rem; text-transform:uppercase; }
.unified-field-modules span b { margin-right:.3rem; color:#eaf6ff; }
.unified-field-modules span[data-state="contributing"] { border-color:rgba(98,231,219,.45); color:#62e7db; }
.unified-field-modules span[data-state="blocked"] { border-color:rgba(255,113,133,.55); color:#ff7185; }
.unified-six-way-field > p { margin:.75rem 0 0; color:#a8bdd3; font-size:.68rem; line-height:1.45; }
.unified-six-way-field .unified-field-boundary { padding-top:.65rem; border-top:1px solid rgba(129,167,214,.16); }
.unified-six-way-field.is-compact { margin:.8rem 0; }
@media (max-width:760px) { .unified-field-lens { grid-template-columns:1fr 1fr; } .unified-field-core { display:none; } }

.problem-space-plain-language {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.problem-space-plain-language.conscious-clarification {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .problem-space-plain-language.conscious-clarification { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .problem-space-point,
  .problem-space-shadow,
  .problem-space-point::before,
  .problem-space-point::after { animation: none !important; }
}

.problem-space-plain-language article {
  padding: 1rem;
  border-left: 2px solid var(--ps-blue);
  background: rgba(9, 24, 45, 0.68);
}
.problem-space-plain-language p {
  margin: 0.55rem 0 0;
  color: #d6e4f4;
  font-size: 0.92rem;
  line-height: 1.55;
}

.problem-space-math {
  margin-top: 0.8rem;
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  background: rgba(2, 8, 17, 0.56);
}
.problem-space-math summary {
  padding: 0.9rem 1rem;
  color: #dcecff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.problem-space-math div { padding: 0 1rem 1rem; }
.problem-space-math p {
  margin: 0.55rem 0;
  color: var(--ps-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.problem-space-math b { color: var(--ps-cyan); }

.problem-space-gates {
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  background: rgba(2, 8, 17, 0.64);
}
.problem-space-gates > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.problem-space-gates > div strong { color: var(--ps-amber); font-size: 0.82rem; }
.problem-space-gates ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.problem-space-gates li {
  display: flex;
  gap: 0.65rem;
  min-height: 72px;
  padding: 0.75rem;
  border: 1px solid var(--ps-line);
  border-radius: 10px;
  background: rgba(12, 28, 49, 0.64);
}
.problem-space-gates li > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--ps-amber);
  box-shadow: 0 0 10px currentColor;
}
.problem-space-gates li[data-state="passed"] > i { background: var(--ps-cyan); }
.problem-space-gates li[data-state="locked"] > i { background: var(--ps-red); }
.problem-space-gates li strong { display: block; color: #f4f9ff; font-size: 0.84rem; }
.problem-space-gates li span { display: block; margin-top: 0.25rem; color: var(--ps-muted); font-size: 0.73rem; line-height: 1.4; }

.problem-space-model footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ps-line);
}
.problem-space-model footer span { max-width: 48%; line-height: 1.45; }

.problem-space-model.is-plain .problem-space-stage { min-height: 560px; perspective: none; }
.problem-space-model.is-plain .problem-space-cube {
  inset: 34px;
  transform: none;
}
.problem-space-model.is-plain .problem-space-plane--back,
.problem-space-model.is-plain .problem-space-plane--side,
.problem-space-model.is-plain .problem-space-axis--z { display: none; }
.problem-space-model.is-plain .problem-space-point {
  transform: translate(-50%, -50%);
}
.problem-space-model.is-plain .topology-scene svg {
  transform: none;
}
.problem-space-model.is-plain .topology-priority {
  transform: translate(-50%, -50%);
}

.problem-space-shell--intake {
  margin: 1rem 0;
  padding: 1rem;
}
.problem-space-shell--intake .problem-space-heading p { font-size: 0.9rem; }
.problem-space-shell--intake .problem-space-stage { min-height: 500px; }

@media (max-width: 900px) {
  .problem-space-layout { grid-template-columns: 1fr; }
  .operational-mode { grid-template-columns: 1fr 1fr; }
  .operational-mode details { grid-column: 1 / -1; }
  .problem-space-plain-language,
  .problem-space-gates ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .operational-mode { grid-template-columns: 1fr; }
  .operational-mode details { grid-column: auto; }
  .problem-space-guidance-note { flex-direction: column; }
  .problem-space-heading,
  .problem-space-identity,
  .problem-space-gates > div,
  .problem-space-model footer { align-items: stretch; flex-direction: column; }
  .problem-space-view-controls { align-self: flex-start; }
  .problem-space-layout { grid-template-columns: minmax(0, 1fr); }
  .evidence-assembly ul { grid-template-columns: 1fr; }
  .telemetry-legend li { grid-template-columns:12px minmax(0,1fr); }
  .telemetry-legend b { grid-column:2; }
  .problem-space-stage:has(.topology-direction-readout) { min-height:850px; }
  .topology-direction-points { grid-template-columns:1fr; }
  .topology-status { align-items: flex-start; flex-direction: column; }
  .topology-scene { min-height: 245px; }
  .topology-scene svg { inset: 0; width: 100%; height: 100%; transform: rotateX(54deg) rotateZ(-6deg); }
  .topology-priority { width: 58px; height: 58px; }
  .topology-location-readout { width: calc(100% - 0.5rem); }
  .topology-location-metrics { grid-template-columns: 1fr 1fr; }
  .topology-location-metrics > div:last-child { grid-column: 1 / -1; }
  .topology-axis-labels { display: none; }
  .problem-space-cube { inset: 50px 38px 54px 54px; }
  .problem-space-plain-language,
  .problem-space-gates ul { grid-template-columns: 1fr; }
  .problem-space-model footer span { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .problem-space-point::before,
  .problem-space-point::after,
  .topology-scene::before,
  .topology-node.is-issue circle,
  .topology-priority,
  .topology-priority::after,
  .topology-priority i { animation: none; }
}

/* Gabriel symbol: the public entry point for the 3D condition model. */
.gabriel-problem-symbol {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef8ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gabriel-symbol-mark {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(98, 231, 219, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(98, 231, 219, 0.22) 0 12%, transparent 13% 28%, rgba(86, 182, 255, 0.12) 29% 45%, transparent 46%),
    rgba(4, 14, 29, 0.86);
  box-shadow: inset 0 0 28px rgba(86, 182, 255, 0.16), 0 0 30px rgba(86, 182, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gabriel-symbol-mark::before,
.gabriel-symbol-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(86, 182, 255, 0.48);
  border-radius: 50%;
}
.gabriel-symbol-mark::before { inset: 14px; }
.gabriel-symbol-mark::after { inset: 28px; border-color: rgba(98, 231, 219, 0.7); }
.gabriel-symbol-mark i {
  width: 22px;
  height: 22px;
  z-index: 2;
  transform: rotate(45deg);
  border: 2px solid #dffbff;
  background: linear-gradient(135deg, var(--ps-cyan), var(--ps-blue));
  box-shadow: 0 0 18px rgba(98, 231, 219, 0.75);
}
.gabriel-symbol-mark b,
.gabriel-symbol-mark em {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ps-blue);
  box-shadow: 0 0 10px currentColor;
}
.gabriel-symbol-mark b { left: 8px; top: 48px; }
.gabriel-symbol-mark em { right: 8px; top: 48px; }

.gabriel-problem-symbol:hover .gabriel-symbol-mark,
.gabriel-problem-symbol:focus-visible .gabriel-symbol-mark {
  transform: scale(1.05);
  box-shadow: inset 0 0 30px rgba(86, 182, 255, 0.22), 0 0 36px rgba(86, 182, 255, 0.34);
}
.gabriel-problem-symbol:focus-visible { outline: 2px solid var(--ps-blue); outline-offset: 8px; border-radius: 12px; }
.gabriel-problem-symbol > span:last-child strong,
.gabriel-problem-symbol > span:last-child small { display: block; }
.gabriel-problem-symbol > span:last-child strong { color: var(--ps-cyan); font-size: 1rem; letter-spacing: 0.11em; }
.gabriel-problem-symbol > span:last-child small { max-width: 170px; margin-top: 0.35rem; color: var(--ps-muted); font-size: 0.82rem; line-height: 1.4; }

.gabriel-problem-symbol[data-state="delivered"] .gabriel-symbol-mark {
  border-color: rgba(98, 231, 156, 0.75);
  box-shadow: inset 0 0 30px rgba(98, 231, 156, 0.18), 0 0 34px rgba(98, 231, 156, 0.3);
}

.gabriel-symbol-mini {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-right: 0.28rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: -4px;
}
.gabriel-symbol-mini::before { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
.gabriel-symbol-mini i { width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; }

.gabriel-problem-symbol--compact { margin: 0 0 0 auto; gap: 0.55rem; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark { width: 52px; height: 52px; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark::before { inset: 7px; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark::after { inset: 14px; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark i { width: 11px; height: 11px; border-width: 1px; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark b { left: 3px; top: 23px; }
.gabriel-problem-symbol--compact .gabriel-symbol-mark em { right: 3px; top: 23px; }
.gabriel-problem-symbol--compact > span:last-child strong { font-size: 0.72rem; }
.gabriel-problem-symbol--compact > span:last-child small { font-size: 0.7rem; }

.gabriel-problem-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(1, 5, 12, 0.88);
  backdrop-filter: blur(12px);
}
.gabriel-problem-dialog[hidden] { display: none; }
.gabriel-problem-dialog-card {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(86, 182, 255, 0.32);
  border-radius: 20px;
  background: #050b16;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}
.gabriel-problem-dialog-close {
  position: sticky;
  z-index: 5;
  top: 0.75rem;
  float: right;
  width: 44px;
  height: 44px;
  margin: 0.75rem 0.75rem -3.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(2, 8, 17, 0.94);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.problem-space-dialog-open { overflow: hidden; }
.problem-space-delivery-status {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--ps-amber);
  background: rgba(246, 197, 91, 0.08);
  color: var(--ps-amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.problem-space-delivery-status[data-state="delivered"] {
  border-color: var(--ps-cyan);
  background: rgba(98, 231, 219, 0.08);
  color: var(--ps-cyan);
}
.problem-space-next-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(98, 231, 219, 0.28);
  border-radius: 12px;
  background: rgba(98, 231, 219, 0.055);
}
.problem-space-next-signal[hidden] { display: none; }
.problem-space-next-signal strong {
  display: block;
  color: #f4fbff;
  font-size: 0.9rem;
}
.problem-space-next-signal p {
  margin: 0.25rem 0 0;
  color: rgba(226, 240, 249, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}
.problem-space-next-signal button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(98, 231, 219, 0.68);
  border-radius: 10px;
  background: rgba(98, 231, 219, 0.12);
  color: var(--ps-cyan);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.problem-space-next-signal button:hover,
.problem-space-next-signal button:focus-visible {
  background: rgba(98, 231, 219, 0.2);
  outline: 2px solid rgba(98, 231, 219, 0.34);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .problem-space-next-signal { align-items: stretch; flex-direction: column; }
  .problem-space-next-signal button { width: 100%; }
}

.problem-space-shell--draft { margin: 0.75rem 0 1.25rem; }
.problem-space-shell--draft[hidden] { display: none; }
.problem-space-shell--draft .problem-space-stage { min-height: 500px; }

@media (max-width: 640px) {
  .gabriel-symbol-mark { width: 82px; height: 82px; }
  .gabriel-symbol-mark::before { inset: 11px; }
  .gabriel-symbol-mark::after { inset: 22px; }
  .gabriel-symbol-mark b { top: 37px; }
  .gabriel-symbol-mark em { top: 37px; }
  .gabriel-problem-dialog { padding: 0; }
  .gabriel-problem-dialog-card { min-height: 100vh; max-height: none; border: 0; border-radius: 0; }
  .gabriel-problem-symbol--compact > span:last-child { display: none; }
}
.operational-readiness-button{margin-top:12px;padding:10px 14px;border:1px solid rgba(103,232,249,.55);border-radius:999px;background:rgba(8,145,178,.13);color:#a5f3fc;font:800 .73rem/1.2 inherit;letter-spacing:.07em;cursor:pointer}.operational-readiness-button:hover,.operational-readiness-button:focus-visible{background:rgba(8,145,178,.25);outline:2px solid rgba(103,232,249,.5);outline-offset:2px}.precursor-chain{margin:16px 0;padding:18px;border:1px solid rgba(56,189,248,.24);border-radius:18px;background:linear-gradient(145deg,rgba(5,18,33,.98),rgba(4,11,22,.98));box-shadow:inset 0 1px rgba(255,255,255,.035)}.precursor-chain-heading span,.precursor-chain-heading strong,.precursor-chain-heading p{display:block}.precursor-chain-heading span{color:#67e8f9;font-size:.72rem;font-weight:900;letter-spacing:.11em}.precursor-chain-heading strong{margin-top:6px;color:#f8fafc;font-size:1.05rem}.precursor-chain-heading p{max-width:760px;margin:7px 0 0;color:#a9bbca;font-size:.88rem;line-height:1.55}.precursor-chain ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none}.precursor-chain li{display:flex;gap:10px;min-height:96px;padding:12px;border:1px solid rgba(245,158,11,.34);border-radius:13px;background:rgba(245,158,11,.045)}.precursor-chain li[data-state="passed"]{border-color:rgba(45,212,191,.48);background:rgba(20,184,166,.07)}.precursor-chain li>b{color:#fbbf24;font-size:.72rem}.precursor-chain li[data-state="passed"]>b{color:#5eead4}.precursor-chain li div strong,.precursor-chain li div span{display:block}.precursor-chain li div strong{color:#eef7ff;font-size:.86rem}.precursor-chain li div span{margin-top:6px;color:#91a7b8;font-size:.76rem;line-height:1.45}@media(max-width:820px){.precursor-chain ol{grid-template-columns:1fr 1fr}}@media(max-width:560px){.precursor-chain ol{grid-template-columns:1fr}.precursor-chain{padding:14px}}
.operational-solution-calculation{margin-top:1rem;padding:1rem;border:1px solid rgba(89,220,191,.38);border-radius:16px;background:linear-gradient(145deg,rgba(7,24,35,.94),rgba(11,35,47,.84));box-shadow:inset 0 0 30px rgba(26,155,149,.06)}
.operational-solution-calculation>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.85rem;border-bottom:1px solid rgba(153,210,221,.16)}
.operational-solution-calculation>header div{display:grid;gap:.3rem}.operational-solution-calculation>header span,.solution-calculation-primary span,.solution-calculation-evidence span{font-size:.72rem;font-weight:800;letter-spacing:.09em;color:#62dbc2}
.operational-solution-calculation>header strong{font-size:1.08rem;color:#f3f7f8}.operational-solution-calculation>header em{font-style:normal;font-size:.72rem;font-weight:800;letter-spacing:.06em;color:#ffd56e;text-align:right}
.solution-calculation-meters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.9rem 0}.solution-calculation-meters>div{display:grid;grid-template-columns:1fr auto;gap:.35rem;font-size:.8rem;color:#cad8dc}.solution-calculation-meters b{color:#e8fff9}.solution-calculation-meters i{grid-column:1/-1;height:6px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden}.solution-calculation-meters u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#39bda7,#9df4d8)}
.operational-reflex-profile{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem;margin:.8rem 0}.operational-reflex-profile>div{display:grid;gap:.25rem;padding:.65rem;border:1px solid rgba(98,219,194,.19);border-radius:10px;background:rgba(2,13,20,.56)}.operational-reflex-profile>div span{font-size:.66rem;letter-spacing:.08em;color:#8db0b7}.operational-reflex-profile>div b{font-size:1.15rem;color:#9df4d8}.operational-reflex-profile>p{grid-column:1/-1;display:flex;align-items:flex-start;gap:.8rem;margin:0;padding:.7rem .8rem;border:1px solid rgba(255,213,110,.18);border-radius:10px;color:#b8c9cd}.operational-reflex-profile>p strong{min-width:max-content;color:#ffd56e;font-size:.72rem;letter-spacing:.06em}.operational-reflex-profile>p span{line-height:1.45}
.solution-calculation-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.solution-calculation-primary article,.solution-calculation-evidence article{padding:.8rem;border:1px solid rgba(153,210,221,.14);border-radius:12px;background:rgba(3,15,23,.5)}.solution-calculation-primary p{margin:.45rem 0 0;color:#edf5f6;line-height:1.5}
.operational-solution-calculation details{margin-top:.75rem;border-top:1px solid rgba(153,210,221,.13);padding-top:.75rem}.operational-solution-calculation summary{cursor:pointer;color:#dfe9eb;font-weight:700}.solution-calculation-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:.7rem}.solution-calculation-evidence ul{margin:.45rem 0 0;padding-left:1.1rem;color:#b9c8cc}.solution-calculation-evidence li{margin:.3rem 0;line-height:1.4}.solution-calculation-evidence p{color:#b9c8cc}.solution-calculation-boundary{margin:.85rem 0 0;padding:.7rem .8rem;border-left:3px solid #ffd56e;background:rgba(255,213,110,.06);color:#dce7e9;line-height:1.45}
.operational-solution-calculation[data-status="authorized_solution"]{border-color:rgba(74,235,165,.65)}.operational-solution-calculation[data-status="authorized_solution"]>header em{color:#61e9ad}
.operational-solution-calculation>.solution-calculation-toggle{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;cursor:pointer;list-style:none;padding-bottom:.85rem;border-bottom:1px solid rgba(153,210,221,.16)}
.operational-solution-calculation>.solution-calculation-toggle::-webkit-details-marker{display:none}
.solution-calculation-title,.solution-calculation-heading{display:grid;gap:.3rem}.solution-calculation-title>span{font-size:.72rem;font-weight:800;letter-spacing:.09em;color:#62dbc2}.solution-calculation-title>strong{font-size:1.08rem;color:#f3f7f8}.solution-calculation-heading{text-align:right}.solution-calculation-heading em{font-style:normal;font-size:.82rem;font-weight:800;letter-spacing:.06em;color:#ffd56e}.solution-calculation-heading small{font-size:.78rem;color:#dce7e9}.solution-calculation-heading b{font-size:.82rem;color:#9df4d8}.solution-toggle-closed,.operational-solution-calculation:not([open]) .solution-toggle-open{display:none}.operational-solution-calculation:not([open]) .solution-toggle-closed{display:inline}.operational-solution-calculation[data-status="authorized_solution"] .solution-calculation-heading em{color:#61e9ad}
.operational-solution-calculation>.solution-calculation-toggle:hover .solution-calculation-heading b,.operational-solution-calculation>.solution-calculation-toggle:focus-visible .solution-calculation-heading b{text-decoration:underline}.operational-solution-calculation>.solution-calculation-toggle:focus-visible{outline:2px solid #9df4d8;outline-offset:4px;border-radius:4px}
.operational-solution-calculation:not([open])>.solution-calculation-toggle{padding-bottom:0;border-bottom:0}
@media(max-width:820px){.solution-calculation-primary,.solution-calculation-evidence{grid-template-columns:1fr}.operational-solution-calculation>header{display:grid}.operational-solution-calculation>header em{text-align:left}.solution-calculation-meters{grid-template-columns:1fr}.operational-reflex-profile{grid-template-columns:repeat(2,minmax(0,1fr))}.operational-reflex-profile>p{grid-column:1/-1;display:grid}.operational-reflex-profile>div:last-of-type{grid-column:1/-1}}
@media(max-width:820px){.operational-solution-calculation>.solution-calculation-toggle{display:grid}.solution-calculation-heading{text-align:left}}
