:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020403;
  color: #eafff1;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(48, 255, 126, 0.2), transparent 34rem),
    linear-gradient(180deg, #020403 0%, #06120b 56%, #010201 100%);
}

.shell {
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.topbar,
.hero,
.panel,
.card {
  border: 1px solid rgba(89, 255, 139, 0.2);
  background: rgba(2, 10, 6, 0.72);
  box-shadow: 0 0 30px rgba(33, 255, 111, 0.08), inset 0 0 18px rgba(33, 255, 111, 0.04);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  padding: 16px;
}

.eyebrow,
.hero-copy p,
.panel-head,
.metric-label {
  margin: 0;
  color: #6dff9c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(2rem, 12vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(54, 255, 120, 0.55);
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(111, 255, 158, 0.34);
  border-radius: 50%;
  background: #07150d;
  color: #8affae;
  font-size: 1.5rem;
  box-shadow: 0 0 18px rgba(33, 255, 111, 0.16);
}

.status {
  min-height: 42px;
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid #35ff74;
  color: #b7ffd0;
  background: rgba(3, 18, 9, 0.78);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(150px, 48%) 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  padding: 16px;
}

.ring {
  position: relative;
  aspect-ratio: 1;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 14px rgba(46, 255, 111, 0.55));
}

.track,
.arc {
  fill: none;
  stroke-width: 10;
}

.track {
  stroke: rgba(128, 255, 170, 0.12);
}

.arc {
  stroke: #3cff78;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 420ms ease;
}

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

.ring-label span {
  font-size: clamp(2.2rem, 13vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.ring-label small {
  color: #89ffad;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  line-height: 1;
}

.hero-copy span {
  color: #bcffd0;
  font-size: 0.95rem;
}

.cards {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
}

.metric-value {
  margin-top: 5px;
  font-size: 1.35rem;
  font-weight: 850;
}

.chip {
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(87, 255, 136, 0.3);
  border-radius: 999px;
  color: #031007;
  background: #52ff83;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(82, 255, 131, 0.28);
}

.panel {
  border-radius: 18px;
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.details {
  display: grid;
  gap: 8px;
  color: #d9ffe5;
  font-size: 0.9rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(118, 255, 158, 0.12);
}

.detail-row span:last-child {
  text-align: right;
  color: #8dffad;
}

@media (max-width: 390px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
