@font-face {
  font-family: "Source Han Sans SC UI";
  src: url("./assets/fonts/source-han-sans-sc-ui.woff2") format("woff2");
  font-style: normal;
  font-weight: 250 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #020814;
  --bg-2: #071426;
  --panel: rgba(7, 22, 39, 0.76);
  --panel-strong: rgba(10, 32, 56, 0.94);
  --line: rgba(77, 207, 255, 0.24);
  --line-strong: rgba(77, 207, 255, 0.56);
  --text: #edf7ff;
  --muted: #8aa6ba;
  --blue: #26b7ff;
  --cyan: #43f0e2;
  --gold: #d6a443;
  --steel: #a6d8ff;
  --red: #ff5a5f;
  --orange: #ff9b4a;
  --yellow: #f4cf4f;
  --green: #55d68b;
  --radius: 6px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --font-ui: "Source Han Sans SC UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-title: "Source Han Sans SC UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-num: "Bahnschrift Light", "Bahnschrift SemiCondensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ui);
}

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

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 9%, rgba(38, 183, 255, 0.34), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(214, 164, 67, 0.14), transparent 30%),
    linear-gradient(135deg, #01040a 0%, #041123 42%, #071827 100%);
  color: var(--text);
  letter-spacing: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  z-index: -3;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(38, 183, 255, 0.08) 18.2% 18.7%, transparent 19% 58%, rgba(214, 164, 67, 0.08) 58.2% 58.6%, transparent 59%),
    url("./assets/command-bg.png") center / cover no-repeat;
  opacity: 0.44;
  filter: saturate(1.2) contrast(1.12);
}

body::after {
  z-index: -2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.44) 100%);
  mix-blend-mode: screen;
  opacity: 0.26;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(920px, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: relative;
  padding: 22px 16px;
  border-right: 1px solid rgba(77, 207, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(3, 15, 29, 0.97), rgba(2, 8, 17, 0.98)),
    url("./assets/command-bg.png") center / cover no-repeat;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.32), inset -1px 0 0 rgba(67, 240, 226, 0.12);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 22, 0.72);
  pointer-events: none;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(67, 240, 226, 0.12), transparent 18%),
    linear-gradient(90deg, transparent 0 92%, rgba(67, 240, 226, 0.36) 96%, transparent);
  opacity: 0.72;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 6px 22px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(67, 240, 226, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 30px rgba(67, 240, 226, 0.22), inset 0 0 18px rgba(67, 240, 226, 0.1);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-family: var(--font-title);
  font-weight: 700;
  -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 14px rgba(67, 240, 226, 0.28), 1px 1px 0 rgba(0, 0, 0, 0.45);
}

.deploy-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand > div:last-child {
  min-width: 0;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  background: transparent;
  color: #b9d5e8;
  text-align: left;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  -webkit-text-stroke: 0.18px rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 10px rgba(67, 240, 226, 0.12);
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(67, 240, 226, 0.62);
  background:
    linear-gradient(90deg, rgba(38, 183, 255, 0.22), rgba(67, 240, 226, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 24px rgba(38, 183, 255, 0.12);
}

.icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 800;
}

.icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 5px rgba(67, 240, 226, 0.5));
}

.deploy-card {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(85, 214, 139, 0.32);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background:
    linear-gradient(135deg, rgba(85, 214, 139, 0.13), transparent 42%),
    rgba(8, 28, 35, 0.76);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(85, 214, 139, 0.85);
}

.main {
  position: relative;
  overflow: auto;
  padding: 18px 28px 28px;
}

