:root {
  color-scheme: dark;
  --bg: #020713;
  --panel: rgba(5, 24, 48, 0.68);
  --panel-strong: rgba(9, 38, 72, 0.82);
  --cyan: #28f7ff;
  --blue: #1597ff;
  --deep-blue: #0a4dff;
  --violet: #7b5cff;
  --pink: #ff4fb8;
  --green: #28f7a1;
  --text: #e9f7ff;
  --muted: #8fb7d7;
  --line: rgba(45, 194, 255, 0.36);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(21, 151, 255, 0.18), transparent 31rem),
    radial-gradient(circle at 18% 52%, rgba(123, 92, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 83% 30%, rgba(40, 247, 255, 0.13), transparent 20rem),
    linear-gradient(180deg, #02050d 0%, #031427 50%, #020610 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(25, 174, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 174, 255, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.28;
}

#starfield,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: 0;
}

.scanline {
  z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(53, 182, 255, 0.08), transparent);
  height: 22vh;
  animation: scan 8s linear infinite;
  mix-blend-mode: screen;
}

.topbar,
.shell,
.bottom-strip {
  position: relative;
  z-index: 1;
}

.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr minmax(470px, 560px);
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(53, 182, 255, 0.26);
  background: linear-gradient(90deg, rgba(3, 15, 35, 0.96), rgba(6, 24, 48, 0.72), rgba(3, 15, 35, 0.94));
  box-shadow: 0 0 32px rgba(13, 120, 255, 0.25);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.62;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand strong {
  font-size: clamp(22px, 2.1vw, 31px);
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(40, 247, 255, 0.58);
}

.brand-mark {
  width: 48px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 247, 255, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(40, 247, 255, 0.18), rgba(21, 151, 255, 0.08)),
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.4), transparent 22%);
  box-shadow: inset 0 0 18px rgba(40, 247, 255, 0.35), 0 0 24px rgba(21, 151, 255, 0.45);
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand-mark::before {
  inset: 6px;
  border: 1px solid rgba(40, 247, 255, 0.62);
  border-radius: 9px;
  box-shadow: inset 0 0 12px rgba(40, 247, 255, 0.34);
}

.brand-mark::after {
  inset: -7px;
  border: 1px solid rgba(40, 247, 255, 0.18);
  border-radius: 16px;
  background: conic-gradient(from 0deg, transparent, rgba(40, 247, 255, 0.76), transparent 35%);
  animation: spin 5.5s linear infinite;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: #f4fdff;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 13px var(--cyan);
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 2.1vw, 42px);
  height: 100%;
}

.nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #b4cce3;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a.active,
.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(40, 247, 255, 0.85);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.search-box {
  width: min(310px, 26vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(101, 147, 205, 0.38);
  border-radius: 999px;
  background: rgba(5, 17, 40, 0.76);
  box-shadow: inset 0 0 18px rgba(21, 151, 255, 0.12);
}

.search-box span {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #93b9dc;
  position: relative;
  flex: 0 0 auto;
}

.search-box span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: #93b9dc;
  border-radius: 999px;
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf8ff;
  font: inherit;
  font-size: 13px;
}

.search-box input::placeholder {
  color: rgba(179, 204, 229, 0.62);
}

.icon-btn,
.admin-btn,
.ai-btn {
  height: 38px;
  border: 0;
  color: #d7ecff;
  background: transparent;
  cursor: pointer;
}

.icon-btn,
.ai-btn {
  width: 38px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-btn:hover,
.admin-btn:hover,
.ai-btn:hover {
  background: rgba(28, 139, 255, 0.12);
  box-shadow: 0 0 18px rgba(40, 247, 255, 0.22);
}

.notify span {
  width: 18px;
  height: 20px;
  border: 2px solid #b8d4ef;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
  position: relative;
}

.notify span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 22px;
  height: 8px;
  border: 2px solid #b8d4ef;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.notify span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b8d4ef;
  transform: translateX(-50%);
}

.notify b {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: white;
  background: #188dff;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(24, 141, 255, 0.8);
}

.help span {
  width: 22px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #9fbbd9;
  border-radius: 50%;
  color: #d9efff;
  font-size: 17px;
  font-weight: 800;
}

.admin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  border-radius: 999px;
  white-space: nowrap;
}

