:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #18201f;
  --muted: #65706b;
  --line: #d9ded3;
  --panel: #ffffff;
  --green: #1e8a5b;
  --blue: #3268b7;
  --amber: #c7831f;
  --shadow: 0 20px 50px rgba(33, 41, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(50, 104, 183, 0.14), transparent 32rem),
    linear-gradient(135deg, #f7f5ef 0%, #eef4f0 100%);
  color: var(--ink);
  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: 48px 0;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.subtitle,
.muted,
small,
.label,
dt {
  color: var(--muted);
}

.subtitle {
  margin-bottom: 0;
  max-width: 36rem;
  font-size: 1.05rem;
}

.status-pill {
  flex: 0 0 auto;
  min-width: 124px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.status-pill.online {
  color: var(--green);
}

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

.tile,
.panel {
  border: 1px solid rgba(24, 32, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.tile {
  min-height: 150px;
  padding: 20px;
}

.tile.primary {
  background: #183c36;
  color: #ffffff;
}

.tile.primary .label,
.tile.primary small {
  color: rgba(255, 255, 255, 0.72);
}

.label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

small {
  font-size: 0.88rem;
}

.panel {
  margin-bottom: 16px;
  padding: 22px;
}

.panel-head,
.split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.meter {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #e5e8df;
}

.meter div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 250ms ease;
}

dl {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.clock {
  font-size: clamp(1.9rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 820px) {
  .shell {
    padding: 28px 0;
  }

  .hero,
  .panel-head,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
    align-items: start;
  }

  .status-pill {
    width: fit-content;
  }

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

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

  dl {
    grid-template-columns: 1fr;
  }
}