.main::before {
  content: "";
  position: fixed;
  inset: 0 0 0 260px;
  z-index: -2;
  background:
    linear-gradient(rgba(67, 240, 226, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 240, 226, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}

.main::after {
  content: "";
  position: fixed;
  inset: 0 0 0 260px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 20%, rgba(67, 240, 226, 0.12), transparent 34%),
    linear-gradient(125deg, transparent 0 38%, rgba(38, 183, 255, 0.07) 38.4% 39%, transparent 39.5%),
    linear-gradient(305deg, transparent 0 68%, rgba(214, 164, 67, 0.08) 68.2% 68.7%, transparent 69%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(77, 207, 255, 0.18);
}

.system-name {
  margin: 0 0 5px;
  color: #8fb8d0;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  font-size: 39px;
  line-height: 1.2;
  font-family: var(--font-title);
  font-weight: 700;
  color: #f6fbff;
  -webkit-text-stroke: 0.55px rgba(166, 216, 255, 0.48);
  text-shadow:
    0 0 24px rgba(38, 183, 255, 0.42),
    2px 2px 0 rgba(0, 0, 0, 0.62),
    3px 3px 0 rgba(38, 183, 255, 0.13);
}

h2 {
  max-width: 560px;
  margin-top: 7px;
  font-size: 38px;
  line-height: 1.16;
  font-family: var(--font-title);
  font-weight: 700;
  color: #f7fbff;
  -webkit-text-stroke: 0.45px rgba(166, 216, 255, 0.45);
  text-shadow:
    0 0 22px rgba(77, 207, 255, 0.28),
    2px 2px 0 rgba(0, 0, 0, 0.62);
}

h3 {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  font-family: var(--font-title);
  font-weight: 700;
  color: #f4fbff;
  -webkit-text-stroke: 0.22px rgba(166, 216, 255, 0.32);
  text-shadow: 0 0 14px rgba(77, 207, 255, 0.32), 1px 1px 0 rgba(0, 0, 0, 0.55);
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: 16px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(67, 240, 226, 0.78);
}

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

.primary-btn,
.ghost-btn,
.icon-btn {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 700;
  -webkit-text-stroke: 0.18px rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-btn {
  min-height: 38px;
  padding: 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #168ce6, #20ead6);
  box-shadow: 0 10px 34px rgba(38, 183, 255, 0.32), inset 0 0 16px rgba(255, 255, 255, 0.12);
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.ghost-btn {
  min-height: 38px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(25, 66, 105, 0.86), rgba(9, 26, 45, 0.86));
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.ghost-btn.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(16, 38, 62, 0.82);
}

.fullscreen-btn {
  width: 42px;
  height: 38px;
}

.fullscreen-btn svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.primary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 240, 226, 0.72);
}

.story-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(77, 207, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(38, 183, 255, 0.1), transparent 48%, rgba(214, 164, 67, 0.07)),
    rgba(4, 17, 31, 0.7);
  box-shadow: inset 0 0 28px rgba(38, 183, 255, 0.08);
}

.story-step {
  padding: 6px 10px;
  border: 1px solid rgba(138, 166, 186, 0.26);
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.story-step.done,
.story-step.active {
  border-color: rgba(67, 240, 226, 0.45);
  color: var(--text);
}

.story-step.active {
  background: rgba(38, 183, 255, 0.18);
  box-shadow: 0 0 18px rgba(67, 240, 226, 0.22);
}

.story-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 240, 226, 0.55), rgba(67, 240, 226, 0.08));
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.hero-panel,
.panel,
.metric-card,
.data-page-shell {
  position: relative;
  border: 1px solid rgba(77, 207, 255, 0.3);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(166, 216, 255, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(12, 39, 67, 0.84), rgba(3, 13, 25, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.hero-panel::before,
.panel::before,
.metric-card::before,
.data-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--cyan), transparent 18%, transparent 82%, var(--gold)) top left / 100% 1px no-repeat,
    linear-gradient(90deg, var(--gold), transparent 14%, transparent 86%, var(--cyan)) bottom left / 100% 1px no-repeat,
    linear-gradient(180deg, var(--cyan), transparent 18%, transparent 82%, var(--gold)) top left / 1px 100% no-repeat,
    linear-gradient(180deg, var(--gold), transparent 18%, transparent 82%, var(--cyan)) top right / 1px 100% no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.hero-panel::after,
.panel::after,
.metric-card::after,
.data-page-shell::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 38%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(67, 240, 226, 0.08), transparent);
  animation: scanSweep 9s linear infinite;
  pointer-events: none;
}

.panel > *,
.metric-card > *,
.data-page-shell > * {
  position: relative;
  z-index: 1;
}

.panel .panel-head::after,
.data-page-shell .toolbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 240, 226, 0.55), transparent 44%, rgba(214, 164, 67, 0.24));
}

@keyframes scanSweep {
  0% {
    left: -45%;
  }
  45%,
  100% {
    left: 120%;
  }
}