.avatar {
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #ffe0c5 0 19%, transparent 20%),
    radial-gradient(circle at 50% 88%, #426cff 0 38%, transparent 39%),
    linear-gradient(135deg, #f8d8bb, #ffb88e);
  border: 2px solid rgba(92, 170, 255, 0.65);
  box-shadow: 0 0 14px rgba(79, 149, 255, 0.42);
}

.admin-btn strong {
  font-size: 14px;
}

.admin-btn i {
  width: 7px;
  height: 7px;
  border-right: 1px solid #a9c7e7;
  border-bottom: 1px solid #a9c7e7;
  transform: rotate(45deg) translateY(-2px);
}

.ai-btn {
  border: 1px solid rgba(206, 232, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  background: rgba(2, 10, 24, 0.7);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08), 0 0 18px rgba(40, 247, 255, 0.18);
}

.shell {
  width: min(1920px, 100%);
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 430px) minmax(620px, 1fr) minmax(250px, 430px);
  gap: 18px;
  padding: 18px 24px 76px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(45, 194, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 45, 83, 0.82), rgba(4, 21, 43, 0.78)),
    radial-gradient(circle at 86% 12%, rgba(40, 247, 255, 0.18), transparent 11rem);
  box-shadow: inset 0 0 28px rgba(21, 151, 255, 0.14), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(40, 247, 255, 0.2), transparent) 0 0 / 240px 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(40, 247, 255, 0.22), transparent) 100% 0 / 1px 180px no-repeat;
  animation: edgeSweep 4.8s linear infinite;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 800;
  color: #f3fbff;
}

.panel-title button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8fb7d7;
  cursor: pointer;
}

.panel-title button::before {
  content: "›";
  font-size: 28px;
  line-height: 22px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-grid div {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(53, 182, 255, 0.28);
  border-radius: 6px;
  background: rgba(15, 55, 97, 0.52);
  box-shadow: inset 0 0 24px rgba(21, 151, 255, 0.11);
}

.quick-grid b {
  color: var(--cyan);
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 18px var(--blue);
}

.quick-grid span,
.metric-grid span,
.legend,
.health-main span,
.health-main small,
.state-grid span,
.trend-stats span,
.activity time {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.metric-grid div,
.state-grid div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(53, 182, 255, 0.19);
  border-radius: 6px;
  background: rgba(19, 54, 96, 0.46);
}

.metric-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  color: #7defff;
}

.danger {
  color: #ff5c83 !important;
}

.warn {
  color: #ffd36b !important;
}

.donut-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 14px;
}

.donut {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #092046 0 43%, transparent 44%),
    conic-gradient(from 0deg, var(--cyan), #26a4ff 33%, #7c5cff 61%, rgba(60, 93, 150, 0.35) 61%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 24px rgba(40, 247, 255, 0.22);
}

.donut span {
  display: block;
  font-size: 31px;
  font-weight: 900;
}

.donut small {
  color: var(--muted);
}

.legend {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rings div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a2147 0 53%, transparent 54%),
    conic-gradient(var(--cyan) calc(var(--value) * 1%), rgba(72, 107, 157, 0.28) 0);
}

.rings span {
  font-size: 21px;
  font-weight: 900;
}

.rings small {
  color: #9ff8d6;
}

.constellation {
  --cluster-y: -58px;
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.constellation::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 780px);
  aspect-ratio: 1.45;
  border-radius: 50%;
  translate: -50% calc(-50% + var(--cluster-y));
  background:
    radial-gradient(circle at center, rgba(40, 247, 255, 0.16), transparent 28%),
    repeating-radial-gradient(ellipse at center, transparent 0 45px, rgba(48, 177, 255, 0.16) 46px 47px);
  opacity: 0.86;
  filter: drop-shadow(0 0 18px rgba(21, 151, 255, 0.35));
  animation: breathe 5.5s ease-in-out infinite;
}

.link-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
}

.link-layer line {
  stroke: url(#linkGradient);
  stroke-width: 2.2;
  filter: url(#lineGlow);
  stroke-dasharray: 10 12;
  animation: dash 2.6s linear infinite;
}

.orbit {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--cluster-y));
  width: var(--size);
  aspect-ratio: 1;
  border: 1px solid rgba(42, 170, 255, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) scaleY(0.64) rotate(var(--tilt));
  box-shadow: 0 0 30px rgba(21, 151, 255, 0.14);
  z-index: 0;
}

.orbit-1 {
  --size: min(68vw, 700px);
  --tilt: 0deg;
  animation: orbitTurn 26s linear infinite;
}

.orbit-2 {
  --size: min(58vw, 590px);
  --tilt: 12deg;
  animation: orbitTurn 20s linear infinite reverse;
}

.orbit-3 {
  --size: min(48vw, 480px);
  --tilt: -9deg;
  border-style: dashed;
  animation: orbitTurn 16s linear infinite;
}

.orbit-4 {
  --size: min(38vw, 380px);
  --tilt: 0deg;
  border-style: dotted;
  opacity: 0.75;
  animation: orbitTurn 13s linear infinite reverse;
}

