:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17352d;
  background: #f3f7f4;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.app-shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom)); }
.card { background: white; border-radius: 20px; box-shadow: 0 12px 32px #16493612; padding: 32px; }
.login-card { margin-top: 10vh; text-align: center; }
.brand-mark { font-size: 42px; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; }
p { color: #60736c; margin: 0 0 24px; }
label { display: block; font-weight: 700; margin-bottom: 6px; text-align: left; }
input { width: 100%; border: 2px solid #d5e2dc; border-radius: 12px; padding: 13px 15px; outline: none; font-size: 16px; }
input:focus { border-color: #176b52; }
form button, .add-form button { border: 0; border-radius: 12px; background: #176b52; color: white; font-weight: 700; }
#login-form button { width: 100%; min-height: 48px; margin-top: 16px; padding: 13px; }
.error { color: #b42318; min-height: 24px; margin: 12px 0 0; }
.app-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.eyebrow { color: #176b52; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.button.secondary { background: transparent; border: 1px solid #bfd2c9; border-radius: 10px; color: #176b52; padding: 10px 13px; font-weight: 700; min-height: 44px; }
.add-form { display: flex; gap: 10px; }
.add-form input { flex: 1; }
.add-form button { width: 52px; min-width: 52px; min-height: 48px; font-size: 28px; line-height: 1; }
.status { min-height: 24px; margin: 8px 0 0; font-size: .9rem; }
.items { list-style: none; margin: 8px 0 0; padding: 0; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 4px; min-height: 52px; border-bottom: 1px solid #e3ece7; font-size: 1.1rem; }
.item input { flex: 0 0 24px; width: 24px; height: 24px; accent-color: #176b52; }
.item.checked span { color: #8a9b94; text-decoration: line-through; }
.empty-state { text-align: center; padding: 48px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .app-shell { width: min(100% - 24px, 620px); }
  .card { padding: 24px 20px; }
  .login-card { margin-top: 5vh; }
  .app-header { align-items: start; }
  .app-header h1 { font-size: 2.25rem; }
  .add-form { position: sticky; top: 8px; z-index: 1; padding: 4px 0; background: #f3f7f4; }
}
