:root {
  color-scheme: dark;
  --ink: #d8ffff;
  --muted: #87a7a7;
  --line: rgba(91, 255, 244, 0.28);
  --glass: rgba(4, 20, 22, 0.72);
  --cloud: #061315;
  --sky: #38fff4;
  --rose: #6b77ff;
  --gold: #e9ff7b;
  --mint: #39ffc2;
  --coral: #ff9f57;
  --violet: #7c6cff;
  --deep: #020707;
  --panel: rgba(3, 17, 19, 0.8);
  --shadow: 0 24px 80px rgba(0, 255, 230, 0.08);
  --radius: 4px;
  --font-body: "凌雲體", "Lingyun", "Ling Yun", "LXGW WenKai TC", "Klee One", "Noto Serif TC", "Songti TC",
    "Hiragino Mincho ProN", "PingFang TC", "Microsoft JhengHei", serif;
  --font-display: "凌雲體", "Lingyun", "Ling Yun", "LXGW WenKai TC", "Klee One", "Noto Serif TC", "Songti TC",
    "Hiragino Mincho ProN", "PingFang TC", serif;
  --font-ui: "凌雲體", "Lingyun", "Ling Yun", "LXGW WenKai TC", "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", system-ui, sans-serif;
  --font-tech: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 450;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 255, 230, 0.16), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(18, 122, 116, 0.34), transparent 34%),
    radial-gradient(circle at 48% 82%, rgba(233, 255, 123, 0.09), transparent 30%),
    linear-gradient(160deg, #010404 0%, #041112 38%, #071a1c 58%, #020707 100%);
  background-size: auto;
  background-position: center;
  background-attachment: fixed;
  animation: skyBreath 18s ease-in-out infinite alternate;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.18;
  background:
    linear-gradient(rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 48%, rgba(56, 255, 244, 0.18), transparent 42%);
  mix-blend-mode: screen;
}

.dream-canvas,
.sky-ribbons,
.cloud-drift {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dream-canvas {
  z-index: 0;
  opacity: 0.86;
}

.sky-ribbons {
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.sky-ribbons span {
  position: absolute;
  width: 92vw;
  height: 18vh;
  left: -18vw;
  border-radius: 999px;
  filter: blur(18px);
  transform: rotate(-10deg);
  opacity: 0.24;
  animation: ribbonDrift 22s ease-in-out infinite;
}

.sky-ribbons span:nth-child(1) {
  top: 9vh;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.52), rgba(57, 255, 194, 0.3), transparent);
}

.sky-ribbons span:nth-child(2) {
  top: 38vh;
  left: 18vw;
  width: 78vw;
  animation-delay: -7s;
  animation-duration: 26s;
  background: linear-gradient(90deg, transparent, rgba(17, 105, 100, 0.42), rgba(233, 255, 123, 0.2), transparent);
}

.sky-ribbons span:nth-child(3) {
  top: 67vh;
  left: -8vw;
  width: 88vw;
  animation-delay: -13s;
  animation-duration: 30s;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.26), rgba(124, 108, 255, 0.18), transparent);
}

.cloud-drift {
  z-index: 0;
  overflow: hidden;
}

.cloud-drift span {
  position: absolute;
  display: block;
  width: 34vw;
  min-width: 280px;
  height: 74px;
  left: -36vw;
  border-radius: 999px;
  background: rgba(56, 255, 244, 0.08);
  box-shadow:
    72px 10px 0 rgba(57, 255, 194, 0.08),
    154px -16px 0 rgba(255, 255, 255, 0.06),
    244px 8px 0 rgba(56, 255, 244, 0.1);
  filter: blur(18px);
  animation: cloudFloat 44s linear infinite;
}

.cloud-drift span:nth-child(1) {
  top: 14vh;
}

.cloud-drift span:nth-child(2) {
  top: 52vh;
  animation-delay: -18s;
  animation-duration: 56s;
  opacity: 0.7;
}

.cloud-drift span:nth-child(3) {
  top: 76vh;
  animation-delay: -30s;
  animation-duration: 64s;
  opacity: 0.58;
}

button,
input {
  font: inherit;
}

button,
label[for] {
  cursor: pointer;
}

button {
  border: 0;
}

.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;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 36%, rgba(56, 255, 244, 0.18), transparent 32%),
    radial-gradient(circle at 72% 68%, rgba(233, 255, 123, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(1, 4, 4, 0.98), rgba(3, 18, 20, 0.98));
  transition: opacity 520ms ease, visibility 520ms ease;
}

.login-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate-backdrop::before,
.gate-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.gate-backdrop::before {
  background:
    linear-gradient(rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.gate-backdrop::after {
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(216, 255, 255, 0.04) 8px 10px);
  animation: gateScanlines 8s linear infinite;
}

.gate-backdrop span {
  position: absolute;
  width: 58vw;
  height: 20vh;
  left: -16vw;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.34), transparent);
  filter: blur(22px);
  animation: gateAurora 16s ease-in-out infinite;
}

.gate-backdrop span:nth-child(2) {
  top: 42%;
  left: 28vw;
  animation-delay: -6s;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 194, 0.22), rgba(233, 255, 123, 0.1), transparent);
}

.gate-backdrop span:nth-child(3) {
  top: 70%;
  left: -4vw;
  animation-delay: -11s;
  background: linear-gradient(90deg, transparent, rgba(124, 108, 255, 0.2), rgba(56, 255, 244, 0.2), transparent);
}

.gate-panel {
  position: relative;
  width: min(940px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(91, 255, 244, 0.42);
  clip-path: polygon(0 28px, 28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 34% 38%, rgba(56, 255, 244, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(4, 24, 25, 0.92), rgba(2, 8, 9, 0.88));
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow:
    inset 0 0 42px rgba(56, 255, 244, 0.12),
    0 0 80px rgba(56, 255, 244, 0.12);
}

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

.gate-panel::before {
  inset: 18px;
  border: 1px solid rgba(233, 255, 123, 0.18);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.gate-panel::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(56, 255, 244, 0.18) 48%, transparent 54% 100%);
  transform: translateX(-120%);
  animation: holoSweep 6.4s ease-in-out infinite;
}

.gate-status {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
}

.gate-status strong {
  color: #38fff4;
  text-shadow: 0 0 14px rgba(56, 255, 244, 0.52);
}

.guardian-shell {
  position: relative;
  z-index: 1;
  grid-row: 2 / 4;
  min-height: 430px;
  display: grid;
  place-items: center;
  perspective: 900px;
  isolation: isolate;
}

.sentinel-field {
  position: relative;
  width: min(390px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 38px rgba(56, 255, 244, 0.32));
}

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

.sentinel-field::before {
  inset: 11%;
  border: 1px solid rgba(91, 255, 244, 0.35);
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(56, 255, 244, 0.16), transparent 54%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow:
    inset 0 0 46px rgba(56, 255, 244, 0.1),
    0 0 38px rgba(56, 255, 244, 0.16);
  animation: sentinelPanel 6s ease-in-out infinite;
}

.sentinel-field::after {
  inset: -4%;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, transparent, rgba(56, 255, 244, 0.42), transparent 28%, rgba(233, 255, 123, 0.3), transparent 56%, rgba(57, 255, 194, 0.36), transparent);
  mask-image: radial-gradient(circle, transparent 54%, black 56%, black 61%, transparent 64%);
  opacity: 0.84;
  animation: sentinelSpin 11s linear infinite;
}

.sentinel-grid {
  position: absolute;
  inset: -10%;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(216, 255, 255, 0.08) 16px 17px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(91, 255, 244, 0.08) 18px 19px);
  mask-image: radial-gradient(circle at center, black 0 46%, transparent 70%);
  opacity: 0.42;
  animation: sentinelScan 5.8s linear infinite;
}

.sentinel-ring {
  position: absolute;
  border: 1px solid rgba(91, 255, 244, 0.3);
  border-radius: 999px;
  transform-style: preserve-3d;
  animation: sentinelSpin 9s linear infinite;
}

.ring-a {
  inset: 14%;
  transform: rotateX(64deg) rotateZ(18deg);
}

.ring-b {
  inset: 5%;
  border-color: rgba(233, 255, 123, 0.26);
  animation-duration: 13s;
  animation-direction: reverse;
  transform: rotateX(72deg) rotateZ(-34deg);
}

.ring-c {
  inset: 25%;
  border-style: dashed;
  border-color: rgba(57, 255, 194, 0.36);
  animation-duration: 6.5s;
  transform: rotateY(68deg) rotateZ(45deg);
}

.sentinel-beam {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  background: conic-gradient(from 45deg, transparent 0 22%, rgba(233, 255, 123, 0.2) 24%, transparent 31%, rgba(56, 255, 244, 0.2) 44%, transparent 52%, rgba(255, 159, 87, 0.18) 68%, transparent 76%);
  mask-image: radial-gradient(circle, transparent 0 38%, black 40%, transparent 66%);
  mix-blend-mode: screen;
  animation: sentinelSpin 7s linear infinite reverse;
}

.sentinel-core {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 88% 18%, 100% 50%, 82% 88%, 50% 100%, 18% 88%, 0 50%, 12% 18%);
  background:
    linear-gradient(135deg, rgba(216, 255, 255, 0.28), rgba(56, 255, 244, 0.08) 38%, rgba(2, 9, 10, 0.76) 62%, rgba(233, 255, 123, 0.16)),
    rgba(2, 12, 13, 0.92);
  border: 1px solid rgba(216, 255, 255, 0.45);
  box-shadow:
    inset 0 0 34px rgba(56, 255, 244, 0.22),
    inset 0 0 80px rgba(233, 255, 123, 0.08),
    0 0 58px rgba(56, 255, 244, 0.3);
  animation: sentinelHover 3.4s ease-in-out infinite;
}

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

.sentinel-core::before {
  inset: 14%;
  clip-path: inherit;
  border: 1px solid rgba(233, 255, 123, 0.34);
  animation: sentinelPulse 1.8s ease-in-out infinite;
}

.sentinel-core::after {
  width: 132%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216, 255, 255, 0.95), transparent);
  box-shadow: 0 0 18px rgba(216, 255, 255, 0.8);
  animation: sentinelSlice 2.6s ease-in-out infinite;
}

.core-crystal {
  position: absolute;
  inset: 26%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    radial-gradient(circle, #e9ff7b 0 10%, #38fff4 12% 42%, rgba(56, 255, 244, 0.16) 56%, transparent 72%);
  box-shadow:
    0 0 24px rgba(233, 255, 123, 0.62),
    0 0 56px rgba(56, 255, 244, 0.42);
  animation: sentinelPulse 1.45s ease-in-out infinite;
}

.core-eye {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #d8ffff;
  box-shadow:
    0 0 16px #d8ffff,
    0 0 42px rgba(233, 255, 123, 0.74),
    0 0 76px rgba(56, 255, 244, 0.62);
}

.core-blade {
  position: absolute;
  inset: -12%;
  border: 1px solid rgba(56, 255, 244, 0.24);
  clip-path: polygon(50% 0, 54% 34%, 100% 50%, 54% 66%, 50% 100%, 46% 66%, 0 50%, 46% 34%);
  animation: sentinelSpin 4.8s linear infinite;
}

.b2 {
  animation-duration: 6.4s;
  animation-direction: reverse;
  transform: rotate(60deg);
  border-color: rgba(233, 255, 123, 0.25);
}

.b3 {
  animation-duration: 8.2s;
  transform: rotate(120deg);
  border-color: rgba(255, 159, 87, 0.2);
}

.sentinel-cloud {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 20%;
  height: 16%;
  border: 1px solid rgba(91, 255, 244, 0.36);
  clip-path: polygon(8% 32%, 28% 32%, 38% 8%, 58% 8%, 72% 32%, 92% 32%, 100% 52%, 92% 78%, 8% 78%, 0 52%);
  background:
    linear-gradient(90deg, rgba(56, 255, 244, 0.1), rgba(233, 255, 123, 0.13), rgba(56, 255, 244, 0.1)),
    rgba(2, 12, 13, 0.72);
  box-shadow:
    inset 0 0 28px rgba(56, 255, 244, 0.16),
    0 0 34px rgba(56, 255, 244, 0.2);
  animation: sentinelCloud 2.8s ease-in-out infinite;
}

.sentinel-cloud i {
  position: absolute;
  top: 48%;
  width: 18%;
  height: 2px;
  background: rgba(216, 255, 255, 0.72);
  box-shadow: 0 0 14px rgba(216, 255, 255, 0.72);
  animation: sentinelData 1.8s ease-in-out infinite;
}

.sentinel-cloud i:nth-child(1) {
  left: 18%;
}

.sentinel-cloud i:nth-child(2) {
  left: 42%;
  animation-delay: -0.45s;
}

.sentinel-cloud i:nth-child(3) {
  left: 66%;
  animation-delay: -0.9s;
}

.sentinel-particles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #e9ff7b;
  box-shadow: 0 0 18px rgba(233, 255, 123, 0.72);
  opacity: 0;
  animation: sentinelParticle 4.2s ease-in-out infinite;
}

.sentinel-particles span:nth-child(1) { --x: -158px; --y: -92px; animation-delay: 0s; }
.sentinel-particles span:nth-child(2) { --x: 148px; --y: -70px; animation-delay: -0.7s; }
.sentinel-particles span:nth-child(3) { --x: 124px; --y: 116px; animation-delay: -1.4s; }
.sentinel-particles span:nth-child(4) { --x: -132px; --y: 126px; animation-delay: -2.1s; }
.sentinel-particles span:nth-child(5) { --x: 4px; --y: -176px; animation-delay: -2.8s; }
.sentinel-particles span:nth-child(6) { --x: -6px; --y: 176px; animation-delay: -3.5s; }

.gate-copy,
.question-console,
.gate-actions {
  position: relative;
  z-index: 1;
}

.gate-copy {
  align-self: end;
}

.gate-copy h2 {
  font-family: var(--font-display);
  margin-bottom: 12px;
  font-weight: 650;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.05;
  color: #d8ffff;
  text-shadow: 0 0 26px rgba(56, 255, 244, 0.24);
}

.gate-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.question-console {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  background: rgba(2, 9, 10, 0.68);
}

.question-console[hidden] {
  display: none;
}

.question-progress {
  display: grid;
  gap: 8px;
  font-family: var(--font-tech);
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
}

.question-progress div {
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(3, 17, 19, 0.8);
}

.question-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38fff4, #39ffc2, #e9ff7b);
  box-shadow: 0 0 20px rgba(56, 255, 244, 0.54);
  transition: width 300ms ease;
}

#guardianQuestion {
  font-family: var(--font-display);
  margin: 0;
  color: #d8ffff;
  font-size: 19px;
  line-height: 1.55;
}

#guardianAnswer {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
  font-family: var(--font-tech);
  font-size: 18px;
  font-weight: 800;
}

#guardianAnswer:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.gate-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid rgba(91, 255, 244, 0.24);
  background:
    linear-gradient(180deg, rgba(4, 24, 25, 0.92), rgba(2, 9, 10, 0.78)),
    rgba(2, 9, 10, 0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset -1px 0 0 rgba(233, 255, 123, 0.14);
}

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

.brand-crest {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.38));
  animation: crestGlow 4.8s ease-in-out infinite;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.brand span {
  margin-top: 4px;
  color: #7ba3a3;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  font-family: var(--font-ui);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  color: #9ab9b9;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #e9ff7b;
  background: rgba(56, 255, 244, 0.08);
  outline: none;
}

.nav-item.is-active {
  color: #d8ffff;
  background:
    linear-gradient(90deg, rgba(56, 255, 244, 0.18), rgba(233, 255, 123, 0.06)),
    rgba(4, 24, 25, 0.72);
  box-shadow:
    inset 3px 0 0 var(--sky),
    0 0 28px rgba(56, 255, 244, 0.08);
}

.side-status {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.side-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 24, 25, 0.62);
}

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

.workspace {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 46px) 42px;
}

.top-bar,
.section-head,
.vault-toolbar,
.vault-lock-panel,
.vault-cloud-panel,
.call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar {
  margin-bottom: 24px;
}

.eyebrow {
  font-family: var(--font-tech);
  margin: 0 0 7px;
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 650;
  color: transparent;
  background: linear-gradient(92deg, #d8ffff, #38fff4, #e9ff7b, #38fff4, #d8ffff);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShimmer 9s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.24));
}

h2 {
  font-family: var(--font-display);
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.14;
  font-weight: 650;
}

h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 650;
}

.quick-actions,
.call-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.primary-action,
.ghost-button,
.feature-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-button {
  width: 44px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(4, 24, 25, 0.72);
}

.danger-action {
  color: #ffdbe0;
  border-color: rgba(255, 93, 108, 0.46);
  background: rgba(55, 8, 15, 0.62);
}

.primary-action {
  padding: 0 16px;
  color: #021010;
  background: linear-gradient(90deg, #38fff4, #39ffc2 58%, #e9ff7b);
  box-shadow: 0 0 26px rgba(56, 255, 244, 0.24);
  font-family: var(--font-ui);
  font-weight: 700;
}

.ghost-button,
.feature-panel button {
  padding: 0 13px;
  color: #d8ffff;
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(4, 24, 25, 0.7);
}

.icon-button:hover,
.primary-action:hover,
.ghost-button:hover,
.feature-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(56, 255, 244, 0.2);
}

.primary-action {
  position: relative;
  overflow: hidden;
}

.primary-action::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.46) 46%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: buttonGleam 4.8s ease-in-out infinite;
}

.primary-action > * {
  position: relative;
  z-index: 1;
}

.icon-button svg,
.primary-action svg,
.ghost-button svg,
.feature-panel svg {
  width: 19px;
  height: 19px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewBloom 360ms ease both;
}

.gift-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 350px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(91, 255, 244, 0.34);
  border-radius: var(--radius);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 34% 44%, rgba(56, 255, 244, 0.18), transparent 30%),
    radial-gradient(circle at 74% 34%, rgba(233, 255, 123, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(4, 24, 25, 0.88), rgba(2, 7, 7, 0.76)),
    linear-gradient(90deg, rgba(56, 255, 244, 0.1), rgba(57, 255, 194, 0.06));
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  box-shadow:
    0 0 0 1px rgba(91, 255, 244, 0.18),
    0 0 42px rgba(56, 255, 244, 0.16),
    0 0 90px rgba(57, 255, 194, 0.08),
    var(--shadow);
  animation: stageAura 6.8s ease-in-out infinite;
}

.gift-stage::before {
  position: absolute;
  inset: -45%;
  content: "";
  background:
    conic-gradient(from 60deg, transparent, rgba(56, 255, 244, 0.18), transparent 28%),
    linear-gradient(90deg, transparent, rgba(233, 255, 123, 0.12), transparent);
  transform: translateX(-32%) rotate(8deg);
  animation: palaceSweep 10s ease-in-out infinite;
}

.gift-stage::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), rgba(244, 201, 93, 0.75), transparent);
  filter: blur(0.4px);
  animation: horizonGlitter 3.6s ease-in-out infinite;
}

.holo-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(300px, 36vw, 470px);
  perspective: 1100px;
  filter:
    drop-shadow(0 0 24px rgba(56, 255, 244, 0.28))
    drop-shadow(0 26px 60px rgba(0, 0, 0, 0.52));
  animation: palaceFloat 7s ease-in-out infinite;
}

.holo-frame {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.44);
  clip-path: polygon(0 28px, 28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(56, 255, 244, 0.22), transparent 30%),
    radial-gradient(circle at 68% 32%, rgba(233, 255, 123, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(7, 38, 38, 0.82), rgba(1, 7, 8, 0.92));
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  transform: rotateX(2deg) rotateY(-5deg);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 42px rgba(56, 255, 244, 0.16),
    0 0 46px rgba(56, 255, 244, 0.12);
}

.holo-frame::before,
.holo-frame::after {
  position: absolute;
  inset: 20px;
  content: "";
  pointer-events: none;
}

.holo-frame::before {
  border: 1px solid rgba(233, 255, 123, 0.18);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: framePulse 4.5s ease-in-out infinite;
}

.holo-frame::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(56, 255, 244, 0.22) 48%, transparent 54% 100%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(216, 255, 255, 0.04) 7px 9px);
  mix-blend-mode: screen;
  animation: holoSweep 5.8s ease-in-out infinite;
}

.holo-scan {
  position: absolute;
  inset: -20% 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56, 255, 244, 0.28), transparent);
  transform: translateY(-80%);
  animation: scanPass 4.2s linear infinite;
}

.holo-cloud {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 36%;
  transform: translateZ(80px);
  animation: cloudPulse 5.2s ease-in-out infinite;
}

.cloud-lobe,
.cloud-base {
  position: absolute;
  display: block;
  border: 1px solid rgba(91, 255, 244, 0.32);
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 255, 244, 0.28), transparent 58%),
    rgba(5, 34, 35, 0.66);
  box-shadow:
    inset 0 0 40px rgba(56, 255, 244, 0.16),
    0 0 24px rgba(56, 255, 244, 0.14);
}

.cloud-lobe {
  bottom: 25%;
  border-radius: 999px 999px 18px 18px;
}

.l1 {
  left: 4%;
  width: 34%;
  height: 58%;
}

.l2 {
  left: 26%;
  width: 44%;
  height: 80%;
  animation: lobeRise 4.8s ease-in-out infinite;
}

.l3 {
  right: 4%;
  width: 36%;
  height: 62%;
  animation: lobeRise 5.6s ease-in-out infinite reverse;
}

.cloud-base {
  left: 0;
  right: 0;
  bottom: 4%;
  height: 46%;
  border-radius: 999px;
}

.holo-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%) translateZ(160px);
}

.core-ring,
.core-orb {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
}

.core-ring {
  border: 1px solid rgba(91, 255, 244, 0.68);
  box-shadow:
    inset 0 0 18px rgba(56, 255, 244, 0.18),
    0 0 28px rgba(56, 255, 244, 0.22);
}

.r1 {
  animation: spinCore 8s linear infinite;
}

.r2 {
  inset: 22px;
  border-color: rgba(233, 255, 123, 0.58);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: spinCore 5.5s linear infinite reverse;
}

.r3 {
  inset: 50px;
  border-style: dashed;
  border-color: rgba(216, 255, 255, 0.58);
  animation: spinCore 3.8s linear infinite;
}

.core-orb {
  inset: 72px;
  background: radial-gradient(circle, #e9ff7b 0 22%, #38fff4 24% 48%, rgba(56, 255, 244, 0.1) 50% 100%);
  box-shadow:
    0 0 26px rgba(233, 255, 123, 0.72),
    0 0 58px rgba(56, 255, 244, 0.36);
  animation: coreBreathe 2.2s ease-in-out infinite;
}

.holo-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 2px solid rgba(56, 255, 244, 0.32);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.holo-orbit::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  content: "";
  background: #e9ff7b;
  box-shadow: 0 0 20px rgba(233, 255, 123, 0.8);
}

.o1 {
  width: 74%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: orbitFloat 7s linear infinite;
}

.o2 {
  width: 58%;
  height: 26%;
  border-color: rgba(233, 255, 123, 0.32);
  transform: translate(-50%, -50%) rotate(18deg);
  animation: orbitFloat 5.5s linear infinite reverse;
}

.o3 {
  width: 86%;
  height: 42%;
  border-style: dashed;
  border-color: rgba(216, 255, 255, 0.24);
  transform: translate(-50%, -50%) rotate(2deg);
  animation: orbitFloat 11s linear infinite;
}

.data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.data-streams span,
.hero-glyph {
  position: absolute;
  color: rgba(216, 255, 255, 0.74);
  font-family: var(--font-tech);
  font-size: 11px;
  text-shadow: 0 0 12px rgba(56, 255, 244, 0.62);
}

.hero-glyph {
  z-index: 4;
  padding: 2px 4px;
  border: 1px solid rgba(91, 255, 244, 0.12);
  background: rgba(2, 7, 7, 0.46);
  animation: glyphDrift var(--glyph-duration, 4s) linear forwards;
}

.data-streams span {
  top: -18%;
  width: 1px;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(56, 255, 244, 0.72), transparent);
  animation: dataFall 3.8s linear infinite;
}

.data-streams span:nth-child(1) { left: 14%; animation-delay: -0.4s; }
.data-streams span:nth-child(2) { left: 27%; animation-delay: -1.9s; }
.data-streams span:nth-child(3) { left: 43%; animation-delay: -0.9s; }
.data-streams span:nth-child(4) { left: 61%; animation-delay: -2.6s; }
.data-streams span:nth-child(5) { left: 76%; animation-delay: -1.4s; }
.data-streams span:nth-child(6) { left: 88%; animation-delay: -3.1s; }

.signal-nodes span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38fff4;
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.78);
  animation: nodeBlink 2.6s ease-in-out infinite;
}

.signal-nodes span:nth-child(1) { left: 18%; top: 26%; }
.signal-nodes span:nth-child(2) { left: 38%; top: 18%; animation-delay: -0.7s; background: #7c6cff; }
.signal-nodes span:nth-child(3) { right: 22%; top: 32%; animation-delay: -1.1s; }
.signal-nodes span:nth-child(4) { left: 22%; bottom: 24%; animation-delay: -1.7s; background: #e9ff7b; }
.signal-nodes span:nth-child(5) { right: 16%; bottom: 28%; animation-delay: -2.2s; background: #39ffc2; }

.gift-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.gift-copy h2 {
  max-width: 640px;
  margin-bottom: 18px;
}

.wish-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wish-strip span {
  padding: 8px 10px;
  color: #d8ffff;
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.74);
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 650;
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.08);
  animation: wishFloat 5.4s ease-in-out infinite;
}

.wish-strip span:nth-child(2) {
  animation-delay: -1.3s;
}

.wish-strip span:nth-child(3) {
  animation-delay: -2.5s;
}

.wish-strip span:nth-child(4) {
  animation-delay: -3.4s;
}

.stage-effects {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.constellation-map {
  position: absolute;
  left: 4%;
  top: 4%;
  width: min(50%, 460px);
  height: auto;
  opacity: 0.68;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.72));
}

