*{box-sizing:border-box}
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1f2937;background:#f3f6f4}
body{margin:0;min-height:100vh;padding:18px 12px 34px}
button,input{font:inherit}
button{min-height:48px;border:0;border-radius:11px;padding:11px 17px;font-weight:700;cursor:pointer}
button:disabled{opacity:.6;cursor:wait}
.app,.login-card{width:min(100%,650px);margin:0 auto;background:#fff;padding:22px;border-radius:19px;box-shadow:0 8px 32px #163a2410}
.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
h1{margin:4px 0 0;font-size:clamp(1.7rem,6vw,2.2rem);line-height:1.2}
.eyebrow{color:#176b43;letter-spacing:.12em;font-size:.72rem;font-weight:800}
.muted{color:#64748b}.intro{margin:12px 0 21px;font-size:1rem}
.add-row{display:flex;gap:9px}.add-row input{min-width:0;flex:1;border:1px solid #cbd5e1;border-radius:11px;padding:13px 14px;font-size:1.08rem}
.primary{background:#176b43;color:#fff}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:19px 0 8px}
#status{color:#64748b;font-size:.9rem}.save{background:#e4f4e9;color:#176b43}
.products{list-style:none;margin:0;padding:0}
.product{display:flex;align-items:center;gap:13px;padding:12px 3px;border-bottom:1px solid #edf0f2;min-height:61px}
.product-check{width:25px;height:25px;flex:0 0 auto;accent-color:#16834a}
.product-name{flex:1;min-width:0;font-size:1.17rem;line-height:1.4;padding:4px 2px;overflow-wrap:anywhere;outline-offset:3px}
.product-name:focus{outline:2px solid #93c5fd;border-radius:5px}
.product.checked .product-name{color:#89939e;text-decoration:line-through}
.delete-button{min-width:44px;min-height:44px;padding:0;background:#fff1f2;color:#be123c;font-size:1.55rem}
.empty{padding:29px 8px;text-align:center;color:#64748b;font-size:1.05rem}
.bottom-actions{margin-top:28px;padding-top:18px;border-top:1px solid #edf0f2}
.danger{background:#b42335;color:#fff}.full{width:100%}.quiet{background:#eef2f5;color:#334155}
.footer-note{text-align:center;color:#94a3b8;font-size:.82rem;margin:17px 0 0}
.error-text{color:#b42335!important}
.login-page{display:grid;place-items:center}.login-card{text-align:center;max-width:420px;padding:30px 24px}
.emoji{font-size:3rem}.login-card h1{font-size:1.75rem}
.pin{display:block;width:100%;margin:24px 0 14px;border:1px solid #cbd5e1;border-radius:12px;padding:15px;text-align:center;letter-spacing:.5em;font-size:2rem}
.error{background:#fff1f2;color:#9f1239;padding:10px;border-radius:9px}
.confirm-dialog{width:min(calc(100% - 32px),430px);border:0;border-radius:16px;padding:24px;box-shadow:0 15px 50px #0003}
.confirm-dialog::backdrop{background:#0f172a88}.confirm-dialog h2{margin-top:0}
.confirm-dialog p{color:#64748b;line-height:1.5}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:22px}
.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}
@media(max-width:420px){body{padding:10px 8px 24px}.app{padding:17px 14px;border-radius:15px}.add-row button{padding-inline:13px}#status{font-size:.82rem}}