:root{--bg-frame: #ced2d0;--screen: #f3f5f4;--border-soft: #d8dddd;--text-main: #33486a;--muted-green: #89a79b;--active-green: #185c4a;--trash: #ff8f95}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Avenir Next,Segoe UI,sans-serif;background:linear-gradient(180deg,#d5d9d7,#cfd4d2)}#root{min-height:100vh}button,input{font-family:inherit}button{-webkit-tap-highlight-color:transparent}.app{min-height:100dvh;display:grid;place-items:center;padding:.6rem}.phone-shell{position:relative;width:min(100vw - 1.2rem,23rem);height:min(100dvh - 1.2rem,52rem);border-radius:2.25rem;border:3px solid #185c4a;background:var(--screen);padding:2rem 1.2rem 1.1rem;box-shadow:inset 0 0 0 1px #ffffffb3;display:flex;flex-direction:column;overflow:hidden}.tabs{display:flex;width:100%;border:2px solid var(--border-soft);border-radius:1.2rem;overflow:hidden;box-shadow:0 4px 8px #304a4224;background:#f5f6f6;position:sticky;top:0;z-index:20}.tab{border:none;flex:1;height:3.3rem;font-size:1rem;font-weight:800;letter-spacing:.04em;color:var(--muted-green);background:#f5f6f6;display:flex;align-items:center;justify-content:center;gap:0;cursor:pointer}.tab.active{background:var(--active-green);color:#f1f5f3;box-shadow:inset 0 0 0 1px #fff3}.tab-icon{width:1rem;height:1rem;display:inline-flex}.tab-icon svg{width:100%;height:100%}.content{flex:1;padding-top:.8rem;min-height:0;overflow-y:auto;overflow-x:hidden}.status-row{margin-top:.55rem;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.status-pill{border-radius:999px;border:1px solid #d5ddda;background:#eef2f0;color:#6f8780;font-size:.58rem;font-weight:700;padding:.2rem .48rem}.status-pill.online,.status-pill.ready{color:#1f6a56;border-color:#cde0d7;background:#e6f1ec}.status-pill.offline{color:#ac6f73;border-color:#e5c8cb;background:#f6ecec}.status-sync{color:#7f9590;font-size:.58rem;font-weight:600}.empty-state{height:100%;display:grid;place-content:center;gap:.9rem;color:#d8e1dc;text-align:center}.empty-icon{width:2.1rem;height:2.1rem;margin:0 auto}.empty-icon svg{width:100%;height:100%}.empty-state p{margin:0;font-size:1rem;font-weight:500;font-style:italic}.list{margin:0;padding:0;list-style:none;display:grid;gap:.7rem}.list-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:.45rem}.list-toolbar p{margin:0;color:#6f8d81;font-size:.68rem;font-weight:700}.clear-all-btn{border:1px solid #e4c8cc;background:#f9eff1;color:#b4636c;border-radius:999px;font-size:.64rem;font-weight:700;padding:.35rem .62rem}.category-header{margin-top:.4rem;margin-bottom:.1rem;color:#6f8d81;font-size:.62rem;letter-spacing:.06em;font-weight:800;text-transform:uppercase}.swipe-row{position:relative;min-height:4.5rem}.swipe-hints{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:1.2rem;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;pointer-events:none;font-size:.78rem;font-weight:700;letter-spacing:.01em}.swipe-right{color:#2d7765}.swipe-left{color:#d97d84}.list-item{min-height:4.5rem;border-radius:1.2rem;border:2px solid #e2e4e4;background:#f7f8f8;box-shadow:0 4px 10px #185c4a1f;display:flex;align-items:center;padding:0 1.2rem;touch-action:pan-y;-webkit-user-select:none;user-select:none;will-change:transform;transition:transform .22s ease,opacity .22s ease,background-color .2s ease,border-color .2s ease,box-shadow .22s ease}.list-item.done{background:#e7f1ec;border-color:#d4e4dc;box-shadow:0 3px 8px #25594814}.swipe-row.deleting .list-item{opacity:0;transform:translate(-130%) scale(.97)!important}.item-label{margin:0;font-size:1.05rem;font-weight:600;color:var(--text-main);display:inline-flex;align-items:baseline;gap:.38rem}.item-amount{color:#2a6a58;font-weight:700}.item-name{color:inherit}.item-label.done{color:#2d5f50}.item-main{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem}.item-stepper{display:inline-flex;align-items:center;gap:.35rem;margin-left:auto;flex-shrink:0}.stepper-btn{width:1.65rem;height:1.65rem;border-radius:.5rem;border:1px solid #cfe0d8;background:#ecf5f1;color:#1f6a56;font-size:1rem;font-weight:700;line-height:1;padding:0;display:inline-flex;align-items:center;justify-content:center}.recipes-content{display:flex;flex-direction:column;padding-top:.75rem;padding-bottom:.2rem}.recipe-draft{border-radius:1.2rem;border:2px solid #d8dddd;background:#f6f7f6;box-shadow:0 4px 10px #185c4a1f;padding:.95rem 1rem .9rem;margin-top:.65rem;margin-bottom:.25rem;position:sticky;bottom:.25rem;z-index:16}.recipe-draft-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.recipe-draft-head p{margin:0;color:#1f5e4d;font-size:1rem;font-style:italic;font-weight:600;letter-spacing:.01em}.recipe-draft-head button{border:none;background:transparent;color:#89a79b;font-size:1.3rem;line-height:1;padding:0}.recipe-draft-list{list-style:none;margin:.75rem 0 0;padding:0;display:grid;gap:.5rem}.recipe-draft-list li{border-radius:.85rem;background:#e9eeeb;padding:.6rem .7rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.recipe-draft-list li span{color:#2f5f51;font-size:.75rem;font-weight:700}.recipe-draft-list li button{border:none;background:transparent;color:#90a89f;font-size:1.1rem;line-height:1;padding:0}.recipe-draft-hint{margin:.7rem 0 0;color:#87a095;font-size:.72rem;font-weight:600}.recipe-list{list-style:none;margin:0;padding:0 0 .2rem;display:grid;gap:.85rem;align-content:start}.recipe-swipe-row{position:relative;min-height:4.25rem}.recipe-swipe-hints{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:1.2rem;display:flex;align-items:center;justify-content:space-between;padding:0 .95rem;pointer-events:none;font-size:.72rem;font-weight:700;opacity:0;transition:opacity .14s ease}.recipe-swipe-row.swiping .recipe-swipe-hints{opacity:1}.recipe-added-badge{position:absolute;right:.75rem;top:.55rem;z-index:3;border-radius:999px;background:#d8ebe3;color:#1f6a56;font-size:.48rem;font-weight:700;padding:.18rem .45rem;opacity:0;transform:translateY(-4px);pointer-events:none}.recipe-swipe-right{color:#2d7765}.recipe-swipe-left{color:#d97d84}.recipe-card{min-height:4.25rem;border-radius:1.2rem;border:2px solid #d8dddd;background:#f6f7f6;box-shadow:0 4px 10px #185c4a1f;padding:0 1rem;display:flex;align-items:center;touch-action:pan-y;-webkit-user-select:none;user-select:none;will-change:transform;transition:transform .22s ease,opacity .22s ease}.recipe-card-main{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.6rem}.recipe-swipe-row.added .recipe-added-badge{animation:recipe-added-badge .7s ease}.recipe-swipe-row.added .recipe-card{animation:recipe-added-card .7s ease}.recipe-name{margin:0;color:#1e5d4d;font-size:1rem;font-style:italic;font-weight:600;letter-spacing:.01em}.recipe-count-badge{min-width:1.5rem;height:1.5rem;border-radius:999px;border:1px solid #cde0d7;background:#e6f1ec;color:#1f6a56;font-size:.72rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 .35rem;line-height:1}.recipe-swipe-row.deleting .recipe-card{opacity:0;transform:translate(-130%) scale(.97)!important}@keyframes recipe-added-card{0%{background:#f6f7f6;border-color:#d8dddd;box-shadow:0 4px 10px #185c4a1f}40%{background:#e5f0ea;border-color:#cde0d7;box-shadow:0 5px 12px #2559481f}to{background:#f6f7f6;border-color:#d8dddd;box-shadow:0 4px 10px #185c4a1f}}@keyframes recipe-added-badge{0%{opacity:0;transform:translateY(-4px)}20%{opacity:1;transform:translateY(0)}75%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-3px)}}.composer{display:flex;align-items:center;gap:.95rem;margin-top:auto;padding-top:1rem;position:sticky;bottom:0;z-index:25;background:linear-gradient(to top,var(--screen) 82%,rgba(243,245,244,0))}.recipes-composer .input-wrap input::placeholder{color:#c4d2cb}.input-wrap{flex:1;height:3.8rem;border-radius:2rem;border:2px solid #d6dfdb;background:#f9fbfa;display:flex;align-items:center;padding:0 1.1rem;gap:.8rem;box-shadow:0 8px 16px #185c4a1f}.input-icon{width:1rem;height:1rem;color:var(--muted-green);flex-shrink:0}.input-icon svg{width:100%;height:100%}.input-wrap input{border:none;background:transparent;width:100%;outline:none;font-size:.95rem;color:var(--text-main);font-weight:600}.input-wrap input::placeholder{color:#cad4cf;opacity:1}.add-btn{width:3.9rem;height:3.9rem;border-radius:50%;border:2px solid rgba(0,0,0,.04);background:var(--active-green);color:#f4f8f6;font-size:2rem;font-weight:500;line-height:1;padding:0;cursor:pointer;box-shadow:0 8px 16px #14493c2e}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;background:#101e1a59;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:grid;place-items:center;padding:1rem}.modal-card{width:min(100%,18rem);border-radius:1rem;border:1px solid #d6dfdb;background:#f9fbfa;box-shadow:0 16px 30px #16463a2e;padding:1rem}.modal-card h3{margin:0;color:#1f5e4d;font-size:.95rem}.modal-card p{margin:.45rem 0 0;color:#7b9289;font-size:.74rem}.modal-actions{margin-top:.9rem;display:flex;justify-content:flex-end;gap:.5rem}.modal-btn{border-radius:.7rem;border:1px solid #d6dfdb;background:#eef2f0;color:#56716a;font-size:.68rem;font-weight:700;padding:.42rem .72rem}.modal-btn.danger{border-color:#dfbcc1;background:#f6e5e8;color:#b15a64}button:focus{outline:none}button:focus-visible,input:focus-visible{outline:2px solid rgba(24,92,74,.35);outline-offset:1px}@media (max-width: 430px){.phone-shell{width:100%;height:100dvh;border-radius:2rem;padding-inline:1rem}.tab{font-size:.78rem}.item-label,.input-wrap input,.empty-state p{font-size:.95rem}}