.constellation-line {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 18;
  animation: constellationFlow 5s linear infinite;
}

.constellation-line.soft {
  stroke: rgba(32, 216, 255, 0.58);
  stroke-width: 2;
  animation-duration: 7s;
  animation-direction: reverse;
}

.star-node {
  fill: #f4c95d;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.star-node:nth-of-type(2n) {
  fill: #9cebff;
  animation-delay: -1s;
}

.star-node:nth-of-type(3n) {
  fill: #7c6cff;
  animation-delay: -1.6s;
}

.twinkle {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.86);
  animation: twinklePulse 2.8s ease-in-out infinite;
}

.twinkle::before,
.twinkle::after {
  position: absolute;
  inset: 5px -7px;
  content: "";
  background: inherit;
}

.twinkle::after {
  inset: -7px 5px;
}

.t1 {
  top: 18%;
  left: 12%;
}

.t2 {
  top: 24%;
  right: 24%;
  animation-delay: -0.8s;
}

.t3 {
  left: 48%;
  bottom: 20%;
  animation-delay: -1.5s;
}

.t4 {
  right: 12%;
  bottom: 32%;
  animation-delay: -2.1s;
}

.comet {
  position: absolute;
  top: 14%;
  left: -20%;
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(244, 201, 93, 0.88));
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.84));
  transform: rotate(-18deg);
  animation: cometPass 6.8s ease-in-out infinite;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(91, 255, 244, 0.26);
  border-radius: var(--radius);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72)),
    rgba(3, 17, 19, 0.78);
  background-size: 36px 36px, auto, auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-panel::before,
.memory-card::before,
.player-surface::before,
.drop-zone::before,
.chat-room::before,
.map-frame-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(125deg, transparent 12%, rgba(255, 255, 255, 0.58), rgba(32, 216, 255, 0.12), transparent 48%);
  transform: translateX(-120%);
  transition: opacity 180ms ease;
}

.feature-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 255, 244, 0.6);
  box-shadow: 0 0 34px rgba(56, 255, 244, 0.14);
}

.feature-panel:hover::before,
.memory-card:hover::before,
.player-surface:hover::before,
.drop-zone:hover::before,
.chat-room:hover::before,
.map-frame-shell:hover::before {
  opacity: 1;
  animation: panelGleam 900ms ease both;
}

.feature-panel p {
  min-height: 48px;
  color: var(--muted);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #ffffff;
  border-radius: var(--radius);
}

.panel-icon.sky {
  background: linear-gradient(135deg, var(--sky), #0a807d);
}

.panel-icon.rose {
  background: linear-gradient(135deg, var(--violet), var(--sky));
}

.panel-icon.mint {
  background: linear-gradient(135deg, var(--mint), #0a807d);
}

.panel-icon.gold {
  background: linear-gradient(135deg, var(--gold), #ff8a5c);
}

.panel-icon.map {
  background: linear-gradient(135deg, #38fff4, #7c6cff 52%, #39ffc2);
}

.section-head {
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.memory-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background: #020707;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 36px rgba(56, 255, 244, 0.14);
}

.memory-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.memory-card:hover img {
  transform: scale(1.03);
}

.memory-card span {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #ffffff;
  border-radius: var(--radius);
  background: rgba(7, 26, 47, 0.64);
  backdrop-filter: blur(10px);
  font-weight: 800;
  text-align: left;
}

.media-layout,
.vault-layout,
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
}

.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.chat-room,
.map-frame-shell,
.map-control-panel {
  border: 1px solid rgba(91, 255, 244, 0.26);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72)),
    rgba(3, 17, 19, 0.78);
  background-size: 36px 36px, auto, auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-surface {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.main-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  background: #071a2f;
}

.audio-player {
  width: 100%;
  margin-top: 12px;
  display: none;
}

.audio-player.is-visible {
  display: block;
}

.playlist {
  padding: 16px;
}

.playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.playlist-item:hover {
  transform: translateX(3px);
  border-color: rgba(91, 255, 244, 0.48);
  background: rgba(6, 34, 36, 0.82);
}

.playlist-item.is-active {
  border-color: rgba(233, 255, 123, 0.52);
  background: rgba(19, 45, 39, 0.88);
}

.media-meta {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(56, 255, 244, 0.14), rgba(57, 255, 194, 0.08), rgba(233, 255, 123, 0.08));
}

.media-meta span,
.media-meta strong {
  display: block;
}

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

.vault-lock-panel,
.vault-cloud-panel {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(4, 24, 25, 0.78), rgba(2, 8, 9, 0.72));
  background-size: 28px 28px, auto;
  box-shadow: inset 0 0 24px rgba(56, 255, 244, 0.08);
}

.vault-cloud-panel {
  margin-top: -6px;
}

.vault-cloud-panel.is-online {
  border-color: rgba(57, 255, 194, 0.42);
  box-shadow:
    inset 0 0 24px rgba(57, 255, 194, 0.1),
    0 0 28px rgba(57, 255, 194, 0.08);
}

.vault-cloud-panel.is-online .vault-lock-state strong {
  color: var(--mint);
}

.vault-cloud-panel.is-error {
  border-color: rgba(255, 159, 87, 0.42);
}

.vault-cloud-panel.is-error .vault-lock-state strong {
  color: var(--coral);
}

.vault-cloud-panel .ghost-button {
  white-space: nowrap;
}

.cloud-drive-console {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 16px;
}

.cloud-drive-sidebar,
.cloud-drive-main {
  border: 1px solid rgba(91, 255, 244, 0.26);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72));
  background-size: 32px 32px, auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.cloud-drive-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.cloud-filter {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cloud-filter:hover,
.cloud-filter.is-active {
  border-color: rgba(91, 255, 244, 0.36);
  background: rgba(56, 255, 244, 0.09);
  transform: translateX(2px);
}

.cloud-filter.is-active {
  color: #e9ff7b;
  box-shadow: inset 0 0 20px rgba(56, 255, 244, 0.1);
}

.cloud-drive-status {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(233, 255, 123, 0.2);
  border-radius: var(--radius);
  background: rgba(233, 255, 123, 0.06);
}

.cloud-drive-status span,
.cloud-drive-status strong {
  display: block;
}

.cloud-drive-status span {
  color: var(--muted);
  font-size: 12px;
}

.cloud-drive-status strong {
  margin-top: 4px;
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 12px;
}

.cloud-drive-main {
  min-width: 0;
  padding: 14px;
}

.cloud-drive-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.vault-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
}

.vault-breadcrumbs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
}

.vault-breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.cloud-drive-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cloud-drive-tools input {
  width: clamp(180px, 22vw, 320px);
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
}

.cloud-drive-tools input:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.view-switch {
  display: inline-flex;
  gap: 6px;
}

.view-switch .icon-button.is-active {
  color: #021010;
  background: linear-gradient(90deg, #38fff4, #e9ff7b);
}

.vault-lock-state span,
.vault-lock-state strong {
  display: block;
  font-family: var(--font-tech);
}

.vault-lock-state span {
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
}

.vault-lock-state strong {
  margin-top: 4px;
  color: var(--sky);
  font-size: 17px;
  text-shadow: 0 0 16px rgba(56, 255, 244, 0.36);
}

.vault-key-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 10px;
}

.vault-key-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
}

.vault-key-form input:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.drop-zone {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-style: dashed;
  animation: vaultPulse 5.6s ease-in-out infinite;
}

.drop-zone svg {
  width: 48px;
  height: 48px;
  color: var(--sky);
}

.drop-zone strong {
  font-size: 22px;
}

.drop-zone span {
  color: var(--muted);
}

.drop-zone.is-dragging {
  background: rgba(9, 46, 42, 0.88);
  border-color: var(--mint);
  box-shadow: 0 0 56px rgba(57, 255, 194, 0.2);
}

.drop-zone.is-locked {
  opacity: 0.76;
  filter: grayscale(0.35);
}

.vault-list-wrap {
  min-height: 320px;
  padding: 16px;
  margin-top: 12px;
}

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

.vault-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
}

.vault-list.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.vault-list.is-grid li {
  min-height: 166px;
  grid-template-columns: 1fr;
  align-content: start;
}

.vault-list.is-grid .vault-file-actions {
  justify-content: flex-start;
}

.vault-folder-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  border-color: rgba(233, 255, 123, 0.22) !important;
  background: linear-gradient(135deg, rgba(233, 255, 123, 0.08), rgba(56, 255, 244, 0.07)) !important;
}

.vault-open-trigger {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}

.vault-open-trigger svg {
  color: #e9ff7b;
}

.vault-empty-row {
  grid-template-columns: 34px minmax(0, 1fr) !important;
}

.vault-toolbar-hint {
  color: var(--muted);
  font-size: 12px;
}

.vault-list svg {
  color: var(--sky);
}

.vault-list strong,
.vault-list span {
  display: block;
  overflow-wrap: anywhere;
}

.vault-list span {
  color: var(--muted);
  font-size: 12px;
}

.vault-file-actions {
  display: flex;
  gap: 6px;
}

.vault-file-actions button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(4, 24, 25, 0.76);
}

.vault-file-actions button:hover {
  border-color: rgba(233, 255, 123, 0.46);
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.14);
}

.vault-file-actions button:disabled,
.icon-button:disabled,
.ghost-button:disabled,
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.vault-list .vault-file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.vault-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #e9ff7b;
  border: 1px solid rgba(233, 255, 123, 0.22);
  background: rgba(233, 255, 123, 0.06);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.chat-room {
  position: relative;
  min-height: min(640px, calc(100vh - 180px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-room-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(91, 255, 244, 0.2);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    rgba(2, 9, 10, 0.62);
  background-size: 26px 26px, auto;
}

.chat-room-top span,
.chat-room-top small {
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.chat-room-top strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 680;
}

.chat-room-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.chat-room-actions > span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid rgba(138, 238, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 13, 18, 0.66);
}

.chat-room-actions b {
  color: #e9ff7b;
}

.chat-room-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
}

.chat-security-panel {
  display: grid;
  grid-template-columns: minmax(128px, 0.18fr) minmax(280px, 0.42fr) minmax(300px, 0.4fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(4, 24, 25, 0.8), rgba(2, 8, 9, 0.76));
  background-size: 28px 28px, auto;
  box-shadow: inset 0 0 24px rgba(56, 255, 244, 0.08);
}

.chat-unlock-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-security-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chat-security-controls label,
.chat-unlock-form,
.chat-safety-actions {
  min-width: 0;
}

.chat-safety-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.chat-safety-actions .ghost-button {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.chat-safety-actions .ghost-button.is-active {
  color: #021010;
  background: linear-gradient(90deg, rgba(56, 255, 244, 0.92), rgba(233, 255, 123, 0.92));
  box-shadow: 0 0 24px rgba(56, 255, 244, 0.18);
}

.motion-guard-state {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  color: #b9f9ff;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.motion-guard-state[data-mode="armed"] {
  color: #e9ff7b;
  border-color: rgba(233, 255, 123, 0.36);
  background: rgba(233, 255, 123, 0.08);
}

.motion-guard-state[data-mode="alert"],
.motion-guard-state[data-mode="error"] {
  color: #ffdbe0;
  border-color: rgba(255, 93, 108, 0.4);
  background: rgba(55, 8, 15, 0.58);
}

.chat-mode-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid rgba(233, 255, 123, 0.2);
  border-radius: var(--radius);
  background: rgba(233, 255, 123, 0.06);
  font-size: 13px;
  line-height: 1.6;
}

.chat-mode-note svg {
  width: 18px;
  height: 18px;
  color: #e9ff7b;
  margin-top: 2px;
}

.member-key-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(260px, 0.55fr);
  gap: 12px;
  margin-bottom: 16px;
}

.member-key-form,
.member-key-output {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    rgba(3, 17, 19, 0.72);
  background-size: 24px 24px, auto;
}

.member-key-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.member-key-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.member-key-title svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

.member-key-title strong {
  font-family: var(--font-tech);
  font-size: 13px;
}

.member-key-title span,
.member-key-output span,
.member-key-output small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.member-key-output span[data-mode="ready"] {
  color: #b8ffe7;
}

.member-key-output span[data-mode="error"] {
  color: #ffdbe0;
}

.member-key-output span[data-mode="loading"] {
  color: #e9ff7b;
}

.member-key-form label span {
  display: block;
  margin-bottom: 6px;
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.member-key-form input,
.generated-key-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  outline: none;
  background: rgba(1, 8, 10, 0.72);
}

.member-key-output {
  display: grid;
  align-content: start;
  gap: 10px;
}

.generated-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-security-controls label span {
  display: block;
  margin-bottom: 6px;
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-unlock-form input,
.chat-security-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
}

.chat-unlock-form input:focus,
.chat-security-controls select:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.chat-shield-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(56, 255, 244, 0.16), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(216, 255, 255, 0.04) 8px 10px),
    rgba(2, 7, 7, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
}

.chat-shield-overlay[hidden] {
  display: none;
}

.blackout-shield[hidden] {
  display: none !important;
}

.blackout-shield {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #d8ffff;
  background:
    repeating-linear-gradient(0deg, rgba(91, 255, 244, 0.04) 0 1px, transparent 1px 9px),
    #000;
}

.blackout-core {
  width: min(360px, 88vw);
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.blackout-core svg {
  width: 56px;
  height: 56px;
  color: #38fff4;
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.72));
}

.blackout-core strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 54px);
  font-weight: 700;
}

.blackout-core span {
  color: rgba(216, 255, 255, 0.68);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
}

body.blackout-active {
  overflow: hidden;
}

.chat-shield-overlay svg {
  width: 54px;
  height: 54px;
  color: var(--sky);
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.36));
}

.chat-shield-overlay strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
}

.chat-room.is-locked .chat-room-top,
.chat-room.is-locked .chat-room-body,
.chat-room.is-locked .chat-compose {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.chat-stream {
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-presence-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid rgba(91, 255, 244, 0.18);
  background: rgba(2, 9, 10, 0.48);
}

.chat-presence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(91, 255, 244, 0.16);
}

.chat-presence-head strong {
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 12px;
}

.chat-presence-head span {
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  color: #021010;
  border-radius: 999px;
  background: linear-gradient(135deg, #38fff4, #e9ff7b);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 900;
}

.chat-presence-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.chat-presence-member {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(138, 238, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 13, 18, 0.68);
}

.chat-presence-member > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(216, 255, 255, 0.75);
  border: 1px solid rgba(138, 238, 255, 0.26);
  border-radius: 999px;
  background: rgba(138, 238, 255, 0.08);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 900;
}

.chat-presence-member.is-online > span {
  color: #021010;
  background: linear-gradient(135deg, #38fff4, #39ffc2);
  box-shadow: 0 0 20px rgba(56, 255, 244, 0.24);
}

.chat-presence-member strong,
.chat-presence-member small {
  display: block;
  overflow-wrap: anywhere;
}

.chat-presence-member strong {
  color: var(--ink);
  font-size: 13px;
}

.chat-presence-member small,
.chat-presence-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-presence-member.is-me strong {
  color: #e9ff7b;
}

.chat-bubble {
  max-width: min(78%, 560px);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(3, 17, 19, 0.8);
  border: 1px solid rgba(91, 255, 244, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: bubbleRise 280ms ease both;
}

.chat-bubble > span {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.chat-bubble b {
  display: block;
  margin-bottom: 4px;
  color: #e9ff7b;
  font-size: 11px;
  letter-spacing: 0;
}

.chat-bubble.me {
  align-self: flex-end;
  color: #021010;
  border-color: transparent;
  background: linear-gradient(90deg, #38fff4, #39ffc2, #e9ff7b);
  font-weight: 700;
}

.chat-bubble.me b {
  color: #053335;
}

.chat-bubble small {
  display: block;
  margin-top: 6px;
  opacity: 0.72;
}

.chat-empty {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px dashed rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.62);
  text-align: center;
}

.chat-empty strong {
  color: var(--ink);
}

.chat-empty span {
  max-width: 420px;
  line-height: 1.6;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(91, 255, 244, 0.22);
  background: rgba(2, 9, 10, 0.7);
}

.chat-compose textarea {
  min-width: 0;
  min-height: 46px;
  max-height: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(3, 17, 19, 0.86);
  resize: none;
  line-height: 1.5;
}

.map-search {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
}

.map-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
}

.map-search input:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.map-frame-shell {
  position: relative;
  overflow: hidden;
  min-height: min(650px, calc(100vh - 180px));
  isolation: isolate;
  background:
    radial-gradient(circle at 26% 24%, rgba(56, 255, 244, 0.16), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(233, 255, 123, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.84), rgba(2, 8, 9, 0.72));
  background-size: auto, auto, 36px 36px, auto;
}

.map-frame-shell::after {
  position: absolute;
  inset: 16px;
  z-index: 2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(233, 255, 123, 0.18);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.map-canvas {
  position: absolute;
  inset: 12px;
  z-index: 1;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 0;
  border-radius: var(--radius);
  background: #020707;
  filter: saturate(1.04) contrast(1.02);
}

.map-canvas .gm-style {
  font-family: var(--font-ui);
}

.map-placeholder {
  position: absolute;
  inset: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(56, 255, 244, 0.14), transparent 36%),
    rgba(2, 7, 7, 0.72);
}

.map-placeholder[hidden] {
  display: none;
}

.map-placeholder svg {
  width: 52px;
  height: 52px;
  color: var(--sky);
  filter: drop-shadow(0 0 16px rgba(56, 255, 244, 0.36));
}

.map-placeholder strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
}

.map-placeholder span {
  display: block;
}

.map-radar {
  position: absolute;
  inset: 10%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.map-radar span {
  position: absolute;
  inset: calc(var(--ring, 0) * 12%);
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: 999px;
  animation: mapRadarPulse 3.8s ease-in-out infinite;
}

.map-radar span:nth-child(2) {
  --ring: 1;
  animation-delay: -1.1s;
  border-color: rgba(233, 255, 123, 0.2);
}

.map-radar span:nth-child(3) {
  --ring: 2;
  animation-delay: -2s;
  border-style: dashed;
}

.map-control-panel {
  max-height: min(650px, calc(100vh - 180px));
  overflow: auto;
  padding: 16px;
}

.map-status {
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(91, 255, 244, 0.22);
  background: rgba(3, 17, 19, 0.68);
}

.map-status span,
.map-status strong {
  display: block;
  font-family: var(--font-tech);
}

.map-status span {
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
}

.map-status strong {
  margin-top: 4px;
  color: var(--sky);
  font-size: 18px;
  text-shadow: 0 0 16px rgba(56, 255, 244, 0.36);
}

.map-status strong[data-state="online"] {
  color: var(--mint);
}

.map-status strong[data-state="error"] {
  color: var(--coral);
}

.map-quick-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.map-chip {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.map-chip:hover,
.map-chip:focus-visible {
  transform: translateX(3px);
  border-color: rgba(233, 255, 123, 0.46);
  background: rgba(6, 34, 36, 0.82);
  outline: none;
}

.map-signal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.map-signal-list span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.map-signal-list svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

.map-member-form {
  display: grid;
  gap: 9px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.62);
}

.map-member-form label {
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-member-form > div,
.map-share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.map-member-form input,
.map-member-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.25);
  border-radius: var(--radius);
  background: rgba(2, 9, 10, 0.88);
  outline: none;
}

.map-member-form input:focus,
.map-member-form select:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.map-member-form small {
  color: var(--muted);
  line-height: 1.45;
}

.map-help-text {
  padding: 9px 10px;
  border: 1px solid rgba(233, 255, 123, 0.18);
  border-radius: var(--radius);
  background: rgba(233, 255, 123, 0.05);
}

.map-member-form small[data-state="ready"],
.map-member-form small[data-state="sharing"] {
  color: var(--mint);
}

.map-member-form small[data-state="denied"],
.map-member-form small[data-state="error"] {
  color: var(--coral);
}

.map-share-actions {
  grid-template-columns: minmax(0, 1fr) auto 44px;
}

.member-list-wrap {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.58);
}

.member-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.member-list-head strong {
  font-family: var(--font-display);
  font-weight: 650;
}

.member-list-head span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: #021010;
  border-radius: 999px;
  background: linear-gradient(90deg, #38fff4, #e9ff7b);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-empty {
  padding: 10px;
  color: var(--muted);
  border: 1px dashed rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  font-size: 13px;
}

.member-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px 9px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 9, 10, 0.7);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.member-card:hover,
.member-card:focus-visible {
  transform: translateX(3px);
  border-color: rgba(91, 255, 244, 0.48);
  background: rgba(6, 34, 36, 0.82);
  outline: none;
}

.member-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--member-color, var(--sky));
  box-shadow: 0 0 14px var(--member-color, var(--sky));
}

.member-card strong,
.member-card small {
  overflow-wrap: anywhere;
}

.member-card small {
  color: var(--muted);
  font-size: 12px;
}

.mirror-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mirror-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.mirror-control-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    rgba(3, 17, 19, 0.72);
  background-size: 26px 26px, auto;
}

.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 9, 10, 0.62);
}

.mirror-key-form label,
.mirror-guide-form label,
.mirror-status-card span {
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.mirror-key-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mirror-key-form input,
.mirror-guide-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.25);
  border-radius: var(--radius);
  background: rgba(2, 9, 10, 0.88);
  outline: none;
  resize: vertical;
}

.mirror-key-form input:focus,
.mirror-guide-form textarea:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.mirror-status-card strong {
  color: var(--sky);
  font-size: 17px;
}

.mirror-status-card strong[data-mode="ready"] {
  color: var(--mint);
}

.mirror-status-card strong[data-mode="loading"] {
  color: #e9ff7b;
}

.mirror-status-card strong[data-mode="error"] {
  color: var(--coral);
}

.mirror-status-card small,
.mirror-incoming span {
  color: var(--muted);
  line-height: 1.5;
}

.mirror-incoming[hidden] {
  display: none;
}

.mirror-incoming > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mirror-signal-list {
  display: grid;
  gap: 9px;
}

.mirror-signal-list span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mirror-signal-list svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

.mirror-stage-shell {
  min-width: 0;
}

.mirror-stage {
  position: relative;
  min-height: min(720px, calc(100vh - 155px));
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 255, 244, 0.18), transparent 48%),
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    #020707;
  background-size: auto, 34px 34px, auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

#mirrorRemoteVideo {
  width: 100%;
  height: min(760px, calc(100vh - 155px));
  min-height: 560px;
  display: block;
  object-fit: contain;
  background: #020707;
}

#mirrorLocalPreview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(220px, 34vw);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(216, 255, 255, 0.34);
  border-radius: calc(var(--radius) - 2px);
  background: #020707;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

#mirrorLocalPreview[hidden] {
  display: none;
}

.mirror-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}

.mirror-empty[hidden] {
  display: none;
}

.mirror-empty svg {
  width: 52px;
  height: 52px;
  color: var(--sky);
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.45));
}

.mirror-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
}

.mirror-guide-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mirror-guide-marker {
  position: absolute;
  min-width: 42px;
  min-height: 42px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  color: #021010;
  border: 2px solid rgba(233, 255, 123, 0.96);
  border-radius: 999px;
  background: rgba(233, 255, 123, 0.82);
  box-shadow:
    0 0 0 10px rgba(233, 255, 123, 0.18),
    0 0 32px rgba(233, 255, 123, 0.5);
  font-size: 12px;
  font-weight: 800;
  animation: mirrorGuidePulse 4.2s ease forwards;
}

.browser-head-actions {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.private-browser-shell {
  display: grid;
  gap: 12px;
  min-height: min(720px, calc(100vh - 150px));
}

.private-browser-toolbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.34fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.07) 1px, transparent 1px),
    rgba(3, 17, 19, 0.72);
  background-size: 28px 28px, auto;
  box-shadow: inset 0 0 24px rgba(56, 255, 244, 0.08);
}

.private-browser-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  align-self: end;
  gap: 6px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(138, 238, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(2, 8, 12, 0.7);
}

.private-browser-mode button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(216, 255, 255, 0.74);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.private-browser-mode button:hover,
.private-browser-mode button:focus-visible {
  color: var(--ink);
  border-color: rgba(138, 238, 255, 0.28);
  outline: none;
}

.private-browser-mode button.is-active {
  color: #021116;
  border-color: rgba(233, 255, 123, 0.64);
  background: linear-gradient(135deg, rgba(233, 255, 123, 0.92), rgba(100, 247, 255, 0.86));
  box-shadow: 0 0 24px rgba(100, 247, 255, 0.2);
}

.private-browser-mode svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.private-browser-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.private-browser-token {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.private-browser-token span {
  color: #e9ff7b;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.private-browser-form input,
.private-browser-token input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  outline: none;
  background: rgba(1, 8, 10, 0.78);
}

.private-browser-form input:focus,
.private-browser-token input:focus {
  border-color: rgba(233, 255, 123, 0.56);
  box-shadow: 0 0 24px rgba(56, 255, 244, 0.14);
}

.private-browser-status-bar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(233, 255, 123, 0.18);
  border-radius: var(--radius);
  background: rgba(233, 255, 123, 0.05);
}

