/* =============================================================
   集团总览 — Halo cockpit
   Tokens from halo-system.css (loaded first).
   Depth: 3 surface tiers + hairlines. Solid indigo CTAs.
   Planet-rim aura on list / map / 发车 / 南海 inset only.
   ============================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body.g-body {
  font-family: var(--font-body);
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  letter-spacing: var(--text-body-sm-tracking);
  line-height: var(--text-body-sm-leading);
  color: var(--color-text-primary);
  background:
    radial-gradient(720px 480px at 18% 0%, rgba(91, 107, 255, 0.1), transparent 58%),
    var(--color-background);
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color var(--motion-base) var(--easing-standard),
    color var(--motion-base) var(--easing-standard),
    background var(--motion-base) var(--easing-standard),
    box-shadow var(--motion-base) var(--easing-standard);
}
a {
  color: inherit;
  transition: color var(--motion-base) var(--easing-standard), border-color var(--motion-base) var(--easing-standard);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Planet rim — spinning edge light (Halo indigo / cyan) */
@property --g-rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes g-border-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes g-rim-angle {
  to { --g-rim-angle: 360deg; }
}

.g-aura {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  border: 0;
  background-color: var(--color-surface);
  box-shadow:
    0 -14px 22px rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(91, 107, 255, 0.35),
    0 0 40px rgba(91, 107, 255, 0.32),
    0 0 72px rgba(61, 215, 229, 0.12);
}
.g-aura::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 260%;
  height: 18rem;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  background-image: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 0) 0%,
    rgba(120, 134, 255, 0.55) 28%,
    #5B6BFF 42%,
    #A5B0FF 52%,
    #3DD7E5 62%,
    hsla(0, 0%, 40%, 0) 100%
  );
  filter: blur(0.4px);
  animation: g-border-spin 8s linear infinite;
}
.g-aura::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: 3px;
  border-radius: calc(var(--radius-md) - 3px);
  background-color: var(--color-surface);
  box-shadow: 0 -12px 18px rgba(255, 255, 255, 0.08) inset;
}
.g-aura > * {
  position: relative;
  z-index: 1;
}

/* Transparent rim for map / 南海 — mask keeps only the edge lit */
.g-planet-rim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(0, 200, 255, 0.4),
    0 0 28px rgba(0, 160, 255, 0.28),
    0 0 56px rgba(0, 120, 220, 0.14),
    inset 0 0 28px rgba(0, 160, 255, 0.08);
}
.g-planet-rim::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3.5px;
  background: conic-gradient(
    from var(--g-rim-angle),
    rgba(0, 180, 255, 0.2) 0deg,
    transparent 55deg,
    transparent 175deg,
    rgba(0, 200, 255, 0.32) 220deg,
    #00e8ff 265deg,
    #7ad8ff 295deg,
    #3aa0ff 325deg,
    rgba(0, 180, 255, 0.25) 350deg,
    rgba(0, 180, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: g-rim-angle 7s linear infinite;
}
.g-nanhai {
  inset: auto 14px 92px auto;
  width: 86px;
  height: 120px;
  z-index: 4;
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 0 2px rgba(226, 232, 240, 0.72),
    0 0 0 4px rgba(91, 107, 255, 0.4),
    0 0 28px rgba(91, 107, 255, 0.55),
    0 0 52px rgba(61, 215, 229, 0.28),
    inset 0 0 22px rgba(91, 107, 255, 0.16);
}
.g-nanhai::before {
  padding: 4px;
}

/* Silver-white interstellar CTA — 导航/主按钮（圆钮见 .g-orb-* / .g-act-ico） */
.g-nav,
.g-btn,
.g-btn-primary,
.g-call-go {
  color: #f5f7fb;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.26) 0%,
      rgba(210, 218, 230, 0.12) 42%,
      rgba(24, 28, 38, 0.94) 100%
    );
  border: 1px solid rgba(226, 232, 240, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 18px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(148, 163, 184, 0.12),
    0 0 16px rgba(226, 232, 240, 0.3),
    0 0 34px rgba(148, 163, 184, 0.14);
  text-shadow: 0 0 10px rgba(241, 245, 249, 0.35);
}
.g-nav:hover,
.g-btn:hover,
.g-btn-primary:hover,
.g-call-go:hover {
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.88);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.36) 0%,
      rgba(226, 232, 240, 0.18) 45%,
      rgba(34, 38, 50, 0.96) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(255, 255, 255, 0.12),
    0 0 22px rgba(241, 245, 249, 0.4),
    0 0 44px rgba(203, 213, 225, 0.2);
}

/* Deep orb + silver rim (acts / cams / top entries / play) */
.g-act-ico,
.g-chip-ico,
.g-orb-entry,
.g-play {
  color: rgba(186, 198, 216, 0.95);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(36, 42, 56, 0.55) 38%,
      rgba(14, 16, 24, 0.98) 100%
    );
  border: 1px solid rgba(226, 232, 240, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -8px 14px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(148, 163, 184, 0.1),
    0 0 12px rgba(226, 232, 240, 0.16);
}
.g-act.is-on .g-act-ico,
.g-chip.g-orb-chip.active .g-chip-ico,
.g-orb-entry:hover,
.g-orb-entry:focus-visible,
.g-play:hover,
.g-play:focus-visible,
.g-play.is-on {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.78);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(196, 205, 220, 0.14) 46%,
      rgba(22, 26, 36, 0.96) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 14px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(226, 232, 240, 0.32),
    0 0 28px rgba(148, 163, 184, 0.16);
}
.g-ico { display: block; }

/* ---------- Stellar type: glow ink + module hues ---------- */
body.g-body {
  --font-ink: "Zhi Mang Xing", "Ma Shan Zheng", KaiTi, STKaiti, "华文行楷", serif;
  --g-ink-brand: #f4f7ff;
  --g-ink-brand-sub: #a5b0ff;
  --g-ink-kpi: #9aa8ff;
  --g-ink-kpi-val: #e8ecff;
  --g-ink-clock: #7ee7f0;
  --g-ink-list: #5eead4;
  --g-ink-list-item: #dce6ff;
  --g-ink-list-meta: #3dd7e5;
  --g-ink-side: #f5d547;
  --g-ink-side-soft: #e8d9a0;
  --g-ink-side-val: #ffe9a3;
  --g-ink-cam: #c4b5fd;
  --g-ink-trip: #67e8f9;
  --g-ink-trip-st: #7dd3fc;
  --g-ink-story: #c7d2fe;
  --g-ink-wx: #86efac;
  --g-glow-brand:
    0 0 10px rgba(165, 176, 255, 0.55),
    0 0 28px rgba(91, 107, 255, 0.35);
  --g-glow-cyan:
    0 0 8px rgba(61, 215, 229, 0.45),
    0 0 20px rgba(61, 215, 229, 0.22);
  --g-glow-mint:
    0 0 8px rgba(94, 234, 212, 0.4),
    0 0 20px rgba(45, 212, 191, 0.2);
  --g-glow-amber:
    0 0 8px rgba(245, 213, 71, 0.45),
    0 0 22px rgba(245, 213, 71, 0.22);
  --g-glow-soft:
    0 0 6px rgba(242, 244, 248, 0.28),
    0 0 16px rgba(91, 107, 255, 0.18);
  --g-glow-violet:
    0 0 8px rgba(196, 181, 253, 0.4),
    0 0 18px rgba(139, 92, 246, 0.2);
}

.g-brand h1,
.g-brand b,
.g-brand .is-sub {
  color: transparent;
  font-family: var(--font-ink);
  font-weight: 400;
  font-synthesis: none;
  background-image: linear-gradient(
    115deg,
    #1a1218 0%,
    #6b4c7a 12%,
    #e8e0d4 26%,
    #3d2458 40%,
    #c9b8d4 54%,
    #2a1838 68%,
    #c45c4e 84%,
    #d4c4e8 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: g-brand-edge 5.2s linear infinite;
  filter:
    drop-shadow(0 1px 0 rgba(232, 224, 212, 0.28))
    drop-shadow(0 0 10px rgba(61, 36, 88, 0.45));
  text-shadow: none;
}
@keyframes g-brand-edge {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}
.g-kpi span {
  color: var(--g-ink-kpi);
  text-shadow: var(--g-glow-soft);
}
.g-kpi strong {
  color: var(--g-ink-kpi-val);
  text-shadow: var(--g-glow-brand);
}
.g-kpi.is-gap strong {
  color: var(--color-danger);
  text-shadow: 0 0 10px rgba(255, 58, 92, 0.45);
}
.g-kpi.is-gold strong {
  color: var(--color-success);
  text-shadow: 0 0 10px rgba(43, 224, 140, 0.4);
}
.g-clock {
  color: var(--g-ink-clock);
  text-shadow: var(--g-glow-cyan);
}

/* 顶栏内容：与动态玻璃舱同一套金属青银字效 */
.g-top-face .g-kpi span {
  color: rgba(174, 214, 255, 0.82);
  text-shadow:
    0 0 8px rgba(131, 202, 251, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.45);
}
.g-top-face .g-kpi strong {
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #6b7c94 0%,
    #c5d6ea 18%,
    #ffffff 36%,
    #83cafb 54%,
    #e8f4ff 72%,
    #9aa8bc 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: g-brand-edge 6s linear infinite;
  text-shadow: none;
  filter:
    drop-shadow(0 0 5px rgba(131, 202, 251, 0.4))
    drop-shadow(0 0 12px rgba(148, 163, 184, 0.22));
}
.g-top-face .g-kpi.is-gap strong {
  color: #ff6b88;
  background: none;
  -webkit-text-fill-color: #ff6b88;
  animation: none;
  filter: drop-shadow(0 0 8px rgba(255, 58, 92, 0.45));
}
.g-top-face .g-kpi.is-gold strong {
  color: #5dffb0;
  background: none;
  -webkit-text-fill-color: #5dffb0;
  animation: none;
  filter: drop-shadow(0 0 8px rgba(43, 224, 140, 0.4));
}
.g-top-face .g-clock {
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #5ec8e0 0%,
    #d7f7ff 35%,
    #83cafb 55%,
    #f0fbff 80%,
    #7dd3fc 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: g-brand-edge 7s linear infinite;
  text-shadow: none;
  filter:
    drop-shadow(0 0 6px rgba(61, 215, 229, 0.45))
    drop-shadow(0 0 14px rgba(131, 202, 251, 0.25));
}

/* 左栏：沉稳银白字（不抢顶栏） */
.g-list h2,
.g-side h2,
.g-wx-bar h2,
.g-cam-bar h2,
.g-site-head h3 {
  font-family: var(--font-ink);
  font-weight: 400;
  font-synthesis: none;
}
.g-list h2 {
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #1a1218 0%,
    #6b4c7a 22%,
    #e8e0d4 48%,
    #4a3060 72%,
    #c9b8d4 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: g-brand-edge 7s linear infinite;
  text-shadow: none;
  filter:
    drop-shadow(0 0 5px rgba(226, 232, 240, 0.28))
    drop-shadow(0 0 12px rgba(148, 163, 184, 0.18));
}
.g-list .g-site .n {
  color: rgba(226, 232, 240, 0.9);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.g-list .g-site .p {
  color: rgba(203, 213, 225, 0.88);
  background: none;
  -webkit-text-fill-color: rgba(203, 213, 225, 0.88);
  animation: none;
  text-shadow: 0 0 6px rgba(148, 163, 184, 0.2);
  filter: none;
}
.g-list .g-site.active .n {
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #c9a227 0%,
    #fff4c8 35%,
    #f5d547 55%,
    #ffe9a3 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: g-brand-edge 5.5s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(245, 213, 71, 0.4));
}
.g-list .g-site .tag {
  color: #ffe08a;
  text-shadow: 0 0 8px rgba(245, 213, 71, 0.35);
}

/* 右栏：琥珀主标 + 青发行 */
.g-side h2,
.g-side .g-site-head h3 {
  color: var(--g-ink-side);
  text-shadow: var(--g-glow-amber);
}
.g-side .g-metric span {
  color: var(--g-ink-side-soft);
}
.g-side .g-metric strong {
  color: var(--g-ink-side-val);
  text-shadow: var(--g-glow-amber);
}
.g-side .g-chart-box h4 {
  color: #86efac;
  text-shadow: 0 0 8px rgba(134, 239, 172, 0.35);
}
.g-side .g-cam-dock-hd h4 {
  color: var(--g-ink-cam);
  text-shadow: var(--g-glow-violet);
}
.g-side .g-trip-box h4 {
  color: var(--g-ink-trip);
  text-shadow: var(--g-glow-cyan);
}
.g-side .g-trip .to {
  color: #e0f7ff;
  text-shadow: var(--g-glow-soft);
}
.g-side .g-trip .st {
  text-shadow: var(--g-glow-cyan);
}
.g-side .g-trip.st-run .st { color: var(--g-ink-trip-st); }
.g-side .g-trip.st-done .st {
  color: #86efac;
  text-shadow: 0 0 8px rgba(134, 239, 172, 0.35);
}
.g-side .g-trip.st-wait .st { color: #94a3b8; text-shadow: none; }

/* 底栏幕次（金属玻璃条） */
.g-story .g-act {
  color: rgba(226, 232, 240, 0.82);
}
.g-story .g-act.is-on b {
  color: #fff8f0;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.45);
}
.g-play {
  text-shadow: 0 0 10px rgba(241, 245, 249, 0.4);
}

/* 天气浮层 */
.g-wx-bar h2 {
  color: var(--g-ink-wx);
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.4);
}
.g-wx-now .wx {
  text-shadow: var(--g-glow-soft);
}
.g-wx-now .temp {
  text-shadow: var(--g-glow-amber);
}

/* ---------- Top bar: dynamic glass capsule ---------- */
.g-top {
  --g-top-radius: 28px;
  height: 80px;
  margin: 10px 12px 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--g-top-radius);
  background: transparent;
  z-index: 6;
  position: relative;
  overflow: visible;
  isolation: isolate;
  box-shadow:
    0 -8px 28px rgba(57, 20, 115, 0.22),
    0 18px 36px rgba(8, 12, 28, 0.45),
    inset 0 0 1px rgba(0, 0, 0, 0.6);
}
.g-top-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to bottom, #000 78%, #d8d8d8 100%);
}
.g-top-shell::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--g-top-radius) * 0.85);
  background: linear-gradient(
    to bottom,
    rgba(208, 208, 208, 0.34) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    #05070e 100%
  );
  transform: translateY(-3px);
  z-index: 0;
}
.g-top-bg {
  position: absolute;
  inset: 7px;
  z-index: 1;
  border-radius: calc(var(--g-top-radius) * 0.78);
  overflow: hidden;
}
.g-top-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(5px);
  background: linear-gradient(
    8deg,
    #000 0%,
    #14182e 40%,
    #1a2460 48%,
    #8a3d6e 57%,
    #b8895a 64%,
    #9ec8dc 80%,
    #6eb8f0 92%
  );
  opacity: 0.88;
}
.g-top-liquid {
  position: absolute;
  inset: 6px;
  z-index: 2;
  overflow: hidden;
  border-radius: calc(var(--g-top-radius) * 0.78);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}
