:root {
  color-scheme: dark;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --cyan: #00e3ff;
  --text: #e8f6ff;
}

@font-face {
  font-family: "DS-Digital Bold";
  src: url("./assets/fonts/DS-DIGIB.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #041322;
  color: var(--text);
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  user-select: none;
}

button:focus-visible {
  outline: 1px solid rgba(0, 227, 255, 0.9);
  outline-offset: 2px;
}

.screen-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #041322;
}

body.is-fallback-fullscreen .screen-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.data-statistics-page {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: left top;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background: url("./assets/bg-6UNyFXLQ.png") center / 100% 100% no-repeat;
}

.header-area {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 72px;
}

.header-bar {
  position: relative;
  width: 100%;
  height: 75px;
  background: url("./assets/header-bg-D_JVBZw4.png") center top / 100% 75px no-repeat;
}

.header-datetime,
.header-actions,
.title-img {
  position: absolute;
  z-index: 2;
}

.header-datetime {
  top: 20px;
  left: 28px;
  color: rgba(232, 246, 255, 0.88);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.title-img {
  top: 0;
  left: 50%;
  width: 530px;
  height: 76px;
  object-fit: contain;
  transform: translateX(-50%);
}

.header-actions {
  top: 16px;
  right: 30px;
  display: flex;
  gap: 10px;
}

.header-icon-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 227, 255, 0.5);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(0, 100, 200, 0.25), rgba(0, 60, 150, 0.35));
  color: #fff;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible,
.header-icon-btn.is-active {
  border-color: rgba(57, 226, 255, 0.95);
  background: linear-gradient(135deg, rgba(0, 140, 210, 0.42), rgba(0, 60, 150, 0.5));
  box-shadow:
    inset 0 0 12px rgba(0, 227, 255, 0.18),
    0 0 12px rgba(0, 227, 255, 0.32);
  color: #9ff8ff;
  transform: translateY(-1px);
}

.main-content {
  position: absolute;
  top: 72px;
  right: 20px;
  bottom: 37px;
  left: 20px;
  z-index: 5;
  display: flex;
}

.main-content::after {
  position: absolute;
  right: -21px;
  bottom: -37px;
  left: -21px;
  z-index: 7;
  height: 120px;
  background: url("./assets/bottom-frame@2x.png") center bottom / 100% 120px no-repeat;
  content: "";
  pointer-events: none;
}

.left-panel {
  position: relative;
  width: 440px;
  height: 957px;
  margin-top: 4px;
  flex-shrink: 0;
}

.center-area {
  position: relative;
  width: 783px;
  height: 957px;
  margin-top: 29px;
  margin-left: 96px;
  flex-shrink: 0;
}

.right-panel {
  position: relative;
  width: 450px;
  height: 968px;
  margin-top: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.panel-card {
  position: absolute;
  overflow: hidden;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 4px;
}

.uav-data-card {
  top: 0;
  left: 0;
  width: 440px;
  height: 346px;
  background-image: url("./assets/drone-data-bg-LPncxFQ3.png");
}

.event-trend-card {
  top: 361px;
  left: 0;
  width: 440px;
  height: 331px;
  background-image: url("./assets/event-trend-bg-CFPkJBbo.png?v=20260618-event-dash-bg");
}

.policy-card {
  top: 706px;
  left: 0;
  width: 440px;
  height: 250px;
  background-image: url("./assets/policy-files-bg-CoTVL_B2.png");
}

.warning-card {
  top: 0;
  left: 0;
  width: 450px;
  height: 326px;
  background-image: url("./assets/warning-info-bg-2_h2iS_h.png");
}

.countermeasure-card {
  top: 341px;
  left: 0;
  width: 450px;
  height: 286px;
  background-image: url("./assets/countermeasure-info-bg-BPfk4f5P.png");
}

.zone-card {
  top: 642px;
  left: 0;
  width: 450px;
  height: 326px;
  background-image: url("./assets/zone-analysis-bg-B_8XzfZv.png");
}

.chart-group {
  position: absolute;
  left: 16px;
  width: 408px;
  height: 108px;
}

.model-chart-group {
  top: 86px;
}

.altitude-chart-group {
  top: 221px;
}

.donut-pie {
  position: absolute;
  top: 22px;
  left: 91px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: crosshair;
  filter: drop-shadow(0 0 10px rgba(45, 125, 255, 0.32));
  -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 49% 100%);
  mask: radial-gradient(circle, transparent 0 48%, #000 49% 100%);
  transition: filter 0.18s ease;
}

.donut-pie:hover {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(0, 227, 255, 0.3));
}