.private-browser-status-bar strong,
.private-browser-status-bar span {
  display: block;
  overflow-wrap: anywhere;
}

.private-browser-status-bar strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

.private-browser-status-bar span,
.private-browser-status-bar small {
  color: var(--muted);
  line-height: 1.55;
}

.private-browser-status-bar small[data-mode="ready"] {
  color: var(--mint);
}

.private-browser-status-bar small[data-mode="error"] {
  color: var(--coral);
}

.private-browser-status-bar small[data-mode="loading"] {
  color: #e9ff7b;
}

.private-browser-frame-wrap {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(56, 255, 244, 0.14), transparent 36%),
    #020707;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.private-browser-frame-wrap iframe {
  width: 100%;
  height: min(760px, calc(100vh - 250px));
  min-height: 560px;
  display: block;
  border: 0;
  background: #020707;
}

.browser-signal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.browser-signal-list span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  color: var(--muted);
  border: 1px solid rgba(91, 255, 244, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.browser-signal-list svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

.map-info-window {
  color: #021010;
  font-family: system-ui, sans-serif;
}

.map-info-window strong,
.map-info-window span,
.map-info-window small {
  display: block;
}

.manual-quick-jumps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.manual-quick-jumps a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background: rgba(4, 24, 25, 0.68);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.manual-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  min-height: 320px;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  background:
    radial-gradient(circle at 76% 42%, rgba(56, 255, 244, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.84), rgba(2, 8, 9, 0.74));
  background-size: auto, 34px 34px, auto;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

.manual-hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 48%);
  animation: manualSweep 5.5s ease-in-out infinite;
}

.manual-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.manual-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #021010;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #38fff4, #e9ff7b);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 900;
}

.manual-copy h3 {
  max-width: 760px;
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
}

.manual-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
}

.manual-holo-demo {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.manual-orbit-ring,
.manual-core-dot,
.manual-node {
  position: absolute;
}

.manual-orbit-ring {
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(91, 255, 244, 0.38);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(56, 255, 244, 0.12), inset 0 0 28px rgba(56, 255, 244, 0.08);
  animation: manualOrbit 12s linear infinite;
}

.manual-orbit-ring.r2 {
  width: 172px;
  border-color: rgba(233, 255, 123, 0.34);
  animation-duration: 8s;
  animation-direction: reverse;
}

.manual-core-dot {
  width: 68px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, #e9ff7b 0 12%, #38fff4 13% 42%, rgba(56, 255, 244, 0.12) 43% 100%);
  box-shadow: 0 0 36px rgba(56, 255, 244, 0.45);
  animation: manualPulse 2.4s ease-in-out infinite;
}

.manual-node {
  min-width: 68px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #021010;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(56, 255, 244, 0.95), rgba(233, 255, 123, 0.95));
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 900;
  animation: manualNodeFloat 3.8s ease-in-out infinite;
}

.manual-node.n1 {
  top: 22px;
  left: 46%;
}

.manual-node.n2 {
  top: 42%;
  right: 14px;
  animation-delay: -0.9s;
}

.manual-node.n3 {
  bottom: 22px;
  left: 42%;
  animation-delay: -1.8s;
}

.manual-node.n4 {
  top: 42%;
  left: 14px;
  animation-delay: -2.7s;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72));
  background-size: 34px 34px, auto;
  animation: manualCardRise 520ms ease both;
}

.manual-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 14%, rgba(56, 255, 244, 0.16), transparent 42%);
  transform: translateX(-120%);
  animation: manualCardGleam 6s ease-in-out infinite;
}

.manual-card:nth-child(2n)::before {
  animation-delay: -1.8s;
}

.manual-wide {
  grid-column: 1 / -1;
}

.manual-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.manual-card-head svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 7px;
  color: #021010;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #38fff4, #e9ff7b);
}

.manual-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.manual-card ol,
.manual-safety-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  line-height: 1.8;
}

.manual-example {
  margin: 14px 0 0;
  padding: 12px;
  color: #e9ff7b;
  border: 1px solid rgba(233, 255, 123, 0.2);
  border-radius: var(--radius);
  background: rgba(233, 255, 123, 0.06);
  line-height: 1.65;
}

.manual-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.manual-flow span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #021010;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(56, 255, 244, 0.96), rgba(233, 255, 123, 0.96));
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 900;
  animation: manualStepPulse 2.6s ease-in-out infinite;
}

.manual-flow span:nth-of-type(2) {
  animation-delay: -0.5s;
}

.manual-flow span:nth-of-type(3) {
  animation-delay: -1s;
}

.manual-flow span:nth-of-type(4) {
  animation-delay: -1.5s;
}

.manual-flow svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

.manual-flow.danger span {
  background: linear-gradient(90deg, rgba(255, 93, 108, 0.92), rgba(233, 255, 123, 0.94));
}

dialog {
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(31, 42, 62, 0.28);
}

dialog::backdrop {
  background: rgba(20, 30, 45, 0.52);
  backdrop-filter: blur(8px);
}

.patrol-dragon {
  --dragon-x: 78vw;
  --dragon-y: 72vh;
  --dragon-facing: 1;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(152px, 186px) 154px;
  align-items: end;
  gap: 10px;
  width: max-content;
  pointer-events: none;
  transform: translate3d(var(--dragon-x), var(--dragon-y), 0);
  transition: transform 5.2s cubic-bezier(0.2, 0.82, 0.22, 1);
  filter: drop-shadow(0 0 22px rgba(56, 255, 244, 0.26));
  will-change: transform;
}

.patrol-dragon.is-instant {
  transition-duration: 1ms;
}

.dragon-status-card {
  position: relative;
  min-width: 0;
  padding: 11px 13px;
  color: #d8ffff;
  border: 1px solid rgba(91, 255, 244, 0.32);
  border-radius: 14px 14px 4px 14px;
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.86), rgba(2, 7, 7, 0.72));
  background-size: 18px 18px, auto;
  box-shadow:
    inset 0 0 18px rgba(56, 255, 244, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(1.2);
  pointer-events: auto;
}

.dragon-status-card::after {
  position: absolute;
  right: -8px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 1px solid rgba(91, 255, 244, 0.28);
  border-right: 1px solid rgba(91, 255, 244, 0.28);
  background: rgba(2, 9, 10, 0.82);
  transform: rotate(45deg);
}

.dragon-status-card span,
.dragon-status-card strong,
.dragon-status-card small {
  position: relative;
  display: block;
}

.dragon-status-card span {
  color: #7ba3a3;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dragon-status-card strong {
  margin-top: 3px;
  color: #f4ffae;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(233, 255, 123, 0.42);
}

.dragon-status-card small {
  margin-top: 3px;
  color: #bceeee;
  font-size: 12px;
  line-height: 1.42;
}

.dragon-button {
  width: 154px;
  height: 168px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: scaleX(var(--dragon-facing));
  transform-origin: center bottom;
  transition: filter 180ms ease, transform 220ms ease;
  animation: dragonHover 3.4s ease-in-out infinite;
}

.dragon-button:hover,
.dragon-button:focus-visible {
  filter:
    drop-shadow(0 0 18px rgba(233, 255, 123, 0.46))
    drop-shadow(0 0 26px rgba(56, 255, 244, 0.34));
}

.dragon-button:focus-visible {
  outline: 2px solid rgba(233, 255, 123, 0.86);
  outline-offset: 6px;
  border-radius: 22px;
}

.dragon-svg {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dragon-photo-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.dragon-photo-aura,
.dragon-photo-shadow,
.dog-hearts,
.dog-hearts i {
  position: absolute;
  display: block;
  pointer-events: none;
}

.dragon-photo-aura {
  inset: 18% 8% 2%;
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: 46% 46% 38% 38%;
  background:
    radial-gradient(circle at 50% 26%, rgba(244, 255, 174, 0.18), transparent 32%),
    radial-gradient(circle at 50% 78%, rgba(91, 255, 244, 0.18), transparent 44%);
  filter: blur(0.2px);
  animation: dragonStatusPulse 2.4s ease-in-out infinite;
}

.dragon-photo {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 2;
  width: auto;
  height: 158px;
  object-fit: contain;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 16px rgba(91, 255, 244, 0.22));
  user-select: none;
  -webkit-user-drag: none;
}

.dragon-photo-shadow {
  left: 22%;
  right: 18%;
  bottom: 4px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), transparent 70%);
  filter: blur(2px);
}

.dog-hearts {
  inset: 0;
  z-index: 3;
}

.dog-hearts i {
  width: 14px;
  height: 14px;
  opacity: 0;
  background: #ff5d6c;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(255, 93, 108, 0.5));
}

.dog-hearts i::before,
.dog-hearts i::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 999px;
  background: inherit;
}

.dog-hearts i::before {
  left: -7px;
}

.dog-hearts i::after {
  top: -7px;
}

.dog-hearts i:nth-child(1) {
  top: 24px;
  left: 20px;
}

.dog-hearts i:nth-child(2) {
  top: 44px;
  right: 18px;
  width: 11px;
  height: 11px;
}

.dog-hearts i:nth-child(2)::before,
.dog-hearts i:nth-child(2)::after {
  width: 11px;
  height: 11px;
}

.dog-hearts i:nth-child(2)::before {
  left: -5.5px;
}

.dog-hearts i:nth-child(2)::after {
  top: -5.5px;
}

.dragon-shadow {
  fill: rgba(0, 0, 0, 0.28);
  filter: blur(3px);
}

.dragon-tail {
  transform-box: fill-box;
  transform-origin: 153px 116px;
  animation: dragonTailWag 1.24s ease-in-out infinite;
}

.dragon-wing {
  transform-box: fill-box;
  transform-origin: 120px 96px;
  animation: dragonWingFlutter 2.1s ease-in-out infinite;
}

.dragon-wing-back {
  opacity: 0.74;
  animation-delay: -0.3s;
}

.dragon-body,
.dragon-head {
  transform-box: fill-box;
  transform-origin: center;
  animation: dragonBreathe 2.8s ease-in-out infinite;
}

.dragon-head {
  animation-delay: -0.18s;
}

.dragon-ear,
.dragon-bow,
.dragon-fur,
.dragon-collar,
.dragon-nose,
.dragon-snout {
  transform-box: fill-box;
  transform-origin: center;
}

.dragon-ear {
  animation: dragonEarBounce 3.2s ease-in-out infinite;
}

.dragon-ear-right {
  animation-delay: -0.28s;
}

.dragon-bow {
  animation: dragonBowWiggle 2.6s ease-in-out infinite;
}

.dragon-fur {
  mix-blend-mode: screen;
}

.dragon-collar {
  filter: drop-shadow(0 0 8px rgba(91, 255, 244, 0.6));
}

.dragon-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: dragonBlink 4.8s ease-in-out infinite;
}

.dragon-mouth {
  transform-box: fill-box;
  transform-origin: center;
}

.dragon-paws {
  transform-box: fill-box;
  transform-origin: center;
}

.dragon-hearts path {
  fill: #ff5d6c;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.patrol-dragon.is-walking .dragon-photo,
.patrol-dragon.is-walking .dragon-paws {
  animation: dragonTinySteps 0.42s ease-in-out infinite;
}

.patrol-dragon.is-walking .dragon-status-card strong {
  animation: dragonStatusPulse 1.2s ease-in-out infinite;
}

.patrol-dragon.is-dream .dragon-button {
  filter: drop-shadow(0 0 22px rgba(124, 108, 255, 0.34));
}

.patrol-dragon.is-dream .dragon-photo {
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 20px rgba(124, 108, 255, 0.32));
}

.patrol-dragon.is-dream .dragon-eye {
  animation-duration: 2.2s;
}

.patrol-dragon.is-guard .dragon-status-card {
  border-color: rgba(244, 255, 174, 0.42);
}

.patrol-dragon.is-scan .dragon-button {
  animation-duration: 1.9s;
}

.patrol-dragon.is-happy {
  z-index: 12;
}

.patrol-dragon.is-happy .dragon-button {
  animation: dragonCuddle 0.72s ease-in-out 4;
}

.patrol-dragon.is-happy .dragon-tail {
  animation-duration: 0.34s;
}

.patrol-dragon.is-happy .dragon-ear {
  animation-duration: 0.58s;
}

.patrol-dragon.is-happy .dragon-bow {
  animation-duration: 0.42s;
}

.patrol-dragon.is-happy .dragon-mouth {
  animation: dragonSmile 0.72s ease-in-out 4;
}

.patrol-dragon.is-happy .dog-hearts i,
.patrol-dragon.is-happy .dragon-hearts path {
  animation: dragonHeartRise 1.35s ease-out forwards;
}

.patrol-dragon.is-happy .dog-hearts i:nth-child(2),
.patrol-dragon.is-happy .dragon-hearts path:nth-child(2) {
  animation-delay: 0.16s;
}

.image-dialog {
  width: min(920px, calc(100vw - 28px));
  background: #020707;
}

.image-dialog img {
  width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  background: #020707;
}

.image-dialog strong {
  display: block;
  padding: 14px 16px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.call-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 16px;
  background: linear-gradient(140deg, #041819, #020707);
}

.install-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    linear-gradient(140deg, #041819, #020707);
  background-size: 34px 34px, auto;
}

.install-dialog p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.65;
}

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

.install-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
}

.install-steps svg {
  color: var(--sky);
}

.install-site-link {
  width: 100%;
  text-decoration: none;
}

.call-head {
  margin-bottom: 12px;
}

.call-head span,
.call-head strong {
  display: block;
}

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

.call-stage {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 255, 244, 0.18), transparent 54%),
    #020707;
}

#remotePreview,
#localPreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background:
    linear-gradient(135deg, rgba(56, 255, 244, 0.22), rgba(124, 108, 255, 0.18)),
    #020707;
  object-fit: cover;
}

#remotePreview {
  min-height: 220px;
}

#localPreview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(180px, 32vw);
  min-height: auto;
  border: 1px solid rgba(216, 255, 255, 0.34);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

#callStatus {
  margin: 12px 0 0;
  color: var(--muted);
}

.call-response-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.spark-burst {
  position: fixed;
  z-index: 4;
  width: 8px;
  height: 8px;
  pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
  animation: burstFly 780ms ease-out forwards;
}

@keyframes skyBreath {
  0% {
    background-position: center top, center top, center bottom, center top, center bottom;
  }

  100% {
    background-position: center 14px, center 22px, center calc(100% + 12px), center 18px, center calc(100% + 34px);
  }
}

@keyframes ribbonDrift {
  0%,
  100% {
    transform: translate3d(-4vw, 0, 0) rotate(-13deg) scaleX(0.96);
  }

  50% {
    transform: translate3d(22vw, 3vh, 0) rotate(-10deg) scaleX(1.08);
  }
}

@keyframes cloudFloat {
  0% {
    transform: translateX(-8vw);
  }

  100% {
    transform: translateX(150vw);
  }
}

@keyframes crestGlow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 10px 22px rgba(32, 216, 255, 0.24));
  }

  50% {
    transform: translateY(-2px) rotate(2deg);
    filter: drop-shadow(0 16px 30px rgba(244, 201, 93, 0.32));
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonGleam {
  0%,
  62% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes viewBloom {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes palaceSweep {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-36%) rotate(8deg);
  }

  50% {
    opacity: 0.72;
    transform: translateX(32%) rotate(11deg);
  }
}

@keyframes horizonGlitter {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes palaceFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-9px) scale(1.012);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.42;
    box-shadow: inset 0 0 0 rgba(56, 255, 244, 0);
  }

  50% {
    opacity: 0.9;
    box-shadow: inset 0 0 28px rgba(56, 255, 244, 0.12);
  }
}

@keyframes holoSweep {
  0%,
  62% {
    opacity: 0.22;
    transform: translateX(-110%);
  }

  100% {
    opacity: 0.74;
    transform: translateX(110%);
  }
}

@keyframes scanPass {
  0% {
    opacity: 0;
    transform: translateY(-80%);
  }

  16%,
  72% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateY(80%);
  }
}

@keyframes cloudPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateZ(80px) translateY(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateZ(80px) translateY(-8px) scale(1.025);
  }
}

@keyframes lobeRise {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinCore {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.84;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes orbitFloat {
  0% {
    filter: drop-shadow(0 0 8px rgba(56, 255, 244, 0.12));
    rotate: 0deg;
  }

  100% {
    filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.32));
    rotate: 360deg;
  }
}

@keyframes dataFall {
  0% {
    opacity: 0;
    transform: translateY(-12%);
  }

  12%,
  84% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translateY(350%);
  }
}

@keyframes glyphDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }

  20%,
  72% {
    opacity: 0.74;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--glyph-x), var(--glyph-y), 0);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.74);
  }

  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@keyframes stageAura {
  0%,
  100% {
    transform: translateZ(0);
    box-shadow:
      0 0 0 1px rgba(91, 255, 244, 0.18),
      0 0 42px rgba(56, 255, 244, 0.18),
      0 0 70px rgba(57, 255, 194, 0.12),
      var(--shadow);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(91, 255, 244, 0.34),
      0 0 58px rgba(56, 255, 244, 0.28),
      0 0 88px rgba(233, 255, 123, 0.14),
      var(--shadow);
  }
}

@keyframes constellationFlow {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -72;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes wishFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes twinklePulse {
  0%,
  100% {
    opacity: 0.16;
    transform: rotate(45deg) scale(0.52);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
  }
}

@keyframes cometPass {
  0%,
  58% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }

  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(132vw, 33vh, 0) rotate(-18deg);
  }
}

@keyframes panelGleam {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes vaultPulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(67, 87, 120, 0.11);
  }

  50% {
    box-shadow: 0 24px 58px rgba(32, 216, 255, 0.18);
  }
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mirrorGuidePulse {
  0% {
    opacity: 0;
    transform: scale(0.74);
  }

  12%,
  72% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes mapRadarPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.04);
  }
}

@keyframes manualSweep {
  0%,
  42% {
    transform: translateX(-120%);
  }

  70%,
  100% {
    transform: translateX(120%);
  }
}

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

@keyframes manualPulse {
  0%,
  100% {
    scale: 0.94;
    filter: brightness(0.95);
  }

  50% {
    scale: 1.05;
    filter: brightness(1.2);
  }
}

@keyframes manualNodeFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes manualCardRise {
  from {
    opacity: 0;
    translate: 0 12px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes manualCardGleam {
  0%,
  48% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes manualStepPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(56, 255, 244, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(56, 255, 244, 0.28);
  }
}

@keyframes burstFly {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--burst-x), var(--burst-y), 0) scale(0.1);
  }
}

@keyframes gateScanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(40px);
  }
}

@keyframes gateAurora {
  0%,
  100% {
    transform: translate3d(-6vw, 0, 0) rotate(-9deg);
    opacity: 0.25;
  }

  50% {
    transform: translate3d(32vw, 6vh, 0) rotate(-5deg);
    opacity: 0.48;
  }
}

@keyframes sentinelPanel {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
    opacity: 0.88;
  }

  50% {
    transform: rotateX(7deg) rotateY(-5deg) scale(1.035);
    opacity: 1;
  }
}

@keyframes sentinelSpin {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

@keyframes sentinelScan {
  0% {
    transform: translate3d(-10px, -12px, 0);
    opacity: 0.22;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: translate3d(12px, 10px, 0);
    opacity: 0.22;
  }
}

@keyframes sentinelHover {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg) scale(1);
  }

  50% {
    transform: translateY(-12px) rotateZ(3deg) scale(1.035);
  }
}

@keyframes sentinelPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes sentinelSlice {
  0% {
    opacity: 0;
    transform: translateY(-52px) scaleX(0.18);
  }

  18%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(52px) scaleX(1);
  }
}

@keyframes sentinelCloud {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.78;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@keyframes sentinelData {
  0%,
  100% {
    transform: translateX(-12px) scaleX(0.25);
    opacity: 0.18;
  }

  50% {
    transform: translateX(8px) scaleX(1);
    opacity: 1;
  }
}

@keyframes sentinelParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }

  24%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(180deg) scale(1);
  }
}

@keyframes dragonHover {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

@keyframes dragonTailWag {
  0%,
  100% {
    rotate: -8deg;
  }

  50% {
    rotate: 13deg;
  }
}

@keyframes dragonWingFlutter {
  0%,
  100% {
    scale: 1;
    rotate: -3deg;
  }

  50% {
    scale: 1.04 0.94;
    rotate: 7deg;
  }
}

@keyframes dragonEarBounce {
  0%,
  100% {
    rotate: -2deg;
  }

  50% {
    rotate: 4deg;
  }
}

@keyframes dragonBowWiggle {
  0%,
  100% {
    rotate: -2deg;
    scale: 1;
  }

  50% {
    rotate: 3deg;
    scale: 1.04;
  }
}

@keyframes dragonBreathe {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3px;
  }
}

@keyframes dragonBlink {
  0%,
  8%,
  100% {
    scale: 1 1;
  }

  4% {
    scale: 1 0.12;
  }
}

@keyframes dragonTinySteps {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 4px;
  }
}

@keyframes dragonStatusPulse {
  0%,
  100% {
    text-shadow: 0 0 16px rgba(233, 255, 123, 0.38);
  }

  50% {
    text-shadow:
      0 0 16px rgba(233, 255, 123, 0.72),
      0 0 28px rgba(56, 255, 244, 0.42);
  }
}

@keyframes dragonCuddle {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }

  30% {
    translate: 0 -12px;
    rotate: -5deg;
  }

  62% {
    translate: 0 -5px;
    rotate: 6deg;
  }
}

@keyframes dragonSmile {
  0%,
  100% {
    stroke-width: 4px;
  }

  50% {
    stroke-width: 6px;
  }
}

@keyframes dragonHeartRise {
  0% {
    opacity: 0;
    translate: 0 14px;
    scale: 0.52;
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 0 -42px;
    scale: 1.08;
  }
}

@media (max-width: 1040px) {
  .gate-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .guardian-shell {
    grid-row: auto;
    min-height: 300px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 64px;
    text-align: center;
  }

  .side-status {
    display: none;
  }

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

  .cloud-drive-console {
    grid-template-columns: 1fr;
  }

  .cloud-drive-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cloud-drive-status {
    grid-column: 1 / -1;
  }

  .cloud-drive-bar {
    grid-template-columns: 1fr;
  }

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

  .manual-wide {
    grid-column: auto;
  }

  .cloud-drive-tools {
    justify-content: flex-start;
  }

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

  .member-key-panel,
  .member-key-form,
  .mirror-layout,
  .mirror-key-form > div,
  .mirror-incoming > div,
  .private-browser-toolbar,
  .private-browser-status-bar,
  .browser-signal-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-gate {
    padding: 12px;
    overflow: auto;
  }

  .gate-panel {
    padding: 18px;
  }

  .gate-actions .primary-action,
  .gate-actions .ghost-button {
    width: 100%;
  }

  .workspace {
    padding: 18px 12px 28px;
  }

  .top-bar,
  .section-head,
  .vault-lock-panel,
  .vault-cloud-panel,
    .vault-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    width: 100%;
  }

  .quick-actions .primary-action,
  .section-head .primary-action,
  .vault-key-form,
  .chat-security-panel,
  .chat-unlock-form,
  .map-search,
  .chat-compose .primary-action {
    width: 100%;
  }

  .vault-key-form,
  .chat-security-panel,
  .chat-unlock-form,
  .chat-security-controls,
  .chat-safety-actions,
  .member-key-panel,
  .member-key-form,
  .generated-key-row,
  .mirror-layout,
  .mirror-key-form > div,
  .mirror-incoming > div,
  .private-browser-toolbar,
  .private-browser-form,
  .private-browser-status-bar,
  .browser-signal-list,
  .cloud-drive-sidebar,
  .map-search {
    grid-template-columns: 1fr;
  }

  .cloud-drive-tools,
  .cloud-drive-tools input,
  .cloud-drive-tools .ghost-button,
  .manual-quick-jumps,
  .manual-quick-jumps a,
  .view-switch,
  .view-switch .icon-button {
    width: 100%;
  }

  .manual-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manual-flow svg {
    rotate: 90deg;
    justify-self: center;
  }

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

  .map-member-form > div,
  .map-share-actions {
    grid-template-columns: 1fr;
  }

  .map-share-actions .icon-button {
    width: 100%;
  }

  .map-control-panel {
    max-height: none;
  }

  .gift-stage,
  .media-layout,
  .vault-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .private-browser-frame-wrap,
  .private-browser-frame-wrap iframe,
  .mirror-stage,
  #mirrorRemoteVideo {
    min-height: 460px;
  }

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

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

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .patrol-dragon {
    grid-template-columns: 138px;
    gap: 4px;
  }

  .dragon-status-card {
    order: -1;
    padding: 9px 10px;
    border-radius: 12px 12px 12px 4px;
  }

  .dragon-status-card::after {
    right: auto;
    left: 28px;
    bottom: -8px;
    border-right: 0;
    border-bottom: 1px solid rgba(91, 255, 244, 0.28);
  }

  .dragon-status-card strong {
    font-size: 16px;
  }

  .dragon-status-card small {
    font-size: 11px;
  }

  .dragon-button {
    width: 126px;
    height: 148px;
  }

  .dragon-photo {
    height: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .dream-canvas,
  .sky-ribbons,
  .cloud-drift,
  .stage-effects,
  .gate-backdrop {
    display: none;
  }

  .patrol-dragon {
    transform: translate3d(14px, calc(100vh - 168px), 0);
  }
}

