:root {
  color-scheme: dark;
  --bg: #02070d;
  --panel: rgba(7, 25, 35, 0.78);
  --panel-strong: rgba(9, 36, 47, 0.92);
  --line: rgba(68, 255, 220, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4fbff;
  --muted: #8ea9b4;
  --accent: #00ffc8;
  --accent-2: #25b8ff;
  --blue: #4c82ff;
  --amber: #ffd166;
  --danger: #ff4d7d;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 200, 0.2), transparent 30rem),
    radial-gradient(circle at 86% 24%, rgba(37, 184, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #02070d 0%, #03101b 48%, #02070d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(0, 255, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 200, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, transparent 0 34%, rgba(0, 255, 200, 0.08) 36%, transparent 42% 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
table {
  font: inherit;
}

svg {
  display: block;
}

.dashboard-shell {
  width: min(1920px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(18px, 2.6vw, 56px) 32px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid rgba(0, 255, 200, 0.14);
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.94), rgba(2, 7, 13, 0.72));
  backdrop-filter: blur(18px);
}

.brand,
.nav-menu,
.user-zone,
.role-button,
.hero-actions,
.refresh-bar,
.panel-title,
.park-card,
.token-metrics,
.stat-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(0, 255, 200, 0.72);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(0, 255, 200, 0.85);
  box-shadow: inset 0 0 22px rgba(0, 255, 200, 0.16), 0 0 26px rgba(0, 255, 200, 0.24);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.brand-text {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
}

.nav-menu {
  justify-content: center;
  gap: clamp(18px, 4vw, 74px);
  color: rgba(244, 251, 255, 0.68);
}

.nav-menu a {
  position: relative;
  padding: 28px 0 24px;
  white-space: nowrap;
}

.nav-menu a::after {
  position: absolute;
  right: 18%;
  bottom: 8px;
  left: 18%;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: transparent;
  box-shadow: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.92);
}

.user-zone {
  justify-content: flex-end;
  gap: 14px;
}

.icon-button,
.role-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
}

.icon-button svg,
.role-button svg,
.refresh-bar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.role-button {
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(500px, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: 510px;
  padding-top: 26px;
}

.hero-copy {
  padding: 42px 0 26px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 22px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  font-size: clamp(58px, 5vw, 82px);
  white-space: nowrap;
  text-shadow: 0 2px 0 #91a6ad, 0 0 34px rgba(255, 255, 255, 0.18);
}

.hero-title strong {
  color: #fff;
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 900;
}

.hero-title strong::first-letter {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.8);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #a8bec7;
  font-size: 17px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.park-card:hover,
.rail-card:hover,
.analytics-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #001a16;
  background: linear-gradient(135deg, #28ffe2, #00c69a);
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.38);
}

.button.secondary {
  border: 1px solid rgba(0, 255, 200, 0.45);
  color: var(--text);
  background: rgba(0, 255, 200, 0.04);
}

.button.secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(0, 255, 200, 0.24);
}

.refresh-bar {
  flex-wrap: wrap;
  gap: 26px;
  width: fit-content;
  margin-top: 38px;
  padding: 12px 18px;
  border: 1px solid rgba(0, 255, 200, 0.18);
  border-radius: 8px;
  color: #8da6b1;
  background: rgba(4, 20, 28, 0.72);
}

.refresh-bar span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.refresh-bar strong {
  color: var(--accent);
}

.map-panel {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}

.map-glow {
  position: absolute;
  inset: 7% 9%;
  height: auto;
  border: 1px solid rgba(37, 184, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 255, 200, 0.14), transparent 62%);
  box-shadow: 0 0 72px rgba(37, 184, 255, 0.24), inset 0 0 54px rgba(37, 184, 255, 0.18);
}

.dispatch-orbit {
  position: relative;
  min-height: 500px;
  transform-style: preserve-3d;
}

.dispatch-orbit::before {
  position: absolute;
  inset: 8% 7%;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at center, rgba(0, 255, 200, 0.12), transparent 38%),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 2px);
  background-size: auto, 22px 22px;
  opacity: 0.62;
  mask-image: radial-gradient(circle, black 0 64%, transparent 69%);
}

.dispatch-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: rgba(0, 255, 200, 0.24);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.35));
}