.hero-panel {
  position: relative;
  grid-column: span 6;
  min-height: 174px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(67, 240, 226, 0.22), transparent 22%),
    linear-gradient(90deg, rgba(2, 8, 14, 0.92), rgba(5, 11, 18, 0.38)),
    url("./assets/command-bg.png") center / cover no-repeat;
  filter: saturate(1.05);
}

.command-radar {
  position: absolute;
  right: 112px;
  top: 24px;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid rgba(67, 240, 226, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 240, 226, 0.12) 0 3px, transparent 4px),
    repeating-radial-gradient(circle, transparent 0 24px, rgba(67, 240, 226, 0.14) 25px, transparent 26px),
    conic-gradient(from 12deg, rgba(67, 240, 226, 0.32), transparent 34%, transparent);
  box-shadow: 0 0 50px rgba(67, 240, 226, 0.18);
  opacity: 0.9;
  animation: radarSpin 8s linear infinite;
}

.command-radar i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(214, 164, 67, 0.85);
}

.command-radar i:nth-child(1) {
  transform: translate(42px, -34px);
}

.command-radar i:nth-child(2) {
  transform: translate(-52px, 24px);
  background: var(--cyan);
}

.command-radar i:nth-child(3) {
  transform: translate(16px, 54px);
  background: var(--orange);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  height: 100%;
  padding: 24px 28px;
}

.hero-content > div {
  max-width: 710px;
}

.hero-content p {
  color: var(--cyan);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  -webkit-text-stroke: 0.18px rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 18px rgba(67, 240, 226, 0.38);
}

.hero-content span {
  display: block;
  max-width: 650px;
  margin-top: 12px;
  color: #a9c5d8;
}

.hero-kpi-line {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 9px;
  color: #f6fbff;
}

.hero-kpi-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
  min-width: 238px;
  padding: 4px 14px 5px 0;
  border: 0;
  border-right: 1px solid rgba(77, 207, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(67, 240, 226, 0.08), transparent 70%);
  clip-path: none;
}

.hero-kpi-item:last-child {
  border-right: 0;
}

.hero-kpi-line strong {
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 12px rgba(77, 207, 255, 0.2);
}

.hero-kpi-line span {
  margin: 0;
  color: #f2fbff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.metric-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 174px;
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at 76% 22%, rgba(67, 240, 226, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(166, 216, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(15, 45, 75, 0.88), rgba(5, 18, 33, 0.9));
}

.metric-card::before {
  box-shadow: inset 0 -22px 38px rgba(67, 240, 226, 0.035);
}

.metric-card::after {
  background:
    linear-gradient(90deg, transparent, rgba(67, 240, 226, 0.12), transparent),
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(67, 240, 226, 0.08) 13px, transparent 14px);
}

.metric-card span,
.metric-card small,
.panel-head span {
  color: var(--muted);
  font-weight: 600;
}

.metric-card span,
.panel-head span {
  font-family: var(--font-title);
}

.metric-card strong {
  margin: 10px 0 6px;
  font-family: var(--font-num);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0.45px rgba(255, 255, 255, 0.28);
  text-shadow: 0 0 24px currentColor, 2px 3px 0 rgba(0, 0, 0, 0.36);
}

.mini-spark {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  width: 86px;
}

.mini-spark i {
  display: block;
  width: var(--w);
  height: 2px;
  background: rgba(166, 216, 255, 0.72);
  box-shadow: none;
}

.metric-card.high .mini-spark i {
  background: rgba(255, 155, 74, 0.78);
}

.metric-card.warn .mini-spark i {
  background: rgba(244, 207, 79, 0.78);
}

.metric-card.ok .mini-spark i {
  background: rgba(85, 214, 139, 0.78);
}

.metric-card.high strong {
  color: var(--orange);
}

.metric-card.warn strong {
  color: var(--yellow);
}

.metric-card.ok strong {
  color: var(--green);
}

.panel {
  padding: 18px;
}

.risk-panel,
.trend-panel,
.heat-panel {
  grid-column: span 4;
}

.timeline-panel {
  grid-column: span 7;
}

.ai-panel {
  grid-column: span 5;
}

.live-panel {
  grid-column: span 12;
  padding-bottom: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  min-height: 28px;
}

.app-shell:fullscreen {
  background: #020814;
}

.app-shell:fullscreen .main {
  padding-top: 20px;
}