.donut-pie::before {
  display: none;
  content: none;
}

.donut-pie span {
  display: none;
}

.model-pie {
  background: conic-gradient(from -20deg, #2d7dff 0deg 252deg, #f7a73d 252deg 284deg, #f04444 284deg 313deg, #22c55e 313deg 321deg, rgba(33, 89, 158, 0.28) 321deg 360deg);
}

.altitude-pie {
  background: conic-gradient(from -20deg, #23d0a4 0deg 187deg, #2d7dff 187deg 306deg, #f7a73d 306deg 360deg);
}

.chart-legend {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  width: 145px;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.chart-legend span {
  display: flex;
  min-height: 16px;
  align-items: center;
  gap: 8px;
  color: #e0f0ff;
  font-size: 12px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--c);
}

.trend-data-cards {
  position: absolute;
  top: 58px;
  left: 16px;
  display: grid;
  width: 408px;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.trend-data-cards article {
  display: flex;
  height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}

.trend-data-cards span {
  overflow: hidden;
  color: rgba(180, 210, 240, 0.8);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-data-cards strong {
  margin-top: 4px;
  color: var(--cyan);
  font-family: "DS-Digital Bold", ui-monospace, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.event-chart {
  position: absolute;
  top: 120px;
  left: 16px;
  width: 408px;
  height: 190px;
}

.axis line {
  stroke: rgba(0, 227, 255, 0.1);
}

.axis text,
.x-labels text {
  fill: rgba(180, 220, 255, 0.45);
  font-size: 10px;
}

.x-labels text {
  text-anchor: middle;
  dominant-baseline: middle;
}

.event-line {
  fill: none;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px currentColor);
  pointer-events: none;
}

.chart-hover-capture {
  fill: transparent;
  pointer-events: all;
}

.chart-hover-point {
  fill: var(--c);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px var(--c));
  pointer-events: none;
}

.chart-hover-point.halo {
  fill: var(--c);
  opacity: 0.18;
  stroke: none;
}

.chart-axis-pointer {
  stroke: rgba(116, 220, 255, 0.58);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  filter: drop-shadow(0 0 6px rgba(0, 227, 255, 0.5));
  pointer-events: none;
}

.event-blue {
  color: #00d9ff;
  stroke: #00d9ff;
}

.event-red {
  color: #ff5a2a;
  stroke: #ff5a2a;
}

.event-cyan {
  color: #2bb8ff;
  stroke: #2bb8ff;
}

.policy-rank-list {
  position: absolute;
  top: 52px;
  right: 12px;
  bottom: 26px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 178px;
  overflow: hidden;
}

.policy-rank-list button {
  display: flex;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  background: url("./assets/policy-file-row-bg-bZ51aaPy.png") center / 100% 100% no-repeat;
  cursor: pointer;
  justify-content: flex-start;
  text-align: left;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.policy-rank-list span {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
  margin-left: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.policy-rank-list em {
  display: block;
  flex: 1;
  overflow: hidden;
  color: rgba(210, 230, 255, 0.9);
  font-size: 13px;
  font-style: normal;
  text-align: left;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.policy-rank-list button:hover {
  opacity: 0.85;
  filter: brightness(1.08) drop-shadow(0 0 9px rgba(0, 227, 255, 0.22));
}

.policy-rank-list button:hover span {
  color: #ffe889;
  text-shadow: 0 0 8px rgba(255, 214, 74, 0.76);
}

.policy-rank-list button:hover em {
  color: #8ff5ff;
}

.top-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 241px);
  gap: 30px;
  margin-left: 10px;
}

.stat-card {
  height: 85px;
  padding: 12px 0 0 38px;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.stat-card:hover {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(0, 227, 255, 0.24));
  transform: translateY(-2px);
}

.discover-card {
  background-image: url("./assets/discover-total-bg-C_UwPGMF.png");
}

.intrusion-card {
  background-image: url("./assets/intrusion-total-bg-E3g2YoHX.png");
}

.monthly-card {
  background-image: url("./assets/monthly-intrusion-bg-Cb64YjMv.png");
}

.stat-card span {
  display: block;
  color: rgba(220, 240, 255, 0.85);
  font-size: 14px;
  margin-bottom: 4px;
}

.stat-card strong {
  color: #fff;
  font-family: "DS-Digital Bold", ui-monospace, monospace;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.map-legend {
  position: absolute;
  top: 122px;
  right: 0px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  z-index: 7;
}

.map-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(230, 248, 255, 0.9);
  cursor: pointer;
  font-size: 11px;
  transition:
    color 0.18s ease,
    text-shadow 0.18s ease,
    transform 0.18s ease;
}

.map-legend span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.map-legend button:hover,
.map-legend button.is-active {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 227, 255, 0.42);
  transform: translateY(-1px);
}

.map-legend button:hover span,
.map-legend button.is-active span {
  box-shadow:
    0 0 6px var(--c),
    0 0 15px var(--c);
  transform: scale(1.2);
}

.map-svg {
  position: absolute;
  top: 149px;
  left: 0;
  width: 783px;
  height: 728px;
  overflow: visible;
}

.xinjiang-map {
  z-index: 2;
}

.map-image {
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.map-shadow-layer,
.map-depth-layer {
  pointer-events: none;
}

.map-shadow-layer {
  opacity: 0.6;
  transform: translate(22px, 32px);
  filter: url(#mapDepthBlur);
}

.map-shadow {
  fill: rgba(0, 17, 40, 0.74);
}

.map-depth-layer {
  opacity: 0.92;
  transform: translate(-5px, 15px);
  filter:
    drop-shadow(0 0 7px rgba(0, 213, 255, 0.36))
    drop-shadow(0 16px 8px rgba(0, 10, 24, 0.35));
}

.map-depth {
  fill: url(#mapDepthFill);
  stroke: rgba(92, 232, 255, 0.74);
  stroke-width: 1.45;
}

.map-region-layer {
  filter:
    drop-shadow(0 12px 12px rgba(0, 0, 0, 0.42))
    drop-shadow(0 -5px 8px rgba(0, 227, 255, 0.12));
}

.map-region {
  fill: url(#regionFill);
  stroke: #08d7ff;
  stroke-width: 1.35;
  cursor: default;
  filter: url(#mapGlow);
  opacity: 0.92;
  outline: none;
  transition:
    fill 0.18s ease,
    opacity 0.18s ease,
    stroke 0.18s ease,
    stroke-width 0.18s ease;
}

.xinjiang-map:focus,
.map-region:focus,
.map-region:focus-visible {
  outline: none;
}

.map-region.can-drill {
  cursor: pointer;
}

.map-region.hot,
.map-region:hover,
.map-region.is-hovered,
.map-region:focus-visible {
  fill: url(#regionActiveFill);
  stroke: #55efff;
  stroke-width: 2.1;
  opacity: 1;
}

.map-svg text {
  pointer-events: none;
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(2, 16, 29, 0.82);
  stroke-width: 3px;
  text-anchor: middle;
  text-shadow: 0 0 8px rgba(0, 227, 255, 0.35);
}

.map-label-layer text.is-small {
  font-size: 10px;
  opacity: 0.86;
}

.map-drill-title,
.map-back-btn {
  position: absolute;
  z-index: 8;
}

.map-drill-title {
  top: 116px;
  left: 8px;
  min-width: 166px;
  height: 28px;
  padding: 0 12px 0 18px;
  border-left: 3px solid rgba(0, 227, 255, 0.9);
  background: linear-gradient(90deg, rgba(0, 118, 220, 0.32), rgba(6, 20, 42, 0.04));
  color: rgba(232, 248, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-shadow: 0 0 10px rgba(0, 227, 255, 0.35);
}

.map-back-btn {
  top: 150px;
  left: 24px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(0, 227, 255, 0.58);
  background: linear-gradient(135deg, rgba(0, 124, 210, 0.32), rgba(17, 42, 82, 0.58));
  color: rgba(232, 248, 255, 0.95);
  cursor: pointer;
  font-size: 12px;
  line-height: 24px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.map-back-btn:hover,
.map-back-btn:focus-visible {
  border-color: rgba(0, 227, 255, 0.95);
  background: linear-gradient(135deg, rgba(0, 150, 230, 0.5), rgba(17, 42, 82, 0.72));
  box-shadow: 0 0 14px rgba(0, 227, 255, 0.22);
  transform: translateY(-1px);
}

.point {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px currentColor);
}

.point.cyan {
  fill: #00e5ff;
  color: #00e5ff;
}

.point.magenta {
  fill: #ff4fd8;
  color: #ff4fd8;
}

.point.purple {
  fill: #9c5cff;
  color: #9c5cff;
}

.point.green {
  fill: #32e56b;
  color: #32e56b;
}

.bottom-stats {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  display: grid;
  width: 692px;
  height: 106px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 34px;
  background: transparent;
  z-index: 9;
}

.bottom-stats::before,
.bottom-stats::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
  pointer-events: none;
}

.bottom-stats::before {
  display: none;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(71, 229, 255, 0.95) 13%, rgba(71, 229, 255, 0.22) 50%, rgba(71, 229, 255, 0.95) 87%, transparent);
  box-shadow: 0 0 12px rgba(38, 205, 255, 0.85);
}

.bottom-stats::after {
  display: none;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.65), transparent);
}

.bottom-stats article {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
}

.bottom-stats article:not(:first-child)::before {
  position: absolute;
  top: 13px;
  left: -3px;
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, rgba(99, 234, 255, 0.18), rgba(67, 218, 255, 0.96), rgba(99, 234, 255, 0.18));
  box-shadow: 0 0 8px rgba(62, 217, 255, 0.85);
  content: "";
}

.bottom-stats span {
  display: block;
  color: rgba(220, 240, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.bottom-stats strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-family: "DS-Digital Bold", ui-monospace, monospace;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(83, 180, 255, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.2);
}

.warning-table,
.zone-table {
  position: absolute;
  top: 44px;
  right: 12px;
  bottom: 22px;
  left: 12px;
  display: flex;
  flex-direction: column;
}

.zone-table {
  bottom: 27px;
}

.scrolling-table .table-header {
  position: relative;
  z-index: 2;
}

.table-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  --scroll-duration: 20s;
  --scroll-gap: 6px;
}

.table-header {
  flex-shrink: 0;
  height: 31px;
  margin-top: 15px;
  margin-bottom: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 3px;
  color: #7ec5ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.warning-table .table-header {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-image: url("./assets/online-warning-header.png");
}

.zone-table .table-header {
  display: grid;
  align-items: center;
  grid-template-columns: 40% 25% 35%;
  background-image: url("./assets/online-zone-header.png");
}

.warning-table .table-header span:first-child,
.warning-table .table-row span:first-child {
  width: 45%;
  text-align: left;
}

.warning-table .table-header span:last-child,
.warning-table .table-row span:last-child {
  width: 55%;
  padding-left: 30px;
  text-align: left;
}

.zone-table .table-header span,
.zone-table .table-row span {
  display: flex;
  align-items: center;
  height: 100%;
  text-align: left;
}

.zone-table .table-header span:first-child,
.zone-table .table-row span:first-child {
  padding-left: 10px;
}

.zone-table .table-header span:nth-child(2),
.zone-table .table-row span:nth-child(2) {
  padding-left: 43px;
}

.zone-table .table-header span:nth-child(3),
.zone-table .table-row span:nth-child(3) {
  padding-left: 54px;
}

.table-row {
  flex-shrink: 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  transition: filter 0.18s ease;
}

.warning-table .table-row {
  display: flex;
  align-items: center;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  background-image: url("./assets/online-warning-row.png");
}

.zone-table .table-row {
  display: grid;
  align-items: center;
  grid-template-columns: 40% 25% 35%;
  height: 31px;
  background-image: url("./assets/online-zone-row.png");
}

.table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warning-table .table-row span:first-child {
  color: #fff;
  font-family: DIN, ui-monospace, monospace;
  font-size: 13px;
}

.warning-table .table-row span:last-child {
  color: rgba(220, 235, 255, 0.9);
}

.zone-table .table-row span:first-child {
  font-size: 13px;
}

.zone-table .table-row span:nth-child(2),
.zone-table .table-row span:nth-child(3) {
  font-family: DIN, ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}

.table-row:hover {
  filter: brightness(1.14) saturate(1.08);
}

.auto-scroll-list {
  overflow: hidden;
}

.scroll-track {
  display: flex;
  flex-direction: column;
  animation: listScroll var(--scroll-duration, 18s) linear infinite;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.scroll-group {
  display: flex;
  flex-direction: column;
  gap: var(--scroll-gap, 8px);
  margin-bottom: var(--scroll-gap, 8px);
}

.auto-scroll-list:hover .scroll-track,
.auto-scroll-list:focus-within .scroll-track,
.auto-scroll-list.is-paused .scroll-track {
  animation-play-state: paused;
}

@keyframes listScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.period-buttons {
  position: absolute;
  top: 56px;
  right: 24px;
  display: flex;
  gap: 0;
  z-index: 4;
  padding: 2px;
  background: rgba(32, 56, 145, 0.42);
  border: 1px solid rgba(64, 103, 255, 0.46);
}

.period-buttons button {
  width: 60px;
  height: 28px;
  border: 1px solid rgba(0, 227, 255, 0.45);
  color: rgba(220, 240, 255, 0.75);
  cursor: pointer;
  font-size: 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.period-buttons button:hover,
.period-buttons button.active {
  background: rgba(0, 140, 210, 0.55);
  border-color: rgba(0, 227, 255, 0.9);
  box-shadow: inset 0 0 10px rgba(0, 227, 255, 0.16);
  color: #fff;
}

.counter-chart {
  position: absolute;
  top: 66px;
  left: 12px;
  width: 426px;
  height: 190px;
}

.counter-chart .y-labels text {
  text-anchor: end;
  dominant-baseline: middle;
  fill: rgba(180, 220, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
}

#counterLine {
  fill: none;
  stroke: #ff5b18;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255, 91, 24, 0.6));
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.chart-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 227, 255, 0.62);
  border-radius: 3px;
  background: rgba(3, 15, 36, 0.94);
  box-shadow:
    inset 0 0 18px rgba(0, 126, 255, 0.18),
    0 0 16px rgba(0, 227, 255, 0.24);
  color: rgba(235, 248, 255, 0.96);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
  white-space: nowrap;
}

.chart-tooltip strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
}

.chart-tooltip span {
  color: rgba(220, 238, 255, 0.9);
}

.chart-tooltip span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--c, #00e3ff);
  box-shadow: 0 0 8px var(--c, #00e3ff);
  content: "";
  vertical-align: 1px;
}

.device-marker {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 8;
  width: 15px;
  height: 15px;
  color: var(--c);
  cursor: pointer;
  opacity: 0.92;
  transform: translate(-50%, -50%);
  transition:
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.device-marker::before,
.device-marker::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.device-marker::before {
  right: -9px;
  bottom: -6px;
  left: -9px;
  height: 12px;
  background: radial-gradient(ellipse at center, currentColor 0%, rgba(0, 227, 255, 0.16) 42%, transparent 72%);
  opacity: 0.3;
  animation: pointPulse 1.8s ease-out infinite;
  transform: scale(1.15, 0.42);
}

.device-marker::after {
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.96) 0 12%, transparent 13%),
    currentColor;
  box-shadow:
    0 0 8px currentColor,
    0 0 16px currentColor;
}

.marker-core {
  position: absolute;
  inset: 6px;
  z-index: 2;
  border-radius: 999px;
  background: #fff;
}

.marker-tip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: max-content;
  max-width: 150px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 227, 255, 0.65);
  background: rgba(6, 26, 49, 0.92);
  box-shadow: 0 0 14px rgba(0, 227, 255, 0.25);
  color: #eaffff;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(5px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.device-marker:hover,
.device-marker:focus-visible,
.device-marker.is-hovered,
.device-marker.is-active {
  filter: drop-shadow(0 0 10px currentColor);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.32);
}

.device-marker:hover .marker-tip,
.device-marker:focus-visible .marker-tip,
.device-marker.is-hovered .marker-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.device-marker.is-muted {
  opacity: 0.34;
  filter: saturate(0.7);
}

.device-marker.is-out-of-map {
  display: none;
}

@keyframes pointPulse {
  0% {
    opacity: 0.26;
    transform: scale(0.8, 0.34);
  }

  100% {
    opacity: 0;
    transform: scale(2.2, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-track,
  .device-marker::before {
    animation: none;
  }
}
