:root{--cream:#fbf7ef;--paper:#fffefa;--white:#fff;--orange:#fa8827;--orange-dark:#b44c11;--orange-light:#fff0d8;--green:#27854b;--green-dark:#20683b;--green-light:#edf5df;--ink:#282721;--muted:#8a857c;--line:#eeeae2;--shadow:0 5px 18px #41342608;--radius:20px;--nav-h:74px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-synthesis:none;color:var(--ink);background:#eee5d9;font-size:15px;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c86623;outline-offset:3px}input,select,textarea{min-width:0;background:white;border:1px solid #e4e6e1;border-radius:10px;padding:11px 12px;color:var(--ink);outline-offset:2px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);padding:0;flex-shrink:0}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button{appearance:none}textarea{resize:vertical;line-height:1.7}input::placeholder,textarea::placeholder{color:#a9aaa5}label{cursor:pointer}small{font-size:12px}svg.icon{width:18px;height:18px;display:inline-block;fill:currentColor;flex-shrink:0;vertical-align:-.1em}.icon-lg{width:26px!important;height:26px!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button .icon+span{margin-left:7px}.muted{color:var(--muted)}.subtle{font-size:12px;color:var(--muted);line-height:1.7}.section-title{font-size:17px;font-weight:750;letter-spacing:.1px}.row{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:12px}.flex1{flex:1}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#eeeae155}.link-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 0;font-size:13px;font-weight:600;color:var(--muted);min-height:42px}.link-button:hover{color:var(--orange-dark)}.button{min-height:46px;padding:12px 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;font-weight:650;font-size:14px;transition:background .15s,transform .15s}.button .icon+span{margin:0}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.orange{background:var(--orange);color:#fff}.button.ghost{background:#f1f3ed;color:#626a5e}.button.outline{background:white;border:1px solid #e3e7e0}.button.danger{background:#c94738;color:white}.full{width:100%}.tag{display:inline-flex;gap:6px;align-items:center;padding:6px 9px;border-radius:8px;background:#f6f5f1;font-size:11px;color:#777467;white-space:nowrap}.tag .icon{width:12px;height:12px}.tag.green{color:#4b793f;background:#f0f6e7}.tag.orange{color:#a46938;background:#fbf0df}.tag.status{font-size:12px;border-radius:6px;color:#388b5c;background:#eaf7ef}.tag.draft{color:#ac7a30;background:#fff4df}.pill{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:22px;border:1px solid #ece7de;white-space:nowrap;font-size:13px;min-height:36px;background:#fffefa}.pill.active{background:var(--orange-light);border-color:#ffe0b8;color:var(--orange-dark);font-weight:650}.pill .icon{width:13px;height:13px}.chips{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}.chips::-webkit-scrollbar{display:none}.count-dot{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;background:var(--green);color:#fff;border-radius:50%;font-size:11px;margin-left:4px}.empty-state{text-align:center;padding:55px 24px;color:var(--muted)}.empty-state>.icon{width:40px;height:40px;color:#bab7a6;margin-bottom:20px}.empty-state h3{font-size:18px;font-weight:650;color:var(--ink);margin-bottom:10px}.empty-state p{font-size:13px;line-height:1.8;margin-bottom:22px}.loading-screen{display:grid;place-items:center;min-height:70vh;color:#a28a68;font-size:14px}.error-card{padding:40px 24px;text-align:center}.error-card p{margin:15px 0 25px;line-height:1.8;color:var(--muted)}
/* Mobile-first app; the website does not imitate browser/device chrome. */
#app.mobile{width:100%;max-width:440px;margin:0 auto;background:var(--paper);min-height:100dvh;position:relative;box-shadow:0 20px 80px #3d271314}.mobile-main{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);min-height:100dvh}.mobile-main.no-nav{padding-bottom:108px}.mobile-main.home{background:var(--cream);padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.topbar{height:62px;padding:9px 13px;display:grid;grid-template-columns:70px 1fr 70px;align-items:center;background:var(--paper);position:sticky;top:0;z-index:5}.topbar h2{font-size:15px;text-align:center;font-weight:650;white-space:nowrap}.topbar-right{justify-self:end}.topbar .link-button{font-size:12px;white-space:nowrap}.topbar .link-button .icon{width:13px;height:13px}.bottom-nav{position:fixed;z-index:12;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;display:flex;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:10px 12px calc(8px + env(safe-area-inset-bottom));background:#fffefbf5;border-top:1px solid #f0ece3;backdrop-filter:blur(16px)}.bottom-nav button{width:33.333%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:11px;color:#aaa69d;position:relative}.bottom-nav button>.icon{width:19px;height:19px}.bottom-nav button.active{color:#e67722;font-weight:650}.bottom-nav .nav-count{position:absolute;top:-1px;margin-left:28px;font-size:9px;color:#fff;background:var(--green);border-radius:10px;min-width:14px;padding:1px 4px}.home-brand{padding:27px 20px 20px;text-align:center}.brand-lockup{display:flex;align-items:center;gap:9px;justify-content:center}.brand-lockup img{width:48px;height:42px;object-fit:contain;mix-blend-mode:multiply}.brand-lockup h1{font-size:33px;font-weight:850;letter-spacing:-1.1px;line-height:1.3;color:#201d17}.home-brand p{margin-top:12px;font-size:14px;line-height:1.8;letter-spacing:1.1px;color:#ae8c6c}.home-visual{position:relative;height:clamp(230px,35svh,309px);overflow:hidden;border-radius:0 0 24px 24px}.home-visual>img{width:100%;height:100%;object-position:center 57%}.hero-caption{position:absolute;bottom:16px;left:20px;border-radius:20px;color:#6b553c;padding:8px 12px;font-size:11px;background:#fffdf2e8;box-shadow:0 2px 8px #38251a10}.hero-caption .icon{width:12px;height:12px;margin-right:5px;color:#e57a27}.home-actions{padding:22px 23px 10px;display:flex;flex-direction:column;gap:12px}.decision-button{width:100%;min-height:91px;border-radius:48px;display:flex;align-items:center;justify-content:center;gap:22px;border:1.5px solid white;box-shadow:0 5px 16px #b2762310;transition:background .18s}.decision-button>.icon{width:32px;height:32px}.decision-button strong{display:block;font-size:21px;letter-spacing:1.4px;font-weight:760}.decision-button small{display:block;margin-top:6px;font-size:12px;letter-spacing:.7px;font-weight:400}.decision-button.random{background:var(--orange);color:white}.decision-button.random:hover{background:#f57a18}.decision-button.choose{background:#ffedcf;color:#563619;min-height:88px}.decision-button.choose>.icon{color:#ab4e12}.decision-button.choose small{color:#90724d}.home-preferences{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 20px 17px;color:#a1937e;font-size:11px}.home-preferences button{font-size:11px;min-height:34px;padding:5px 9px}.home-preferences .icon{width:11px;height:11px;margin-right:5px}.home-preferences .sep{color:#ccc2b2}.home-preferences .down-icon{width:8px;margin:0 0 0 5px}.home-note{text-align:center;font-size:10px;color:#b8ac98;margin-top:0;padding-bottom:12px}
/* Recipes, recommendation, and preparation list. */
.content-pad{padding:10px 19px 22px}.page-heading{padding:12px 3px 21px}.page-heading h1{font-size:26px;line-height:1.5;letter-spacing:-.6px;font-weight:750}.page-heading p{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.6}.choices-intro{text-align:center;padding:6px 0 20px}.choices-intro h1{font-size:19px;font-weight:700}.choices-intro p{font-size:12px;color:var(--muted);margin-top:8px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding-top:10px}.recipe-card{background:white;border:1px solid #efede7;border-radius:14px;box-shadow:var(--shadow);overflow:hidden;position:relative;text-align:left;transition:transform .15s,box-shadow .15s;min-width:0}.recipe-card:hover{box-shadow:0 6px 16px #674b1510;transform:translateY(-2px)}.recipe-cover{width:100%;aspect-ratio:1.17;object-fit:cover}.recipe-card-main{display:block;width:100%;padding:0;text-align:left}.recipe-card-info{padding:12px 11px 13px}.recipe-card h3{font-size:14px;line-height:1.5;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:15px}.recipe-card p{font-size:11px;color:var(--muted);margin-top:6px;display:flex;align-items:center;gap:5px}.recipe-card p .icon{width:10px;height:10px}.recipe-card .quick-add{position:absolute;right:5px;bottom:13px;width:34px;height:34px;color:#a5a396;border-radius:50%;display:grid;place-items:center}.quick-add .icon{width:13px;height:13px}.quick-add.selected{color:var(--green);background:#f0f6e7}.selected-ribbon{position:absolute;top:8px;left:8px;padding:5px 7px;font-size:10px;color:#fff;background:#2c794de6;border-radius:7px;pointer-events:none}.recipe-fallback{display:flex;align-items:center;justify-content:center;background:#eeeade;color:#a9a38e;aspect-ratio:1.17;width:100%}.recipe-fallback .icon{width:34px;height:34px}.search-box{display:flex;align-items:center;gap:10px;padding:0 12px;height:43px;border:1px solid #e9e7e0;border-radius:12px;background:white;margin-bottom:15px}.search-box .icon{width:14px;height:14px;color:#aaa79f}.search-box input{width:100%;border:0;padding:9px 0;outline-offset:0;font-size:13px;background:none}.result-count{font-size:11px;color:#989488;margin-top:4px}.recommend-intro{text-align:center;padding:8px 20px 17px}.recommend-sticker{display:inline-flex;align-items:center;gap:7px;background:#eaf2d5;color:#568231;padding:8px 19px;border-radius:24px;font-size:14px;font-weight:650;letter-spacing:.5px}.recommend-sticker .icon{width:12px;height:12px}.recommend-intro h1{font-size:26px;margin-top:13px;font-weight:780;letter-spacing:-.7px}.recommend-intro p{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}.feature-image{width:100%;aspect-ratio:1.28;object-fit:cover;border-radius:18px}.detail-meta{display:flex;flex-wrap:wrap;gap:7px;padding:13px 0 15px}.recommend .detail-meta{justify-content:space-between;gap:4px}.recipe-panel{background:white;border:1px solid #f0eee8;border-radius:17px;padding:15px 15px 8px;box-shadow:0 3px 12px #735a3604}.recipe-panel.recommend-panel{padding:5px 0 0;border:0;background:none;box-shadow:none;margin-top:5px}.ingredient-header{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px}.ingredient-header h3{font-size:15px;font-weight:700}.copy-button{display:inline-flex;align-items:center;gap:6px;min-height:35px;padding:8px 10px;background:#fbf0df;border-radius:10px;color:#93642d;font-size:11px;font-weight:600;white-space:nowrap}.copy-button:hover{background:#f9e5c4}.copy-button .icon{width:12px;height:12px}.portion-control{display:flex;align-items:center;gap:11px;font-size:12px;color:#848072;justify-content:space-between;margin-bottom:10px}.stepper{display:inline-flex;align-items:center;gap:12px;background:#f7f7f2;padding:3px;border-radius:12px;white-space:nowrap}.stepper button{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;color:#867e6a}.stepper button:not(:disabled):hover{background:white}.stepper button .icon{width:10px;height:10px}.stepper span{font-size:13px;color:#534e43;min-width:34px;text-align:center}.ingredients{display:flex;flex-direction:column;gap:0}.ingredient-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:39px;border-bottom:1px solid #f3f1eb;font-size:13px;padding:8px 0}.ingredient-row:last-child{border:0}.ingredient-row label{display:flex;align-items:center;gap:10px;min-height:23px;flex:1}.ingredient-row input{margin:0}.ingredient-row .quantity{color:#989387;font-size:12px;white-space:nowrap}.ingredient-row.checked .ingredient-name{text-decoration:line-through;color:#b2ada4}.ingredient-row.checked .quantity{color:#b7b3aa}.ingredient-group-label{font-size:11px;color:#999383;margin:16px 0 4px;letter-spacing:.4px}.recipe-tip{font-size:11px;color:#9a9589;line-height:1.8;margin:14px 1px 4px}.fixed-cta{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;padding:12px 20px calc(16px + env(safe-area-inset-bottom));background:#fffefaee;border-top:1px solid #eeeae180;backdrop-filter:blur(16px)}.fixed-cta .button{border-radius:28px;min-height:48px;font-size:14px;width:100%}.detail-cover{width:100%;aspect-ratio:1.45;object-fit:cover}.detail-heading{padding:19px 22px 6px}.detail-heading h1{font-size:25px;font-weight:780;letter-spacing:-.5px}.detail-heading .detail-meta{padding:12px 0}.detail-heading>p{font-size:12px;line-height:1.85;color:var(--muted)}.detail-body{padding:17px 19px 20px;background:#fbfaf5;margin-top:12px;min-height:300px}.recipe-tabs{display:flex;align-items:center;gap:4px;margin-bottom:16px}.recipe-tabs button{width:33.333%;min-height:43px;border-radius:11px;font-size:13px;color:#939085}.recipe-tabs button.active{color:var(--orange-dark);background:#fff;font-weight:700;box-shadow:0 3px 12px #77502008}.step-list{list-style:none;padding:0;margin:0;counter-reset:steps}.step-list li{display:flex;gap:13px;align-items:flex-start;padding:17px 3px;border-bottom:1px solid #eeece3}.step-list li:last-child{border:0}.step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f5eedc;color:#9c794b;font-size:12px;font-weight:700}.step-list p{font-size:13px;line-height:1.95;color:#6c695f;flex:1}.tips-content{padding:9px 3px 16px;font-size:13px;line-height:2;color:#797263;white-space:pre-line}.prep-heading{padding:24px 22px 18px}.prep-heading h1{font-size:26px;font-weight:780;letter-spacing:-.5px}.prep-heading p{font-size:12px;color:var(--muted);margin-top:8px}.menu-card{display:flex;align-items:center;gap:12px;background:white;border:1px solid #eeece4;border-radius:13px;padding:9px;margin-bottom:10px}.menu-card img{width:56px;height:52px;border-radius:9px}.menu-card h3{font-size:13px;font-weight:650}.menu-card p{font-size:11px;color:var(--muted);margin-top:7px}.menu-card .icon-button{color:#aaa79c;width:35px}.menu-card .icon-button .icon{width:13px;height:13px}.prep-progress{font-size:11px;color:var(--green);background:#f0f6e8;padding:10px 12px;border-radius:10px;margin:12px 0}.prep-copy{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));width:100%;max-width:440px;background:#fffefaf0;backdrop-filter:blur(12px);padding:10px 20px 12px;z-index:10;border-top:1px solid #f1ede5}.prep-copy .button{width:100%;border-radius:26px}.prep-page{padding-bottom:165px}.library-footer{text-align:center;margin-top:30px;padding-bottom:8px}.library-footer .link-button{font-size:11px;color:#a8a295}.demo-hint{font-size:10px;color:#9f9179;background:#f8f0df;padding:8px 12px;border-radius:8px;line-height:1.8;text-align:center;margin:12px 0}
/* Admin: only recipe and category management. */
#app.admin{background:#f6f8f5;min-height:100dvh}.admin-shell{display:grid;grid-template-columns:206px 1fr;min-height:100dvh}.admin-sidebar{padding:27px 18px 20px;background:#fcfdfb;border-right:1px solid #e8ede5;position:fixed;inset:0 auto 0 0;width:206px;display:flex;flex-direction:column;gap:23px}.admin-brand{display:flex;align-items:center;gap:8px;padding:0 8px}.admin-brand img{width:34px;height:34px;object-fit:contain;mix-blend-mode:multiply}.admin-brand strong{font-size:16px;letter-spacing:-.4px}.admin-brand small{display:block;font-size:10px;font-weight:400;color:#919c8c;letter-spacing:2px;margin-top:4px}.admin-nav{display:flex;flex-direction:column;gap:7px}.admin-nav button{min-height:45px;padding:11px 15px;text-align:left;display:flex;align-items:center;gap:10px;font-size:13px;border-radius:9px;color:#798774}.admin-nav button .icon{width:15px;height:15px}.admin-nav button.active{background:#e8f1e7;color:#34774a;font-weight:650}.admin-sidebar-bottom{margin-top:auto;padding:0 9px;font-size:11px;line-height:1.9;color:#a6afa0}.admin-sidebar-bottom button{padding:8px 0;color:#6f8266;font-size:12px}.admin-content{grid-column:2;padding:35px 34px;min-width:0}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.admin-header h1{font-size:26px;font-weight:750;letter-spacing:-.5px}.admin-header p{font-size:12px;color:#98a18f;margin-top:8px}.admin-actions{display:flex;align-items:center;gap:10px}.admin-actions .link-button{font-size:12px}.admin-columns{display:grid;grid-template-columns:minmax(0,1fr) 224px;gap:20px;align-items:start}.admin-card{background:#fff;border:1px solid #e6ece3;border-radius:15px;overflow:hidden;box-shadow:0 4px 18px #42583404}.admin-toolbar{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid #edf0e9;flex-wrap:wrap}.admin-toolbar .search-box{flex:1;min-width:150px;margin:0;height:38px;border-radius:8px}.admin-toolbar select{font-size:12px;min-height:38px;padding:8px;max-width:125px;border-radius:8px;color:#7c8575}.admin-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}.admin-table th{background:#fafbf8;font-size:11px;color:#8b9383;font-weight:500;padding:13px 15px;border-bottom:1px solid #edf0e9}.admin-table td{padding:15px;border-bottom:1px solid #f0f2ed;font-size:12px;color:#7c8476}.admin-table tr:last-child td{border:0}.admin-table tr:hover td{background:#fdfefa}.admin-table th:first-child{width:37%}.admin-table th:last-child{width:135px}.admin-table th:nth-child(2){width:19%}.admin-table th:nth-child(3){width:12%}.table-recipe{display:flex;align-items:center;gap:12px;min-width:0}.table-recipe img,.table-recipe .recipe-fallback{width:65px;height:53px;border-radius:8px;flex-shrink:0}.table-recipe strong{font-size:13px;color:#394234;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-recipe small{color:#a3aa9b;font-size:10px;display:block;margin-top:6px}.row-actions{display:flex;align-items:center;gap:5px;justify-content:flex-end}.row-actions button{min-width:30px;height:33px;border-radius:7px;display:grid;place-items:center;color:#7d9970}.row-actions .icon{width:12px;height:12px}.row-actions button:hover{background:#eef5e9}.row-actions button[data-action=delete-recipe]{color:#c88071}.row-actions button[data-action=delete-recipe]:hover{background:#fff0eb}.table-footer{padding:14px 18px;color:#a4ac9b;font-size:11px;border-top:1px solid #f1f3ed}.admin-category-header{padding:19px 17px 14px;display:flex;align-items:center;justify-content:space-between}.admin-category-header h3{font-size:14px;font-weight:650}.admin-category-header .icon-button{width:26px;height:26px;border-radius:7px;background:#edf5e8;color:#668859}.admin-category-header .icon-button .icon{width:11px;height:11px}.category-summary{padding:0 10px 15px}.category-summary button{display:flex;justify-content:space-between;align-items:center;min-height:41px;width:100%;text-align:left;padding:10px;border-radius:7px;color:#85917c;font-size:12px}.category-summary button.active{background:#f0f5eb;color:#547249;font-weight:600}.category-summary span.count{font-size:10px;color:#a5b19b}.side-note{font-size:11px;line-height:1.9;padding:0 17px 20px;color:#a3ad9a}.category-list{padding:0 22px}.category-admin-row{display:flex;justify-content:space-between;align-items:center;min-height:76px;gap:12px;border-bottom:1px solid #eff2ec}.category-admin-row:last-child{border:0}.category-admin-row strong{font-size:14px}.category-admin-row p{font-size:11px;color:#a2aa99;margin-top:5px}.category-admin-row .row-actions{gap:7px}.category-admin-row .row-actions button{padding:8px 12px;width:auto;font-size:12px;display:inline-flex;gap:6px}.category-admin-row .row-actions button:last-child{color:#b1786b}.admin-empty{padding:60px 20px;text-align:center;color:#a4ad9b;font-size:13px}.admin-mobile-title{display:none}.login-wrap{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:#f1f3eb}.login-card{max-width:370px;width:100%;padding:35px 28px;background:#fffefb;border:1px solid #e5e9dd;border-radius:22px;box-shadow:0 20px 70px #31451f08}.login-logo img{width:48px;height:45px;object-fit:contain;margin:0 auto 16px}.login-card h1{font-size:22px;text-align:center;margin-bottom:8px}.login-card>p{text-align:center;font-size:12px;color:#9a9f90;line-height:1.8;margin-bottom:24px}.login-card label{display:block;font-size:12px;color:#7d8574;margin-bottom:8px}.login-card input{width:100%;margin-bottom:17px}.login-card .link-button{display:flex;margin:14px auto 0}.login-help{font-size:11px;line-height:1.8;color:#aaa996;margin:15px 0 0}.form-error{color:#b64f37;font-size:12px;line-height:1.7;margin:5px 0 12px;min-height:0}.form-error:empty{display:none}
/* Accessible native dialogs provide focus trapping and keyboard dismissal. */
dialog{border:0;padding:0;border-radius:22px;background:var(--paper);color:var(--ink);max-width:min(92vw,460px);width:100%;max-height:88dvh;box-shadow:0 24px 100px #1f18082e;overflow:auto}dialog::backdrop{background:#28251d66;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 23px 10px;position:sticky;top:0;background:var(--paper);z-index:2}.dialog-header h2{font-size:19px;font-weight:720}.dialog-header .icon-button{color:#9b978c;min-width:36px;width:36px;height:36px}.dialog-header .icon{width:15px;height:15px}.dialog-body{padding:10px 23px 23px}.dialog-body>p{font-size:13px;line-height:1.9;color:#898478;margin-bottom:18px}.dialog-footer{display:flex;gap:12px;padding:15px 23px 22px;background:var(--paper);border-top:1px solid #eeece4;position:sticky;bottom:0;z-index:2}.dialog-footer .button{flex:1}.pref-title{font-size:13px;color:#8c8577;margin:18px 0 13px}.pref-chips{display:flex;flex-wrap:wrap;gap:9px}.pref-stepper{justify-content:center;display:flex;padding:14px 0}.pref-stepper .stepper{gap:24px}.pref-stepper .stepper button{width:42px;height:38px}.pref-stepper .stepper span{font-size:16px}.copy-text{width:100%;min-height:230px;font-size:13px;line-height:1.9}.confirm-copy{background:#f2f5eb;padding:12px;border-radius:10px}.editor-dialog{max-width:min(94vw,820px);width:100%;border-radius:19px}.editor-form .dialog-body{padding-top:15px}.form-grid{display:grid;grid-template-columns:200px 1fr;gap:22px}.cover-upload{border:1px dashed #c9d3c0;border-radius:13px;background:#f5f8ee;aspect-ratio:1.22;overflow:hidden;cursor:pointer;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:#91a47f;font-size:12px}.cover-upload img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.cover-upload .cover-change{position:absolute;bottom:0;width:100%;text-align:center;padding:8px;background:#ffffffda;color:#5e7850;font-size:11px}.cover-upload>.icon{width:27px;height:27px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:15px}.field>span,.field>label{font-size:12px;color:#727a66}.field input,.field textarea,.field select{width:100%;font-size:13px}.field label:has(input[type=checkbox]){display:flex;gap:7px;align-items:center;font-size:12px}.field label input[type=checkbox]{width:16px;height:16px}.form-row{display:flex;gap:12px}.form-row>.field{flex:1;min-width:0}.form-section{border-top:1px solid #edf0e7;margin-top:22px;padding-top:20px}.form-section h3{font-size:14px}.form-section>p{font-size:11px;color:#a0a693;margin:8px 0 14px}.category-select{display:flex;flex-wrap:wrap;gap:9px}.category-select label{display:flex;align-items:center;gap:5px;border:1px solid #e5e9dc;border-radius:9px;padding:7px 9px;font-size:12px;color:#7f8972;background:#fff}.category-select input{width:14px;height:14px;accent-color:var(--green)}.ingredient-form-row{display:grid;grid-template-columns:minmax(90px,2fr) minmax(50px,1fr) minmax(50px,1fr) 72px 28px;gap:7px;margin-bottom:9px;align-items:center}.ingredient-form-row input,.ingredient-form-row select{width:100%;padding:9px 8px;font-size:12px;border-radius:8px;min-height:37px}.ingredient-form-row .icon-button{width:28px;height:35px;color:#baa68e}.ingredient-form-row .icon{width:12px;height:12px}.form-section .link-button{color:#679150;font-size:12px}.steps-input{width:100%;min-height:145px;font-size:13px;line-height:1.9}.editor-footer-left{font-size:11px;color:#a0a594;flex:1;align-self:center}.editor-dialog .dialog-footer .button{flex:0 1 auto;min-width:105px}.editor-dialog .dialog-footer .editor-footer-left{display:block}.inline-info{font-size:11px;color:#a0a693;line-height:1.8;margin-top:8px}.save-status{font-size:12px;color:#698b50}.hidden{display:none!important}#toast{position:fixed;z-index:100;left:50%;bottom:110px;transform:translate(-50%,20px);background:#343d2ef2;color:#fff;padding:13px 20px;border-radius:13px;font-size:13px;line-height:1.65;max-width:min(90vw,440px);width:max-content;text-align:center;box-shadow:0 8px 35px #19271024;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){#app.mobile{margin:24px auto;min-height:calc(100dvh - 48px);border-radius:28px;overflow:clip}.mobile-main{min-height:calc(100dvh - 48px)}.bottom-nav,.fixed-cta,.prep-copy{bottom:24px;border-radius:0 0 28px 28px}.prep-copy{bottom:98px;border-radius:0}.topbar{top:0}.home-visual{height:309px}.home-brand{padding-top:31px;padding-bottom:23px}.home-actions{padding-top:25px}.home-preferences{padding-bottom:12px}}
@media(min-width:1550px){.admin-content{padding-left:48px;padding-right:48px}.admin-columns{grid-template-columns:minmax(0,1fr) 254px}}
@media(max-width:1150px){.admin-columns{grid-template-columns:minmax(0,1fr)}.admin-side-categories{display:none}.admin-content{padding:26px 23px}.admin-shell{grid-template-columns:175px 1fr}.admin-sidebar{width:175px;padding-left:10px;padding-right:10px}.admin-brand strong{font-size:14px}}
@media(max-width:780px){.admin-shell{display:block}.admin-sidebar{position:sticky;top:0;z-index:6;width:100%;height:auto;padding:13px 17px 9px;gap:13px;border-right:0;border-bottom:1px solid #e5ecdf;background:#fcfdfbfa;backdrop-filter:blur(12px)}.admin-brand{padding:0;justify-content:flex-start}.admin-brand img{width:30px;height:29px}.admin-brand strong{font-size:15px}.admin-brand small{display:inline-block;letter-spacing:1px;margin-left:8px;font-size:10px}.admin-nav{flex-direction:row;gap:8px}.admin-nav button{flex:1;justify-content:center;min-height:38px;font-size:12px;padding:8px}.admin-sidebar-bottom{display:none}.admin-content{padding:22px 15px}.admin-header{margin-bottom:21px;align-items:flex-start}.admin-header h1{font-size:22px}.admin-header p{font-size:11px}.admin-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-actions .button{font-size:12px;padding:10px 13px;min-height:39px}.admin-actions .link-button{display:none}.admin-toolbar{padding:12px;gap:8px}.admin-toolbar .search-box{min-width:100%;height:40px}.admin-toolbar select{flex:1;max-width:none}.admin-table thead{display:none}.admin-table,.admin-table tbody{display:block}.admin-table tr{display:grid;grid-template-columns:1fr auto;gap:0;padding:14px 12px;border-bottom:1px solid #eff2e9;position:relative}.admin-table tr:last-child{border:0}.admin-table td{display:block;padding:0;border:0}.admin-table td:first-child{grid-column:1;grid-row:1/4;padding-right:9px}.admin-table td:nth-child(2),.admin-table td:nth-child(3){display:none}.admin-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right;padding-bottom:8px}.admin-table td:last-child{grid-column:2;grid-row:2}.admin-table tr:hover td{background:none}.table-recipe img{width:65px;height:61px}.table-recipe strong{font-size:13px;max-width:155px}.table-recipe small{white-space:nowrap;font-size:10px}.row-actions{gap:4px}.row-actions button{height:27px;min-width:28px}.tag.status{font-size:10px;padding:4px 7px}.category-list{padding:0 15px}.category-admin-row .row-actions button{font-size:11px;padding:8px}.admin-card>.admin-toolbar>.section-title{font-size:15px}}
@media(max-width:520px){dialog{position:fixed;margin:0;inset:auto 0 0;width:100%;max-width:none;max-height:90dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}.editor-dialog{max-height:94dvh}.dialog-header{padding:18px 20px 8px}.dialog-body{padding-left:20px;padding-right:20px}.dialog-footer{padding-left:20px;padding-right:20px}.form-grid{grid-template-columns:1fr;gap:15px}.cover-upload{aspect-ratio:2.2;max-height:155px}.editor-form .form-row{gap:8px}.editor-footer-left{display:none!important}.editor-dialog .dialog-footer .button{flex:1}.ingredient-form-row{grid-template-columns:minmax(72px,1.6fr) minmax(40px,1fr) minmax(40px,1fr) 57px 23px;gap:5px}.ingredient-form-row input,.ingredient-form-row select{font-size:11px;padding:9px 5px}.ingredient-form-row .icon-button{width:23px}.form-grid>.stack{gap:5px}.category-select label{padding:7px;font-size:11px}}
@media(max-width:360px){.brand-lockup h1{font-size:29px}.brand-lockup img{width:40px}.home-brand{padding-top:22px;padding-bottom:15px}.home-brand p{font-size:12px}.home-visual{height:220px}.home-actions{padding:18px 18px 8px}.decision-button{min-height:81px}.decision-button.choose{min-height:80px}.decision-button strong{font-size:19px}.content-pad{padding-left:15px;padding-right:15px}.recipe-card h3{font-size:12px}.recommend .tag{font-size:10px;padding:6px}.ingredient-header h3{font-size:14px}.table-recipe strong{max-width:120px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* QA refinement: stronger text contrast without losing the warm palette. */
:root{--muted:#777268;--orange:#e87416}.home-brand p{color:#906e51}.home-preferences{color:#806d54}.decision-button.random:hover{background:#df6b10}.decision-button.random small{color:#482309}.bottom-nav button{color:#827e74}.bottom-nav button.active{color:#b7520d}.ingredient-row .quantity{color:#777267}.recipe-tip,.result-count{color:#81796b}.ingredient-group-label{color:#827969}.portion-control{color:#7a7366}.recipe-tabs button{color:#787367}.recipe-card p{color:#797367}.admin-header p,.admin-sidebar-bottom,.side-note,.table-footer,.table-recipe small,.category-admin-row p{color:#79826f}.admin-table td{color:#697361}.admin-table th,.admin-toolbar select,.category-summary button{color:#737e69}.category-summary span.count{color:#75816b}.admin-sidebar-bottom button{color:#627852}.demo-hint{color:#807354}.inline-info,.form-section>p,.editor-footer-left{color:#79836e}.menu-card>.flex1{text-align:left}.ingredient-row.checked .quantity{color:#898377}.admin-content>.library-footer{display:none}
@media(max-width:780px){.admin-content>.library-footer{display:block}.admin-actions .link-button{display:none}.admin-table .tag{font-size:10px}}
@media(max-width:520px){.editor-dialog{max-width:none;width:100%;inset:auto 0 0;border-radius:24px 24px 0 0}}

/* Reference alignment — source board: docs/design/reference.png. */
:root{--cream:#faf6ef;--paper:#fcfbf9;--orange:#ff8a28;--orange-dark:#a4430d;--green:#248c49;--green-dark:#19743b;--ink:#15191f;--muted:#848589;--line:#f0f0f0;--nav-h:78px;background:#e5d7c6}
svg.icon[stroke]{fill:none}svg.icon{width:18px;height:18px}
#app.mobile{max-width:390px;box-shadow:none;background:#fcfbf9}.bottom-nav,.fixed-cta,.prep-copy{max-width:390px}
.mobile-main{background:#fcfbf9}.topbar{height:54px;padding:5px 12px;background:#fcfbf9;grid-template-columns:70px 1fr 78px}.topbar h2{font-size:17px;font-weight:650}.topbar .link-button{font-size:14px;font-weight:400;color:#383a3e}.topbar .link-button .icon{width:16px;height:16px}.topbar .icon-lg{width:23px!important;height:23px!important}
.home{display:flex;flex-direction:column;min-height:100svh}.home-artwork{width:100%;height:auto;aspect-ratio:295/440;overflow:hidden;flex-shrink:0;background:#faf5ec}.home-artwork>img{width:100%;height:100%;object-fit:cover;object-position:center top}
.home-actions{position:relative;background:#faf6ef;border-radius:22px 22px 0 0;margin-top:-2px;padding:32px 22px 8px;gap:14px}.decision-button,.decision-button.choose{min-height:112px;border-radius:60px;box-shadow:0 2px 14px #ef9c2210;gap:25px}.decision-button.random{background:#ff8c2c;border-color:#fff;color:#fff}.decision-button.random small{color:#fff}.decision-button.random:hover{background:#f98224}.decision-button strong{font-size:24px;letter-spacing:0;font-weight:700;line-height:1.35}.decision-button small{font-size:15px;letter-spacing:0;line-height:1.4;margin-top:4px}.decision-button>.icon{width:37px;height:37px}.decision-button.choose{background:#ffedcf;color:#3f210d}.decision-button.choose small{color:#725233}.home-preferences{padding:0 12px 5px;min-height:28px;background:#faf6ef;line-height:1}.home-preferences button{font-size:11px;min-height:26px;color:#9b8b78}.home-preferences .icon{width:10px;height:10px;margin-left:5px}
.bottom-nav{background:#fff;border-top:0;padding:10px 18px 8px;backdrop-filter:none}.bottom-nav button{font-size:12px;font-weight:400;gap:5px;color:#a4a6a8}.bottom-nav button.active{color:#ff7d1e}.bottom-nav button>.icon{width:22px;height:22px}
.content-pad{padding:10px 17px 20px}.recommend-intro{padding:12px 18px 16px}.recommend-sticker{font-size:19px;font-weight:650;letter-spacing:.5px;padding:7px 25px;background:#e8f3d2;color:#267b24;border-radius:25px;line-height:1.4}.recommend-intro h1{font-size:28px;font-weight:700;margin-top:11px;line-height:1.45;letter-spacing:-.5px}.recommend-intro p{font-size:15px;line-height:1.5;margin-top:5px;color:#818184;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recommend .content-pad{padding-top:0}.feature-image{aspect-ratio:1.25;border-radius:13px}.detail-meta{display:flex;justify-content:space-between;gap:8px;padding:10px 4px}.tag{background:#f6f4f1;color:#68686a;padding:6px 11px;border-radius:9px;font-size:12px;font-weight:400;gap:6px}.tag.green,.tag.orange{background:#f6f4f1;color:#68686a}.tag.green .icon{color:#5b983a}.tag.orange .icon{color:#c5570d}.detail-meta .tag:last-child .icon{color:#eb7137}.tag .icon{width:14px;height:14px}
.recipe-panel{padding:0;border:0;background:transparent;border-radius:0;margin-top:15px}.ingredient-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.ingredient-header h3{font-size:17px;font-weight:650;line-height:1.4}.portion-button{padding:0;font-size:14px;font-weight:400;min-height:28px;color:#222936}.copy-button{border-radius:12px;background:#fff0dc;color:#554636;padding:7px 10px;min-height:34px;font-size:12px;font-weight:400;gap:6px}.copy-button .icon{width:14px;height:14px}.ingredient-row{min-height:34px;padding:3px 2px;border-bottom:1px solid #f1f1f1;font-size:15px;color:#404854}.ingredient-row label{min-height:26px;gap:13px}.ingredient-row input{width:17px;height:17px;accent-color:#28894c}.ingredient-row .quantity{font-size:14px;color:#7f8289}.fixed-cta{padding:12px 17px 24px;background:#fcfbf9;border-top:0;backdrop-filter:none}.fixed-cta .button{min-height:58px;border-radius:40px;background:#248c49;font-size:17px;font-weight:600;box-shadow:inset 0 0 0 1px #14793266}.fixed-cta .icon{width:17px;height:17px}.mobile-main.no-nav{padding-bottom:105px}
.choices-page{padding-bottom:30px}.choices-page .content-pad{padding:0 12px 24px;position:relative}.choices-intro{padding:18px 0 24px}.choices-intro h1{font-size:18px;font-weight:650;line-height:1.6}.choices-intro p{font-size:14px;margin-top:6px;line-height:1.5}.choice-filters{position:absolute;top:18px;right:10px;z-index:4;max-width:calc(100% - 20px)}.choice-filters summary{list-style:none;cursor:pointer;font-size:0;color:#a4a4a4;padding:5px}.choice-filters summary::-webkit-details-marker{display:none}.choice-filters summary .icon{width:15px;height:15px}.choice-filters[open]{top:60px;right:8px;left:8px;padding:10px;background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 7px 25px #0001}.choice-filters[open] summary{font-size:12px;text-align:right}.choice-filters[open] .chips{padding-bottom:0}.choices-page .recipe-grid{padding-top:0;gap:13px 12px}.recipe-card{border-radius:12px;border-color:#f0efee;box-shadow:0 2px 6px #1111110a}.recipe-cover{aspect-ratio:1.1}.recipe-card-info{padding:9px 11px 11px}.recipe-card h3{font-size:16px;font-weight:650;line-height:1.45;padding-right:18px}.recipe-card p{font-size:13px;line-height:1.4;margin-top:4px;gap:4px;color:#8e9097}.recipe-card .quick-add{right:5px;bottom:32px;width:29px;height:29px;color:#243041}.quick-add .icon{width:18px;height:18px}.quick-add.selected{background:none;color:#e97537}.quick-add.selected .icon{fill:#ffe2cf}.choices-page .recipe-tip{display:none}.selected-ribbon{font-size:10px;padding:4px 6px}
.detail-page .topbar{grid-template-columns:50px 1fr 90px}.detail-page .topbar-right{display:flex;gap:0;grid-column:3}.detail-page .topbar h2:empty{display:none}.favorite-button.selected{color:#df783a}.detail-cover{aspect-ratio:1.4}.detail-heading{margin-top:-10px;position:relative;background:#fcfbf9;border-radius:18px 18px 0 0;padding:17px 18px 5px}.detail-heading h1{font-size:24px;font-weight:650;line-height:1.5}.detail-heading .detail-meta{justify-content:flex-start;padding:8px 0 11px;gap:10px}.detail-heading .tag{font-size:12px;padding:5px 10px}.detail-heading .tag .icon{color:#8a8a8a;width:14px}.detail-heading>p{font-size:14px;line-height:1.8;color:#858589}.detail-body{padding:20px 18px 20px}.recipe-tabs{display:flex;background:#f5f4f3;border-radius:12px;padding:0;border-bottom:0}.recipe-tabs button{flex:1;padding:11px 5px;font-size:16px;line-height:1.5;border-radius:10px;color:#898a8d;position:relative}.recipe-tabs button.active{background:white;color:#b95618;font-weight:650;box-shadow:0 1px 4px #00000008;border:0}.recipe-tabs button.active:after{content:"";position:absolute;bottom:4px;left:35%;right:35%;height:2px;background:#e37529;border-radius:2px}.detail-body .recipe-panel{margin-top:14px}.detail-page .ingredient-row{min-height:35px}.detail-page .ingredient-header{margin-bottom:8px}.detail-page .ingredient-header h3{font-size:17px}
/* The live admin keeps the two real management destinations. */
body.is-admin{background:#fff;color:#253045}.admin-shell{grid-template-columns:184px minmax(0,1fr);background:#fff}.admin-sidebar{width:184px;background:#f1f3f5;border-right:1px solid #e9edf2;padding:18px 10px;gap:24px}.admin-brand{padding:0 6px;gap:10px}.admin-brand img{width:34px;height:34px;object-fit:contain;background:#ff8b20;border-radius:8px;padding:3px}.admin-brand>div{display:flex;gap:7px;align-items:center}.admin-brand strong{font-size:16px;color:#263149}.admin-brand small{font-size:13px;color:#526076;letter-spacing:0;margin:0}.admin-nav{gap:9px}.admin-nav button{border-radius:6px;padding:10px 12px;font-size:13px;min-height:38px;color:#45546b;gap:11px;font-weight:500}.admin-nav button.active{background:#dceee5;color:#25804e}.admin-nav .icon{width:17px;height:17px}.admin-sidebar-bottom{font-size:12px;color:#949da7}.admin-sidebar-bottom p{display:none}.admin-sidebar-bottom button{color:#697789}
.admin-content{padding:22px 22px;min-width:0}.admin-header{margin-bottom:13px;height:28px;align-items:center}.admin-header h1{font-size:19px;line-height:1.4;color:#182538;font-weight:650}.admin-header p{display:none}.admin-header .admin-actions>.primary{display:none}.admin-header .admin-actions>.link-button{min-height:28px;padding:0;font-size:12px}.admin-columns{grid-template-columns:minmax(0,1fr) 220px;gap:22px}.admin-card{border:0;border-radius:0;box-shadow:none;background:white}.admin-toolbar{padding:0 0 13px;gap:12px;flex-wrap:nowrap;border:0}.admin-toolbar .search-box{border:1px solid #e3e8ef;border-radius:5px;min-width:130px;max-width:260px;height:34px;flex:1.7}.admin-toolbar .search-box input{font-size:12px;padding:5px 0}.admin-toolbar select{height:34px;min-height:34px;padding:4px 9px;border:1px solid #e3e8ef;border-radius:5px;background:#fff;color:#536078;font-size:11px;min-width:82px;flex:1;max-width:130px}.admin-toolbar .toolbar-add{padding:7px 12px;min-height:34px;border-radius:5px;font-size:12px;white-space:nowrap;gap:5px}.toolbar-add .icon{width:14px;height:14px}.admin-table{table-layout:fixed;color:#4d5d74}.admin-table th{padding:8px 10px;font-size:11px;color:#6c7890;background:#f7f8fa;border:0;height:34px}.admin-table td{height:48px;padding:6px 10px;border-bottom:1px solid #f0f2f5;font-size:12px;color:#546079}.admin-table th:first-child{width:64px}.admin-table th:nth-child(2){width:23%}.admin-table th:nth-child(3){width:16%}.admin-table th:nth-child(4){width:12%}.admin-table th:nth-child(5){width:10%}.admin-table th:nth-child(6){width:12%}.admin-table th:last-child{width:124px}.table-cover{width:46px;height:33px;object-fit:cover;border-radius:7px}.title-cell strong{font-size:12px;font-weight:500;color:#37445b}.title-cell small{display:none}.category-badge{display:inline-block;padding:4px 8px;border-radius:5px;color:#538293;background:#edf7fa;font-size:11px;white-space:nowrap}.admin-table tr:nth-child(3n+2) .category-badge{background:#fcf0f3;color:#9c7081}.admin-table tr:nth-child(4n) .category-badge{background:#ebf8f0;color:#589b7b}.difficulty-badge{padding:4px 9px;border-radius:5px;font-size:11px}.difficulty-badge.easy{background:#ebf8f0;color:#57a17c}.difficulty-badge.medium{background:#fff4df;color:#e6a142}.admin-table .tag.status{font-size:11px;padding:4px 10px;border-radius:14px;color:#43a275;background:#eef9f3}.row-actions{gap:9px}.row-actions button{padding:0;min-width:24px;height:30px;border-radius:3px;font-size:11px;color:#3485d4;background:none}.row-actions button:nth-child(2){color:#657388}.row-actions button:last-child{color:#e57878}.table-footer{font-size:11px;padding:13px 10px;color:#96a0ad}.admin-side-categories{margin-top:-41px;padding-left:20px;border-left:1px solid #edf0f4;min-height:400px}.admin-category-header{padding:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-category-header h3{font-size:16px;color:#25334a}.add-category-button{padding:7px 8px;background:#dcefe5;border-radius:6px;color:#388c62;font-size:11px;display:flex;gap:5px;align-items:center}.add-category-button .icon{width:13px;height:13px}.category-summary{padding:0}.category-summary button{justify-content:flex-start;gap:5px;padding:8px 12px;min-height:32px;font-size:12px;color:#5d6980;border-radius:5px}.category-summary button.active{background:#f5f6f8;color:#48566e}.category-summary span.count{color:inherit;font-size:12px}.side-note{display:none}
@media(min-width:700px){#app.mobile{margin:24px auto;border-radius:26px;min-height:calc(100svh - 48px)}.mobile-main{min-height:calc(100svh - 48px)}.bottom-nav,.fixed-cta{bottom:24px}.home-artwork{height:auto}.home-actions{padding-top:26px}.decision-button,.decision-button.choose{min-height:102px}.admin-content{padding:22px}.admin-columns{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:1100px) and (min-width:781px){.admin-columns{grid-template-columns:minmax(0,1fr)}.admin-side-categories{display:none}.admin-shell{grid-template-columns:164px minmax(0,1fr)}.admin-sidebar{width:164px}.admin-toolbar{gap:7px}.admin-table th:last-child{width:110px}.admin-content{padding:20px 15px}}
@media(max-width:780px){.admin-shell{display:block}.admin-sidebar{position:sticky;top:0;width:100%;padding:13px 16px 10px;gap:12px}.admin-brand img{width:30px;height:30px}.admin-nav button{flex:1;justify-content:center;padding:8px;min-height:36px}.admin-content{padding:20px 14px}.admin-header .admin-actions>.primary{display:flex;font-size:12px;min-height:34px;border-radius:6px}.admin-header .admin-actions>.link-button{display:none}.admin-columns{display:block}.admin-toolbar{flex-wrap:wrap;gap:7px}.admin-toolbar .search-box{min-width:100%;max-width:none}.admin-toolbar select{min-width:0;flex:1;max-width:none}.admin-toolbar .toolbar-add{display:none}.admin-side-categories{display:none}.admin-table thead{display:none}.admin-table,.admin-table tbody{display:block}.admin-table tr{display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:7px;padding:12px 0}.admin-table td{display:block;padding:0;height:auto;border:0}.admin-table td.cover-cell{display:block;grid-column:1;grid-row:1/3;padding:0}.table-cover{width:60px;height:56px;border-radius:8px}.admin-table td.title-cell{display:block;grid-column:2;grid-row:1}.title-cell strong{display:block;font-size:13px;line-height:1.5}.title-cell small{display:block;font-size:10px;color:#94a0ae;margin-top:5px}.admin-table td.category-cell,.admin-table td.time-cell,.admin-table td.difficulty-cell{display:none}.admin-table td.status-cell{grid-column:3;grid-row:1;text-align:right}.admin-table td.actions-cell{grid-column:2/4;grid-row:2;justify-self:end}.row-actions{gap:14px}.row-actions button{font-size:11px}.admin-table .tag.status{font-size:10px;padding:4px 8px}.admin-header h1{font-size:19px}}
@media(max-width:360px){.home-artwork{height:auto}.home-actions{padding:22px 18px 8px}.decision-button,.decision-button.choose{min-height:94px}.decision-button strong{font-size:21px}.decision-button small{font-size:13px}.recipe-card h3{font-size:14px}.recipe-card p{font-size:11px}.recommend-intro h1{font-size:25px}.recommend-intro p{font-size:13px}.ingredient-row{font-size:13px;min-height:31px}.ingredient-row .quantity{font-size:12px}.ingredient-header h3{font-size:15px}.portion-button{font-size:12px}.copy-button{font-size:11px}.detail-heading h1{font-size:22px}.detail-heading>p{font-size:13px}.recipe-tabs button{font-size:14px}}
/* Optical matching against the supplied mobile frames. */
.decision-button.random{background:radial-gradient(ellipse at 70% 0%,#ff9d3d 0%,#ff8c2c 62%,#ff902a 100%)}.decision-button.random>.icon{fill:currentColor;stroke-width:1}.decision-button.choose{background:linear-gradient(130deg,#fff0d8,#ffebc9)}.bottom-nav{border-radius:24px 24px 0 0}.recommend-sticker{font-size:22px}.recommend-intro{padding-bottom:20px}.recipe-panel{margin-top:24px}.ingredient-header h3{font-size:18px}.ingredient-row{font-size:17px;min-height:35px}.ingredient-row .quantity{font-size:16px}.copy-button{font-size:13px;min-height:36px;padding:8px 12px}.choice-filters summary{min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center}.choice-filters[open] summary{justify-content:flex-end}.fixed-cta .button{background:linear-gradient(110deg,#24884a,#29914f)}
@media(max-width:360px){.recommend-sticker{font-size:19px}.ingredient-row{font-size:14px;min-height:31px}.ingredient-row .quantity{font-size:13px}.ingredient-header h3{font-size:15px}.copy-button{font-size:11px;padding:7px 9px}}
/* Fit the complete home composition to the available viewport. */
:root{--nav-h:64px}
body.is-home{background:#faf6ef}
#app.mobile{max-width:960px}
.mobile-main,.content-pad,.between,.ingredient-row label{min-width:0}
.ingredient-row label{overflow-wrap:anywhere}
.bottom-nav,.fixed-cta{max-width:960px}
.chips{flex-wrap:wrap;overflow:visible}
#app.mobile:has(.home){max-width:980px;height:100dvh;min-height:0;margin:0 auto;border-radius:0;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#faf6ef}
.mobile-main.home{min-height:0;padding:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:0;background:#faf6ef}
.home-artwork{min-height:0;height:100%;width:100%;aspect-ratio:auto;flex-shrink:1;background:#faf6ef;clip-path:none;margin:0;display:flex;justify-content:center;overflow:visible}
.home-artwork>img{width:auto;height:100%;max-width:100%;object-fit:contain;object-position:center;clip-path:inset(0 0 3% 0 round 0 0 18px 18px)}
.home-actions{width:100%;max-width:420px;justify-self:center;padding:clamp(4px,1dvh,12px) 22px 4px;margin:0;gap:clamp(8px,1.4dvh,14px);border-radius:0;background:transparent}
.home .decision-button,.home .decision-button.choose{min-height:clamp(60px,10dvh,94px);gap:20px}
.home .decision-button strong{font-size:clamp(18px,2.8dvh,23px);letter-spacing:1px}
.home .decision-button small{font-size:12px;margin-top:4px}
.home .decision-button>.icon{width:28px;height:28px}
.home-preferences{padding:0 12px 4px;min-height:32px;background:transparent}
.home-preferences button{min-height:32px}
.home+.bottom-nav{position:static;transform:none;width:100%;max-width:none;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
@media(min-width:700px){
 #app.mobile{width:calc(100% - 48px)}
 .mobile-main:not(.home){min-height:calc(100dvh - 48px)}
 .bottom-nav,.fixed-cta{width:calc(100% - 48px)}
 .recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .detail-page,.recommend{max-width:640px;margin:auto}
 #app.mobile:has(.home){height:calc(100dvh - 32px);width:calc(100% - 32px);margin:16px auto;border-radius:24px}
 .mobile-main.home{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px}
 .home-artwork{grid-column:1;grid-row:1/4;padding:12px 0 0 12px}
 .home-actions{grid-column:2;grid-row:2;padding:12px 24px 0 8px;gap:18px}
 .home-preferences{grid-column:2;grid-row:3;align-self:start;padding:10px 24px 0 8px}
 .home .decision-button,.home .decision-button.choose{min-height:clamp(72px,12dvh,106px)}
}
@media(max-height:480px) and (orientation:landscape){
 #app.mobile:has(.home){width:100%;height:100dvh;margin:0;border-radius:0}
 .mobile-main.home{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr)}
 .home-artwork{grid-column:1;grid-row:1/4;padding:0}
 .home-actions{grid-column:2;grid-row:2;padding:6px 16px;gap:8px}
 .home-preferences{grid-column:2;grid-row:3;align-self:start;padding:0}
 .home .decision-button,.home .decision-button.choose{min-height:58px}
 .home+.bottom-nav{height:calc(54px + env(safe-area-inset-bottom));padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}
}

/* The title and full-width photo share one continuous hero surface. */
#app.mobile:has(.home){max-width:none;width:100%;height:100dvh;margin:0;border-radius:0}
.mobile-main.home{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:0}
.home .home-brand{grid-column:1;grid-row:1;align-self:start;position:relative;z-index:1;background:transparent;padding:clamp(10px,2dvh,22px) 16px clamp(8px,1.5dvh,16px)}
.home .brand-lockup h1{font-size:clamp(26px,4.5dvh,38px);line-height:1.15;letter-spacing:-1px}
.home .brand-lockup img{width:42px;height:36px}
.home .home-brand p{margin-top:8px;font-size:clamp(11px,1.9dvh,15px);line-height:1.55}
.home-artwork{grid-column:1;grid-row:1;padding:0;overflow:hidden;border-radius:0 0 20px 20px}
.home-artwork>img{width:100%;max-width:none;height:100%;object-fit:cover;object-position:center 57%;clip-path:none;mask-image:linear-gradient(to bottom,transparent 0,transparent clamp(45px,8dvh,70px),#000 clamp(140px,26dvh,230px));-webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent clamp(45px,8dvh,70px),#000 clamp(140px,26dvh,230px))}
.home-actions{grid-column:1;grid-row:2;padding:clamp(6px,1.5dvh,16px) 22px 4px;max-width:440px;gap:8px}
.home-preferences{grid-column:1;grid-row:3;align-self:auto;padding:0 12px 4px}
.bottom-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.bottom-nav button{width:100%;min-width:0;padding:0;display:grid;grid-template-rows:24px 16px;justify-items:center;align-content:center;justify-content:stretch;gap:4px;line-height:16px}
.bottom-nav .nav-icon{width:24px;height:24px;display:grid;place-items:center;margin:0}
.bottom-nav .nav-icon>.icon{display:block;width:22px;height:22px;fill:none;vertical-align:initial}
.bottom-nav .nav-label{margin:0!important;line-height:16px;font-size:12px}
.bottom-nav .nav-count{top:1px;left:50%;margin-left:8px;line-height:12px}
@media(min-width:700px){
 .home-actions{max-width:780px;flex-direction:row;gap:18px;padding:14px 22px 4px}
 .home .decision-button,.home .decision-button.choose{min-height:clamp(64px,10dvh,90px)}
 .home-artwork>img{object-position:center 52%}
}
@media(max-height:480px) and (orientation:landscape){
 .home .home-brand{padding:6px 12px}
 .home .brand-lockup h1{font-size:24px}
 .home .brand-lockup img{width:30px;height:26px}
 .home .home-brand p{font-size:11px;margin-top:4px;line-height:1.3}
 .home .home-brand p br{display:none}
 .home-artwork>img{mask-image:linear-gradient(to bottom,transparent 0,#000 110px);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 110px)}
 .home-actions{max-width:720px;flex-direction:row;gap:10px;padding:6px 16px 2px}
 .home .decision-button,.home .decision-button.choose{min-height:48px;gap:10px}
 .home .decision-button strong{font-size:16px}
 .home .decision-button small{font-size:11px;margin-top:1px}
 .home-preferences{min-height:26px;padding:0}
 .home-preferences button{min-height:26px}
}

/* Keep the outer canvas and top safe area continuous with these pages. */
:root[data-page="recipes"],:root[data-page="prep"],
:root[data-page="recipes"] body,:root[data-page="prep"] body{background:var(--paper)}