.g-top-wave {
  position: absolute;
  left: -10%;
  top: 420px;
  width: 120%;
  height: 100%;
  filter: blur(4px);
  animation: g-top-wave-bob 8s ease-in-out infinite;
}
.g-top-wave::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 1400px;
  height: 1400px;
  margin-left: -700px;
  border-radius: 46%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.5) 42%, #03081b 72%);
  opacity: 0.38;
  animation: g-top-wave-spin 9s linear infinite;
}
@keyframes g-top-wave-spin {
  to { transform: rotate(360deg); }
}
@keyframes g-top-wave-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.g-top-outline {
  position: absolute;
  inset: -2px -2px -4px;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  filter: blur(1px);
  opacity: 0.85;
}
.g-top-outline::before {
  content: "";
  position: absolute;
  inset: 4px;
  width: 160px;
  height: 280px;
  margin: auto;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  animation: g-top-spin 5.5s linear infinite;
}
@keyframes g-top-spin {
  to { transform: rotate(360deg); }
}
.g-top-rainbow {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 120px;
  z-index: 1;
  --g-top-stripes: repeating-linear-gradient(
    100deg,
    #fff 0%,
    #fff 7%,
    transparent 10%,
    transparent 12%,
    #fff 16%
  );
  --g-top-rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #f9799c 15%,
    #60a5fa 20%,
    #5eeabd 25%,
    #60a5fa 30%
  );
  background-image: var(--g-top-stripes), var(--g-top-rainbow);
  background-size: 300% 100%, 200% 100%;
  background-position: 50% 50%, 50% 50%;
  filter: invert(100%);
  mix-blend-mode: overlay;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 32%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 32%, transparent 72%);
  opacity: 0.55;
}
.g-top-rainbow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--g-top-stripes), var(--g-top-rainbow);
  background-size: 200% 100%, 100% 100%;
  animation: g-top-rainbow 50s linear infinite;
  mix-blend-mode: difference;
}
@keyframes g-top-rainbow {
  to {
    background-position: 350% 50%, 350% 50%;
  }
}
.g-top-glass {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
}
.g-top-glass::before,
.g-top-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.g-top-glass::before {
  transform: skewX(70deg) rotate(347deg) translate(-8%, -42%);
}
.g-top-glass::after {
  transform: skewX(65deg) rotate(347deg) translate(18%, -10%);
}
.g-top-reflex {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
}
.g-top-reflex::before {
  content: "";
  position: absolute;
  width: 42%;
  top: -40%;
  bottom: -40%;
  left: -30%;
  background: linear-gradient(
    to right,
    rgba(244, 221, 255, 0.05) 10%,
    rgba(244, 221, 255, 0.38) 55%,
    rgba(244, 221, 255, 0.12) 90%
  );
  transform: translateX(-40%) skewX(28deg);
  animation: g-top-reflex 7.5s cubic-bezier(0.5, 0, 0.3, 1) infinite;
  opacity: 0.65;
}
@keyframes g-top-reflex {
  0%, 55% { transform: translateX(-120%) skewX(28deg); opacity: 0; }
  62% { opacity: 0.7; }
  100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}
