:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0a0d0d;
  --panel-2: #111616;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6ffff;
  --muted: rgba(246, 255, 255, 0.62);
  --accent: #00ccc0;
  --accent-2: #77fff6;
  --danger: #ff6b7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 204, 192, 0.14), transparent 34rem),
    linear-gradient(145deg, #050505 0%, #111 45%, #020202 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.eyebrow,
.label,
.metric p,
.panel-header span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 5px;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  font-size: 19px;
  line-height: 1.2;
}

.ghost-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 15px;
}

.state {
  display: grid;
  min-height: 58vh;
  place-items: center;
  text-align: center;
  gap: 12px;
}

.state h2 {
  max-width: 460px;
  font-size: clamp(26px, 6vw, 42px);
}

.state p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.45;
}

.pulse {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(0, 204, 192, 0.25);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 204, 192, 0.13), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: 0 22px 70px rgba(0, 204, 192, 0.12);
}

.code {
  margin-top: 8px;
  font-size: clamp(38px, 9vw, 78px);
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
}

.name {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 850;
  line-height: 1.08;
}

.muted {
  margin-top: 10px;
  max-width: 500px;
  color: var(--muted);
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 13, 13, 0.78);
  backdrop-filter: blur(18px);
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.panel {
  margin-top: 18px;
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(14px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 180px;
  padding-top: 8px;
}

.bar-wrap {
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 170px;
}

.bar {
  min-height: 6px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.bar-label {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.list {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row span {
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }

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

  .hero,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 20px;
  }

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