@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@700&display=swap");

:root {
  --ground: #e3e4ea;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #8a8f98;
  --divider: #ebebf0;
  --brand: #1f6b3a;
  --on-brand: #ffffff;
  --soft: #e4ede7;
  --warn-bg: #fff1d6;
  --warn: #5c3d00;
  --bad-bg: #fbe9e7;
  --bad: #7a2417;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 16px/1.4 "Inter", system-ui, -apple-system, sans-serif;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 30px; letter-spacing: -0.4px; margin: 4px 0 2px; }
h2 { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 19px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.label { text-transform: uppercase; letter-spacing: 0.8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 4px 8px; }
.card { background: var(--card); border-radius: 16px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07); }
.row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.strong { font-weight: 600; }
.num { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-weight: 600; flex: none; }
.num.done { background: var(--brand); color: var(--on-brand); }
button, .btn {
  font: inherit; font-weight: 600; min-height: 48px; border-radius: 12px; border: 0; padding: 0 16px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
button:disabled { background: #e5e7eb; color: var(--muted); cursor: default; }
button.soft, .btn.soft { background: var(--soft); color: var(--brand); }
button.quiet { background: #f2f3f6; color: var(--text); }
button.outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
button.link { background: none; color: var(--brand); width: auto; min-height: 44px; padding: 0 4px; }
.nav { width: 48px; height: 48px; border-radius: 24px; background: var(--soft); color: var(--brand); display: grid; place-items: center; flex: none; text-decoration: none; font-weight: 700; }
.two { display: flex; gap: 10px; }
.two > * { flex: 1; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
input, select, textarea {
  font: inherit; width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { width: auto; min-height: 44px; padding: 0 14px; border-radius: 22px; background: #fff; color: var(--text); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--soft); color: var(--brand); border: 2px solid var(--brand); }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 12px 0; background: var(--soft); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.photos { display: flex; gap: 12px; }
.photo { flex: 1; height: 150px; border-radius: 16px; background: #fff; border: 2px dashed var(--border); display: grid; place-items: center; text-align: center; overflow: hidden; position: relative; cursor: pointer; }
.photo.req { border-color: var(--brand); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tabs { position: sticky; bottom: 0; display: flex; gap: 6px; background: #fff; border-top: 1px solid #e5e5ea; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); margin-top: 24px; }
.tabs button { background: none; color: var(--muted); min-height: 52px; }
.tabs button[aria-current="page"] { background: var(--soft); color: var(--brand); }
.badge { display: inline-block; border-radius: 9px; padding: 2px 8px; font-size: 12px; font-weight: 600; background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--soft); color: var(--brand); }
.badge.no { background: var(--bad-bg); color: var(--bad); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
