:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#272e28;background:#f8f7f3}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4b805c;outline-offset:3px}.shell{max-width:1200px;margin:auto;padding:0 32px}header{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e6dd}.brand{display:flex;align-items:center;gap:12px;font-size:13px;letter-spacing:.13em}.brand b{font-weight:800}.brand-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#365e44;color:white;font-size:20px}.header-note{font-size:13px;color:#81867b}.hero{padding:58px 0 42px;display:flex;align-items:center;justify-content:space-between;gap:25px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.15em;color:#65866b;margin:0 0 16px}.hero h1{font-size:clamp(36px,4.8vw,62px);line-height:1.04;letter-spacing:-.05em;margin:0 0 20px}.hero h1 em{color:#679477;font-style:normal}.hero p:not(.eyebrow){color:#757e73;line-height:1.65;max-width:610px;margin:0}.hero-icon{width:115px;height:115px;border-radius:50%;background:#e9f0e7;display:grid;place-items:center;font-size:55px;transform:rotate(-8deg);flex-shrink:0}.stats{display:flex;align-items:center;gap:0;background:#fff;border:1px solid #e5e9e1;border-radius:15px;padding:20px 25px;margin-bottom:34px;box-shadow:0 8px 25px #283d2b08}.stats>div:not(.stats-note){display:flex;flex-direction:column;min-width:145px;border-right:1px solid #e9ece6;margin-right:25px}.stats strong{font-size:31px;letter-spacing:-.05em;color:#3c6247}.stats span{font-size:12px;color:#838d81}.stats-note{margin-left:auto;color:#818b81;font-size:13px;max-width:310px;line-height:1.5}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.tabs{display:flex;background:#eaece6;border-radius:10px;padding:4px;gap:2px}.tab{background:transparent;border:0;border-radius:8px;padding:11px 18px;font-size:14px;color:#646e63;font-weight:700;min-height:44px}.tab.active{background:#fff;color:#365e44;box-shadow:0 2px 7px #25352513}.tab span{background:#eaf3ea;color:#4f7c5c;padding:2px 8px;border-radius:20px;margin-left:5px}.search{border:1px solid #dfe4db;border-radius:10px;background:#fff;display:flex;align-items:center;padding:0 13px;min-width:275px;gap:8px;color:#708675}.search span{font-size:22px}.search input{border:0;outline:0;width:100%;padding:13px 0;background:transparent;font-size:14px}.categories{display:flex;overflow-x:auto;max-width:100%;gap:8px;scrollbar-width:thin;padding:1px 0 14px;-webkit-overflow-scrolling:touch}.pill{border:1px solid #e0e5dd;background:#fff;border-radius:999px;padding:9px 15px;color:#657263;font-size:12px;white-space:nowrap;min-height:42px}.pill.active{background:#406b4d;color:#fff;border-color:#406b4d}.content{border:1px solid #e5e9e1;background:#fff;border-radius:16px;padding:27px 29px}.section-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #edf0ea;padding-bottom:18px}.section-heading .eyebrow{margin-bottom:5px}.section-heading h2{font-size:29px;letter-spacing:-.04em;margin:0}.section-heading>span{color:#8c9489;font-size:12px}.product-section{margin:26px 0 33px}.product-section h3{font-size:15px;color:#536b55;margin:0 0 13px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product{display:flex;align-items:center;min-width:0;gap:7px;border:1px solid #e9eee8;border-radius:10px;background:#fff;padding:10px 12px;min-height:64px}.product.selected{border-color:#a1baa3;background:#f5faf4}.product.bought{background:#f9fbf8;opacity:.75}.product-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1;cursor:pointer}.product-main input{appearance:none;border:1.5px solid #a9b5a6;width:24px;height:24px;flex:0 0 24px;border-radius:7px;display:grid;place-items:center;margin:0;cursor:pointer}.product-main input:checked{background:#538362;border-color:#538362}.product-main input:checked:after{content:'✓';color:#fff;font-weight:800}.product-text{min-width:0}.product-text strong{display:block;font-size:14px;font-weight:650;overflow-wrap:anywhere}.product-text small{display:block;font-size:11px;color:#9aa59a;margin-top:2px}.bought .product-text strong{text-decoration:line-through;color:#87958a}.buy{border:0;color:#49765a;background:#e6f1e6;border-radius:8px;padding:9px 11px;font-weight:700;font-size:12px;white-space:nowrap;min-height:39px}.buy.is-bought{background:#dce9dc}.delete{border:0;background:transparent;color:#a0aaa0;font-size:22px;min-width:34px;min-height:39px}.delete:hover{color:#bd5147}.empty{padding:65px 15px;text-align:center;color:#829186;font-size:14px}.add-card{display:grid;grid-template-columns:1fr 1fr;gap:24px;border:1px solid #e3e8de;background:#ecf3eb;border-radius:16px;padding:32px;margin:25px 0}.add-card .eyebrow{margin-bottom:8px}.add-card h2{letter-spacing:-.04em;font-size:29px;margin:0 0 12px}.add-card p:not(.eyebrow){color:#77877a;font-size:13px;line-height:1.6;margin:0}.add-card form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:end}.add-card label{font-size:12px;font-weight:700;color:#526b56}.add-card input,.add-card select{border:1px solid #d5ded1;border-radius:9px;background:#fff;padding:12px;min-width:0;height:48px;font-size:14px}.add-card button{grid-column:1/-1;background:#406b4d;border:0;color:#fff;border-radius:9px;height:47px;font-size:13px;font-weight:700;margin-top:4px}.add-card button:hover{background:#2c5639}.bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0}.bottom-bar p{font-size:12px;color:#899388}.bottom-bar button{border:0;background:transparent;text-decoration:underline;color:#657e69;font-size:12px;min-height:44px}footer{text-align:center;color:#adb6a9;font-size:12px;padding:15px 0 30px}.offline-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;background:#eaf1ed;border:1px solid #dce9df;border-radius:16px;padding:25px 30px;margin:24px 0}.offline-card .eyebrow{margin-bottom:8px}.offline-card h2{font-size:26px;letter-spacing:-.03em;margin:0 0 9px}.offline-card p:not(.eyebrow){color:#607367;font-size:13px;line-height:1.5;margin:0 0 9px}.offline-card .export-hint{font-weight:700;color:#3d7150}.download-actions{display:flex;flex-direction:column;gap:10px;min-width:226px}.download-actions a{display:block;text-align:center;border-radius:9px;padding:12px 14px;min-height:45px;text-decoration:none;background:#406b4d;color:#fff;font-size:13px;font-weight:700}.download-actions a:last-child{background:#fff;color:#406b4d;border:1px solid #adc5b1}.download-actions a.disabled{opacity:.45;cursor:not-allowed}.download-actions a:focus-visible{outline:3px solid #4b805c;outline-offset:3px}#error{padding:13px;border-radius:9px;margin-bottom:15px;background:#fff1ea;color:#a33b31}#error[hidden]{display:none}@media(max-width:780px){.shell{padding:0 18px}.hero{padding:40px 0 30px}.hero-icon{width:80px;height:80px;font-size:37px}.stats-note{display:none}.content{padding:22px 18px}.add-card{grid-template-columns:1fr}.offline-card{grid-template-columns:minmax(0,1fr);gap:12px}.download-actions{min-width:0}.toolbar{flex-wrap:wrap}.search{flex:1;min-width:210px}}@media(max-width:520px){header{height:64px}.header-note,.hero-icon{display:none}.hero h1{font-size:38px}.hero p:not(.eyebrow){font-size:13px}.stats{padding:17px 15px;margin-bottom:22px}.stats>div:not(.stats-note){min-width:0;flex:1;margin-right:13px}.stats>div:nth-child(2){border:0;margin:0}.stats strong{font-size:27px}.toolbar{display:block}.tabs{width:100%;margin-bottom:11px}.tab{flex:1;padding:11px 8px}.search{width:100%;min-width:0}.search input{font-size:16px}.categories{margin-top:10px}.pill{min-height:44px}.section-heading h2{font-size:23px}.product-grid{grid-template-columns:minmax(0,1fr)}.product{min-height:60px}.product-text strong{font-size:15px}.buy{min-height:44px}.delete{min-width:44px;min-height:44px}.add-card{padding:23px 19px}.add-card form{grid-template-columns:1fr}.add-card input,.add-card select{font-size:16px}.add-card button{grid-column:auto;min-height:48px}.bottom-bar{align-items:start;flex-direction:column;gap:0}}
/* --- Web app / iPhone --- */
html{-webkit-text-size-adjust:100%}
button,a,label,.pill,.tab{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.shell{padding-left:max(32px,env(safe-area-inset-left));padding-right:max(32px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom)}
header{min-height:80px;height:auto;padding-top:env(safe-area-inset-top)}
input,select,textarea{font-size:16px}
[hidden]{display:none!important}
.logout{border:0;background:transparent;color:#81867b;font-size:12px;text-decoration:underline;min-height:44px;padding:0 4px}
.login{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px max(18px,env(safe-area-inset-right)) 24px max(18px,env(safe-area-inset-left))}
.login-card{width:100%;max-width:380px;background:#fff;border:1px solid #e5e9e1;border-radius:16px;padding:30px 24px;box-shadow:0 8px 25px #283d2b0d;display:flex;flex-direction:column;gap:8px}
.login-card .brand-icon{width:44px;height:44px;font-size:26px;margin-bottom:6px}
.login-card h1{font-size:26px;letter-spacing:-.04em;margin:0}
.login-card p{margin:0 0 8px;color:#757e73;font-size:14px;line-height:1.5}
.login-card label{font-size:12px;font-weight:700;color:#526b56;margin-top:6px}
.login-card input{border:1px solid #d5ded1;border-radius:9px;padding:12px;height:50px;width:100%;min-width:0}
.login-card button{background:#406b4d;border:0;color:#fff;border-radius:9px;min-height:50px;font-weight:700;margin-top:10px}
.login-card button:disabled{opacity:.6}
#login-error{color:#a33b31;background:#fff1ea;border-radius:9px;padding:10px 12px;margin-top:6px}
@media(max-width:780px){.shell{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}}
@media(max-width:520px){header{min-height:64px}.header-note{display:none}.product-main input{width:28px;height:28px;flex-basis:28px}}
@media(display-mode:standalone){footer{padding-bottom:max(30px,env(safe-area-inset-bottom))}}