.g-top-electric {
  position: absolute;
  inset: -6px;
  z-index: 6;
  border-radius: calc(var(--g-top-radius) + 4px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  filter: url(#g-top-turb-0);
  animation: g-top-turb 2s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.72;
}
@keyframes g-top-turb {
  0% { filter: url(#g-top-turb-0); }
  25% { filter: url(#g-top-turb-1); }
  50% { filter: url(#g-top-turb-2); }
  75% { filter: url(#g-top-turb-3); }
  100% { filter: url(#g-top-turb-0); }
}
.g-top-particles {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0.55;
}
.g-top-particle {
  --f: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  rotate: var(--a);
  filter: blur(2px);
  display: grid;
}
.g-top-p1 { --a: -45deg; --x: 12%; --y: 20%; --d: 3.5em; --f: 0.7; --t: 0.1; }
.g-top-p2 { --a: 20deg; --x: 28%; --y: 65%; --d: 5em; --f: 0.55; --t: 0.25; }
.g-top-p3 { --a: -120deg; --x: 48%; --y: 18%; --d: 4em; --f: 0.8; --t: 0.4; }
.g-top-p4 { --a: 150deg; --x: 62%; --y: 70%; --d: 6em; --f: 0.6; --t: 0.55; }
.g-top-p5 { --a: -10deg; --x: 78%; --y: 28%; --d: 4.5em; --f: 0.65; --t: 0.7; }
.g-top-p6 { --a: 90deg; --x: 90%; --y: 55%; --d: 3.8em; --f: 0.5; --t: 0.85; }
.g-top-particle::before {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 2px;
  transform-origin: 0 0;
  mix-blend-mode: overlay;
  background: rgb(154, 122, 255);
  opacity: 0;
  animation: g-top-particle 1.4s linear calc(var(--t, 0) * 1.1s) infinite;
}
@keyframes g-top-particle {
  0% {
    transform: translateX(var(--d)) rotate(-45deg) skew(0, 0) scale(var(--f));
    opacity: 0;
  }
  70% { opacity: 0.85; }
  100% {
    transform: translateX(0) rotate(-45deg) skew(45deg, 45deg) scale(var(--f));
    opacity: 0;
  }
}
.g-top-turb {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.g-top-face {
  position: relative;
  z-index: 8;
  height: 100%;
  margin: 5px;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4);
  border-radius: calc(var(--g-top-radius) * 0.78);
  box-shadow:
    inset -6px -2px 2px -2px rgba(0, 0, 0, 0.72),
    inset 6px -7px 2px -2px rgba(0, 0, 0, 0.65),
    inset -1px 1px 4px 3px rgba(255, 255, 255, 0.55),
    inset 1px 3px 6px rgba(0, 88, 128, 0.45);
  overflow: hidden;
}
.g-top::before {
  content: none;
  display: none;
}
.g-top-face > * {
  position: relative;
  z-index: 1;
}
.g-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  min-width: 0;
  white-space: nowrap;
  pointer-events: none;
}
.g-brand h1,
.g-brand b,
.g-brand .is-sub,
.g-brand .masked-heading {
  pointer-events: auto;
}
.g-brand h1 {
  margin: 0;
  font-family: var(--font-ink);
  font-size: clamp(2.35rem, 3.5vw, 3.15rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.18;
}
.g-brand b,
.g-brand .is-sub {
  font-family: var(--font-ink);
  font-weight: 400;
  font-size: clamp(2.35rem, 3.5vw, 3.15rem);
  letter-spacing: 0.12em;
  line-height: 1.18;
}
.g-brand-seal {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.15rem;
  border: 2px solid #c41e3a;
  color: #c41e3a;
  font-family: var(--font-ink);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.45);
  background: rgba(196, 30, 58, 0.08);
  flex-shrink: 0;
  align-self: center;
}
.g-brand-petal {
  position: absolute;
  width: 8px;
  height: 11px;
  border-radius: 80% 0 80% 0;
  background: radial-gradient(circle at 30% 28%, #f4d0d4, #c41e3a 72%);
  opacity: 0.5;
  pointer-events: none;
}
.g-brand-petal-a {
  left: 18%;
  top: 8%;
  transform: rotate(18deg);
}
.g-brand-petal-b {
  right: 12%;
  top: 18%;
  transform: rotate(-28deg) scale(0.85);
}
.g-brand-petal-c {
  right: 28%;
  bottom: 6%;
  transform: rotate(42deg) scale(0.7);
  opacity: 0.38;
}
.g-brand .masked-heading {
  vertical-align: baseline;
  display: inline-block;
}

/* KPI tiles — nested glass cells */
.g-kpis {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  justify-content: flex-start;
  justify-self: start;
  max-width: calc(50% - 14rem);
}
.g-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  min-width: 4.75em;
  padding: 8px 12px 7px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(24, 32, 56, 0.45) 42%,
      rgba(6, 10, 18, 0.72) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    inset 1px 0 0 rgba(131, 202, 251, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.g-kpi span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.1;
}
.g-kpi strong {
  font-family: "JetBrains Mono", var(--font-mono), ui-monospace, monospace;
  font-size: 1.28rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.g-kpi.is-gap strong { color: var(--color-danger); }
.g-kpi.is-gold strong { color: var(--color-success); }

.g-top-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}
.g-clock {
  font-family: "JetBrains Mono", var(--font-mono), ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(20, 36, 56, 0.5) 48%,
      rgba(6, 12, 22, 0.75) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -6px 12px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.g-link {
  text-decoration: none;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--g-ink-list-meta, #a8b4c8);
}
.g-link.g-orb-entry {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  text-shadow: none;
  flex-shrink: 0;
}
.g-top-face .g-orb-entry {
  width: 42px;
  height: 42px;
  min-width: 42px;
  color: #c8e7ff;
  border: 1px solid rgba(226, 232, 240, 0.42);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(40, 56, 88, 0.45) 40%,
      rgba(10, 14, 24, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(131, 202, 251, 0.22);
  filter: drop-shadow(0 0 4px rgba(131, 202, 251, 0.25));
}
.g-top-face .g-orb-entry:hover,
.g-top-face .g-orb-entry:focus-visible {
  color: #f0f9ff;
  border-color: rgba(248, 250, 252, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 18px rgba(131, 202, 251, 0.35);
}
.g-top-face .g-act-back {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(24, 32, 56, 0.55) 50%,
      rgba(6, 10, 18, 0.8) 100%
    );
  color: rgba(220, 236, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 12px rgba(131, 202, 251, 0.15);
  text-shadow: 0 0 8px rgba(131, 202, 251, 0.3);
}

/* ---------- Main grid ---------- */
.g-main {
  height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 200px 1fr minmax(360px, 440px);
  gap: 12px;
  padding: 12px;
  min-height: 0;
  transition: grid-template-columns var(--motion-slow) var(--easing-standard);
}
.g-main:not([data-act="ops"]) {
  grid-template-columns: 148px 1fr minmax(380px, 460px);
}
.g-main[data-act="wx"] {
  grid-template-columns: 228px 1fr minmax(360px, 440px);
}
.g-list, .g-map, .g-side {
  min-width: 0;
  min-height: 0;
}

.g-list {
  --g-list-radius: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-radius: var(--g-list-radius);
  transition: opacity var(--motion-slow) var(--easing-standard);
  background: transparent;
  border: 0;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.g-list.g-aura {
  background: transparent;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.g-list.g-aura::before,
.g-list.g-aura::after {
  content: none;
  display: none;
}
.g-list-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to bottom, #050608 82%, #2a2c32 100%);
}
.g-list-shell::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--g-list-radius) * 0.85);
  background: linear-gradient(
    to bottom,
    rgba(180, 186, 196, 0.18) 0%,
    rgba(255, 255, 255, 0.28) 40%,
    #0a0c10 100%
  );
  transform: translateY(-2px);
  z-index: 0;
}
.g-list-bg {
  position: absolute;
  inset: 6px;
  z-index: 1;
  border-radius: calc(var(--g-list-radius) * 0.78);
  overflow: hidden;
}
.g-list-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(4px);
  opacity: 0.92;
  background: linear-gradient(
    168deg,
    #050608 0%,
    #12141a 42%,
    #1a1d26 58%,
    #232833 78%,
    #2c313c 100%
  );
}
.g-list-liquid,
.g-list-outline,
.g-list-rainbow {
  display: none;
}
.g-list-glass {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.85;
}
.g-list-glass::before,
.g-list-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.g-list-glass::before {
  transform: skewX(55deg) rotate(350deg) translate(-12%, -30%);
}
.g-list-glass::after {
  transform: skewX(48deg) rotate(350deg) translate(20%, 8%);
}
.g-list-reflex {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.45;
}
.g-list-reflex::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 28%;
  top: -8%;
  left: -40%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.02) 10%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.03) 90%
  );
  transform: translateX(-30%) skewX(24deg);
  animation: g-list-reflex 14s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes g-list-reflex {
  0%, 62% { transform: translateX(-130%) skewX(24deg); opacity: 0; }
  70% { opacity: 0.5; }
  100% { transform: translateX(180%) skewX(-12deg); opacity: 0; }
}
.g-list-electric {
  position: absolute;
  inset: -4px;
  z-index: 6;
  border-radius: calc(var(--g-list-radius) + 3px);
  border: 1.5px solid rgba(226, 232, 240, 0.45);
  filter: url(#g-top-turb-0);
  animation: g-top-turb 3.2s linear infinite;
  mix-blend-mode: soft-light;
  opacity: 0.38;
}
.g-list-face {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 5px;
  border-radius: calc(var(--g-list-radius) * 0.78);
  overflow: hidden;
  background: rgba(4, 6, 10, 0.42);
  box-shadow:
    inset -5px -2px 2px -2px rgba(0, 0, 0, 0.72),
    inset 5px -6px 2px -2px rgba(0, 0, 0, 0.62),
    inset -1px 1px 3px 2px rgba(255, 255, 255, 0.28),
    inset 1px 2px 5px rgba(0, 0, 0, 0.35);
}
.g-main:not([data-act="ops"]) .g-list {
  opacity: 0.45;
}
.g-main:not([data-act="ops"]) .g-list:hover,
.g-main:not([data-act="ops"]) .g-list:focus-within {
  opacity: 1;
}
.g-main[data-act="wx"] .g-list {
  opacity: 1;
}
.g-main[data-act="wx"] .g-list .g-site-wx {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}
.g-main[data-act="wx"] .g-list .g-site-wx .n {
  flex: 1 1 auto;
  min-width: 3.6em;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
  word-break: keep-all;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.g-main[data-act="wx"] .g-list .g-site-wx .p {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  max-width: 5.8em;
  white-space: normal;
  text-align: right;
  line-height: 1.25;
  font-family: inherit;
  letter-spacing: 0;
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  align-self: center;
}
.g-main[data-act="wx"] .g-list .g-site-wx .g-wx-cond {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.92);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-main[data-act="wx"] .g-list .g-site-wx .g-wx-temp {
  display: block;
  font-family: "JetBrains Mono", var(--font-mono), ui-monospace, monospace;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, 0.95);
  letter-spacing: 0;
}
.g-main[data-act="wx"] .g-list .g-site-wx.al-红 .g-wx-cond { color: #ff8a9b; }
.g-main[data-act="wx"] .g-list .g-site-wx.al-橙 .g-wx-cond { color: #ffb060; }
.g-main[data-act="wx"] .g-list .g-site-wx.al-黄 .g-wx-cond { color: #f5d547; }
.g-main[data-act="wx"] .g-list .g-site-wx.al-蓝 .g-wx-cond { color: #7ec8ff; }
.g-main[data-act="wx"] .g-list .g-site-wx.active .n {
  filter: drop-shadow(0 0 8px rgba(245, 213, 71, 0.4));
}
.g-main[data-act="wx"] .g-list .g-site-wx.active .g-wx-temp {
  color: #ffe29a;
}
.g-list h2, .g-side h2 {
  margin: 0;
  padding: 12px 14px 10px;
  font-size: var(--text-title-md-size);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.g-list h2 {
  background-color: rgba(8, 10, 14, 0.35);
}

.g-sites {
  overflow: auto;
  flex: 1;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.g-site {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(28, 32, 40, 0.5) 45%,
      rgba(8, 10, 14, 0.78) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 12px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}
.g-site:focus-visible,
.g-site-wx:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  z-index: 1;
}
.g-site:hover {
  border-color: rgba(226, 232, 240, 0.28);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(36, 40, 50, 0.55) 48%,
      rgba(10, 12, 16, 0.8) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(148, 163, 184, 0.1);
}
.g-site.active {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 138, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(72, 58, 28, 0.28) 42%,
      rgba(18, 20, 26, 0.78) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 14px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(245, 213, 71, 0.22),
    0 0 16px rgba(245, 213, 71, 0.16);
}
/* 有选中时压暗其余项，突出联动 */
.g-sites.has-focus .g-site:not(.active):not(.g-site-wx) {
  opacity: 0.4;
  filter: saturate(0.72);
  transition: opacity var(--motion-base) var(--easing-standard), filter var(--motion-base) var(--easing-standard);
}
.g-sites.has-focus .g-site:not(.active):not(.g-site-wx):hover,
.g-sites.has-focus .g-site:not(.active):not(.g-site-wx):focus-visible {
  opacity: 0.88;
  filter: none;
}
.g-site .n {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  min-width: 0;
}
.g-site .m { display: none; }
.g-site .p {
  font-family: "JetBrains Mono", var(--font-mono), ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}
.g-site .tag {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 138, 0.4);
  background: rgba(245, 213, 71, 0.12);
  justify-self: end;
  align-self: start;
}
.g-site:has(.tag) .p {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}
.g-site:has(.g-site-leader) .p {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}
.g-site.is-gap .p {
  color: var(--color-danger);
  background: none;
  -webkit-text-fill-color: var(--color-danger);
  animation: none;
  filter: drop-shadow(0 0 6px rgba(255, 58, 92, 0.4));
}
.g-site.is-fill .p {
  color: var(--color-success);
  background: none;
  -webkit-text-fill-color: var(--color-success);
  animation: none;
  filter: drop-shadow(0 0 6px rgba(43, 224, 140, 0.35));
}
.g-site.is-off { opacity: 0.38; }

/* ---------- Map ---------- */
.g-map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-background);
}
.g-map-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--color-background);
}
.g-map-fill__media {
  position: absolute;
  inset: -12%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.2);
}

/* Soft solid blobs — off (碍眼装饰光晕) */
.g-orb {
  display: none;
  position: absolute;
  border-radius: 50%;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.22;
}
.g-orb--a {
  width: 48vmin;
  height: 48vmin;
  left: 10%;
  top: 8%;
  background: rgba(0, 200, 255, 0.45);
  animation: g-orb-a 14s ease-in-out infinite alternate;
}
.g-orb--b {
  width: 36vmin;
  height: 36vmin;
  right: 8%;
  top: 22%;
  background: rgba(58, 160, 255, 0.35);
  animation: g-orb-b 16s ease-in-out infinite alternate;
}
.g-orb--c {
  width: 52vmin;
  height: 52vmin;
  left: 30%;
  bottom: -6%;
  background: rgba(0, 160, 255, 0.28);
  animation: g-orb-c 18s ease-in-out infinite alternate;
}
.g-orb--d {
  display: none;
}
@keyframes g-orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes g-orb-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 6%, 0) scale(1.1); }
}
@keyframes g-orb-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -8%, 0) scale(1.08); }
}
@keyframes g-orb-d {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, -4%, 0) scale(1.1); }
}

.g-map-hex {
  position: absolute;
  inset: -8%;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(0, 200, 255, 0.14), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%2300c8ff' stroke-opacity='0.22' stroke-width='1' d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32L28 128 0 112V80z'/%3E%3C/svg%3E");
  background-size: auto, 56px 100px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 48%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 48%, #000 10%, transparent 78%);
  transform: perspective(900px) rotateX(58deg) scale(1.35);
  transform-origin: 50% 60%;
}

.g-map-bloom {
  position: absolute;
  inset: 8% 12% 18%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 46%, rgba(0, 180, 255, 0.18), transparent 70%);
  filter: blur(2px);
}

