@property --presence-hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 198;
}

:root {
  color: #edf5ff;
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background: transparent;
  font-synthesis: none;
  --orb-size: 320px;
  --presence-hue: 198;
  --presence-transition-ms: 1600ms;
  --blade-anchor-x: calc(var(--orb-size) + 48px);
  --blade-anchor-y: 50%;
  transition: --presence-hue var(--presence-transition-ms) cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body { user-select: none; }

#web-runtime-mark { bottom: 32px; }
.runtime-lane {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 8;
  margin: 0;
  padding: 2px 7px;
  transform: translateX(-50%);
  border: 1px solid hsl(38 80% 62% / .45);
  border-radius: 999px;
  color: hsl(38 90% 78% / .92);
  background: hsl(28 40% 12% / .55);
  font-size: 8px;
  letter-spacing: 0.14em;
  pointer-events: none;
}
button, input, select { font: inherit; }

.shell {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.brandbar {
  position: relative;
  z-index: 5;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(112, 173, 236, .09);
}

body[data-view="companion-view"] .brandbar { display: none; }

body:not([data-view="companion-view"]) .shell {
  margin: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 1px solid rgba(100, 178, 255, .17);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 34%, rgba(0, 126, 255, .13), transparent 35%), linear-gradient(145deg, rgba(5, 14, 27, .985), rgba(2, 8, 17, .985));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255,255,255,.045);
}

