:root{color:#332b63;background:#f4f2ff;font:1rem/1.5 system-ui,sans-serif}body{margin:0}main{box-sizing:border-box;max-width:46rem;margin:auto;padding:max(1.5rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(2rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left))}h1{color:#5144a3;font-size:clamp(2.4rem,8vw,3.8rem);margin:0 0 1rem;letter-spacing:-.05em}h2,h3{margin-top:0}nav,form{display:flex;gap:.75rem}nav{align-items:center;flex-wrap:wrap;margin-bottom:1rem}nav{gap:.4rem}nav button{flex:1 1 auto;padding-inline:.5rem}form{flex-direction:column}.card{background:#fff;border:1px solid #e2dcff;border-radius:1.25rem;padding:1.25rem;margin-bottom:1rem;overflow-wrap:anywhere}label{display:grid;gap:.35rem;font-weight:600}button,input,textarea,select{font:inherit;border-radius:.75rem;box-sizing:border-box}button,a{color:#5144a3}button{background:#5144a3;color:#fff;border:0;font-weight:650;min-height:44px;padding:.6rem 1rem;cursor:pointer}.secondary{color:#332b63;background:#e2dcff}button:disabled{opacity:.65;cursor:default}input,textarea,select{color:inherit;background:#faf9ff;border:1px solid #8679b3;padding:.6rem .75rem;width:100%}textarea{resize:vertical}:focus-visible{outline:3px solid #7d4594;outline-offset:3px}.section-title{margin-top:1.25rem}.controls{display:flex;flex-wrap:wrap;gap:.5rem}.controls>label{flex:1 1 7rem}.recipe-list,.shopping-list,.ingredients{list-style:none;padding:0}.recipe-row{width:100%;color:#332b63;text-align:left;display:grid;gap:.2rem}.recipe-row:hover{border-color:#8679b3}.muted{color:#665c8a}.ingredients li,.check-row{display:flex;align-items:center;gap:.75rem}.ingredients li{justify-content:space-between;padding:.4rem 0;border-bottom:1px solid #e2dcff}.servings{max-width:8rem}.check-row{min-height:44px}.check-row input{width:1.35rem;height:1.35rem;accent-color:#5144a3}.checked{text-decoration:line-through;color:#665c8a}.back{margin-bottom:1rem}[hidden]{display:none!important}:root{color-scheme:light;background:#f7f4ff}body{background:radial-gradient(ellipse at top right,#f8d9ea 0,transparent 26rem),#f7f4ff;min-height:100dvh}main{padding-bottom:max(7rem,calc(6rem + env(safe-area-inset-bottom)))}header{padding:.5rem 0 .85rem}h1{color:#443587;font-weight:850}p{overflow-wrap:anywhere}.tabbar{position:fixed;z-index:3;left:50%;bottom:max(.45rem,env(safe-area-inset-bottom));width:min(calc(100% - 1rem),32rem);box-sizing:border-box;transform:translate(-50%);margin:0;padding:.3rem;background:#fff;box-shadow:0 8px 36px #4635712b;border:1px solid #e6dcfc;border-radius:1.15rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.tabbar button{padding:.25rem .05rem;border-radius:.85rem;background:#fff;font-size:.79rem;display:grid;align-content:center;justify-items:center;min-height:52px}.tabbar button.active{background:#e8ddff;color:#443587}.tabbar button>span{font-size:1.22rem;line-height:1.15}.card{border-radius:1.35rem;box-shadow:0 5px 16px #3928670b}.library-intro{padding:1.2rem;background:#eee6ff;border-radius:1.4rem;margin-bottom:.85rem}.recipe-tools{margin-bottom:.9rem}.recipe-tools button{font-size:.9rem}button[aria-pressed=true]{background:#5144a3;color:#fff}.recipe-list{margin:0 0 1rem}.recipe-list.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:stretch}.recipe-list.grid li{min-width:0}.recipe-list.grid .recipe-row{height:100%;padding:.6rem .65rem .85rem;margin:0;align-content:start;gap:.35rem}.recipe-tile{display:grid;position:relative;place-items:center;background:#eadeff;aspect-ratio:1.55;border-radius:.9rem;overflow:hidden;color:#523e94}.recipe-tile:before{content:"";width:41%;aspect-ratio:1;background:#fff9;border-radius:50%;box-shadow:0 0 0 6px #fff5}.recipe-tile>span{position:absolute;font-size:clamp(1.25rem,5vw,2.2rem)}.grid li:nth-child(3n+2) .recipe-tile{background:#ffdcea;color:#8c3262}.grid li:nth-child(3n+3) .recipe-tile{background:#d9f3e7;color:#226b56}.pantry-result,.notice{padding:.65rem .75rem;background:#fff0cf;color:#574224;border-radius:.8rem}.pantry-result{font-size:.9rem}.recipe-photo{width:100%;max-height:20rem;object-fit:cover;border-radius:1rem;margin-bottom:.7rem}.recipe-actions{margin:.85rem 0 1rem}.recipe-meta{display:flex;flex-wrap:wrap;align-items:end;gap:1rem;margin-block:1rem}.tags{display:flex;flex-wrap:wrap;gap:.35rem;padding:0;list-style:none}.tags li{padding:.25rem .55rem;background:#f1e7ff;border-radius:1rem;font-size:.88rem}.notes{white-space:pre-wrap}summary{min-height:44px;align-content:center;cursor:pointer;font-weight:650}.import-photos{background:#fce8f1}.file-button{position:relative;overflow:hidden;display:inline-flex;align-items:center;width:fit-content;min-height:44px;padding:.3rem .85rem;color:#332b63;background:#e8dcff;border-radius:.8rem;cursor:pointer}.file-button:focus-within{outline:3px solid #7d4594;outline-offset:3px}.file-button:has(input:disabled){opacity:.65}.file-button input{position:absolute;inset:0;height:100%;width:100%;opacity:0;cursor:pointer}.cooking progress{width:100%;accent-color:#5144a3}.cook-step{font-size:clamp(1.35rem,5vw,2.15rem);font-weight:650;line-height:1.35}.timer{padding:1rem;background:#eee6ff;border-radius:1rem}.timer label{max-width:11rem}.clock{font:800 2.1rem/1.1 system-ui,sans-serif;font-variant-numeric:tabular-nums;margin:.8rem 0}@media(min-width:42rem){.recipe-list.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s,border-color .15s}}