.core {
  position: relative;
  z-index: 2;
  width: clamp(220px, 18vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  translate: 0 var(--cluster-y);
  background:
    radial-gradient(circle at 50% 36%, rgba(148, 246, 255, 0.4), transparent 9%),
    radial-gradient(circle at center, rgba(19, 118, 255, 0.92) 0 32%, rgba(5, 31, 72, 0.92) 57%, rgba(2, 8, 22, 0.95) 70%);
  border: 1px solid rgba(76, 219, 255, 0.86);
  box-shadow:
    inset 0 0 56px rgba(40, 247, 255, 0.58),
    inset 0 0 18px rgba(255, 255, 255, 0.3),
    0 0 36px rgba(21, 151, 255, 0.78),
    0 0 96px rgba(40, 247, 255, 0.34);
}

.core::before,
.core::after,
.core-ring {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(40, 247, 255, 0.4);
  background:
    conic-gradient(from 0deg, transparent 0 12deg, rgba(40, 247, 255, 0.9) 12deg 17deg, transparent 17deg 58deg, rgba(123, 92, 255, 0.75) 58deg 65deg, transparent 65deg 100%);
  mask: radial-gradient(circle, transparent 68%, #000 69%);
  animation: spin 13s linear infinite;
}

.core::after {
  inset: -38px;
  opacity: 0.48;
  animation-duration: 22s;
  animation-direction: reverse;
}

.core-ring {
  inset: 22px;
  border: 1px dashed rgba(149, 226, 255, 0.5);
  opacity: 0.66;
  animation-duration: 9s;
}

.core-text {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
}

.core h1 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.72), 0 0 36px var(--cyan);
}

.core p {
  margin: 13px 0 12px;
  color: #bfeeff;
  font-weight: 700;
}

.systems {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.system-node {
  --node-size: clamp(100px, 8vw, 130px);
  position: absolute;
  left: 50%;
  top: calc(50% + var(--cluster-y));
  width: var(--node-size);
  aspect-ratio: 1;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(var(--radius))
    rotate(calc(var(--angle) * -1));
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #ffffff;
  border-radius: 50%;
  outline: none;
  isolation: isolate;
}

.system-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 24%, rgba(255, 255, 255, 0.72), transparent 9%),
    radial-gradient(circle at center, color-mix(in srgb, var(--tone), transparent 12%) 0 12%, rgba(16, 82, 151, 0.86) 42%, rgba(2, 12, 31, 0.86) 70%);
  border: 1px solid color-mix(in srgb, var(--tone), white 18%);
  box-shadow:
    inset 0 0 38px color-mix(in srgb, var(--tone), transparent 28%),
    0 0 26px color-mix(in srgb, var(--tone), transparent 16%),
    0 0 70px color-mix(in srgb, var(--tone), transparent 62%);
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.system-node::after {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px solid color-mix(in srgb, var(--tone), transparent 22%);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 25deg, color-mix(in srgb, var(--tone), white 6%) 25deg 34deg, transparent 34deg 130deg, color-mix(in srgb, var(--tone), white 10%) 130deg 140deg, transparent 140deg);
  mask: radial-gradient(circle, transparent 66%, #000 67%);
  animation: spin 7.5s linear infinite;
  opacity: 0.84;
  transition: opacity 240ms ease, inset 240ms ease;
}

.system-node .orb-base {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 74%;
  height: 22px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--tone), transparent 24%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tone), transparent 35%), transparent 70%);
  filter: blur(0.4px);
  opacity: 0.88;
}

.system-node .glyph {
  position: absolute;
  left: 50%;
  top: 31%;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--tone);
  font-size: 28px;
  opacity: 0.66;
  text-shadow: 0 0 18px currentColor;
  transform: translate(-50%, -50%);
}

.system-node .node-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: 86%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  word-break: keep-all;
}

.system-node .energy {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--tone), transparent 68%), transparent 54%),
    conic-gradient(from 180deg, transparent, color-mix(in srgb, var(--tone), transparent 12%), transparent 42%);
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.86);
  transition: opacity 240ms ease, transform 240ms ease;
}

.system-node:hover,
.system-node:focus-visible {
  z-index: 6;
}

.system-node:hover::before,
.system-node:focus-visible::before {
  transform: scale(1.09);
  filter: saturate(1.28) brightness(1.18);
  box-shadow:
    inset 0 0 46px color-mix(in srgb, var(--tone), transparent 8%),
    0 0 36px color-mix(in srgb, var(--tone), white 18%),
    0 0 118px color-mix(in srgb, var(--tone), transparent 34%);
}

.system-node:hover::after,
.system-node:focus-visible::after {
  inset: -24px;
  opacity: 1;
  animation-duration: 2.6s;
}

