:root {
  --bg: #020506;
  --bg-2: #070d0f;
  --panel: rgba(5, 14, 17, 0.86);
  --panel-strong: rgba(8, 22, 26, 0.93);
  --panel-soft: rgba(0, 245, 255, 0.045);
  --line: rgba(0, 245, 255, 0.28);
  --line-soft: rgba(0, 245, 255, 0.13);
  --cyan: #00f6ff;
  --cyan-soft: #0bbdca;
  --cyan-dim: rgba(0, 245, 255, 0.2);
  --cyan-ghost: rgba(0, 245, 255, 0.075);
  --glass: rgba(217, 251, 255, 0.075);
  --text: #d9fbff;
  --muted: #6d949c;
  --muted-2: #42666d;
  --danger: #ff4d6d;
  --ok: #38ffb3;
  --warn: #ffc857;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 246, 255, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(0, 246, 255, 0.13), transparent 36%),
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0) 0 42%, rgba(0, 0, 0, 0.42) 72%),
    linear-gradient(135deg, #020506 0%, #071114 48%, #030607 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(0, 246, 255, 0.18) 11.15%, transparent 11.32%),
    linear-gradient(90deg, transparent 0 88%, rgba(0, 246, 255, 0.12) 88.15%, transparent 88.32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 5px);
  opacity: 0.72;
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.48)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 14%, transparent 84%, rgba(0, 0, 0, 0.58));
}

button,
input,
select {
  font: inherit;
}

.console {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(460px, 1.62fr) minmax(260px, 0.9fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.hud-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.hud-stage::before,
.hud-stage::after,
.hud-reticle,
.hud-ring,
.hud-axis,
.hud-scan {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hud-stage::before {
  width: min(74vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -11deg, rgba(0, 246, 255, 0.08) 0 1deg, transparent 1deg 8deg),
    radial-gradient(circle, transparent 0 47%, rgba(0, 246, 255, 0.055) 48% 49%, transparent 50% 59%, rgba(0, 246, 255, 0.06) 60% 61%, transparent 62%);
  opacity: 0.8;
  filter: drop-shadow(0 0 28px rgba(0, 246, 255, 0.12));
}

.hud-stage::after {
  inset: 5% 7%;
  border: 1px solid rgba(0, 246, 255, 0.08);
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(0, 246, 255, 0.09) 8% 8.12%, transparent 8.12% 92%, rgba(0, 246, 255, 0.09) 92% 92.12%, transparent 92.12%),
    linear-gradient(0deg, transparent 0 9%, rgba(0, 246, 255, 0.06) 9% 9.12%, transparent 9.12% 91%, rgba(0, 246, 255, 0.06) 91% 91.12%, transparent 91.12%);
}

.hud-reticle {
  width: min(55vw, 690px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 246, 255, 0.17);
  box-shadow:
    inset 0 0 0 38px rgba(0, 246, 255, 0.014),
    inset 0 0 0 92px rgba(217, 251, 255, 0.011),
    0 0 52px rgba(0, 246, 255, 0.08);
}

.hud-ring {
  border-radius: 50%;
  border: 1px solid transparent;
}

.hud-ring-outer {
  width: min(66vw, 820px);
  aspect-ratio: 1;
  border-top-color: rgba(0, 246, 255, 0.28);
  border-right-color: rgba(0, 246, 255, 0.08);
  border-bottom-color: rgba(0, 246, 255, 0.18);
  animation: rotate 48s linear infinite;
}

.hud-ring-mid {
  width: min(45vw, 560px);
  aspect-ratio: 1;
  border-left-color: rgba(0, 246, 255, 0.32);
  border-bottom-color: rgba(0, 246, 255, 0.1);
  animation: rotate 31s linear reverse infinite;
}

.hud-ring-inner {
  width: min(26vw, 330px);
  aspect-ratio: 1;
  border-color: rgba(0, 246, 255, 0.16);
  border-right-color: transparent;
}

.hud-axis {
  background: linear-gradient(90deg, transparent, rgba(0, 246, 255, 0.2), transparent);
  opacity: 0.5;
}

.axis-x {
  width: min(80vw, 980px);
  height: 1px;
}

.axis-y {
  width: 1px;
  height: min(82vh, 820px);
  background: linear-gradient(0deg, transparent, rgba(0, 246, 255, 0.16), transparent);
}

.hud-scan {
  width: min(68vw, 860px);
  height: 26vh;
  border-top: 1px solid rgba(0, 246, 255, 0.1);
  border-bottom: 1px solid rgba(0, 246, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 246, 255, 0.035), transparent);
  transform: translateY(-18vh);
  animation: scan-drift 6.4s ease-in-out infinite alternate;
}

.hud-corner {
  width: min(18vw, 180px);
  height: min(18vw, 180px);
  opacity: 0.78;
}

.corner-a {
  top: 18px;
  left: 18px;
  border-top: 2px solid rgba(0, 246, 255, 0.66);
  border-left: 2px solid rgba(0, 246, 255, 0.66);
}

.corner-b {
  top: 18px;
  right: 18px;
  border-top: 2px solid rgba(0, 246, 255, 0.46);
  border-right: 2px solid rgba(0, 246, 255, 0.46);
}

.corner-c {
  right: 18px;
  bottom: 18px;
  border-right: 2px solid rgba(0, 246, 255, 0.3);
  border-bottom: 2px solid rgba(0, 246, 255, 0.3);
}

.corner-d {
  bottom: 18px;
  left: 18px;
  border-bottom: 2px solid rgba(0, 246, 255, 0.42);
  border-left: 2px solid rgba(0, 246, 255, 0.42);
}

.rail,
.core-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-left {
  padding-left: 8px;
  border-left: 3px solid rgba(0, 246, 255, 0.62);
}

.rail-right {
  padding-right: 8px;
  border-right: 2px solid rgba(0, 246, 255, 0.34);
}

.panel,
.transcript,
.command-matrix,
.report-viewer,
.telemetry-viewer,
.input-dock,
.topline {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 246, 255, 0.07), transparent 38%),
    linear-gradient(90deg, rgba(217, 251, 255, 0.04), transparent 22% 78%, rgba(0, 246, 255, 0.03)),
    linear-gradient(180deg, var(--panel-strong), rgba(2, 5, 6, 0.88));
  box-shadow:
    inset 0 0 22px rgba(0, 246, 255, 0.055),
    inset 0 1px 0 rgba(217, 251, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.panel::before,
.transcript::before,
.command-matrix::before,
.report-viewer::before,
.telemetry-viewer::before,
.input-dock::before,
.topline::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  width: 46px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 74px 0 0 rgba(0, 246, 255, 0.38);
}

