.app-body {
  background: #f4f7f5;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #dfe6e2;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-nav a {
  color: #30423e;
  font-weight: 750;
  text-decoration: none;
}

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

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

.app-page-head h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.app-card {
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.app-stack {
  display: grid;
  gap: 16px;
}

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

.app-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.app-form .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  overflow: hidden;
}

.app-table th,
.app-table td {
  padding: 12px;
  border-bottom: 1px solid #dfe6e2;
  text-align: left;
  vertical-align: top;
}

.app-table th {
  color: #60706c;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.app-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf2ee;
  border: 1px solid #b8ddcb;
}

.app-alert.error {
  background: #fff0ed;
  border-color: #efb7aa;
}

.pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eaf2ee;
  color: #0f7a4f;
  font-size: 0.82rem;
  font-weight: 800;
}

.muted {
  color: #60706c;
}

@media (max-width: 760px) {
  .app-page-head,
  .app-top {
    align-items: stretch;
    flex-direction: column;
  }

  .app-grid,
  .app-grid.two,
  .app-form .row {
    grid-template-columns: 1fr;
  }

  .app-table {
    display: block;
    overflow-x: auto;
  }
}
