* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}
.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
h1 { margin: 2px 0 0; font-size: 1.5rem; }
h2 { margin-top: 0; }
.status {
  background: #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .85rem;
}
.card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
label, legend {
  font-weight: 600;
}
textarea, input[type="text"], input[type="number"], input[type="date"] {
  width: 100%;
  margin: 8px 0 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}
.check-row input {
  width: 24px;
  height: 24px;
}
.primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 768px) {
  .app-shell { padding-top: 32px; }
  .card { padding: 24px; }
}