.orbit-ring.middle {
  stroke-dasharray: 7 10;
  animation: dash 9s linear infinite;
}

.orbit-ring.inner {
  stroke: rgba(37, 184, 255, 0.34);
}

.dispatch-link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 15;
  animation: dash 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.88));
}

.core-halo {
  fill: url("#orbitCore");
}

.dispatch-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  padding: 28px 18px;
  border: 1px solid rgba(0, 255, 200, 0.72);
  border-radius: 50%;
  color: #dffff8;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 255, 200, 0.32), transparent 42%),
    linear-gradient(145deg, rgba(8, 35, 44, 0.94), rgba(0, 12, 20, 0.86));
  box-shadow: inset 0 0 32px rgba(0, 255, 200, 0.2), 0 0 46px rgba(0, 255, 200, 0.42);
  transform: translate(-50%, -50%);
}

.dispatch-core::before {
  position: absolute;
  inset: -13px;
  border: 1px dashed rgba(0, 255, 200, 0.42);
  border-radius: 50%;
  content: "";
  animation: spin 18s linear infinite;
}

.dispatch-core span,
.dispatch-core em {
  color: #9fc5ca;
  font-size: 13px;
  font-style: normal;
}

.dispatch-core strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.55);
}

.region-node,
.park-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(0, 255, 200, 0.32);
  background: linear-gradient(145deg, rgba(8, 34, 44, 0.9), rgba(4, 15, 23, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 22px rgba(0, 255, 200, 0.16);
}

.region-node {
  display: grid;
  min-width: 138px;
  gap: 1px;
  padding: 13px 16px 12px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.region-node::before {
  position: absolute;
  top: 50%;
  left: -9px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent), 0 0 34px rgba(0, 255, 200, 0.58);
  transform: translateY(-50%);
  animation: pulse 2.5s ease-in-out infinite;
}

.region-node:hover,
.region-node:focus {
  border-color: rgba(0, 255, 200, 0.76);
  box-shadow: 0 0 34px rgba(0, 255, 200, 0.28);
  transform: translate(-50%, -50%) scale(1.04);
}

.region-node span {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.region-node strong {
  color: var(--accent);
  font-size: 21px;
  line-height: 1.08;
}

.region-node em {
  color: #9fc5ca;
  font-size: 12px;
  font-style: normal;
}

.region-node.north {
  top: 12%;
  left: 50%;
}

.region-node.east {
  top: 34%;
  left: 83%;
}

.region-node.south {
  top: 78%;
  left: 72%;
}

.region-node.center {
  top: 78%;
  left: 28%;
}

.region-node.west {
  top: 34%;
  left: 17%;
}

.park-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #dffff8;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.park-node::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.park-node.beijing {
  top: 3%;
  left: 50%;
}

.park-node.shanghai {
  top: 31%;
  left: 91%;
}

.park-node.hangzhou {
  top: 61%;
  left: 88%;
}

.park-node.shenzhen {
  top: 96%;
  left: 64%;
}

.park-node.chengdu {
  top: 91%;
  left: 21%;
}

.flow-lines {
  position: absolute;
  inset: 20px 0 0 0;
  z-index: 2;
  width: 100%;
  height: 420px;
  pointer-events: none;
}

.flow-line {
  fill: none;
  stroke: url("#lineGradient");
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(0, 255, 200, 0.8));
  stroke-dasharray: 10 14;
  animation: dash 2.8s linear infinite;
}

.china-map {
  position: relative;
  z-index: 1;
  min-height: 458px;
  transform-style: preserve-3d;
}

.china-map-svg {
  position: absolute;
  inset: 22px -4% 18px -5%;
  width: 110%;
  height: calc(100% - 28px);
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(0, 255, 200, 0.7)) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.6));
}

.china-shadow {
  fill: rgba(0, 42, 56, 0.48);
  transform: translate(0, 18px);
  filter: blur(8px);
}

.china-outline {
  fill: url("#chinaFill");
  stroke: rgba(0, 255, 200, 0.86);
  stroke-width: 2;
  filter: url("#chinaGlow");
}

.china-hotspot {
  fill: url("#chinaHotspot");
  mix-blend-mode: screen;
}

.china-dots {
  fill: url("#mapDots");
  opacity: 0.86;
}