.panel {
  overflow: hidden;
  padding: 14px;
  border-radius: 2px;
}

.panel::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(0, 246, 255, 0.42);
  border-bottom: 1px solid rgba(0, 246, 255, 0.42);
  pointer-events: none;
}

.rail-left .panel,
.rail-right .panel {
  backdrop-filter: blur(10px);
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.panel h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-dim);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-titlebar h2 {
  margin: 0;
}

.panel-titlebar button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.62rem;
}

.date-block {
  position: relative;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 2px 0 4px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background:
    radial-gradient(circle, rgba(0, 246, 255, 0.12) 0 28%, transparent 29%),
    conic-gradient(from 18deg, transparent 0 12%, rgba(0, 246, 255, 0.75) 12% 18%, transparent 18% 48%, rgba(0, 246, 255, 0.34) 48% 54%, transparent 54%);
  box-shadow:
    0 0 24px var(--cyan-dim),
    inset 0 0 20px rgba(0, 246, 255, 0.13);
  text-transform: uppercase;
}

.date-block::before,
.date-block::after,
.date-orbit {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.date-block::before {
  inset: 10px;
  border: 1px solid rgba(0, 246, 255, 0.42);
}

.date-block::after {
  inset: -7px;
  border: 1px solid rgba(0, 246, 255, 0.18);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.date-orbit {
  inset: 22px;
  border: 1px dashed rgba(217, 251, 255, 0.26);
}

.date-block span,
.date-block strong {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
}

.date-block span {
  font-size: 0.68rem;
  color: var(--cyan-soft);
}

.date-block strong {
  margin: -10px 0;
  color: var(--text);
  font-size: 2.2rem;
  text-shadow: 0 0 14px rgba(0, 246, 255, 0.42);
}

dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(74px, auto) 1fr;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(0, 246, 255, 0.09);
}

dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.7rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.micro-radar {
  position: relative;
  width: 92px;
  height: 92px;
  align-self: center;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 246, 255, 0.18) 0 12%, transparent 13% 32%, rgba(0, 246, 255, 0.08) 33% 35%, transparent 36%),
    conic-gradient(from 0deg, rgba(0, 246, 255, 0.76), transparent 22%, rgba(0, 246, 255, 0.34) 42%, transparent 66%, rgba(0, 246, 255, 0.72));
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.22);
}

.micro-radar::before {
  content: "OPS";
  position: absolute;
  inset: 31px 0 auto;
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.micro-radar span,
.micro-radar i,
.micro-radar b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.micro-radar span {
  inset: 13px;
  border: 1px dashed rgba(217, 251, 255, 0.22);
}

.micro-radar i {
  inset: 28px;
  border: 1px solid rgba(0, 246, 255, 0.44);
}

.micro-radar b {
  top: 11px;
  left: 43px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.meter-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 166px;
}

.meter-stack div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(0, 246, 255, 0.08) 9px 10px),
    rgba(0, 246, 255, 0.026);
}

.meter-stack span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 24px;
  background: linear-gradient(0deg, rgba(11, 189, 202, 0.72), var(--cyan));
  box-shadow: 0 0 14px var(--cyan-dim);
}

.meter-stack label {
  position: absolute;
  bottom: 7px;
  width: 100%;
  color: var(--muted);
  font-size: 0.58rem;
  text-align: center;
}

.core-zone {
  display: grid;
  grid-template-rows: auto auto auto minmax(104px, 0.22fr) minmax(132px, 0.28fr) minmax(108px, 0.18fr) auto;
  gap: 14px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 2px;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.topline span,
.topline a,
.runtime-picker {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topline a,
.button-link,
.mini-link,
.command-link {
  color: var(--cyan-soft);
  text-decoration: none;
}

.topline-link,
.mini-link {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(0, 246, 255, 0.22);
  background: rgba(0, 246, 255, 0.026);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.runtime-picker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.runtime-picker span {
  color: var(--muted);
  font-size: 0.6rem;
  text-transform: uppercase;
}

select {
  min-height: 28px;
  color: var(--text);
  border: 1px solid rgba(0, 246, 255, 0.28);
  border-radius: 2px;
  background: rgba(0, 246, 255, 0.055);
  padding: 0 8px;
  outline: none;
}

.core-wrap {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  min-height: 0;
  padding: 8px 0 0;
  isolation: isolate;
}

.signal-grid {
  position: absolute;
  inset: 7% 4% 18%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: min(2vw, 18px);
  opacity: 0.5;
  pointer-events: none;
}

.signal-grid span {
  position: relative;
  min-height: 24px;
  border-top: 1px solid rgba(0, 246, 255, 0.18);
  border-bottom: 1px solid rgba(0, 246, 255, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(0, 246, 255, 0.12) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(0, 246, 255, 0.045), transparent);
}

.signal-grid span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 32%;
  height: 1px;
  background: rgba(0, 246, 255, 0.42);
}

.core-wrap::before,
.core-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(16vw, 148px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 246, 255, 0.5));
}

