:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #07111f;
  color: #f4f8ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, #12365b 0, transparent 35%),
    radial-gradient(circle at 85% 85%, #182850 0, transparent 38%),
    #07111f;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #80a9d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.6);
  color: #abc0d8;
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f7c948;
  box-shadow: 0 0 14px currentColor;
}

.live-badge.online .live-dot {
  background: #56e39f;
}

.live-badge.offline .live-dot {
  background: #ff6b72;
}

.status-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: rgba(10, 26, 45, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transition: background 300ms ease, box-shadow 300ms ease;
  backdrop-filter: blur(18px);
}

.status-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.status-card.status-present {
  background: linear-gradient(145deg, rgba(105, 19, 43, 0.94), rgba(41, 14, 43, 0.9));
  box-shadow: 0 30px 90px rgba(209, 42, 82, 0.2);
}

.status-card.status-absent {
  background: linear-gradient(145deg, rgba(11, 79, 74, 0.94), rgba(8, 38, 51, 0.9));
  box-shadow: 0 30px 90px rgba(34, 207, 165, 0.15);
}

.status-card.status-offline {
  filter: saturate(0.35);
}

.sensor-visual {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}

.magnet-icon {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-top: 0;
  border-radius: 8px 8px 32px 32px;
  color: transparent;
  transform: rotate(180deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.orbit-one {
  width: 116px;
  height: 116px;
  animation: pulse 2.2s infinite ease-out;
}

.orbit-two {
  width: 150px;
  height: 150px;
  animation: pulse 2.2s 0.65s infinite ease-out;
}

.status-label {
  position: relative;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  letter-spacing: 0.15em;
}

h2 {
  position: relative;
  margin: 0;
  font-size: clamp(42px, 10vw, 72px);
  letter-spacing: -0.06em;
}

.status-detail {
  position: relative;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.info-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(10, 26, 45, 0.66);
}

.info-title {
  display: block;
  margin-bottom: 8px;
  color: #8099b5;
  font-size: 12px;
}

.info-card strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footnote {
  margin: 18px 0 0;
  color: #66809d;
  font-size: 12px;
  text-align: center;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.76);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 920px);
    padding-top: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-card {
    min-height: 390px;
    border-radius: 26px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