/* Premium future cloud refresh */
:root {
  --ink: #eefcff;
  --muted: #9ab6ba;
  --subtle: #5f7b80;
  --line: rgba(138, 238, 255, 0.25);
  --line-strong: rgba(147, 255, 244, 0.48);
  --glass: rgba(8, 22, 27, 0.74);
  --panel: rgba(6, 18, 23, 0.86);
  --panel-deep: rgba(2, 8, 12, 0.9);
  --cloud: #081820;
  --deep: #03070a;
  --sky: #64f7ff;
  --mint: #55ffc8;
  --gold: #f4ee91;
  --violet: #8f8cff;
  --coral: #ffad74;
  --platinum: #f6fbff;
  --radius: 8px;
  --shadow: 0 28px 86px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  --panel-stroke: linear-gradient(135deg, rgba(147, 255, 244, 0.55), rgba(143, 140, 255, 0.22), rgba(244, 238, 145, 0.35));
}

html {
  background: #03070a;
}

body {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(16, 44, 55, 0.42) 0%, transparent 26%),
    linear-gradient(248deg, rgba(143, 140, 255, 0.18) 0%, transparent 30%),
    linear-gradient(180deg, #04090d 0%, #07141a 42%, #03070a 100%);
  background-attachment: fixed;
}

body::before {
  opacity: 0.22;
  background:
    linear-gradient(rgba(138, 238, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 238, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(244, 238, 145, 0.06) 49% 51%, transparent 52% 100%);
  background-size: 56px 56px, 56px 56px, 180px 180px;
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}

body::after {
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, rgba(246, 251, 255, 0.07) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, transparent, rgba(100, 247, 255, 0.12), transparent);
  mix-blend-mode: screen;
}

.sky-ribbons span {
  height: 12vh;
  border-radius: 0;
  filter: blur(22px);
  opacity: 0.18;
}

.cloud-drift span {
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.18), rgba(244, 238, 145, 0.08), transparent);
  box-shadow: 0 22px 0 rgba(85, 255, 200, 0.06), 0 -18px 0 rgba(143, 140, 255, 0.05);
}

.login-gate,
.gate-panel,
.side-rail,
.top-bar,
.gift-stage,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.vault-lock-panel,
.vault-cloud-panel,
.cloud-drive-sidebar,
.cloud-drive-main,
.drop-zone,
.vault-list-wrap,
.chat-security-panel,
.member-key-panel,
.chat-room,
.mirror-control-panel,
.mirror-stage-shell,
.map-frame-shell,
.map-control-panel,
.private-browser-shell,
.manual-hero-panel,
.manual-card {
  border-color: var(--line);
  box-shadow: var(--soft-shadow), inset 0 0 0 1px rgba(246, 251, 255, 0.035);
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.side-rail {
  padding: 22px 18px;
  gap: 18px;
  border-right: 1px solid rgba(138, 238, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(9, 26, 33, 0.92), rgba(3, 9, 13, 0.84)),
    linear-gradient(90deg, rgba(100, 247, 255, 0.08), transparent 34%);
}

.side-rail::before {
  position: absolute;
  inset: 16px 10px auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.7), rgba(244, 238, 145, 0.35), transparent);
}

.brand {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(138, 238, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(100, 247, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.025);
}

.brand-crest {
  width: 52px;
  height: 52px;
}

.brand strong {
  font-size: 17px;
}

.brand span,
.side-status span,
.feature-panel p,
.manual-card p,
.manual-card li,
.private-browser-status-bar span,
.private-browser-status-bar small,
.map-help-text,
.browser-signal-list span,
.map-signal-list span {
  color: var(--muted);
}

.nav-list {
  gap: 7px;
}

.nav-item {
  position: relative;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid transparent;
  color: #b8cdd1;
}

.nav-item::after {
  position: absolute;
  inset: auto 12px 7px 44px;
  height: 1px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, rgba(100, 247, 255, 0.72), transparent);
  transition: opacity 160ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--platinum);
  border-color: rgba(138, 238, 255, 0.22);
  background: rgba(100, 247, 255, 0.075);
}

.nav-item.is-active {
  color: #ffffff;
  border-color: rgba(100, 247, 255, 0.36);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.18), rgba(143, 140, 255, 0.07) 62%, rgba(244, 238, 145, 0.04)),
    rgba(9, 30, 37, 0.74);
  box-shadow:
    inset 3px 0 0 var(--sky),
    0 12px 34px rgba(0, 0, 0, 0.16);
}

.nav-item.is-active::after {
  opacity: 1;
}

.side-status div {
  min-height: 52px;
  border-color: rgba(138, 238, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.08), transparent),
    rgba(6, 18, 23, 0.72);
}

.side-status strong {
  color: var(--gold);
  font-family: var(--font-tech);
  font-size: 13px;
}

.workspace {
  padding: 24px clamp(22px, 4vw, 54px) 46px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 9;
  margin: -2px 0 24px;
  padding: 14px 0 18px;
  backdrop-filter: blur(18px);
}

.top-bar::after,
.section-head::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(100, 247, 255, 0.5), rgba(143, 140, 255, 0.22), transparent);
}

.top-bar,
.section-head {
  position: relative;
}

h1 {
  font-size: 54px;
  line-height: 1.04;
  background: linear-gradient(92deg, #ffffff, #88fbff 36%, #f4ee91 68%, #c9ccff);
  -webkit-background-clip: text;
  background-clip: text;
  animation-duration: 14s;
}

h2 {
  font-size: 34px;
  line-height: 1.12;
}

h3 {
  color: var(--platinum);
  font-size: 20px;
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
}

.quick-actions {
  max-width: 660px;
  justify-content: flex-end;
}

.icon-button,
.ghost-button,
.primary-action,
.feature-panel button,
.cloud-filter,
.playlist-item,
.vault-breadcrumbs button,
.vault-file-actions button,
.map-chip,
.manual-quick-jumps a {
  border-radius: var(--radius);
}

.icon-button,
.ghost-button,
.feature-panel button {
  border-color: rgba(138, 238, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(6, 18, 23, 0.78);
}

.icon-button:hover,
.ghost-button:hover,
.feature-panel button:hover {
  border-color: rgba(100, 247, 255, 0.54);
}

.primary-action {
  color: #031014;
  background:
    linear-gradient(90deg, #90fbff, #55ffc8 54%, #f4ee91),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 14px 34px rgba(85, 255, 200, 0.12);
}

.section-head {
  min-height: 76px;
  margin: 0 0 20px;
  padding-bottom: 16px;
}

.gift-stage {
  min-height: 430px;
  padding: 28px;
  border-radius: var(--radius);
  clip-path: none;
  background:
    linear-gradient(90deg, rgba(138, 238, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 238, 255, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(10, 32, 40, 0.92), rgba(3, 10, 14, 0.78) 58%, rgba(10, 20, 34, 0.74)),
    linear-gradient(90deg, rgba(100, 247, 255, 0.1), rgba(244, 238, 145, 0.055));
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.gift-stage::before {
  opacity: 0.8;
  background:
    linear-gradient(105deg, transparent 0 35%, rgba(100, 247, 255, 0.14) 47%, transparent 58% 100%),
    linear-gradient(180deg, rgba(246, 251, 255, 0.08), transparent 36%);
}

.holo-frame,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.cloud-drive-sidebar,
.cloud-drive-main,
.chat-room,
.map-frame-shell,
.map-control-panel,
.private-browser-toolbar,
.private-browser-status-bar,
.private-browser-frame-wrap,
.mirror-stage,
.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card,
.manual-card,
.manual-hero-panel {
  border-radius: var(--radius);
  clip-path: none;
  background:
    linear-gradient(90deg, rgba(138, 238, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 37, 46, 0.84), rgba(4, 13, 18, 0.82));
  background-size: 34px 34px, auto;
}

.feature-panel {
  min-height: 214px;
  padding: 18px 18px 16px;
}

.feature-panel::after,
.memory-card::after,
.manual-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(100, 247, 255, 0.22), transparent 24%, transparent 76%, rgba(244, 238, 145, 0.12));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.feature-panel:hover,
.memory-card:hover,
.manual-card:hover {
  border-color: rgba(100, 247, 255, 0.52);
  transform: translateY(-3px);
}

.panel-icon {
  border: 1px solid rgba(246, 251, 255, 0.18);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.2);
}

.overview-grid {
  gap: 16px;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.memory-card span {
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(4, 13, 18, 0.74);
  border: 1px solid rgba(138, 238, 255, 0.24);
}

input,
textarea,
select,
.private-browser-form input,
.private-browser-token input,
.vault-key-form input,
.chat-unlock-form input,
.chat-compose textarea,
.map-member-form input,
.map-member-form select,
.map-search input,
.cloud-drive-tools input {
  border-radius: var(--radius);
  border-color: rgba(138, 238, 255, 0.25);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(2, 8, 12, 0.84);
}

input:focus,
textarea:focus,
select:focus,
.private-browser-form input:focus,
.private-browser-token input:focus,
.vault-key-form input:focus,
.chat-unlock-form input:focus,
.chat-compose textarea:focus,
.map-member-form input:focus,
.map-member-form select:focus,
.map-search input:focus,
.cloud-drive-tools input:focus {
  border-color: rgba(244, 238, 145, 0.64);
  box-shadow: 0 0 0 1px rgba(244, 238, 145, 0.15), 0 0 28px rgba(100, 247, 255, 0.14);
}

.media-layout,
.vault-layout,
.map-layout,
.mirror-layout {
  gap: 18px;
}

.cloud-drive-console {
  gap: 18px;
}

.vault-list li,
.playlist-item,
.chat-bubble,
.map-status,
.map-member-form,
.map-quick-list,
.map-signal-list,
.browser-signal-list span,
.manual-flow span,
.manual-safety-list li {
  border-radius: var(--radius);
  border-color: rgba(138, 238, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(4, 13, 18, 0.64);
}

.chat-security-panel {
  grid-template-columns: minmax(128px, 0.18fr) minmax(280px, 0.42fr) minmax(300px, 0.4fr);
}

.chat-mode-note,
.member-key-panel {
  border-radius: var(--radius);
}

.chat-stream {
  padding: 18px;
}

.chat-compose {
  border-top-color: rgba(138, 238, 255, 0.18);
  background: rgba(3, 10, 14, 0.72);
}

.map-frame-shell {
  min-height: 680px;
}

.map-canvas {
  min-height: 640px;
}

.map-control-panel {
  max-height: min(760px, calc(100vh - 142px));
}

.private-browser-shell {
  gap: 14px;
}

.private-browser-frame-wrap {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(138, 238, 255, 0.24);
}

.private-browser-frame-wrap iframe {
  min-height: 680px;
  background: #02070a;
}

.browser-signal-list {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 10px;
}

.manual-quick-jumps a {
  border-color: rgba(138, 238, 255, 0.24);
  background: rgba(6, 18, 23, 0.74);
}

.manual-grid {
  gap: 16px;
}

.manual-card {
  position: relative;
  overflow: hidden;
}

.dragon-status-card {
  border-color: rgba(138, 238, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(138, 238, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 22, 27, 0.86), rgba(3, 10, 14, 0.78));
  background-size: 18px 18px, auto;
}

.dragon-status-card strong {
  color: var(--gold);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(2, 8, 12, 0.7);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 12, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(100, 247, 255, 0.58), rgba(143, 140, 255, 0.42));
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  h1 {
    font-size: 44px;
  }

  .chat-security-panel,
  .private-browser-toolbar,
  .private-browser-status-bar {
    grid-template-columns: 1fr;
  }

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

  .chat-room-body {
    grid-template-columns: 1fr;
  }

  .chat-presence-panel {
    max-height: 220px;
    border-left: 0;
    border-top: 1px solid rgba(91, 255, 244, 0.18);
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: relative;
    height: auto;
    padding: 16px;
  }

  .workspace {
    padding: 16px 14px 32px;
  }

  .top-bar,
  .section-head {
    display: grid;
    gap: 14px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .gift-stage {
    min-height: auto;
    padding: 18px;
  }

  .holo-visual {
    min-height: 300px;
  }

  .gallery-grid,
  .browser-signal-list {
    grid-template-columns: 1fr;
  }

  .chat-room-top {
    grid-template-columns: 1fr;
  }

  .chat-room-actions,
  .chat-room-actions .ghost-button,
  .chat-room-actions > span {
    width: 100%;
  }

  .chat-room-actions {
    justify-content: stretch;
  }

  .private-browser-frame-wrap,
  .private-browser-frame-wrap iframe,
  .map-frame-shell,
  .map-canvas {
    min-height: 480px;
  }
}

/* v55 final Incube-style lock: placed last to override previous skins */
:root {
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(145, 255, 79, 0.28);
  --glass: rgba(0, 0, 0, 0.58);
  --cloud: #050605;
  --sky: #91ff4f;
  --gold: #91ff4f;
  --mint: #1fad8c;
  --panel: rgba(0, 0, 0, 0.66);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  --radius: 3px;
  --font-body: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-ui: "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-tech: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html,
body,
body[data-view="home"],
body:not([data-view="home"]) {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(circle at 50% 47%, rgba(145, 255, 79, 0.14), transparent 28rem),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.055), transparent 15rem),
    linear-gradient(135deg, #0b0c0b 0%, #040504 52%, #000 100%) !important;
  animation: none !important;
}

body::before,
body[data-view="home"]::before,
body:not([data-view="home"])::before {
  opacity: 0.54;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(145, 255, 79, 0.1) 36%, transparent 42%),
    radial-gradient(circle at 50% 48%, rgba(145, 255, 79, 0.16), transparent 22rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 88%) !important;
  background-size: auto !important;
  filter: none !important;
  mask-image: none !important;
  mix-blend-mode: screen;
  transform: none !important;
  animation: incubeAmbientPulse 14s ease-in-out infinite alternate !important;
}

body::after,
body[data-view="home"]::after,
body:not([data-view="home"])::after {
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 55%, transparent 0 45%, rgba(0, 0, 0, 0.66) 78%, rgba(0, 0, 0, 0.95)) !important;
  mix-blend-mode: normal;
}

.dream-canvas,
.sky-ribbons,
.cloud-drift,
.top-bar,
.future-signal-strip,
body[data-view="home"] .top-bar,
body[data-view="home"] .future-signal-strip {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: block !important;
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.app-shell::before {
  width: min(840px, 78vw);
  height: min(840px, 78vw);
  margin: auto;
  opacity: 0.82;
  background:
    linear-gradient(121deg, rgba(255, 255, 255, 0.14), transparent 18% 100%),
    linear-gradient(90deg, transparent 0 48%, rgba(145, 255, 79, 0.98) 49% 50.2%, transparent 51%),
    linear-gradient(22deg, transparent 0 45%, rgba(145, 255, 79, 0.8) 46% 47.2%, transparent 49%),
    linear-gradient(158deg, transparent 0 55%, rgba(145, 255, 79, 0.68) 56% 57.2%, transparent 59%),
    conic-gradient(from 45deg at 50% 46%, #050805 0 25%, #0b100d 0 50%, #020302 0 75%, #111812 0 100%);
  clip-path: polygon(50% 4%, 89% 27%, 89% 73%, 50% 96%, 11% 73%, 11% 27%);
  filter:
    drop-shadow(0 0 34px rgba(145, 255, 79, 0.26))
    drop-shadow(0 0 96px rgba(145, 255, 79, 0.16));
  animation: incubeGlobalMonolithFloat 13s ease-in-out infinite alternate;
}

body:not([data-view="home"]) .app-shell::before {
  width: min(720px, 64vw);
  height: min(720px, 64vw);
  opacity: 0.32;
  animation-name: incubeInteriorMonolithFloat;
}

.app-shell::after {
  background:
    linear-gradient(90deg, transparent 4%, rgba(145, 255, 79, 0.24) 4.1% 4.25%, transparent 4.35%),
    linear-gradient(90deg, transparent 88%, rgba(145, 255, 79, 0.18) 88.1% 88.22%, transparent 88.32%),
    radial-gradient(circle at 8% 26%, rgba(145, 255, 79, 0.13), transparent 10rem),
    radial-gradient(circle at 92% 40%, rgba(145, 255, 79, 0.12), transparent 12rem);
}

.app-shell .side-rail,
body[data-view="home"] .side-rail,
body:not([data-view="home"]) .side-rail {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 26px clamp(24px, 5.2vw, 72px) 18px;
  border: 0;
  border-bottom: 1px solid rgba(145, 255, 79, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18)),
    transparent;
  box-shadow: none;
  backdrop-filter: blur(15px);
}

.side-rail::before,
.workspace::before {
  display: none !important;
}

.brand,
body[data-view="home"] .brand,
body:not([data-view="home"]) .brand {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-crest,
body[data-view="home"] .brand-crest {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter:
    grayscale(1)
    brightness(2.1)
    sepia(1)
    hue-rotate(45deg)
    saturate(4)
    drop-shadow(0 0 18px rgba(145, 255, 79, 0.42));
  animation: none;
}

.brand strong,
body[data-view="home"] .brand strong {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
}

.brand span,
body[data-view="home"] .brand span,
.side-status span,
body[data-view="home"] .side-status span {
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-tech);
  font-size: 10px;
}

.nav-list,
body[data-view="home"] .nav-list,
body:not([data-view="home"]) .nav-list {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 1.3vw, 24px);
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item,
body[data-view="home"] .nav-item,
body:not([data-view="home"]) .nav-item {
  flex: 0 0 auto;
  grid-template-columns: 18px auto;
  min-width: max-content;
  min-height: 32px;
  padding: 0;
  clip-path: none;
  color: rgba(255, 255, 255, 0.54);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.nav-item::after,
body[data-view="home"] .nav-item::after {
  inset: auto 0 -3px;
  width: 100%;
  height: 1px;
  opacity: 0;
  background: #91ff4f;
  transform: none;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active,
body[data-view="home"] .nav-item:hover,
body[data-view="home"] .nav-item:focus-visible,
body[data-view="home"] .nav-item.is-active,
body:not([data-view="home"]) .nav-item:hover,
body:not([data-view="home"]) .nav-item:focus-visible,
body:not([data-view="home"]) .nav-item.is-active {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  opacity: 1;
  animation: none;
}

.side-status {
  display: flex;
  gap: 20px;
  margin: 0;
}

.side-status div,
body[data-view="home"] .side-status div,
body:not([data-view="home"]) .side-status div {
  min-width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.side-status strong,
body[data-view="home"] .side-status strong {
  color: #91ff4f;
  font-family: var(--font-ui);
  font-size: 13px;
}

.workspace,
body[data-view="home"] .workspace,
body:not([data-view="home"]) .workspace {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 80px) clamp(20px, 5vw, 72px) 72px;
}

.eyebrow,
body:not([data-view="home"]) .eyebrow,
body[data-view="home"] .command-copy .eyebrow {
  color: rgba(145, 255, 79, 0.78);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
.section-head h2,
body:not([data-view="home"]) h1,
body:not([data-view="home"]) h2 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 0.92;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.1);
}

.section-head {
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-head h2 {
  font-size: clamp(46px, 7vw, 112px);
}

.command-bridge,
body[data-view="home"] .command-bridge {
  position: relative;
  min-height: calc(100vh - 104px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) clamp(20px, 5vw, 74px);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.command-bridge::before,
body[data-view="home"] .command-bridge::before {
  position: absolute;
  inset: 43% auto auto 50%;
  width: min(760px, 72vw);
  height: min(760px, 72vw);
  content: "";
  opacity: 0.98;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 48.6%, rgba(145, 255, 79, 0.98) 49.2% 50.3%, transparent 51%),
    linear-gradient(20deg, transparent 0 42%, rgba(145, 255, 79, 0.78) 43% 44.2%, transparent 45.2%),
    linear-gradient(160deg, transparent 0 55%, rgba(145, 255, 79, 0.58) 56% 57%, transparent 58%),
    conic-gradient(from 45deg at 50% 47%, #090d09 0 25%, #000 0 50%, #141915 0 75%, #030403 0 100%);
  clip-path: polygon(50% 1%, 88% 24%, 89% 75%, 50% 98%, 11% 75%, 12% 24%);
  filter:
    drop-shadow(0 0 30px rgba(145, 255, 79, 0.38))
    drop-shadow(0 0 96px rgba(145, 255, 79, 0.2));
  transform: translate(-50%, -47%);
  animation: incubeMonolithFloat 10s ease-in-out infinite alternate;
}

.command-bridge::after,
body[data-view="home"] .command-bridge::after {
  position: absolute;
  inset: 20% 7% auto;
  height: 2px;
  content: "";
  opacity: 0.86;
  background:
    linear-gradient(90deg, transparent 0 14%, #91ff4f 16% 30%, transparent 32% 46%, #91ff4f 47% 52%, transparent 54% 70%, #91ff4f 72% 86%, transparent 88%);
  box-shadow:
    0 0 20px rgba(145, 255, 79, 0.74),
    0 12rem 0 rgba(145, 255, 79, 0.6),
    0 12rem 24px rgba(145, 255, 79, 0.38);
  animation: incubeLineScan 6s ease-in-out infinite alternate;
}

.command-product-visual,
.command-core,
.command-ambient {
  display: none !important;
}

.command-copy,
body[data-view="home"] .command-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  background: transparent;
}

.command-copy::before {
  display: none;
}

.command-copy h2,
body[data-view="home"] .command-copy h2 {
  max-width: 11ch;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(68px, 13.5vw, 196px);
  font-weight: 100;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.8),
    0 0 34px rgba(145, 255, 79, 0.16);
}

.command-lede,
body[data-view="home"] .command-lede {
  max-width: 620px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.75;
}

.command-metrics,
body[data-view="home"] .command-metrics {
  justify-content: center;
  margin-top: 36px;
  gap: 18px;
}

.command-metrics span,
body[data-view="home"] .command-metrics span {
  min-width: 130px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(145, 255, 79, 0.5);
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-tech);
}

.command-metrics b,
body[data-view="home"] .command-metrics b {
  color: #91ff4f;
}

.gift-stage,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.cloud-drive-sidebar,
.cloud-drive-main,
.chat-room,
.map-frame-shell,
.map-control-panel,
.private-browser-toolbar,
.private-browser-status-bar,
.private-browser-frame-wrap,
.mirror-stage,
.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card,
.manual-card,
.manual-hero-panel,
.vault-lock-panel,
.vault-cloud-panel,
.chat-security-panel,
.member-key-form,
.member-key-output,
.map-member-form,
.map-quick-list,
.chat-mode-note,
.member-key-panel,
.vault-toolbar,
.media-shell,
.image-dialog figure,
.call-panel,
.install-dialog-card {
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(0, 0, 0, 0.66) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(145, 255, 79, 0.035) !important;
  backdrop-filter: blur(8px);
}

.gift-stage::before,
.feature-panel::after,
.memory-card::after,
.manual-card::after,
.player-surface::after,
.drop-zone::after,
.cloud-drive-main::after,
.chat-room::after,
.map-frame-shell::after,
.private-browser-frame-wrap::after,
.mirror-stage::after {
  opacity: 1 !important;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.56), transparent 28% 72%, rgba(145, 255, 79, 0.22)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(145, 255, 79, 0.42), transparent 24% 76%, rgba(145, 255, 79, 0.14)) left / 1px 100% no-repeat !important;
  mask: none !important;
}

.primary-action,
.ghost-button,
.icon-button,
label.primary-action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 3px !important;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.12), transparent),
    rgba(0, 0, 0, 0.54) !important;
  box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 700;
}

.primary-action,
label.primary-action {
  color: #050605 !important;
  border-color: rgba(145, 255, 79, 0.96) !important;
  background: #91ff4f !important;
  box-shadow:
    0 0 18px rgba(145, 255, 79, 0.28),
    0 0 60px rgba(145, 255, 79, 0.1);
}

.primary-action::after {
  display: none;
}

input,
textarea,
select {
  color: #fff;
  border: 1px solid rgba(145, 255, 79, 0.25) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.035), transparent),
    rgba(0, 0, 0, 0.62) !important;
  box-shadow: none !important;
  font-family: var(--font-ui);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(145, 255, 79, 0.8) !important;
  box-shadow:
    0 0 0 1px rgba(145, 255, 79, 0.12),
    0 0 28px rgba(145, 255, 79, 0.12) !important;
}

.vault-lock-state strong,
.cloud-drive-status strong,
.chat-room-top strong,
.chat-presence-head span,
.map-member-card strong,
.member-card strong,
.vault-lock-state span,
.chat-room-top span {
  color: #91ff4f !important;
}

.cloud-filter {
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.cloud-filter.is-active {
  color: #050605 !important;
  background: #91ff4f !important;
}

.drop-zone,
.chat-room {
  background:
    repeating-linear-gradient(0deg, rgba(145, 255, 79, 0.07) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.7)) !important;
}

.chat-shield-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(145, 255, 79, 0.1), transparent 16rem),
    rgba(0, 0, 0, 0.52) !important;
}

.chat-bubble.me {
  color: #050605 !important;
  background: #91ff4f !important;
}

.patrol-dragon {
  right: 18px !important;
  bottom: 18px !important;
  z-index: 65;
}

.patrol-dragon.is-collapsed .dragon-button,
.patrol-dragon.is-expanded .dragon-button,
.dragon-status-card {
  border-color: rgba(145, 255, 79, 0.22) !important;
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.62) !important;
  box-shadow: 0 0 28px rgba(145, 255, 79, 0.12) !important;
}

