:root {
  color-scheme: dark;
  --bg: #07111e;
  --panel: #0b1928;
  --panel-raised: #0e2032;
  --line: #19334a;
  --line-bright: #275071;
  --text: #e8f2fb;
  --muted: #7891a7;
  --dim: #587187;
  --cyan: #49d7eb;
  --blue: #5a9bff;
  --violet: #a58aff;
  --gold: #e9c276;
  --green: #55d7a4;
  --amber: #f5b85e;
  --red: #ff747b;
  --font: "Manrope", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
body {
  overflow: auto;
}
.dashboard {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 18px 24px 12px;
  background:
    linear-gradient(
      90deg,
      #07111ee8 0%,
      #07111eb8 20%,
      #07111e66 50%,
      #07111eaa 78%,
      #07111ee8 100%
    ),
    linear-gradient(180deg, #07111e66 0%, #07111e55 42%, #07111ea8 100%),
    url("assets/digital-twin.webp") center 46% / cover fixed no-repeat;
}
.dashboard:before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#46b9d108 1px, transparent 1px),
    linear-gradient(90deg, #46b9d108 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(transparent, #000 20%, #000 78%, transparent);
  content: "";
}
.dashboard > * {
  position: relative;
  z-index: 1;
}
.topbar {
  display: grid;
  min-height: 62px;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  border-bottom: 1px solid #24435a;
  padding: 0 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #347391;
  border-radius: 10px;
  background: linear-gradient(145deg, #153b54, #102338);
  color: var(--cyan);
  font-size: 17px;
  box-shadow: inset 0 0 18px #3ad7ff12;
}
.brand-copy {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.title-block {
  text-align: center;
}
.title-block > span,
.eyebrow {
  color: #6b93ae;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.title-block h1 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.control-select,
.icon-control {
  height: 34px;
  border: 1px solid #24445b;
  border-radius: 7px;
  background: #0c1d2b;
  color: #a8c1d3;
}
.control-select {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11px;
}
.control-select > i:first-child {
  color: var(--cyan);
}
.control-select select {
  max-width: 92px;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.control-select option {
  background: #0c1d2b;
}
.control-select > i:last-child {
  font-size: 9px;
  color: var(--dim);
}
.icon-control {
  display: grid;
  width: 34px;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.icon-control:hover,
.control-select:focus-within {
  border-color: #46bed5;
  color: var(--cyan);
}
.icon-control.is-refreshing i {
  animation: spin 0.8s linear infinite;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}
.kpi-card {
  position: relative;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(140deg, #0e2030ee, #091725f2);
  padding: 13px 15px;
  box-shadow: 0 8px 24px #020a1280;
}
.kpi-card:after {
  position: absolute;
  top: -35px;
  right: -25px;
  width: 95px;
  height: 95px;
  border: 1px solid #49d7eb12;
  border-radius: 50%;
  box-shadow:
    0 0 0 12px #49d7eb08,
    0 0 0 24px #49d7eb05;
  content: "";
}
.kpi-card-accent {
  border-color: #66563b;
  background: linear-gradient(135deg, #211f1b, #101c28);
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8fa9bd;
  font-size: 11px;
}
.kpi-label i {
  color: var(--cyan);
  font-size: 13px;
}
.kpi-card-accent .kpi-label i {
  color: var(--gold);
}
.kpi-card > strong {
  display: block;
  margin: 8px 0 6px;
  color: #f0f6fc;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
}
.kpi-card > strong small {
  margin-left: 3px;
  color: #90aabd;
  font-size: 11px;
  font-weight: 500;
}
.kpi-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 9px;
}
.trend-up {
  color: var(--green);
}
.trend-gold {
  color: var(--gold);
}
.kpi-foot svg {
  width: 64px;
  height: 22px;
  margin-left: auto;
  overflow: visible;
}
.kpi-foot svg path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  opacity: 0.8;
}
.kpi-card:nth-child(2) .kpi-foot svg path {
  stroke: var(--violet);
}
.kpi-card:nth-child(3) .kpi-foot svg path {
  stroke: var(--gold);
}
.kpi-card:nth-child(4) .kpi-foot svg path {
  stroke: var(--green);
}
.target-track {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #253446;
}
.target-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b69455, #f1d28e);
}
.workspace-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(240px, 0.92fr) minmax(420px, 1.55fr) minmax(
      250px,
      0.95fr
    );
  gap: 14px;
}
.column {
  display: grid;
  min-height: 0;
  gap: 12px;
}
.left-column {
  grid-template-rows: minmax(245px, 0.9fr) minmax(260px, 1.1fr);
}
.right-column {
  grid-template-rows: minmax(205px, 0.82fr) minmax(245px, 1fr) minmax(
      190px,
      0.82fr
    );
}
.center-column {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(430px, 1.6fr) minmax(200px, 0.8fr);
  gap: 12px;
}
.panel,
.map-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #0d1c2af5, #091522f5);
  box-shadow: 0 10px 28px #02091175;
}
.panel {
  padding: 14px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}
.panel-heading h2 {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.panel-note {
  color: var(--dim);
  font-size: 9px;
}
.panel-note b {
  color: #adc2d1;
  font-weight: 600;
}
.live-badge,
.map-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 9px;
}
.live-badge i,
.map-live i,
.system-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px #55d7a4a8;
  animation: pulse 1.7s infinite;
}
.revenue-panel {
  display: flex;
  flex-direction: column;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 13px 0 8px;
}
.chart-summary > strong {
  font-size: 27px;
  letter-spacing: 0.02em;
}
.chart-summary > strong small {
  color: #8299aa;
  font-size: 11px;
  font-weight: 500;
}
.chart-summary > span {
  font-size: 10px;
}
.chart-summary > small {
  color: var(--dim);
  font-size: 9px;
}
.chart-legend {
  display: flex;
  gap: 11px;
}
.legend-button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: #71899d;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.legend-button.active {
  color: #d4e5f1;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.legend-dot.violet {
  background: var(--violet);
}
.legend-dot.gold {
  background: var(--gold);
}
.trend-chart {
  min-height: 100px;
  flex: 1;
  margin-top: 8px;
}
.trend-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-grid-line {
  stroke: #244054;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.chart-area {
  opacity: 0.16;
}
.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px currentColor);
}
.chart-point {
  stroke: #0d1c2a;
  stroke-width: 3;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: #577085;
  font-size: 8px;
}
.chart-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  border: 1px solid #28506c;
  border-radius: 5px;
  background: #081724;
  padding: 5px 7px;
  color: #deeff8;
  font-size: 9px;
  pointer-events: none;
}
.contribution-panel {
  display: flex;
  flex-direction: column;
}
.contribution-list {
  display: grid;
  gap: 13px;
  margin-top: 15px;
}
.contribution-row {
  display: grid;
  grid-template-columns: 28px minmax(90px, 1fr) 42px;
  align-items: center;
  column-gap: 8px;
}
.division-icon {
  display: grid;
  width: 26px;
  height: 26px;
  grid-row: span 2;
  place-items: center;
  border-radius: 7px;
  background: #15314a;
  color: #79b8ff;
  font-size: 12px;
}
.division-icon.cyan {
  background: #123442;
  color: var(--cyan);
}
.division-icon.violet {
  background: #282440;
  color: var(--violet);
}
.division-icon.gold {
  background: #30291f;
  color: var(--gold);
}
.division-name {
  color: #d2e0e9;
  font-size: 10px;
  font-weight: 600;
}
.division-name small {
  display: block;
  margin-top: 2px;
  color: #648096;
  font-size: 8px;
  font-weight: 400;
}
.division-value {
  text-align: right;
  color: #bed0dd;
  font-size: 10px;
}
.bar-track {
  height: 4px;
  grid-column: 2/4;
  overflow: hidden;
  margin-top: 5px;
  border-radius: 6px;
  background: #1a2d3b;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #358cbd, #49d7eb);
}
.contribution-row:nth-child(2) .bar-track i {
  background: linear-gradient(90deg, #438bda, #69bbfa);
}
.contribution-row:nth-child(3) .bar-track i {
  background: linear-gradient(90deg, #7968c8, #b49cff);
}
.contribution-row:nth-child(4) .bar-track i {
  background: linear-gradient(90deg, #a7864a, #efd185);
}
.health-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.health-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #68dba8;
  font-size: 9px;
}
.health-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px #55d7a4a8;
}
.health-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 17px 0 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #20394c;
}
.health-score > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.health-score strong {
  color: #e4f4fa;
  font-size: 32px;
  line-height: 1;
}
.health-score > div span {
  color: #8099aa;
  font-size: 9px;
}
.score-change {
  color: #65d9a4;
  font-size: 9px;
}
.health-metrics {
  display: grid;
  gap: 14px;
}
.health-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 10px;
}
.health-metric > span {
  color: #9ab0bf;
  font-size: 9px;
}
.health-metric > span i {
  margin-right: 5px;
  color: #55cce2;
}
.health-metric > strong {
  color: #d9e9f1;
  font-size: 10px;
}
.health-track {
  height: 4px;
  grid-column: 1/-1;
  overflow: hidden;
  border-radius: 5px;
  background: #1a2d3b;
}
.health-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #318bb6, #58d7e9);
}
.health-metric:nth-child(2) .health-track i {
  background: linear-gradient(90deg, #a7864a, #efd185);
}
.health-metric:nth-child(3) .health-track i {
  background: linear-gradient(90deg, #5489d2, #82b9ff);
}
.health-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  color: #7892a5;
  font-size: 8px;
}
.health-foot i {
  color: #55cce2;
}
.health-foot b {
  margin-left: auto;
  color: #6c879a;
  font-weight: 500;
}
.map-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 15px 17px;
  background: transparent;
}
.map-panel:before {
  display: none;
}
.map-panel > * {
  position: relative;
  z-index: 1;
}
.map-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.map-live {
  color: #a1dbea;
}
.map-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 8px;
}
.map-caption small {
  color: #8ca9bc;
  font-size: 10px;
}
.map-caption h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.map-caption > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #82a2b6;
  font-size: 9px;
}
.map-caption > span i {
  color: var(--cyan);
}
.map-visual {
  position: relative;
  min-height: 190px;
  flex: 1;
  overflow: hidden;
  margin: 8px -1px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.map-visual:before {
  display: none;
}
.map-scan {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #59dff455 12%,
    #9ff4ff 50%,
    #59dff455 88%,
    transparent 100%
  );
  box-shadow:
    0 0 10px #55dfff,
    0 0 24px #55dfffaa;
  pointer-events: none;
  animation: vertical-scan 6s ease-in-out infinite;
}
.map-scan i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  background: linear-gradient(0deg, #53dfff35, transparent);
}
.scan-readout {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #3ca9c266;
  border-radius: 4px;
  background: #071a29bd;
  padding: 5px 7px;
  color: #a6ccda;
  font-size: 8px;
  backdrop-filter: blur(5px);
}
.scan-readout i,
.scan-readout b {
  color: var(--cyan);
}
.scan-readout b {
  font-size: 7px;
  letter-spacing: 0.12em;
}
.map-overlay-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(30deg, transparent 49.5%, #69c4db12 50%, transparent 50.5%),
    linear-gradient(150deg, transparent 49.5%, #69c4db12 50%, transparent 50.5%);
  background-size: 60px 50px;
}
.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.route {
  fill: none;
  stroke: url(#routeGlow);
  stroke-width: 2;
}
.route-main {
  stroke-dasharray: 7 7;
  animation: dash 16s linear infinite;
}
.route-secondary {
  stroke: #3ba9d466;
  stroke-width: 1.4;
  stroke-dasharray: 4 8;
}
.map-node {
  cursor: pointer;
}
.map-node text {
  fill: #bad5e2;
  text-anchor: middle;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #0b1b2a;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-node .node-value {
  fill: #54d9ec;
  font-size: 10px;
  font-weight: 500;
}
.node-halo {
  fill: url(#nodeGlow);
  opacity: 0.45;
  animation: nodePulse 2.5s ease-in-out infinite;
}
.node-core {
  fill: #6ceaff;
  stroke: #e3fbff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #4bdfff);
}
.map-node.selected .node-core {
  fill: #f2d18a;
  stroke: #fff5d7;
}
.map-scale,
.map-weather {
  position: absolute;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8ca9bb;
  font-size: 8px;
}
.map-scale {
  left: 10px;
}
.map-scale i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.map-scale span {
  margin-left: 5px;
  color: #607b90;
}
.map-weather {
  right: 10px;
  bottom: 7px;
  border: 1px solid #45647a66;
  border-radius: 7px;
  background: #0a1b29c9;
  padding: 6px 8px;
  color: var(--cyan);
}
.map-weather span {
  color: #c4d6e1;
  font-size: 8px;
}
.map-weather small {
  display: block;
  margin-top: 2px;
  color: #7893a7;
  font-size: 7px;
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #264459;
  padding-top: 9px;
}
.map-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 9px;
  border-right: 1px solid #1b3447;
}
.map-stats > div:first-child {
  padding-left: 0;
}
.map-stats > div:last-child {
  border: 0;
}
.map-stats span {
  color: #728da2;
  font-size: 8px;
}
.map-stats strong {
  font-size: 15px;
}
.map-stats strong small {
  color: #748ea2;
  font-size: 8px;
  font-weight: 500;
}
.positive {
  color: var(--green);
}
.pulse-panel {
  display: flex;
  flex-direction: column;
}
.pulse-events {
  display: grid;
  gap: 0;
  margin-top: 7px;
}
.pulse-event {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border-top: 1px solid #1a3041;
  padding: 7px 0;
}
.pulse-event:first-child {
  border: 0;
}
.event-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
}
.event-mark.positive {
  background: #123528;
  color: var(--green);
}
.event-mark.info {
  background: #142d45;
  color: #79b8ff;
}
.event-mark.warning {
  background: #392c1b;
  color: var(--amber);
}
.pulse-event > span {
  color: #9bb1c1;
  font-size: 9px;
}
.pulse-event > span b {
  margin-right: 6px;
  color: #d4e1e9;
}
.pulse-event > span strong {
  color: #d8e8f1;
  font-weight: 600;
}
.pulse-event > span small {
  display: block;
  margin-top: 3px;
  color: #647f93;
  font-size: 8px;
}
.pulse-event > em {
  color: #7da4b8;
  font-size: 8px;
  font-style: normal;
}
.pulse-event > em.warning-label {
  color: var(--amber);
}
.target-panel {
  display: flex;
  flex-direction: column;
}
.more-button {
  border: 0;
  background: transparent;
  color: #7c9bb0;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.more-button:hover {
  color: var(--cyan);
}
.target-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 8px;
}
.target-ring {
  position: relative;
  display: grid;
  width: 102px;
  height: 102px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #e9c276 0 84.2%, #26384a 84.2% 100%);
  box-shadow: 0 0 20px #e9c27616;
}
.target-ring:before {
  position: absolute;
  inset: 7px;
  border: 1px solid #43505d;
  border-radius: 50%;
  background: linear-gradient(145deg, #132131, #0a1723);
  content: "";
}
.target-ring > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.target-ring strong {
  font-size: 22px;
}
.target-ring strong span {
  font-size: 12px;
}
.target-ring small {
  color: #8198a9;
  font-size: 8px;
}
.target-copy {
  display: grid;
  gap: 5px;
}
.target-copy > span {
  color: #7d96a8;
  font-size: 8px;
}
.target-copy > strong {
  font-size: 18px;
}
.target-copy > strong small {
  color: #8ca2b1;
  font-size: 9px;
  font-weight: 500;
}
.target-copy > b {
  margin-top: 2px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
}
.target-copy > b i {
  margin-right: 3px;
}
.target-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #71899d;
  font-size: 8px;
}
.target-foot strong {
  color: #9fb2c0;
  font-size: 8px;
}
.target-foot .target-track {
  height: 5px;
  grid-column: 1/3;
}
.region-panel {
  display: flex;
  flex-direction: column;
}
.region-list {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}
.region-rank {
  display: grid;
  grid-template-columns: 25px minmax(78px, 1fr) 58px 43px;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 4px 5px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}