.core-wrap::before {
  left: 0;
}

.core-wrap::after {
  right: 0;
  transform: rotate(180deg);
}

.core-halo {
  position: absolute;
  inset: -6px 0 42px;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.core-halo::before,
.core-halo::after {
  content: "";
  position: absolute;
  width: min(96%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.core-halo::before {
  border: 1px solid rgba(0, 246, 255, 0.16);
  box-shadow:
    0 0 0 24px rgba(0, 246, 255, 0.012),
    0 0 0 56px rgba(0, 246, 255, 0.008),
    0 0 46px rgba(0, 246, 255, 0.08);
}

.core-halo::after {
  width: min(84%, 500px);
  background:
    linear-gradient(rgba(0, 246, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, transparent 0 40%, #000 41% 62%, transparent 63%);
}

.core-halo span {
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.core-halo span:nth-child(1) {
  top: 4%;
  left: 16%;
  border-top: 2px solid rgba(0, 246, 255, 0.36);
  border-left: 2px solid rgba(0, 246, 255, 0.36);
}

.core-halo span:nth-child(2) {
  top: 4%;
  right: 16%;
  border-top: 2px solid rgba(0, 246, 255, 0.36);
  border-right: 2px solid rgba(0, 246, 255, 0.36);
}

.core-halo span:nth-child(3) {
  right: 16%;
  bottom: 4%;
  border-right: 2px solid rgba(0, 246, 255, 0.36);
  border-bottom: 2px solid rgba(0, 246, 255, 0.36);
}

.core-halo span:nth-child(4) {
  bottom: 4%;
  left: 16%;
  border-bottom: 2px solid rgba(0, 246, 255, 0.36);
  border-left: 2px solid rgba(0, 246, 255, 0.36);
}

.core {
  position: relative;
  z-index: 1;
  width: min(88%, 420px);
  min-width: 330px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(2, 5, 6, 0.92) 0 22%, transparent 23%),
    radial-gradient(circle, rgba(0, 246, 255, 0.16) 0 28%, transparent 29% 39%, rgba(0, 246, 255, 0.09) 40% 41%, transparent 42%),
    repeating-conic-gradient(from 2deg, rgba(217, 251, 255, 0.18) 0deg 1.5deg, transparent 1.5deg 7deg),
    conic-gradient(from -18deg, transparent 0 6%, rgba(0, 246, 255, 0.84) 6% 9%, transparent 9% 21%, rgba(56, 255, 179, 0.2) 21% 25%, transparent 25% 52%, rgba(0, 246, 255, 0.84) 52% 56%, transparent 56%);
  box-shadow:
    0 0 44px rgba(0, 246, 255, 0.22),
    0 0 0 13px rgba(0, 246, 255, 0.016),
    inset 0 0 32px rgba(0, 246, 255, 0.12),
    inset 0 0 0 1px rgba(0, 246, 255, 0.32);
}

.connector-lattice {
  position: absolute;
  inset: -16px 0 108px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.connector-lattice::before,
.connector-lattice::after {
  content: "";
  position: absolute;
  width: min(96%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.connector-lattice::before {
  border: 1px solid rgba(0, 246, 255, 0.12);
  background:
    repeating-conic-gradient(from 0deg, transparent 0 10deg, rgba(0, 246, 255, 0.11) 10deg 10.8deg),
    radial-gradient(circle, transparent 0 64%, rgba(0, 246, 255, 0.035) 65% 66%, transparent 67%);
}

.connector-lattice::after {
  width: min(83%, 486px);
  border: 1px dashed rgba(217, 251, 255, 0.12);
}

.lattice-node {
  position: absolute;
  left: calc(50% - 54px);
  top: calc(50% - 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 108px;
  min-height: 48px;
  overflow: hidden;
  padding: 6px 8px;
  pointer-events: auto;
  text-align: left;
  transform:
    rotate(var(--node-angle))
    translateY(clamp(-218px, -23vw, -160px))
    rotate(calc(var(--node-angle) * -1));
}

.lattice-node::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.62);
}

.lattice-node::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 22px;
  height: 1px;
  background: rgba(0, 246, 255, 0.56);
  box-shadow: 0 -5px 0 rgba(0, 246, 255, 0.17);
}

.lattice-node strong,
.lattice-node span,
.lattice-node em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lattice-node strong {
  grid-column: 1 / -1;
  padding-left: 13px;
  color: var(--text);
  font-size: 0.62rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.lattice-node span,
.lattice-node em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.54rem;
  font-style: normal;
  text-transform: uppercase;
}

.lattice-node em {
  justify-self: end;
  color: var(--cyan-soft);
}

.lattice-node.active-route {
  color: var(--text);
  border-color: rgba(56, 255, 179, 0.78);
  background:
    linear-gradient(90deg, rgba(56, 255, 179, 0.14), rgba(0, 246, 255, 0.035)),
    rgba(2, 5, 6, 0.82);
  box-shadow:
    inset 0 0 16px rgba(56, 255, 179, 0.1),
    0 0 18px rgba(56, 255, 179, 0.12);
}

.lattice-node.active-route::before {
  background: var(--ok);
  box-shadow: 0 0 12px rgba(56, 255, 179, 0.62);
}

.lattice-empty {
  width: min(76%, 360px);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  background: rgba(255, 200, 87, 0.035);
  color: var(--warn);
  font-size: 0.64rem;
  text-align: center;
  text-transform: uppercase;
}

.core::before,
.core::after,
.core-ring,
.core-grid,
.core-sweep,
.core-ticks,
.orbit-node {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.core::before {
  inset: 7%;
  border: 1px dashed rgba(217, 251, 255, 0.24);
  box-shadow: inset 0 0 0 22px rgba(0, 246, 255, 0.018);
}

.core::after {
  inset: 19%;
  border: 1px solid rgba(0, 246, 255, 0.26);
  box-shadow:
    inset 0 0 18px rgba(0, 246, 255, 0.1),
    0 0 0 18px rgba(0, 246, 255, 0.018);
}

.core-grid {
  inset: 24%;
  background:
    linear-gradient(rgba(0, 246, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.13) 1px, transparent 1px),
    radial-gradient(circle, transparent 0 40%, rgba(0, 246, 255, 0.08) 41%, transparent 42%);
  background-size: 18px 18px, 18px 18px, auto;
  mask-image: radial-gradient(circle, #000 0 62%, transparent 63%);
  opacity: 0.55;
}

.core-sweep {
  inset: 12%;
  background: conic-gradient(from 0deg, rgba(0, 246, 255, 0.28), transparent 23%);
  opacity: 0.48;
  animation: rotate 7s linear infinite;
}

.ring-a {
  inset: 11%;
  border: 9px solid transparent;
  border-top-color: rgba(0, 246, 255, 0.9);
  border-right-color: rgba(0, 246, 255, 0.18);
  border-bottom-color: rgba(0, 246, 255, 0.36);
  animation: rotate 18s linear infinite;
}

.ring-b {
  inset: 28%;
  border: 2px solid transparent;
  border-left-color: rgba(0, 246, 255, 0.9);
  border-right-color: rgba(0, 246, 255, 0.4);
  animation: rotate 9s linear reverse infinite;
}

.ring-c {
  inset: 4%;
  border: 1px solid rgba(217, 251, 255, 0.2);
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: rotate 32s linear reverse infinite;
}

.core-ticks {
  inset: 0;
}

.core-ticks span {
  position: absolute;
  top: 4%;
  left: calc(50% - 1px);
  width: 2px;
  height: 9%;
  background: linear-gradient(var(--cyan), transparent);
  transform: rotate(calc(var(--tick) * 30deg));
  transform-origin: 1px 511%;
  opacity: 0.62;
}

.orbit-node {
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan-soft);
  background: var(--bg-2);
  box-shadow: 0 0 14px var(--cyan-dim);
}

.node-a {
  top: 13%;
  left: 49%;
}

.node-b {
  top: 50%;
  right: 10%;
}

.node-c {
  bottom: 10%;
  left: 50%;
}

.node-d {
  top: 50%;
  left: 10%;
}

.core-center {
  position: absolute;
  inset: 34%;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 116px;
  min-height: 116px;
  border: 1px solid rgba(0, 246, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 251, 255, 0.07), transparent 55%),
    rgba(2, 5, 6, 0.74);
  text-align: center;
  box-shadow:
    inset 0 0 18px rgba(0, 246, 255, 0.12),
    0 0 22px rgba(0, 246, 255, 0.1);
}

.kicker {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

#core-state {
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 16px rgba(0, 246, 255, 0.52);
}

#core-subtitle {
  max-width: 116px;
  overflow: hidden;
  color: var(--cyan-soft);
  font-size: 0.64rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wave {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 18px;
  margin-top: 6px;
}

.wave i {
  display: block;
  width: 3px;
  height: 5px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 246, 255, 0.42);
  opacity: 0.48;
}

.core-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.core-legend span {
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border-top: 1px solid rgba(0, 246, 255, 0.2);
  background: linear-gradient(90deg, transparent, rgba(0, 246, 255, 0.035), transparent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-ribbon,
.route-ribbon,
.mission-readout {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin-top: 10px;
}

.status-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-ribbon {
  grid-template-columns: 1fr 1.35fr 1fr;
}

.mission-readout {
  grid-template-columns: 1.25fr 0.8fr 1.25fr;
}

.status-ribbon span,
.route-ribbon span,
.mission-readout span {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 8px 8px 7px;
  border: 1px solid rgba(0, 246, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(0, 246, 255, 0.07), transparent 72%),
    rgba(0, 246, 255, 0.018);
}

.status-ribbon span::before,
.route-ribbon span::before,
.mission-readout span::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(0, 246, 255, 0.54);
}

.status-ribbon strong,
.status-ribbon em,
.route-ribbon strong,
.route-ribbon em,
.mission-readout strong,
.mission-readout em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-ribbon strong,
.route-ribbon strong,
.mission-readout strong {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-ribbon em,
.route-ribbon em,
.mission-readout em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  text-transform: uppercase;
}

.route-ribbon span {
  border-color: rgba(56, 255, 179, 0.18);
  background:
    linear-gradient(90deg, rgba(56, 255, 179, 0.06), transparent 72%),
    rgba(0, 246, 255, 0.018);
}

.mission-readout span {
  border-color: rgba(217, 251, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(217, 251, 255, 0.045), transparent 68%),
    rgba(0, 246, 255, 0.014);
}

.mission-readout span::before {
  background: var(--cyan-soft);
  opacity: 0.72;
}

[data-route-category="write"] .route-ribbon span,
[data-route-category="write"] .core {
  border-color: rgba(255, 200, 87, 0.5);
}

[data-route-category="write"] .route-ribbon span::before,
[data-route-category="write"] .orbit-node {
  background: var(--warn);
  border-color: var(--warn);
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.44);
}

[data-route-category="blocked"] .route-ribbon span,
[data-route-category="destructive"] .route-ribbon span,
[data-route-category="blocked"] .core,
[data-route-category="destructive"] .core {
  border-color: rgba(255, 77, 109, 0.58);
}

[data-route-category="blocked"] .route-ribbon span::before,
[data-route-category="destructive"] .route-ribbon span::before,
[data-route-category="blocked"] .orbit-node,
[data-route-category="destructive"] .orbit-node {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.44);
}

.command-matrix {
  overflow: hidden;
  padding: 11px;
  border-radius: 2px;
}

.command-matrix header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.command-matrix header span,
.command-matrix header em,
.scope-line span {
  color: var(--muted);
  font-size: 0.6rem;
  font-style: normal;
  text-transform: uppercase;
}

.command-matrix header strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.command-matrix header em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(0, 246, 255, 0.18);
  background: rgba(0, 246, 255, 0.035);
  color: var(--cyan-soft);
}

.command-actions,
.intent-grid,
.scope-line {
  display: grid;
  min-width: 0;
}

.command-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.command-actions-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-actions button,
.command-link {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 54px;
  overflow: hidden;
  padding: 8px 9px;
  border: 1px solid rgba(0, 246, 255, 0.28);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0, 246, 255, 0.055), rgba(0, 246, 255, 0.018));
  text-align: left;
}

.command-actions button::after,
.command-link::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 20px;
  height: 1px;
  background: var(--cyan-soft);
  box-shadow: 0 -5px 0 rgba(0, 246, 255, 0.18);
}