@media (max-width: 1180px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    justify-content: start;
  }

  .side-status {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    position: relative;
    padding: 16px 14px 12px;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
  }

  .nav-item,
  body[data-view="home"] .nav-item,
  body:not([data-view="home"]) .nav-item {
    justify-content: center;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.38);
    font-size: 12px;
  }

  .workspace,
  body[data-view="home"] .workspace,
  body:not([data-view="home"]) .workspace {
    padding: 28px 14px 54px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: clamp(42px, 15vw, 70px);
  }

  .command-bridge,
  body[data-view="home"] .command-bridge {
    min-height: 680px;
    padding: 70px 0;
  }

  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    font-size: clamp(64px, 21vw, 104px);
  }

  .command-bridge::before,
  body[data-view="home"] .command-bridge::before,
  .app-shell::before {
    width: 110vw;
    height: 110vw;
  }
}

/* v55 home title refinement */
body[data-view="home"] .command-copy {
  transform: translateY(-2vh);
}

.command-copy h2,
body[data-view="home"] .command-copy h2 {
  max-width: min(1080px, 94vw);
  font-size: clamp(72px, 9.2vw, 150px);
  line-height: 0.92;
}

@media (max-width: 760px) {
  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    max-width: 92vw;
    font-size: clamp(48px, 15vw, 82px);
  }
}

/* v54 Incube-inspired black/green monolith interface */
:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(142, 255, 80, 0.28);
  --glass: rgba(0, 0, 0, 0.54);
  --cloud: #050605;
  --sky: #91ff4f;
  --gold: #91ff4f;
  --mint: #1fad8c;
  --coral: #c6ff76;
  --violet: #78936f;
  --deep: #020302;
  --panel: rgba(5, 7, 5, 0.72);
  --shadow: 0 32px 110px rgba(143, 255, 73, 0.1);
  --radius: 3px;
  --font-body: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-ui: "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-tech: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html {
  background: #020302;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(circle at 50% 48%, rgba(143, 255, 73, 0.12), transparent 30rem),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.055), transparent 16rem),
    linear-gradient(135deg, #0a0b0a 0%, #040504 52%, #000 100%);
  background-attachment: fixed;
  animation: none !important;
}

body[data-view="home"],
body:not([data-view="home"]) {
  background:
    radial-gradient(circle at 50% 48%, rgba(143, 255, 73, 0.12), transparent 30rem),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.055), transparent 16rem),
    linear-gradient(135deg, #0a0b0a 0%, #040504 52%, #000 100%);
  animation: none !important;
}

body::before,
body[data-view="home"]::before,
body:not([data-view="home"])::before {
  opacity: 0.62;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(143, 255, 73, 0.1) 36%, transparent 42%),
    radial-gradient(circle at 50% 48%, rgba(143, 255, 73, 0.16), transparent 21rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.58) 88%);
  background-size: auto;
  mask-image: none;
  mix-blend-mode: screen;
  animation: incubeAmbientPulse 14s ease-in-out infinite alternate;
}

body::after,
body[data-view="home"]::after,
body:not([data-view="home"])::after {
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 55%, transparent 0 45%, rgba(0, 0, 0, 0.64) 78%, rgba(0, 0, 0, 0.94));
  mix-blend-mode: normal;
}

.dream-canvas,
.sky-ribbons,
.cloud-drift {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.app-shell::before {
  width: min(840px, 78vw);
  height: min(840px, 78vw);
  margin: auto;
  opacity: 0.78;
  background:
    linear-gradient(121deg, rgba(255, 255, 255, 0.12), transparent 18% 100%),
    linear-gradient(90deg, transparent 0 48%, rgba(143, 255, 73, 0.95) 49% 50.2%, transparent 51%),
    linear-gradient(22deg, transparent 0 45%, rgba(143, 255, 73, 0.76) 46% 47.2%, transparent 49%),
    linear-gradient(158deg, transparent 0 55%, rgba(143, 255, 73, 0.64) 56% 57.2%, transparent 59%),
    conic-gradient(from 45deg at 50% 46%, #050805 0 25%, #0b100d 0 50%, #020302 0 75%, #111812 0 100%);
  clip-path: polygon(50% 4%, 89% 27%, 89% 73%, 50% 96%, 11% 73%, 11% 27%);
  filter:
    drop-shadow(0 0 34px rgba(143, 255, 73, 0.22))
    drop-shadow(0 0 92px rgba(143, 255, 73, 0.13));
  transform: translate3d(0, 4vh, 0) scale(0.94);
  animation: incubeMonolithFloat 13s ease-in-out infinite alternate;
}

body:not([data-view="home"]) .app-shell::before {
  width: min(720px, 64vw);
  height: min(720px, 64vw);
  opacity: 0.34;
  transform: translate3d(16vw, 10vh, 0) scale(0.9);
}

.app-shell::after {
  background:
    linear-gradient(90deg, transparent 4%, rgba(143, 255, 73, 0.24) 4.1% 4.25%, transparent 4.35%),
    linear-gradient(90deg, transparent 88%, rgba(143, 255, 73, 0.18) 88.1% 88.22%, transparent 88.32%),
    radial-gradient(circle at 8% 26%, rgba(143, 255, 73, 0.13), transparent 10rem),
    radial-gradient(circle at 92% 40%, rgba(143, 255, 73, 0.12), transparent 12rem);
}

.login-gate {
  background:
    radial-gradient(circle at 50% 48%, rgba(143, 255, 73, 0.18), transparent 29rem),
    linear-gradient(135deg, rgba(2, 3, 2, 0.98), rgba(5, 7, 5, 0.98));
}

.gate-panel,
.guardian-shell,
.question-console {
  border-radius: 3px;
  border-color: rgba(143, 255, 73, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 32%),
    rgba(0, 0, 0, 0.68);
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(143, 255, 73, 0.075);
}

.gate-copy h2,
.question-console strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 200;
}

.app-shell .side-rail,
body[data-view="home"] .side-rail,
body:not([data-view="home"]) .side-rail {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 26px clamp(24px, 5.2vw, 72px) 18px;
  border: 0;
  border-bottom: 1px solid rgba(143, 255, 73, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16)),
    transparent;
  box-shadow: none;
  backdrop-filter: blur(15px);
}

.side-rail::before {
  display: none;
}

.brand,
body[data-view="home"] .brand,
body:not([data-view="home"]) .brand {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-crest,
body[data-view="home"] .brand-crest {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter:
    grayscale(1)
    brightness(2.1)
    sepia(1)
    hue-rotate(45deg)
    saturate(4)
    drop-shadow(0 0 18px rgba(143, 255, 73, 0.42));
  animation: none;
}

.brand strong,
body[data-view="home"] .brand strong {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand span,
body[data-view="home"] .brand span {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-tech);
  font-size: 10px;
  text-transform: uppercase;
}

.nav-list,
body[data-view="home"] .nav-list,
body:not([data-view="home"]) .nav-list {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 1.3vw, 24px);
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item,
body[data-view="home"] .nav-item,
body:not([data-view="home"]) .nav-item {
  flex: 0 0 auto;
  grid-template-columns: 18px auto;
  min-width: max-content;
  min-height: 32px;
  padding: 0;
  clip-path: none;
  color: rgba(255, 255, 255, 0.54);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.nav-item::after,
body[data-view="home"] .nav-item::after {
  inset: auto 0 -3px;
  width: 100%;
  height: 1px;
  opacity: 0;
  background: #91ff4f;
  transform: none;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active,
body[data-view="home"] .nav-item:hover,
body[data-view="home"] .nav-item:focus-visible,
body[data-view="home"] .nav-item.is-active,
body:not([data-view="home"]) .nav-item:hover,
body:not([data-view="home"]) .nav-item:focus-visible,
body:not([data-view="home"]) .nav-item.is-active {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  opacity: 1;
  animation: none;
}

.side-status {
  display: flex;
  gap: 20px;
  margin: 0;
}

.side-status div,
body[data-view="home"] .side-status div,
body:not([data-view="home"]) .side-status div {
  min-width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.side-status span,
body[data-view="home"] .side-status span {
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-tech);
  font-size: 9px;
  text-transform: uppercase;
}

.side-status strong,
body[data-view="home"] .side-status strong {
  color: #91ff4f;
  font-family: var(--font-ui);
  font-size: 13px;
}

.workspace,
body[data-view="home"] .workspace,
body:not([data-view="home"]) .workspace {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 80px) clamp(20px, 5vw, 72px) 72px;
}

.workspace::before,
body[data-view="home"] .workspace::before {
  display: none;
}

.top-bar,
body[data-view="home"] .top-bar,
body:not([data-view="home"]) .top-bar {
  display: none;
  grid-template-columns: minmax(0, 0.92fr) auto;
  align-items: end;
  gap: 22px;
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  backdrop-filter: none;
}

body[data-view="home"] .top-bar {
  display: none;
}

.top-bar::after,
.section-head::after {
  display: none;
}

.eyebrow,
body:not([data-view="home"]) .eyebrow,
body[data-view="home"] .command-copy .eyebrow {
  color: rgba(143, 255, 73, 0.78);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.top-bar h1,
.section-head h2,
body:not([data-view="home"]) h1,
body:not([data-view="home"]) h2 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 0.92;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.1);
}

.top-bar h1,
.section-head h2 {
  font-size: clamp(42px, 7vw, 112px);
}

.section-head {
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-actions,
.call-actions {
  gap: 10px;
}

.future-signal-strip,
body[data-view="home"] .future-signal-strip {
  display: none;
}

body[data-view="home"] #home {
  display: block;
}

.command-bridge,
body[data-view="home"] .command-bridge {
  position: relative;
  min-height: calc(100vh - 104px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) clamp(20px, 5vw, 74px);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.command-bridge::before,
body[data-view="home"] .command-bridge::before {
  position: absolute;
  inset: 43% auto auto 50%;
  width: min(760px, 72vw);
  height: min(760px, 72vw);
  content: "";
  opacity: 0.92;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 48.6%, rgba(143, 255, 73, 0.95) 49.2% 50.3%, transparent 51%),
    linear-gradient(20deg, transparent 0 42%, rgba(143, 255, 73, 0.75) 43% 44.2%, transparent 45.2%),
    linear-gradient(160deg, transparent 0 55%, rgba(143, 255, 73, 0.54) 56% 57%, transparent 58%),
    conic-gradient(from 45deg at 50% 47%, #090d09 0 25%, #000 0 50%, #141915 0 75%, #030403 0 100%);
  clip-path: polygon(50% 1%, 88% 24%, 89% 75%, 50% 98%, 11% 75%, 12% 24%);
  filter:
    drop-shadow(0 0 28px rgba(143, 255, 73, 0.34))
    drop-shadow(0 0 90px rgba(143, 255, 73, 0.18));
  transform: translate(-50%, -47%);
  animation: incubeMonolithFloat 10s ease-in-out infinite alternate;
}

.command-bridge::after,
body[data-view="home"] .command-bridge::after {
  position: absolute;
  inset: 20% 7% auto;
  height: 2px;
  content: "";
  opacity: 0.82;
  background:
    linear-gradient(90deg, transparent 0 14%, #91ff4f 16% 30%, transparent 32% 46%, #91ff4f 47% 52%, transparent 54% 70%, #91ff4f 72% 86%, transparent 88%);
  box-shadow:
    0 0 20px rgba(143, 255, 73, 0.72),
    0 12rem 0 rgba(143, 255, 73, 0.55),
    0 12rem 24px rgba(143, 255, 73, 0.36);
  animation: incubeLineScan 6s ease-in-out infinite alternate;
}

.command-product-visual,
.command-core,
.command-ambient {
  display: none !important;
}

.command-copy,
body[data-view="home"] .command-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  background: transparent;
}

.command-copy::before {
  display: none;
}

.command-copy h2,
body[data-view="home"] .command-copy h2 {
  max-width: 11ch;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(68px, 13.5vw, 196px);
  font-weight: 100;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.8),
    0 0 34px rgba(143, 255, 73, 0.16);
}

.command-lede,
body[data-view="home"] .command-lede {
  max-width: 620px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.75;
}

.command-metrics,
body[data-view="home"] .command-metrics {
  justify-content: center;
  margin-top: 36px;
  gap: 18px;
}

.command-metrics span,
body[data-view="home"] .command-metrics span,
.future-signal-strip span {
  min-width: 130px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(143, 255, 73, 0.5);
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.command-metrics b,
body[data-view="home"] .command-metrics b {
  color: #91ff4f;
}

.mission-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.gift-stage,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.cloud-drive-sidebar,
.cloud-drive-main,
.chat-room,
.map-frame-shell,
.map-control-panel,
.private-browser-toolbar,
.private-browser-status-bar,
.private-browser-frame-wrap,
.mirror-stage,
.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card,
.manual-card,
.manual-hero-panel,
.vault-lock-panel,
.vault-cloud-panel,
.chat-security-panel,
.member-key-form,
.member-key-output,
.map-member-form,
.map-quick-list,
.chat-mode-note,
.member-key-panel,
.vault-toolbar,
.media-shell,
.image-dialog figure,
.call-panel,
.install-dialog-card,
body:not([data-view="home"]) .gift-stage,
body:not([data-view="home"]) .feature-panel,
body:not([data-view="home"]) .memory-card,
body:not([data-view="home"]) .player-surface,
body:not([data-view="home"]) .playlist,
body:not([data-view="home"]) .drop-zone,
body:not([data-view="home"]) .vault-list-wrap,
body:not([data-view="home"]) .cloud-drive-sidebar,
body:not([data-view="home"]) .cloud-drive-main,
body:not([data-view="home"]) .chat-room,
body:not([data-view="home"]) .map-frame-shell,
body:not([data-view="home"]) .map-control-panel,
body:not([data-view="home"]) .private-browser-toolbar,
body:not([data-view="home"]) .private-browser-status-bar,
body:not([data-view="home"]) .private-browser-frame-wrap,
body:not([data-view="home"]) .mirror-stage,
body:not([data-view="home"]) .mirror-key-form,
body:not([data-view="home"]) .mirror-guide-form,
body:not([data-view="home"]) .mirror-incoming,
body:not([data-view="home"]) .mirror-status-card,
body:not([data-view="home"]) .manual-card,
body:not([data-view="home"]) .manual-hero-panel,
body:not([data-view="home"]) .vault-lock-panel,
body:not([data-view="home"]) .vault-cloud-panel,
body:not([data-view="home"]) .chat-security-panel,
body:not([data-view="home"]) .member-key-form,
body:not([data-view="home"]) .member-key-output {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(0, 0, 0, 0.62);
  background-size: auto;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(143, 255, 73, 0.035);
  backdrop-filter: blur(8px);
}

.gift-stage::before,
.feature-panel::after,
.memory-card::after,
.manual-card::after,
.player-surface::after,
.drop-zone::after,
.cloud-drive-main::after,
.chat-room::after,
.map-frame-shell::after,
.private-browser-frame-wrap::after,
.mirror-stage::after,
body:not([data-view="home"]) .chat-room::after,
body:not([data-view="home"]) .map-frame-shell::after,
body:not([data-view="home"]) .private-browser-frame-wrap::after,
body:not([data-view="home"]) .mirror-stage::after,
body:not([data-view="home"]) .cloud-drive-main::after,
body:not([data-view="home"]) .drop-zone::after {
  inset: 0;
  padding: 0;
  border-radius: inherit;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(143, 255, 73, 0.56), transparent 28% 72%, rgba(143, 255, 73, 0.22)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(143, 255, 73, 0.42), transparent 24% 76%, rgba(143, 255, 73, 0.14)) left / 1px 100% no-repeat;
  mask: none;
  pointer-events: none;
  content: "";
}

.feature-panel:hover,
.memory-card:hover,
.manual-card:hover,
.cloud-filter:hover,
.nav-item:hover {
  border-color: rgba(143, 255, 73, 0.38);
  box-shadow:
    0 0 42px rgba(143, 255, 73, 0.1),
    0 26px 80px rgba(0, 0, 0, 0.3);
}

.panel-icon,
.panel-icon.gold {
  color: #050605;
  border: 0;
  border-radius: 3px;
  background: #91ff4f;
  box-shadow: 0 0 22px rgba(143, 255, 73, 0.34);
}

.primary-action,
.ghost-button,
.icon-button,
label.primary-action,
body:not([data-view="home"]) .primary-action,
body:not([data-view="home"]) .ghost-button,
body:not([data-view="home"]) .icon-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(143, 255, 73, 0.12), transparent),
    rgba(0, 0, 0, 0.54);
  box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 700;
}

.primary-action,
label.primary-action,
body:not([data-view="home"]) .primary-action {
  color: #050605;
  border-color: rgba(143, 255, 73, 0.96);
  background: #91ff4f;
  box-shadow:
    0 0 18px rgba(143, 255, 73, 0.28),
    0 0 60px rgba(143, 255, 73, 0.1);
}

.primary-action::after {
  display: none;
}

.ghost-button:hover,
.icon-button:hover,
.primary-action:hover,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.primary-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(143, 255, 73, 0.68);
  box-shadow: 0 0 26px rgba(143, 255, 73, 0.14);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
}

input,
textarea,
select {
  color: #fff;
  border: 1px solid rgba(143, 255, 73, 0.25);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(143, 255, 73, 0.035), transparent),
    rgba(0, 0, 0, 0.62);
  box-shadow: none;
  font-family: var(--font-ui);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(143, 255, 73, 0.8);
  box-shadow:
    0 0 0 1px rgba(143, 255, 73, 0.12),
    0 0 28px rgba(143, 255, 73, 0.12);
}

.vault-lock-state span,
.chat-room-top span,
.chat-room-actions > span,
.browser-signal-list span,
.map-signal-list span,
.cloud-drive-status span,
.manual-safety-list li,
.map-status,
.member-card,
.playlist-item,
.vault-list li,
.chat-bubble {
  border-color: rgba(143, 255, 73, 0.16);
  background:
    linear-gradient(90deg, rgba(143, 255, 73, 0.06), transparent),
    rgba(0, 0, 0, 0.5);
}

.vault-lock-state strong,
.cloud-drive-status strong,
.chat-room-top strong,
.chat-presence-head span,
.map-member-card strong,
.member-card strong {
  color: #91ff4f;
}

.cloud-drive-console,
.member-key-panel,
.map-dashboard,
.mirror-console,
.private-browser-shell {
  gap: 18px;
}

.cloud-filter {
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.cloud-filter.is-active {
  color: #050605;
  background: #91ff4f;
}

.drop-zone,
.chat-room,
body:not([data-view="home"]) .chat-room {
  background:
    repeating-linear-gradient(0deg, rgba(143, 255, 73, 0.07) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.7));
}

.chat-room {
  min-height: 680px;
}

.chat-shield-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(143, 255, 73, 0.1), transparent 16rem),
    rgba(0, 0, 0, 0.52);
}

.chat-shield-overlay i,
.drop-zone > svg {
  color: #91ff4f;
  filter: drop-shadow(0 0 18px rgba(143, 255, 73, 0.35));
}

.chat-bubble.me,
body:not([data-view="home"]) .chat-bubble.me {
  color: #050605;
  background: #91ff4f;
}

.chat-bubble.them {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.map-canvas,
.private-browser-frame-wrap iframe,
.mirror-stage {
  border-radius: 3px;
  filter: saturate(0.85) contrast(1.06);
}

.manual-core,
.manual-orbit {
  border-color: rgba(143, 255, 73, 0.28);
}

.manual-core-dot,
.manual-node,
.map-pin-dot {
  background: #91ff4f;
  box-shadow: 0 0 26px rgba(143, 255, 73, 0.4);
}

.patrol-dragon {
  right: 18px !important;
  bottom: 18px !important;
  z-index: 65;
}

.patrol-dragon.is-collapsed .dragon-button,
.patrol-dragon.is-expanded .dragon-button,
.dragon-status-card {
  border-color: rgba(143, 255, 73, 0.22);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 28px rgba(143, 255, 73, 0.12);
}

.dragon-photo {
  filter:
    saturate(0.86)
    contrast(1.04)
    drop-shadow(0 0 12px rgba(143, 255, 73, 0.18));
}

.dialog-backdrop,
.call-dialog,
.install-dialog,
.blackout-overlay {
  background:
    radial-gradient(circle at 50% 46%, rgba(143, 255, 73, 0.14), transparent 24rem),
    rgba(0, 0, 0, 0.82);
}

@keyframes incubeAmbientPulse {
  from {
    opacity: 0.34;
  }
  to {
    opacity: 0.64;
  }
}

@keyframes incubeMonolithFloat {
  from {
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    transform: translate(-50%, -45%) scale(1.02);
  }
}

.app-shell::before {
  animation-name: incubeGlobalMonolithFloat;
}

@keyframes incubeGlobalMonolithFloat {
  from {
    transform: translate3d(0, 3vh, 0) scale(0.92);
  }
  to {
    transform: translate3d(0, 6vh, 0) scale(1);
  }
}

body:not([data-view="home"]) .app-shell::before {
  animation-name: incubeInteriorMonolithFloat;
}

@keyframes incubeInteriorMonolithFloat {
  from {
    transform: translate3d(13vw, 7vh, 0) scale(0.88);
  }
  to {
    transform: translate3d(18vw, 11vh, 0) scale(0.96);
  }
}

@keyframes incubeLineScan {
  from {
    opacity: 0.46;
    transform: translateY(-4vh);
  }
  to {
    opacity: 0.94;
    transform: translateY(6vh);
  }
}

@media (max-width: 1180px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    justify-content: start;
  }

  .side-status {
    display: none;
  }

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

@media (max-width: 760px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    position: relative;
    padding: 16px 14px 12px;
  }

  .brand {
    width: 100%;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
  }

  .nav-item,
  body[data-view="home"] .nav-item,
  body:not([data-view="home"]) .nav-item {
    justify-content: center;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.38);
    font-size: 12px;
  }

  .workspace,
  body[data-view="home"] .workspace,
  body:not([data-view="home"]) .workspace {
    padding: 28px 14px 54px;
  }

  .top-bar,
  .section-head,
  body:not([data-view="home"]) .top-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .top-bar h1,
  .section-head h2 {
    font-size: clamp(42px, 15vw, 70px);
  }

  .command-bridge,
  body[data-view="home"] .command-bridge {
    min-height: 680px;
    padding: 70px 0;
  }

  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    font-size: clamp(64px, 21vw, 104px);
  }

  .command-bridge::before,
  body[data-view="home"] .command-bridge::before {
    width: 110vw;
    height: 110vw;
  }

  .command-metrics,
  body[data-view="home"] .command-metrics,
  .mission-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .call-actions {
    flex-wrap: wrap;
  }

  .app-shell::before {
    width: 110vw;
    height: 110vw;
    opacity: 0.56;
  }
}

/* v53 DNA Capital-inspired interior background */
body:not([data-view="home"]) {
  --ink: #f5f6ff;
  --muted: rgba(225, 229, 246, 0.62);
  --line: rgba(129, 149, 255, 0.18);
  --glass: rgba(22, 23, 34, 0.64);
  --panel: rgba(18, 19, 30, 0.68);
  --sky: #8ea8ff;
  --gold: #ef6587;
  background:
    radial-gradient(circle at 84% 36%, rgba(74, 88, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.055), transparent 18rem),
    linear-gradient(132deg, #202027 0%, #191a23 42%, #10121a 72%, #080910 100%);
  animation: none;
}

body:not([data-view="home"])::before {
  inset: auto;
  top: -22vh;
  right: 0;
  width: min(860px, 58vw);
  height: 138vh;
  opacity: 0.7;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(113, 128, 255, 0.78) 0 1.15px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 107, 151, 0.48) 0 0.85px, transparent 1.45px);
  background-position: 0 0, 4px 3px;
  background-size: 9px 9px, 13px 13px;
  filter:
    drop-shadow(0 0 22px rgba(91, 110, 255, 0.28))
    drop-shadow(0 0 54px rgba(70, 92, 255, 0.18));
  mask-image:
    radial-gradient(ellipse at 36% 54%, transparent 0 24%, #000 29% 64%, transparent 73%);
  transform: none;
  transform-origin: 58% 50%;
  animation: dnaMeshBreatheFlat 11s ease-in-out infinite alternate;
}

body:not([data-view="home"])::after {
  opacity: 0.34;
  background:
    radial-gradient(circle at 72% 42%, rgba(111, 125, 255, 0.18), transparent 31rem),
    radial-gradient(circle at 88% 82%, rgba(239, 101, 135, 0.1), transparent 18rem),
    linear-gradient(90deg, transparent 0 45%, rgba(9, 11, 18, 0.72) 78%, rgba(9, 11, 18, 0.18)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

body:not([data-view="home"]) .dream-canvas {
  display: none;
}

body:not([data-view="home"]) .cloud-drift,
body:not([data-view="home"]) .sky-ribbons {
  display: none;
}

body:not([data-view="home"]) .login-gate.is-unlocked .gate-backdrop span {
  display: none;
}

body:not([data-view="home"]) .view {
  scroll-margin-top: 120px;
}

body:not([data-view="home"]) .side-rail {
  background:
    linear-gradient(180deg, rgba(28, 29, 40, 0.82), rgba(13, 15, 24, 0.66)),
    rgba(20, 21, 31, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.26),
    inset 0 -1px 0 rgba(137, 150, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.16);
}

body:not([data-view="home"]) .brand,
body:not([data-view="home"]) .nav-list,
body:not([data-view="home"]) .side-status div,
body:not([data-view="home"]) .future-signal-strip span {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.07), transparent 42%),
    rgba(18, 19, 30, 0.54);
  box-shadow: none;
}