.g-map-mesh,
.g-map-hud,
.g-map-extrude,
.g-map-boards,
.g-relief {
  display: none !important;
}

.g-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  contain: strict;
  opacity: 0.35;
}
.g-map-fill__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 50% 46%, transparent 0%, rgba(2, 8, 18, 0.2) 78%, rgba(2, 8, 18, 0.55) 100%);
  pointer-events: none;
}
.g-map::after { display: none; }

#china-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  contain: layout paint;
}
#china-map.is-3d {
  background: #020b18;
}
.g-map-3d {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #020b18;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.28s ease;
}
.g-map.is-map-booting .g-map-3d {
  opacity: 0.55;
}
.g-map.is-map-ready .g-map-3d {
  opacity: 1;
}
.g-map-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: #020b18;
}
/* CSS2D 根节点不得铺白底盖住 canvas */
.g-map-3d > div {
  background: transparent !important;
}
.g-map-3d .three-label-name,
.g-map-3d .three-point-tag {
  background: transparent;
}
.g-map-tooltip {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  display: none;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(8, 20, 45, 0.88);
  border: 1px solid rgba(72, 204, 255, 0.45);
  color: #dff6ff;
  font-size: 13px;
  max-width: 260px;
}
.g-map-tooltip:empty {
  display: none !important;
}
.g-tm-tip {
  min-width: 148px;
  max-width: 220px;
}
.g-tm-tip.is-wide {
  min-width: 168px;
  max-width: 260px;
}
.g-tm-tip.is-compact {
  min-width: 120px;
}
.g-tm-tip strong,
.g-tm-lab b {
  display: block;
  font-weight: 700;
  color: #ffe29a;
  font-size: 14px;
}
.g-tm-tip .g-tm-full {
  margin-top: 4px;
  color: #9fe9ff;
  font-size: 13px;
  line-height: 1.45;
}
.g-tm-tip .g-tm-qty,
.g-tm-tip .g-tm-wx {
  margin-top: 6px;
  color: #dff6ff;
  font-size: 13px;
}
.g-tm-tip .g-tm-lead {
  margin-top: 4px;
  color: #c8e7ff;
  font-size: 13px;
}
.g-tm-tip .g-tm-addr,
.g-tm-tip .g-tm-prov {
  margin-top: 4px;
  color: #7eb6d8;
  font-size: 13px;
  font-weight: 650;
}
.g-tm-tip .g-tm-alert {
  margin-top: 6px;
  color: #ffb4a8;
  font-size: 13px;
}
.g-tm-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 200, 255, 0.22);
}
.g-tm-row strong {
  font-size: 13px;
}
.g-tm-row .g-tm-full {
  font-size: 13px;
  margin-top: 2px;
}
.g-tm-row .g-tm-qty {
  margin-top: 3px;
}
.g-tm-lab {
  padding: 4px 8px;
  background: rgba(4, 14, 28, 0.92);
  border: 1px solid rgba(0, 220, 255, 0.55);
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  min-width: 56px;
}
.g-tm-lab b {
  font-size: 13px;
  line-height: 1.2;
}
.g-tm-lab em {
  display: block;
  margin-top: 2px;
  color: #9fe9ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}
.g-tm-lab.is-ops em {
  font-size: 13px;
  margin-top: 1px;
}
.g-tm-lab.is-radar {
  border-color: rgba(255, 90, 120, 0.55);
}
.g-tm-lab.is-radar b,
.g-tm-lab.is-story b {
  font-size: 13px;
  font-weight: 700;
}
.g-tm-lab.is-story {
  border-color: rgba(120, 134, 255, 0.55);
}
.g-tm-lab.is-story b {
  color: #c8d0ff;
}
.g-tm-lab.is-brain {
  border-color: rgba(165, 176, 255, 0.55);
  white-space: normal;
}
.g-tm-lab.is-brain em {
  color: #c8d0ff;
}
.g-tm-lab.is-focus {
  background: rgba(40, 28, 8, 0.94);
  border-color: rgba(255, 226, 154, 0.95);
  box-shadow: 0 0 8px rgba(255, 210, 96, 0.28);
}
.g-tm-lab.is-focus b {
  font-size: 14px;
}
.g-tm-lab.is-focus em {
  color: #fff4c8;
  font-weight: 700;
}
.g-tm-lab.al-红 {
  border-color: rgba(255, 90, 80, 0.85);
}
.g-tm-lab.al-橙 {
  border-color: rgba(255, 150, 60, 0.85);
}
.g-tm-lab.al-黄,
.g-tm-lab.al-蓝 {
  border-color: rgba(255, 210, 80, 0.75);
}
.g-map.is-threemap .g-map-bloom,
.g-map.is-threemap .g-starfield,
.g-map.is-threemap .g-map-hex,
.g-map.is-threemap .g-planet-rim,
.g-map.is-threemap .g-nanhai {
  display: none !important;
}
.g-map.is-threemap #china-map {
  visibility: hidden;
  pointer-events: none;
}
.g-map-3d .three-point-tag {
  position: relative;
}
.g-map-3d .three-point-tag .three-label-name {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: max-content;
  box-sizing: border-box;
}
.g-map-drill {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 6;
  min-width: 64px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #e8f4ff;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(255,255,255,0.18), rgba(12,16,28,0.94));
  border: 1px solid rgba(131, 202, 251, 0.55);
}
.g-pulse {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  contain: strict;
}
.g-pulse.is-roam { visibility: hidden; }
.g-map.is-threemap .g-pulse { display: none; }
.g-map-empty {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
  pointer-events: none;
}
.g-map-empty.is-on { display: grid; }

/* ---------- Side panel ---------- */
.g-side {
  position: relative;
  isolation: isolate;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      168deg,
      rgba(8, 10, 14, 0.92) 0%,
      rgba(14, 16, 22, 0.88) 48%,
      rgba(18, 20, 28, 0.9) 100%
    );
  display: flex;
  flex-direction: column;
  overflow: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.38);
}
/* 压暗地图高亮光柱，保证侧栏字线可读（福建 Demo2 卡片蒙版思路） */
.g-side::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(4, 6, 10, 0.55) 0%,
      rgba(4, 6, 10, 0.28) 42%,
      rgba(4, 6, 10, 0.5) 100%
    );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.g-side > * {
  position: relative;
  z-index: 1;
}
.g-main.is-swap .g-side,
.g-main.is-swap .g-map {
  animation: g-act-in var(--motion-slow) var(--easing-standard);
}
.g-empty {
  margin: var(--space-6) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
}
.g-site-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  border-bottom: var(--border-width) solid var(--color-border);
}
.g-site-head h3 {
  margin: 0 0 2px;
  font-size: var(--text-title-md-size);
  font-weight: var(--text-title-md-weight);
}
.g-site-head p { display: none; }

.g-nav {
  min-width: 40px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-body-sm-size);
  font-weight: 600;
}

.g-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
}

/* ---------- Output glass cards (件 / 斤) ---------- */
.g-out-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 12px 12px;
}
.g-out-shell {
  position: relative;
  width: 100%;
  min-height: 210px;
  padding: 2px;
  border-radius: 28px;
  background-image: linear-gradient(
    to bottom left,
    #ff4141 0%,
    #121319 15%,
    #0d0d12 85%,
    #ffbe4e 100%
  );
  box-shadow:
    inset 0 3px 1.5px -2px rgba(255, 255, 255, 0.85),
    inset 0 -3px 1.5px -2px rgba(255, 255, 255, 0.45),
    -48px 48px 64px -48px rgba(255, 190, 78, 0.35),
    48px -48px 64px -48px rgba(255, 65, 65, 0.35);
}
.g-out-shell--jin { min-height: 112px; }
.g-out-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 14px;
  background-image: linear-gradient(to top, #323444 0%, #121319 100%);
  border-radius: 26px;
  border: 2px solid #121319;
  box-shadow:
    inset 0 3px 1.5px -2px rgba(255, 255, 255, 0.55),
    inset 0 -3px 1.5px -2px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.g-out-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  width: 130%;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.08);
  transform: rotate(-37deg) translate(0, -50%);
  filter: blur(36px);
  pointer-events: none;
}
.g-out-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 72px;
  height: 72px;
  background-color: rgba(255, 65, 65, 0.28);
  border-radius: 100%;
  filter: blur(28px);
  transition: 0.5s ease;
  pointer-events: none;
}
.g-out-shell.is-live .g-out-card::before {
  animation: g-out-glow 3.6s ease-in-out infinite;
}
@keyframes g-out-glow {
  0%, 100% { background-color: rgba(255, 65, 65, 0.22); width: 72px; height: 72px; }
  50% { background-color: rgba(255, 65, 65, 0.55); width: 92px; height: 92px; }
}

.g-out-main {
  position: relative;
  z-index: 1;
  user-select: none;
  color: #9d9d9d;
  opacity: 0.2;
  transition: opacity 0.45s ease;
}
.g-out-shell.is-live .g-out-main { opacity: 1; }
.g-out-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}
.g-out-views {
  display: flex;
  align-items: flex-start;
  color: #fff;
  height: 34px;
  line-height: 32px;
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  mask: linear-gradient(0deg, transparent, white 18%, white 82%, transparent);
  overflow: hidden;
  margin-top: 4px;
}
.g-out-col {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 32px;
}
.g-out-digit {
  transform: translateY(100%);
}
.g-out-digit[data-d="0"] { --roll-to: 0%; }
.g-out-digit[data-d="1"] { --roll-to: -100%; }
.g-out-digit[data-d="2"] { --roll-to: -200%; }
.g-out-digit[data-d="3"] { --roll-to: -300%; }
.g-out-digit[data-d="4"] { --roll-to: -400%; }
.g-out-digit[data-d="5"] { --roll-to: -500%; }
.g-out-digit[data-d="6"] { --roll-to: -600%; }
.g-out-digit[data-d="7"] { --roll-to: -700%; }
.g-out-digit[data-d="8"] { --roll-to: -800%; }
.g-out-digit[data-d="9"] { --roll-to: -900%; }
.g-out-digit[data-k="1"] { --roll-delay: 0.12s; }
.g-out-digit[data-k="2"] { --roll-delay: 0.24s; }
.g-out-digit[data-k="3"] { --roll-delay: 0.36s; }
.g-out-digit[data-k="4"] { --roll-delay: 0.48s; }
.g-out-digit[data-k="5"] { --roll-delay: 0.6s; }
.g-out-digit[data-k="6"] { --roll-delay: 0.72s; }
.g-out-digit[data-k="7"] { --roll-delay: 0.84s; }
.g-out-digit[data-k="8"] { --roll-delay: 0.96s; }
.g-out-digit[data-k="9"] { --roll-delay: 1.08s; }
.g-out-digit[data-k="10"] { --roll-delay: 1.2s; }
.g-out-digit[data-k="11"] { --roll-delay: 1.32s; }
.g-out-digit[data-k="12"] { --roll-delay: 1.44s; }
.g-out-shell.is-live .g-out-digit {
  animation: g-out-roll 1.35s var(--roll-delay, 0s) cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
}
.g-out-digit span {
  display: block;
  height: 32px;
  line-height: 32px;
}
.g-out-comma,
.g-out-unit {
  display: block;
  height: 32px;
  line-height: 32px;
  margin: 0;
}
.g-out-unit {
  margin-left: 8px;
  font-size: 15px;
  color: #c8c8c8;
  font-weight: 500;
}
@keyframes g-out-roll {
  from { transform: translateY(100%); }
  to { transform: translateY(var(--roll-to, 0%)); }
}