.command-actions strong,
.command-actions span,
.command-link strong,
.command-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-actions strong,
.command-link strong {
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.command-actions span,
.command-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.intent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.intent-grid button {
  min-height: 30px;
  overflow: hidden;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.scope-line {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.scope-line span {
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border-top: 1px solid rgba(0, 246, 255, 0.12);
  background: rgba(0, 246, 255, 0.02);
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-state="thinking"] .ring-b,
[data-state="speaking"] .ring-b {
  animation-duration: 2.8s;
}

[data-state="thinking"] .core-sweep,
[data-state="speaking"] .core-sweep {
  animation-duration: 2.8s;
  opacity: 0.68;
}

[data-state="listening"] .core {
  animation: pulse 1.6s ease-in-out infinite;
}

[data-state="speaking"] .wave i {
  animation: wave 0.7s ease-in-out infinite alternate;
}

[data-state="error"] .core {
  box-shadow:
    0 0 34px rgba(255, 77, 109, 0.28),
    inset 0 0 26px rgba(255, 77, 109, 0.12);
}

[data-state="error"] #core-state {
  color: var(--danger);
}

.transcript {
  overflow: auto;
  padding: 12px;
  border-radius: 2px;
  scrollbar-color: rgba(0, 246, 255, 0.46) rgba(0, 246, 255, 0.05);
}

.transcript:empty::after {
  content: "Awaiting local telemetry...";
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.report-viewer {
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
}

.report-viewer header,
.telemetry-viewer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 246, 255, 0.14);
  background: rgba(0, 246, 255, 0.035);
}

.report-viewer h2,
.telemetry-viewer h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.report-viewer span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-viewer pre {
  height: calc(100% - 38px);
  margin: 0;
  overflow: auto;
  padding: 13px;
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1.5;
  scrollbar-color: rgba(0, 246, 255, 0.46) rgba(0, 246, 255, 0.05);
  white-space: pre-wrap;
}

.telemetry-viewer {
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
}

.telemetry-viewer button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.62rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 8px;
  height: calc(100% - 38px);
  overflow: auto;
  padding: 10px;
}

