:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-2: #edf1ec;
  --ink: #202520;
  --muted: #687168;
  --line: #d8ded7;
  --green: #2f6f53;
  --teal: #166b72;
  --amber: #a06914;
  --red: #8f3b35;
  --shadow: 0 18px 50px rgba(30, 39, 34, .10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(47, 111, 83, .10), transparent 32rem),
    linear-gradient(315deg, rgba(22, 107, 114, .12), transparent 26rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(47, 111, 83, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 111, 83, .9), rgba(22, 107, 114, .86)),
    var(--green);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 8px 26px rgba(47, 111, 83, .18);
}

.mark svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav a,
.button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
  color: var(--ink);
  font-weight: 640;
  font-size: 14px;
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: white;
}

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
  padding: 32px 0 56px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.console {
  border: 1px solid rgba(32, 37, 32, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(237, 241, 236, .78);
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.dot.green {
  background: #3d8b5f;
}

.dot.amber {
  background: #c98c2c;
}

.dot.teal {
  background: #338a91;
}

.console-body {
  padding: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric,
.wide-row,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric {
  min-height: 98px;
  padding: 14px;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.value {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 780;
}

.value.ok {
  color: var(--green);
}

.value.warn {
  color: var(--amber);
}

.wide-row {
  margin-top: 12px;
  padding: 14px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 14px;
}

.bar span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

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

.workspace {
  padding: 28px 0 50px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin: 28px 0 22px;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 111, 83, .10);
  color: var(--green);
  font-size: 13px;
  font-weight: 740;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  min-height: 160px;
  padding: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.timeline {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.event {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.event strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  .topbar,
  .footer,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .console {
    order: -1;
  }

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

  .nav {
    flex-wrap: wrap;
  }
}

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

  h1 {
    font-size: 40px;
  }

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

  .actions {
    flex-direction: column;
  }

  .button,
  .nav a {
    width: 100%;
  }
}