.province-lines path {
  fill: none;
  stroke: rgba(92, 255, 231, 0.2);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.map-islands path {
  fill: rgba(0, 255, 200, 0.28);
  stroke: rgba(0, 255, 200, 0.78);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.65));
}

.region-marker {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 132px;
  color: var(--text);
  font-size: 14px;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.region-marker span {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 0 34px rgba(0, 255, 200, 0.7);
  animation: pulse 2.5s ease-in-out infinite;
}

.region-marker strong {
  font-size: 18px;
}

.region-marker em {
  color: #cfeaf0;
  font-style: normal;
}

.region-marker em::after {
  display: block;
  width: 90px;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 12px);
  opacity: 0.75;
}

.region-marker.north {
  top: 146px;
  left: 54%;
}

.region-marker.north span {
  left: 98px;
  top: 14px;
}

.region-marker.east {
  top: 212px;
  left: 66%;
}

.region-marker.east span {
  left: -28px;
  top: 8px;
}

.region-marker.south {
  top: 300px;
  left: 54%;
}

.region-marker.south span {
  left: 88px;
  top: -14px;
}

.region-marker.center {
  top: 226px;
  left: 38%;
}

.region-marker.center span {
  left: 92px;
  top: -4px;
}

.region-marker.west {
  top: 326px;
  left: 18%;
}

.region-marker.west span {
  left: 102px;
  top: -12px;
}

.region-marker:hover span,
.region-marker:focus span {
  transform: scale(1.18);
}

.right-rail {
  display: grid;
  gap: 12px;
}

.rail-card,
.analytics-card,
.stat-strip,
.park-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 31, 42, 0.86), rgba(3, 16, 24, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 30px rgba(0, 255, 200, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rail-card:hover,
.analytics-card:hover,
.stat-card:hover,
.park-card:hover {
  border-color: rgba(0, 255, 200, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 36px rgba(0, 255, 200, 0.18);
}

.rail-card {
  padding: 16px 20px;
}

.panel-title {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.panel-title small,
.panel-title a {
  color: #8ea9b4;
  font-size: 13px;
  font-weight: 400;
}

.panel-title a::after {
  content: ">";
  margin-left: 8px;
}

.region-summary {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.region-summary span,
.task-count span,
.token-metrics span,
.stat-card span {
  color: var(--muted);
}

.region-summary strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
}

.region-summary small {
  font-size: 12px;
}

.bar-list {
  display: grid;
  gap: 10px;
  padding-top: 13px;
}

.bar-list p {
  display: grid;
  grid-template-columns: 42px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #adc2c9;
  font-size: 13px;
}

.bar-list i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 200, 0.32), var(--accent));
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.28);
  transform-origin: left;
  width: var(--w);
}

.usage-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
}

.ring,
.donut {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.ring {
  width: 58px;
  height: 58px;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.2);
}

.ring::before {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  content: "";
  background: #061923;
}

.ring span,
.ring small {
  position: relative;
  z-index: 1;
}

.ring span {
  font-size: 14px;
  font-weight: 900;
}

.ring.large {
  position: relative;
  width: 118px;
  height: 118px;
}

.ring.large::before {
  width: 82px;
  height: 82px;
}

.ring.large span {
  font-size: 30px;
}

.ring.large small {
  color: #adc2c9;
  font-size: 12px;
}

.usage-body ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usage-body li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #adc2c9;
}

.usage-body li strong,
.task-grid strong,
.task-count strong {
  color: var(--accent);
}

.task-count {
  display: grid;
  gap: 2px;
}

.task-panel {
  background:
    linear-gradient(180deg, rgba(0, 255, 200, 0.08), transparent 56%),
    linear-gradient(145deg, rgba(8, 31, 42, 0.9), rgba(3, 16, 24, 0.78));
}

.task-count strong {
  font-size: 32px;
  line-height: 1;
}

.task-count strong::after {
  content: " ↑";
  font-size: 22px;
}

.task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 0;
}

.task-grid p {
  margin: 0;
}

.task-grid span,
.task-grid strong {
  display: block;
}

.sparkline {
  width: 100%;
  height: 66px;
  margin-top: 8px;
}

.sparkline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.7));
}

.park-link-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-top: -24px;
  padding-left: min(42vw, 720px);
}