.telemetry-grid p,
.telemetry-grid article {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.14);
  background: rgba(0, 246, 255, 0.025);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.telemetry-grid strong {
  color: var(--text);
}

.telemetry-list {
  display: grid;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 76px 74px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 246, 255, 0.08);
  font-size: 0.73rem;
  animation: row-in 0.18s ease-out;
}

.row time,
.row span {
  color: var(--muted);
}

.row strong {
  color: var(--cyan);
  font-weight: 700;
}

.row p {
  min-width: 0;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.input-dock {
  display: grid;
  grid-template-columns: auto 1fr 54px;
  gap: 10px;
  padding: 10px;
  border-radius: 2px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, auto));
  gap: 5px;
}

button {
  min-height: 34px;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 246, 255, 0.28);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(0, 246, 255, 0.055), rgba(0, 246, 255, 0.018));
  cursor: pointer;
}

button:hover,
button:focus-visible,
button.active {
  color: var(--text);
  border-color: rgba(0, 246, 255, 0.78);
  outline: none;
  box-shadow:
    inset 0 0 12px rgba(0, 246, 255, 0.12),
    0 0 14px rgba(0, 246, 255, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(0, 246, 255, 0.22);
  border-radius: 2px;
  background: rgba(0, 246, 255, 0.04);
  padding: 0 12px;
  outline: none;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.14);
}

.module-list,
.queue {
  display: grid;
  gap: 8px;
}

.connector-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.runtime-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.runtime-strip span {
  min-width: 0;
  overflow: hidden;
  padding: 6px 7px;
  border: 1px solid rgba(0, 246, 255, 0.16);
  background: rgba(0, 246, 255, 0.025);
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.identity-dial {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 112px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(0, 246, 255, 0.34);
  background:
    radial-gradient(circle at 47px 50%, rgba(0, 246, 255, 0.2), transparent 34px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.07), transparent 72%),
    rgba(2, 5, 6, 0.84);
  box-shadow:
    inset 0 0 24px rgba(0, 246, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.identity-dial::before,
.identity-dial::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.identity-dial::before {
  top: 16px;
  right: 14px;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.identity-dial::after {
  right: 18px;
  bottom: 16px;
  width: 34%;
  height: 30px;
  border-right: 1px solid rgba(0, 246, 255, 0.42);
  border-bottom: 1px solid rgba(0, 246, 255, 0.42);
}

.identity-lens {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background:
    radial-gradient(circle, rgba(217, 251, 255, 0.7) 0 8%, rgba(0, 246, 255, 0.28) 9% 17%, transparent 18%),
    repeating-conic-gradient(from 12deg, rgba(0, 246, 255, 0.88) 0 5deg, transparent 5deg 16deg),
    radial-gradient(circle, rgba(0, 246, 255, 0.12) 0 44%, transparent 45%);
  box-shadow:
    0 0 22px rgba(0, 246, 255, 0.28),
    inset 0 0 19px rgba(0, 246, 255, 0.14);
}

.identity-lens span,
.identity-lens i,
.identity-lens b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.identity-lens span {
  inset: 10px;
  border: 1px dashed rgba(217, 251, 255, 0.3);
  animation: rotate 24s linear infinite;
}

.identity-lens i {
  inset: 24px;
  border: 1px solid rgba(0, 246, 255, 0.52);
}

.identity-lens b {
  top: 8px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--text);
  box-shadow: 0 0 10px var(--cyan);
}

.identity-dial strong,
.identity-dial span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-dial strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 13px rgba(0, 246, 255, 0.42);
}

.identity-dial span {
  margin-top: 7px;
  color: var(--cyan-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.module,
.queue p,
.approval-card {
  position: relative;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(0, 246, 255, 0.15);
  border-left: 3px solid rgba(0, 246, 255, 0.38);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(0, 246, 255, 0.085), transparent 42%),
    linear-gradient(180deg, rgba(217, 251, 255, 0.035), transparent),
    rgba(0, 246, 255, 0.024);
  font-size: 0.7rem;
}

.module::after,
.approval-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-soft);
  box-shadow: 0 0 10px var(--cyan-dim);
}