.risk-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.ring-chart {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 4%, var(--orange) 4% 14%, var(--yellow) 14% 28%, var(--green) 28% 100%);
  box-shadow: 0 0 45px rgba(38, 183, 255, 0.28), inset 0 0 20px rgba(0, 0, 0, 0.22);
}

.ring-chart::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(67, 240, 226, 0.28);
  animation: radarSpin 16s linear infinite reverse;
}

.ring-chart::after {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: radial-gradient(circle, #102844, #061426);
}

.ring-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-center b {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 900;
  -webkit-text-stroke: 0.32px rgba(255, 255, 255, 0.2);
}

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

.risk-list {
  display: grid;
  gap: 12px;
}

.risk-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(138, 166, 186, 0.15);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(67, 240, 226, 0.08), transparent),
    rgba(255, 255, 255, 0.025);
  font-family: var(--font-title);
  font-weight: 700;
  -webkit-text-stroke: 0.16px rgba(255, 255, 255, 0.12);
}

.risk-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.red {
  background: var(--red);
}

.orange {
  background: var(--orange);
}

.yellow {
  background: var(--yellow);
}

.green {
  background: var(--green);
}

.bars {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 190px;
  padding: 18px 8px 0;
  border: 1px solid rgba(138, 166, 186, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(67, 240, 226, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 240, 226, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(38, 183, 255, 0.08), rgba(255, 255, 255, 0.015));
  background-size: 100% 25%, 34px 100%, auto;
}

.bars i {
  width: 34px;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #6ffcf2, #1bb2e8 56%, #136dc3);
  box-shadow: 0 0 24px rgba(67, 240, 226, 0.46), 0 0 60px rgba(38, 183, 255, 0.18);
}

.trend-line {
  position: absolute;
  inset: 18px 12px 20px;
  width: calc(100% - 24px);
  height: calc(100% - 38px);
  overflow: visible;
  pointer-events: none;
}

.trend-line polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(214, 164, 67, 0.72));
}

.trend-line circle {
  fill: #fff3b2;
  stroke: var(--gold);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(214, 164, 67, 0.8));
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(77, 207, 255, 0.12);
  background: rgba(4, 17, 31, 0.3);
}

.heat-cell {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(138, 166, 186, 0.13);
  color: var(--text);
  background: transparent;
}

.heat-cell::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--level-color);
}

.heat-cell span {
  color: #aec3d1;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 400;
}

.heat-cell b {
  font-family: var(--font-num);
  color: #edf7ff;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.level-green {
  --level-color: #55c88a;
}

.level-yellow {
  --level-color: #d3b64b;
}

.level-orange {
  --level-color: #e48c4c;
}

.level-red {
  --level-color: #e66168;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline article,
.report-preview,
.record-card,
.audit-row {
  border: 1px solid rgba(138, 166, 186, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(67, 240, 226, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.026);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.timeline article {
  position: relative;
  padding: 13px 14px 13px 28px;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(67, 240, 226, 0.8);
}

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

.ops-feed article {
  position: relative;
  display: grid;
  grid-template-columns: 16px 46px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(77, 207, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(67, 240, 226, 0.08), transparent 48%),
    rgba(4, 16, 30, 0.62);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.ops-feed b {
  color: var(--steel);
  font-family: var(--font-num);
  font-size: 15px;
}

.ops-feed span {
  color: #c9dceb;
  font-size: 12px;
  line-height: 1.4;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px currentColor;
}

.pulse.ok {
  color: var(--green);
  background: var(--green);
}

.pulse.warn {
  color: var(--orange);
  background: var(--orange);
}

.pulse.blue {
  color: var(--cyan);
  background: var(--cyan);
}

.timeline b,
.timeline span,
.report-preview b,
.report-preview p {
  display: block;
}

.timeline span,
.report-preview p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.report-preview {
  padding: 18px;
}

.report-preview .primary-btn {
  margin-top: 18px;
}

.data-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  padding: 16px;
}

.full-data-shell {
  display: block;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search,
.select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(67, 240, 226, 0.06), transparent 40%),
    rgba(6, 17, 29, 0.85);
  color: var(--text);
  padding: 0 11px;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.data-table {
  width: 100%;
  border-spacing: 0 7px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 186, 0.16);
  border-radius: 0;
  background:
    linear-gradient(rgba(67, 240, 226, 0.035) 1px, transparent 1px),
    rgba(2, 10, 20, 0.18);
  background-size: 100% 42px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.data-table th,
.data-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(77, 207, 255, 0.14);
  text-align: left;
  font-size: 13px;
  font-family: var(--font-title);
}

.data-table th {
  color: #c9ecff;
  background:
    linear-gradient(90deg, rgba(38, 183, 255, 0.18), rgba(67, 240, 226, 0.07)),
    rgba(3, 15, 29, 0.96);
  font-weight: 800;
  text-transform: none;
}

.data-table td strong,
.detail-list b,
.audit-row b {
  font-family: var(--font-num);
}

.timeline b,
.report-preview b,
.record-card b,
.template-card b {
  font-family: var(--font-title);
  font-weight: 850;
}

.data-table td {
  background: rgba(7, 23, 39, 0.42);
}

.data-table tr:hover td {
  background: rgba(38, 183, 255, 0.1);
  box-shadow: inset 0 0 18px rgba(67, 240, 226, 0.045);
}

.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.assessment-table th,
.assessment-table td {
  vertical-align: top;
}

.assessment-table td:nth-child(5) strong {
  color: var(--cyan);
  font-size: 20px;
}

.view-alert {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 164, 67, 0.36);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(214, 164, 67, 0.16), transparent),
    rgba(214, 164, 67, 0.08);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.view-alert b {
  color: var(--gold);
  white-space: nowrap;
}

.view-alert span {
  color: #b9ccda;
  font-size: 13px;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 6px 50%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06);
}