.system-node:hover .energy,
.system-node:focus-visible .energy {
  opacity: 1;
  transform: scale(1.08);
  animation: nodeFlare 1.3s ease-in-out infinite alternate;
}

.system-node:hover .glyph,
.system-node:focus-visible .glyph {
  animation: glyphFloat 1.35s ease-in-out infinite alternate;
}

.health-main {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(17, 52, 88, 0.45);
}

.health-main strong {
  display: block;
  margin: 8px 0;
  color: #42ffc8;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(66, 255, 200, 0.4);
}

.heartbeat {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(40, 247, 255, 0.12) 0 44%, transparent 45%),
    repeating-conic-gradient(from 0deg, rgba(40, 247, 255, 0.78) 0 8deg, transparent 8deg 25deg);
  animation: spin 10s linear infinite;
}

.heartbeat i {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 22px var(--cyan), inset 0 0 20px rgba(40, 247, 255, 0.32);
}

.heartbeat i::before {
  content: "⌁";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--cyan);
  font-size: 29px;
  animation: counterSpin 10s linear infinite;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.state-grid b {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 23px;
}

.trend-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.trend-stats b {
  display: block;
  margin-top: 5px;
  font-size: 19px;
}

.trend svg {
  width: 100%;
  height: 150px;
  display: block;
}

.grid-line {
  fill: none;
  stroke: rgba(143, 183, 215, 0.14);
  stroke-width: 1;
}

.trend-fill {
  fill: rgba(24, 145, 255, 0.24);
}

.trend-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.trend-line.accent {
  stroke: var(--violet);
  stroke-width: 3;
}

.activity {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.activity li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  background: rgba(18, 52, 88, 0.42);
}

.activity i {
  width: 23px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--green);
  box-shadow: 0 0 14px rgba(40, 247, 161, 0.45);
}

.activity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-strip {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(920px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 13px 26px 14px;
  border: 1px solid rgba(45, 194, 255, 0.42);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(4, 27, 58, 0.86), rgba(2, 12, 28, 0.95));
  box-shadow: 0 0 28px rgba(21, 151, 255, 0.26);
}

.bottom-strip div {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-right: 1px solid rgba(143, 183, 215, 0.28);
}

.bottom-strip div:last-child {
  border-right: 0;
}

.bottom-strip span {
  color: var(--muted);
  font-size: 13px;
}

.bottom-strip b {
  font-size: 19px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterSpin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbitTurn {
  to {
    rotate: 360deg;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -44;
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.8);
    opacity: 0.35;
  }
}

@keyframes scan {
  from {
    transform: translateY(-30vh);
  }
  to {
    transform: translateY(115vh);
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

@keyframes edgeSweep {
  50% {
    background-position: 100% 0, 100% 100%;
  }
}

@keyframes nodeFlare {
  to {
    filter: blur(2px) brightness(1.25);
  }
}

@keyframes glyphFloat {
  to {
    transform: translate(-50%, -66%) scale(1.08);
  }
}

@media (max-width: 1480px) {
  .shell {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .constellation {
    --cluster-y: -34px;
    order: -1;
    min-height: 570px;
  }

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

  .panel .glass-panel {
    min-width: 0;
  }

  .glass-panel {
    padding: 14px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-grid,
  .trend-stats,
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .donut-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bottom-strip {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -58px auto 18px;
  }
}

@media (max-width: 1080px) {
  .topbar {
    height: auto;
    min-height: 76px;
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    height: auto;
    justify-content: flex-start;
  }

  .nav a {
    padding: 8px 0;
  }

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

  .panel .glass-panel:last-child {
    grid-column: 1 / -1;
  }

  .constellation {
    --cluster-y: -22px;
    min-height: 610px;
  }

  .orbit-1 {
    --size: 620px;
  }

  .orbit-2 {
    --size: 520px;
  }

  .orbit-3 {
    --size: 430px;
  }

  .orbit-4 {
    --size: 340px;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .search-box {
    width: min(100%, 310px);
  }

  .shell {
    padding: 12px 10px 120px;
  }

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

  .panel .glass-panel:last-child {
    grid-column: auto;
  }

  .constellation {
    --cluster-y: 0px;
    min-height: 690px;
    overflow: hidden;
  }

  .system-node {
    --node-size: 72px;
    --radius: 108px !important;
  }

  .core {
    width: 148px;
  }

  .core h1 {
    font-size: 19px;
  }

  .core p {
    font-size: 12px;
  }

  .system-node .glyph {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .system-node .node-label {
    font-size: 12px;
  }

  .bottom-strip {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 20px);
    row-gap: 10px;
  }

  .bottom-strip div:nth-child(2) {
    border-right: 0;
  }
}