.park-card {
  position: relative;
  gap: 14px;
  min-height: 92px;
  padding: 12px;
}

.park-card::before {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.park-visual {
  width: 56px;
  height: 50px;
  margin-left: 4px;
  border: 1px solid rgba(0, 255, 200, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 44%, rgba(0, 255, 200, 0.7) 45% 55%, transparent 56%),
    linear-gradient(160deg, rgba(76, 130, 255, 0.32), rgba(0, 255, 200, 0.18));
  box-shadow: inset 0 0 18px rgba(0, 255, 200, 0.18), 0 0 16px rgba(37, 184, 255, 0.22);
}

.park-visual.tower {
  background:
    linear-gradient(90deg, transparent 15%, rgba(0, 255, 200, 0.7) 16% 24%, transparent 25% 38%, rgba(37, 184, 255, 0.7) 39% 50%, transparent 51% 66%, rgba(0, 255, 200, 0.58) 67% 76%, transparent 77%),
    linear-gradient(160deg, rgba(76, 130, 255, 0.28), rgba(0, 255, 200, 0.16));
}

.park-visual.cube {
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.park-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.park-card strong {
  color: #cffff8;
  font-size: 18px;
}

.park-card small {
  color: #8ea9b4;
  font-size: 10px;
}

.load-bars {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.load-bars i {
  width: 9px;
  height: 6px;
  background: rgba(0, 255, 200, 0.78);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.42);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 14px;
  margin-top: 22px;
}

.analytics-card {
  min-width: 0;
  padding: 18px;
}

.model-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 250px;
  gap: 18px;
  align-items: stretch;
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  color: #dcecf0;
  font-size: 14px;
}

.model-table th {
  color: #8ea9b4;
  font-weight: 600;
  text-align: left;
  background: rgba(0, 255, 200, 0.05);
}

.model-table th,
.model-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.model-table td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.model-table strong {
  color: var(--accent);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.28);
}

.model-logo {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #19c58d;
  color: white;
  font-weight: 900;
}

.model-logo.blue {
  background: #286dff;
}

.model-logo.black {
  background: #05080b;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.model-logo.red {
  background: #ff4774;
}

.model-logo.cyan {
  background: #00a8b8;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.donut {
  width: 150px;
  height: 150px;
  position: relative;
}

.donut::before {
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  content: "";
  background: #061923;
}

.donut span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.donut small {
  color: #8ea9b4;
  font-size: 12px;
  font-weight: 500;
}

.donut.multi {
  background: conic-gradient(var(--accent) 0 30.6%, #42d6ff 30.6% 54.1%, #4c82ff 54.1% 72.3%, #755dff 72.3% 87.6%, var(--amber) 87.6% 100%);
  box-shadow: 0 0 22px rgba(0, 255, 200, 0.2);
}

.legend-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #adc2c9;
  font-size: 12px;
  list-style: none;
}

.legend-list i,
.token-donut i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.legend-list li:nth-child(2) i {
  background: #42d6ff;
}

.legend-list li:nth-child(3) i {
  background: #4c82ff;
}

.legend-list li:nth-child(4) i {
  background: #755dff;
}

.legend-list li:nth-child(5) i {
  background: var(--amber);
}

.token-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.token-metrics p {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0, 255, 200, 0.16);
  border-radius: 8px;
  background: rgba(0, 255, 200, 0.05);
}

.token-metrics span,
.token-metrics strong {
  display: block;
}

.token-metrics strong {
  color: var(--accent);
  font-size: 21px;
  line-height: 1.15;
}

.token-metrics p:nth-child(2) strong,
.token-metrics p:nth-child(4) strong {
  color: #6ea0ff;
}

.token-metrics p:nth-child(3) strong {
  color: #ffbd6a;
}

.token-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
}

.token-chart {
  min-height: 240px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: #dcecf0;
}

.chart-title em {
  color: #8ea9b4;
  font-style: normal;
  font-size: 12px;
}

.token-chart svg {
  width: 100%;
  min-height: 205px;
}

.grid-path {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.area.input {
  fill: url("#areaA");
}

.area.output {
  fill: url("#areaB");
}

.line {
  fill: none;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.5));
}

.line.input {
  stroke: var(--accent);
}

.line.output {
  stroke: var(--blue);
}