.brandmark {
  width: 34px;
  height: 38px;
  padding: 4px;
  clip-path: polygon(50% 0, 94% 23%, 94% 74%, 50% 100%, 6% 74%, 6% 23%);
  background: linear-gradient(145deg, #6ed7ff, #286ef6);
}
.brandmark span { display: block; width: 100%; height: 100%; clip-path: inherit; background: #071322; }
.product { margin: 0; font-size: 15px; letter-spacing: .08em; font-weight: 620; }
.product-note { margin: 3px 0 0; color: #778ca4; font-size: 11px; letter-spacing: .04em; }
.window-action { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #7890aa; background: rgba(255,255,255,.025); cursor: pointer; }
.window-action:hover { color: white; background: rgba(98,174,255,.1); }

.loading-view, .error-view { min-height: 490px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 38px; color: #91a4b9; }
.loading-aperture { width: 52px; height: 52px; border: 1px solid #19bfff; border-radius: 50%; box-shadow: 0 0 32px rgba(0,178,255,.26), inset 0 0 18px rgba(0,178,255,.2); }
.create-view, .auth-view { position: relative; z-index: 2; padding: 38px 34px 30px; }
.create-copy { margin-bottom: 30px; }
.eyebrow { margin: 0 0 12px; color: #54c7ff; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; font-weight: 540; letter-spacing: -.025em; }
.create-copy > p:last-child, .error-view p { color: #8ea1b7; line-height: 1.55; font-size: 14px; }
form { display: grid; gap: 10px; }
label { margin-top: 8px; color: #a9b9ca; font-size: 12px; letter-spacing: .04em; }
input, select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(101,166,231,.22); border-radius: 12px; outline: 0; color: white; background: rgba(7,20,36,.9); }
input:focus, select:focus { border-color: #279ef4; box-shadow: 0 0 0 3px rgba(39,158,244,.1); }
.primary, .secondary { height: 48px; margin-top: 12px; border: 0; border-radius: 12px; color: white; background: linear-gradient(135deg, #157de9, #2156c9); cursor: pointer; font-weight: 600; }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { padding: 0 24px; }
.form-error { min-height: 18px; margin: 2px 0 -8px; color: #ff8585; font-size: 12px; }
.foundation-note { margin: 28px 0 0; text-align: center; color: #6d8299; font-size: 12px; }
.shield { color: #31da87; margin-right: 5px; }
.auth-view { text-align: center; }
.auth-view .create-copy { text-align: left; }
.passport-mark { width: 76px; height: 76px; margin: 12px auto 24px; display: grid; place-items: center; border: 1px solid rgba(67,187,255,.34); border-radius: 24px; color: #72d5ff; background: radial-gradient(circle, rgba(26,150,255,.18), rgba(3,13,24,.34) 66%); box-shadow: 0 0 38px rgba(24,143,255,.16), inset 0 1px rgba(255,255,255,.07); font-size: 30px; }
.auth-status { min-height: 36px; margin: 0 0 8px; color: #91a7bc; font-size: 12px; line-height: 1.45; }
.auth-view .primary { width: 100%; }

.companion-view {
  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
}

.status-row {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: none;
  font-size: 8px;
  letter-spacing: .12em;
}
.privacy-badge, .presence-contract { padding: 5px 8px; border-radius: 20px; background: rgba(3,11,20,.72); backdrop-filter: blur(8px); }
.privacy-badge { color: #42db8e; border: 1px solid rgba(59,214,139,.18); }
.presence-contract { color: #6b839c; border: 1px solid rgba(101,166,231,.12); }

.orb-stage {
  width: var(--orb-size);
  height: var(--orb-size);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  isolation: isolate;
  cursor: grab;
  touch-action: none;
}
.orb-stage:active { cursor: grabbing; }
.orb-halo { position: absolute; inset: 8%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(17,132,255,.16), rgba(55,44,160,.07) 43%, transparent 69%); filter: blur(18px); pointer-events: none; }
.orb-ground-shadow {
  position: absolute;
  left: 21%;
  right: 21%;
  bottom: -1%;
  z-index: 1;
  height: 5.8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 8, 18, .32), rgba(0, 8, 18, .08) 52%, transparent 76%);
  opacity: var(--shadow-opacity, .42);
  filter: blur(var(--shadow-blur, 5px));
  transform: scaleX(var(--shadow-scale, 1));
  transform-origin: center;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.orb-composition {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.56));
  transform-origin: 50% 50%;
  transform: translate3d(var(--idle-x, 0px), calc(var(--idle-y, 0px) + var(--presence-lift, 0px)), 0) rotate(var(--idle-rotation, 0deg)) scale(var(--physical-scale, 1));
  pointer-events: auto;
  will-change: transform;
}

.calibration-guides { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.calibration-guides .neutral-height { position: absolute; left: -5%; right: -5%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,178,64,.68) 12% 88%, transparent); box-shadow: 0 0 7px rgba(255,166,45,.24); }
.calibration-guides .neutral-centre { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; z-index: 1; border: 1px solid rgba(255,224,170,.9); border-radius: 50%; background: rgba(255,154,40,.42); box-shadow: 0 0 9px rgba(255,161,46,.56); transform: translate(-50%, -50%); }
.companion-view[data-calibration="true"][data-guides="true"][data-interaction="blade"] .calibration-guides { opacity: 1; }

.orb-layer, .orb-neural-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.orb-layer[data-layer="foundation"] {
  opacity: var(--foundation-opacity, 1);
  filter: hue-rotate(var(--foundation-hue, 0deg)) saturate(var(--foundation-saturation, .9)) brightness(var(--foundation-luminosity, .72));
  transform: translate3d(var(--parallax-foundation-x, 0px), var(--parallax-foundation-y, 0px), 0) rotate(var(--layer-rotation-foundation, 0deg));
}
.orb-layer[data-layer="harness"] {
  filter: brightness(var(--shell-luminosity, .92)) saturate(calc(1 + var(--shell-influence, .04)));
  transform: translate3d(var(--parallax-harness-x, 0px), var(--parallax-harness-y, 0px), 0) rotate(var(--layer-rotation-harness, 0deg));
}
.orb-layer[data-layer="optics"] {
  opacity: var(--reflection-intensity, .66);
  filter: hue-rotate(var(--iris-hue, 0deg)) saturate(calc(.7 + var(--iris-focus, .34))) brightness(calc(var(--reflection-luminosity, .96) * var(--iris-luminosity, .7)));
  mix-blend-mode: screen;
  transform: translate3d(var(--parallax-optics-x, var(--optics-x, 0px)), var(--parallax-optics-y, var(--optics-y, 0px)), 0) rotate(var(--layer-rotation-optics, 0deg));
  will-change: transform;
}
.orb-layer[data-layer="face"] {
  opacity: var(--face-veil-opacity, 1);
  transform: translate3d(var(--parallax-face-x, 0px), var(--parallax-face-y, 0px), 0) rotate(var(--layer-rotation-face, 0deg));
}

.orb-neural-field {
  opacity: calc(var(--neural-activity, .1) * var(--neural-persistence, .8));
  filter: hue-rotate(var(--neural-hue, 0deg)) saturate(calc(.9 + var(--neural-density, .2))) contrast(var(--neural-coherence, 1)) brightness(var(--neural-luminosity, .58));
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 21%, #000 var(--neural-locality, 31%), #000 64%, transparent 78%);
  animation: neural-field-flow var(--neural-speed, 9s) cubic-bezier(.45,.05,.55,.95) infinite alternate;
}

@keyframes neural-field-flow {
  from { transform: translate3d(var(--parallax-foundation-x, 0px), var(--parallax-foundation-y, 0px), 0) rotate(calc(var(--layer-rotation-foundation, 0deg) + var(--neural-randomness, 0deg) * -1)) scale(.998); filter: hue-rotate(var(--neural-hue, 0deg)) saturate(calc(.9 + var(--neural-density, .2))) contrast(var(--neural-coherence, 1)) brightness(calc(var(--neural-luminosity, .58) * var(--neural-pulse-low, 1))); }
  to { transform: translate3d(var(--parallax-foundation-x, 0px), var(--parallax-foundation-y, 0px), 0) rotate(calc(var(--layer-rotation-foundation, 0deg) + var(--neural-randomness, 0deg))) scale(1.002); filter: hue-rotate(var(--neural-hue, 0deg)) saturate(calc(.9 + var(--neural-density, .2))) contrast(var(--neural-coherence, 1)) brightness(calc(var(--neural-luminosity, .58) * var(--neural-pulse-high, 1.05))); }
}

.identity {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 55;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px 14px 10px;
  border: 1px solid rgba(80,151,221,.11);
  border-radius: 18px;
  text-align: center;
  background: rgba(2,9,17,.72);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.identity-name { margin: 0; font-size: 17px; font-weight: 560; letter-spacing: .01em; }
.identity-state { margin: 3px 0 0; color: #71cfff; font-size: 10px; }
.state-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #23b9ff; box-shadow: 0 0 8px #23b9ff; }
.identity-message { margin: 3px 0 0; color: #8fa3b9; font-size: 11px; }
.identity-proof, .foundation-grid { display: none; }

.expression-lab {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid rgba(96,167,235,.12);
  border-radius: 12px;
  background: rgba(2,9,17,.46);
}
.openness-lab {
  width: 100%;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
body[data-lane="desktop-dev"] .openness-lab,
body[data-lane="desktop-dev"] .parallax-lab,
body[data-lane="desktop-dev"] .rotation-lab { display: grid; }
.parallax-lab {
  width: 100%;
  display: none;
  gap: 6px;
}
.parallax-lab label {
  display: grid;
  gap: 3px;
  color: #8fb4ce;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.parallax-depths,
.rotation-planes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rotation-lab {
  width: 100%;
  display: none;
  gap: 6px;
}
.rotation-lab label {
  display: grid;
  gap: 3px;
  color: #8fb4ce;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rotation-lab select {
  width: 100%;
}
.openness-lab label {
  display: grid;
  gap: 3px;
  color: #8fb4ce;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.openness-lab input[type="range"] { width: 100%; }
.openness-readout { color: #c0d5e8; font-size: 8px; letter-spacing: .06em; }
.neural-graph-lab { display: none; margin-top: 9px; padding: 7px 9px; border: 1px solid hsl(var(--presence-hue) 72% 68% / .12); border-radius: 12px; color: #8fa7bc; background: rgba(2,9,17,.35); }
body[data-lane="desktop-dev"] .neural-graph-lab { display: block; }
.neural-graph-lab summary { cursor: pointer; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.neural-graph-lab dl { display: grid; gap: 4px; margin: 8px 0; }
.neural-graph-lab dl div { display: grid; grid-template-columns: 92px 1fr; gap: 6px; min-width: 0; }
.neural-graph-lab dt { color: #617c94; font-size: 7px; }
.neural-graph-lab dd { min-width: 0; margin: 0; overflow: hidden; color: #bcd5ea; font: 7px/1.2 ui-monospace, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.neural-graph-actions { display: grid; gap: 6px; }
.neural-graph-actions button { height: 26px; border: 1px solid hsl(var(--presence-hue) 74% 70% / .22); border-radius: 8px; color: #c5d8e8; background: rgba(4,14,24,.4); font-size: 8px; letter-spacing: .06em; cursor: pointer; }
.neural-graph-status { min-height: 12px; margin: 6px 0 0; color: #7f9bb3; font-size: 8px; }
.identity-context { margin-top: 9px; padding: 7px 9px; border: 1px solid hsl(var(--presence-hue) 72% 68% / .12); border-radius: 12px; color: #8fa7bc; background: rgba(2,9,17,.35); }
.identity-context summary { cursor: pointer; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.identity-context dl { display: grid; gap: 4px; margin: 8px 0; }
.identity-context dl div { display: grid; grid-template-columns: 92px 1fr; gap: 6px; min-width: 0; }
.identity-context dt { color: #617c94; font-size: 7px; }
.identity-context dd { min-width: 0; margin: 0; overflow: hidden; color: #bcd5ea; font: 7px/1.2 ui-monospace, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.identity-actions { display: flex; gap: 6px; }
.identity-actions button { flex: 1; height: 26px; border: 1px solid hsl(var(--presence-hue) 80% 72% / .2); border-radius: 7px; color: hsl(var(--presence-hue) 75% 82% / .82); background: hsl(var(--presence-hue) 45% 22% / .16); cursor: pointer; font-size: 7px; }
.test-expression { height: 28px; padding: 0 10px; border: 1px solid rgba(63,177,255,.25); border-radius: 8px; color: #8ddcff; background: rgba(10,69,119,.18); cursor: pointer; font-size: 8px; letter-spacing: .1em; }
.expression-lab div { display: grid; }
.expression-lab span { color: #c0d5e8; font-size: 9px; letter-spacing: .06em; }
.expression-lab small { color: #52708b; font-size: 7px; white-space: nowrap; }

.motion-lab { margin-top: 8px; padding: 8px; border: 1px solid hsl(var(--presence-hue) 70% 68% / .1); border-radius: 12px; background: rgba(2,9,17,.26); }
.motion-lab-heading { display: flex; align-items: center; gap: 8px; }
.idle-motion-test { height: 28px; padding: 0 10px; border: 1px solid hsl(var(--presence-hue) 90% 70% / .24); border-radius: 8px; color: hsl(var(--presence-hue) 90% 82% / .84); background: hsl(var(--presence-hue) 54% 25% / .14); cursor: pointer; font-size: 8px; letter-spacing: .08em; }
.motion-lab-heading span { color: #728ba2; font-size: 8px; letter-spacing: .05em; }
.calibration-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #d2a662; font-size: 7px; white-space: nowrap; cursor: pointer; }
.calibration-switch input { width: 10px; height: 10px; margin: 0; accent-color: #f0a442; }
.motion-isolation { display: grid; grid-template-columns: .8fr .7fr 1.25fr .8fr; gap: 5px; margin-top: 7px; }
.motion-isolation button { height: 25px; padding: 0 5px; border: 1px solid hsl(var(--presence-hue) 80% 72% / .18); border-radius: 7px; color: #8199af; background: rgba(3,12,22,.3); cursor: pointer; font-size: 6.5px; letter-spacing: .045em; white-space: nowrap; }
.motion-isolation button[aria-pressed="true"] { color: #ffe0ad; border-color: rgba(255,181,74,.5); background: linear-gradient(145deg, rgba(111,62,13,.34), rgba(24,19,16,.34)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 12px rgba(255,156,35,.12); }
.motion-toggles { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 7px; }
.motion-toggles label { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: #7890a8; font-size: 7px; letter-spacing: .025em; cursor: pointer; }
.motion-toggles input { width: 10px; height: 10px; margin: 0; accent-color: hsl(var(--presence-hue) 88% 64%); }
.motion-actions { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.motion-actions label { color: #7890a8; font-size: 7px; white-space: nowrap; }
.motion-actions input { width: 86px; accent-color: hsl(var(--presence-hue) 88% 64%); }
.motion-diagnostics { display: none; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 7px 0 0; padding-top: 7px; border-top: 1px solid rgba(255,181,74,.12); }
.companion-view[data-calibration="true"] .motion-diagnostics { display: grid; }
.motion-diagnostics div { min-width: 0; padding: 4px 5px; border-radius: 6px; background: rgba(1,8,15,.28); }
.motion-diagnostics dt { color: #687f94; font-size: 6.5px; letter-spacing: .035em; white-space: nowrap; }
.motion-diagnostics dd { margin: 2px 0 0; color: #ffd99b; font: 8px/1.1 ui-monospace, Consolas, monospace; }

.presence-halo {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.halo-node {
  position: absolute;
  left: var(--halo-x);
  top: var(--halo-y);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(218, 236, 250, .3);
  border-radius: 50%;
  outline: 0;
  color: hsl(var(--presence-hue) 84% 88% / .78);
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 38, 54, .46), rgba(1, 7, 14, .38));
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 4px 13px rgba(0,0,0,.42), 0 0 13px hsl(var(--presence-hue) 95% 58% / .07);
  backdrop-filter: blur(18px) saturate(118%);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-50% - var(--halo-travel-x)), calc(-50% - var(--halo-travel-y)));
  scale: .94;
  transition: opacity 260ms ease, transform 300ms cubic-bezier(.22,.61,.36,1), scale 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  transition-delay: var(--halo-delay, 0ms);
}

.companion-view[data-halo-phase="faint"] .halo-node {
  opacity: .36;
  pointer-events: auto;
  transform: translate(calc(-50% - var(--halo-faint-x)), calc(-50% - var(--halo-faint-y)));
  scale: .97;
}
.companion-view[data-halo-phase="present"] .halo-node {
  opacity: .75;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  scale: 1;
}
.halo-node span { font-size: 16px; line-height: 1; opacity: .78; text-shadow: 0 1px 3px rgba(0,0,0,.72); }
.conversation-node { cursor: pointer; }
.halo-node:hover, .halo-node:focus-visible {
  opacity: 1;
  color: hsl(var(--presence-hue) 98% 89% / .96);
  border-color: rgba(236, 247, 255, .58);
  background:
    radial-gradient(circle at 38% 30%, hsl(var(--presence-hue) 100% 84% / .18), transparent 42%),
    linear-gradient(145deg, rgba(30, 47, 65, .54), rgba(2, 9, 17, .44));
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 5px 15px rgba(0,0,0,.46), 0 0 20px hsl(var(--presence-hue) 96% 60% / .19);
  scale: 1.06;
}
.halo-node:hover span, .halo-node:focus-visible span { opacity: 1; }
.conversation-node[aria-expanded="true"] {
  opacity: 1;
  color: hsl(var(--presence-hue) 100% 92% / 1);
  border-color: hsl(var(--presence-hue) 100% 79% / .76);
  background:
    radial-gradient(circle at 40% 34%, hsl(var(--presence-hue) 100% 75% / .25), transparent 46%),
    linear-gradient(145deg, rgba(31, 50, 69, .58), rgba(2, 9, 17, .46));
  box-shadow: inset 0 1px rgba(255,255,255,.23), 0 5px 16px rgba(0,0,0,.48), 0 0 25px hsl(var(--presence-hue) 100% 62% / .32);
  scale: 1.06;
}
.conversation-node[aria-expanded="true"] span { opacity: 1; }

.halo-node[aria-disabled="true"] { cursor: default; }
.identity-required {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: grid;
  gap: 8px;
  min-width: 168px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--presence-hue) 70% 70% / .22);
  border-radius: 16px;
  background: hsl(210 28% 8% / .42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  color: #d7e7f4;
  text-align: center;
}
.identity-required[hidden] { display: none; }
.identity-required p { margin: 0; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #9fb6c9; }
.identity-required button {
  height: 28px;
  border: 1px solid hsl(var(--presence-hue) 80% 72% / .28);
  border-radius: 8px;
  color: hsl(var(--presence-hue) 80% 88%);
  background: hsl(var(--presence-hue) 40% 20% / .28);
  cursor: pointer;
  font-size: 11px;
}

.presence-blade {
  --glass-x: 50%;
  --glass-y: 50%;
  position: absolute;
  top: var(--blade-anchor-y);
  left: var(--blade-anchor-x);
  z-index: 40;
  width: 342px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-24px, -20px) scaleX(.94);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 280ms;
}
.companion-view[data-interaction="blade"] .presence-blade {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -20px) scaleX(1);
  transition-delay: 0s;
}
.blade-surface {
  position: relative;
  margin-right: 12px;
  padding: 14px;
  border: 1px solid hsl(var(--presence-hue) 92% 72% / .18);
  border-left-color: hsl(var(--presence-hue) 98% 70% / .36);
  border-radius: 5px 19px 19px 5px;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), hsl(var(--presence-hue) 94% 66% / .11), transparent 42%),
    linear-gradient(145deg, rgba(8,18,31,.54), rgba(1,7,14,.34));
  box-shadow: inset 0 1px rgba(255,255,255,.055), 18px 18px 45px rgba(0,0,0,.28), 0 0 24px hsl(var(--presence-hue) 96% 52% / .045);
  backdrop-filter: blur(30px) saturate(128%);
}
.blade-surface::before { content: ""; position: absolute; top: 20px; left: -18px; width: 18px; height: 1px; background: linear-gradient(90deg, hsl(var(--presence-hue) 90% 72% / .4), hsl(var(--presence-hue) 90% 72% / .12)); transform: translateY(-50%); }
.blade-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.blade-form input { height: 42px; border-color: hsl(var(--presence-hue) 74% 70% / .18); border-radius: 11px; background: rgba(1,8,16,.32); backdrop-filter: blur(12px); }
.blade-submit { width: 42px; height: 42px; border: 1px solid hsl(var(--presence-hue) 92% 72% / .26); border-radius: 50%; color: hsl(var(--presence-hue) 90% 80% / .85); background: hsl(var(--presence-hue) 60% 24% / .18); cursor: pointer; }
.blade-submit:disabled { opacity: .42; cursor: wait; }
.blade-response { max-height: 180px; margin: 10px 2px 0; overflow-y: auto; color: #cad7e4; font-size: 12px; line-height: 1.5; user-select: text; white-space: pre-wrap; }
.blade-response:empty { display: none; }
.blade-status { min-height: 14px; margin: 6px 2px 0; color: #64819b; font-size: 9px; }

.error-view h1 { margin-top: 20px; font-size: 23px; }
.error-glyph { color: #ffbd4f; font-size: 44px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .orb-neural-field { opacity: calc(var(--neural-activity, .1) * .78); }
  .orb-composition, .orb-layer, .orb-neural-field { transform: none !important; }
  .orb-ground-shadow { opacity: .42 !important; filter: blur(5px) !important; transform: none !important; }
}

.companion-view[data-reduced-motion="true"] .orb-composition,
.companion-view[data-reduced-motion="true"] .orb-layer,
.companion-view[data-reduced-motion="true"] .orb-neural-field { transform: none !important; }
.companion-view[data-reduced-motion="true"] .orb-ground-shadow { opacity: .42 !important; filter: blur(5px) !important; transform: none !important; }
