:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243c3a;background:#faf8f1;--teal:#157f7a;--muted:#737b75;--line:#e1e5dc;--pale:#e7f1eb;--paper:#faf8f1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #51bbb5;outline-offset:3px}a{color:var(--teal)}svg{width:24px;height:24px;vertical-align:middle;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.brand{font-family:Georgia,serif;font-size:40px;letter-spacing:-1.4px;line-height:1.15;color:#136c68;font-weight:700}.subtitle{font-size:15px;color:#6d7872;margin-top:7px;letter-spacing:.15px}.shell{max-width:850px;margin:0 auto;padding:42px 30px 130px}.icon-btn{border:0;background:none;border-radius:50%;padding:10px;display:inline-grid;place-items:center;color:#43716b;min-height:44px;min-width:44px}.icon-btn:hover{background:#e7f0e9}.search{display:flex;align-items:center;border:1px solid #d9e0d9;border-radius:17px;background:#fff;padding:0 17px;gap:12px;box-shadow:0 2px 5px #143f3011}.search input{border:0;outline:none;background:none;padding:19px 0;width:100%;font-size:17px;color:#243c3a;min-width:0}.search svg{color:#6f8980}.shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 28px}.shortcut{border:1px solid #deebe3;background:var(--pale);padding:20px 18px;border-radius:13px;display:flex;align-items:center;gap:13px;text-align:left;font-size:19px;color:#315f59;min-height:74px}.shortcut:hover{background:#d6eae2}.shortcut.wide{grid-column:1/-1;justify-content:center}.shortcut svg{width:26px;height:26px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.6px}h2{font-size:23px;letter-spacing:-.4px}h3{font-size:18px}p{line-height:1.6} .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:25px 0 8px}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:var(--teal);font-size:11px;font-weight:700;margin-bottom:12px}.small,.hint{font-size:13px;color:var(--muted);line-height:1.6}.hint{margin:10px 0 22px}.recipe-row{display:flex;align-items:center;gap:15px;padding:22px 0;border-bottom:1px solid var(--line)}.row-main{border:0;background:none;display:flex;align-items:center;gap:17px;text-align:left;flex:1;padding:0;min-width:0}.thumb{width:76px;height:76px;flex:0 0 76px;border-radius:20px;background:#e5eee4;display:grid;place-items:center;color:#3a8275;overflow:hidden}.thumb svg{width:35px;height:35px;stroke-width:1.3}.thumb img{width:100%;height:100%;object-fit:cover}.tone1{background:#efe8d8;color:#a1784b}.tone2{background:#f0e3e1;color:#ac7468}.tone3{background:#e2edea;color:#477f7b}.row-title{font-size:19px;font-weight:650;line-height:1.25;color:#273e39}.row-meta{font-size:14px;color:#7b827b;margin-top:7px;line-height:1.4}.row-actions{display:flex;gap:0;align-items:center}.row-actions .icon-btn{padding:8px;min-width:35px}.favorited svg{fill:#bde2d5;stroke:#16776f}.nav{position:fixed;bottom:0;left:0;right:0;background:#faf8f1f5;backdrop-filter:blur(18px);z-index:10;border-top:1px solid #dce3da;padding:12px max(20px,calc((100vw - 800px)/2)) max(12px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:10px}.nav button{background:none;border:0;color:#7c8780;display:flex;align-items:center;flex-direction:column;gap:6px;font-size:12px;min-width:48px;padding:6px 9px;position:relative;border-radius:12px}.nav button.active{color:#086f69;background:#e3efea}.nav svg{width:25px;height:25px}.badge{position:absolute;top:-2px;right:4px;background:var(--teal);color:#fff;border-radius:10px;padding:1px 5px;font-size:10px}.btn{border:1px solid #d5e3d9;border-radius:12px;background:#e9f1eb;padding:12px 16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:14px;min-height:44px}.primary{background:var(--teal);border-color:var(--teal);color:white}.danger{color:#a13f3c;border-color:#e2c6bd;background:#fff4ee}.buttons{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #d8e6dc;background:#edf3ed;padding:6px 11px;border-radius:20px;color:#43746a;font-size:12px;margin:3px 4px 3px 0}.pill.selected{background:#157f7a;color:white}.empty{text-align:center;padding:55px 20px;color:#77837a}.empty svg{width:42px;height:42px;color:#74a89a;margin-bottom:16px}.empty h3{color:#3c625a;margin-bottom:9px}.empty p{font-size:14px;max-width:360px;margin:auto}.card{background:#fffdf7;border:1px solid #e1e6dd;border-radius:18px;padding:22px;margin:18px 0}.card h3{margin-bottom:9px}label.field{display:block;font-size:13px;color:#5b766c;font-weight:650;margin-bottom:17px}input:not([type=checkbox]),textarea,select{font-size:16px}label.field input,label.field textarea,label.field select{display:block;width:100%;margin-top:7px;padding:12px;border-radius:10px;background:#fffefa;border:1px solid #ccdcd1;color:#2d453d;font-weight:400}textarea{resize:vertical;line-height:1.5}input[type=checkbox]{width:21px;height:21px;accent-color:var(--teal);flex-shrink:0}.check-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #e5e9de;font-size:16px;line-height:1.6;cursor:pointer}.check-row input{margin-top:3px}.checked span{text-decoration:line-through;color:#89938a}.steps{counter-reset:step;list-style:none;padding:0}.steps li{counter-increment:step;display:flex;gap:15px;line-height:1.7;padding:13px 0;font-size:16px}.steps li:before{content:counter(step);display:grid;place-items:center;background:#e5efe6;border-radius:50%;height:28px;min-width:28px;color:var(--teal);font-size:13px;margin-top:1px}.detail-photo{max-height:300px;width:100%;object-fit:contain;background:#e6eee5;border-radius:15px;margin:18px 0}.note{border-left:3px solid #79b9a7;padding:12px 16px;background:#eff4e9;white-space:pre-line;font-size:14px;line-height:1.6}.detail-section{margin:30px 0}.detail-section h2{margin-bottom:12px}.detail-title{font-family:Georgia,serif;font-size:33px;line-height:1.15;letter-spacing:-.8px}.source{font-size:12px;color:#7b877e;margin-top:24px}.auth{min-height:100svh;display:grid;place-items:center;padding:28px}.auth-card{max-width:390px;width:100%}.auth-logo{height:62px;width:62px;margin-bottom:28px}.auth .brand{font-size:46px}.auth form{margin-top:30px}.auth .btn{width:100%}.auth .subtitle{line-height:1.6}.error{color:#a4453c;font-size:14px;margin-top:12px}.status{min-height:100svh;display:grid;place-content:center;text-align:center;gap:20px}dialog{border:1px solid #d8e1d6;background:var(--paper);color:inherit;border-radius:22px;padding:26px;max-width:610px;width:calc(100% - 28px);max-height:88svh;overflow:auto}dialog::backdrop{background:#153c3659;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.close{position:sticky;top:0;background:var(--paper)}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#244d43;color:white;border-radius:12px;padding:13px 20px;z-index:30;font-size:14px;max-width:90vw;box-shadow:0 6px 24px #19382c22;display:none}.filter-line{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.cart-source{display:block;font-size:12px;color:#819086;margin-top:3px}.key{overflow-wrap:anywhere;user-select:all;background:#e8f0e7;padding:15px;border-radius:10px;font-family:monospace;font-size:13px}.version{text-align:center;color:#879188;font-size:11px;margin-top:30px}.tag-group{margin:20px 0}.tag-group h3{margin-bottom:9px}.table-item{display:flex;align-items:center;gap:14px}.table-item .row-main{flex:1}.cook-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.app-footer{padding-top:24px;font-size:12px;letter-spacing:.3px;color:#8b958b}.back{margin:-8px 0 18px -10px}.link-btn{background:none;border:0;color:var(--teal);padding:8px;font-size:13px}.wide-btn{width:100%}.busy{pointer-events:none;opacity:.6}@media(max-width:540px){.shell{padding:28px 21px 125px}.brand{font-size:36px}.subtitle{font-size:14px}.shortcut{font-size:17px;padding:16px 14px;min-height:68px}.shortcuts{gap:10px;margin-bottom:27px}.thumb{width:65px;height:65px;flex-basis:65px;border-radius:17px}.row-main{gap:13px}.row-title{font-size:17px}.row-meta{font-size:12px}.recipe-row{gap:4px;padding:20px 0}.row-actions .icon-btn{min-width:32px;padding:5px}.row-actions svg{width:21px;height:21px}.section-head h2{font-size:21px}.nav{gap:3px;padding-left:14px;padding-right:14px}.nav button{font-size:11px}.detail-title{font-size:30px}.card{padding:18px}.buttons .btn{flex-grow:1}}@media print{header,.nav,.back,.buttons,.icon-btn,.app-footer,#toast,.source+button{display:none!important}.shell{max-width:none;padding:0}.check-row{border:0;padding:5px 0}.steps li{padding:5px 0}.detail-section{margin:20px 0}body{background:white}.note{break-inside:avoid}}

.table-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0}.table-controls .btn{padding:10px 12px}.table-tabs{display:flex;gap:5px;overflow-x:auto;padding:4px 0 10px}.table-tabs .pill{flex-shrink:0;max-width:250px;white-space:normal;text-align:left}.table-swipe{touch-action:pan-y;scroll-margin-top:20px}.table-controls button:disabled,#clear-table:disabled{cursor:default}.table-swipe .cook-panel{user-select:text}

.label-filter{cursor:pointer;min-height:36px;font-size:13px;transition:background .15s,border-color .15s}.label-filter:hover,.label-filter:active{background:#d3e9df;border-color:#6ea99b;color:#145f57}.label-filter:focus-visible{outline:3px solid #51bbb5;outline-offset:2px}.shopping-action{font-weight:700;font-size:15px;min-height:46px;padding:11px 14px;box-shadow:0 3px 8px #157f7a20;white-space:nowrap}.shopping-action:hover{background:#116e69}.detail-section .section-head{flex-wrap:wrap;gap:12px}.recipe-labels{margin:12px 0}@media print{.shopping-action{display:none!important}.label-filter{border:0;padding:0 8px 0 0;background:none}}