.axis text {
  fill: #8ea9b4;
  font-size: 12px;
}

.token-donut {
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.token-donut h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.donut.split {
  width: 128px;
  height: 128px;
  margin-bottom: 12px;
  background: conic-gradient(var(--accent) 0 58.9%, var(--blue) 58.9% 100%);
}

.donut.split::before {
  inset: 34px;
}

.token-donut p {
  width: 100%;
  margin: 5px 0;
  color: #adc2c9;
  font-size: 13px;
}

.token-donut p:nth-of-type(2) i {
  background: var(--blue);
}

.token-donut strong {
  float: right;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 18px;
}

.stat-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 8px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card svg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.72));
}

.stat-card strong {
  min-width: 0;
  color: var(--accent);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 255, 200, 0.32);
  white-space: nowrap;
}

.stat-card small {
  color: #dcecf0;
  font-size: 14px;
}

.stat-card span {
  font-size: 14px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 16px var(--accent), 0 0 34px rgba(0, 255, 200, 0.64);
  }

  50% {
    box-shadow: 0 0 26px var(--accent), 0 0 54px rgba(0, 255, 200, 0.86);
  }
}

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

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

@media (max-width: 1420px) {
  .overview-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(470px, 1.2fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .park-link-panel {
    margin-top: 14px;
    padding-left: 0;
  }

  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 1180px) {
  .top-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .nav-menu a {
    padding: 8px 0 14px;
  }

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

  .map-panel {
    min-height: 430px;
  }

  .flow-lines {
    display: none;
  }

  .park-link-panel {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .model-layout,
  .token-layout {
    grid-template-columns: 1fr;
  }

  .donut-wrap,
  .token-donut {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    padding-left: 0;
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    padding-inline: 14px;
  }

  .top-nav {
    min-height: auto;
    padding: 12px 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .user-zone {
    gap: 8px;
  }

  .overview-grid {
    gap: 18px;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-title span {
    font-size: clamp(48px, 14vw, 76px);
  }

  .hero-title strong {
    font-size: clamp(28px, 8vw, 42px);
  }

  .button {
    width: 100%;
  }

  .map-panel,
  .china-map {
    min-height: 370px;
  }

  .china-map-svg {
    inset: 42px 1% 38px;
  }

  .region-marker {
    min-width: 108px;
    font-size: 12px;
  }

  .region-marker strong {
    font-size: 15px;
  }

  .dispatch-orbit {
    min-height: 390px;
    overflow: hidden;
  }

  .dispatch-core {
    width: 136px;
    height: 136px;
  }

  .dispatch-core strong {
    font-size: 30px;
  }

  .region-node {
    min-width: 96px;
    padding: 9px 10px;
  }

  .region-node span {
    font-size: 14px;
  }

  .region-node strong {
    font-size: 16px;
  }

  .park-node {
    font-size: 11px;
    min-height: 26px;
    padding-inline: 8px;
  }

  .park-node.shanghai {
    left: 86%;
  }

  .park-node.hangzhou {
    left: 82%;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .usage-body,
  .region-summary,
  .task-grid,
  .donut-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .model-table {
    min-width: 620px;
  }

  .model-layout {
    overflow-x: auto;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    padding: 8px 14px;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
  }

  .stat-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

  .role-button {
    padding-inline: 10px;
  }

  .icon-button {
    display: none;
  }

  .refresh-bar,
  .token-metrics {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .refresh-bar {
    display: grid;
  }

  .map-panel,
  .china-map {
    min-height: 320px;
  }

  .region-marker.north {
    top: 105px;
    left: 48%;
  }

  .region-marker.east {
    top: 158px;
    left: 58%;
  }

  .region-marker.south {
    top: 224px;
    left: 45%;
  }

  .region-marker.center {
    top: 176px;
    left: 29%;
  }

  .region-marker.west {
    top: 246px;
    left: 9%;
  }

  .dispatch-orbit {
    min-height: 340px;
  }

  .region-node.north {
    top: 13%;
  }

  .region-node.east {
    left: 78%;
  }

  .region-node.west {
    left: 22%;
  }

  .region-node.south {
    left: 70%;
  }

  .region-node.center {
    left: 30%;
  }

  .park-node {
    display: none;
  }

  .token-chart svg {
    min-height: 180px;
  }
}