body:not([data-view="home"]) .nav-item {
  color: rgba(231, 234, 255, 0.66);
  background: rgba(255, 255, 255, 0.018);
}

body:not([data-view="home"]) .nav-item:hover,
body:not([data-view="home"]) .nav-item:focus-visible,
body:not([data-view="home"]) .nav-item.is-active {
  color: #fff;
  border-color: rgba(148, 162, 255, 0.36);
  background:
    linear-gradient(90deg, rgba(105, 125, 255, 0.18), rgba(239, 101, 135, 0.07)),
    rgba(28, 30, 45, 0.64);
}

body:not([data-view="home"]) h1,
body:not([data-view="home"]) h2 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 28px rgba(106, 125, 255, 0.13);
}

body:not([data-view="home"]) .eyebrow {
  color: rgba(210, 215, 255, 0.7);
  text-shadow: none;
}

body:not([data-view="home"]) .gift-stage,
body:not([data-view="home"]) .feature-panel,
body:not([data-view="home"]) .memory-card,
body:not([data-view="home"]) .player-surface,
body:not([data-view="home"]) .playlist,
body:not([data-view="home"]) .drop-zone,
body:not([data-view="home"]) .vault-list-wrap,
body:not([data-view="home"]) .cloud-drive-sidebar,
body:not([data-view="home"]) .cloud-drive-main,
body:not([data-view="home"]) .chat-room,
body:not([data-view="home"]) .map-frame-shell,
body:not([data-view="home"]) .map-control-panel,
body:not([data-view="home"]) .private-browser-toolbar,
body:not([data-view="home"]) .private-browser-status-bar,
body:not([data-view="home"]) .private-browser-frame-wrap,
body:not([data-view="home"]) .mirror-stage,
body:not([data-view="home"]) .mirror-key-form,
body:not([data-view="home"]) .mirror-guide-form,
body:not([data-view="home"]) .mirror-incoming,
body:not([data-view="home"]) .mirror-status-card,
body:not([data-view="home"]) .manual-card,
body:not([data-view="home"]) .manual-hero-panel,
body:not([data-view="home"]) .vault-lock-panel,
body:not([data-view="home"]) .vault-cloud-panel,
body:not([data-view="home"]) .chat-security-panel,
body:not([data-view="home"]) .member-key-form,
body:not([data-view="home"]) .member-key-output {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.07), transparent 48%),
    linear-gradient(180deg, rgba(24, 25, 38, 0.76), rgba(10, 12, 20, 0.68));
  background-size: auto;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px) saturate(1.12);
}

body:not([data-view="home"]) .chat-room {
  min-height: 650px;
}

body:not([data-view="home"]) .chat-room::after,
body:not([data-view="home"]) .map-frame-shell::after,
body:not([data-view="home"]) .private-browser-frame-wrap::after,
body:not([data-view="home"]) .mirror-stage::after,
body:not([data-view="home"]) .cloud-drive-main::after,
body:not([data-view="home"]) .drop-zone::after {
  opacity: 0.38;
  background: linear-gradient(135deg, rgba(136, 153, 255, 0.52), rgba(239, 101, 135, 0.12) 52%, rgba(255, 255, 255, 0.2));
}

body:not([data-view="home"]) .chat-bubble.me {
  color: #fff;
  background:
    linear-gradient(94deg, rgba(106, 125, 255, 0.86), rgba(239, 101, 135, 0.56)),
    rgba(32, 36, 64, 0.82);
}

body:not([data-view="home"]) .primary-action {
  color: #080910;
  background: linear-gradient(135deg, #f7f8ff, #a9b6ff 56%, #ff8eaa);
}

body:not([data-view="home"]) .ghost-button,
body:not([data-view="home"]) .icon-button {
  color: rgba(246, 248, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

@keyframes dnaBackgroundPulse {
  from {
    filter: brightness(0.94) saturate(0.95);
  }
  to {
    filter: brightness(1.08) saturate(1.12);
  }
}

@keyframes dnaMeshBreathe {
  0% {
    opacity: 0.58;
    transform:
      perspective(900px)
      rotateY(-37deg)
      rotateZ(8deg)
      skewY(-8deg)
      translate3d(0, 0, 0);
  }
  100% {
    opacity: 0.9;
    transform:
      perspective(900px)
      rotateY(-30deg)
      rotateZ(12deg)
      skewY(-5deg)
      translate3d(-2vw, 1.6vh, 0);
  }
}

@keyframes dnaMeshBreatheFlat {
  0% {
    opacity: 0.64;
    background-position: 0 0, 4px 3px;
    filter:
      drop-shadow(0 0 18px rgba(91, 110, 255, 0.2))
      drop-shadow(0 0 42px rgba(70, 92, 255, 0.12));
  }
  100% {
    opacity: 0.74;
    background-position: 14px 10px, -7px 8px;
    filter:
      drop-shadow(0 0 22px rgba(91, 110, 255, 0.24))
      drop-shadow(0 0 50px rgba(239, 101, 135, 0.09));
  }
}

@media (max-width: 1180px) {
  body:not([data-view="home"])::before {
    right: 0;
    width: 72vw;
    opacity: 0.58;
  }
}

@media (max-width: 760px) {
  body:not([data-view="home"])::before {
    top: 8vh;
    right: 0;
    width: 96vw;
    height: 96vh;
    opacity: 0.42;
    background-size: 8px 8px, 12px 12px;
  }

  body:not([data-view="home"])::after {
    opacity: 0.22;
  }

  body:not([data-view="home"]) .side-rail {
    background:
      linear-gradient(180deg, rgba(27, 28, 40, 0.94), rgba(15, 16, 25, 0.86)),
      rgba(15, 16, 25, 0.92);
  }
}

/* v47 command bridge redesign */
body {
  background:
    radial-gradient(circle at 50% -12%, rgba(100, 247, 255, 0.22), transparent 31%),
    radial-gradient(circle at 82% 14%, rgba(143, 140, 255, 0.16), transparent 30%),
    radial-gradient(circle at 20% 78%, rgba(77, 255, 191, 0.12), transparent 34%),
    repeating-linear-gradient(120deg, rgba(100, 247, 255, 0.026) 0 1px, transparent 1px 72px),
    linear-gradient(160deg, #01030a 0%, #06111c 48%, #02040a 100%);
}

.app-shell {
  display: block;
}

.side-rail {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 3vw, 34px);
  border-right: 0;
  border-bottom: 1px solid rgba(100, 247, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.1), transparent 35%, rgba(244, 238, 145, 0.055)),
    rgba(2, 7, 12, 0.84);
  backdrop-filter: blur(28px) saturate(1.3);
}

.side-rail::before {
  inset: 8px clamp(12px, 3vw, 28px);
  border-color: rgba(100, 247, 255, 0.1);
  background: linear-gradient(90deg, rgba(100, 247, 255, 0.06), transparent 45%, rgba(244, 238, 145, 0.045));
}

.brand {
  min-height: 62px;
  padding: 8px 10px;
}

.brand-crest {
  width: 44px;
  height: 44px;
}

.nav-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
  grid-template-columns: 20px auto;
  min-width: max-content;
  min-height: 42px;
  padding: 0 12px;
}

.side-status {
  margin-top: 0;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}

.side-status div {
  min-width: 110px;
  padding: 8px 10px;
}

.workspace {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px);
}

.top-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.top-bar h1 {
  font-size: clamp(34px, 5vw, 76px);
}

.future-signal-strip {
  margin: 0 0 18px;
}

#home > .gift-stage,
#home > .overview-grid {
  display: none;
}

.command-bridge {
  position: relative;
  min-height: min(760px, calc(100vh - 210px));
  display: grid;
  grid-template-columns: minmax(500px, 0.52fr) minmax(420px, 1fr) minmax(180px, 0.24fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(100, 247, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 54% 50%, rgba(100, 247, 255, 0.22), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(244, 238, 145, 0.12), transparent 22%),
    linear-gradient(145deg, rgba(8, 24, 36, 0.9), rgba(2, 5, 11, 0.9));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.35),
    inset 0 0 90px rgba(100, 247, 255, 0.07);
}

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

.command-bridge::before {
  inset: 18px;
  border: 1px solid rgba(100, 247, 255, 0.13);
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(100, 247, 255, 0.13) 49%, transparent 54% 100%),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.035) 9px 11px);
  mix-blend-mode: screen;
  animation: commandScan 8s ease-in-out infinite;
}

.command-bridge::after {
  right: 22px;
  bottom: 22px;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.9), rgba(244, 238, 145, 0.72), transparent);
  box-shadow: 0 0 22px rgba(100, 247, 255, 0.34);
}

.command-copy,
.command-actions {
  position: relative;
  z-index: 2;
}

.command-copy h2 {
  max-width: 620px;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(95deg, #f2feff, #64f7ff 34%, #f4ee91 58%, #8f8cff 84%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(100, 247, 255, 0.18));
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.command-metrics span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid rgba(100, 247, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 10, 17, 0.62);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.command-metrics b {
  color: #f4ee91;
  font-size: 22px;
}

.command-core {
  position: relative;
  z-index: 1;
  width: min(52vw, 680px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 42px rgba(100, 247, 255, 0.28))
    drop-shadow(0 42px 80px rgba(0, 0, 0, 0.34));
}

.core-grid,
.core-ring,
.core-halo,
.core-orbital,
.core-beam,
.core-node {
  position: absolute;
  display: block;
}

.core-grid {
  inset: 12%;
  border: 1px solid rgba(100, 247, 255, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(100, 247, 255, 0.12), transparent 62%);
  background-size: 28px 28px, 28px 28px, auto;
  mask-image: radial-gradient(circle, #000 0 64%, transparent 68%);
}

.core-ring {
  inset: var(--inset, 0);
  border: 1px solid rgba(100, 247, 255, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(100, 247, 255, 0.08), 0 0 28px rgba(100, 247, 255, 0.12);
}

.ring-one {
  --inset: 4%;
  animation: commandRotate 18s linear infinite;
}

.ring-two {
  --inset: 17%;
  border-color: rgba(244, 238, 145, 0.34);
  border-style: dashed;
  animation: commandRotate 12s linear infinite reverse;
}

.ring-three {
  --inset: 31%;
  border-color: rgba(143, 140, 255, 0.42);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: commandRotate 8s linear infinite;
}

.core-halo {
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, #f4ee91 0 14%, #64f7ff 16% 42%, rgba(100, 247, 255, 0.1) 44% 100%);
  box-shadow:
    0 0 38px rgba(244, 238, 145, 0.78),
    0 0 90px rgba(100, 247, 255, 0.4);
  animation: commandPulse 2.7s ease-in-out infinite;
}

.core-orbital {
  inset: 24% -8%;
  border: 2px solid rgba(100, 247, 255, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: commandOrbit 7s linear infinite;
}

.core-orbital.second {
  inset: 34% -2%;
  border-color: rgba(244, 238, 145, 0.28);
  transform: rotate(22deg);
  animation-duration: 10s;
  animation-direction: reverse;
}

.core-beam {
  inset: 50% -16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.85), rgba(244, 238, 145, 0.7), transparent);
  transform: rotate(-8deg);
  filter: blur(0.2px);
  animation: commandBeam 4.6s ease-in-out infinite;
}

.core-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64f7ff;
  box-shadow: 0 0 20px rgba(100, 247, 255, 0.82);
  animation: commandNode 2.8s ease-in-out infinite;
}

.core-node.n1 { left: 14%; top: 32%; }
.core-node.n2 { left: 34%; top: 12%; background: #f4ee91; animation-delay: -0.4s; }
.core-node.n3 { right: 18%; top: 24%; background: #8f8cff; animation-delay: -0.8s; }
.core-node.n4 { right: 12%; bottom: 33%; animation-delay: -1.2s; }
.core-node.n5 { left: 24%; bottom: 18%; background: #4dffbf; animation-delay: -1.6s; }
.core-node.n6 { left: 50%; bottom: 8%; background: #f4ee91; animation-delay: -2s; }

.command-actions {
  display: grid;
  gap: 12px;
}

.command-actions button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(100, 247, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.11), transparent),
    rgba(4, 14, 22, 0.78);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.command-actions button:hover,
.command-actions button:focus-visible {
  transform: translateX(-4px);
  border-color: rgba(244, 238, 145, 0.44);
  background:
    linear-gradient(90deg, rgba(244, 238, 145, 0.16), rgba(100, 247, 255, 0.1)),
    rgba(7, 20, 30, 0.86);
  outline: none;
}

.command-actions svg {
  width: 24px;
  height: 24px;
  color: #64f7ff;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

.mission-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(100, 247, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(4, 12, 20, 0.68);
}

.mission-grid span {
  color: #f4ee91;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 900;
}

.mission-grid strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
}

.mission-grid small {
  color: var(--muted);
  line-height: 1.6;
}

@keyframes commandScan {
  0%, 100% {
    opacity: 0.52;
    transform: translateX(-2%);
  }
  50% {
    opacity: 0.9;
    transform: translateX(2%);
  }
}

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

@keyframes commandPulse {
  0%, 100% {
    scale: 0.95;
  }
  50% {
    scale: 1.08;
  }
}

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

@keyframes commandBeam {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes commandNode {
  0%, 100% {
    scale: 0.8;
    opacity: 0.65;
  }
  50% {
    scale: 1.45;
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .side-rail {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
  }

  .side-status {
    display: none;
  }

  .command-bridge {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .command-copy h2 {
    max-width: 760px;
  }

  .command-core {
    order: -1;
    width: min(78vw, 560px);
  }

  .command-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .command-actions button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

@media (max-width: 760px) {
  .side-rail {
    position: relative;
    padding: 14px;
  }

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

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 0;
    min-height: 62px;
    text-align: center;
  }

  .workspace {
    padding: 14px;
  }

  .top-bar {
    grid-template-columns: 1fr;
  }

  .command-bridge {
    padding: 18px;
  }

  .command-copy h2 {
    font-size: clamp(34px, 13vw, 54px);
  }

  .command-metrics,
  .command-actions,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .command-core {
    width: min(92vw, 420px);
  }
}

/* Dragon dock: quiet by default, present on demand */
.patrol-dragon {
  top: auto !important;
  right: 18px;
  bottom: 18px;
  left: auto !important;
  z-index: 16;
  transform: none !important;
  transition: opacity 220ms ease, filter 220ms ease;
}

.patrol-dragon.is-collapsed {
  display: block;
  width: 82px;
  height: 90px;
  opacity: 0.52;
  filter:
    drop-shadow(0 0 12px rgba(100, 247, 255, 0.18))
    saturate(0.92);
}

.patrol-dragon.is-collapsed:hover,
.patrol-dragon.is-collapsed:focus-within {
  opacity: 0.88;
}

.patrol-dragon.is-collapsed .dragon-status-card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

.patrol-dragon.is-collapsed .dragon-button {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 82px;
  height: 90px;
  border: 1px solid rgba(138, 238, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 32%, rgba(100, 247, 255, 0.2), transparent 48%),
    rgba(5, 16, 21, 0.34);
  backdrop-filter: blur(6px);
}

.patrol-dragon.is-collapsed .dragon-photo {
  height: 78px;
  bottom: 3px;
  opacity: 0.78;
}

.patrol-dragon.is-collapsed .dragon-photo-aura {
  inset: 18% 4% 2%;
  opacity: 0.7;
}

.patrol-dragon.is-collapsed .dog-hearts {
  display: none;
}

.patrol-dragon.is-expanded {
  display: grid;
  grid-template-columns: minmax(152px, 186px) 154px;
  width: max-content;
  opacity: 1;
}

.patrol-dragon.is-expanded .dragon-status-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.patrol-dragon.is-expanded .dragon-button {
  width: 154px;
  height: 168px;
}

@media (max-width: 760px) {
  .patrol-dragon {
    right: 10px;
    bottom: 10px;
  }

  .patrol-dragon.is-collapsed {
    width: 66px;
    height: 74px;
  }

  .patrol-dragon.is-collapsed .dragon-button {
    width: 66px;
    height: 74px;
    border-radius: 20px;
  }

  .patrol-dragon.is-collapsed .dragon-photo {
    height: 62px;
  }

  .patrol-dragon.is-expanded {
    grid-template-columns: minmax(124px, 150px) 112px;
  }

  .patrol-dragon.is-expanded .dragon-button {
    width: 112px;
    height: 132px;
  }

  .patrol-dragon.is-expanded .dragon-photo {
    height: 122px;
  }
}

/* v48 cinematic future interface */
:root {
  --holo-x: 0;
  --holo-y: 0;
  --holo-shift-x: 0px;
  --holo-shift-y: 0px;
  --holo-copy-x: 0px;
  --holo-copy-y: 0px;
  --holo-tilt-x: 0deg;
  --holo-tilt-y: 0deg;
}

.dream-canvas {
  opacity: 0.74;
  mix-blend-mode: screen;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(137, 238, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 16%, rgba(244, 238, 145, 0.08), transparent 24rem),
    linear-gradient(115deg, rgba(100, 247, 255, 0.09), transparent 32rem),
    repeating-linear-gradient(90deg, rgba(137, 238, 255, 0.034) 0 1px, transparent 1px 7rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3.5rem),
    linear-gradient(155deg, #010206 0%, #031019 36%, #06171d 62%, #010207 100%);
}

body::before {
  opacity: 0.34;
  background:
    linear-gradient(118deg, transparent 0 32%, rgba(100, 247, 255, 0.16) 38%, transparent 46% 100%),
    conic-gradient(from 228deg at 50% 18%, transparent, rgba(100, 247, 255, 0.1), transparent 34%),
    linear-gradient(rgba(100, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 140, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 4.6rem 4.6rem, 4.6rem 4.6rem;
  animation: dataLatticeDrift 24s linear infinite, commandNebula 18s ease-in-out infinite alternate;
}

.login-gate {
  perspective: 1400px;
  background:
    radial-gradient(circle at 50% 42%, rgba(100, 247, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 50% 84%, rgba(244, 238, 145, 0.12), transparent 28rem),
    linear-gradient(160deg, rgba(1, 3, 8, 0.99), rgba(2, 16, 22, 0.98));
}

.login-gate::before,
.login-gate::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.login-gate::before {
  opacity: 0.44;
  background:
    radial-gradient(ellipse at 50% 102%, rgba(100, 247, 255, 0.18), transparent 42%),
    repeating-linear-gradient(92deg, transparent 0 3rem, rgba(100, 247, 255, 0.075) 3.05rem 3.12rem);
  transform-origin: 50% 100%;
  animation: gateRunway 9s linear infinite;
}

.login-gate::after {
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 48% 48%, transparent 0 18rem, rgba(100, 247, 255, 0.1) 18.2rem 18.5rem, transparent 19rem);
  mix-blend-mode: screen;
}

.gate-panel {
  width: min(1080px, 100%);
  min-height: 680px;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.92fr);
  align-items: center;
  border-color: rgba(137, 238, 255, 0.44);
  border-radius: 0;
  clip-path: polygon(0 2rem, 2rem 0, calc(100% - 2rem) 0, 100% 2rem, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 2rem 100%, 0 calc(100% - 2rem));
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 32% 48%, rgba(100, 247, 255, 0.2), transparent 20rem),
    radial-gradient(circle at 76% 18%, rgba(244, 238, 145, 0.1), transparent 15rem),
    linear-gradient(145deg, rgba(6, 20, 30, 0.92), rgba(1, 5, 11, 0.92));
  background-size: 3rem 3rem, 3rem 3rem, auto, auto, auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2rem 7rem rgba(0, 0, 0, 0.45),
    0 0 6rem rgba(100, 247, 255, 0.12),
    inset 0 0 6rem rgba(100, 247, 255, 0.09);
  transform: rotateX(var(--holo-tilt-x)) rotateY(var(--holo-tilt-y));
  transition: transform 160ms ease-out;
}

.gate-panel::before {
  inset: 1.1rem;
  border-color: rgba(244, 238, 145, 0.2);
  background:
    linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.06), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 22%);
}

.gate-panel::after {
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.18) 42%, rgba(100, 247, 255, 0.2) 47%, transparent 56% 100%);
  animation: holoSweep 4.4s ease-in-out infinite;
}

.gate-status {
  align-self: start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(100, 247, 255, 0.18);
  background: rgba(2, 9, 15, 0.66);
  box-shadow: inset 0 0 1.6rem rgba(100, 247, 255, 0.04);
}

.guardian-shell {
  min-height: 500px;
}

.sentinel-field {
  width: min(470px, 82vw);
  transform: translate3d(var(--holo-shift-x), var(--holo-shift-y), 0) rotateX(58deg) rotateZ(-10deg);
  filter:
    drop-shadow(0 0 2.6rem rgba(100, 247, 255, 0.34))
    drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.32));
}

.sentinel-horizon,
.sentinel-tunnel,
.sentinel-scan-orbit,
.sentinel-iris {
  position: absolute;
  pointer-events: none;
  display: block;
}

.sentinel-horizon {
  inset: -10% -4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(100, 247, 255, 0.18), transparent 46%),
    conic-gradient(from 0deg, transparent, rgba(100, 247, 255, 0.3), transparent 20%, rgba(244, 238, 145, 0.24), transparent 44%, rgba(143, 140, 255, 0.2), transparent);
  mask-image: radial-gradient(circle, transparent 0 52%, black 54% 62%, transparent 66%);
  animation: sentinelSpin 9s linear infinite;
}

.sentinel-tunnel {
  inset: var(--tunnel-inset, 8%);
  border: 1px solid rgba(100, 247, 255, 0.28);
  clip-path: polygon(50% 0, 90% 22%, 90% 78%, 50% 100%, 10% 78%, 10% 22%);
  box-shadow:
    inset 0 0 1.8rem rgba(100, 247, 255, 0.07),
    0 0 1.6rem rgba(100, 247, 255, 0.1);
  animation: sentinelTunnel 3.8s ease-in-out infinite;
}

.sentinel-tunnel.t2 {
  --tunnel-inset: 20%;
  border-color: rgba(244, 238, 145, 0.24);
  animation-delay: -1.2s;
}

.sentinel-tunnel.t3 {
  --tunnel-inset: 32%;
  border-color: rgba(143, 140, 255, 0.28);
  animation-delay: -2.4s;
}

.sentinel-scan-orbit {
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(100, 247, 255, 0.72), transparent 14%, transparent 58%, rgba(244, 238, 145, 0.4), transparent 72%);
  mask-image: radial-gradient(circle, transparent 0 62%, black 64% 66%, transparent 68%);
  animation: commandRotate 3.6s linear infinite;
}

.sentinel-iris {
  inset: 38%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, rgba(244, 238, 145, 0.9) 10% 18%, rgba(100, 247, 255, 0.5) 20% 54%, transparent 58%);
  box-shadow:
    0 0 1.8rem rgba(244, 238, 145, 0.7),
    0 0 4.2rem rgba(100, 247, 255, 0.5);
  animation: gateIris 2.2s ease-in-out infinite;
}

.gate-copy h2 {
  max-width: 560px;
  font-size: 3.4rem;
  line-height: 1.02;
  color: transparent;
  background: linear-gradient(96deg, #f8ffff, #64f7ff 36%, #f4ee91 64%, #f8ffff);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 1.7rem rgba(100, 247, 255, 0.22));
}

.question-console {
  border-color: rgba(100, 247, 255, 0.3);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.08), transparent),
    rgba(1, 9, 15, 0.78);
  box-shadow: inset 0 0 2.2rem rgba(100, 247, 255, 0.055);
}

.side-rail {
  border-right: 0;
  border-bottom: 1px solid rgba(100, 247, 255, 0.18);
  box-shadow:
    0 1rem 4rem rgba(0, 0, 0, 0.26),
    inset 0 -1px 0 rgba(244, 238, 145, 0.12);
}

.brand,
.nav-list,
.side-status div {
  backdrop-filter: blur(18px) saturate(1.3);
}

.nav-item {
  clip-path: polygon(0 0, calc(100% - 0.75rem) 0, 100% 50%, calc(100% - 0.75rem) 100%, 0 100%, 0.5rem 50%);
}

.nav-item.is-active {
  box-shadow:
    inset 0 -2px 0 rgba(244, 238, 145, 0.4),
    inset 0 0 2rem rgba(100, 247, 255, 0.08),
    0 0 2.4rem rgba(100, 247, 255, 0.12);
}