.module.active-route {
  border-color: rgba(56, 255, 179, 0.56);
  background:
    linear-gradient(90deg, rgba(56, 255, 179, 0.08), transparent 68%),
    rgba(0, 246, 255, 0.03);
  box-shadow: inset 0 0 18px rgba(56, 255, 179, 0.07);
}

.module strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.queue p strong {
  color: var(--text);
}

.approval-card {
  display: grid;
  gap: 8px;
}

.approval-card header,
.approval-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.approval-card header strong {
  color: var(--text);
  text-transform: uppercase;
}

.approval-card header span,
.approval-card small {
  color: var(--muted);
}

.approval-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.approval-actions button {
  flex: 1;
  min-height: 30px;
}

.ops-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-actions button {
  min-height: 32px;
}

.ops-field {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ops-field input {
  min-height: 32px;
  text-transform: none;
}

.approval-actions button[data-decision="reject"] {
  color: var(--danger);
  border-color: rgba(255, 77, 109, 0.44);
}

.approval-actions button[data-decision="reject"]:hover,
.approval-actions button[data-decision="reject"]:focus-visible {
  box-shadow: inset 0 0 12px rgba(255, 77, 109, 0.12);
}

.approval-actions button[data-decision="approve"] {
  color: var(--ok);
  border-color: rgba(56, 255, 179, 0.42);
}

.approval-actions button[data-decision="approve"]:hover,
.approval-actions button[data-decision="approve"]:focus-visible {
  box-shadow: inset 0 0 12px rgba(56, 255, 179, 0.12);
}

.module small,
.brief {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.connector-card {
  display: grid;
  gap: 8px;
}

.connector-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.connector-card header strong,
.connector-card header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-card header span {
  flex: 0 0 auto;
  max-width: 46%;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.connector-facts {
  display: grid;
  gap: 5px;
}

.connector-facts div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 246, 255, 0.07);
}

.connector-facts dt,
.connector-facts dd {
  font-size: 0.58rem;
  line-height: 1.25;
}

.connector-facts dd {
  white-space: normal;
}

.connector-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.connector-actions button {
  min-height: 29px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.diagnostics-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.diagnostics-topline {
  margin-bottom: 14px;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostics-panel {
  min-height: 220px;
}

.diagnostics-wide {
  grid-column: 1 / -1;
}

.diagnostics-connectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.diagnostics-connectors .connector-card {
  align-content: start;
}

.diagnostics-telemetry {
  height: auto;
  min-height: 160px;
}

.button-link {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(0, 246, 255, 0.28);
  border-radius: 2px;
  background: rgba(0, 246, 255, 0.035);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.brief {
  margin: 0;
}

.status-ok {
  color: var(--ok);
}

.status-warn {
  color: var(--warn);
}

.status-bad {
  color: var(--danger);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow:
      0 0 46px rgba(0, 246, 255, 0.34),
      inset 0 0 30px rgba(0, 246, 255, 0.18),
      inset 0 0 0 1px rgba(0, 246, 255, 0.4);
  }
}

@keyframes wave {
  from {
    height: 4px;
  }

  to {
    height: 17px;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan-drift {
  from {
    transform: translateY(-18vh);
    opacity: 0.24;
  }

  to {
    transform: translateY(18vh);
    opacity: 0.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .console {
    grid-template-columns: minmax(200px, 0.7fr) minmax(390px, 1.45fr) minmax(230px, 0.8fr);
    gap: 14px;
    padding: 14px;
  }

  .core {
    width: min(88%, 410px);
    min-width: 300px;
  }
}

@media (max-width: 980px) {
  .console {
    grid-template-columns: 1fr;
  }

  .core-zone {
    order: -1;
  }

  .rail-left,
  .rail-right {
    padding: 0;
    border: 0;
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-block {
    width: 118px;
    height: 118px;
  }

  .date-block strong {
    font-size: 1.9rem;
  }

  .micro-radar {
    width: 118px;
    height: 118px;
  }

  .micro-radar::before {
    inset: 43px 0 auto;
  }

  .core {
    width: min(74vw, 330px);
    min-width: 260px;
  }

  .core-ticks span {
    transform-origin: 1px 511%;
  }

  .hud-stage::before,
  .hud-ring-outer {
    width: min(98vw, 740px);
  }

  .hud-reticle {
    width: min(86vw, 600px);
  }

  .identity-dial {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body::before {
    opacity: 0.48;
  }

  .console {
    padding: 10px;
  }

  .rail,
  .rail-right {
    grid-template-columns: 1fr;
  }

  .core-zone {
    grid-template-rows: auto minmax(290px, auto) auto minmax(150px, auto) minmax(180px, auto) minmax(150px, auto) auto;
  }

  .topline {
    flex-direction: column;
    gap: 6px;
  }

  .core-wrap::before,
  .core-wrap::after {
    display: none;
  }

  .connector-lattice {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 340px);
    margin-top: 10px;
    pointer-events: auto;
  }

  .connector-lattice::before,
  .connector-lattice::after {
    display: none;
  }

  .lattice-node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .core {
    width: min(100%, 340px);
    min-width: 260px;
  }

  .core-center {
    inset: 32%;
    min-width: 112px;
    min-height: 112px;
  }

  #core-state {
    font-size: 1.35rem;
  }

  .core-ticks span {
    top: 5%;
    height: 8%;
    transform-origin: 1px 563%;
  }

  .core-legend {
    grid-template-columns: 1fr;
    width: min(100%, 340px);
  }

  .status-ribbon,
  .route-ribbon,
  .mission-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 340px);
  }

  .command-actions,
  .intent-grid,
  .scope-line {
    grid-template-columns: 1fr;
  }

  .diagnostics-grid,
  .diagnostics-connectors {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    display: none;
  }

  .identity-dial {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 96px;
  }

  .identity-lens {
    width: 68px;
  }

  .input-dock {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row {
    grid-template-columns: 62px 58px 1fr;
    font-size: 0.68rem;
  }
}

/* Product surface refresh: clean operational shell, robotic core kept central. */
:root {
  --bg: #0b0f0e;
  --bg-2: #0f1514;
  --panel: rgba(17, 24, 22, 0.94);
  --panel-strong: rgba(18, 27, 24, 0.98);
  --panel-soft: rgba(148, 163, 184, 0.06);
  --line: rgba(148, 163, 184, 0.22);
  --line-soft: rgba(148, 163, 184, 0.13);
  --accent: #d7dee6;
  --accent-soft: #aab6c2;
  --focus: #8cc7ff;
  --cyan: #00d8e6;
  --cyan-soft: #67e8f9;
  --cyan-dim: rgba(0, 216, 230, 0.2);
  --cyan-ghost: rgba(0, 216, 230, 0.08);
  --glass: rgba(229, 239, 233, 0.06);
  --text: #e5efe9;
  --muted: #8aa198;
  --muted-2: #5d7169;
  --danger: #f43f5e;
  --ok: #3ecf8e;
  --warn: #fbbf24;
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 216, 230, 0.08), transparent 30%),
    linear-gradient(180deg, #0b0f0e 0%, #0d1311 48%, #090d0c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  background:
    linear-gradient(rgba(229, 239, 233, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 239, 233, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.42;
}

body::after {
  background: linear-gradient(180deg, rgba(11, 15, 14, 0.08), rgba(11, 15, 14, 0.56));
}

.console {
  grid-template-columns: minmax(300px, 340px) minmax(540px, 1fr) minmax(300px, 380px);
  gap: 16px;
  overflow: visible;
  padding: 16px;
}

.hud-stage::after,
.hud-axis,
.hud-scan,
.hud-corner,
.hud-reticle,
.hud-ring {
  opacity: 0.14;
}

.hud-stage::before {
  opacity: 0.24;
}

.rail {
  gap: 12px;
}

.rail-left,
.rail-right {
  border: 0;
  padding: 0;
}

.rail-left {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(148, 163, 184, 0.32) rgba(229, 239, 233, 0.04);
}

.rail-right {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(148, 163, 184, 0.32) rgba(229, 239, 233, 0.04);
}

.panel,
.transcript,
.log-panel,
.command-matrix,
.report-viewer,
.telemetry-viewer,
.input-dock,
.topline,
.ops-bar,
.identity-dial {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent),
    var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.panel::before,
.panel::after,
.transcript::before,
.log-panel::before,
.command-matrix::before,
.report-viewer::before,
.telemetry-viewer::before,
.input-dock::before,
.topline::before,
.ops-bar::before,
.identity-dial::before,
.identity-dial::after {
  display: none;
}

.panel {
  padding: 12px;
}

.panel h2,
.report-viewer h2,
.log-panel h2,
.telemetry-viewer h2 {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.panel h2::before {
  width: 6px;
  height: 6px;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(140, 199, 255, 0.18);
}

details.panel {
  padding: 0;
}

details.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  list-style: none;
  cursor: pointer;
}

details.panel > summary::-webkit-details-marker {
  display: none;
}

details.panel > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

details.panel[open] > summary::after {
  transform: rotate(225deg);
}

details.panel > summary h2 {
  margin: 0;
}

details.panel > summary .copy-button {
  margin-left: auto;
}

details.panel > :not(summary) {
  margin: 0 12px 12px;
}

.topline {
  position: sticky;
  top: 16px;
  z-index: 12;
  padding: 12px 14px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  text-transform: none;
}

.topline-link,
.mini-link,
.button-link,
.command-link,
select,
button,
input {
  border-color: var(--line);
  border-radius: 6px;
  background: rgba(16, 24, 21, 0.92);
  color: var(--accent-soft);
}

.topline-link,
.mini-link,
.button-link {
  text-transform: none;
}

button:hover,
button:focus-visible,
button.active,
input:focus {
  border-color: rgba(140, 199, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(140, 199, 255, 0.11);
}

.ops-bar {
  position: sticky;
  top: 72px;
  z-index: 11;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 1.3fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.ops-bar span,
.scope-line span,
.command-matrix header span,
.command-matrix header em,
.runtime-picker span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: none;
}

.ops-bar strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.ops-bar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-bar-actions button {
  min-height: 38px;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.core-zone {
  grid-template-rows: auto auto minmax(420px, auto) auto minmax(190px, auto) auto;
}

.core-wrap {
  min-height: 460px;
}

.core,
.core-halo,
.connector-lattice,
.status-ribbon,
.route-ribbon,
.mission-readout,
.core-legend {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.command-matrix {
  padding: 12px;
}

.command-matrix header strong {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: none;
}

.command-matrix header em,
.scope-line span,
.runtime-strip span,
.module,
.queue p,
.approval-card,
.telemetry-grid p,
.telemetry-grid article {
  border-color: var(--line-soft);
  background: rgba(229, 239, 233, 0.035);
}

.command-actions button,
.command-link,
.intent-grid button {
  border-color: var(--line-soft);
  background: rgba(16, 24, 21, 0.76);
  text-transform: none;
}

.command-actions button::after,
.command-link::after {
  background: var(--focus);
  box-shadow: none;
  opacity: 0.58;
}

.command-actions strong,
.command-link strong,
.status-ribbon strong,
.route-ribbon strong,
.mission-readout strong {
  text-transform: none;
}

.date-block,
.micro-radar,
.meter-stack {
  display: none;
}

dl div {
  border-bottom-color: rgba(229, 239, 233, 0.08);
}

dt,
dd,
.brief,
.module small {
  font-size: 0.78rem;
}

.identity-dial {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 72px;
  padding: 12px;
  background: var(--panel-strong);
}

.identity-lens {
  width: 42px;
  border-color: rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle, rgba(229, 239, 233, 0.72) 0 9%, rgba(140, 199, 255, 0.16) 10% 30%, transparent 31%),
    repeating-conic-gradient(from 12deg, rgba(148, 163, 184, 0.32) 0 5deg, transparent 5deg 16deg);
  box-shadow: 0 0 14px rgba(140, 199, 255, 0.1);
}

.identity-dial strong {
  font-size: 0.95rem;
  text-shadow: none;
}

.identity-dial span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: none;
}

.log-panel {
  min-height: 132px;
  overflow: hidden;
}

.rail-left .log-panel {
  min-height: 300px;
}

.log-panel header,
.report-viewer header,
.telemetry-viewer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 239, 233, 0.08);
  background: rgba(229, 239, 233, 0.024);
}

.log-panel header div,
.report-viewer header div {
  min-width: 0;
}

.log-panel h2,
.report-viewer h2 {
  margin: 0;
}

.log-panel header span,
.report-viewer span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript {
  max-height: 138px;
  overflow: auto;
  padding: 2px 12px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  scrollbar-color: rgba(148, 163, 184, 0.32) rgba(229, 239, 233, 0.04);
}

.rail-left .transcript {
  max-height: 360px;
}

.row {
  grid-template-columns: 68px 68px 1fr;
  border-bottom-color: rgba(229, 239, 233, 0.08);
}

.row strong {
  color: #c7d0d9;
}

.report-viewer {
  min-height: 190px;
}

.report-viewer pre {
  max-height: 220px;
  height: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  scrollbar-color: rgba(148, 163, 184, 0.32) rgba(229, 239, 233, 0.04);
}

.input-dock {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  grid-template-columns: auto minmax(180px, 1fr) 56px;
  padding: 10px;
}

.mode-switch {
  grid-template-columns: repeat(4, minmax(46px, auto));
}

.copy-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.copy-button:hover,
.copy-button:focus-visible,
.copy-button.copied {
  color: var(--accent);
  border-color: var(--line-soft);
  box-shadow: none;
}

.copy-glyph {
  position: relative;
  width: 14px;
  height: 14px;
}

.copy-glyph::before,
.copy-glyph::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.copy-glyph::before {
  top: 1px;
  left: 4px;
  opacity: 0.55;
}

.copy-glyph::after {
  right: 4px;
  bottom: 1px;
  background: var(--panel);
}

.queue {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.queue p,
.approval-card {
  border-left-color: rgba(140, 199, 255, 0.52);
  border-radius: 6px;
}

.approval-card::after,
.module::after {
  background: var(--focus);
  box-shadow: 0 0 8px rgba(140, 199, 255, 0.18);
}

.approval-actions button[data-decision="approve"] {
  color: var(--ok);
  border-color: rgba(62, 207, 142, 0.42);
}

.button-link {
  min-height: 34px;
}

.lattice-node.active-route,
.module.active-route {
  border-color: rgba(140, 199, 255, 0.5);
  background:
    linear-gradient(90deg, rgba(140, 199, 255, 0.1), transparent 68%),
    rgba(229, 239, 233, 0.03);
  box-shadow: inset 0 0 16px rgba(140, 199, 255, 0.06);
}

.lattice-node.active-route::before {
  background: var(--focus);
  box-shadow: 0 0 10px rgba(140, 199, 255, 0.38);
}

.route-ribbon span {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(90deg, rgba(140, 199, 255, 0.05), transparent 72%),
    rgba(229, 239, 233, 0.018);
}

@media (max-width: 1180px) {
  .console {
    grid-template-columns: minmax(280px, 320px) minmax(480px, 1fr) minmax(280px, 340px);
  }

  .ops-bar {
    grid-template-columns: 1fr;
  }

  .ops-bar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .console {
    grid-template-columns: 1fr;
  }

  .core-zone {
    order: -1;
  }

  .rail-right {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .rail-left {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .topline,
  .ops-bar,
  .input-dock {
    position: relative;
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 980px) {
  .console {
    grid-template-columns: 1fr;
  }

  .rail-right {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .topline,
  .ops-bar,
  .input-dock {
    position: relative;
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 680px) {
  .console {
    padding: 10px;
  }

  .core-zone {
    grid-template-rows: auto auto minmax(320px, auto) auto minmax(170px, auto) auto;
  }

  .ops-bar-actions,
  .command-actions,
  .intent-grid,
  .scope-line,
  .status-ribbon,
  .route-ribbon,
  .mission-readout,
  .input-dock {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row {
    grid-template-columns: 58px 56px 1fr;
  }

  .ops-bar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
