:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #111816;
  --panel: #19231f;
  --panel-soft: #1f2d27;
  --text: #edf5ec;
  --muted: #a9b9af;
  --line: rgba(255, 255, 255, 0.1);
  --green: #79d484;
  --gold: #f2b84b;
  --red: #e06d5f;
  --blue: #75b8ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(121, 212, 132, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(117, 184, 238, 0.13), transparent 24rem),
    linear-gradient(135deg, #0e1514 0%, #18241f 50%, #101615 100%);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 24px 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
}

.lede {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.status-card,
.quick-grid article,
.panel {
  border: 1px solid var(--line);
  background: rgba(25, 35, 31, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.status-card {
  display: flex;
  min-width: 260px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span:last-child {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(224, 109, 95, 0.12);
}

.dot.online {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(121, 212, 132, 0.14);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.quick-grid article {
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
}

.quick-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-grid strong {
  display: block;
  min-height: 2.25rem;
  margin-top: 8px;
  overflow: hidden;
  font-size: 1.55rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.panel {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
}

.wide {
  grid-column: span 2;
}

.full {
  grid-column: 1 / -1;
}

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

.pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 999px;
  color: #ffe1a3;
  background: rgba(242, 184, 75, 0.09);
  font-size: 0.76rem;
  font-weight: 700;
}

.metrics {
  display: grid;
  gap: 12px;
  margin: 0;
}

.metrics.compact {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.metrics div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

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

.bars label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.bar {
  height: 9px;
  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(--green), var(--gold));
  transition: width 240ms ease;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: var(--panel-soft);
  font-weight: 700;
}

.chips .empty,
.events .empty {
  color: var(--muted);
  font-weight: 500;
}

.events {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin: 0;
  padding-left: 22px;
  overflow: auto;
  color: #dce8df;
}

.events li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

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

  .status-card,
  .full {
    grid-column: 1 / -1;
  }
}

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

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

  .wide,
  .full {
    grid-column: auto;
  }

  .status-card {
    min-width: 0;
  }

  .quick-grid strong {
    white-space: normal;
  }
}