.g-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 100%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  background-image: linear-gradient(
    -165deg,
    rgba(18, 19, 25, 0.5) 0%,
    rgba(18, 19, 25, 0.6) 40%,
    rgba(255, 65, 65, 0.9) 100%
  );
  opacity: 0.15;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.g-out-shell.is-live .g-out-badge { opacity: 1; }
.g-out-badge-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  color: #ffbd44;
  box-shadow:
    0 2px 5px 1px #121319,
    inset 0 -2px 2px rgba(255, 65, 65, 0.45);
  border: 2px solid #ffbd44;
}
.g-out-shell.is-live .g-out-badge-ico {
  animation: g-out-pulse 2s ease-in infinite;
}
@keyframes g-out-pulse {
  0% { transform: scale(1.12); }
  15% { transform: scale(1); }
  30% { transform: scale(1.08); }
  45% { transform: scale(1); }
}

.g-out-graph {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 88px;
  margin-top: 8px;
  padding: 8px 0 4px;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.15;
  transition: opacity 0.45s ease;
}
.g-out-shell.is-live .g-out-graph { opacity: 1; }
.g-out-line {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 50px;
  background-image: linear-gradient(
    to left,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 10%,
    rgba(255, 255, 255, 0.18) 90%,
    transparent 100%
  );
  box-shadow: 0 -2px 6px #000;
}
.g-out-bars {
  position: absolute;
  inset: 8px 0 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
  pointer-events: none;
}
.g-out-bar {
  display: block;
  flex: 1;
  max-width: 18px;
  height: var(--h, 20%);
  margin: 0 auto;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #2be08c 0%, rgba(43, 224, 140, 0.25) 100%);
  box-shadow: 0 0 10px rgba(43, 224, 140, 0.35);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: bottom;
}
.g-out-h5 { --h: 5%; }
.g-out-h10 { --h: 10%; }
.g-out-h15 { --h: 15%; }
.g-out-h20 { --h: 20%; }
.g-out-h25 { --h: 25%; }
.g-out-h30 { --h: 30%; }
.g-out-h35 { --h: 35%; }
.g-out-h40 { --h: 40%; }
.g-out-h45 { --h: 45%; }
.g-out-h50 { --h: 50%; }
.g-out-h55 { --h: 55%; }
.g-out-h60 { --h: 60%; }
.g-out-h65 { --h: 65%; }
.g-out-h70 { --h: 70%; }
.g-out-h75 { --h: 75%; }
.g-out-h80 { --h: 80%; }
.g-out-h85 { --h: 85%; }
.g-out-h90 { --h: 90%; }
.g-out-h95 { --h: 95%; }
.g-out-h100 { --h: 100%; }
.g-out-bar.is-today {
  background: linear-gradient(180deg, #5b6bff 0%, rgba(91, 107, 255, 0.3) 100%);
  box-shadow: 0 0 12px rgba(91, 107, 255, 0.45);
}
.g-out-shell.is-live .g-out-bar {
  animation: g-out-bar-in 0.9s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
}
.g-out-shell.is-live .g-out-bar:nth-child(1) { animation-delay: 0.05s; }
.g-out-shell.is-live .g-out-bar:nth-child(2) { animation-delay: 0.12s; }
.g-out-shell.is-live .g-out-bar:nth-child(3) { animation-delay: 0.19s; }
.g-out-shell.is-live .g-out-bar:nth-child(4) { animation-delay: 0.26s; }
.g-out-shell.is-live .g-out-bar:nth-child(5) { animation-delay: 0.33s; }
.g-out-shell.is-live .g-out-bar:nth-child(6) { animation-delay: 0.4s; }
.g-out-shell.is-live .g-out-bar:nth-child(7) { animation-delay: 0.47s; }
@keyframes g-out-bar-in {
  from { opacity: 0; transform: scaleY(0.15); }
  to { opacity: 0.95; transform: scaleY(1); }
}

.g-out-days {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0;
  opacity: 0.15;
  transition: opacity 0.45s ease;
}
.g-out-shell.is-live .g-out-days { opacity: 1; }
.g-out-days p { margin: 0; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .g-out-shell.is-live .g-out-digit,
  .g-out-shell.is-live .g-out-bar,
  .g-out-shell.is-live .g-out-badge-ico,
  .g-out-shell.is-live .g-out-card::before {
    animation: none !important;
  }
  .g-out-shell.is-live .g-out-digit { transform: translateY(var(--roll-to, 0%)); }
  .g-out-shell.is-live .g-out-bar { opacity: 0.95; transform: none; }
}

.g-metric {
  position: relative;
  overflow: hidden;
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--color-primary);
  padding: 12px;
}
.g-metric::before { content: none; display: none; }
.g-metric:hover { border-color: var(--color-border-strong); }
.g-metric span {
  display: block;
  font-size: var(--text-body-sm-size);
}
.g-metric em { display: none; }
.g-metric strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.g-chart-box { padding: 0 14px 12px; }
.g-chart-box h4 {
  margin: 0 0 6px;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
}
#ship-chart { height: 108px; }

.g-cam-dock {
  padding: 0 12px 10px;
  border-top: var(--border-width) solid var(--color-border);
}
.g-cam-dock-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}
.g-cam-dock-hd h4 {
  margin: 0;
  margin-right: auto;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
}
.g-cam-dock-hd .meta { display: none; }
.g-side-stage {
  margin-top: 8px;
  height: 188px;
  position: relative;
  isolation: isolate;
  background: rgba(14, 16, 24, 0.42);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(91, 107, 255, 0.28),
    0 0 22px rgba(91, 107, 255, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  overflow: hidden;
}
.g-side-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--g-rim-angle),
    rgba(91, 107, 255, 0.16) 0deg,
    transparent 55deg,
    transparent 175deg,
    rgba(91, 107, 255, 0.28) 220deg,
    #5B6BFF 262deg,
    #3DD7E5 318deg,
    rgba(91, 107, 255, 0.18) 350deg,
    rgba(91, 107, 255, 0.16) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: g-rim-angle 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.g-side-stage .g-feed { height: 100%; }
.g-side-cam-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.g-side-cam-list button {
  min-height: 28px;
  padding: 0 8px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-elevated);
  font-size: var(--text-body-sm-size);
  color: var(--color-text-secondary);
}
.g-side-cam-list button.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.g-trip-box {
  margin: 0 10px 12px;
  padding: 10px 10px 12px;
}
.g-trip-box h4 {
  margin: 0 0 8px;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
}
.g-trips {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-elevated);
}
.g-trip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 10px;
  border-bottom: var(--border-width) solid var(--color-border);
  cursor: pointer;
}
.g-trip:last-child { border-bottom: 0; }
.g-trip:hover { background: var(--color-primary-soft); }
.g-trip.active {
  background: var(--color-primary-soft);
  box-shadow: inset 2px 0 0 var(--color-primary);
}
.g-trip .to { font-weight: 600; font-size: 0.875rem; }
.g-trip .st { font-size: var(--text-body-sm-size); }
.g-trip .meta { display: none; }

.g-trace {
  grid-column: 1 / -1;
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--color-border);
}
.g-trace li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 8px 12px;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
}
.g-trace li:last-child { padding-bottom: 0; }
.g-trace li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-border);
  box-shadow: inset 0 0 0 2px var(--color-border-strong);
}
.g-trace li.done { color: var(--color-text-primary); }
.g-trace li.done::before {
  background: var(--color-primary);
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230A0B0F' fill-rule='evenodd' d='M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 0.75rem 0.75rem;
  background-repeat: no-repeat;
  background-position: center;
}
.g-trace li.now { color: var(--color-warning); }
.g-trace li.now::before {
  background: var(--color-warning);
  box-shadow: none;
}
.g-trace time { font-family: var(--font-mono); color: inherit; }

.g-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 16px;
}
.g-btn {
  min-height: 36px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-body-sm-size);
}
.g-btn-primary { /* same silver CTA */ }

/* ---------- Camera view ---------- */
.g-cam {
  position: fixed;
  inset: 96px 0 0;
  background: var(--color-background);
  z-index: 20;
  display: none;
  grid-template-rows: auto 1fr;
  min-height: 0;
}
.g-cam.show { display: grid; }
.g-cam-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
}
.g-cam-bar h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.g-cam-bar .meta { display: none; }
.g-groups, .g-layout-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.g-layout-btns button {
  min-height: 30px;
  padding: 0 12px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-elevated);
  font-size: var(--text-body-sm-size);
  color: var(--color-text-secondary);
}
.g-layout-btns button.active {
  color: #f5f7fb;
  border-color: rgba(226, 232, 240, 0.62);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(210, 218, 230, 0.1) 45%,
      rgba(24, 28, 38, 0.94) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 12px rgba(226, 232, 240, 0.22);
  text-shadow: 0 0 8px rgba(241, 245, 249, 0.3);
}
.g-chip.g-orb-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}
.g-chip.g-orb-chip .g-chip-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.g-chip.g-orb-chip b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}
.g-chip.g-orb-chip.active {
  color: #f5f7fb;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}
.g-chip.g-orb-chip.active b {
  color: #f8fafc;
  text-shadow: 0 0 8px rgba(241, 245, 249, 0.35);
}

.g-cam-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 0;
  overflow: hidden;
}
.g-cam-body.grid-multi { grid-template-columns: 1fr; }
.g-stage {
  min-height: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 18% 0%, rgba(91, 107, 255, 0.07), transparent 62%),
    radial-gradient(520px 360px at 82% 100%, rgba(61, 215, 229, 0.05), transparent 58%);
}
.g-stage.one {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 100%;
  place-items: center;
}
.g-stage.one .g-feed {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}
.g-stage.grid {
  grid-template-columns: repeat(var(--cam-cols, 2), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}
.g-stage.grid[data-many] {
  grid-auto-rows: minmax(140px, 18vh);
  align-content: start;
  overflow: auto;
}
@keyframes g-feed-glow {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.62; }
}