.command-bridge {
  min-height: 780px;
  grid-template-columns: minmax(490px, 0.52fr) minmax(420px, 1fr) minmax(180px, 0.24fr);
  border-radius: 0;
  border-color: rgba(100, 247, 255, 0.42);
  clip-path: polygon(0 2.1rem, 2.1rem 0, calc(100% - 2.1rem) 0, 100% 2.1rem, 100% calc(100% - 2.1rem), calc(100% - 2.1rem) 100%, 2.1rem 100%, 0 calc(100% - 2.1rem));
  background:
    radial-gradient(circle at 57% 52%, rgba(100, 247, 255, 0.18), transparent 21rem),
    radial-gradient(circle at 18% 18%, rgba(143, 140, 255, 0.1), transparent 18rem),
    linear-gradient(90deg, rgba(100, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(5, 17, 28, 0.9), rgba(1, 5, 12, 0.94));
  background-size: auto, auto, 3.2rem 3.2rem, 3.2rem 3.2rem, auto;
  box-shadow:
    0 3rem 9rem rgba(0, 0, 0, 0.4),
    0 0 8rem rgba(100, 247, 255, 0.12),
    inset 0 0 8rem rgba(100, 247, 255, 0.08);
  transform: translate3d(0, 0, 0);
}

.command-bridge::before {
  inset: 1.1rem;
  border-color: rgba(100, 247, 255, 0.18);
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(100, 247, 255, 0.16) 46%, transparent 54% 100%),
    radial-gradient(ellipse at 50% 100%, rgba(100, 247, 255, 0.18), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 0.7rem, rgba(255, 255, 255, 0.035) 0.74rem 0.86rem);
  transform: translate3d(var(--holo-shift-x), var(--holo-shift-y), 0);
  animation: commandScan 5.6s ease-in-out infinite;
}

.command-bridge::after {
  right: 5%;
  bottom: 4%;
  left: 5%;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.92), rgba(244, 238, 145, 0.74), rgba(143, 140, 255, 0.6), transparent);
  animation: commandFloorPulse 2.6s ease-in-out infinite;
}

.command-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.command-ambient span {
  position: absolute;
  left: -20%;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.8), rgba(244, 238, 145, 0.52), transparent);
  filter: drop-shadow(0 0 0.9rem rgba(100, 247, 255, 0.55));
  transform: translateX(-20%) rotate(var(--ray-angle, 0deg));
  animation: commandRay 6.5s ease-in-out infinite;
}

.command-ambient span:nth-child(1) { top: 18%; --ray-angle: 8deg; animation-delay: -0.6s; }
.command-ambient span:nth-child(2) { top: 34%; --ray-angle: -4deg; animation-delay: -2.2s; }
.command-ambient span:nth-child(3) { top: 51%; --ray-angle: 5deg; animation-delay: -3.8s; }
.command-ambient span:nth-child(4) { top: 66%; --ray-angle: -9deg; animation-delay: -1.4s; }
.command-ambient span:nth-child(5) { top: 78%; --ray-angle: 3deg; animation-delay: -5s; }
.command-ambient span:nth-child(6) { top: 88%; --ray-angle: -2deg; animation-delay: -4.2s; }

.command-copy {
  transform: translate3d(var(--holo-copy-x), var(--holo-copy-y), 0);
}

.command-copy::before {
  display: block;
  width: 7rem;
  height: 3px;
  margin-bottom: 1.4rem;
  content: "";
  background: linear-gradient(90deg, #64f7ff, #f4ee91, transparent);
  box-shadow: 0 0 1.2rem rgba(100, 247, 255, 0.55);
}

.command-copy h2 {
  max-width: 660px;
  font-size: 3.35rem;
  line-height: 1.04;
  text-shadow: none;
}

.command-metrics span {
  min-height: 88px;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 0.9rem, 100% 100%, 0.9rem 100%, 0 90%);
  background:
    linear-gradient(120deg, rgba(100, 247, 255, 0.16), transparent 48%),
    rgba(1, 9, 16, 0.72);
  animation: metricPulse 5.2s ease-in-out infinite;
}

.command-metrics span:nth-child(2) {
  animation-delay: -1.7s;
}

.command-metrics span:nth-child(3) {
  animation-delay: -3.4s;
}

.command-core {
  width: min(560px, 100%);
  transform:
    translate3d(var(--holo-shift-x), var(--holo-shift-y), 0)
    rotateX(58deg)
    rotateZ(-11deg);
  transform-style: preserve-3d;
}

.core-portal,
.core-depth,
.core-radar,
.core-axis,
.core-satellite,
.core-shard,
.core-holo-panel {
  position: absolute;
  display: block;
  pointer-events: none;
}

.core-portal {
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 4%, rgba(244, 238, 145, 0.78) 5% 13%, rgba(100, 247, 255, 0.34) 14% 34%, transparent 44%),
    conic-gradient(from 0deg, transparent, rgba(100, 247, 255, 0.72), transparent 28%, rgba(244, 238, 145, 0.52), transparent 58%, rgba(143, 140, 255, 0.5), transparent);
  box-shadow:
    0 0 2.6rem rgba(244, 238, 145, 0.58),
    0 0 6rem rgba(100, 247, 255, 0.42),
    inset 0 0 2rem rgba(255, 255, 255, 0.2);
  animation: commandPortal 2.4s ease-in-out infinite;
}

.core-depth {
  inset: var(--depth-inset, 0);
  border: 1px solid rgba(100, 247, 255, 0.28);
  border-radius: 50%;
  transform: translateZ(var(--depth-z, 0));
  box-shadow:
    0 0 1.8rem rgba(100, 247, 255, 0.08),
    inset 0 0 1.6rem rgba(100, 247, 255, 0.05);
  animation: commandDepth 5.8s ease-in-out infinite;
}

.core-depth.d1 { --depth-inset: 0; --depth-z: 3rem; }
.core-depth.d2 { --depth-inset: 10%; --depth-z: 2rem; border-color: rgba(244, 238, 145, 0.24); animation-delay: -1.2s; }
.core-depth.d3 { --depth-inset: 20%; --depth-z: 1rem; border-color: rgba(143, 140, 255, 0.32); animation-delay: -2.4s; }
.core-depth.d4 { --depth-inset: 32%; --depth-z: 0; border-color: rgba(77, 255, 191, 0.26); animation-delay: -3.6s; }

.core-grid {
  animation: commandGridShift 9s linear infinite;
}

.core-ring {
  mask-image: conic-gradient(from 0deg, black 0 13%, transparent 13% 18%, black 18% 46%, transparent 46% 54%, black 54% 78%, transparent 78% 84%, black 84% 100%);
}

.core-radar {
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(100, 247, 255, 0.58), rgba(100, 247, 255, 0.12) 11%, transparent 22% 100%);
  mask-image: radial-gradient(circle, transparent 0 18%, black 20% 74%, transparent 76%);
  animation: commandRotate 3.2s linear infinite;
}

.core-axis {
  left: 2%;
  right: 2%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.58), transparent);
  box-shadow: 0 0 1rem rgba(100, 247, 255, 0.38);
}

.core-axis.axis-y {
  transform: rotate(90deg);
}

.core-satellite {
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem;
  border-radius: 50%;
  background: #f4ee91;
  box-shadow: 0 0 1.4rem rgba(244, 238, 145, 0.8);
  transform-origin: 0 0;
  animation: satelliteOrbit 6.4s linear infinite;
}

.core-satellite.sat-two {
  background: #64f7ff;
  animation-duration: 8.4s;
  animation-delay: -2.1s;
}

.core-satellite.sat-three {
  background: #8f8cff;
  animation-duration: 10.8s;
  animation-delay: -4.3s;
}

.core-shard {
  width: 2.4rem;
  height: 0.24rem;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.9), transparent);
  filter: drop-shadow(0 0 0.7rem rgba(100, 247, 255, 0.55));
  animation: shardDrift 4.8s ease-in-out infinite;
}

.core-shard.c1 { left: 8%; top: 22%; animation-delay: -0.4s; }
.core-shard.c2 { right: 7%; top: 30%; transform: rotate(18deg); animation-delay: -1s; }
.core-shard.c3 { left: 20%; bottom: 16%; transform: rotate(-24deg); animation-delay: -1.6s; }
.core-shard.c4 { right: 16%; bottom: 20%; transform: rotate(28deg); animation-delay: -2.2s; }
.core-shard.c5 { left: 42%; top: 4%; transform: rotate(90deg); animation-delay: -2.8s; }
.core-shard.c6 { left: 4%; top: 54%; transform: rotate(8deg); animation-delay: -3.4s; }
.core-shard.c7 { right: 5%; top: 57%; transform: rotate(-8deg); animation-delay: -4s; }
.core-shard.c8 { left: 48%; bottom: 3%; transform: rotate(90deg); animation-delay: -4.6s; }

.core-holo-panel {
  width: 8.4rem;
  padding: 0.72rem;
  color: rgba(242, 254, 255, 0.78);
  border: 1px solid rgba(100, 247, 255, 0.28);
  background:
    linear-gradient(115deg, rgba(100, 247, 255, 0.16), transparent 50%),
    rgba(2, 10, 17, 0.72);
  box-shadow: 0 0 1.8rem rgba(100, 247, 255, 0.12);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 850;
  transform: rotateZ(11deg) rotateX(-58deg);
  animation: panelFloat 4.4s ease-in-out infinite;
}

.core-holo-panel span,
.core-holo-panel b {
  display: block;
}

.core-holo-panel b {
  margin: 0.16rem 0 0.5rem;
  color: #f4ee91;
  font-size: 1rem;
}

.core-holo-panel i {
  display: block;
  height: 3px;
  margin-top: 0.25rem;
  background: linear-gradient(90deg, #64f7ff, transparent);
}

.core-holo-panel.panel-a { left: -2%; top: 19%; }
.core-holo-panel.panel-b { right: -4%; top: 32%; animation-delay: -1.5s; }
.core-holo-panel.panel-c { left: 18%; bottom: -3%; animation-delay: -3s; }

.command-actions button {
  min-height: 76px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.16), transparent 52%),
    rgba(2, 10, 17, 0.78);
}

.command-actions button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-120%);
}

.command-actions button:hover::before,
.command-actions button:focus-visible::before {
  animation: futureSweep 900ms ease both;
}

.mission-grid article {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  background:
    linear-gradient(115deg, rgba(100, 247, 255, 0.12), transparent 48%),
    rgba(3, 12, 21, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mission-grid article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(244, 238, 145, 0.8));
  box-shadow: 0 0 1rem rgba(244, 238, 145, 0.25);
}

.mission-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 238, 145, 0.36);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24), 0 0 2.6rem rgba(100, 247, 255, 0.1);
}

@keyframes commandNebula {
  from {
    filter: hue-rotate(0deg) brightness(1);
  }
  to {
    filter: hue-rotate(22deg) brightness(1.14);
  }
}

@keyframes gateRunway {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 9rem;
  }
}

@keyframes sentinelTunnel {
  0%, 100% {
    opacity: 0.42;
    scale: 0.96;
  }
  50% {
    opacity: 0.9;
    scale: 1.04;
  }
}

@keyframes gateIris {
  0%, 100% {
    opacity: 0.72;
    scale: 0.92;
  }
  50% {
    opacity: 1;
    scale: 1.12;
  }
}

@keyframes commandFloorPulse {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes commandRay {
  0% {
    opacity: 0;
    transform: translateX(-25%) rotate(var(--ray-angle, 0deg));
  }
  18%, 70% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(270%) rotate(var(--ray-angle, 0deg));
  }
}

@keyframes metricPulse {
  0%, 100% {
    border-color: rgba(100, 247, 255, 0.16);
    box-shadow: inset 0 0 1.5rem rgba(100, 247, 255, 0.035);
  }
  50% {
    border-color: rgba(244, 238, 145, 0.36);
    box-shadow: inset 0 0 2rem rgba(100, 247, 255, 0.08), 0 0 1.8rem rgba(100, 247, 255, 0.09);
  }
}

@keyframes commandPortal {
  0%, 100% {
    scale: 0.92;
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    scale: 1.08;
    filter: hue-rotate(18deg) brightness(1.2);
  }
}

@keyframes commandDepth {
  0%, 100% {
    opacity: 0.55;
    scale: 0.98;
  }
  50% {
    opacity: 0.95;
    scale: 1.04;
  }
}

@keyframes commandGridShift {
  from {
    background-position: 0 0, 0 0, center;
  }
  to {
    background-position: 3.5rem 0, 0 3.5rem, center;
  }
}

@keyframes satelliteOrbit {
  from {
    transform: rotate(0deg) translateX(18rem) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(18rem) rotate(-360deg);
  }
}

@keyframes shardDrift {
  0%, 100% {
    opacity: 0.25;
    translate: 0 0;
  }
  50% {
    opacity: 0.95;
    translate: 0.6rem -0.45rem;
  }
}

@keyframes panelFloat {
  0%, 100% {
    opacity: 0.72;
    translate: 0 0;
  }
  50% {
    opacity: 1;
    translate: 0 -0.55rem;
  }
}

@media (max-width: 1180px) {
  .gate-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .guardian-shell {
    min-height: 430px;
  }

  .gate-copy h2 {
    font-size: 3.2rem;
  }

  .command-bridge {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .command-copy h2 {
    font-size: 3rem;
  }

  .command-core {
    width: min(560px, 86vw);
  }

  .core-holo-panel.panel-a { left: 2%; top: 18%; }
  .core-holo-panel.panel-b { right: 1%; top: 32%; }
  .core-holo-panel.panel-c { left: 22%; bottom: 1%; }

  @keyframes satelliteOrbit {
    from {
      transform: rotate(0deg) translateX(15rem) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(15rem) rotate(-360deg);
    }
  }
}

@media (max-width: 760px) {
  .login-gate {
    padding: 14px;
  }

  .gate-panel {
    padding: 18px;
    clip-path: polygon(0 1.2rem, 1.2rem 0, calc(100% - 1.2rem) 0, 100% 1.2rem, 100% calc(100% - 1.2rem), calc(100% - 1.2rem) 100%, 1.2rem 100%, 0 calc(100% - 1.2rem));
  }

  .guardian-shell {
    min-height: 320px;
  }

  .sentinel-field {
    width: min(310px, 84vw);
  }

  .gate-copy h2,
  .command-copy h2 {
    font-size: 2.35rem;
  }

  .command-bridge {
    min-height: auto;
    padding: 18px;
    clip-path: polygon(0 1.1rem, 1.1rem 0, calc(100% - 1.1rem) 0, 100% 1.1rem, 100% calc(100% - 1.1rem), calc(100% - 1.1rem) 100%, 1.1rem 100%, 0 calc(100% - 1.1rem));
  }

  .command-core {
    width: min(360px, 88vw);
  }

  .core-holo-panel {
    width: 6.8rem;
    font-size: 0.65rem;
  }

  .core-holo-panel b {
    font-size: 0.84rem;
  }

  .core-holo-panel.panel-a { left: -3%; top: 16%; }
  .core-holo-panel.panel-b { right: -5%; top: 34%; }
  .core-holo-panel.panel-c { left: 18%; bottom: -2%; }

  @keyframes satelliteOrbit {
    from {
      transform: rotate(0deg) translateX(9.4rem) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(9.4rem) rotate(-360deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-ambient span,
  .core-portal,
  .core-depth,
  .core-radar,
  .core-satellite,
  .core-shard,
  .core-holo-panel,
  .sentinel-horizon,
  .sentinel-tunnel,
  .sentinel-scan-orbit,
  .sentinel-iris,
  .command-bridge::before,
  .command-bridge::after,
  .login-gate::before,
  .gate-panel::after {
    animation: none !important;
  }
}

/* v49 XPANCEO-inspired cinematic product direction */
body[data-view="home"] {
  --ink: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.58);
  --sky: #dff8ff;
  --gold: #f4d89c;
  background: #000;
}

body[data-view="home"]::before {
  opacity: 0.24;
  background:
    radial-gradient(circle at 50% 74%, rgba(91, 192, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, transparent, rgba(4, 9, 14, 0.86));
  animation: cinematicBreath 12s ease-in-out infinite alternate;
}

body[data-view="home"]::after {
  opacity: 0.08;
}

body[data-view="home"] .dream-canvas,
body[data-view="home"] .cloud-drift,
body[data-view="home"] .sky-ribbons {
  opacity: 0.18;
}

body[data-view="home"] .app-shell {
  display: block;
  min-height: 100vh;
}

body[data-view="home"] .side-rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: 24px clamp(24px, 8vw, 180px);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body[data-view="home"] .side-rail::before {
  display: none;
}

body[data-view="home"] .brand {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-view="home"] .brand-crest {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  filter: grayscale(1) brightness(1.6) drop-shadow(0 0 18px rgba(255, 255, 255, 0.14));
  animation: none;
}

body[data-view="home"] .brand strong {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body[data-view="home"] .brand span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

body[data-view="home"] .nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 30px);
  overflow-x: auto;
}

body[data-view="home"] .nav-item {
  min-width: auto;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  border: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

body[data-view="home"] .nav-item svg {
  width: 17px;
  height: 17px;
  opacity: 0.68;
}

body[data-view="home"] .nav-item::after {
  display: none;
}

body[data-view="home"] .nav-item:hover,
body[data-view="home"] .nav-item:focus-visible,
body[data-view="home"] .nav-item.is-active {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-view="home"] .side-status {
  margin: 0;
  display: flex;
  gap: 12px;
}

body[data-view="home"] .side-status div {
  min-width: 108px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

body[data-view="home"] .side-status span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

body[data-view="home"] .side-status strong {
  color: #fff;
  font-size: 12px;
}

body[data-view="home"] .workspace {
  max-width: none;
  padding: 0;
}

body[data-view="home"] .workspace::before,
body[data-view="home"] .top-bar,
body[data-view="home"] .future-signal-strip {
  display: none;
}

body[data-view="home"] #home {
  display: block;
}

body[data-view="home"] .command-bridge {
  min-height: 100svh;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: clamp(150px, 18vh, 230px) clamp(24px, 14vw, 240px) clamp(90px, 12vh, 160px);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.06) 45%, #000 96%),
    radial-gradient(circle at 50% 88%, rgba(80, 160, 255, 0.22), transparent 36rem),
    url("assets/hero-optic-cloud-core.png") center bottom / min(100vw, 1720px) auto no-repeat,
    #000;
  box-shadow: none;
}

body[data-view="home"] .command-bridge::before {
  inset: auto 0 8vh;
  height: 32vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: none;
  animation: opticHorizon 5.8s ease-in-out infinite;
}

body[data-view="home"] .command-bridge::after {
  display: none;
}

body[data-view="home"] .command-ambient {
  opacity: 0.72;
}

body[data-view="home"] .command-ambient span {
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), rgba(145, 216, 255, 0.32), transparent);
  filter: blur(0.2px) drop-shadow(0 0 12px rgba(145, 216, 255, 0.26));
  animation-duration: 10s;
}

body[data-view="home"] .command-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  transform: none;
}

body[data-view="home"] .command-copy::before {
  display: none;
}

body[data-view="home"] .command-copy .eyebrow {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: none;
}

body[data-view="home"] .command-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: none;
  font-family: var(--font-ui);
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

body[data-view="home"] .command-lede {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.8;
}

body[data-view="home"] .command-metrics {
  width: min(560px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

body[data-view="home"] .command-metrics span {
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.45);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  animation: none;
}

body[data-view="home"] .command-metrics b {
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 42px);
  font-weight: 760;
}

body[data-view="home"] .command-core {
  display: none;
}

body[data-view="home"] .command-actions {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 8vw, 180px);
  bottom: clamp(28px, 8vh, 88px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 560px;
}

body[data-view="home"] .command-actions button {
  min-height: 44px;
  min-width: 112px;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  clip-path: none;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 720;
}

body[data-view="home"] .command-actions svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.72);
}

body[data-view="home"] .command-actions button:hover,
body[data-view="home"] .command-actions button:focus-visible {
  color: #000;
  border-color: #fff;
  background: #fff;
  transform: translateY(-2px);
}

body[data-view="home"] .command-actions button:hover svg,
body[data-view="home"] .command-actions button:focus-visible svg {
  color: #000;
}

body[data-view="home"] .mission-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px 120px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
  background: #000;
}

body[data-view="home"] .mission-grid article {
  min-height: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

body[data-view="home"] .mission-grid article::after {
  display: none;
}

body[data-view="home"] .mission-grid article:hover {
  transform: none;
  box-shadow: none;
}

body[data-view="home"] .mission-grid span {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
}

body[data-view="home"] .mission-grid strong {
  margin: 20px 0 12px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 720;
}

body[data-view="home"] .mission-grid small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 15px;
}

.login-gate {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), #000 96%),
    radial-gradient(circle at 50% 88%, rgba(100, 186, 255, 0.16), transparent 36rem),
    url("assets/hero-optic-cloud-core.png") center bottom / min(100vw, 1540px) auto no-repeat,
    #000;
}

.login-gate::before {
  opacity: 0.18;
}

.gate-backdrop::before {
  opacity: 0.14;
}

.gate-panel {
  width: min(1040px, 100%);
  min-height: 620px;
  border: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.gate-panel::before {
  inset: auto 0 0;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.gate-panel::after {
  opacity: 0.28;
}

.gate-status {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guardian-shell {
  opacity: 0.78;
}

.gate-copy h2 {
  max-width: 540px;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: none;
  font-family: var(--font-ui);
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 760;
  line-height: 0.98;
}

.gate-copy p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

@keyframes cinematicBreath {
  from {
    opacity: 0.18;
    transform: scale(1);
  }
  to {
    opacity: 0.26;
    transform: scale(1.012);
  }
}

@keyframes opticHorizon {
  0%, 100% {
    opacity: 0.22;
    transform: translateY(12px) scaleX(0.84);
  }
  50% {
    opacity: 0.7;
    transform: translateY(0) scaleX(1);
  }
}

@media (max-width: 1180px) {
  body[data-view="home"] .side-rail {
    grid-template-columns: 1fr;
    padding: 18px 24px;
  }

  body[data-view="home"] .side-status {
    display: none;
  }

  body[data-view="home"] .command-bridge {
    padding-top: 230px;
  }

  body[data-view="home"] .command-actions {
    right: 24px;
    left: 24px;
    justify-content: flex-start;
  }

  body[data-view="home"] .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-view="home"] .side-rail {
    position: relative;
    padding: 18px 18px 8px;
    background: #000;
  }

  body[data-view="home"] .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }

  body[data-view="home"] .nav-item {
    justify-content: center;
    font-size: 13px;
  }

  body[data-view="home"] .workspace {
    padding: 0;
  }

  body[data-view="home"] .command-bridge {
    min-height: 780px;
    padding: 76px 24px 180px;
    background-size: 760px auto;
    background-position: center bottom;
  }

  body[data-view="home"] .command-copy h2 {
    font-size: clamp(46px, 16vw, 66px);
  }

  body[data-view="home"] .command-lede {
    font-size: 16px;
  }

  body[data-view="home"] .command-metrics {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 34px;
  }

  body[data-view="home"] .command-actions {
    right: 24px;
    bottom: 28px;
    left: 24px;
    justify-content: flex-start;
  }

  body[data-view="home"] .command-actions button {
    min-width: 0;
    flex: 1 1 128px;
  }

  body[data-view="home"] .mission-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 54px;
  }

  .gate-panel {
    min-height: 620px;
  }

  .guardian-shell {
    min-height: 260px;
  }
}

/* v50: use the same explicit hero image on desktop and mobile */
body[data-view="home"] .command-bridge {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.06) 45%, #000 96%),
    radial-gradient(circle at 50% 88%, rgba(80, 160, 255, 0.22), transparent 36rem),
    #000;
}

body[data-view="home"] .command-product-visual {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: min(54vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.82;
}

body[data-view="home"] .command-product-visual::before,
body[data-view="home"] .command-product-visual::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

body[data-view="home"] .command-product-visual::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, #000 0%, transparent 24%, transparent 74%, #000 100%),
    radial-gradient(ellipse at 50% 64%, transparent 0 48%, rgba(0, 0, 0, 0.72) 76%);
}

body[data-view="home"] .command-product-visual::after {
  right: 0;
  bottom: 18%;
  left: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: opticHorizon 5.8s ease-in-out infinite;
}

body[data-view="home"] .command-product-visual img {
  width: min(100vw, 1720px);
  max-width: none;
  height: auto;
  display: block;
  filter: brightness(0.78) contrast(1.06) saturate(0.92);
  transform: translateY(4%);
  animation: productOpticFloat 10s ease-in-out infinite alternate;
}

body[data-view="home"] .command-copy,
body[data-view="home"] .command-actions {
  z-index: 3;
}

body[data-view="home"] .command-bridge::before {
  z-index: 2;
}

@keyframes productOpticFloat {
  from {
    filter: brightness(0.68) contrast(1.04) saturate(0.88);
    transform: translateY(5%) scale(0.998);
  }
  to {
    filter: brightness(0.88) contrast(1.08) saturate(0.98);
    transform: translateY(2%) scale(1.006);
  }
}

@media (max-width: 1180px) {
  body[data-view="home"] .command-product-visual img {
    width: 1280px;
  }
}

@media (max-width: 760px) {
  body[data-view="home"] .command-bridge {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), #000 94%),
      radial-gradient(circle at 50% 84%, rgba(80, 160, 255, 0.18), transparent 22rem),
      #000;
  }

  body[data-view="home"] .command-product-visual {
    bottom: 28px;
    height: 330px;
    opacity: 0.92;
  }

  body[data-view="home"] .command-product-visual::before {
    background:
      linear-gradient(180deg, #000 0%, transparent 20%, transparent 72%, #000 100%),
      radial-gradient(ellipse at 50% 64%, transparent 0 42%, rgba(0, 0, 0, 0.62) 78%);
  }

  body[data-view="home"] .command-product-visual img {
    width: 760px;
    transform: translateY(0);
  }

  @keyframes productOpticFloat {
    from {
      filter: brightness(0.76) contrast(1.04) saturate(0.9);
      transform: translateY(1%) scale(0.998);
    }
    to {
      filter: brightness(0.94) contrast(1.08) saturate(1);
      transform: translateY(-1%) scale(1.006);
    }
  }
}

