* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #faf7f2; color: #222; touch-action: manipulation; }
main {
  max-width: 480px; margin: 0 auto; padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 8px; }
/* 16px font stops iPhones zooming into fields; 52px height = easy thumb taps */
input, select, button { width: 100%; min-height: 52px; padding: 12px 14px; margin: 6px 0; font-size: 16px; border-radius: 10px; border: 1px solid #bbb; font-family: inherit; }
button { background: #6f4e37; color: #fff; border: 0; cursor: pointer; font-weight: 600; }
button:active { filter: brightness(.9); }
button.secondary { background: #fff; color: #6f4e37; border: 1px solid #6f4e37; }
button.danger { background: #b3261e; }
button.link { background: none; color: #6f4e37; width: auto; min-height: 44px; padding: 8px; text-decoration: underline; font-weight: 400; }
header { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; min-height: 44px; }
header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { background: #fff; border-radius: 14px; padding: 16px; margin-top: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.card p { margin: 6px 0; font-size: 1.05rem; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 1rem; }
.check input { width: 24px; height: 24px; min-height: 0; margin: 0; flex: none; }
details { margin-top: 20px; }
summary { min-height: 44px; display: flex; align-items: center; }
.msg { min-height: 1.4em; color: #b3261e; }
.msg.ok { color: #1b6e2d; }
[hidden] { display: none !important; }
.field { display: block; font-size: .85rem; color: #555; }
.field input { margin-top: 4px; color: #222; }
.hint { font-size: .85rem; color: #555; margin: 4px 0 0; }