.region-rank:hover,
.region-rank.active {
  border-color: #24455b;
  background: #102334;
}
.rank-no {
  color: #5e788c;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
}
.region-rank:first-child .rank-no {
  color: var(--gold);
}
.rank-info b {
  display: block;
  color: #c9d9e3;
  font-size: 9px;
}
.rank-info small {
  display: block;
  margin-top: 2px;
  color: #698397;
  font-size: 7px;
  white-space: nowrap;
}
.rank-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #213647;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d83ba, #50d5e7);
}
.region-rank strong {
  color: #8eb6ca;
  text-align: right;
  font-size: 9px;
  font-weight: 600;
}
.alert-panel {
  display: flex;
  flex-direction: column;
}
.alert-count {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #713c3b;
  border-radius: 50%;
  background: #371d24;
  color: #ff9690;
  font-size: 10px;
}
.alert-item {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.alert-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
}
.alert-icon.red {
  background: #381f25;
  color: var(--red);
}
.alert-icon.amber {
  background: #352b1d;
  color: var(--amber);
}
.alert-item span:nth-child(2) b {
  display: block;
  color: #d5e2e9;
  font-size: 9px;
  font-weight: 600;
}
.alert-item span:nth-child(2) small {
  display: block;
  margin-top: 3px;
  color: #72899b;
  font-size: 8px;
}
.alert-item > em {
  color: #ff9a8c;
  font-size: 8px;
  font-style: normal;
}
.alert-item:nth-of-type(3) > em {
  color: var(--amber);
}
.alert-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border: 0;
  border-top: 1px solid #1c3446;
  background: transparent;
  padding: 9px 0 0;
  color: #81a7be;
  text-align: left;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.alert-action:hover {
  color: var(--cyan);
}
.bottom-bar {
  display: grid;
  min-height: 36px;
  grid-template-columns: 1fr minmax(250px, 1.3fr) 1fr;
  align-items: center;
  border-top: 1px solid #1c374b;
  color: #7892a5;
  font-size: 9px;
}
.data-source {
  display: flex;
  align-items: center;
  gap: 7px;
}
.data-source > i {
  color: var(--green);
}
.data-source span {
  margin-left: 5px;
  color: #5f7a8e;
}
.data-source b {
  color: #9cb2c1;
  font-weight: 500;
}
.ticker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ticker > b {
  flex: none;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.ticker > b i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.ticker-track {
  display: flex;
  min-width: 0;
  gap: 35px;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}
.ticker-track span {
  color: #8ba3b4;
}
.system-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 55px;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid #2c6172;
  border-radius: 7px;
  background: #0d2432;
  padding: 10px 14px;
  color: #d6eef3;
  font-size: 11px;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes nodePulse {
  50% {
    opacity: 0.72;
    transform: scale(1.22);
  }
}
@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes vertical-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  12%,
  82% {
    opacity: 0.95;
  }
  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-scan {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
@media (min-width: 1600px) {
  .dashboard {
    gap: 18px;
    padding: 22px 30px 14px;
  }
  .topbar {
    min-height: 68px;
  }
  .kpi-card {
    min-height: 116px;
    padding: 16px 18px;
  }
  .kpi-card > strong {
    font-size: 29px;
  }
  .workspace-grid {
    gap: 16px;
  }
  .column {
    gap: 14px;
  }
  .panel {
    padding: 16px;
  }
  .center-column {
    grid-template-rows: minmax(500px, 1.65fr) minmax(220px, 0.8fr);
  }
}
@media (max-width: 1150px) {
  .dashboard {
    padding: 14px;
  }
  .workspace-grid {
    grid-template-columns: minmax(210px, 0.9fr) minmax(350px, 1.4fr) minmax(
        220px,
        0.9fr
      );
    gap: 9px;
  }
  .column,
  .center-column {
    gap: 9px;
  }
  .panel {
    padding: 11px;
  }
  .map-panel {
    padding: 12px;
  }
  .topbar {
    grid-template-columns: 0.8fr 1.1fr 1.2fr;
  }
  .title-block h1 {
    font-size: 18px;
  }
  .control-select {
    padding: 0 7px;
  }
  .period-select {
    display: none;
  }
  .kpi-grid {
    gap: 7px;
  }
  .kpi-card {
    padding: 11px;
  }
  .kpi-card > strong {
    font-size: 21px;
  }
}
@media (max-width: 850px) {
  .dashboard {
    min-height: 100vh;
    overflow: visible;
    padding: 12px;
  }
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .title-block {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
  }
  .top-controls {
    grid-column: 2;
    grid-row: 1;
  }
  .brand-copy small {
    font-size: 7px;
  }
  .title-block h1 {
    font-size: 19px;
  }
  .title-block > span {
    font-size: 7px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-card {
    min-height: 92px;
  }
  .kpi-card-accent {
    grid-column: span 2;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .center-column {
    grid-row: 1;
    grid-template-rows: minmax(380px, 60vh) auto;
  }
  .left-column,
  .right-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .left-column .contribution-panel {
    min-height: 260px;
  }
  .left-column .health-panel {
    min-height: 260px;
  }
  .right-column .target-panel,
  .right-column .region-panel,
  .right-column .alert-panel {
    min-height: 220px;
  }
  .bottom-bar {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    padding-top: 8px;
  }
  .ticker {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .system-status {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 560px) {
  .control-select {
    height: 31px;
    font-size: 9px;
  }
  .control-select select {
    max-width: 74px;
  }
  .icon-control {
    width: 31px;
    height: 31px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .title-block h1 {
    font-size: 17px;
  }
  .kpi-card {
    min-height: 85px;
    padding: 10px;
  }
  .kpi-label {
    font-size: 9px;
  }
  .kpi-card > strong {
    font-size: 19px;
  }
  .kpi-foot {
    font-size: 8px;
  }
  .kpi-foot svg {
    width: 44px;
  }
  .center-column {
    grid-template-rows: 410px auto;
  }
  .map-panel {
    padding: 11px;
  }
  .map-caption h2 {
    font-size: 16px;
  }
  .map-visual {
    min-height: 200px;
  }
  .map-stats > div {
    padding: 0 5px;
  }
  .map-stats span {
    font-size: 7px;
  }
  .map-stats strong {
    font-size: 12px;
  }
  .map-stats strong small {
    font-size: 7px;
  }
  .left-column,
  .right-column {
    grid-template-columns: 1fr;
  }
  .left-column .contribution-panel,
  .left-column .health-panel,
  .right-column .target-panel,
  .right-column .region-panel,
  .right-column .alert-panel {
    min-height: 220px;
  }
  .target-layout {
    justify-content: center;
  }
  .target-ring {
    width: 95px;
    height: 95px;
  }
  .region-rank {
    grid-template-columns: 28px 1fr 70px 45px;
  }
  .bottom-bar {
    font-size: 8px;
  }
  .data-source {
    flex-wrap: wrap;
  }
  .toast {
    right: 12px;
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