.g-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 36%,
      rgba(14, 16, 24, 0.58) 100%
    );
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -16px 28px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(91, 107, 255, 0.32),
    0 0 28px rgba(91, 107, 255, 0.24),
    0 0 52px rgba(61, 215, 229, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.g-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--g-rim-angle),
    rgba(91, 107, 255, 0.18) 0deg,
    transparent 52deg,
    transparent 168deg,
    rgba(91, 107, 255, 0.32) 215deg,
    #5B6BFF 258deg,
    #A5B0FF 288deg,
    #3DD7E5 318deg,
    rgba(91, 107, 255, 0.22) 348deg,
    rgba(91, 107, 255, 0.18) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: g-rim-angle 7.5s linear infinite;
  pointer-events: none;
  z-index: 4;
}
.g-feed::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: -20%;
  background:
    radial-gradient(ellipse 58% 42% at 50% 0%, rgba(91, 107, 255, 0.28), transparent 72%),
    radial-gradient(ellipse 48% 36% at 82% 88%, rgba(61, 215, 229, 0.18), transparent 70%);
  animation: g-feed-glow 5.5s ease-in-out infinite;
}
.g-feed-screen,
.g-feed-chrome {
  position: relative;
  z-index: 1;
}
.g-feed-screen {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(91, 107, 255, 0.05) 42%,
      rgba(10, 11, 15, 0.42) 100%
    );
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.g-feed-screen::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 240%;
  height: 150%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  background-image: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 0) 0%,
    rgba(120, 134, 255, 0.42) 28%,
    rgba(91, 107, 255, 0.58) 42%,
    rgba(165, 176, 255, 0.48) 52%,
    rgba(61, 215, 229, 0.42) 62%,
    hsla(0, 0%, 40%, 0) 100%
  );
  filter: blur(0.5px);
  opacity: 0.42;
  animation: g-border-spin 9s linear infinite;
}
.g-feed-screen::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border-radius: calc(var(--radius-sm) - 2px);
  padding: 1.5px;
  background: conic-gradient(
    from var(--g-rim-angle),
    transparent 0deg,
    transparent 185deg,
    rgba(91, 107, 255, 0.35) 228deg,
    #A5B0FF 272deg,
    #3DD7E5 304deg,
    rgba(91, 107, 255, 0.28) 336deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: g-rim-angle 5.5s linear infinite reverse;
  z-index: 2;
  opacity: 0.88;
}
.g-stage.grid .g-feed-screen::after {
  inset: 4px;
  padding: 1px;
}
.g-stage.grid[data-many] .g-feed-screen::before {
  opacity: 0.3;
  animation-duration: 12s;
}
.g-stage.grid[data-many] .g-feed-screen::after {
  inset: 3px;
  opacity: 0.72;
  animation-duration: 9s;
}
.g-stage.grid[data-many] .g-feed::before {
  animation-duration: 11s;
}
.g-stage.grid[data-many] .g-feed::after {
  animation-duration: 8s;
  opacity: 0.45;
}
.g-stage.grid .g-feed-screen {
  aspect-ratio: 4 / 3;
  flex: 0 1 auto;
}
.g-feed-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: transparent;
  z-index: 1;
}
.g-side-stage .g-feed {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.g-side-stage .g-feed::before {
  padding: 1.5px;
  animation-duration: 9s;
}
.g-side-stage .g-feed::after {
  inset: -10%;
  opacity: 0.38;
}
.g-side-stage .g-feed-screen {
  height: 100%;
}
.g-side-stage .g-feed-screen::before {
  opacity: 0.34;
  animation-duration: 11s;
}
.g-side-stage .g-feed-screen::after {
  inset: 5px;
  opacity: 0.75;
}
.g-feed-live .g-feed-empty {
  z-index: 2;
}
.g-feed-meta { display: none; }
.g-live { display: none; }
.g-feed-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  background: rgba(14, 16, 24, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.g-stage.grid .g-feed-chrome {
  min-height: 26px;
  padding: 2px 8px;
  gap: 6px;
}
.g-stage.grid[data-many] .g-feed-chrome {
  min-height: 22px;
  padding: 2px 6px;
}
.g-stage.grid[data-many] .g-feed-st {
  display: none;
}
.g-feed-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body-sm-size);
  color: var(--color-text-primary);
}
.g-feed-st {
  flex: 0 0 auto;
  font-size: var(--text-body-sm-size);
  color: var(--color-text-muted);
}
.g-feed-st.st-live {
  color: var(--color-success);
}
.g-online-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
}
.g-online-dot.on {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(43, 224, 140, 0.55);
}
.g-feed-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
  background: rgba(14, 16, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--text-body-sm-size);
  z-index: 3;
}
.g-feed-empty[hidden] {
  display: none !important;
}
.g-feed-empty b { font-weight: 600; color: var(--color-text-secondary); }

.g-cam-list {
  border-left: var(--border-width) solid var(--color-border);
  overflow: auto;
  background: var(--color-surface);
}
.g-cam-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: var(--border-width) solid var(--color-border);
  background: transparent;
}
.g-cam-item:hover { background: var(--color-primary-soft); }
.g-cam-item.active { background: var(--color-primary-soft); }
.g-cam-item .st { font-size: var(--text-body-sm-size); }
.st-live { color: var(--color-success); }
.st-demo { color: var(--color-success); }
.st-pending { color: var(--color-text-muted); }
.st-offline { color: var(--color-text-muted); }

.g-side-cam-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g-side-cam-list button .g-online-dot {
  width: 7px;
  height: 7px;
}

/* ---------- Weather panel ---------- */
.g-wx {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 118px);
  overflow: auto;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.g-wx[hidden] { display: none !important; }
.g-wx-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: var(--border-width) solid var(--color-border);
}
.g-wx-bar h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}
.g-wx-bar select {
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  padding: 4px 8px;
  max-width: 120px;
  font-size: var(--text-body-sm-size);
}
.g-wx-now {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 14px;
  border-bottom: var(--border-width) solid var(--color-border);
}
.g-wx-now .temp {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-warning);
  line-height: 1;
}
.g-wx-now .wx { font-size: 1rem; font-weight: 700; color: var(--color-text-primary); }
.g-wx-now .meta { display: none; }
.g-wx-alert {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 4px 8px;
  font-size: var(--text-body-sm-size);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.g-wx-alert.is-红 { background: var(--color-danger-soft); color: var(--color-danger); }
.g-wx-alert.is-橙 { background: rgba(245, 160, 60, 0.18); color: #ffb060; }
.g-wx-alert.is-黄 { background: var(--color-warning-soft); color: var(--color-warning); }
.g-wx-alert.is-蓝 { background: var(--color-info-soft); color: var(--color-info); }
.g-site.al-红 .p { color: var(--color-danger); }
.g-site.al-橙 .p { color: #ffb060; }
.g-site.al-黄 .p { color: var(--color-warning); }
.g-site.al-蓝 .p { color: var(--color-info); }
.g-wx-days { padding: 6px 0 10px; }
.g-wx-day {
  display: grid;
  grid-template-columns: 78px 1fr auto auto;
  gap: 6px;
  align-items: baseline;
  padding: 6px 14px;
  font-size: var(--text-body-sm-size);
  border-bottom: var(--border-width) solid var(--color-border-soft);
}
.g-wx-day .d { font-family: var(--font-mono); color: var(--color-text-secondary); }
.g-wx-day .t { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.g-wx-day .k { color: var(--color-danger); font-size: var(--text-body-sm-size); }

/* ---------- Story / acts: steel + glass capsule ---------- */
.g-story {
  --g-story-primary: #ff8800;
  --g-story-ease: cubic-bezier(0.5, 2, 0.3, 0.8);
  --g-story-h: 78px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
  height: var(--g-story-h);
  padding: 0;
  border-radius: 100px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: default;
}
.g-story-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  pointer-events: none;
  border-radius: inherit;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}
.g-story-case {
  position: relative;
  z-index: 1;
  width: 88px;
  flex: 0 0 88px;
  border-radius: 100px 12px 12px 100px;
  overflow: hidden;
}
.g-story-mask {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, #2c2e31 0%, #31343e 20%, #212329 100%);
  box-shadow:
    inset 8px -15px 15px -10px #000,
    inset 10px -17px 12px -12px rgba(255, 255, 255, 0.55),
    inset -2px 0 0 rgba(255, 255, 255, 0.12);
}
.g-story-mask::before {
  content: "";
  position: absolute;
  left: 28%;
  top: 20%;
  width: 100%;
  height: 32%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(12px);
}
.g-story-mask::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.18);
  mix-blend-mode: overlay;
}
.g-story-seam {
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px 2px rgba(255, 166, 0, 0.35);
  animation: g-story-seam 2.2s ease infinite;
}
@keyframes g-story-seam {
  0% { opacity: 0.35; transform: scaleY(0.35); }
  45% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1.15); }
}
.g-story-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-left: -6px;
  border-radius: 12px 100px 100px 12px;
  overflow: hidden;
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.1) 42%,
    rgba(8, 10, 14, 0.62) 100%
  );
  box-shadow:
    inset 0 0 7px -4px rgba(255, 255, 255, 0.85),
    inset 0 -10px 10px -8px rgba(255, 255, 255, 0.28),
    inset 8px -15px 15px -10px rgba(0, 0, 0, 0.75),
    inset 8px -10px 12px -12px rgba(255, 255, 255, 0.2);
}
.g-story-pane::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  right: 10%;
  height: 48%;
  border-radius: 0 28px 0 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}
.g-story-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset -2px -6px 8px -6px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.g-story-sheen {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(80% 60% at 88% 100%, rgba(255, 136, 0, 0.12), transparent 50%);
  pointer-events: none;
}
.g-story-reflex {
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: 0 50% 50% 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.16) 100%
  );
  transform: translateX(-120%) skewX(28deg);
  animation: g-story-reflex 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes g-story-reflex {
  0%, 72% { transform: translateX(-120%) skewX(28deg); opacity: 0; }
  78% { opacity: 0.9; }
  100% { transform: translateX(160%) skewX(28deg); opacity: 0; }
}
.g-story-path {
  position: absolute;
  inset: 4px 8px;
  width: auto;
  height: auto;
  color: var(--g-story-primary);
  opacity: 0.35;
  pointer-events: none;
}
.g-story-path path {
  stroke-width: 1.2;
  stroke-dasharray: 420 420;
  animation: g-story-path 3.2s ease infinite;
}
@keyframes g-story-path {
  0% { stroke-dasharray: 0 420; opacity: 0.15; filter: blur(1px); }
  40% { stroke-dasharray: 280 420; opacity: 0.55; filter: blur(2px); }
  100% { stroke-dasharray: 420 420; opacity: 0; filter: blur(3px); }
}
.g-story-filament {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 28px;
  width: auto;
  opacity: 0.28;
  pointer-events: none;
}
.g-story-filament.is-on {
  opacity: 0.7;
}
.g-story-filament.is-blur {
  opacity: 0.55;
  color: rgb(255, 208, 0);
  filter: blur(7px);
}
.g-story-filament path {
  fill: none;
  stroke-width: 1.6;
}

