:root {
  color-scheme: light;
  --ink: #1e2428;
  --muted: #66727a;
  --line: #dce3e0;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --green: #2f7d5c;
  --blue: #36658f;
  --amber: #a36b23;
  --rose: #9b475e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px;
  background: #23332d;
  color: #f8f5eb;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #d7f2df;
  color: #17221d;
  font-weight: 800;
}

.brand p,
.eyebrow {
  margin: 0 0 4px;
  color: #7d8b86;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand h1,
.topbar h2,
.section h3,
.item-card h4 {
  margin: 0;
}

.brand p {
  color: #b7c4bd;
}

.brand h1 {
  font-size: 22px;
}

nav {
  display: grid;
  gap: 6px;
}

nav a,
.logout {
  padding: 11px 12px;
  border-radius: 8px;
  color: #dfe8e3;
  text-decoration: none;
}

nav a.active,
nav a:hover,
.logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.logout {
  margin-top: auto;
}

main {
  width: min(1120px, 100%);
  padding: 36px;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.topbar h2 {
  max-width: 760px;
  font-size: 34px;
  line-height: 1.08;
}

.primary-button,
.login-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  padding: 0 18px;
}

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

.status-grid article,
.item-card,
.experiment-list,
.deployments,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-grid article {
  position: relative;
  padding: 18px;
}

.status-grid p {
  margin: 24px 0 4px;
  color: var(--muted);
}

.status-grid strong {
  font-size: 30px;
}

.status-dot {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.live {
  background: var(--green);
}

.build {
  background: var(--blue);
}

.quiet {
  background: var(--rose);
}

.section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.section h3 {
  font-size: 22px;
}

.section p {
  margin: 0;
  color: var(--muted);
}

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

.item-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.item-card h4 {
  margin-top: 18px;
  font-size: 20px;
}

.item-card p {
  margin-top: 10px;
  line-height: 1.5;
}

.item-card a {
  font-weight: 750;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pill.green {
  background: var(--green);
}

.pill.blue {
  background: var(--blue);
}

.pill.amber {
  background: var(--amber);
}

.experiment-list,
.deployments {
  overflow: hidden;
}

.experiment-list div,
.deployments div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.experiment-list div:first-child,
.deployments div:first-child {
  border-top: 0;
}

.experiment-list span {
  width: 9px;
  height: 38px;
  background: var(--green);
}

.experiment-list p,
.deployments span,
.deployments time {
  color: var(--muted);
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(47, 125, 92, 0.14), transparent 42%),
    var(--paper);
}

.login-shell {
  width: min(420px, 100%);
  padding: 0;
}

.login-panel {
  padding: 28px;
}

.login-panel h1 {
  margin: 0;
  font-size: 36px;
}

.login-copy {
  margin: 8px 0 24px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.form-error {
  margin: 0;
  color: #a32929;
  font-weight: 700;
}

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

  .sidebar {
    position: static;
    gap: 18px;
  }

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

  main {
    padding: 24px;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h2 {
    font-size: 28px;
  }

  .status-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .experiment-list div,
  .deployments div {
    grid-template-columns: auto 1fr;
  }

  .deployments time {
    grid-column: 2;
  }
}
