html,body,#root{margin:0;min-height:100%}body{background:var(--ds-page)}.mg-app{margin:-24px;padding:20px 16px 12px;box-sizing:border-box;display:flex;flex-direction:column;height:100vh;min-height:480px;position:relative;overflow:hidden;font-family:var(--ds-font-text);color:var(--ds-ink);background:radial-gradient(620px 420px at 8% -6%,rgba(150,210,188,.55),transparent 62%),radial-gradient(520px 400px at 104% 6%,rgba(245,208,176,.55),transparent 60%),radial-gradient(560px 520px at 55% 112%,rgba(170,194,232,.45),transparent 65%),linear-gradient(165deg,#f8f5f0,#f0ede7);background-attachment:fixed}@media(min-width:768px){.mg-app{margin:-36px;padding:32px 28px 16px}}.mg-card{background:linear-gradient(135deg,#ffffffbd,#ffffff75);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);border:1px solid rgba(255,255,255,.7);border-radius:22px;box-shadow:0 14px 34px #4236301a,inset 0 1px #ffffffd9;padding:16px}.mg-hero{display:flex;gap:16px;align-items:center;margin-bottom:16px}.mg-hero-text{flex:1;min-width:0}.mg-eyebrow{margin:0 0 4px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ds-ink-2)}.mg-title{margin:0 0 6px;font-family:var(--ds-font-display);font-weight:400;font-size:26px;letter-spacing:-.025em}.mg-sub{margin:0;font-size:13px;line-height:1.5;color:var(--ds-ink-2)}.mg-sub2{margin:0 0 10px;font-size:13px;line-height:1.55;color:var(--ds-ink-2)}.mg-hero-img{width:96px;height:96px;object-fit:cover;border-radius:18px;border:1px solid rgba(255,255,255,.7);box-shadow:0 10px 22px #42363029;flex:none}@media(min-width:768px){.mg-title{font-size:32px}.mg-hero-img{width:132px;height:132px}}.mg-tab{display:flex;flex-direction:column;gap:12px}.mg-tab>*{animation:mg-rise .5s cubic-bezier(.2,.7,.2,1) both}.mg-tab>*:nth-child(2){animation-delay:.05s}.mg-tab>*:nth-child(3){animation-delay:.1s}.mg-tab>*:nth-child(4){animation-delay:.15s}.mg-tab>*:nth-child(5){animation-delay:.2s}.mg-tab>*:nth-child(n+6){animation-delay:.25s}.mg-tabs{position:absolute;left:50%;transform:translate(-50%);bottom:calc(var(--mg-gap, 0px) + 12px);margin:0;width:fit-content;display:flex;gap:2px;padding:6px;z-index:30;background:#ffffff9e;-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);border:1px solid rgba(255,255,255,.75);border-radius:999px;box-shadow:0 16px 40px #42363033,inset 0 1px #ffffffe6}.mg-tabs button{border:0;background:transparent;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.mg-tabs a,.mg-tabs button{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:68px;padding:8px 10px;border-radius:999px;font-size:11px;font-weight:600;color:var(--ds-ink-2);text-decoration:none;transition:background .25s ease,color .25s ease,transform .15s ease}.mg-tabs button:active{transform:scale(.94)}.mg-tabs button[aria-current=page]{background:#73a89a2e;color:var(--ds-teal)}.mg-tab-ico{font-size:17px;line-height:1}.mg-weeknav{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}.mg-weeklabel{display:flex;flex-direction:column;align-items:center;font-weight:600;font-size:15px}.mg-today{font-size:11px;font-weight:600;color:var(--ds-teal)}.mg-navbtn{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.7);background:#ffffff8c;font-size:22px;color:var(--ds-ink);cursor:pointer;transition:transform .15s ease,background .2s ease}.mg-navbtn:active{transform:scale(.9)}.mg-day{padding:12px 16px;animation:mg-rise .5s cubic-bezier(.2,.7,.2,1) both}.mg-day-name{margin:0 0 4px;font-weight:600;font-size:14px}.mg-slot{display:flex;align-items:center;gap:12px;width:100%;padding:11px 2px;background:none;border:0;border-top:1px solid rgba(37,31,33,.06);font:inherit;text-align:left;cursor:pointer;color:var(--ds-ink);min-height:44px;transition:transform .15s ease}.mg-slot:active{transform:scale(.98)}.mg-day-name+.mg-slot{border-top:0}.mg-meal{flex:none;width:52px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ds-ink-2)}.mg-slot-name{flex:1;font-size:14px;line-height:1.4}.mg-swap{flex:none;color:var(--ds-ink-3);font-size:15px}.mg-empty{text-align:center;padding:28px 20px}.mg-empty-title{margin:0 0 6px;font-family:var(--ds-font-display);font-size:19px;letter-spacing:-.02em}.mg-empty-sub{margin:0 0 16px;font-size:13px;line-height:1.55;color:var(--ds-ink-2)}.mg-regen{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0 8px;text-align:center}.mg-busy{display:flex;align-items:center;gap:12px;padding:22px 20px;font-size:14px;color:var(--ds-ink-2)}.mg-busy p{margin:0}.mg-spinner{width:26px;height:26px;flex:none;border-radius:50%;border:2.5px solid rgba(115,168,154,.25);border-top-color:var(--ds-teal);animation:mg-spin .9s linear infinite}.mg-backdrop{position:fixed;inset:0;z-index:40;background:#251f214d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:mg-fade .25s ease both}.mg-sheet{position:fixed;left:0;right:0;bottom:var(--mg-gap, 0px);z-index:41;max-width:560px;margin:0 auto;max-height:calc(var(--mg-vb, 100vh) - 16px);overflow:hidden;display:flex;flex-direction:column;border-radius:26px 26px 0 0;padding:18px 16px 20px;background:#fcfaf7e6;animation:mg-sheet-up .38s cubic-bezier(.2,.8,.25,1) both}@media(min-width:768px){.mg-sheet{bottom:auto;top:50%;max-height:80vh;border-radius:26px;transform:translateY(-50%);animation-name:mg-sheet-pop}}.mg-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mg-sheet-title{margin:0;font-weight:600;font-size:16px}.mg-sheet-sub{margin:6px 0 12px;font-size:12px;color:var(--ds-ink-2)}.mg-cand{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:12px 14px;margin-bottom:8px;border-radius:16px;cursor:pointer;border:1px solid rgba(255,255,255,.7);background:linear-gradient(135deg,#fffc,#ffffff80);font:inherit;color:var(--ds-ink);transition:transform .15s ease,box-shadow .2s ease}.mg-cand:active{transform:scale(.98)}.mg-cand-name{font-weight:600;font-size:14px}.mg-cand-tags{font-size:11px;color:var(--ds-ink-2)}.mg-platos-head{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.mg-dish{padding:4px 14px;transition:opacity .3s ease}.mg-dish.off{opacity:.55}.mg-dish-head{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:12px 2px;background:none;border:0;font:inherit;color:var(--ds-ink);cursor:pointer;min-height:44px}.mg-dish-name{font-weight:600;font-size:14px}.mg-dish-meta{font-size:12px;color:var(--ds-ink-2)}.mg-editor{display:flex;flex-direction:column;gap:12px;padding:10px 2px 12px;border-top:1px solid rgba(37,31,33,.07)}.mg-editor-label{display:block;font-size:12px;font-weight:600;color:var(--ds-ink-2);margin-bottom:6px}.mg-stepper-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.mg-stepper{display:flex;align-items:center;gap:14px}.mg-stepper button{width:40px;height:40px;border-radius:50%;font-size:20px;cursor:pointer;border:1px solid rgba(255,255,255,.7);background:#fff9;color:var(--ds-ink);transition:transform .15s ease}.mg-stepper button:active{transform:scale(.88)}.mg-stepper-val{min-width:52px;text-align:center;font-weight:600;font-size:14px}.mg-chips{display:flex;flex-wrap:wrap;gap:6px}.mg-chip{padding:8px 12px;border-radius:999px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid rgba(37,31,33,.12);background:#ffffff80;color:var(--ds-ink-2);transition:all .2s ease}.mg-chip.on{background:#73a89a33;border-color:var(--ds-teal);color:var(--ds-teal)}.mg-progress-card{padding:18px 16px}.mg-progress{height:8px;border-radius:999px;background:#251f2114;overflow:hidden;margin:10px 0 6px}.mg-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#8fbdb0,var(--ds-teal));transition:width .45s cubic-bezier(.2,.7,.2,1)}.mg-progress-text{margin:0 0 8px;font-size:12px;font-weight:600;color:var(--ds-ink-2)}.mg-shop-cat{padding:10px 14px}.mg-cat-name{margin:4px 2px 6px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ds-ink-2)}.mg-item{display:flex;align-items:center;gap:6px;border-top:1px solid rgba(37,31,33,.05)}.mg-cat-name+.mg-item{border-top:0}.mg-item-main{flex:1;display:flex;align-items:center;gap:12px;padding:10px 2px;background:none;border:0;font:inherit;color:var(--ds-ink);text-align:left;cursor:pointer;min-height:44px}.mg-check{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;color:#fff;border:1.5px solid rgba(37,31,33,.22);background:#ffffff80;transition:all .25s ease}.mg-item.done .mg-check{background:var(--ds-teal);border-color:var(--ds-teal);transform:scale(1.06)}.mg-item.home .mg-check{background:#73a89a40;border-color:var(--ds-teal);color:var(--ds-teal)}.mg-item-name{font-size:14px;background-image:linear-gradient(currentColor,currentColor);background-size:0% 1.5px;background-repeat:no-repeat;background-position:0 58%;transition:background-size .35s ease,color .3s ease}.mg-item.done .mg-item-name{background-size:100% 1.5px;color:var(--ds-ink-3)}.mg-settings{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.mg-settings .mg-cat-name{margin:0}.mg-foot{margin:18px 4px 0;text-align:center;font-size:11px;color:var(--ds-ink-3)}@keyframes mg-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes mg-fade{0%{opacity:0}to{opacity:1}}@keyframes mg-spin{to{transform:rotate(360deg)}}@keyframes mg-sheet-up{0%{opacity:0;transform:translateY(46px)}to{opacity:1;transform:none}}@keyframes mg-sheet-pop{0%{opacity:0;transform:translateY(calc(-50% + 30px)) scale(.97)}to{opacity:1;transform:translateY(-50%) scale(1)}}@media(prefers-reduced-motion:reduce){.mg-tab>*,.mg-day,.mg-backdrop,.mg-sheet{animation:none}.mg-spinner{animation-duration:2.4s}}.mg-surprise{border:1.5px dashed rgba(115,168,154,.6);background:linear-gradient(135deg,#73a89a24,#ffffff80)}.mg-surprise .mg-cand-name{color:var(--ds-teal)}.mg-qty{font-size:12px;color:var(--ds-ink-3);font-weight:600}.mg-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:0 -6px;padding:0 6px calc(var(--mg-gap, 0px) + 100px);scrollbar-width:none}.mg-scroll::-webkit-scrollbar{display:none}.mg-confirm{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.mg-confirmed{margin:0;font-size:13px;font-weight:600;color:var(--ds-teal)}@media(max-width:767px){.mg-app{padding-top:4px;padding-bottom:6px}.mg-hero{padding:10px 14px;margin-bottom:10px}.mg-eyebrow,.mg-sub{display:none}.mg-hero-img{width:52px;height:52px;border-radius:14px;box-shadow:0 6px 14px #42363022}.mg-title{font-size:20px;margin:0}}.mg-sheet-list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:0 -6px;padding:0 6px;scrollbar-width:none}.mg-sheet-list::-webkit-scrollbar{display:none}.mg-sheet-section{margin:12px 2px 8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ds-ink-2);font-weight:600}.mg-sheet-search{margin-top:4px}.mg-cand.sug{border-color:#73a89a8c;background:linear-gradient(135deg,#73a89a29,#fff9)}.mg-cand.cur{opacity:.6}.mg-sheet-search{margin-bottom:6px}.mg-tabs{transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.25,1)}.mg-app.sheet-open .mg-tabs{opacity:0;pointer-events:none;transform:translate(-50%) translateY(18px) scale(.96)}.mg-sheet{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}.mg-sheet.leaving{animation:mg-sheet-down .18s ease both}.mg-backdrop.leaving{animation:mg-fadeout .18s ease both}@keyframes mg-sheet-down{0%{opacity:1;transform:none}to{opacity:0;transform:translateY(40px)}}@keyframes mg-fadeout{0%{opacity:1}to{opacity:0}}@media(min-width:768px){.mg-sheet.leaving{animation-name:mg-sheet-pop-out}}@keyframes mg-sheet-pop-out{0%{opacity:1;transform:translateY(-50%)}to{opacity:0;transform:translateY(calc(-50% + 24px)) scale(.97)}}.mg-cat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:4px 2px 6px;background:none;border:0;font:inherit;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}.mg-cat-head .mg-cat-name{margin:0;transition:color .3s ease}.mg-cat-act{font-size:11px;font-weight:600;color:var(--ds-teal)}.mg-cat-head:active{opacity:.7}.mg-shop-cat{transition:opacity .35s ease}.mg-shop-cat.all-done{opacity:.6}.mg-shop-cat.all-done .mg-cat-name{text-decoration:line-through;color:var(--ds-ink-3)}.mg-item-main:active .mg-check{transform:scale(.88)}.mg-item{animation:mg-fade .3s ease both}.mg-del{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:transparent;font-size:20px;line-height:1;color:var(--ds-ink-3);cursor:pointer}.mg-del:active{transform:scale(.88)}.mg-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px}.mg-input{flex:1;min-width:0;box-sizing:border-box;height:44px;padding:0 14px;border-radius:14px;border:1px solid rgba(37,31,33,.12);background:#ffffffd9;font:inherit;font-size:16px;color:var(--ds-ink);outline:none;transition:border-color .2s ease,box-shadow .2s ease}.mg-input:focus{border-color:var(--ds-teal);box-shadow:0 0 0 3px #73a89a38}.mg-add-btn{flex:none;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--ds-teal);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:transform .15s ease,opacity .2s ease}.mg-add-btn:disabled{opacity:.4;cursor:default}.mg-add-btn:not(:disabled):active{transform:scale(.95)}.mg-added{flex-basis:100%;margin:0;font-size:12px;font-weight:600;color:var(--ds-teal);animation:mg-rise .3s ease both}.mg-fillnote{display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:13px;color:var(--ds-ink-2);animation:mg-rise .3s ease both}.mg-fillnote span{flex:1}.mg-fillnote-x{flex:none;width:28px;height:28px;border:0;border-radius:999px;background:transparent;color:var(--ds-ink-3);font-size:18px;line-height:1;cursor:pointer}.mg-fillnote-x:active{transform:scale(.92)}.mg-ing-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 2px}.mg-dish-head:active,.mg-slot:active{transform:scale(.99)}.mg-slot,.mg-dish-head{transition:transform .15s ease}@media(prefers-reduced-motion:reduce){.mg-item,.mg-added,.mg-fillnote,.mg-tabs,.mg-sheet.leaving,.mg-backdrop.leaving{animation:none;transition:none}}.mg-cat-head+.mg-item{border-top:0}.mg-ing-chips{margin-top:8px}.mg-ing-chips .mg-chip{transition:transform .15s ease,opacity .2s ease}.mg-ing-chips .mg-chip:active{transform:scale(.94)}.mg-slot.out .mg-out-name{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1.5px dashed rgba(37,31,33,.28);color:var(--ds-ink-2);font-weight:600;font-size:13px;background:#251f2108}.mg-eatout{border:1.5px dashed rgba(37,31,33,.3);background:linear-gradient(135deg,#251f210f,#ffffff80)}.mg-eatout .mg-cand-name{color:var(--ds-ink)}.mg-backup-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.mg-backup-actions button{min-height:44px;white-space:normal}.mg-backup-text{margin-top:12px}.mg-backup-text label{display:block;font-weight:600;font-size:14px;margin-bottom:8px}.mg-backup-text textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;padding:12px;border:1px solid var(--ds-hairline);border-radius:8px;font:inherit;font-size:16px;resize:vertical;background:var(--ds-page);color:var(--ds-ink)}.mg-backup-review{border-top:1px solid var(--ds-hairline);margin-top:16px;padding-top:16px}.mg-backup-notice{font-size:13px;line-height:1.6;color:var(--ds-ink-2);overflow-wrap:anywhere}.mg-backup-notice.error{color:var(--ds-red)}:root{--ds-page:#fbfaf9;--ds-ink:#251f21;--ds-ink-2:#585254;--ds-ink-3:#969394;--ds-ink-4:#c0bebf;--ds-hairline:#eae9ea;--ds-teal:#73a89a;--ds-red:#ed313e;--ds-font-display:Georgia,serif;--ds-font-text:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{font:14px/1.6 var(--ds-font-text)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:underline}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--ds-teal);outline-offset:3px}.app-shell{padding:24px;max-width:1040px;margin:auto}.mg-app{height:100dvh;padding-top:max(12px,env(safe-area-inset-top))}.mg-tabs{bottom:max(12px,env(safe-area-inset-bottom))!important}.ui-button{min-height:44px;padding:10px 16px;border:1px solid var(--ds-hairline);border-radius:8px;color:var(--ds-ink);background:#fff;white-space:normal;line-height:1.4}.ui-button.primary{background:var(--ds-ink);color:#fff;border-color:transparent}.ui-button.ghost{background:transparent;border-color:transparent}.ui-button.pill{border-radius:999px}.ui-button.compact{padding:8px 12px}.ui-close{border:0;background:transparent;font-size:28px;width:44px;height:44px;border-radius:50%}.ui-field{margin:12px 0}.ui-field label,.ui-field p{display:block;margin:0 0 8px;color:var(--ds-ink-2)}.ui-field input{display:block;width:100%;min-width:0;height:44px;padding:10px 12px;border:1px solid var(--ds-hairline);border-radius:8px;background:#fffc;font-size:16px}.ui-choices{display:flex;flex-wrap:wrap;gap:8px}.ui-choices button{min-height:44px;padding:8px 12px;border:1px solid var(--ds-hairline);border-radius:999px;background:#fff;color:var(--ds-ink)}.ui-choices button[aria-pressed=true]{background:var(--ds-teal);color:#fff;font-weight:600}.ui-caption{font-size:12px;color:var(--ds-ink-2);margin:8px 0}.ui-callout{padding:14px;border-radius:12px;background:#f4efec;margin:10px 0}.ui-callout.danger{border:1px solid var(--ds-red)}@media(min-width:768px){.app-shell{padding:36px}.mg-app{padding-top:32px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