.g-story::before,
.g-story::after {
  content: none;
  display: none;
}
.g-story-part1,
.g-story > .g-acts-wrap {
  position: relative;
  z-index: 3;
}
.g-story-part1 {
  display: grid;
  place-items: center;
  width: 88px;
  flex-shrink: 0;
}
.g-story.is-play .g-story-pane {
  box-shadow:
    inset 0 0 7px -4px rgba(255, 255, 255, 0.9),
    inset 0 -10px 10px -8px rgba(255, 255, 255, 0.32),
    inset 8px -15px 15px -10px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 136, 0, 0.18);
}
.g-story.is-play .g-story-path {
  opacity: 0.7;
}
.g-story.is-play .g-story-filament.is-on {
  opacity: 1;
}
.g-story.is-play .g-story-seam {
  box-shadow: 0 0 10px 3px rgba(255, 166, 0, 0.7);
}
.g-play {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.g-play .g-ico { width: 22px; height: 22px; }

.g-acts-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 6px 18px 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.g-act-playhead {
  position: absolute;
  left: 10px;
  bottom: 4px;
  top: auto;
  height: 2px;
  width: 12.5%;
  background: linear-gradient(90deg, transparent, rgba(255, 168, 64, 0.95), transparent);
  border-radius: 1px;
  transform: translateX(0);
  transition: transform 500ms var(--easing-standard);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 10px rgba(255, 136, 0, 0.45);
}
.g-acts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.g-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2px 2px 0;
  color: rgba(226, 232, 240, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  min-width: 0;
  cursor: pointer;
}
.g-act-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.g-act .g-seq,
.g-act > span:not(.g-act-ico) { display: none; }
.g-act b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.g-act.is-on {
  color: #fff8f0;
}
.g-act.is-on .g-act-ico {
  border-color: rgba(255, 168, 64, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 14px rgba(255, 136, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .g-story-seam,
  .g-story-reflex,
  .g-story-path path {
    animation: none !important;
  }
}
.g-act.is-on b {
  color: #fff8f0;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
}
.g-act.is-done { color: rgba(203, 213, 225, 0.72); }
.g-act.is-done b { color: rgba(226, 232, 240, 0.88); text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); }
.g-act.is-done .g-act-ico {
  border-color: rgba(203, 213, 225, 0.4);
  color: rgba(226, 232, 240, 0.9);
}

/* ---------- Call / sum / exam / risk ---------- */
.g-ask {
  margin: 0;
  padding: 8px 12px 0;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm-size);
  color: var(--color-warning);
}
.g-call {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  padding: 10px 12px 8px;
}
.g-call label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-body-sm-size);
  color: var(--color-text-secondary);
}
.g-call select,
.g-call input {
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--color-text-primary);
  font-size: var(--text-body-sm-size);
}
.g-call-go {
  grid-column: 1 / -1;
  cursor: pointer;
  padding: 0.6rem;
  width: 100%;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

.g-sum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}
.g-sum div {
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--color-primary);
  padding: 10px 12px;
}
.g-sum span {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
}
.g-sum strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}
.g-sum .gap strong { color: var(--color-danger); }
.g-sum .ok strong { color: var(--color-success); }
.g-sum .is-gold {
  border-top-color: var(--color-success);
}
.g-sum .is-loud strong {
  color: var(--color-danger);
  font-size: 1.5rem;
}
.g-ticket {
  margin: 0 12px 8px;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm-size);
  color: var(--color-warning);
}

.g-hours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 10px;
}
.g-hours div {
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.g-hours span {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
}
.g-hours strong {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}

.g-exam {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}
.g-exam article {
  position: relative;
  overflow: hidden;
  background: var(--color-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.g-exam article::before { content: none; display: none; }
.g-exam h4 {
  margin: 0 0 6px;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-text-primary);
}
.g-exam strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}
.g-exam em { display: none; }
.g-exam .nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.g-exam .nums span { color: var(--color-text-secondary); font-size: var(--text-body-sm-size); }
.g-exam .nums strong { font-size: 1rem; }

.g-risk {
  list-style: none;
  margin: 0;
  padding: 0 12px 10px;
}
.g-risk li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: var(--text-body-sm-size);
  background: var(--color-elevated);
}
.g-risk b { font-weight: 700; }
.g-risk em {
  font-style: normal;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-body-sm-size);
}
.g-risk .r-绿 { box-shadow: inset 3px 0 0 var(--color-success); }
.g-risk .r-黄 { box-shadow: inset 3px 0 0 var(--color-warning); }
.g-risk .r-红 { box-shadow: inset 3px 0 0 var(--color-danger); }

/* ---------- Branch focus card (animated HUD) ---------- */
.g-map { position: relative; }
.g-branch-card {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  transform: translate(-50%, calc(-100% - 28px));
  pointer-events: auto;
  animation: g-branch-in 0.32s var(--easing-standard);
}
.g-map.is-threemap .g-branch-card {
  z-index: 24;
}
.g-branch-card[hidden] { display: none !important; }
.g-branch-card__back {
  position: absolute;
  top: -36px;
  right: 0;
  z-index: 4;
  border: 0;
  background: rgba(20, 21, 28, 0.88);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.g-branch-card__back:hover {
  color: var(--color-text-primary);
  background: rgba(91, 107, 255, 0.22);
}
@keyframes g-branch-in {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 12px)) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, calc(-100% - 28px)) scale(1); }
}

.g-bc-parent {
  width: 240px;
  height: 240px;
  perspective: 3000px;
  position: relative;
}
.g-bc-card {
  position: relative;
  width: 240px;
  height: 240px;
  transform-style: preserve-3d;
  transition: 0.7s;
}
.g-branch-card.is-live .g-bc-card {
  animation: g-bc-tilt 5.5s ease-in-out infinite;
}
.g-branch-card.is-live .g-bc-outer .g-bc-patt {
  animation: g-bc-patt-flow 4.8s ease-in-out infinite;
}
.g-branch-card.is-live .g-bc-bar-bak {
  animation: g-bc-bar-glow 3.2s ease-in-out infinite;
}
.g-branch-card.is-live .g-bc-percent:not(.g-bc-percent-top):not(.g-bc-percent-bak) {
  animation: g-bc-lift 4s ease-in-out infinite;
}
.g-branch-card.is-live .g-bc-txt {
  animation: g-bc-txt-lift 4.5s ease-in-out infinite;
}
.g-branch-card.is-live .g-bc-role { animation-delay: 0s; }
.g-branch-card.is-live .g-bc-site { animation-delay: 0.35s; }
.g-branch-card.is-live .g-bc-meta { animation-delay: 0.7s; }
.g-branch-card.is-live .g-bc-meta svg {
  animation: g-bc-spin 8s ease-in-out infinite;
}