/* v46 future command skin */
:root {
  --ink: #f2feff;
  --muted: #96adb7;
  --line: rgba(137, 238, 255, 0.24);
  --glass: rgba(6, 16, 24, 0.76);
  --cloud: #050b12;
  --sky: #64f7ff;
  --gold: #f4ee91;
  --mint: #4dffbf;
  --coral: #ff8f70;
  --violet: #8f8cff;
  --deep: #010308;
  --panel: rgba(5, 13, 20, 0.78);
  --shadow: 0 28px 90px rgba(4, 247, 255, 0.08);
  --future-border: linear-gradient(135deg, rgba(100, 247, 255, 0.72), rgba(244, 238, 145, 0.2) 34%, rgba(143, 140, 255, 0.34) 66%, rgba(77, 255, 191, 0.5));
}

body {
  background:
    linear-gradient(115deg, rgba(100, 247, 255, 0.08), transparent 28% 72%, rgba(244, 238, 145, 0.045)),
    repeating-linear-gradient(90deg, rgba(100, 247, 255, 0.028) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 42px),
    linear-gradient(155deg, #010308 0%, #06101a 34%, #08161d 62%, #020408 100%);
  animation: futureFieldBreath 20s ease-in-out infinite alternate;
}

body::before {
  opacity: 0.26;
  background:
    linear-gradient(112deg, transparent 0 28%, rgba(100, 247, 255, 0.14) 34%, transparent 42% 100%),
    linear-gradient(rgba(100, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 140, 255, 0.055) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  animation: dataLatticeDrift 28s linear infinite;
}

body::after {
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, transparent, rgba(100, 247, 255, 0.08), transparent);
  mix-blend-mode: screen;
}

.sky-ribbons span {
  height: 1px;
  opacity: 0.55;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.72), rgba(244, 238, 145, 0.55), transparent);
  box-shadow: 0 0 18px rgba(100, 247, 255, 0.35);
}

.app-shell {
  grid-template-columns: 286px minmax(0, 1fr);
  isolation: isolate;
}

.side-rail {
  border-right: 1px solid rgba(100, 247, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(10, 25, 36, 0.93), rgba(3, 8, 14, 0.82)),
    rgba(2, 5, 10, 0.88);
  box-shadow:
    inset -1px 0 0 rgba(244, 238, 145, 0.12),
    18px 0 80px rgba(0, 0, 0, 0.25);
}

.side-rail::before,
.workspace::before {
  position: absolute;
  pointer-events: none;
  content: "";
}

.side-rail::before {
  inset: 12px;
  border: 1px solid rgba(100, 247, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 2px), rgba(244, 238, 145, 0.2) calc(100% - 2px)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 26%);
}

.brand,
.nav-list,
.side-status {
  position: relative;
  z-index: 1;
}

.brand {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(100, 247, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(6, 17, 25, 0.76);
}

.brand-crest {
  width: 50px;
  height: 50px;
  padding: 5px;
  border: 1px solid rgba(244, 238, 145, 0.18);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(100, 247, 255, 0.2), rgba(5, 13, 20, 0.82));
}

.nav-item {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  color: rgba(242, 254, 255, 0.72);
  border: 1px solid transparent;
  background: rgba(6, 17, 25, 0.28);
}

.nav-item::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.24), transparent);
  transform: translateX(-100%);
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  opacity: 1;
  animation: futureSweep 1200ms ease both;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--ink);
  border-color: rgba(100, 247, 255, 0.24);
  background: rgba(100, 247, 255, 0.08);
}

.nav-item.is-active {
  color: var(--ink);
  border-color: rgba(100, 247, 255, 0.46);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.2), rgba(143, 140, 255, 0.08), rgba(244, 238, 145, 0.07)),
    rgba(8, 24, 34, 0.82);
  box-shadow:
    inset 3px 0 0 var(--sky),
    inset 0 0 28px rgba(100, 247, 255, 0.06),
    0 0 30px rgba(100, 247, 255, 0.1);
}

.side-status div,
.future-signal-strip span,
.chat-room-actions > span,
.browser-signal-list span,
.map-signal-list span,
.manual-safety-list li {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(5, 13, 20, 0.68);
}

.workspace {
  position: relative;
  padding-top: 30px;
}

.workspace::before {
  top: 0;
  right: clamp(18px, 4vw, 46px);
  left: clamp(18px, 4vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.55), rgba(244, 238, 145, 0.28), transparent);
  box-shadow: 0 0 26px rgba(100, 247, 255, 0.22);
}

.top-bar {
  position: relative;
  align-items: end;
  padding-bottom: 14px;
}

.top-bar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(100, 247, 255, 0.45), transparent 36%, rgba(244, 238, 145, 0.28), transparent);
}

h1 {
  background: linear-gradient(92deg, #f2feff, #64f7ff 30%, #f4ee91 52%, #8f8cff 74%, #f2feff);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  text-shadow: 0 0 24px rgba(100, 247, 255, 0.14);
}

.eyebrow {
  color: #f4ee91;
  text-shadow: 0 0 18px rgba(244, 238, 145, 0.24);
}

.future-signal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -10px 0 22px;
}

.future-signal-strip span {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: rgba(242, 254, 255, 0.76);
  border: 1px solid rgba(100, 247, 255, 0.18);
  border-radius: var(--radius);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
}

.future-signal-strip span:nth-child(2),
.future-signal-strip span:nth-child(4) {
  color: #dfffe9;
  border-color: rgba(77, 255, 191, 0.18);
}

.future-signal-strip span:nth-child(3) {
  color: #fff8b8;
  border-color: rgba(244, 238, 145, 0.2);
}

.icon-button,
.primary-action,
.ghost-button,
.feature-panel button,
.cloud-filter,
.view-switch .icon-button {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.primary-action {
  color: #031018;
  background:
    linear-gradient(135deg, rgba(100, 247, 255, 0.96), rgba(77, 255, 191, 0.9) 52%, rgba(244, 238, 145, 0.92));
  box-shadow:
    0 0 28px rgba(100, 247, 255, 0.16),
    inset 0 -1px 0 rgba(1, 6, 12, 0.28);
}

.ghost-button,
.icon-button {
  color: rgba(242, 254, 255, 0.82);
  border-color: rgba(100, 247, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(6, 17, 25, 0.68);
}

.icon-button:hover,
.ghost-button:hover,
.primary-action:hover {
  border-color: rgba(244, 238, 145, 0.38);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.gift-stage,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.cloud-drive-sidebar,
.cloud-drive-main,
.chat-room,
.map-frame-shell,
.map-control-panel,
.private-browser-toolbar,
.private-browser-status-bar,
.private-browser-frame-wrap,
.mirror-stage,
.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card,
.manual-card,
.manual-hero-panel,
.vault-lock-panel,
.vault-cloud-panel,
.chat-security-panel,
.member-key-form,
.member-key-output {
  position: relative;
  border: 1px solid rgba(100, 247, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.048) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 25, 36, 0.84), rgba(4, 10, 17, 0.82));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 36px rgba(100, 247, 255, 0.035);
}

.gift-stage::marker,
.feature-panel::marker {
  content: "";
}

.gift-stage::before,
.feature-panel::after,
.memory-card::after,
.manual-card::after,
.player-surface::after,
.drop-zone::after,
.cloud-drive-main::after,
.chat-room::after,
.map-frame-shell::after,
.private-browser-frame-wrap::after,
.mirror-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  padding: 1px;
  background: var(--future-border);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.62;
}

.gift-stage::before {
  opacity: 0.56;
  animation: borderCharge 7s linear infinite;
}

.gift-stage::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 247, 255, 0.9), rgba(244, 238, 145, 0.62), transparent);
}

.holo-frame {
  border-color: rgba(100, 247, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(100, 247, 255, 0.085) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 140, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(100, 247, 255, 0.22), transparent 30%),
    radial-gradient(circle at 68% 32%, rgba(244, 238, 145, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(10, 34, 44, 0.82), rgba(1, 7, 12, 0.92));
}

.holo-frame::after {
  animation: holoSweep 4.8s ease-in-out infinite;
}

.holo-cloud,
.holo-core {
  filter:
    drop-shadow(0 0 22px rgba(100, 247, 255, 0.36))
    drop-shadow(0 0 36px rgba(244, 238, 145, 0.12));
}

.feature-panel {
  min-height: 226px;
}

.feature-panel:hover,
.memory-card:hover,
.manual-card:hover {
  border-color: rgba(100, 247, 255, 0.5);
  box-shadow:
    0 0 36px rgba(100, 247, 255, 0.12),
    0 26px 70px rgba(0, 0, 0, 0.22);
}

.panel-icon {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(100, 247, 255, 0.92), rgba(143, 140, 255, 0.56));
  box-shadow: 0 0 24px rgba(100, 247, 255, 0.16);
}

.panel-icon.gold {
  background: linear-gradient(135deg, rgba(244, 238, 145, 0.95), rgba(255, 143, 112, 0.7));
}

.vault-list li,
.playlist-item,
.chat-bubble,
.member-card,
.map-status,
.map-member-form,
.map-quick-list,
.member-key-form,
.member-key-output,
.private-browser-mode,
.mirror-status-card {
  border-color: rgba(100, 247, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(5, 13, 20, 0.66);
}

input,
textarea,
select {
  box-shadow: inset 0 0 18px rgba(100, 247, 255, 0.035);
}

.chat-bubble.me {
  color: #031018;
  background: linear-gradient(95deg, #64f7ff, #4dffbf 62%, #f4ee91);
}

.map-frame-shell,
.private-browser-frame-wrap,
.mirror-stage-shell {
  min-height: 700px;
}

.map-canvas,
.private-browser-frame-wrap iframe,
.mirror-stage {
  min-height: 680px;
}

@keyframes futureFieldBreath {
  0% {
    background-position: 0 0, 0 0, 0 0, center;
  }
  100% {
    background-position: 0 0, 86px 0, 0 42px, center;
  }
}

@keyframes dataLatticeDrift {
  from {
    transform: translate3d(-4%, 0, 0);
  }
  to {
    transform: translate3d(4%, 0, 0);
  }
}

@keyframes futureSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes borderCharge {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(32deg) brightness(1.16);
  }
  100% {
    filter: hue-rotate(0deg) brightness(1);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .future-signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .side-rail::before,
  .workspace::before {
    display: none;
  }

  .map-frame-shell,
  .private-browser-frame-wrap,
  .mirror-stage-shell,
  .map-canvas,
  .private-browser-frame-wrap iframe,
  .mirror-stage {
    min-height: 480px;
  }
}

/* v55 final Incube-style lock: placed last to override previous skins */
:root {
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(145, 255, 79, 0.28);
  --glass: rgba(0, 0, 0, 0.58);
  --cloud: #050605;
  --sky: #91ff4f;
  --gold: #91ff4f;
  --mint: #1fad8c;
  --panel: rgba(0, 0, 0, 0.66);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  --radius: 3px;
  --font-body: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-ui: "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-tech: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html,
body,
body[data-view="home"],
body:not([data-view="home"]) {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(circle at 50% 47%, rgba(145, 255, 79, 0.14), transparent 28rem),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.055), transparent 15rem),
    linear-gradient(135deg, #0b0c0b 0%, #040504 52%, #000 100%) !important;
  animation: none !important;
}

body::before,
body[data-view="home"]::before,
body:not([data-view="home"])::before {
  opacity: 0.54;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(145, 255, 79, 0.1) 36%, transparent 42%),
    radial-gradient(circle at 50% 48%, rgba(145, 255, 79, 0.16), transparent 22rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 88%) !important;
  background-size: auto !important;
  filter: none !important;
  mask-image: none !important;
  mix-blend-mode: screen;
  transform: none !important;
  animation: incubeAmbientPulse 14s ease-in-out infinite alternate !important;
}

body::after,
body[data-view="home"]::after,
body:not([data-view="home"])::after {
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 55%, transparent 0 45%, rgba(0, 0, 0, 0.66) 78%, rgba(0, 0, 0, 0.95)) !important;
  mix-blend-mode: normal;
}

.dream-canvas,
.sky-ribbons,
.cloud-drift,
.top-bar,
.future-signal-strip,
body[data-view="home"] .top-bar,
body[data-view="home"] .future-signal-strip {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: block !important;
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.app-shell::before {
  width: min(840px, 78vw);
  height: min(840px, 78vw);
  margin: auto;
  opacity: 0.82;
  background:
    linear-gradient(121deg, rgba(255, 255, 255, 0.14), transparent 18% 100%),
    linear-gradient(90deg, transparent 0 48%, rgba(145, 255, 79, 0.98) 49% 50.2%, transparent 51%),
    linear-gradient(22deg, transparent 0 45%, rgba(145, 255, 79, 0.8) 46% 47.2%, transparent 49%),
    linear-gradient(158deg, transparent 0 55%, rgba(145, 255, 79, 0.68) 56% 57.2%, transparent 59%),
    conic-gradient(from 45deg at 50% 46%, #050805 0 25%, #0b100d 0 50%, #020302 0 75%, #111812 0 100%);
  clip-path: polygon(50% 4%, 89% 27%, 89% 73%, 50% 96%, 11% 73%, 11% 27%);
  filter:
    drop-shadow(0 0 34px rgba(145, 255, 79, 0.26))
    drop-shadow(0 0 96px rgba(145, 255, 79, 0.16));
  animation: incubeGlobalMonolithFloat 13s ease-in-out infinite alternate;
}

body:not([data-view="home"]) .app-shell::before {
  width: min(720px, 64vw);
  height: min(720px, 64vw);
  opacity: 0.32;
  animation-name: incubeInteriorMonolithFloat;
}

.app-shell::after {
  background:
    linear-gradient(90deg, transparent 4%, rgba(145, 255, 79, 0.24) 4.1% 4.25%, transparent 4.35%),
    linear-gradient(90deg, transparent 88%, rgba(145, 255, 79, 0.18) 88.1% 88.22%, transparent 88.32%),
    radial-gradient(circle at 8% 26%, rgba(145, 255, 79, 0.13), transparent 10rem),
    radial-gradient(circle at 92% 40%, rgba(145, 255, 79, 0.12), transparent 12rem);
}

.app-shell .side-rail,
body[data-view="home"] .side-rail,
body:not([data-view="home"]) .side-rail {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 26px clamp(24px, 5.2vw, 72px) 18px;
  border: 0;
  border-bottom: 1px solid rgba(145, 255, 79, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18)),
    transparent;
  box-shadow: none;
  backdrop-filter: blur(15px);
}

.side-rail::before,
.workspace::before {
  display: none !important;
}

.brand,
body[data-view="home"] .brand,
body:not([data-view="home"]) .brand {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-crest,
body[data-view="home"] .brand-crest {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter:
    grayscale(1)
    brightness(2.1)
    sepia(1)
    hue-rotate(45deg)
    saturate(4)
    drop-shadow(0 0 18px rgba(145, 255, 79, 0.42));
  animation: none;
}

.brand strong,
body[data-view="home"] .brand strong {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
}

.brand span,
body[data-view="home"] .brand span,
.side-status span,
body[data-view="home"] .side-status span {
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-tech);
  font-size: 10px;
}

.nav-list,
body[data-view="home"] .nav-list,
body:not([data-view="home"]) .nav-list {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 1.3vw, 24px);
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item,
body[data-view="home"] .nav-item,
body:not([data-view="home"]) .nav-item {
  flex: 0 0 auto;
  grid-template-columns: 18px auto;
  min-width: max-content;
  min-height: 32px;
  padding: 0;
  clip-path: none;
  color: rgba(255, 255, 255, 0.54);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.nav-item::after,
body[data-view="home"] .nav-item::after {
  inset: auto 0 -3px;
  width: 100%;
  height: 1px;
  opacity: 0;
  background: #91ff4f;
  transform: none;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active,
body[data-view="home"] .nav-item:hover,
body[data-view="home"] .nav-item:focus-visible,
body[data-view="home"] .nav-item.is-active,
body:not([data-view="home"]) .nav-item:hover,
body:not([data-view="home"]) .nav-item:focus-visible,
body:not([data-view="home"]) .nav-item.is-active {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  opacity: 1;
  animation: none;
}

.side-status {
  display: flex;
  gap: 20px;
  margin: 0;
}

.side-status div,
body[data-view="home"] .side-status div,
body:not([data-view="home"]) .side-status div {
  min-width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.side-status strong,
body[data-view="home"] .side-status strong {
  color: #91ff4f;
  font-family: var(--font-ui);
  font-size: 13px;
}

.workspace,
body[data-view="home"] .workspace,
body:not([data-view="home"]) .workspace {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 80px) clamp(20px, 5vw, 72px) 72px;
}

.eyebrow,
body:not([data-view="home"]) .eyebrow,
body[data-view="home"] .command-copy .eyebrow {
  color: rgba(145, 255, 79, 0.78);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
.section-head h2,
body:not([data-view="home"]) h1,
body:not([data-view="home"]) h2 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 0.92;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.1);
}

.section-head {
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-head h2 {
  font-size: clamp(46px, 7vw, 112px);
}

.command-bridge,
body[data-view="home"] .command-bridge {
  position: relative;
  min-height: calc(100vh - 104px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) clamp(20px, 5vw, 74px);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.command-bridge::before,
body[data-view="home"] .command-bridge::before {
  position: absolute;
  inset: 43% auto auto 50%;
  width: min(760px, 72vw);
  height: min(760px, 72vw);
  content: "";
  opacity: 0.98;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 48.6%, rgba(145, 255, 79, 0.98) 49.2% 50.3%, transparent 51%),
    linear-gradient(20deg, transparent 0 42%, rgba(145, 255, 79, 0.78) 43% 44.2%, transparent 45.2%),
    linear-gradient(160deg, transparent 0 55%, rgba(145, 255, 79, 0.58) 56% 57%, transparent 58%),
    conic-gradient(from 45deg at 50% 47%, #090d09 0 25%, #000 0 50%, #141915 0 75%, #030403 0 100%);
  clip-path: polygon(50% 1%, 88% 24%, 89% 75%, 50% 98%, 11% 75%, 12% 24%);
  filter:
    drop-shadow(0 0 30px rgba(145, 255, 79, 0.38))
    drop-shadow(0 0 96px rgba(145, 255, 79, 0.2));
  transform: translate(-50%, -47%);
  animation: incubeMonolithFloat 10s ease-in-out infinite alternate;
}

.command-bridge::after,
body[data-view="home"] .command-bridge::after {
  position: absolute;
  inset: 20% 7% auto;
  height: 2px;
  content: "";
  opacity: 0.86;
  background:
    linear-gradient(90deg, transparent 0 14%, #91ff4f 16% 30%, transparent 32% 46%, #91ff4f 47% 52%, transparent 54% 70%, #91ff4f 72% 86%, transparent 88%);
  box-shadow:
    0 0 20px rgba(145, 255, 79, 0.74),
    0 12rem 0 rgba(145, 255, 79, 0.6),
    0 12rem 24px rgba(145, 255, 79, 0.38);
  animation: incubeLineScan 6s ease-in-out infinite alternate;
}

.command-product-visual,
.command-core,
.command-ambient {
  display: none !important;
}

.command-copy,
body[data-view="home"] .command-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  background: transparent;
}

.command-copy::before {
  display: none;
}

.command-copy h2,
body[data-view="home"] .command-copy h2 {
  max-width: 11ch;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(68px, 13.5vw, 196px);
  font-weight: 100;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.8),
    0 0 34px rgba(145, 255, 79, 0.16);
}

.command-lede,
body[data-view="home"] .command-lede {
  max-width: 620px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.75;
}

.command-metrics,
body[data-view="home"] .command-metrics {
  justify-content: center;
  margin-top: 36px;
  gap: 18px;
}

.command-metrics span,
body[data-view="home"] .command-metrics span {
  min-width: 130px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(145, 255, 79, 0.5);
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-tech);
}

.command-metrics b,
body[data-view="home"] .command-metrics b {
  color: #91ff4f;
}

.gift-stage,
.feature-panel,
.memory-card,
.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.cloud-drive-sidebar,
.cloud-drive-main,
.chat-room,
.map-frame-shell,
.map-control-panel,
.private-browser-toolbar,
.private-browser-status-bar,
.private-browser-frame-wrap,
.mirror-stage,
.mirror-key-form,
.mirror-guide-form,
.mirror-incoming,
.mirror-status-card,
.manual-card,
.manual-hero-panel,
.vault-lock-panel,
.vault-cloud-panel,
.chat-security-panel,
.member-key-form,
.member-key-output,
.map-member-form,
.map-quick-list,
.chat-mode-note,
.member-key-panel,
.vault-toolbar,
.media-shell,
.image-dialog figure,
.call-panel,
.install-dialog-card {
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(0, 0, 0, 0.66) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(145, 255, 79, 0.035) !important;
  backdrop-filter: blur(8px);
}

.gift-stage::before,
.feature-panel::after,
.memory-card::after,
.manual-card::after,
.player-surface::after,
.drop-zone::after,
.cloud-drive-main::after,
.chat-room::after,
.map-frame-shell::after,
.private-browser-frame-wrap::after,
.mirror-stage::after {
  opacity: 1 !important;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.56), transparent 28% 72%, rgba(145, 255, 79, 0.22)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(145, 255, 79, 0.42), transparent 24% 76%, rgba(145, 255, 79, 0.14)) left / 1px 100% no-repeat !important;
  mask: none !important;
}

.primary-action,
.ghost-button,
.icon-button,
label.primary-action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 3px !important;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.12), transparent),
    rgba(0, 0, 0, 0.54) !important;
  box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 700;
}

.primary-action,
label.primary-action {
  color: #050605 !important;
  border-color: rgba(145, 255, 79, 0.96) !important;
  background: #91ff4f !important;
  box-shadow:
    0 0 18px rgba(145, 255, 79, 0.28),
    0 0 60px rgba(145, 255, 79, 0.1);
}

.primary-action::after {
  display: none;
}

input,
textarea,
select {
  color: #fff;
  border: 1px solid rgba(145, 255, 79, 0.25) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, rgba(145, 255, 79, 0.035), transparent),
    rgba(0, 0, 0, 0.62) !important;
  box-shadow: none !important;
  font-family: var(--font-ui);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(145, 255, 79, 0.8) !important;
  box-shadow:
    0 0 0 1px rgba(145, 255, 79, 0.12),
    0 0 28px rgba(145, 255, 79, 0.12) !important;
}

.vault-lock-state strong,
.cloud-drive-status strong,
.chat-room-top strong,
.chat-presence-head span,
.map-member-card strong,
.member-card strong,
.vault-lock-state span,
.chat-room-top span {
  color: #91ff4f !important;
}

.cloud-filter {
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.cloud-filter.is-active {
  color: #050605 !important;
  background: #91ff4f !important;
}

.drop-zone,
.chat-room {
  background:
    repeating-linear-gradient(0deg, rgba(145, 255, 79, 0.07) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.7)) !important;
}

.chat-shield-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(145, 255, 79, 0.1), transparent 16rem),
    rgba(0, 0, 0, 0.52) !important;
}

.chat-bubble.me {
  color: #050605 !important;
  background: #91ff4f !important;
}

.patrol-dragon {
  right: 18px !important;
  bottom: 18px !important;
  z-index: 65;
}

.patrol-dragon.is-collapsed .dragon-button,
.patrol-dragon.is-expanded .dragon-button,
.dragon-status-card {
  border-color: rgba(145, 255, 79, 0.22) !important;
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.62) !important;
  box-shadow: 0 0 28px rgba(145, 255, 79, 0.12) !important;
}

@media (max-width: 1180px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    justify-content: start;
  }

  .side-status {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell .side-rail,
  body[data-view="home"] .side-rail,
  body:not([data-view="home"]) .side-rail {
    position: relative;
    padding: 16px 14px 12px;
  }

  .nav-list,
  body[data-view="home"] .nav-list,
  body:not([data-view="home"]) .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
  }

  .nav-item,
  body[data-view="home"] .nav-item,
  body:not([data-view="home"]) .nav-item {
    justify-content: center;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.38);
    font-size: 12px;
  }

  .workspace,
  body[data-view="home"] .workspace,
  body:not([data-view="home"]) .workspace {
    padding: 28px 14px 54px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: clamp(42px, 15vw, 70px);
  }

  .command-bridge,
  body[data-view="home"] .command-bridge {
    min-height: 680px;
    padding: 70px 0;
  }

  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    font-size: clamp(64px, 21vw, 104px);
  }

  .command-bridge::before,
  body[data-view="home"] .command-bridge::before,
  .app-shell::before {
    width: 110vw;
    height: 110vw;
  }
}

/* v55 ultimate home title refinement */
body[data-view="home"] .command-copy {
  transform: translateY(-2vh);
}

.command-copy h2,
body[data-view="home"] .command-copy h2 {
  max-width: min(1080px, 94vw) !important;
  font-size: clamp(72px, 9.2vw, 150px) !important;
  line-height: 0.92 !important;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    max-width: 92vw !important;
    font-size: clamp(48px, 15vw, 82px) !important;
  }
}

/* v56 mobile hero lock */
@media (max-width: 760px) {
  .command-copy h2,
  body[data-view="home"] .command-copy h2 {
    max-width: 94vw !important;
    font-size: clamp(42px, 12vw, 58px) !important;
    line-height: 1.05 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .command-metrics,
  body[data-view="home"] .command-metrics {
    display: none !important;
  }

  .command-lede,
  body[data-view="home"] .command-lede {
    max-width: 92vw;
    font-size: 15px;
  }
}