.tag.red {
  color: #fff;
  background: rgba(255, 90, 95, 0.8);
}

.tag.orange {
  color: #1b0c02;
  background: var(--orange);
}

.tag.yellow {
  color: #1d1702;
  background: var(--yellow);
}

.tag.green {
  color: #03150c;
  background: var(--green);
}

.tag.blue {
  color: #dff7ff;
  background: rgba(38, 183, 255, 0.28);
}

.side-detail {
  border: 1px solid rgba(138, 166, 186, 0.15);
  border-radius: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(67, 240, 226, 0.08), transparent 42%),
    rgba(4, 14, 24, 0.42);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(138, 166, 186, 0.14);
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 183, 255, 0.28), rgba(214, 164, 67, 0.22));
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.detail-list b {
  color: var(--text);
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stage {
  min-height: 420px;
  border: 1px solid rgba(138, 166, 186, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(4, 14, 24, 0.32);
}

.stage h3 {
  margin-bottom: 12px;
}

.record-card {
  margin-bottom: 10px;
  padding: 12px;
}

.record-card .ghost-btn.small {
  margin-top: 10px;
}

.manual-preview {
  border-color: rgba(214, 164, 67, 0.28);
  background:
    linear-gradient(135deg, rgba(214, 164, 67, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.026);
}

.record-card span,
.record-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(138, 166, 186, 0.15);
}

.progress i {
  display: block;
  width: var(--p);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.report-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
}

.template-list {
  display: grid;
  gap: 10px;
}

.template-card {
  padding: 14px;
  border: 1px solid rgba(138, 166, 186, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(67, 240, 226, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.026);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.template-card.active {
  border-color: rgba(67, 240, 226, 0.58);
  background: rgba(38, 183, 255, 0.1);
}

.editor {
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(138, 166, 186, 0.16);
  border-radius: 0;
  background: #f1f5f8;
  color: #17212b;
  line-height: 1.75;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.editor h2 {
  color: #0b2338;
  font-size: 24px;
}

.watermark {
  display: inline-flex;
  margin: 8px 0 16px;
  padding: 4px 8px;
  border: 1px solid #9cb1bd;
  border-radius: 4px;
  color: #5b6d78;
  font-size: 12px;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 20;
  transform: translateY(20px);
  opacity: 0;
  max-width: 420px;
  padding: 13px 16px;
  border: 1px solid rgba(67, 240, 226, 0.38);
  border-radius: var(--radius);
  background: rgba(8, 20, 34, 0.95);
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

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

  .sidebar {
    position: static;
    padding: 12px;
  }

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

  .deploy-card {
    position: static;
    margin-top: 12px;
  }

  .main {
    padding: 16px;
  }

  .main::before {
    inset: 0;
  }

  .topbar,
  .hero-content,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-strip {
    display: none;
  }

  .dashboard-grid,
  .data-page-shell,
  .report-layout,
  .workflow-board,
  .ops-feed {
    display: block;
  }

  .panel,
  .metric-card,
  .hero-panel,
  .data-page-shell,
  .stage {
    margin-bottom: 12px;
  }
}

/* Crisp typography pass: keep the sci-fi shell, remove blurry text effects. */
.brand strong,
.nav-item,
.system-name,
h1,
h2,
h3,
.hero-content p,
.primary-btn,
.ghost-btn,
.icon-btn,
.metric-card span,
.panel-head span,
.risk-list div,
.heat-cell span {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

h1 {
  font-size: 38px;
  font-weight: 800;
  color: #f4fbff;
  text-shadow: 0 0 10px rgba(77, 207, 255, 0.2);
}

h2 {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 800;
  color: #f6fbff;
  text-shadow: 0 0 10px rgba(77, 207, 255, 0.16);
}

h3 {
  font-size: 18px;
  font-weight: 800;
  color: #f2fbff;
}

.brand strong,
.nav-item {
  font-weight: 700;
}

.hero-content p {
  font-size: 17px;
  font-weight: 800;
  color: #35f4e3;
}

.metric-card strong,
.ring-center b,
.heat-cell b {
  -webkit-text-stroke: 0;
  font-family: var(--font-num);
  font-weight: 800;
  text-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent);
}

.metric-card strong {
  font-size: 54px;
}

.ring-center b {
  font-size: 32px;
}

.heat-cell b {
  font-size: 19px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
}

.data-table th,
.data-table td,
.detail-list,
.timeline,
.report-preview,
.record-card,
.template-card {
  font-family: var(--font-ui);
}

/* Embedded type system: crisp, restrained, and consistent online or offline. */
body {
  line-height: 1.45;
}

b,
strong {
  font-weight: 600;
}

.brand strong {
  font-weight: 600;
}

.nav-item {
  font-size: 16px;
  font-weight: 450;
}

.nav-item.active {
  font-weight: 600;
}

.system-name {
  font-size: 13px;
  font-weight: 400;
}

h1,
h2,
h3,
.hero-content p,
.hero-kpi-line strong,
.hero-kpi-line span,
.metric-card strong,
.ring-center b,
.heat-cell b {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

h1 {
  font-size: 36px;
  font-weight: 650;
}

h2 {
  font-size: 34px;
  font-weight: 650;
}

h3 {
  font-size: 17px;
  font-weight: 550;
}

.hero-content p {
  font-size: 16px;
  font-weight: 600;
}

.hero-content > div > span {
  line-height: 1.6;
}

.hero-kpi-line strong {
  font-weight: 650;
}

.hero-kpi-line span {
  font-size: 18px;
  font-weight: 550;
}

.metric-card span,
.panel-head span {
  font-weight: 450;
}

.metric-card small {
  font-weight: 400;
}

.metric-card strong,
.ring-center b,
.heat-cell b {
  font-weight: 650;
}

.risk-list div {
  font-weight: 450;
}

.risk-list b,
.heat-cell span,
.data-table th,
.timeline b,
.report-preview b,
.record-card b,
.template-card b,
.detail-list b,
.audit-row b,
.tag,
.primary-btn,
.ghost-btn,
.icon-btn {
  font-weight: 550;
}

/* Professional density pass: calmer Chinese text and distinct numeric rhythm. */
.brand strong {
  font-weight: 550;
}

.nav-item {
  font-weight: 400;
}

.nav-item.active {
  font-weight: 500;
}

h1,
h2 {
  font-weight: 550;
}

h3,
.hero-content p {
  font-weight: 500;
}

.hero-kpi-line span,
.metric-card span,
.panel-head span {
  font-weight: 400;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.data-table th,
.timeline b,
.report-preview b,
.record-card b,
.template-card b,
.detail-list b,
.audit-row b,
.tag {
  font-weight: 500;
}

.hero-kpi-line strong,
.metric-card strong,
.ring-center b,
.risk-list b,
.heat-cell b,
.ops-feed b {
  font-family: var(--font-num);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.metric-card strong {
  font-size: 50px;
}

.risk-list div {
  font-weight: 400;
}

.heat-cell span {
  font-weight: 400;
}
