:root{--bg:#f6f5f2;--paper:#fff;--text:#22201d;--muted:#827d76;--line:#ece8e2;--orange:#f47b20;--orange2:#fff0e4;--green:#4f8b65;--green2:#edf7f0;--purple:#735bb0;--purple2:#f2eefb;--blue:#5f7edb;--blue2:#eef3ff;--danger:#c94c4c;--shadow:0 18px 45px rgba(54,44,35,.08);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea{font:inherit}button{cursor:pointer}.app{max-width:440px;min-height:100dvh;margin:auto;background:var(--paper);padding-bottom:84px;box-shadow:var(--shadow)}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid #f3f0eb}.brand{font-size:18px;font-weight:900}.topsub{font-size:11px;color:var(--muted);margin-top:3px}.icon-btn,.back-btn{border:0;background:#f4f2ee;border-radius:12px;width:40px;height:40px;color:var(--text)}.page{padding:18px 16px 28px}.page-title h1,.greeting h1{margin:0;font-size:27px;line-height:1.25;letter-spacing:-.7px}.page-title p,.intro p,.meal-summary p{color:var(--muted);font-size:13px;line-height:1.55}.greeting{margin-bottom:18px}.hero{border-radius:24px;padding:19px;border:1px solid var(--line);margin-bottom:24px}.hero span{font-size:12px;font-weight:900}.hero h2{font-size:23px;line-height:1.35;margin:7px 0}.hero p{font-size:13px;line-height:1.5;margin:0 0 12px;color:#66615a}.hero.gray{background:#f5f5f4}.hero.blue{background:var(--blue2)}.hero.green{background:var(--green2)}.hero.purple{background:var(--purple2)}.primary,.secondary,.danger,.already{width:100%;border-radius:15px;padding:13px 15px;font-weight:850;border:0}.primary{background:var(--orange);color:#fff}.secondary{background:#fff;border:1px solid #ddd8d0;color:var(--text)}.danger{background:#fff4f4;border:1px solid #f1d5d5;color:var(--danger);margin-top:18px}.primary.link{display:block;text-align:center;text-decoration:none}.text-btn{width:100%;border:0;background:none;padding:14px;color:#77716a;font-weight:750}.section-head{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 10px}.section-head h3{margin:0;font-size:15px}.section-head button{border:0;background:none;color:var(--orange);font-size:12px;font-weight:800}.notice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.notice-grid button{border:1px solid var(--line);background:#faf9f7;border-radius:17px;padding:14px;text-align:left}.notice-grid b,.notice-grid span{display:block}.notice-grid span{font-size:11px;color:var(--muted);margin-top:4px}.week-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:140px;gap:8px;overflow:auto;padding-bottom:4px}.day-card{border:1px solid var(--line);background:#faf9f7;border-radius:17px;padding:12px;text-align:left}.day-card.today{border-color:#f2b88c;background:#fff7f1}.day-card>strong{display:block;margin-bottom:7px}.day-card span{display:block;padding:6px 0;border-top:1px solid #eee9e3;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-card em{font-style:normal;color:var(--muted);display:block;font-size:9px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(440px,100%);height:72px;background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:20;padding-bottom:max(4px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:none;color:#9a948c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.bottom-nav button.on{color:var(--orange)}.bottom-nav b{font-size:18px}.bottom-nav span{font-size:10px;font-weight:800}.meal-day{margin:18px 0}.meal-day h3{font-size:13px;color:#5f5a54}.meal-row{width:100%;display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px;margin-bottom:8px;text-align:left}.slot{background:#f4f0eb;border-radius:10px;padding:7px 8px;font-size:10px;font-weight:800}.meal-copy{flex:1;min-width:0}.meal-copy strong,.meal-copy small{display:block}.meal-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meal-copy small{color:var(--muted);font-size:10px;margin-top:4px}.detail-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}.detail-head h1{font-size:22px;margin:0}.back-btn{font-size:28px}.meal-summary{background:#fff7f1;border:1px solid #f6ddca;border-radius:20px;padding:18px}.meal-summary span{font-size:11px;color:#a25f30;font-weight:800}.meal-summary h2{font-size:21px;line-height:1.4}.list-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}.menu-line,.check-row{display:flex;align-items:center;gap:11px;padding:11px 12px}.menu-line+.menu-line,.check-row+.check-row{border-top:1px solid var(--line)}.menu-line img,.check-row img{width:52px;height:46px;object-fit:cover;border-radius:11px}.menu-line span,.check-row span{flex:1}.menu-line strong,.menu-line small,.check-row strong,.check-row small{display:block}.menu-line small,.check-row small{color:var(--muted);font-size:10px;margin-top:4px}.menu-line em{font-size:10px;font-style:normal;color:var(--green);font-weight:800}.food-placeholder{width:52px;height:46px;border-radius:11px;background:#f3f0ec;display:grid;place-items:center}.people,.chips{display:flex;gap:7px;flex-wrap:wrap}.people span,.chips span{background:#f5f2ed;border-radius:999px;padding:8px 10px;font-size:11px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.choice-grid button{min-height:88px}.choice-grid small{display:block;font-size:9px;margin-top:5px;font-weight:500}.cook-list{display:grid;gap:9px}.cook-card{width:100%;display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:10px;text-align:left}.cook-card img{width:68px;height:58px;object-fit:cover;border-radius:12px}.cook-card span{flex:1}.cook-card strong,.cook-card small{display:block}.cook-card small{color:var(--muted);font-size:10px;margin-top:5px}.cook-card em{font-style:normal;font-size:10px;font-weight:900;color:var(--orange)}.cook-card.completed{background:var(--green2);border-color:#cce1d3}.cook-card.cooking{background:var(--purple2);border-color:#d8cfee}.cook-card.no_cook{opacity:.62;border-style:dashed}.ready-box{background:var(--green2);border:1px solid #cfe5d6;border-radius:20px;padding:17px;margin-top:16px;text-align:center}.ready-box h3{margin:0 0 5px}.ready-box p{font-size:12px;color:#627267}.tip{background:#faf7f2;border-radius:15px;padding:13px;font-size:11px;color:#777068;margin-top:14px}.cook-status{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-weight:800}.people-strip{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line)}.people-strip span{font-size:11px;color:var(--muted)}.people-strip b{flex:1}.people-strip button{border:0;background:none;color:var(--orange);font-size:11px}.instruction{min-height:235px;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:15px 6px}.instruction small{color:var(--orange);font-weight:900}.instruction h2{font-size:25px;line-height:1.45;margin:14px 0}.instruction span{font-size:12px;color:var(--muted)}.step-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.step-actions button:disabled{opacity:.35}.already{margin-top:8px;background:#fff8f2;border:1px solid #f0d1b8;color:#a85d28}.voice-panel{margin-top:14px;border:1px solid #dce5f4;background:#f4f7fc;border-radius:18px;padding:13px}.voice-panel>div{display:flex;justify-content:space-between;align-items:center}.voice-panel strong,.voice-panel small{display:block}.voice-panel small{font-size:9px;color:var(--muted);margin-top:2px}.voice-panel button{border:0;border-radius:999px;background:#aaa69f;color:white;padding:7px 10px;font-size:10px;font-weight:900}.voice-panel button.on{background:var(--green)}.voice-panel p{font-size:10px;line-height:1.5;color:#6f7781;margin-bottom:0}.guest-box{border:1px solid var(--line);border-radius:18px;padding:13px;margin-top:14px}.guest-box h3{margin-top:0}.guest-box>div{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.counter{display:flex;align-items:center;gap:8px}.counter button{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:white}.check-row input{width:21px;height:21px;accent-color:var(--orange)}.bottom-action{margin-top:16px}.review-block{border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.review-block>h3{margin:0 0 10px}.review-block>p{font-size:11px;line-height:1.5;color:var(--muted)}.ingredients-summary{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ingredients-summary span{background:#f7f4f0;border-radius:11px;padding:9px}.ingredients-summary b,.ingredients-summary em{display:block}.ingredients-summary b{font-size:11px}.ingredients-summary em{font-size:10px;color:var(--muted);font-style:normal;margin-top:3px}.leftover{display:flex;align-items:center;gap:8px;padding:7px 0}.leftover span{flex:1;font-size:12px;font-weight:750}.leftover input{width:75px;margin:0}.leftover b{font-size:11px}.input{width:100%;border:1px solid #ddd8d0;border-radius:13px;padding:11px;background:#fff}.textarea{min-height:100px;resize:vertical}.complete-hero{text-align:center;padding:25px 5px}.complete-hero>div{width:56px;height:56px;border-radius:50%;margin:auto;background:var(--green);color:white;display:grid;place-items:center;font-size:28px}.complete-hero h1{font-size:24px}.complete-hero p{font-size:12px;color:var(--muted)}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.result-grid div{background:#f7f5f2;border-radius:14px;padding:12px;text-align:center}.result-grid b{display:block;color:var(--green);font-size:18px}.result-grid span{font-size:9px;line-height:1.4}.next-card{border:1px solid #f2ddcb;background:#fff8f1;border-radius:18px;padding:14px;margin:14px 0}.next-card>span{font-size:10px;color:var(--orange);font-weight:800}.voice-cta{display:flex;align-items:center;gap:10px;border:1px solid #dce5f4;background:#f4f7fc;border-radius:18px;padding:13px;margin:12px 0}.voice-cta div{flex:1}.voice-cta strong,.voice-cta span{display:block}.voice-cta span{font-size:9px;color:var(--muted);margin-top:4px}.voice-cta button{border:0;background:#516fbd;color:#fff;border-radius:11px;padding:9px;font-size:10px;font-weight:800}.shopping.done{opacity:.5}.inventory-grid{display:grid;gap:8px}.inventory-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;padding:9px}.inventory-card img{width:48px;height:44px;object-fit:cover;border-radius:10px}.inventory-card span{flex:1}.inventory-card strong,.inventory-card small{display:block}.inventory-card small{font-size:9px;color:var(--muted);margin-top:4px}.inventory-card em{font-style:normal;font-size:9px;color:var(--purple)}.settings-list{border:1px solid var(--line);border-radius:18px;overflow:hidden}.settings-list button{width:100%;display:flex;align-items:center;gap:12px;border:0;background:#fff;padding:14px;text-align:left}.settings-list button+button{border-top:1px solid var(--line)}.settings-list button>b{flex:1}.settings-list small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.family-list{display:grid;gap:9px}.family-card{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:16px;padding:11px}.family-card>div{font-size:28px}.family-card span{flex:1}.family-card strong,.family-card small{display:block}.family-card small{font-size:9px;color:var(--muted);margin-top:4px}.family-card button{border:0;background:#fff1f1;color:var(--danger);border-radius:9px;padding:7px;font-size:9px}.recipe-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.recipe-card{border:1px solid var(--line);border-radius:17px;padding:0;background:#fff;overflow:hidden;text-align:left}.recipe-card img{width:100%;aspect-ratio:1.5/1;object-fit:cover}.recipe-card span{display:block;padding:10px}.recipe-card strong,.recipe-card small{display:block}.recipe-card small{font-size:9px;color:var(--muted);margin-top:4px}.login{max-width:420px;margin:10vh auto;background:white;border-radius:28px;padding:25px;box-shadow:var(--shadow)}.appmark{font-size:36px}.login h1{font-size:30px;margin-bottom:5px}.login p{font-size:12px;color:var(--muted);line-height:1.5}.login .input{margin-top:8px}.login .primary{margin-top:10px}.login small{display:block;margin-top:10px;color:var(--muted)}.update-screen{min-height:100dvh;display:grid;place-items:center;padding:16px;background:var(--bg)}.update-card{width:min(420px,100%);max-height:calc(100dvh - 32px);background:#fff;border-radius:26px;padding:19px;box-shadow:var(--shadow);display:flex;flex-direction:column}.update-icon{font-size:32px}.update-card h1{font-size:23px;margin-bottom:5px}.update-card>p{font-size:11px;color:var(--muted)}.update-list{border:1px solid var(--line);border-radius:15px;overflow:auto;margin:8px 0 12px}.update-list>div{display:flex;gap:10px;padding:10px}.update-list>div+div{border-top:1px solid var(--line)}.update-list b{width:24px;height:24px;background:var(--orange2);color:var(--orange);border-radius:8px;display:grid;place-items:center;font-size:10px}.update-list span{flex:1}.update-list strong,.update-list small{display:block}.update-list small{font-size:8px;color:var(--muted);margin-top:2px}.skeleton,.empty,.fatal{text-align:center;padding:40px;color:var(--muted)}.empty.small{padding:15px}.fatal{max-width:430px;margin:auto}.section-head em{font-style:normal;color:var(--orange)}@media(max-width:440px){.app{box-shadow:none}.login{margin:0;min-height:100dvh;border-radius:0;padding-top:16vh}.update-screen{padding:0}.update-card{border-radius:0;max-height:100dvh;min-height:100dvh;justify-content:center}}
.notice-list{display:grid;gap:8px}.notice-card{width:100%;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;background:#fff;padding:11px 12px;text-align:left}.notice-card>b{width:30px;height:30px;border-radius:10px;background:#fff4e9;color:var(--orange);display:grid;place-items:center;font-size:14px}.notice-card>span{flex:1;min-width:0}.notice-card strong,.notice-card small{display:block}.notice-card strong{font-size:12px}.notice-card small{font-size:9.5px;line-height:1.45;color:var(--muted);margin-top:3px}.notice-card em{font-style:normal;color:#aaa}.notice-card.expiry>b{background:#fff2ee;color:#d85d44}.notice-card.frozen>b{background:#eef6ff;color:#3977b9}.notice-card.shopping>b{background:#fff7e9;color:#d88a28}.notice-card.prepared>b{background:#eef8f2;color:#40865a}.home-recipe-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:42%;gap:9px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.home-recipe-scroll::-webkit-scrollbar{display:none}.home-recipe{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;padding:0;text-align:left;min-height:124px}.home-recipe>img,.home-recipe>.food-photo-pending{width:100%;height:76px;border-radius:0}.home-recipe>span{display:block;padding:8px}.home-recipe strong,.home-recipe small{display:block}.home-recipe strong{font-size:11px}.home-recipe small{font-size:8.5px;color:var(--muted);margin-top:3px}.event-list{border:1px solid var(--line);border-radius:17px;background:#fff;overflow:hidden}.event-row{display:flex;align-items:center;gap:12px;padding:11px 12px}.event-row+.event-row{border-top:1px solid var(--line)}.event-row>b{width:52px;color:var(--orange);font-size:10px}.event-row>span{flex:1}.event-row strong,.event-row small{display:block}.event-row strong{font-size:11px}.event-row small{font-size:9px;color:var(--muted);margin-top:3px}.day-card span small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.ready-box.done{background:#f5f5f4;border-color:#e1dfdb}.food-photo-pending{width:100%;aspect-ratio:1.5/1;background:linear-gradient(135deg,#f6f3ef,#eee9e2);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a39b91}.food-photo-pending.small{width:52px;height:46px;aspect-ratio:auto;border-radius:11px;flex:none}.food-photo-pending span{font-size:22px}.food-photo-pending small{font-size:7px;margin-top:2px}.record-list{display:grid;gap:10px}.record-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:13px}.record-card>span{font-size:9px;color:var(--orange);font-weight:800}.record-card h3{font-size:14px;margin:6px 0}.record-card p{font-size:10px;color:var(--muted);line-height:1.45;margin:0 0 8px}


/* V1 integrated UX update */
.head-actions{display:flex;gap:6px}.head-actions button,.primary.compact{width:auto;padding:8px 11px}
.sheet-overlay{position:fixed;inset:0;background:rgba(15,20,26,.42);z-index:1000;display:flex;align-items:flex-end;opacity:0;transition:.18s}.sheet-overlay.show{opacity:1}.sheet{width:min(100%,520px);max-height:88vh;overflow:auto;margin:0 auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(0,0,0,.18)}.sheet-handle{width:44px;height:5px;border-radius:10px;background:#d6d9df;margin:3px auto 14px}.sheet-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:15px}.sheet-title h2{margin:0;font-size:21px}.sheet-title p{margin:4px 0 0;color:#777;font-size:13px}.sheet-title>button{border:0;background:#f3f4f6;border-radius:50%;width:34px;height:34px;font-size:23px}
.field{display:block;margin:12px 0}.field>span{display:block;font-size:12px;font-weight:800;color:#61656d;margin:0 0 6px}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.suggestions{display:grid;gap:6px;margin:-4px 0 10px}.suggestions.floating{position:absolute;z-index:20;left:18px;right:18px;background:#fff;border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.14);padding:6px}.suggestions button{display:flex;align-items:center;gap:9px;border:0;background:#fff;text-align:left;padding:8px;border-radius:12px}.suggestions button:hover{background:#f7f7f8}.suggestions img,.suggestions .food-photo-pending{width:42px!important;height:42px!important;border-radius:10px}.suggestions span{display:flex;flex-direction:column}.suggestions small{color:#888}
.stock-register-banner{width:100%;border:1px solid #d9e5ff;background:#f3f7ff;border-radius:16px;padding:13px 15px;text-align:left;margin:12px 0;display:flex;flex-direction:column;gap:3px}.stock-register-banner b{color:#315dad}.stock-register-banner span{font-size:12px;color:#6b7280}.done-chip{font-size:10px;background:#e8f6ec;color:#308153;padding:4px 7px;border-radius:20px}
.inventory-search-wrap{position:relative;display:flex;gap:8px;align-items:center;margin-bottom:10px}.inventory-search-wrap>span{position:absolute;left:13px;z-index:2}.inventory-search-wrap input{padding-left:34px}.inventory-search-wrap button{flex:none;border:0;background:#eef6f1;color:#34745a;border-radius:12px;padding:10px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 18px}.quick-actions button{border:1px solid #e3e8e5;background:#fff;border-radius:14px;padding:11px;font-weight:800}.focus-list{display:grid;gap:8px}.inventory-focus-card{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #eceeef;background:#fff;border-radius:16px;padding:10px;text-align:left}.inventory-focus-card img,.inventory-focus-card .food-photo-pending{width:52px!important;height:52px!important;border-radius:13px}.inventory-focus-card span{flex:1;display:flex;flex-direction:column}.inventory-focus-card small{color:#777;margin-top:3px}.inventory-focus-card em{font-style:normal;color:#999}
.switch{display:inline-flex!important;position:relative;width:46px;height:27px;margin:0!important}.switch input{display:none}.switch i{position:absolute;inset:0;border-radius:22px;background:#d8dce1;transition:.2s}.switch i:after{content:"";position:absolute;width:21px;height:21px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.2s}.switch input:checked+i{background:#55a376}.switch input:checked+i:after{transform:translateX(19px)}
.meal-setting-list,.setting-cards{display:grid;gap:12px}.meal-setting-card,.setting-toggle{border:1px solid #e9ebee;background:#fff;border-radius:18px;padding:15px}.setting-main,.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px}.setting-main strong,.setting-toggle strong{display:block}.setting-main small,.setting-toggle small{display:block;color:#777;margin-top:3px}.member-picks{display:flex;flex-wrap:wrap;gap:7px}.member-picks label input{display:none}.member-picks label span{display:block;border:1px solid #e3e5e8;border-radius:20px;padding:7px 10px;font-size:13px}.member-picks label input:checked+span{background:#eaf6ef;border-color:#65a77f;color:#286744;font-weight:800}.inline-number{display:grid;grid-template-columns:1fr 90px 28px;gap:8px;align-items:center}.inline-number>span{margin:0}.settings-note{font-size:12px;color:#777;line-height:1.55;background:#f7f8f9;border-radius:14px;padding:12px}
.rule-list{display:grid;gap:8px;margin-top:12px}.rule-card{display:flex;align-items:center;justify-content:space-between;border-radius:15px;padding:12px;border:1px solid #e9ebee}.rule-card span{display:grid;grid-template-columns:auto 1fr;gap:3px 10px}.rule-card small{grid-column:2;color:#777}.rule-card.allergy{border-left:4px solid #d9534f}.rule-card.avoid{border-left:4px solid #ef9a43}.rule-card.like{border-left:4px solid #54a977}.rule-card button{border:0;background:#f5f5f6;border-radius:9px;padding:7px}
.event-manage-list{display:grid;gap:8px}.event-manage-list>button{display:grid;grid-template-columns:100px 1fr auto;gap:9px;align-items:center;text-align:left;border:1px solid #e9ebee;background:#fff;border-radius:15px;padding:11px}.event-manage-list span{display:flex;flex-direction:column}.event-manage-list small{color:#777}.event-manage-list em{font-style:normal;color:#59816b}
.voice-live-card{display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:18px;padding:14px;background:#edf7f1;margin:12px 0}.voice-live-card div{display:flex;flex-direction:column}.voice-live-card span{font-size:12px;color:#637069;margin-top:3px}.voice-live-card button{border:0;background:#408761;color:#fff;border-radius:13px;padding:10px 15px;font-weight:800}
.shopping-stock-list{display:grid;gap:12px}.shopping-stock-list section{border:1px solid #e9ebee;border-radius:18px;padding:13px}.stock-head{display:flex;gap:10px;align-items:center}.stock-head img,.stock-head .food-photo-pending{width:50px!important;height:50px!important}.stock-head div{display:flex;flex-direction:column}.stock-head small{color:#777}
.preview-table{display:grid;gap:7px}.preview-row{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr auto auto;gap:6px;align-items:center;border:1px solid #e8eaec;border-radius:14px;padding:10px;font-size:12px}.preview-row div{display:flex;flex-direction:column}.preview-row small{color:#888}.preview-row b{color:#a65b42}.preview-row em{font-style:normal;color:#34815c;font-weight:800}.preview-row button{border:0;background:#f3f4f5;border-radius:8px;padding:6px}.touch-adjust{margin-top:12px}.touch-adjust summary{font-weight:800}.touch-adjust>div{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #eee}.touch-adjust span{display:flex;flex-direction:column}.touch-adjust small{color:#777}.touch-adjust button{border:1px solid #e2e4e6;background:#fff;border-radius:9px;padding:7px 10px}
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#f0f2f3;border-radius:14px;padding:4px;margin-bottom:14px}.segmented button{border:0;background:transparent;border-radius:11px;padding:9px;font-weight:800}.segmented button.on{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.07)}
.movement-list{display:grid;gap:7px}.movement-list>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border-bottom:1px solid #eee;padding:9px 0}.movement-list span{display:flex;flex-direction:column}.movement-list small{color:#888}.movement-list b.plus{color:#37815d}.movement-list b.minus{color:#b35a4d}.movement-list em{font-style:normal;color:#777;font-size:11px}
.recipe-sheet-photo{width:100%;height:190px;object-fit:cover;border-radius:18px}.recipe-meta{display:flex;gap:7px;margin:10px 0}.recipe-meta span{background:#f4f5f6;border-radius:20px;padding:6px 9px;font-size:12px}.sheet-section-title{margin:18px 0 8px}.sheet-list>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee}.sheet-list span{color:#666}.recipe-steps-detailed{display:grid;gap:10px}.recipe-steps-detailed article{border:1px solid #e8ebed;border-radius:17px;padding:14px}.recipe-steps-detailed article>b{color:#4b8a65}.recipe-steps-detailed p{line-height:1.65}.step-meta{display:flex;gap:6px}.step-meta span{font-size:11px;background:#f4f5f5;border-radius:10px;padding:5px 7px}.recipe-steps-detailed aside{margin-top:9px;background:#fff8df;border-radius:11px;padding:9px;font-size:12px}.recipe-steps-detailed small{display:block;margin-top:8px;color:#478264}
@media(max-width:420px){.preview-row{grid-template-columns:1fr auto auto}.preview-row em{grid-column:2}.preview-row button{grid-row:2}.event-manage-list>button{grid-template-columns:85px 1fr}.event-manage-list em{display:none}}

.voice-log-panel{margin:12px 0;border:1px solid #e7e9ec;border-radius:17px;background:#fff;padding:12px}.voice-log-panel .section-head{margin:0 0 8px}.voice-log-panel .section-head small{color:#777}.voice-log{border-top:1px solid #eef0f1;padding:10px 0}.voice-log:first-child{border-top:0}.voice-log>div{display:flex;justify-content:space-between}.voice-log>div small{color:#999}.voice-log p{margin:6px 0;font-weight:700;line-height:1.5}.voice-log aside{display:flex;gap:7px;align-items:flex-start;background:#f3f8f5;border-radius:11px;padding:8px;font-size:12px}.voice-log aside b{color:#347454}.voice-log aside span{color:#56605a}


/* Stage 4 polish: fridge / events / voice */
.fridge-tools{position:relative;margin:8px 0 22px;padding:12px;background:#f7f9f8;border:1px solid #e8ece9;border-radius:18px}
.fridge-tools .inventory-search-wrap{display:flex;align-items:center;margin:0;position:relative}
.fridge-tools .inventory-search-wrap>span{position:absolute;left:13px;z-index:2;color:#7d8580}
.fridge-tools .inventory-search-wrap input{width:100%;min-width:0;padding-left:36px}
.fridge-suggestions{position:static!important;left:auto!important;right:auto!important;margin:8px 0 0;box-shadow:none!important;border:1px solid #e5e9e6;background:#fff}
.fridge-tools .quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0}
.fridge-tools .quick-actions button{min-width:0;white-space:normal;line-height:1.25}
.fridge-tools .quick-actions .voice-quick{background:#edf7f1;border-color:#cfe6d8;color:#2f7551}
.fridge-bottom-actions{display:grid;gap:10px;margin:24px 0 10px}
.fridge-bottom-actions .secondary{margin:0!important;padding:14px 16px}
.fridge-bottom-actions .secondary span{display:block;margin-top:3px;font-size:11px;font-weight:500;color:#7b817e}
.fridge-bottom-actions .text-btn{margin:0!important;padding:9px}

.event-date-time{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;width:100%}
.event-date-time .field{min-width:0}
.event-date-time input{box-sizing:border-box;width:100%;min-width:0}
.event-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.event-members label,.event-members label span{min-width:0}
.event-members label span{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.event-meal-toggle{margin:14px 0}
.hidden{display:none!important}
.small-textarea{min-height:78px}
.family-event-head{align-items:flex-start}

.comment-voice-block{transition:.2s;border:1px solid transparent;border-radius:18px;padding:14px!important}
.comment-voice-block.recording{background:#f1faf5;border-color:#bcdcc9;box-shadow:0 0 0 3px rgba(72,151,104,.07)}
.comment-voice-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.comment-voice-head h3{margin:0}
.comment-voice-head small{display:block;color:#7a817d;margin-top:4px}
.comment-voice-btn{display:grid;grid-template-columns:auto auto;grid-template-areas:"dot title" "dot sub";align-items:center;column-gap:7px;border:1px solid #d9e2dc;background:#fff;border-radius:15px;padding:9px 12px;text-align:left;min-width:145px}
.comment-voice-btn .mic-dot{grid-area:dot;width:12px;height:12px;border-radius:50%;background:#8f9993}
.comment-voice-btn b{grid-area:title;font-size:12px}
.comment-voice-btn em{grid-area:sub;font-style:normal;font-size:10px;color:#7f8782}
.comment-voice-btn.recording{background:#397d56;color:#fff;border-color:#397d56}
.comment-voice-btn.recording em{color:#e1f2e7}
.comment-voice-btn.recording .mic-dot{background:#fff;animation:voicePulse 1.05s infinite}
.voice-comment-status{margin:8px 0 0;font-size:12px;color:#65706a;min-height:18px}
.comment-voice-block.recording .voice-comment-status{color:#2f7551;font-weight:800}
.voice-panel.voice-active{background:#edf8f1!important;border-color:#b9ddc8!important}
.voice-panel #voiceToggle.on{background:#347b52;color:#fff}
@keyframes voicePulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.7);transform:scale(1)}50%{box-shadow:0 0 0 6px rgba(255,255,255,0);transform:scale(1.12)}}

.home-recipe span em{display:block;margin-top:3px;font-style:normal;font-size:11px;color:#8b918e}

@media(max-width:430px){
  .event-date-time{grid-template-columns:1fr}
  .event-members{grid-template-columns:1fr 1fr}
  .comment-voice-head{align-items:stretch;flex-direction:column}
  .comment-voice-btn{width:100%}
  .fridge-tools .quick-actions{grid-template-columns:1fr 1fr}
}


/* Stage 5 cooking UI */
.cook-status{display:grid;gap:8px;margin-bottom:10px}.cook-status>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.cook-status b{font-size:15px}.cook-status em{font-style:normal;font-size:12px;color:#7a817d}.cook-progress{height:6px;background:#eef0ef;border-radius:999px;overflow:hidden}.cook-progress i{display:block;height:100%;background:currentColor;border-radius:999px;color:#4b8a65}
.instruction{padding:18px 0}.instruction h2{font-size:22px;line-height:1.55;margin:0 0 12px}.step-detail{display:flex;flex-wrap:wrap;gap:7px}.step-detail span{background:#f4f6f5;border-radius:12px;padding:7px 9px;font-size:12px}.step-tip{margin-top:10px;background:#fff8df;border-radius:12px;padding:10px;font-size:12px}.completion-cue{display:block;margin-top:10px;color:#478264;line-height:1.45}
.handsfree-card{margin-top:18px;border:1px solid #e4e8e5;border-radius:18px;background:#f8f9f8;padding:13px;transition:.2s}.handsfree-card.on{background:#eef8f2;border-color:#b8dcc7;box-shadow:0 0 0 3px rgba(69,140,95,.06)}
.handsfree-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.handsfree-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fff;border:1px solid #e4e8e5}.handsfree-head>div{min-width:0}.handsfree-head strong{display:block}.handsfree-head small{display:block;color:#6d756f;margin-top:3px;white-space:normal;line-height:1.35}
.handsfree-toggle{display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:0;font-weight:800}.handsfree-toggle>span{font-size:11px;color:#8a918d}.handsfree-toggle>i{position:relative;width:44px;height:25px;border-radius:999px;background:#d8ddda;transition:.2s}.handsfree-toggle>i:after{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.2s}.handsfree-toggle.on>span{color:#2f7551}.handsfree-toggle.on>i{background:#4a9568}.handsfree-toggle.on>i:after{transform:translateX(19px)}
.handsfree-live{margin-top:10px;border-radius:11px;padding:8px 10px;background:#fff;color:#2f7551;font-size:12px;font-weight:700}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4a9568;margin-right:5px;animation:voicePulse 1s infinite}
.handsfree-log{margin-top:8px}.handsfree-log summary{font-size:11px;color:#758078;cursor:pointer}.handsfree-log .voice-log-panel{margin-bottom:0}
@media(max-width:420px){.handsfree-head{grid-template-columns:auto minmax(0,1fr) auto}.instruction h2{font-size:20px}.cook-status>span{align-items:flex-start}}

/* Stage 7 한끼온 branding + meal plan generator */
.plan-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.plan-title>div{min-width:0}
.plan-create-btn{border:0;background:#2f7a50;color:#fff;border-radius:14px;padding:11px 13px;font-weight:800;white-space:nowrap}
.meal-empty{padding:14px;border:1px dashed #dfe5e1;border-radius:14px;color:#8a918d;font-size:12px;background:#fafbfa}
.meal-plan-intro{background:linear-gradient(135deg,#eef8f2,#fff9e9);border:1px solid #dbeadf;border-radius:20px;padding:18px}
.plan-option-card{display:grid;gap:10px;background:#fff;border:1px solid #e4e8e5;border-radius:18px;padding:16px;margin:14px 0}.plan-option-card strong{margin-bottom:2px}.plan-option-card label{display:flex;align-items:center;gap:9px;font-size:13px}
.plan-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:24px 0 10px}.plan-preview-head h3,.plan-preview-head p{margin:0}.plan-preview-head p{font-size:11px;color:#7d8580;margin-top:4px}
.plan-preview{display:grid;gap:9px;margin-bottom:14px}.plan-preview-row{display:flex;align-items:center;gap:10px;border:1px solid #e4e8e5;background:#fff;border-radius:16px;padding:12px}.plan-preview-row>span{display:grid;gap:3px;min-width:0;flex:1}.plan-preview-row b{font-size:11px;color:#6f7973}.plan-preview-row strong{font-size:14px}.plan-preview-row small{font-size:11px;color:#7d8580}.plan-preview-row button{border:0;background:#f2f6f3;color:#397b55;border-radius:10px;padding:8px;font-size:11px;font-weight:800}
.appmark{background-image:url('../../public/assets/images/icons/app-192.png');background-size:cover;background-position:center;color:transparent!important}
@media(max-width:430px){.plan-title{align-items:flex-start}.plan-title .plan-create-btn{font-size:12px;padding:10px}.plan-preview-row{align-items:flex-start}}

.meal-plan-loading{margin:18px 0;padding:28px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;text-align:center}
.meal-plan-loading h3{margin:14px 0 8px;font-size:16px}
.meal-plan-loading p{min-height:20px;margin:0;color:#6f6962;font-size:12px;font-weight:700}
.meal-plan-loading small{display:block;margin-top:12px;color:var(--muted);font-size:10px;line-height:1.55}
.meal-plan-spinner{height:34px;display:flex;align-items:center;justify-content:center;gap:7px}
.meal-plan-spinner span{width:9px;height:9px;border-radius:50%;background:var(--orange);animation:mealPlanPulse 1.1s ease-in-out infinite}
.meal-plan-spinner span:nth-child(2){animation-delay:.16s}.meal-plan-spinner span:nth-child(3){animation-delay:.32s}
@keyframes mealPlanPulse{0%,70%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-8px);opacity:1}}
#mealPlanSuggestBtn:disabled{opacity:.65;cursor:wait}

/* Stage 9: clearer meal slots, master tabs, profiles and recipe actions */
.meal-row.slot-breakfast{border-left:4px solid #f1b75c}.meal-row.slot-lunch{border-left:4px solid #6db6a3}.meal-row.slot-dinner{border-left:4px solid #7e78b8}
.slot.slot-breakfast{background:#fff3d8}.slot.slot-lunch{background:#e7f5ef}.slot.slot-dinner{background:#efedfb}
.master-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#ece9e4;padding:5px;border-radius:14px;margin:0 0 12px}
.master-tabs button{border:0;background:transparent;padding:11px;border-radius:10px;font-weight:800}.master-tabs button.on{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.master-search{margin-bottom:12px}.ingredient-master-list{display:grid;gap:8px}.ingredient-card{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);background:#fff;border-radius:15px;text-align:left}.ingredient-card>span{flex:1}.ingredient-card strong,.ingredient-card small{display:block}.ingredient-card small{color:var(--muted);margin-top:4px}
.recipe-use-options{display:grid;gap:10px}.recipe-use-options button{border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px;text-align:left}.recipe-use-options b,.recipe-use-options span{display:block}.recipe-use-options span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}
.family-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#f2eee8;flex:0 0 auto}.family-avatar-img{width:100%;height:100%;object-fit:cover}.family-avatar-emoji{font-size:27px}.family-card .family-remove{opacity:.65}
.avatar-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:8px 0 14px}.avatar-picker input{display:none}.avatar-picker span{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--line);border-radius:50%;font-size:23px;background:#fff}.avatar-picker input:checked+span{outline:3px solid rgba(244,123,32,.25);border-color:var(--orange)}
.photo-upload{display:block;border:1px dashed #cfc8be;border-radius:14px;padding:13px;margin:10px 0}.photo-upload b,.photo-upload span{display:block}.photo-upload span{font-size:11px;color:var(--muted);margin:3px 0 8px}.photo-upload input{max-width:100%}

.family-card{position:relative;z-index:0}
.family-card button{position:relative;z-index:2;pointer-events:auto}
.sheet-panel button,.sheet-panel input,.sheet-panel select,.sheet-panel label{pointer-events:auto}

/* Stage 10 pre-reset test polish */
.plan-option-card.locked{opacity:.55;pointer-events:none;filter:grayscale(.15)}
.meal-summary.compact{padding:18px 18px 17px;min-height:0}.meal-summary-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.meal-summary-top span{font-size:11px;font-weight:800;color:var(--orange)}.meal-summary-top em{font-style:normal;font-size:10px;color:var(--muted);background:#fff;padding:5px 8px;border-radius:20px}.meal-summary.compact h2{margin:10px 0 4px;font-size:22px}.meal-summary.compact p{margin:0;font-size:12px;color:var(--muted)}
.meal-prep-section{margin-top:17px}.prep-menu-list{display:grid;gap:8px}.prep-menu-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:10px;background:#fff}.prep-menu-card>span{flex:1}.prep-menu-card strong,.prep-menu-card small{display:block}.prep-menu-card strong{font-size:15px}.prep-menu-card small{font-size:11px;color:var(--muted);margin-top:4px}.prep-menu-card .photo,.prep-menu-card .photo-placeholder{width:58px;height:58px;border-radius:13px;overflow:hidden;flex:0 0 58px}.prep-menu-card img{width:100%;height:100%;object-fit:cover}
.meal-people-grid{display:flex;gap:13px;flex-wrap:wrap;padding:4px 1px}.meal-person{width:58px;text-align:center}.meal-person-avatar{width:48px;height:48px;margin:0 auto 5px;border-radius:50%;overflow:hidden;background:#f2eee8;display:grid;place-items:center}.meal-person-avatar .family-avatar-img{width:100%;height:100%;object-fit:cover}.meal-person-avatar .family-avatar-emoji{font-size:27px}.meal-person strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.section-head h3 small{font-size:11px;color:var(--muted);font-weight:600}.prep-cook-cta{margin-top:16px}
.cook-menu-intro{padding-bottom:14px}.cook-menu-progress{height:7px;border-radius:999px;background:#ece9e4;overflow:hidden;margin-top:12px}.cook-menu-progress i{display:block;height:100%;background:var(--green);border-radius:inherit}
.cook-card.state-completed{opacity:.52;background:#f2f3f1;border-color:#e4e6e2;filter:saturate(.5)}.cook-card.state-completed em{color:#66746b;background:#e4ebe6;padding:5px 8px;border-radius:999px}.cook-card.state-not_started,.cook-card.state-cooking{background:#fff;border:1.5px solid #e2d8ce;box-shadow:0 3px 12px rgba(54,44,35,.05)}.cook-card.state-not_started em,.cook-card.state-cooking em{color:var(--orange);font-weight:900}.cook-card.state-not_started strong,.cook-card.state-cooking strong{font-size:15px}.all-cook-done{margin-top:16px}
.family-list.refined{gap:9px}.family-card.refined{min-height:82px;padding:12px 13px;cursor:pointer}.family-avatar.large{width:56px;height:56px;flex:0 0 56px}.family-avatar.large .family-avatar-emoji{font-size:31px}.family-card.refined>span strong{font-size:16px}.family-card.refined>span small{font-size:11px;margin-top:5px}.family-edit-btn{min-width:48px;padding:8px 10px!important}.family-add-cta{margin-top:14px}.danger-text-btn{display:block;width:100%;margin-top:15px;border:0;background:transparent;color:#b94e46;padding:10px;font-weight:800}
.hero.hero-with-photo{padding:0;overflow:hidden}.hero-food-photo{height:150px;width:100%;overflow:hidden;background:#ece8e2}.hero-food-photo .photo,.hero-food-photo .photo-placeholder{width:100%;height:100%;border-radius:0}.hero-food-photo img{width:100%;height:100%;object-fit:cover}.hero-food-placeholder{height:92px;display:grid;place-items:center;font-size:34px;background:rgba(255,255,255,.25)}.hero-copy{padding:17px 18px 18px}.hero-copy>small{font-size:11px;font-weight:900}.hero-copy h2{margin:7px 0 5px}.hero-copy p{margin:0 0 14px}

/* Stage 10b fixes */
.prep-menu-card{min-height:82px}.prep-menu-thumb{width:68px;height:68px;flex:0 0 68px;border-radius:14px;overflow:hidden;background:#f3f0eb;display:grid;place-items:center}.prep-menu-thumb>img{width:100%!important;height:100%!important;object-fit:cover!important;display:block}.prep-menu-thumb .food-photo-pending{width:100%;height:100%;border-radius:0;display:grid;place-items:center;align-content:center}.prep-menu-thumb .food-photo-pending span{font-size:20px}.prep-menu-thumb .food-photo-pending small{font-size:9px}
.prep-menu-card>span{min-width:0}.prep-menu-card strong{white-space:normal;word-break:keep-all}.prep-menu-card small{white-space:normal}
.cooking-repair{margin-top:40px}.cooking-repair p{line-height:1.6}
.notice-inline{font-size:11px;color:var(--muted);background:#f5f3ef;padding:9px 11px;border-radius:11px;margin:10px 0}.notice-inline.ok{color:#3d735d;background:#edf7f1}.notice-inline.error{color:#a44942;background:#fff0ee}

.global-busy-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(248,246,242,.94);display:grid;place-items:center;padding:24px;touch-action:none;overscroll-behavior:none}
.global-busy-card{width:min(360px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 20px;text-align:center;box-shadow:0 18px 50px rgba(0,0,0,.12)}
.global-busy-card h3{margin:15px 0 7px;font-size:18px}.global-busy-card p{margin:0;color:var(--muted);line-height:1.5}.global-busy-card small{display:block;margin-top:10px;color:#8c8882}
.app-busy-locked .app{pointer-events:none;user-select:none}
.cook-compact,.cook-list,.choice-grid,.prep-cook-cta,.step-actions{touch-action:manipulation}

/* Stage 10e: meal-plan duplicate visibility + per-row replacement loading */
.plan-preview-row{position:relative;overflow:hidden}
.plan-menu-line{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap}
.plan-menu-name{display:inline-flex;align-items:center;gap:5px}
.menu-dot{font-style:normal;color:#aaa}
.duplicate-badge{font-style:normal;font-size:10px;line-height:1;padding:5px 7px;border-radius:999px;background:#fff3df;color:#a65d00;border:1px solid #f1d2a3;white-space:nowrap}
.duplicate-notice{margin:10px 0 13px;padding:13px;border:1px solid #efd7b5;background:#fffaf2;border-radius:15px}.duplicate-notice>div:first-child b{font-size:13px}.duplicate-notice p{font-size:11px;color:var(--muted);margin:4px 0 9px;line-height:1.45}.duplicate-notice .compact{padding:8px 10px;font-size:11px;width:auto}
.duplicate-summary{margin-top:10px;border-top:1px solid #f0dfc8;padding-top:5px}.duplicate-summary-row{display:grid;grid-template-columns:minmax(70px,1fr) minmax(110px,1.6fr) auto;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid #f5e9d9}.duplicate-summary-row strong{font-size:11px}.duplicate-summary-row span{font-size:10px;color:var(--muted)}.duplicate-summary-row button{font-size:10px}
.plan-preview-row.duplicate-focus{outline:2px solid #e8a64b;outline-offset:-2px}
.plan-row-loading{position:absolute;inset:0;z-index:5;background:rgba(255,255,255,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px;touch-action:none}
.plan-row-loading[hidden]{display:none}
.plan-row-loading b{font-size:12px;margin-top:7px}.plan-row-loading small{font-size:10px;color:var(--muted);margin-top:4px;max-width:260px;line-height:1.4}
.plan-preview-row.is-replacing>*:not(.plan-row-loading){pointer-events:none}
.mini-spinner{width:24px;height:24px;border:3px solid #eee;border-top-color:#c87824;border-radius:50%;animation:miniSpin .7s linear infinite}
@keyframes miniSpin{to{transform:rotate(360deg)}}

.shopping-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 13px;padding:11px 12px;background:#fff;border:1px solid var(--line);border-radius:14px}.shopping-summary b{font-size:13px}.shopping-summary span{font-size:11px;color:var(--muted);flex:1}.shopping-summary .compact{width:auto;padding:7px 9px}.shopping-stock-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;overflow:hidden}.stock-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,.7fr);gap:9px}.stock-grid .field,.stock-grid .input{min-width:0;max-width:100%;box-sizing:border-box}.stock-grid .full{grid-column:1/-1}.sheet-panel{overflow-x:hidden!important}.sheet-panel *, .sheet-panel input,.sheet-panel select,.sheet-panel textarea{max-width:100%;box-sizing:border-box}.sheet-panel .input{width:100%}.record-list{display:grid;gap:8px}.record-card{display:flex;align-items:center;gap:10px;width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;text-align:left}.record-card span{flex:1}.record-card strong,.record-card small{display:block}.record-card small{font-size:10px;color:var(--muted);margin-top:4px}.inline-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.inline-title .compact{width:auto;white-space:nowrap}.event-date-head{padding:18px 3px 7px}.event-manage-card{width:100%;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:8px;text-align:left}.event-manage-card span{flex:1;min-width:0}.event-manage-card strong,.event-manage-card small{display:block}.event-manage-card small{font-size:10px;color:var(--muted);margin-top:4px}.participant-picker label span{min-height:46px}
\n/* Stage 10i */
.record-list{display:grid;gap:8px}.record-card{display:flex;align-items:center;gap:10px;width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;text-align:left}.record-card span{flex:1}.record-card strong,.record-card small{display:block}.record-card small{font-size:10px;color:var(--muted);margin-top:4px}.record-people{display:flex;gap:9px;flex-wrap:wrap}.record-person{display:flex;align-items:center;gap:6px;background:#f6f3ee;padding:6px 8px;border-radius:999px}.record-person img{width:28px;height:28px;object-fit:cover;border-radius:50%}.record-detail-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.record-analysis{white-space:pre-wrap;font-size:11px;background:#f7f5f1;padding:10px;border-radius:10px}.more-dev-zone{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.more-dev-zone h3{font-size:12px;margin:0 0 8px}.more-dev-zone small{display:block;margin-top:8px;color:var(--muted);line-height:1.4}.danger-outline{width:100%;padding:11px;border:1px solid #d98d86;background:#fff7f6;color:#ad443b;border-radius:12px;font-weight:800}\n
/* Stage 10k - cooking and richer meal records */
.record-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 0 18px}.record-page-head h1{font-size:24px;margin:0 0 4px}.record-page-head p{margin:0;color:var(--muted);font-size:12px}.record-count{padding:6px 9px;border-radius:999px;background:#f4efe8;color:#705f50;font-size:11px;font-weight:800}.record-timeline{display:grid;gap:10px}.record-summary-card{width:100%;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px;box-shadow:0 3px 12px rgba(54,44,35,.035)}.record-date-badge{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#faf6ef;border-radius:13px;padding:8px 6px}.record-date-badge b{font-size:11px}.record-date-badge span{margin-top:4px;color:var(--orange);font-size:11px;font-weight:900}.record-summary-main{min-width:0}.record-summary-main strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-summary-main small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.record-summary-main p{margin:7px 0 0;color:#756d64;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-summary-card>em{font-style:normal;color:#aaa;font-size:20px}
.record-detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:3px 1px 16px}.record-detail-hero h2{font-size:20px;margin:8px 0 4px;line-height:1.25}.record-detail-hero p{margin:0;color:var(--muted);font-size:11px}.record-slot-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff1df;color:#a45c00;font-size:10px;font-weight:900}.sheet-close{width:36px;height:36px;border:0;border-radius:50%;background:#f5f3ef;font-size:20px}.record-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.record-stat-grid>div{background:#faf8f4;border:1px solid #eee8df;border-radius:14px;padding:11px 6px;text-align:center}.record-stat-grid b{display:block;font-size:18px}.record-stat-grid span{display:block;margin-top:2px;color:var(--muted);font-size:9px}.record-section{padding:14px 0;border-top:1px solid var(--line)}.record-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.record-section-title h3{margin:0;font-size:14px}.record-section-title>span{font-size:10px;color:var(--muted)}.record-menu-grid{display:grid;gap:8px}.record-menu-item{display:flex;align-items:center;gap:10px;background:#fbfaf8;border-radius:13px;padding:9px}.record-menu-item img,.record-menu-item .food-photo-pending{width:46px!important;height:46px!important;flex:0 0 46px;border-radius:11px;object-fit:cover}.record-menu-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:11px;background:#f1ece5;font-size:21px}.record-menu-item strong,.record-menu-item small{display:block}.record-menu-item small{margin-top:3px;color:var(--muted);font-size:9px}.record-people-pretty{display:flex;gap:12px;overflow-x:auto;padding:2px 0}.record-people-pretty>div{min-width:58px;text-align:center}.record-people-pretty img{width:46px;height:46px;object-fit:cover;border-radius:50%}.record-people-pretty .family-avatar-emoji{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#f3efe9;font-size:25px;margin:auto}.record-people-pretty b{display:block;margin-top:5px;font-size:10px}.guest-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#edf4ef;color:#397657;font-size:22px;margin:auto}.record-leftover-list{display:grid;gap:7px}.record-leftover-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5faf6;border-radius:12px;padding:10px}.record-leftover-list b{font-size:11px}.record-leftover-list span{font-size:10px;color:#4d765c}.record-empty-good{background:#f5faf6;color:#477256;border-radius:12px;padding:10px;font-size:11px}.record-comment-box{border-top:1px solid var(--line)}.record-comment-box>p{background:#fff9ef;border-radius:13px;padding:12px;margin:0;font-size:12px;line-height:1.55}.record-ai-note{margin-top:8px;padding:10px 11px;border-radius:12px;background:#f3effa}.record-ai-note b,.record-ai-note span{display:block}.record-ai-note b{font-size:10px;color:#68528f}.record-ai-note span{margin-top:4px;font-size:10px;line-height:1.45;color:#6f6879}.record-more-pretty{margin:4px 0 8px;border:1px solid var(--line);border-radius:13px;overflow:hidden}.record-more-pretty summary{padding:11px 12px;font-size:11px;font-weight:800;cursor:pointer}.record-detail-inside{padding:0 12px 12px}.record-check-row{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #eee}.record-check-row span,.record-check-row b{font-size:10px}.record-check-row b{color:#4f765a}.record-detail-inside h4{font-size:11px;margin:13px 0 5px}.record-ingredient-list>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dotted #ddd}.record-ingredient-list span,.record-ingredient-list b{font-size:10px}

/* Stage 10l - simple cooking + prep tips */
.prep-tip-card{margin:12px 0 16px;padding:14px;background:linear-gradient(180deg,#fffaf0,#fff);border:1px solid #eee1c9;border-radius:18px;box-shadow:0 5px 18px rgba(80,60,30,.05)}
.prep-tip-head{display:flex;gap:9px;align-items:center;margin-bottom:8px}.prep-tip-head>span{font-size:22px}.prep-tip-head b,.prep-tip-head small{display:block}.prep-tip-head small{font-size:10px;color:var(--muted);margin-top:2px}
.prep-tip-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px dashed #eadfcf}.prep-tip-row:first-of-type{border-top:0}.prep-tip-row>div{flex:1}.prep-tip-row strong{font-size:12px}.prep-tip-row p{font-size:11px;line-height:1.45;margin:3px 0 0;color:#555}.prep-tip-row em{white-space:nowrap;background:#fff0d2;padding:5px 7px;border-radius:999px;font-size:10px;font-style:normal;font-weight:800}
.step-amounts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.step-amounts span{background:#f4efe7;border-radius:999px;padding:6px 8px;font-size:11px;font-weight:800}

/* Stage 10n */
.global-busy{position:fixed;inset:0;z-index:99999;background:rgba(255,255,255,.78);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px}
.global-busy-box{min-width:220px;max-width:310px;background:#fff;border-radius:20px;padding:24px 20px;text-align:center;box-shadow:0 16px 50px rgba(0,0,0,.16)}
.global-busy-box strong,.global-busy-box small{display:block}.global-busy-box small{margin-top:6px;color:var(--muted);font-size:11px}
.global-spinner{display:block;width:32px;height:32px;margin:0 auto 14px;border:3px solid #e8e2da;border-top-color:#555;border-radius:50%;animation:hkspin .75s linear infinite}
@keyframes hkspin{to{transform:rotate(360deg)}}html.busy-locked,html.busy-locked body{overflow:hidden}
.meal-outcome-guide{margin:12px 0;padding:14px;border-radius:16px;background:#faf8f4}.meal-outcome-guide h3{margin:0 0 4px;font-size:14px}.meal-outcome-guide p{margin:0 0 10px;font-size:11px;color:var(--muted)}
.outcome-legend{display:flex;gap:6px;flex-wrap:wrap}.outcome-legend span{font-size:10px;font-weight:800;background:#fff;padding:6px 8px;border-radius:999px;border:1px solid #ece7df}

/* Stage 10p */
.cook-ingredient{display:inline-block;background:#fff0d6;border:1px solid #f0d2a1;border-radius:8px;padding:1px 5px;margin:1px 2px;font-weight:850;color:#714718}.cook-ingredient b{font-weight:950}
.autosave-state{min-height:20px;margin:8px 4px 2px;text-align:right;font-size:11px;font-weight:800;color:var(--muted)}

/* Stage 10v accumulated UX polish */
.bottom-nav{height:78px;padding:8px 4px max(6px,env(safe-area-inset-bottom));align-items:stretch}.bottom-nav button{min-width:0;gap:4px;padding:4px 0}.bottom-nav b{width:24px;height:24px;display:grid;place-items:center;font-size:18px;line-height:1}.bottom-nav span{font-size:10px;line-height:1.2}.app{padding-bottom:92px}
.inventory-all-head{display:flex;justify-content:space-between;align-items:center;margin:2px 0 14px}.inventory-all-head h2{margin:0;font-size:24px}.inventory-all-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.inventory-all-head>b{background:var(--green2);color:var(--green);padding:7px 10px;border-radius:999px}.inventory-tabs button{display:flex;align-items:center;justify-content:center;gap:6px}.inventory-tabs em{font-style:normal;font-size:10px;background:#e7e9e8;padding:2px 6px;border-radius:999px}.inventory-tabs button.on em{background:var(--green2);color:var(--green)}.inventory-grid.polished{gap:10px}.inventory-card.grouped{padding:12px;border-radius:18px;background:#fff;box-shadow:0 5px 16px rgba(50,50,40,.035)}.inventory-card.grouped img{width:54px;height:50px}.inventory-card.grouped small{font-size:11px;line-height:1.45}.inventory-card.grouped em{display:inline-block;margin-top:5px;background:#f2eefb;padding:3px 6px;border-radius:8px}
.shop-remove{flex:none!important;width:28px!important;height:28px!important;border:0!important;border-radius:9px!important;background:#f7f3f0!important;color:#9a6c62!important;padding:0!important;font-size:18px!important}.meal-edit-mini{border:0;background:#fff2e8;color:var(--orange);border-radius:9px;padding:7px 9px;font-size:10px;font-weight:850}.meal-edit-rows{display:grid;gap:8px;margin:12px 0}.meal-edit-rows label{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.meal-edit-rows label>span{font-size:11px;color:var(--muted)}.meal-edit-rows label>button{border:0;background:#fff1f1;color:var(--danger);border-radius:9px;padding:9px}
.voice-review{border:1px solid #dce9e1;background:#f7fbf8;border-radius:18px;padding:12px;margin:10px 0 14px}.voice-review-head b,.voice-review-head small{display:block}.voice-review-head small{font-size:10px;color:var(--muted);margin-top:3px}.voice-review-items{display:grid;gap:7px;margin:10px 0}.voice-review-item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e4ebe6;border-radius:12px;padding:9px}.voice-review-item span{flex:1}.voice-review-item b,.voice-review-item small{display:block}.voice-review-item small{font-size:10px;color:var(--muted);margin-top:2px}.voice-review-item button{border:0;background:var(--green);color:#fff;border-radius:9px;padding:8px;font-size:10px;font-weight:800}.voice-review details{border-top:1px solid #e7ece8;padding-top:8px}.voice-review summary{font-size:10px;color:#727a75}.voice-review details p{font-size:11px;margin:7px 0 0;line-height:1.5}
@media(max-width:440px){.page{padding-top:22px}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.bottom-nav button{width:100%}}

.focus-flash{animation:focusFlash 1.8s ease}
@keyframes focusFlash{0%,100%{box-shadow:none}25%,70%{box-shadow:0 0 0 4px rgba(66,133,244,.18)}}
.inventory-move-actions{display:flex;gap:6px;align-items:center}.inventory-move-actions .mini{padding:7px 9px;border:1px solid #ddd;border-radius:10px;background:#fff}
.move-location-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.move-location-grid button{padding:15px;border:1px solid #ddd;border-radius:14px;background:#fff}.move-location-grid button.on{font-weight:700;border-width:2px}
.shortage-list{display:grid;gap:8px;margin:14px 0}.shortage-row{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #eee;border-radius:14px}.shortage-row span{display:grid;gap:3px}.shortage-row small{color:#777}
.push-status-card{margin-top:14px;padding:16px;border:1px solid #ececec;border-radius:18px;background:#fff}.push-status-card h3{margin:0 0 8px}.push-status-card button{width:100%;margin-top:8px}

.push-device-card{margin-top:12px;padding:16px;border:1px solid #ececec;border-radius:18px;background:#fff}.push-device-card h3{margin:0 0 10px}
.push-device-list{display:grid;gap:8px}.push-device-list>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0f0f0}.push-device-list span{display:grid;gap:2px}.push-device-list small,.push-device-list em{font-size:12px;color:#777;font-style:normal}
.push-result-list{display:grid;gap:9px;margin:12px 0}.push-result{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:12px;border:1px solid #eee;border-radius:14px}.push-result span{display:grid}.push-result>small{grid-column:1/-1;color:#777}.push-result.ok>b{color:#15803d}.push-result.fail>b{color:#b42318}

.push-result>small b{display:block;margin-top:5px;color:#8a4b08;font-weight:700}

.inventory-card.grouped.selectable{display:block}.inventory-card-head{display:flex;align-items:center;gap:10px}.inventory-card-head>span{display:grid;gap:2px}.inventory-batches{display:grid;gap:7px;margin-top:10px}.inventory-batch-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px;background:#fff}.inventory-batch-row.selected{outline:2px solid rgba(231,151,88,.28);background:#fffaf5}.inventory-batch-row>span{display:grid;gap:2px}.inventory-batch-row small{color:var(--muted);font-size:11px}.inventory-bulk-bar{position:sticky;top:8px;z-index:5;display:flex;align-items:center;gap:8px;padding:10px 12px;margin:10px 0;border:1px solid #edd9c9;border-radius:14px;background:#fff8f1;box-shadow:0 8px 24px rgba(60,40,20,.08)}.inventory-bulk-bar b{margin-right:auto}.quantity-unit{display:flex;align-items:center;gap:8px}.quantity-unit .input{flex:1}

.ai-warning{display:grid;gap:4px;margin:0 0 12px;padding:12px 14px;border:1px solid #f0d2a8;border-radius:14px;background:#fff8ed;color:#704519}
.ai-warning b{font-size:14px}.ai-warning span{font-size:12px;line-height:1.45}

.meal-ingredient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.meal-ingredient-grid>div{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fff}
.meal-ingredient-grid strong{font-size:13px}.meal-ingredient-grid span{font-size:12px;color:var(--muted);white-space:nowrap}
.cook-usage-ref{margin-top:9px;padding:7px 9px;border-radius:9px;background:#f7f5f2;color:#82766b;font-size:11px;line-height:1.35;font-weight:500}
.cook-step-ingredients{margin:4px 0 10px}.cook-step-ingredients>small{display:block;margin-bottom:7px;color:#82766b}.cook-step-ingredients>div{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.cook-ingredient.derived{background:#eef3ff;border-color:#cfd9f2;color:#4e6090}.cook-derived-output{margin:2px auto 10px;padding:8px 10px;border-radius:10px;background:#edf7f0;color:#4f795d;font-size:11px}.cook-derived-output b{font-weight:900}

.inventory-bulk-toolbar{position:sticky;top:8px;z-index:8;margin:10px 0 14px;padding:12px;border:1px solid #ded8d0;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(55,45,35,.09);backdrop-filter:blur(12px)}
.inventory-bulk-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.inventory-bulk-title b{font-size:14px}.inventory-bulk-title .text-btn{margin-left:auto}
.selected-check{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#2f6b4f;color:#fff;font-size:13px}
.inventory-bulk-actions,.move-location-grid.visual{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.inventory-destination{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 5px;border:1px solid #e5e0da;border-radius:13px;background:#faf9f7;color:#50483f;font-size:11px;font-weight:700}
.inventory-destination svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.inventory-destination:not(.disabled):active{transform:translateY(1px);background:#f2efeb}.inventory-destination.disabled{opacity:.32}
.batch-move-pill{display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border:1px solid #ddd7cf;border-radius:999px;background:#fff;color:#62584e;font-size:11px;font-weight:700;white-space:nowrap}
.batch-move-pill svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:380px){.inventory-bulk-actions,.move-location-grid.visual{gap:5px}.inventory-destination{padding:8px 3px;font-size:10px}}

.thaw-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.thaw-choice .inventory-destination{min-height:78px;font-size:13px}
.thaw-choice .inventory-destination svg{width:27px;height:27px}
.sheet-help{margin:8px 2px 0;color:var(--muted);font-size:11px;line-height:1.5}

.past-meal-actions{display:grid;gap:9px;margin-top:10px}.past-meal-actions button{display:grid;text-align:left;gap:4px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}.past-meal-actions button b{font-size:14px}.past-meal-actions button span{font-size:11px;color:var(--muted);line-height:1.45}.past-meal-actions button.later{background:#f7f6f4}

/* Stage 10x.14 - master photo rendering fix */
.ingredient-card>img,.ingredient-card>.food-photo-pending{width:52px!important;height:52px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:12px!important;flex:0 0 52px!important;display:block;overflow:hidden}
.ingredient-card>.food-photo-pending{display:grid!important;place-items:center!important;align-content:center!important}
.recipe-card>img,.recipe-card>.food-photo-pending{width:100%!important;aspect-ratio:1.5/1!important;height:auto!important;object-fit:cover!important;border-radius:0!important;display:block;overflow:hidden}
.food-photo-img{object-fit:cover;max-width:100%}
/* Stage 10x.22 - household stock mode override */
.stock-mode-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:14px;border:1px solid #e7e2dc;border-radius:16px;background:#faf9f7}.stock-mode-card span{display:flex;flex-direction:column;gap:4px}.stock-mode-card small,.stock-mode-note span{color:#777;font-size:12px}.stock-mode-note{display:flex;flex-direction:column;gap:4px;margin:8px 0 14px;padding:12px 14px;border-radius:14px;background:#f3f8f3}.state-stock{display:flex;align-items:center;justify-content:space-between}.state-stock>span{display:flex;flex-direction:column;gap:3px}
.ingredient-card.inactive{opacity:.62;background:#f4f2ef}.master-status-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#eee7e4;color:#8b5b50;font-size:10px;font-style:normal;font-weight:800;vertical-align:middle}.master-manage-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.master-manage-actions button{min-height:42px}.master-manage-actions .danger-text-btn{grid-column:1/-1}.danger-note{background:#fff3ef;color:#8e4639}
.ingredient-detail-title{padding-bottom:4px}.sheet-eyebrow{display:block;margin-bottom:4px;color:var(--orange);font-size:10px;font-weight:900;letter-spacing:.12em}.ingredient-detail-hero{overflow:hidden;margin:14px 0 12px;border:1px solid #ebe5dc;border-radius:22px;background:linear-gradient(145deg,#fffaf2,#f4faf5);box-shadow:0 8px 26px rgba(55,43,31,.06)}.ingredient-detail-photo{display:grid;place-items:center;min-height:164px;padding:18px}.ingredient-detail-photo>.food-photo-img,.ingredient-detail-photo>.food-photo-pending{width:150px!important;height:150px!important;border-radius:22px!important;object-fit:cover!important;box-shadow:0 8px 22px rgba(0,0,0,.08)}.ingredient-facts{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ebe5dc;background:rgba(255,255,255,.72)}.ingredient-facts span{min-width:0;padding:12px 7px;text-align:center}.ingredient-facts span+span{border-left:1px solid #eee8df}.ingredient-facts small,.ingredient-facts b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ingredient-facts small{margin-bottom:4px;color:#968c81;font-size:9px;font-weight:800}.ingredient-facts b{font-size:12px}.ingredient-detail-section{margin:12px 0;padding:16px;border:1px solid #ebe7e1;border-radius:20px;background:#fff;box-shadow:0 5px 18px rgba(49,40,32,.04)}.ingredient-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.ingredient-section-head small{display:block;color:#9a8f84;font-size:9px;font-weight:900;letter-spacing:.11em}.ingredient-section-head h3{margin:3px 0 0;font-size:16px}.master-manage-actions.refined{display:grid;grid-template-columns:1fr;gap:8px;margin:0}.master-manage-actions.refined button{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;width:100%;min-height:60px;padding:10px 12px;border:1px solid #ece7e0;border-radius:15px;background:#fbfaf8;text-align:left}.master-manage-actions.refined button>i,.ingredient-merge-guide>i,.ingredient-merged-note>i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#eef7f1;color:#387555;font-size:19px;font-style:normal;font-weight:800}.master-manage-actions.refined button>span{min-width:0}.master-manage-actions.refined b,.master-manage-actions.refined small{display:block}.master-manage-actions.refined b{font-size:13px}.master-manage-actions.refined small{margin-top:3px;color:#938a80;font-size:10px}.master-manage-actions.refined em{color:#aaa096;font-style:normal;font-size:20px}.master-manage-actions.refined .master-stop-action>i{background:#fff3e5;color:#b46f1c}.master-manage-actions.refined .master-delete-action>i{background:#fff0f0;color:#b44343}.stock-inline-section{background:#fbfdfb}.stock-current-pill,.recipe-count-pill{padding:5px 9px;border-radius:999px;background:#edf7f0;color:#387555;font-size:10px;font-weight:800}.stock-mode-inline-select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.stock-mode-inline-select>span{font-size:12px;font-weight:800}.stock-mode-inline-select select{margin:0}.stock-mode-inline-fields{margin-top:10px}.stock-mode-inline-fields .field{margin-top:8px}.stock-inline-save{width:100%;margin-top:10px}.ingredient-section-help{margin:10px 2px 0;color:#8c847b;font-size:10px;line-height:1.55}.ingredient-recipe-links{display:grid;gap:8px}.ingredient-recipe-links>button{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;width:100%;padding:9px;border:1px solid #eee9e3;border-radius:15px;background:#fcfbf9;text-align:left}.ingredient-recipe-links .food-photo-img,.ingredient-recipe-links .food-photo-pending{width:48px!important;height:48px!important;border-radius:11px!important}.ingredient-recipe-links span{min-width:0}.ingredient-recipe-links b,.ingredient-recipe-links small{display:block}.ingredient-recipe-links b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ingredient-recipe-links small{margin-top:4px;color:#978e85;font-size:10px}.ingredient-recipe-links em{color:#aca39a;font-style:normal;font-size:20px}.ingredient-empty-recipes{display:grid;place-items:center;padding:22px 12px;border:1px dashed #ddd5ca;border-radius:15px;color:#948a80;text-align:center}.ingredient-empty-recipes i{font-size:25px;font-style:normal}.ingredient-empty-recipes b{margin-top:7px;color:#675f58;font-size:12px}.ingredient-empty-recipes small{margin-top:3px;font-size:10px}.ingredient-subview-title{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px}.ingredient-subview-title>div{min-width:0}.sheet-back-btn{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:12px!important;background:#f3f0eb!important;font-size:25px!important}.ingredient-edit-form{padding:4px 1px}.ingredient-merge-guide,.ingredient-merged-note{display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:16px;background:#f2f8f4}.ingredient-merge-guide{margin:4px 0 12px}.ingredient-merge-guide span,.ingredient-merged-note span{min-width:0}.ingredient-merge-guide b,.ingredient-merge-guide small,.ingredient-merged-note b,.ingredient-merged-note small{display:block}.ingredient-merge-guide small,.ingredient-merged-note small{margin-top:3px;color:#738078;font-size:10px;line-height:1.45}.ingredient-merged-note{margin:14px 0}.danger-note{background:#fff3ef;color:#8e4639}
/* Stage 10x.22 - household stock mode override */
.stock-mode-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:14px;border:1px solid #e7e2dc;border-radius:16px;background:#faf9f7}.stock-mode-card span{display:flex;flex-direction:column;gap:4px}.stock-mode-card small,.stock-mode-note span{color:#777;font-size:12px}.stock-mode-note{display:flex;flex-direction:column;gap:4px;margin:8px 0 14px;padding:12px 14px;border-radius:14px;background:#f3f8f3}.state-stock{display:flex;align-items:center;justify-content:space-between}.state-stock>span{display:flex;flex-direction:column;gap:3px}
/* Stage 10x.24: safe recipe-object meal editing */
.meal-edit-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:start;position:relative}.meal-edit-row>span{font-size:11px;color:var(--muted);padding-top:11px}.meal-edit-row>button{border:0;background:#fff1f1;color:var(--danger);border-radius:9px;padding:9px}.meal-edit-search{position:relative;min-width:0}.meal-recipe-suggestions{position:absolute;z-index:45;left:0;right:0;top:calc(100% + 4px);margin:0;background:#fff;border:1px solid #e6e8e6;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.14);padding:6px;max-height:300px;overflow:auto}.meal-recipe-suggestions:empty{display:none}.meal-recipe-suggestions button{width:100%}.meal-recipe-suggestions .ai-recipe-find{background:#f5fbf7}.meal-recipe-suggestions .ai-recipe-candidate{background:#fff9f0}.meal-recipe-suggestions .ai-searching{padding:12px;font-size:12px;color:#666}.legacy-menu-note{grid-column:2/4;color:#8a776d;font-size:10px;margin-top:-3px}
.batch-row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.inventory-empty-action{margin-top:8px;width:100%}

/* Stage 10x.37 - guided inventory register/audit */
.audit-list{display:grid;gap:8px;margin:12px 0}.audit-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e8e6;border-radius:14px;background:#fff;padding:11px 12px}.audit-row.warning{border-color:#e8c88d;background:#fffaf0}.audit-row>span{display:flex;flex-direction:column;gap:3px;min-width:0}.audit-row>span small{color:#777;font-size:11px}.audit-row>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.audit-row button{border:1px solid #e1e4e2;background:#fff;border-radius:9px;padding:7px 8px;font-size:11px}.inventory-search-wrap>input:first-child{flex:1}
/* 10x.38 fridge action hierarchy */
.fridge-primary-actions{margin-top:10px}
.fridge-add-menu{text-align:center;margin-top:6px;position:relative}
.fridge-add-menu>.text-btn{font-weight:700;padding:8px 14px}
.fridge-add-choices{display:flex;gap:8px;justify-content:center;margin-top:4px}
.fridge-add-choices[hidden]{display:none}
.fridge-add-choices button{border:1px solid var(--line,#e7e2dc);background:#fff;border-radius:12px;padding:9px 12px;font-weight:700}
/* 10x.39 family avatar containment: uploaded originals never control layout size */
.member-picks label span{display:flex;align-items:center;gap:7px}
.member-picks .family-avatar-img{width:32px!important;height:32px!important;min-width:32px;max-width:32px;object-fit:cover;object-position:center;border-radius:50%;display:block}
.member-picks .family-avatar-emoji{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:50%;background:#f3efe9;font-size:18px;line-height:1}

/* 10x.40 cooking session exit */
.cook-exit-actions{display:flex;gap:8px;justify-content:center;align-items:center;margin:12px 0 4px}.cook-exit-actions button{flex:1}.text-btn.danger{color:#a63b32}

/* 10x.41 cooking exit menu */
.cook-close-btn{font-size:27px;line-height:1;font-weight:400}.cook-exit-sheet{display:grid;gap:9px;margin-top:10px}.cook-exit-sheet button{text-align:left}.cook-exit-sheet button b,.cook-exit-sheet button span{display:block}.cook-exit-sheet button span{font-size:10px;color:var(--muted);font-weight:600;margin-top:4px;line-height:1.45}.cook-exit-sheet .danger-soft{color:var(--danger);border-color:#efd7d3;background:#fffafa}


/* stage10x43: shopping/audit action spacing */
.shopping-main-list.has-items + .shopping-add-btn{margin-top:14px}
.shopping-main-list.is-empty + .shopping-add-btn{margin-top:0}
.audit-actions{display:grid;gap:14px;margin-top:16px}
.audit-actions .audit-keep-all,.audit-actions .audit-finish{margin:0}
.audit-pending-list{display:grid;gap:8px;margin:12px 0}

/* stage10x44: inventory audit tab recovery + direct-action guidance */
.audit-direct-help{margin:10px 0 12px;padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.035);font-size:13px;line-height:1.5;color:#666}
.audit-direct-help b{color:#333}

/* Stage 10x45: family schedule polish + instant cached navigation */
.view-refreshing{position:relative}.view-refreshing:after{content:"";position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(440px,100%);height:2px;background:linear-gradient(90deg,transparent,var(--orange),transparent);z-index:80;animation:viewRefresh 1.05s linear infinite;pointer-events:none}@keyframes viewRefresh{0%{opacity:.1;transform:translateX(-50%) scaleX(.15)}50%{opacity:.9;transform:translateX(-50%) scaleX(.65)}100%{opacity:.1;transform:translateX(-50%) scaleX(.15)}}
.family-event-hero{display:flex;align-items:center;gap:14px;margin:2px 0 16px}.family-event-hero>div{flex:1;min-width:0}.family-event-hero>div>span{display:inline-block;color:#735bb0;background:#f2eefb;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900}.family-event-hero h1{font-size:29px;letter-spacing:-1px;margin:7px 0 4px}.family-event-hero p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.family-event-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.family-event-stats article{min-width:0;border:1px solid #ececf3;border-radius:17px;padding:12px 10px;background:linear-gradient(145deg,#fbfaff,#fff)}.family-event-stats span,.family-event-stats b{display:block}.family-event-stats span{font-size:9px;color:#777682}.family-event-stats b{font-size:16px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.family-week-card{border:1px solid #ebeaf1;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(49,48,62,.05);padding:13px 10px;margin-bottom:12px}.family-week-head{display:flex;align-items:center;justify-content:space-between;padding:0 5px 9px}.family-week-head strong{font-size:14px}.family-week-head button{border:1px solid #e3e1e8;background:#fff;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800}.family-week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.family-week-strip button{position:relative;min-width:0;border:0;background:transparent;border-radius:14px;padding:7px 2px 9px;color:#5d5a65}.family-week-strip small,.family-week-strip b{display:block}.family-week-strip small{font-size:9px;font-weight:800}.family-week-strip b{font-size:15px;margin-top:4px}.family-week-strip button.today{background:linear-gradient(145deg,#735bb0,#5f7edb);color:#fff;box-shadow:0 6px 16px rgba(100,89,186,.25)}.family-week-strip button>i{display:block;width:4px;height:4px;margin:5px auto 0;border-radius:50%;background:currentColor}.family-week-strip button>i.empty-dot{opacity:0}
.family-member-filters{display:flex;gap:7px;overflow:auto;padding:3px 1px 10px;scrollbar-width:none}.family-member-filters::-webkit-scrollbar{display:none}.family-member-filters button{flex:none;border:1px solid #e3e1e7;background:#fff;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:800;color:#696673}.family-member-filters button.on{border-color:#735bb0;background:#f3efff;color:#6248a5}
.family-event-list{display:grid;gap:14px}.family-event-day{scroll-margin-top:82px;background:#f8f8fb;border:1px solid #eeeeF4;border-radius:20px;padding:12px}.family-event-day-head{display:flex;align-items:center;justify-content:space-between;padding:1px 2px 9px}.family-event-day-head h3{font-size:14px;margin:0}.family-event-day-head span{font-size:10px;color:#84818d}.family-event-card{width:100%;display:grid;grid-template-columns:64px 4px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e9e8ef;background:#fff;border-radius:17px;padding:11px;text-align:left;box-shadow:0 7px 18px rgba(40,39,51,.04)}.family-event-card+.family-event-card{margin-top:8px}.family-event-card>i{height:54px;border-radius:999px;background:#735bb0}.family-event-card.green>i{background:#35ae77}.family-event-card.blue>i{background:#4188e8}.family-event-card.pink>i{background:#e979a4}.family-event-time{border-radius:13px;background:#f5f3fb;padding:9px 4px;text-align:center}.family-event-card.green .family-event-time{background:#eef9f3}.family-event-card.blue .family-event-time{background:#eef6ff}.family-event-card.pink .family-event-time{background:#fff1f6}.family-event-time b,.family-event-time small{display:block}.family-event-time b{font-size:14px}.family-event-time small{font-size:8px;color:#85808e;margin-top:3px}.family-event-copy{min-width:0}.family-event-copy strong,.family-event-copy small,.family-event-copy em{display:block}.family-event-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-event-copy small{font-size:9px;color:#7b7883;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-event-copy em{font-style:normal;font-size:9px;color:#696674;margin-top:5px}.family-event-arrow{font-size:23px;color:#8d8993;font-weight:400}.family-event-empty{padding:36px 15px;text-align:center;border:1px dashed #dedce5;border-radius:19px;background:#faf9fc}.family-event-empty b,.family-event-empty span{display:block}.family-event-empty span{font-size:10px;color:var(--muted);margin-top:5px}.family-event-fab{position:fixed;left:calc(50% + min(220px,50vw) - 72px);bottom:88px;width:54px;height:54px;border:0;border-radius:50%;background:linear-gradient(145deg,#735bb0,#5f7edb);color:#fff;font-size:29px;box-shadow:0 12px 28px rgba(96,84,181,.34);z-index:18}
@media(max-width:360px){.family-event-stats{grid-template-columns:1fr 1fr}.family-event-stats article:last-child{grid-column:1/-1}.family-event-card{grid-template-columns:58px 3px minmax(0,1fr) auto;gap:7px}.family-event-fab{left:auto;right:18px}}

/* 10x.46 family events header dedupe */
.family-events-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.family-events-topbar .back-btn{margin:0}.family-events-topcopy{min-width:0}.family-events-topcopy .brand,.family-events-topcopy .topsub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.simple-serving-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:#eef8f2;color:#2f8a58;font-size:8px;font-style:normal;font-weight:800;vertical-align:middle}

.ingredients-summary.is-collapsed .review-ingredient-extra{display:none}.compact-review-toggle{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px;padding:9px 12px;border:1px solid #eee4dc;border-radius:12px;background:#fffaf6;color:#9a5a31;font-size:11px;font-weight:800;box-shadow:0 3px 10px rgba(107,73,49,.04)}.compact-review-toggle:after{content:"⌄";font-size:14px;line-height:1;transition:transform .18s ease}.ingredients-summary:not(.is-collapsed)+.compact-review-toggle:after{transform:rotate(180deg)}

/* 10x.87: app-wide typography and navigation refinement */
:root{--text:#24211e;--muted:#77716a;--line:#ebe7e1;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif;font-synthesis:none}
html,body,button,input,select,textarea{font-family:inherit;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-weight:400;letter-spacing:-.012em}
button{font-weight:650}
.brand{font-size:18px;font-weight:750;letter-spacing:-.025em}
.topsub{font-weight:400;letter-spacing:-.01em}
.page-title h1,.greeting h1{font-weight:750;letter-spacing:-.035em}
.detail-head h1,.sheet-title h2,.intro h2,.hero h2{font-weight:750;letter-spacing:-.03em}
.section-head h3,.ingredient-section-head h3{font-weight:700;letter-spacing:-.02em}
.primary,.secondary,.danger,.already,.text-btn{font-weight:700}
.topbar{border-bottom-color:#f0ede8;box-shadow:none}
.icon-btn,.back-btn{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ebe7e1;border-radius:14px;background:#f8f7f4;color:#3b3733}
.back-btn{font-size:0;flex:0 0 40px}
.back-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.detail-head{gap:12px;margin-bottom:18px}
.detail-head h1{font-size:21px}
.sheet-title{align-items:center}
.sheet-title>button{display:grid;place-items:center;border:1px solid #ece8e2;background:#f8f7f5;color:#514b45;font-weight:400}
.sheet-title>button:not(.sheet-back-btn){font-size:21px;line-height:1}
.sheet-back-btn{width:38px!important;height:38px!important;border:1px solid #ebe7e1!important;border-radius:13px!important;background:#f8f7f4!important;font-size:0!important}
.sheet-back-btn .back-icon{width:21px;height:21px}
.primary,.secondary,.danger,.already{border-radius:14px}
.input{min-height:44px;border-color:#ded9d2;border-radius:12px;font-weight:450;color:var(--text);box-shadow:none;outline:none}
.input:focus{border-color:#e7a16d;box-shadow:0 0 0 3px rgba(244,123,32,.09)}
.field>span{font-weight:650;color:#57514b}
.field-help{display:block;margin:6px 2px 0;color:var(--muted);font-size:10px;line-height:1.45}
.list-card,.settings-list,.event-list,.ingredient-detail-section,.family-week-card{border-color:var(--line);box-shadow:none}
.meal-row,.cook-card,.inventory-card,.inventory-focus-card,.notice-card,.recipe-card,.home-recipe{border-color:var(--line);box-shadow:none}
.settings-list button,.menu-line,.check-row{font-weight:450}
.settings-list button>b,.menu-line strong,.check-row strong,.ingredient-card strong,.recipe-card strong{font-weight:680}
.bottom-nav{border-top-color:#ebe7e1;box-shadow:0 -8px 24px rgba(48,40,32,.035)}
.bottom-nav span{font-weight:650}
.sheet-handle{height:4px;background:#d9d6d1}
.sheet-eyebrow,.ingredient-section-head small{font-weight:700;letter-spacing:.09em}
.master-manage-actions.refined button{border-color:#ebe7e1;background:#fdfcfb}
.master-manage-actions.refined b{font-weight:680}
.master-manage-actions.refined em,.ingredient-recipe-links em,.notice-card em,.inventory-focus-card em,.settings-list em{font-weight:300;color:#aaa29a}
.app-version-mark{margin:18px 0 2px;text-align:center;color:#b3ada6;font-size:8px;font-weight:500;letter-spacing:.04em;line-height:1}