@keyframes g-bc-tilt {
  0%, 100% { transform: rotateX(4deg) rotateY(-8deg); }
  25% { transform: rotateX(-6deg) rotateY(10deg); }
  50% { transform: rotateX(8deg) rotateY(6deg); }
  75% { transform: rotateX(-4deg) rotateY(-12deg); }
}
@keyframes g-bc-patt-flow {
  0%, 100% {
    stroke-dasharray: 0 0 280 999;
    stroke-dashoffset: 0;
  }
  40%, 60% {
    stroke-dasharray: 0 90 280 999;
    stroke-dashoffset: 10;
  }
}
@keyframes g-bc-bar-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}
@keyframes g-bc-lift {
  0%, 100% { transform: translate3d(0, 0, calc(40px + var(--z, 0) * 1.5px)); text-shadow: none; }
  50% { transform: translate3d(0, 0, calc(58px + var(--z, 0) * 1.5px)); text-shadow: 0 0 8px #fff3; }
}
@keyframes g-bc-txt-lift {
  0%, 100% { transform: translate3d(0, 0, 20px); color: #aaa; stroke: #888; }
  50% { transform: translate3d(0, 0, 36px); color: #ddd; stroke: #ccc; }
}
@keyframes g-bc-spin {
  0%, 70%, 100% { rotate: 0deg; stroke: #888; }
  85% { rotate: 180deg; stroke: #5d9; }
}

.g-bc-parent:hover .g-bc-card,
.g-bc-a:hover ~ .g-bc-card {
  animation-play-state: paused;
  transform: rotateX(5deg) rotateY(10deg);
}
.g-bc-parent:hover .g-bc-outer .g-bc-patt,
.g-bc-a:hover ~ .g-bc-card .g-bc-outer .g-bc-patt {
  animation-play-state: paused;
  stroke-dasharray: 0 90 280 999;
  stroke-dashoffset: 10;
}
.g-bc-a:hover ~ .g-bc-card .g-bc-bar-bak { opacity: 1; animation-play-state: paused; }
.g-bc-parent:hover .g-bc-bar-bak { opacity: 0.7; animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .g-bc-card,
  .g-branch-card.is-live .g-bc-outer .g-bc-patt,
  .g-branch-card.is-live .g-bc-bar-bak,
  .g-branch-card.is-live .g-bc-percent:not(.g-bc-percent-top):not(.g-bc-percent-bak),
  .g-branch-card.is-live .g-bc-txt,
  .g-branch-card.is-live .g-bc-meta svg {
    animation: none !important;
  }
}

.g-bc-a {
  position: absolute;
  width: 100px;
  height: 100px;
  transform: translateZ(600px);
}
.g-bc-tl { top: -30px; left: -30px; }
.g-bc-tl:hover ~ .g-bc-card { transform: rotateX(-20deg) rotateY(20deg); }
.g-bc-t { top: -30px; left: 70px; }
.g-bc-t:hover ~ .g-bc-card { transform: rotateX(-20deg); }
.g-bc-tr { top: -30px; left: 170px; }
.g-bc-tr:hover ~ .g-bc-card { transform: rotateX(-20deg) rotateY(-20deg); }
.g-bc-l { top: 70px; left: -30px; }
.g-bc-l:hover ~ .g-bc-card { transform: rotateY(20deg); }
.g-bc-c { top: 70px; left: 70px; }
.g-bc-r { top: 70px; left: 170px; }
.g-bc-r:hover ~ .g-bc-card { transform: rotateY(-20deg); }
.g-bc-bl { top: 170px; left: -30px; }
.g-bc-bl:hover ~ .g-bc-card { transform: rotateX(20deg) rotateY(20deg); }
.g-bc-b { top: 170px; left: 70px; }
.g-bc-b:hover ~ .g-bc-card { transform: rotateX(20deg); }
.g-bc-br { top: 170px; left: 170px; }
.g-bc-br:hover ~ .g-bc-card { transform: rotateX(20deg) rotateY(-20deg); }

.g-bc-outer {
  position: absolute;
  top: calc(50% - 150px);
  left: calc(50% - 150px);
  overflow: visible;
  transition: 1s;
  transform: scale(1.05) translateZ(-50px);
  transform-origin: 170px;
  pointer-events: none;
}
.g-bc-outer.g-bc-bb { transform: scale(1.0535) translateZ(-55px); }
.g-bc-outer.g-bc-bb1 {
  transform: scale(1.0535) translateZ(calc(-55px + 5px * var(--z)));
}
.g-bc-outer.g-bc-bb1 path {
  stroke-width: calc(6px - 3px * var(--z) * var(--z));
}
.g-bc-outer path {
  stroke: #fff;
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 0 280 999;
  transition: 1s;
}
.g-bc-outer path.g-bc-blur {
  filter: blur(8px);
  opacity: 0.4;
}
.g-bc-outer path.g-bc-bak {
  stroke: #ffffff09;
  stroke-dasharray: 0 0 360 0;
}
.g-bc-outer path.g-bc-bak20 {
  stroke: #ffffff09;
  stroke-dasharray: 20 50;
  stroke-dashoffset: 0;
  animation: g-bc-stronk 40s linear infinite;
}
@keyframes g-bc-stronk {
  from { stroke-dashoffset: 360; }
}

.g-bc-inner {
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  background: #212121;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 100px;
}
.g-bc-inner-bg {
  position: absolute;
  inset: -1000%;
  filter: blur(40px);
  opacity: 0.3;
  transform: translateZ(-10px);
  transition: 1s;
  background: conic-gradient(
    from 45deg,
    #fff 5%,
    #fff0 10% 40%,
    #fff 45% 55%,
    #fff0 60% 90%,
    #fff 95%
  );
  animation: g-bc-speen 24s cubic-bezier(0.36, 0.2, 0.64, 0.8) infinite;
}
.g-bc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}
.g-bc-photo[src=""],
.g-bc-photo:not([src]) {
  opacity: 0;
}
@keyframes g-bc-speen {
  50% { rotate: 180deg; }
  to { rotate: 360deg; }
}

.g-bc-inner-border {
  position: absolute;
  inset: 0;
  border: double 2px transparent;
  background-image: linear-gradient(-45deg, #2221, #fff2, #3331);
  background-origin: border-box;
  clip-path: path(
    "M30 0H210A30 30 0 01240 30V210A30 30 0 01210 240H30A30 30 0 010 210V30A30 30 0 0130 0V2A28 28 0 002 30V210A28 28 0 0030 238H210A28 28 0 00238 210V30A28 28 0 00210 2H30"
  );
  clip-rule: evenodd;
  transform: translateZ(calc(var(--z) * 1px));
  pointer-events: none;
}
.g-bc-z-n3 { --z: -3; }
.g-bc-z-n2 { --z: -2; }
.g-bc-z-n1 { --z: -1; }
.g-bc-z-0 { --z: 0; }
.g-bc-z-1 { --z: 1; }
.g-bc-z-2 { --z: 2; }
.g-bc-z-3 { --z: 3; }

.g-bc-percent {
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #ccc;
  transition: 0.4s;
  transform: translate3d(0px, 0px, calc(40px + var(--z) * 1.5px));
  cursor: default;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  z-index: 2;
}
.g-bc-percent-top {
  pointer-events: all;
  color: #0000;
}
.g-bc-percent-bak {
  color: #fff;
  transform: translate3d(0px, 0px, 1px);
  filter: blur(8px);
  opacity: 0.8;
}
.g-bc-percent-top:hover ~ .g-bc-percent {
  text-shadow: 0 0 6px #fff3;
  transform: translate3d(0px, 0px, calc(60px + var(--z) * 1.5px));
}

.g-bc-txt {
  position: absolute;
  left: 28px;
  right: 20px;
  font-family: var(--font-mono), monospace;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
  fill: none;
  stroke: #888;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  transition: 0.4s, color 0.2s, stroke 0.2s;
  transform: translate3d(0px, 0px, 20px);
  z-index: 2;
  pointer-events: auto;
}
.g-bc-txt:hover {
  transform: translate3d(0px, 0px, 40px);
  color: #ddd;
  stroke: #ddd;
}
.g-bc-txt svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: 0.5s;
}
.g-bc-txt span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-bc-role { top: 100px; }
.g-bc-role svg { stroke: #3eea8e; }
.g-bc-site { top: 132px; }
.g-bc-meta { top: 160px; }
.g-bc-meta:hover svg { rotate: 180deg; stroke: #5d9; }

.g-bc-bar-hb {
  position: absolute;
  width: 190px;
  height: 14px;
  top: 205px;
  left: 25px;
  transform: translate3d(0px, 0px, 10px);
  z-index: 2;
}
.g-bc-bar-hb:hover ~ .g-bc-bar:not(.g-bc-bar-bak) {
  transform: translate3d(0px, 0px, calc(30px + var(--z) * 2px));
}
.g-bc-bar-hb:hover ~ .g-bc-bar:not(.g-bc-bar-bak) .g-bc-bar-slider {
  background-color: #3eea8e6c;
}
.g-bc-bar {
  position: absolute;
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, #0000 128px, #ffffff05 0);
  top: 210px;
  left: 30px;
  border-radius: 2px;
  transform: translate3d(0px, 0px, calc(10px + var(--z) * 1.5px));
  transition: 0.4s;
  clip-path: path(
    "M2 0a1 1 0 000 4h22a1 1 0 000-4Zm30 0a1 1 0 000 4h22a1 1 0 000-4Zm30 0a1 1 0 000 4h22a1 1 0 000-4Zm30 0a1 1 0 000 4h22a1 1 0 000-4Zm30 0a1 1 0 000 4h22a1 1 0 000-4Zm30 0a1 1 0 000 4h22a1 1 0 000-4Z"
  );
  pointer-events: none;
  z-index: 2;
}
.g-bc-bar-slider {
  width: 128px;
  border-radius: inherit;
  height: 4px;
  background: linear-gradient(90deg, #3eea8e00, #3eea8e70, #3eea8e00),
    linear-gradient(90deg, #3eea8e00, #3eea8e9a, #3eea8e00);
  background-size: 200%;
  animation: g-bc-bg 4s linear infinite;
  transition: 0.3s;
}
.g-bc-bar-bak {
  transform: translate3d(0px, 0px, 1px);
  filter: blur(6px);
  opacity: 0.1;
  clip-path: none;
}
.g-bc-bar-bak .g-bc-bar-slider {
  width: 124px;
  background: #3eea8e;
  background-size: 200%;
}
@keyframes g-bc-bg {
  from { background-position: 200%, 0%; }
}

.g-act-back,
.g-back {
  min-height: 36px;
  padding: 0 14px;
  font-size: var(--text-body-sm-size);
  font-weight: 600;
}
.g-site-leader {
  display: block;
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  justify-self: end;
  align-self: center;
  font-size: var(--text-body-sm-size);
  font-weight: 500;
  color: rgba(186, 198, 216, 0.88);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.g-site.active .g-site-leader {
  color: rgba(255, 236, 180, 0.9);
  text-shadow: 0 0 8px rgba(245, 213, 71, 0.3);
}
.g-leader-strip {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.03);
}
.g-leader-strip img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 62% 28%;
  border: 1px solid rgba(91, 107, 255, 0.35);
}
.g-leader-strip strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: var(--color-text-primary);
}
.g-leader-strip span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-body-sm-size);
  color: var(--color-text-secondary);
}

@keyframes g-blink {
  50% { opacity: 0.35; }
}
@keyframes g-act-in {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 1920px) {
  .g-body.is-wall {
    --text-title-md-size: 1.3125rem;
    --text-body-sm-size: 0.9375rem;
    --text-body-md-size: 1.0625rem;
  }
  .g-body.is-wall .g-site .n { font-size: 1rem; }
  .g-body.is-wall .g-site .p,
  .g-body.is-wall .g-site-leader { font-size: 0.9375rem; }
  .g-body.is-wall .g-kpi span { font-size: 0.9375rem; }
  .g-body.is-wall .g-metric strong { font-size: 1.35rem; }
  .g-body.is-wall .g-branch-card,
  .g-body.is-wall .g-bc-parent,
  .g-body.is-wall .g-bc-card { width: 280px; height: 280px; }
  .g-body.is-wall .g-bc-percent { font-size: 40px; top: 28px; left: 32px; }
  .g-body.is-wall .g-bc-txt { font-size: 15px; }
  .g-body.is-wall .g-bc-role { top: 118px; }
  .g-body.is-wall .g-bc-site { top: 152px; }
  .g-body.is-wall .g-bc-meta { top: 184px; }
  .g-body.is-wall .g-bc-bar,
  .g-body.is-wall .g-bc-bar-hb { top: auto; bottom: 28px; }
  .g-top { height: 84px; }
  .g-top-face { padding: 0 22px; }
  .g-main { height: calc(100vh - 100px); }
  .g-cam { inset: 100px 0 0; }
  .g-brand h1,
  .g-brand .is-sub { font-size: clamp(2.55rem, 2.9vw, 3.35rem); letter-spacing: 0.12em; }
  .g-kpi strong { font-size: 1.35rem; }
  .g-act b { font-size: 0.9375rem; }
  .g-main[data-act="ops"] { grid-template-columns: 220px 1fr minmax(400px, 480px); }
}

@media (max-width: 1280px) {
  .g-main, .g-main:not([data-act="ops"]) { grid-template-columns: 180px 1fr 280px; }
  .g-main[data-act="wx"] { grid-template-columns: 200px 1fr 280px; }
  .g-kpis { gap: 8px; }
  .g-brand-petal { display: none; }
  .g-brand h1,
  .g-brand .is-sub { letter-spacing: 0.08em; }
}

@media (max-width: 980px) {
  .g-main, .g-main:not([data-act="ops"]) {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 28vh 1fr;
  }
  .g-list {
    border-right: 0;
    border-bottom: var(--border-width) solid var(--color-border);
    opacity: 1;
  }
  .g-side {
    border-left: 0;
    border-top: var(--border-width) solid var(--color-border);
  }
  .g-cam-body { grid-template-columns: 1fr; }
  .g-cam-list {
    border-left: 0;
    border-top: var(--border-width) solid var(--color-border);
    max-height: 28vh;
  }
  .g-top {
    height: auto;
    min-height: 72px;
  }
  .g-top-face {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 64px;
    padding: 10px 12px 12px;
  }
  .g-brand {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    justify-self: center;
    margin-bottom: 6px;
  }
  .g-kpis { display: none; }
  .g-top-end {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  .g-top-electric,
  .g-top-particles,
  .g-top-rainbow {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-orb--a, .g-orb--b, .g-orb--c, .g-orb--d, .g-map-mesh, .g-map-hud__svg, .g-map::after { animation: none; }
  .g-list-electric,
  .g-list-reflex::before,
  .g-list-outline::before,
  .g-list-rainbow::after,
  .g-list-wave,
  .g-list-wave::before {
    animation: none !important;
  }
  .g-list-electric { opacity: 0.35; filter: none; }
  .g-top::before,
  .g-top-electric,
  .g-top-reflex::before,
  .g-top-outline::before,
  .g-top-rainbow::after,
  .g-top-wave,
  .g-top-wave::before,
  .g-top-particle::before {
    animation: none !important;
  }
  .g-top-electric { opacity: 0.4; filter: none; }
  .g-top-particles { display: none; }
  .g-aura::before,
  .g-planet-rim::before,
  .g-feed::before,
  .g-feed::after,
  .g-feed-screen::before,
  .g-feed-screen::after,
  .g-side-stage::before { animation: none; opacity: 0.55; }
  .g-map-fill__media { transform: translate3d(0, 0, 0) scale(1.1) !important; }
  .g-live { animation: none; }
  .g-main.is-swap .g-side,
  .g-main.is-swap .g-map { animation: none; }
  .g-act-playhead,
  .g-main { transition: none; }
  button, a { transition: none; }
  .g-feed,
  .g-feed-screen,
  .g-feed-chrome,
  .g-feed-empty,
  .g-side-stage {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .g-brand h1,
  .g-brand b,
  .g-kpi strong,
  .g-list h2,
  .g-side .g-site-head h3,
  .g-side .g-trip-box h4 {
    text-shadow: none;
  }
  .g-brand h1,
  .g-brand b,
  .g-brand .is-sub,
  .g-top-face .g-kpi strong,
  .g-top-face .g-clock,
  .g-list h2,
  .g-list .g-site .p,
  .g-list .g-site.active .n {
    animation: none;
    background-position: 40% 50%;
  }
  .g-brand h1,
  .g-brand b,
  .g-brand .is-sub {
    filter:
      drop-shadow(0 1px 0 rgba(232, 224, 212, 0.28))
      drop-shadow(0 0 10px rgba(61, 36, 88, 0.45));
  }
}
