:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(15, 29, 40, 0.88);
  --panel-strong: #102331;
  --line: rgba(157, 190, 208, 0.16);
  --text: #f3f8fa;
  --muted: #93aab7;
  --teal: #2dd4bf;
  --cyan: #38bdf8;
  --amber: #fbbf24;
  --red: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, 0.13), transparent 34rem),
    radial-gradient(circle at 87% 22%, rgba(56, 189, 248, 0.1), transparent 28rem),
    var(--bg);
  font-family: "Noto Sans CJK KR", "Noto Sans KR", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.shell {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 30px;
}

.hero,
.notice,
.metric-heading,
.panel-heading,
.source-row,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.lede {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.live-pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px;
  color: #bffaf1;
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.12);
}

.notice {
  justify-content: flex-start;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 23, 32, 0.76);
}

.notice-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
  font-family: serif;
  font-weight: 800;
}

.notice strong {
  font-size: 0.9rem;
}

.notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.notice time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

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

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.metric-card {
  padding: 20px;
}

.metric-heading {
  color: #c9d8df;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-note {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.metric-card > strong {
  display: block;
  margin: 15px 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.metric-card > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: width 350ms ease;
}

.gpu-card .bar > span {
  background: linear-gradient(90deg, #a3e635, var(--teal));
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
  font-size: 0.75rem;
}

.source-list {
  display: grid;
  gap: 9px;
}

.source-row {
  justify-content: flex-start;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.source-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-copy {
  min-width: 0;
}

.source-copy strong {
  display: block;
  font-size: 0.9rem;
}

.source-copy span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.healthy,
.status-badge.collecting {
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.1);
}

.status-badge.error {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
}

.summary-list {
  margin: 0;
}

.summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 750;
}

.architecture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  color: #c7d9e1;
  background: var(--panel-strong);
  font-size: 0.66rem;
  font-weight: 750;
}

.architecture i {
  color: var(--teal);
  font-style: normal;
}

footer {
  padding: 24px 4px 0;
  color: #607985;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 30px;
  }

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

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

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

  .notice time {
    display: none;
  }

  .source-copy span {
    max-width: 165px;
  }

  .panel {
    padding: 19px;
  }
}

