:root{color-scheme:light;--accent:#087f75;--accent-fill:#087f75;--accent-hover:#06685f;--accent-soft:#e5f3ef;--bg:#f5f7f7;--surface:#fff;--text:#172e2b;--muted:#6b7c79;--line:#e5ece9;--soft:#eef2f1;--danger:#b73f4e;--shadow:0 12px 36px #19372e08;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{color:inherit}a{color:var(--accent);text-decoration:none}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #35b9a7}button{transition:background .15s,border-color .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1{font-size:2.25rem;line-height:1.2;letter-spacing:-.045em;margin-bottom:0;font-weight:700}h2{font-size:1.3rem;letter-spacing:-.025em;line-height:1.35;margin-bottom:16px}h3{font-size:1.02rem;line-height:1.4;margin-bottom:12px}p{margin-bottom:16px}small{font-size:.8rem}hr{border:0;border-top:1px solid var(--line);margin:26px 0}.muted{color:var(--muted)}.eyebrow{font-size:.875rem;color:var(--muted);margin-bottom:8px}.eyebrow:first-letter{text-transform:uppercase}.button{min-height:44px;border:1px solid var(--line);background:var(--surface);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;font-size:.9rem;font-weight:600;white-space:nowrap}.button:hover{background:var(--soft);border-color:#bdcdc7}.button.primary{color:white;background:var(--accent-fill);border-color:var(--accent-fill)}.button.primary:hover{background:var(--accent-hover)}.button.secondary{color:var(--accent);background:var(--accent-soft);border-color:transparent}.button.small{min-height:36px;padding:6px 12px;font-size:.85rem}.button.full{width:100%}.text-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:0;background:none;color:var(--accent);padding:8px 0;min-height:40px;font-size:.875rem;font-weight:600}.text-button:hover{text-decoration:underline}.text-button.danger,.danger{color:var(--danger)}.icon-button{height:42px;width:42px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:11px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--soft);color:var(--accent)}.icon-button.accent{background:var(--accent);color:white}.actions{display:flex;align-items:center;gap:10px}.actions.wrap{flex-wrap:wrap}.shell{max-width:1700px;margin:0 auto;display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--surface);border-right:1px solid var(--line);padding:32px 20px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:740;letter-spacing:-.04em;font-size:1.25rem;white-space:nowrap}.brand img{width:37px;height:37px;border-radius:11px}.sidebar .brand{margin:0 7px 49px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;min-height:50px;background:transparent;border:0;border-radius:13px;text-align:left;padding:12px 14px;color:var(--muted);font-size:.925rem;font-weight:500}.nav-item.selected{background:var(--accent-soft);color:var(--accent);font-weight:650}.nav-item:hover{background:var(--soft)}.nav-count{background:var(--accent-soft);font-size:.75rem;margin-left:auto;border-radius:7px;padding:1px 7px;color:var(--accent)}.sidebar-bottom{margin-top:auto}.family-link{background:none;border:0;display:flex;align-items:center;width:100%;gap:10px;text-align:left;padding:16px 4px;border-top:1px solid var(--line)}.family-link strong{font-size:.875rem;display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis}.family-link small{color:var(--muted);font-size:.75rem}.family-link>.icon{width:15px;margin-left:auto}.family-link .avatars .avatar:not(:first-child){display:none}.sync-line{display:flex;gap:7px;font-size:.72rem;align-items:center;color:var(--muted);padding-top:10px}.sync-line>.icon{width:15px;height:15px}.sync-line .icon-button{width:24px;height:24px;margin-left:auto}.sync-line .icon-button svg{width:14px}.shell main{padding:40px 48px 60px;min-width:0;max-width:1400px;width:100%}.page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.page-header>.actions{flex-wrap:wrap;justify-content:flex-end}.mobile-brand{display:none}.panel{background:var(--surface);padding:26px;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.panel.narrow{max-width:520px}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:32px}.today-banner{display:flex;gap:20px;align-items:center;background:var(--accent-soft);border-radius:20px;padding:28px;margin-bottom:28px}.today-mark{width:68px;height:68px;display:grid;place-items:center;border:1px solid #087f7526;border-radius:50%;color:var(--accent);flex-shrink:0}.today-mark svg{width:35px;height:35px}.today-banner span{font-size:.82rem;color:var(--accent)}.today-banner h2{margin:3px 0 5px;font-size:1.4rem}.today-banner p{font-size:.9rem;color:var(--muted);margin:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 14px}.section-head h2,.section-head h3,.section-head p{margin:0}.section-head h3{display:flex;align-items:center;gap:9px}.panel>.section-head:first-child{margin-top:0}.group-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem;margin:20px 2px 9px}.group-label svg{width:16px;height:16px}.group-label>span{margin-left:auto}.meal-card{display:flex;gap:14px;align-items:center;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:10px;min-width:0}.thumb{width:64px;height:64px;object-fit:cover;border-radius:13px;flex-shrink:0}.placeholder{background:var(--soft);display:grid;place-items:center;color:#829992}.placeholder .icon{width:30px;height:30px;stroke-width:1.1}.meal-main{padding:0;background:none;border:0;text-align:left;flex:1;min-width:0}.meal-main strong{display:block;font-weight:600;font-size:.975rem;overflow-wrap:anywhere}.meal-main span,.meal-main small{display:block;font-size:.825rem;color:var(--muted);margin-top:4px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;flex-shrink:0;border-radius:50%;background:#e1efeb;color:#287d6b;font-size:.8rem;font-weight:600;border:2px solid var(--surface)}.tone-1{background:#e3eaf9;color:#496997}.tone-2{background:#f5e5d7;color:#986739}.tone-3{background:#f4dfe7;color:#a45773}.tone-4{background:#ece4f6;color:#85649e}.avatars{display:inline-flex;flex-shrink:0}.avatars .avatar+.avatar{margin-left:-7px}.shopping-summary .section-head svg{color:var(--accent)}.shopping-summary .section-head h2{font-size:1.1rem}.shopping-summary>.muted{font-size:.85rem}.summary-item{display:flex;align-items:center;gap:10px;padding:12px 0;font-size:.9rem}.summary-item>span{flex:1}.summary-item small{color:var(--muted)}.check-button{display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #c9d7d1;background:var(--surface);width:24px;height:24px;border-radius:8px;padding:2px;flex-shrink:0}.check-button svg{width:16px;height:16px;opacity:0}.check-button:hover svg{opacity:.4}.check-button.checked{background:var(--accent);border-color:var(--accent);color:white}.check-button.checked svg{opacity:1}.shopping-summary .full{margin-top:22px}.family-note{padding:26px 13px}.family-note>.avatars{margin-bottom:14px}.family-note h3{margin-bottom:6px}.family-note p{font-size:.875rem;color:var(--muted)}.mini-dishes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mini-dish{border:1px solid var(--line);background:var(--surface);padding:18px;text-align:left;border-radius:17px;min-width:0}.mini-dish strong{display:block;font-size:.9rem;margin:15px 0 5px;overflow-wrap:anywhere}.mini-dish>span{font-size:.78rem;color:var(--muted)}.empty{text-align:center;border:1px dashed #cddbd5;border-radius:18px;padding:36px 24px;color:var(--muted)}.empty>.icon{width:34px;height:34px;stroke-width:1.2;margin-bottom:15px;color:var(--accent)}.empty h3{color:var(--text);margin-bottom:6px}.empty p{font-size:.9rem;max-width:370px;margin:0 auto 16px}.empty p:last-child{margin-bottom:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:0 14px;max-width:400px;flex:1;margin:0}.search .icon{color:var(--muted);width:19px}.search input{border:0;background:none;padding-left:0;min-width:0}.search input:focus-visible{outline:0}.search:focus-within{outline:2px solid var(--accent)}.chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-height:38px;padding:7px 13px;font-size:.84rem;color:var(--muted);white-space:nowrap}.chip svg{width:17px;height:17px}.chip.active{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.chip.liked{color:var(--danger);border-color:#b73f4e40;background:#b73f4e08}.chip.liked svg{fill:#b73f4e25}.chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}.dish-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.dish-card{background:var(--surface);border:1px solid var(--line);border-radius:19px;overflow:hidden;transition:box-shadow .15s,transform .15s}.dish-card:hover{box-shadow:0 8px 28px #173c3510;transform:translateY(-2px)}.dish-open{background:none;border:0;width:100%;text-align:left;padding:0}.dish-image{width:100%;height:150px;object-fit:cover}.dish-image.placeholder{background:linear-gradient(125deg,var(--soft),var(--accent-soft))}.dish-image .icon{width:52px;height:52px;opacity:.65;stroke-width:1}.dish-body{padding:19px 20px 12px}.dish-body h2{font-size:1.08rem;margin-bottom:15px;overflow-wrap:anywhere}.dish-tags{display:flex;gap:7px;min-height:25px;font-size:.7rem;color:var(--accent)}.dish-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:.78rem;color:var(--muted)}.dish-meta>span{display:inline-flex;align-items:center;gap:5px}.dish-meta svg{width:14px;height:14px}.dish-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin:0 20px;padding:5px 0}.rating{color:var(--danger);font-size:.8rem;display:flex;gap:5px;align-items:center}.rating svg{width:16px;height:16px}.week-control{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.date-jump{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted);margin:0}.date-jump input{width:auto;font-size:.85rem;padding:7px 10px;min-height:37px}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;background:var(--surface);border:1px solid var(--line);padding:10px;border-radius:19px}.day{border:0;border-radius:13px;background:transparent;padding:13px 5px;display:flex;flex-direction:column;align-items:center;color:var(--muted);gap:5px}.day>span{text-transform:capitalize;font-size:.8rem}.day strong{font-size:1.4rem;color:var(--text)}.day small{font-size:.7rem}.day.active{background:var(--accent-fill);color:#ffffffe0}.day.active strong{color:white}.day.today:not(.active){background:var(--accent-soft);color:var(--accent)}.plan-groups{display:grid;gap:18px}.plan-group{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px}.plan-group>.section-head{margin:0 0 15px}.plan-group>.section-head h3{font-size:.95rem}.plan-group>.section-head h3 svg{color:var(--accent);width:18px}.plan-group .meal-card{background:var(--bg);border-color:transparent;margin-bottom:8px}.plan-group .meal-card:last-child{margin-bottom:0}.plan-empty{border:1px dashed #cbd9d2;border-radius:12px;min-height:58px;width:100%;background:transparent;color:var(--muted);font-size:.875rem}.shopping-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px}.toolbar>select{max-width:320px}.shopping-panel{padding:24px}.quick-add{display:flex;gap:9px;align-items:center}.quick-add>input{flex:1;min-width:0}.shopping-progress{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px;font-size:.8rem;color:var(--muted)}progress{display:block;width:100%;height:5px;border:0;border-radius:5px;background:var(--soft);accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--soft);border-radius:5px}progress::-webkit-progress-value{background:var(--accent);border-radius:5px}.shopping-category{margin-top:28px}.shopping-category h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:0 0 5px}.shopping-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.shopping-row:last-child{border:0}.item-title{border:0;background:transparent;padding:4px 0;flex:1;min-width:0;text-align:left}.item-title strong{font-size:.96rem;font-weight:500;overflow-wrap:anywhere}.item-title small{display:block;color:var(--muted)}.item-quantity{font-size:.85rem;color:var(--muted);white-space:nowrap}.shopping-row.completed .item-title{text-decoration:line-through;color:var(--muted)}.completed-group{opacity:.8}.shopping-row .icon-button{width:32px;height:32px}.shopping-row .icon-button svg{width:16px}.list-tools{padding:26px 12px}.list-tools>.text-button{display:flex;justify-content:flex-start}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:start}.person-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.person-row:last-of-type{margin-bottom:20px}.person-row>div{flex:1}.person-row strong{font-size:.95rem}.person-row small{display:block;color:var(--muted);margin-top:3px}.person-row .avatar{width:42px;height:42px}.settings-grid .panel>h2{margin-bottom:14px}label{display:block;font-size:.875rem;font-weight:500;margin-bottom:16px}input,select,textarea{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);background:var(--surface);border-radius:10px;color:var(--text);min-height:44px;margin-top:6px;max-width:100%}input::placeholder,textarea::placeholder{color:#8b9b95}textarea{resize:vertical;min-height:85px}select{cursor:pointer}input[type=checkbox]{display:inline-block;width:19px;height:19px;min-height:0;margin:0;accent-color:var(--accent);flex-shrink:0}input[type=file]{font-size:.8rem}fieldset{border:1px solid var(--line);border-radius:12px;margin:0 0 16px;padding:12px}legend{font-size:.875rem;padding:0 6px}.checkbox-label{display:inline-flex;align-items:center;gap:8px;font-size:.85rem;font-weight:400;margin:4px 10px 4px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-error{color:var(--danger);font-size:.875rem;white-space:pre-wrap}.form-error:empty{display:none}.notice{padding:17px 20px;border-radius:14px;background:var(--accent-soft);margin-bottom:24px;font-size:.9rem}.notice h3{margin-bottom:8px}.notice p:last-child{margin:0}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh;padding:0!important;max-width:none!important}.auth-intro{padding:44px max(45px,9vw) 35px;background:var(--accent-soft);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:100dvh}.auth-intro .brand{margin-bottom:60px}.auth-intro h1{font-size:clamp(2.6rem,4.2vw,4.6rem);line-height:1.07;letter-spacing:-.055em;margin:15px 0 24px}.auth-intro p{color:var(--muted);font-size:1.1rem;line-height:1.7}.auth-features{display:flex;flex-direction:column;gap:15px;margin-top:38px;color:var(--accent);font-size:.9rem}.auth-features span{display:flex;gap:12px;align-items:center}.auth-intro>small{color:var(--muted);margin-top:60px}.auth-card{display:grid;place-items:center;padding:40px;background:var(--surface)}.auth-form{max-width:370px;width:100%}.auth-form h2{font-size:1.7rem;margin:23px 0 12px}.auth-form p{color:var(--muted);font-size:.9rem;margin-bottom:26px}.auth-form .form-error{color:var(--danger)}.small-logo{display:inline-flex;align-items:center;justify-content:center;width:47px;height:47px;background:var(--accent-soft);color:var(--accent);border-radius:14px;margin-bottom:14px}.small-logo svg{width:25px;height:25px}.auth-form .small-logo{margin:0}.or{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:.8rem;margin:24px 0}.or:before,.or:after{content:'';height:1px;background:var(--line);flex:1}.auth-form .footnote{font-size:.78rem;margin:18px 0 0;line-height:1.65}.auth-form input[name=code]{font-size:1.8rem;letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums}dialog{border:1px solid var(--line);border-radius:23px;background:var(--surface);color:var(--text);width:min(540px,calc(100% - 32px));max-height:90dvh;padding:0;box-shadow:0 20px 100px #112d3033;overflow:auto}dialog.wide{width:min(760px,calc(100% - 32px))}dialog::backdrop{background:#0e25285c;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:19px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:1}.dialog-header h2{font-size:1.15rem;margin:0;overflow-wrap:anywhere}.dialog-body{padding:24px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:24px;flex-wrap:wrap}.ingredient-editor{display:grid;grid-template-columns:minmax(130px,2fr) minmax(75px,1fr) minmax(55px,.7fr) 32px;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}.ingredient-editor input{font-size:.85rem;min-width:0}.ingredient-editor [data-i=note]{grid-column:1/3}.ingredient-editor>.checkbox-label{grid-row:3;grid-column:1/4;font-size:.8rem}.ingredient-editor>.icon-button{grid-column:4;grid-row:1;width:32px;margin-top:7px}.step-editor,.preparation-editor{display:flex;gap:8px;align-items:flex-start;margin-bottom:14px}.step-editor textarea{flex:1;margin:0;font-size:.9rem}.preparation-editor input{min-width:0;font-size:.85rem}.preparation-editor input[type=number]{max-width:140px}.detail-photo{width:100%;height:280px;object-fit:cover;border-radius:15px;margin-bottom:20px}.detail-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;font-size:.875rem;color:var(--muted)}.detail-meta>span{display:flex;align-items:center;gap:7px}.servings{display:flex;align-items:center;gap:7px;background:var(--soft);border-radius:11px;color:var(--text)}.servings .icon-button{width:32px;height:36px}.servings strong{font-size:.85rem;min-width:75px;text-align:center}.detail-actions{margin-bottom:24px}.preserve{white-space:pre-wrap;font-size:.95rem}.ingredients{margin:0 0 24px}.ingredients>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:12px 0;font-size:.925rem}.ingredients small{display:block;color:var(--muted);margin-top:3px}.ingredients strong{white-space:nowrap;font-weight:500}.recipe-steps{list-style:none;counter-reset:steps;padding:0}.recipe-steps li{position:relative;padding:0 0 22px 42px;counter-increment:steps;white-space:pre-wrap;font-size:.95rem}.recipe-steps li:before{content:counter(steps);position:absolute;left:0;top:0;width:27px;height:27px;border-radius:8px;color:var(--accent);background:var(--accent-soft);display:grid;place-items:center;font-size:.8rem;font-weight:600}.picker-list{max-height:50dvh;overflow:auto;margin:16px 0}.picker-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:13px 0;font-weight:400;font-size:.9rem;margin:0}.picker-row>span:nth-child(2){flex:1}.picker-row strong{display:block;font-weight:500}.picker-row small{display:block;color:var(--muted);margin-top:4px}.picker-row>span:last-child{font-size:.85rem}.invite-code{font-size:2.2rem;letter-spacing:.15em;padding:22px;background:var(--accent-soft);color:var(--accent);border-radius:12px;text-align:center;margin:22px 0}.photo-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.photo-gallery>div{padding:12px;background:var(--soft);border-radius:12px}.full-photo{width:100%;display:block;border-radius:12px}.conflict{padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px;overflow-wrap:anywhere}.conflict p{font-size:.8rem}.billing-data{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}#toast{position:fixed;z-index:10;left:50%;bottom:30px;transform:translate(-50%,12px);background:var(--text);color:var(--surface);border-radius:13px;padding:13px 20px;max-width:min(500px,calc(100% - 32px));box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;font-size:.9rem}#toast.visible{opacity:1;transform:translate(-50%,0)}.skip{position:fixed;top:-60px;left:20px;z-index:99;background:var(--surface);padding:10px;border-radius:10px}.skip:focus{top:10px}
@media(min-width:1500px){.shell main{padding:44px 60px}.home-grid{grid-template-columns:minmax(0,1fr) 320px}.dish-image{height:190px}}
@media(max-width:1150px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:26px 13px}.brand{font-size:1.1rem}.brand img{width:32px;height:32px}.shell main{padding:32px 28px}.home-grid,.shopping-layout{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.panel{padding:20px}.dish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-header{align-items:flex-start}.page-header>.actions{max-width:220px}.page-header .button{font-size:.8rem}h1{font-size:1.95rem}.home-grid .meal-card>.avatars{display:none}.mini-dishes{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-dish:nth-child(3){display:none}.week-control{flex-wrap:wrap}}
@media(max-width:900px){.home-grid,.shopping-layout{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.shopping-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-grid{grid-template-columns:1fr}.family-note{padding:20px}.page-header{flex-wrap:wrap;gap:20px}.page-header>.actions{max-width:none}.mini-dishes{grid-template-columns:repeat(3,minmax(0,1fr))}.mini-dish:nth-child(3){display:block}.week-control>.text-button{display:none}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:3;height:auto;padding:6px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);border-right:0;background:var(--surface)}.sidebar>.brand,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.nav-item{flex-direction:column;gap:4px;padding:8px 2px 5px;min-height:56px;font-size:.7rem;border-radius:10px}.nav-item .icon{width:22px;height:22px}.nav-count{display:none}.shell main{padding:20px 20px 105px}.mobile-brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.page-header{margin-bottom:25px;gap:18px}.page-header>.actions{justify-content:flex-start;gap:8px}.page-header .button{min-height:42px;font-size:.82rem;padding:9px 12px}.eyebrow{font-size:.8rem;margin-bottom:7px}h1{font-size:1.85rem}.home-grid,.shopping-layout{gap:24px}.home-aside{display:block}.family-note{display:none}.today-banner{padding:22px 18px;gap:14px}.today-mark{width:50px;height:50px}.today-mark svg{width:27px;height:27px}.today-banner h2{font-size:1.15rem}.today-banner p{font-size:.82rem}.today-banner span{font-size:.75rem}.section-head h2{font-size:1.12rem}.section-head .text-button{font-size:.8rem}.meal-card{padding:12px;gap:11px}.meal-main strong{font-size:.925rem}.meal-main span{font-size:.78rem}.meal-card>.icon-button{width:25px}.thumb{width:56px;height:56px}.mini-dishes{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.mini-dish:nth-child(3){display:none}.toolbar{flex-wrap:wrap;gap:14px}.search{max-width:none;width:100%;flex-basis:100%}.toolbar>.actions{gap:8px}.dish-grid{gap:13px}.dish-image{height:123px}.dish-body{padding:13px}.dish-body h2{font-size:.975rem}.dish-meta{font-size:.72rem;gap:5px;flex-direction:column}.dish-footer{margin:0 13px}.dish-footer .text-button{font-size:.78rem}.dish-tags{font-size:.66rem}.dish-image .icon{width:40px;height:40px}.chip{font-size:.8rem}.week-strip{gap:3px;padding:6px}.day{padding:10px 2px}.day strong{font-size:1.2rem}.day>span{font-size:.7rem}.day small{font-size:.6rem}.week-control{gap:10px}.week-control>.actions{gap:2px}.date-jump{font-size:0}.date-jump input{font-size:.78rem;max-width:135px}.plan-group{padding:16px}.plan-group>.section-head{margin-bottom:9px}.plan-group .meal-card{padding:11px}.meal-card>.avatars{display:none}.shopping-panel{padding:18px}.shopping-layout>aside{grid-template-columns:1fr}.shopping-layout>aside>.panel{display:none}.list-tools{padding:0 8px}.shopping-row{gap:10px}.shopping-row .icon-button{width:26px}.shopping-progress .text-button{font-size:.75rem}.toolbar>select{max-width:100%;flex:1;min-width:160px}.toolbar>select+.actions{margin-left:auto}.auth-layout{grid-template-columns:1fr;min-height:100dvh;background:var(--surface)}.auth-intro{min-height:0;padding:25px 26px 28px}.auth-intro .brand{margin-bottom:32px}.auth-intro h1{font-size:2.6rem;margin:10px 0 14px}.auth-intro h1 br{display:none}.auth-intro p{font-size:.95rem;line-height:1.55;margin:0}.auth-intro p br{display:none}.auth-features,.auth-intro>small{display:none}.auth-card{padding:28px 26px 40px}.auth-form{max-width:450px}.auth-form .small-logo{display:none}.auth-form h2{font-size:1.45rem;margin:0 0 12px}.auth-form p{margin-bottom:22px}.panel{padding:21px;border-radius:17px}.empty{padding:30px 18px}.empty h3{font-size:1rem}.empty p{font-size:.85rem}dialog,dialog.wide{width:calc(100% - 18px);max-height:93dvh;border-radius:19px}.dialog-header{padding:14px 16px}.dialog-body{padding:19px 17px}.dialog-header h2{font-size:1.1rem}.form-grid{gap:12px}.ingredient-editor{grid-template-columns:minmax(90px,1.8fr) minmax(65px,1fr) minmax(50px,.7fr) 26px;gap:6px}.ingredient-editor input{padding:9px 8px}.ingredient-editor>.icon-button{width:26px}.detail-photo{height:200px}.detail-actions{gap:6px}.detail-actions .button{font-size:.82rem;padding:9px 11px}.detail-meta{gap:8px;font-size:.8rem}.detail-meta svg{width:17px}.recipe-steps li{font-size:.9rem}.picker-row{font-size:.85rem}.picker-row>span:last-child{font-size:.8rem}.dialog-actions .button{white-space:normal}#toast{bottom:90px}input,textarea,select{font-size:16px}.photo-gallery{grid-template-columns:1fr}.invite-code{font-size:1.7rem}}
:root[data-theme=dark]{color-scheme:dark;--accent:#2ba997;--accent-hover:#248f81;--accent-soft:#173c35;--bg:#121c1a;--surface:#1b2925;--text:#e7efeb;--muted:#a1b3aa;--line:#304239;--soft:#263b32;--danger:#f095a1;--shadow:none}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--accent:#2ba997;--accent-hover:#248f81;--accent-soft:#173c35;--bg:#121c1a;--surface:#1b2925;--text:#e7efeb;--muted:#a1b3aa;--line:#304239;--soft:#263b32;--danger:#f095a1;--shadow:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.sidebar,.mobile-brand,.page-header>.actions,.toolbar,.quick-add,.shopping-layout>aside,dialog,#toast,.icon-button{display:none!important}.shell{display:block}.shell main{padding:0}.shopping-layout{display:block}body{background:white;color:black}.panel{box-shadow:none;border:0}.check-button{border-color:black}.page-header{margin-bottom:20px}}

.gallery-thumb{width:100%;height:150px;object-fit:cover;border-radius:9px}.shopping-row.archived .check-button svg{opacity:1;color:var(--accent)}
@media(max-width:380px){.dish-grid{grid-template-columns:1fr}.dish-image{height:155px}.dish-meta{flex-direction:row}.dish-body h2{font-size:1.05rem}.day small{font-size:.65rem}.nav-item{font-size:.7rem}}

/* Visual refinement: readable content, consistent spacing and smaller screens. */
:root {
  --bg: #f5f7f6;
  --line: #e2eae6;
  --shadow: 0 2px 4px #183f3202, 0 12px 36px #183f3205;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1 { letter-spacing: -.035em; overflow-wrap: anywhere; }
h2, h3 { overflow-wrap: anywhere; }
button { line-height: 1.4; }
.button, .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.text-button { text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.icon-button { color: var(--muted); }
.icon-button.accent { color: #fff; background: var(--accent-fill); }
.button.primary { box-shadow: 0 2px 3px #073e2810; }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b9cdc4; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
}
.page-header > div:first-child { flex: 1; min-width: min(240px, 100%); }
.page-header > .actions:empty { display: none; }
.page-header > .actions { flex-shrink: 0; }
.section-head > :first-child { min-width: 0; }
.section-head > .text-button, .section-head > .muted { flex-shrink: 0; }
.section-head > .muted { font-size: .8rem; }
.page-header + .home-grid { align-items: start; }
.home-grid > *, .shopping-layout > *, .settings-grid > *, .form-grid > * { min-width: 0; }
.panel p, .notice, .preserve, .recipe-steps li { overflow-wrap: anywhere; }
.today-banner {
  border: 1px solid color-mix(in srgb, var(--accent) 9%, transparent);
  background: linear-gradient(115deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 55%, var(--surface)));
}
.today-banner > div:last-child { min-width: 0; }
.today-mark { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.empty { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty > .icon { width: 40px; height: 40px; margin-bottom: 16px; }
.meal-card { transition: border-color .15s, box-shadow .15s; }
.meal-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.meal-main small, .meal-main span { overflow-wrap: anywhere; }
.mini-dish { display: flex; flex-direction: column; align-items: flex-start; }
.mini-dish > span { margin-top: auto; }
.family-link > span:not(.avatars) { flex: 1; min-width: 0; }
.family-link strong { max-width: none; overflow: visible; overflow-wrap: anywhere; }
.sync-line { align-items: flex-start; }
.summary-item { align-items: flex-start; }
.summary-item > span { min-width: 0; overflow-wrap: anywhere; }
.summary-item > small { max-width: 35%; text-align: right; overflow-wrap: anywhere; }
.summary-item .check-button { margin-top: 2px; }
.dish-grid { align-items: stretch; }
.dish-card { display: flex; flex-direction: column; box-shadow: var(--shadow); }
.dish-open { display: flex; flex-direction: column; flex: 1; color: var(--text); }
.dish-image { display: block; flex-shrink: 0; }
.dish-image.placeholder { display: grid; }
.dish-body { display: flex; flex-direction: column; width: 100%; flex: 1; padding: 20px; }
.dish-body h2 { line-height: 1.45; margin-bottom: 16px; }
.dish-tags { flex-wrap: wrap; gap: 5px; min-height: 0; margin-bottom: 12px; }
.dish-tags:empty { display: none; }
.dish-tags > span {
  max-width: 100%; padding: 3px 7px; background: var(--accent-soft);
  border-radius: 6px; line-height: 1.4; overflow-wrap: anywhere;
}
.dish-meta { margin-top: auto; }
.dish-footer { margin-top: auto; padding: 8px 0; }
.search input { margin: 0; padding-top: 12px; padding-bottom: 12px; }
.toolbar > select { margin-top: 0; }
.week-strip { box-shadow: var(--shadow); }
.day { min-width: 0; }
.day small { max-width: 100%; overflow-wrap: anywhere; }
.day.active { box-shadow: 0 4px 10px #087f7520; }
.plan-empty:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.shopping-progress { gap: 12px; flex-wrap: wrap; }
.quick-add > input { margin-top: 0; }
.shopping-panel > .empty { margin-top: 24px; }
.shopping-row { min-height: 66px; }
.item-quantity { max-width: 30%; text-align: right; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.shopping-row .icon-button { width: 40px; height: 40px; }
.check-button { position: relative; }
.check-button::before { content: ''; position: absolute; inset: -9px; }
.person-row { align-items: flex-start; }
.person-row > div { min-width: 0; padding-top: 3px; }
.person-row strong { overflow-wrap: anywhere; }
.person-row + .actions { margin-top: 20px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.form-grid > label { min-width: 0; }
.form-grid input, .form-grid select { min-width: 0; }
.auth-intro { padding-left: clamp(40px, 6vw, 100px); padding-right: clamp(40px, 6vw, 100px); }
.auth-intro > div { max-width: 540px; }
.auth-intro h1 { font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
.auth-card { padding: clamp(32px, 5vw, 80px); }
.auth-form { max-width: 390px; }
.auth-form h2 { font-weight: 650; }
.auth-form p { overflow-wrap: anywhere; }
dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.dialog-header { flex-shrink: 0; position: static; padding: 18px 24px; }
.dialog-header h2 { line-height: 1.45; }
.dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.dialog-body > :last-child { margin-bottom: 0; }
.dialog-body form > label { margin-bottom: 20px; }
.dialog-actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; gap: 12px; }
.dialog-actions .button { min-width: 130px; }
.dialog-body .section-head { margin-top: 28px; }
.recipe-title { font-size: 1.6rem; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 24px; }
.detail-meta { flex-wrap: wrap; }
.detail-meta > span { min-width: 0; }
.ingredients > div > span { min-width: 0; overflow-wrap: anywhere; }
.ingredients strong { max-width: 35%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.picker-row > span { min-width: 0; overflow-wrap: anywhere; }
.picker-row > span:last-child { max-width: 35%; text-align: right; }
.preparation-editor { display: grid; grid-template-columns: minmax(0, 1fr) 145px 42px; align-items: center; }
.preparation-editor input[type=number] { max-width: none; }
.preparation-editor input { margin: 0; }
.ingredient-editor { padding: 12px 0 16px; }
.ingredient-editor [data-i=note] { grid-column: 1 / 4; }
.invite-code { overflow-wrap: anywhere; }
@media (hover: hover) {
  .mini-dish:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--surface); }
}
@media (max-width: 1150px) {
  .page-header > .actions { flex-shrink: 1; }
  .dish-body { padding: 18px; }
}
@media (max-width: 900px) {
  .page-header > div:first-child { flex-basis: 100%; }
  .week-control > .text-button { display: inline-flex; }
  .auth-intro h1 { font-size: 3rem; }
}
@media (max-width: 700px) {
  .shell main { padding: 20px 20px calc(100px + env(safe-area-inset-bottom)); }
  .mobile-brand { margin-bottom: 24px; }
  .page-header { margin-bottom: 24px; }
  .page-header > .actions { flex-shrink: 1; }
  .section-head { gap: 12px; }
  .section-head .text-button { max-width: 40%; }
  .today-banner { padding: 20px; }
  .dish-body { padding: 16px; }
  .week-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .week-control > .text-button { grid-column: 1 / -1; justify-self: end; min-height: 36px; }
  .week-control .date-jump input { margin-top: 0; min-height: 40px; }
  .week-control > .actions { gap: 0; }
  .week-control .icon-button { width: 30px; height: 40px; }
  .week-control .button.small { white-space: nowrap; flex-shrink: 0; }
  .day small { font-size: 0; line-height: 1.4; }
  .day small::after { content: attr(data-count); font-size: .7rem; }
  .shopping-row .icon-button { width: 36px; height: 40px; }
  .shopping-category { margin-top: 24px; }
  .settings-grid .actions { align-items: stretch; }
  .settings-grid .actions .button { flex: 1 1 160px; }
  .auth-intro { padding: 28px 26px 30px; }
  .auth-intro h1 { font-size: clamp(2.25rem, 7.5vw, 3rem); max-width: 520px; }
  .auth-card { padding: 32px 26px 44px; }
  dialog, dialog.wide { width: calc(100% - 24px); max-height: calc(100dvh - 32px); margin: auto; border-radius: 20px; }
  .dialog-header { padding: 14px 18px; }
  .dialog-body { padding: 20px 18px 24px; }
  .dialog-actions { gap: 12px; }
  .recipe-title { font-size: 1.4rem; margin-bottom: 20px; }
  .detail-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .detail-actions > .button { grid-column: span 3; }
  .detail-actions > .icon-button { grid-column: span 2; width: 100%; background: var(--soft); height: 40px; }
  .ingredient-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; }
  .ingredient-editor [data-i=name] { grid-column: 1 / 3; }
  .ingredient-editor [data-i=quantity] { grid-column: 1; grid-row: 2; }
  .ingredient-editor [data-i=unitCode] { grid-column: 2; grid-row: 2; }
  .ingredient-editor [data-i=note] { grid-column: 1 / -1; grid-row: 3; }
  .ingredient-editor > .checkbox-label { grid-column: 1 / -1; grid-row: 4; margin-top: 4px; }
  .ingredient-editor > .icon-button { grid-column: 3; grid-row: 1; width: 36px; height: 44px; margin-top: 6px; }
  .ingredient-editor input { margin-top: 0; font-size: 16px; padding: 10px 12px; }
  .ingredient-editor [data-i=name] { margin-top: 6px; }
  .preparation-editor { grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .preparation-editor input:first-child { grid-column: 1; }
  .preparation-editor input[type=number] { grid-column: 1; grid-row: 2; }
  .preparation-editor .icon-button { grid-column: 2; grid-row: 1; }
  .preparation-editor input, .step-editor textarea { font-size: 16px; }
  .checkbox-label { overflow-wrap: anywhere; }
  .picker-row { gap: 10px; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 440px) {
  .dish-grid { grid-template-columns: 1fr; gap: 16px; }
  .dish-open { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; padding: 16px 16px 0; gap: 16px; }
  .dish-image { width: 88px; height: 104px; border-radius: 12px; }
  .dish-image .icon { width: 34px; height: 34px; }
  .dish-body { padding: 0 0 16px; }
  .dish-body h2 { font-size: 1rem; margin-bottom: 12px; }
  .dish-tags { font-size: .66rem; margin-bottom: 10px; }
  .dish-meta { flex-direction: row; gap: 6px 12px; }
  .dish-footer { margin: 0 16px; }
  .dish-footer .text-button { min-height: 36px; font-size: .82rem; }
  .detail-actions .button { flex-basis: 40%; }
  .form-grid { gap: 12px; }
  .section-head h2 { font-size: 1.05rem; }
  .dialog-actions .button { flex: 1; }
  .invite-code { font-size: 1.4rem; letter-spacing: .1em; padding: 20px 12px; }
}
@media (max-width: 359px) {
  .week-control { gap: 8px; }
  .week-control .date-jump input { max-width: 126px; }
  .shell main { padding-left: 16px; padding-right: 16px; }
  .page-header .button { padding: 10px; font-size: .8rem; }
  .nav-item { font-size: .65rem; }
  .today-banner { padding: 18px 16px; gap: 12px; }
  .today-mark { width: 42px; height: 42px; }
  .dish-open { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .dish-image { width: 68px; height: 88px; }
  .dialog-body { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .detail-meta { align-items: flex-start; }
  .servings { margin-left: auto; }
}
:root[data-theme=dark] { --bg: #121c1a; --line: #304239; --shadow: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --bg: #121c1a; --line: #304239; --shadow: none; }
}

/* Native screen structure, shared with the current SwiftUI app. */
:root{--bg:#f2f2f7;--surface:#fff;--text:#1c1c1e;--muted:#757579;--line:#dcdce1;--soft:#ededf0;--accent:#246d70;--accent-fill:#246d70;--accent-soft:#e7f2f0;--danger:#d64b58}
html,body{background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:17px;line-height:1.45}
button,input,textarea,select{font:inherit}button{touch-action:manipulation}h1,h2,h3{letter-spacing:0}h2{font-size:22px;line-height:1.25}h3{font-size:17px;line-height:1.35}.icon{flex-shrink:0}.button{min-height:44px;border-radius:12px;font-size:16px;font-weight:500;white-space:normal}.button.primary{background:var(--accent-fill);color:#fff}.button.secondary{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.button.surface{background:var(--surface);border:0;color:var(--accent)}.text-button{min-height:44px;font-size:16px;white-space:normal;text-align:left}.text-button.full{justify-content:center;text-align:center}.icon-button{width:44px;height:44px;color:var(--accent);flex-shrink:0}.footnote{font-size:13px;color:var(--muted);line-height:1.5;margin:8px 0 0}.muted{color:var(--muted)}.danger{color:var(--danger)!important}.full{width:100%}
.native-shell{max-width:820px;margin:auto;min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.native-shell main{padding:0;max-width:none}.native-header{display:grid;grid-template-columns:88px minmax(0,1fr) 88px;min-height:64px;align-items:center;padding:4px 12px;background:var(--bg);position:sticky;top:0;z-index:2}.native-header>h1{font-size:22px;font-weight:600;text-align:center;margin:0;overflow-wrap:anywhere;line-height:1.25}.header-tools{display:flex;align-items:center;justify-content:flex-end}.native-header>.icon-button{justify-self:start}.native-content{padding:4px 16px 24px}.native-tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,820px);display:grid;grid-template-columns:repeat(4,1fr);padding:4px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);z-index:3}.native-tab{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;font-size:12px}.native-tab>.icon{width:24px;height:24px}.native-tab.selected{color:var(--accent)}.native-card{background:var(--surface);border-radius:24px;padding:16px;min-width:0;overflow-wrap:anywhere}.native-card>*:last-child{margin-bottom:0}.native-card .native-card{background:var(--bg)}.native-card h2,.native-card h3{margin:0}.section-head{gap:12px;margin:0 0 8px;align-items:center}.section-head h2{font-size:22px}.section-head .text-button{font-size:14px;padding:0;flex-shrink:0}.section-head .muted{font-size:14px}.section-head .icon{width:16px;height:16px;vertical-align:middle}.home-stack{display:flex;flex-direction:column;gap:12px}.home-date{font-size:15px;color:var(--muted)}.home-date small{display:block;font-size:14px;margin-top:4px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:0}.quick-actions .button{padding:8px;font-size:15px}.quick-actions .icon{width:20px;height:20px}.home-meal{padding:8px 0;border-top:1px solid var(--line)}.home-meal:first-of-type{border-top:0}.home-meal>span{font-size:14px;color:var(--muted)}.home-meal>.text-button{display:flex;padding:3px 0;min-height:32px;font-size:17px}.home-meal-title{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;padding:5px 0;min-height:32px;background:none;border:0;text-align:left}.home-meal-title strong{font-size:17px;font-weight:600;overflow-wrap:anywhere}.home-meal-title .rating{flex-shrink:0}.attention-status{display:flex;gap:8px;color:var(--muted);font-size:14px;margin:6px 0}.attention-status .icon{width:18px;height:18px}.shopping-more{margin-top:8px;margin-bottom:0}.summary-item{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:8px 0;overflow-wrap:anywhere}.summary-item>*{min-width:0}.summary-item>span:last-child{text-align:right}
.dish-navigation{margin:0 0 8px}.search{max-width:none;display:flex;align-items:center;width:100%;background:var(--soft);border:0;border-radius:12px;padding:0 12px;gap:8px;margin:0}.search input{border:0;background:none;padding:9px 0;min-height:44px;margin:0;min-width:0}.search .icon{width:20px;height:20px}.filter-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:8px 0;max-width:100%}.filter-scroll .chip{flex-shrink:0;border:0;border-radius:30px;background:var(--soft);padding:5px 16px;min-height:34px;color:var(--text);font-size:14px}.filter-scroll .chip.active{background:var(--accent-fill);color:#fff}.dish-list{display:flex;flex-direction:column;gap:8px}.recipe-row{display:flex;gap:12px;align-items:center;padding:12px 16px}.recipe-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0;background:none;border:0;text-align:left}.recipe-copy{display:block;flex:1;min-width:0}.recipe-copy>strong{font-size:17px;font-weight:600;display:block;line-height:1.35;overflow-wrap:anywhere}.recipe-copy>small{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px}.thumb{width:64px;height:64px;border-radius:12px;flex-shrink:0}.placeholder{background:var(--soft);color:var(--muted)}.recipe-rating{display:flex;align-items:center;gap:4px;background:none;border:0;padding:0;min-height:44px;max-width:95px}.recipe-rating>.icon{width:12px;height:12px;color:var(--muted)}.rating-hearts{display:flex;flex-wrap:wrap;gap:2px;max-width:100%;color:var(--muted)}.rating-hearts .icon{width:14px;height:14px}.filled{color:var(--danger)}.filled .icon{fill:currentColor}.recipe-rating .rating-hearts{max-width:60px}.dish-meta{display:flex;flex-direction:row;justify-content:flex-start;gap:16px;font-size:14px;color:var(--muted);margin-top:5px}.dish-meta>span{display:flex;align-items:center;gap:4px}.dish-meta .icon{width:16px;height:16px}
.native-calendar{padding:0 16px 6px;border-bottom:1px solid var(--line);background:var(--bg)}.calendar-month{display:flex;align-items:center;justify-content:center;gap:8px}.calendar-month strong{font-size:15px;text-transform:capitalize}.calendar-month .icon-button{color:var(--muted)}.calendar-month .icon{width:14px;height:14px}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:0;background:none;border-radius:0;padding:0;gap:0;margin:0}.day{padding:4px 0;gap:4px;min-height:56px;background:none!important;color:var(--muted);border-radius:0}.day>span{font-size:12px}.day>strong{font-size:15px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--text)}.day.active{color:var(--muted);box-shadow:none}.day.active>strong{background:var(--accent-fill);color:#fff}.day.weekend:not(.active)>strong,.day.weekend>span{color:var(--danger)}.day.today:not(.active)>strong{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent)}.plan-day-heading{display:flex;align-items:center;gap:8px;min-height:52px}.plan-day-heading h2{font-size:15px;margin:0}.plan-day-heading>.muted{margin-left:auto;font-size:13px}.today-pill{font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);padding:4px 8px;border-radius:20px}.plan-groups{gap:12px}.plan-group{border:0;padding:16px}.plan-group>.section-head{justify-content:flex-start;padding-bottom:8px;margin:0;border-bottom:1px solid var(--line)}.plan-group .meal-card{background:none;border-radius:0;margin:0;padding:12px 0;gap:12px;border:0;border-bottom:1px solid var(--line)}.meal-main strong{font-size:17px;line-height:1.35}.meal-main span,.meal-main small{font-size:14px;line-height:1.4}.meal-row-tools{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}.meal-row-tools .text-button{padding:0;min-height:22px}.meal-row-tools .icon-button{width:32px;height:32px}.plan-group>.text-button{margin-bottom:-8px;min-height:44px}.plan-group .rating{font-size:13px}
.list-title{border:0;background:none;color:var(--text);padding:0;width:100%;font-size:22px;font-weight:600;line-height:1.2}.list-title small{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.list-title small .icon{width:12px;height:12px}.shopping-stack{display:flex;flex-direction:column;gap:20px;padding-bottom:100px}.shopping-section>h2,.shopping-section>.section-head h2{font-size:17px;font-weight:600;color:var(--muted);margin:8px 16px}.shopping-section>.section-head{margin:0}.shopping-section>.section-head .text-button{padding-right:16px}.shopping-category-card{padding:0 16px}.shopping-row{min-height:52px;padding:6px 0;gap:12px}.shopping-row .check-button{width:24px;height:24px;min-width:24px;border-radius:50%;padding:2px}.shopping-row .item-title{padding:6px 0}.shopping-row .item-title strong{font-size:17px}.shopping-row .item-quantity{font-size:16px;white-space:normal;text-align:right;max-width:35%;overflow-wrap:anywhere}.category-add{display:flex;align-items:center;gap:8px}.category-add input:not([type=hidden]){margin:0;border:0;background:none;padding:10px 0;min-width:0}.category-add .icon-button{color:var(--accent)}.completed-group{opacity:1;padding:0 16px}.dictation-dock{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:2;max-width:calc(100% - 32px)}.dictation-dock .button{border-radius:30px;padding:12px 22px;box-shadow:0 4px 20px #0002;white-space:nowrap}
.native-auth{min-height:100dvh;padding:32px 24px!important;display:flex;align-items:center;justify-content:center;position:relative;background:var(--bg);max-width:none!important}.welcome,.native-signin{width:100%;max-width:440px;margin:auto}.welcome{display:flex;flex-direction:column;gap:32px;text-align:center}.welcome-brand{font-size:17px;font-weight:600;color:var(--muted);margin:0}.welcome h1{font-size:34px;line-height:1.16;font-weight:750;letter-spacing:-.6px;margin:0 0 12px}.welcome>div>p{font-size:17px;color:var(--muted);margin:0}.welcome .footnote{font-size:13px;margin:16px 0 0}.welcome-illustration{height:240px;position:relative;display:grid;place-items:center}.welcome-circle{position:absolute;width:220px;height:220px;border-radius:50%;background:#ff95001e}.welcome-list{position:relative;display:flex;flex-direction:column;gap:14px;padding:22px;background:var(--surface);border-radius:24px;transform:rotate(-5deg);box-shadow:0 8px 16px #0000000f;text-align:left}.welcome-list strong,.welcome-list span{display:flex;align-items:center;gap:9px}.welcome-list strong{color:var(--accent)}.welcome-list .icon{width:21px;height:21px}.welcome-list i{display:flex;color:var(--muted)}.welcome-list i.orange{color:#ff9500}.welcome-list i.green{color:#34c759}.welcome-cutlery{position:absolute;left:calc(50% + 68px);top:155px;background:var(--surface);border-radius:50%;padding:18px;color:#ff9500;display:flex}.welcome-cutlery .icon{width:24px;height:24px}.auth-back{position:absolute;left:max(12px,calc(50% - 236px));top:12px;gap:3px}.auth-back .icon{width:20px}.native-signin{display:flex;flex-direction:column;gap:32px;padding-top:32px}.signin-heading{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}.signin-heading>.icon{width:44px;height:44px;color:var(--accent);stroke-width:1.3}.signin-heading h1{font-size:28px;font-weight:750;line-height:1.2;margin:0}.signin-heading p{font-size:17px;color:var(--muted);margin:0;overflow-wrap:anywhere}.native-signin label{font-size:15px;font-weight:600;margin:0 0 16px}.native-signin input{padding:16px;border-radius:16px;background:var(--surface);margin-top:16px;font-size:17px;min-height:56px}.native-signin input::placeholder{color:var(--muted);opacity:1}.native-signin .text-button{margin-top:12px}.native-signin .button{min-height:52px}.native-signin .footnote{margin-top:16px}
.profile-stack{display:flex;flex-direction:column;gap:20px}.form-section{margin:0 0 20px}.form-section>h3{font-size:15px;color:var(--muted);font-weight:500;margin:0 16px 8px}.profile-stack>.form-section{margin:0}.row-button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;background:none;border:0;border-bottom:1px solid var(--line);width:100%;padding:12px 0;text-align:left;color:var(--text);overflow-wrap:anywhere}.row-button:last-child{border-bottom:0}.row-button>span{min-width:0}.row-button>span:last-child:not(:first-child){display:flex;align-items:center;gap:8px}.row-button small{display:block;font-size:13px;color:var(--muted);font-weight:400}.row-button .icon{width:16px;height:16px;flex-shrink:0;color:var(--accent)}.person-row{display:flex;gap:12px;align-items:center;margin:0!important;min-width:0}.person-row>span:nth-child(2){flex:1;min-width:0}.person-row strong{font-size:17px;font-weight:400;overflow-wrap:anywhere}.person-row small{display:block;font-size:13px}.person-row .avatar{width:36px;height:36px;flex-shrink:0}.person-row>.icon{width:12px;height:12px}.person-row .filled .icon{color:var(--danger);width:20px;height:20px}.person-toggle{font-size:17px;font-weight:400}.person-toggle>strong{flex:1}.person-toggle input{margin-left:auto}.person-toggle:last-of-type{border:0}.web-preferences{color:var(--muted);font-size:14px}.web-preferences label{margin-top:12px}details>summary{min-height:44px;cursor:pointer;padding:10px 0;font-size:16px}details>summary>.muted{float:right}.native-card label:last-child{margin-bottom:0}.native-card .form-grid label{margin-bottom:0}.native-card .form-grid{gap:12px}.native-card input,.native-card textarea,.native-card select{background:var(--surface)}
dialog,dialog.wide{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 48px);border:0;border-radius:24px;background:var(--bg)}dialog.wide{width:min(760px,calc(100% - 32px))}.dialog-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;padding:8px 12px;background:var(--bg);border-bottom:1px solid var(--line);min-height:60px}.dialog-header>h2{grid-column:2;grid-row:1;text-align:center;font-size:17px;font-weight:600;margin:0}.dialog-header>.icon-button{grid-column:1;grid-row:1;color:var(--muted)}.dialog-body{padding:20px 16px}.dialog-actions{margin-top:20px;gap:12px}.dialog-actions>.button.primary{min-width:140px}.dialog-body>form>.form-section:last-of-type{margin-bottom:0}.dialog-body label:has(input[hidden]){display:none}.dialog-body label:has(input[type=hidden]){display:none}.recipe-content{display:flex;flex-direction:column;gap:20px;padding:0 16px 24px;background:var(--surface)}.dialog-body:has(>.recipe-content){padding:0}.recipe-header{background:var(--surface)}.hero-button{padding:0;border:0;background:none;width:100%;text-align:center}.detail-photo{height:240px;width:100%;object-fit:cover;margin:0;border-radius:24px}.recipe-hero-placeholder{height:240px;border-radius:24px;background:linear-gradient(135deg,#ff95004d,#ffcc0020);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.recipe-hero-placeholder>.icon{width:70px;height:70px;stroke-width:1}.recipe-hero-placeholder>span{font-size:14px}.recipe-summary .recipe-title{font-size:28px;font-weight:700;line-height:1.2;margin:0;overflow-wrap:anywhere}.recipe-likes{display:flex;gap:8px;align-items:center;min-height:44px;background:none;border:0;padding:0;font-size:13px;color:var(--muted);text-align:left;flex-wrap:wrap}.recipe-tabs{display:flex;gap:4px;padding:4px;background:var(--soft);border-radius:12px}.recipe-tabs>button{flex:1;min-height:36px;border:0;background:none;color:var(--muted);font-size:15px;border-radius:10px}.recipe-tabs>button.selected{background:var(--accent-fill);color:#fff;font-weight:600}.recipe-content .recipe-steps{margin-bottom:0}.recipe-content .recipe-steps li{font-size:17px}.recipe-content .ingredients{margin-bottom:0}.recipe-content h3{margin:0 0 12px}.recipe-content .preserve{font-size:15px;color:var(--muted)}.recipe-content .native-card{background:var(--bg)}.recipe-content>.button{margin-top:-6px}.recipe-content .recipe-title{max-height:none;overflow:visible}.meal-selection-card{display:flex;gap:12px}.recipe-row.row-button>span{display:block;flex:1}.recipe-row.row-button{padding:12px 0}.recipe-row.row-button .thumb{width:52px;height:52px}.recipe-row.row-button>span>strong{display:block}.empty{padding:48px 16px;border:0;background:none;min-height:200px}.empty h3{font-size:22px}.empty p{font-size:16px}.empty>.icon{width:48px;height:48px}.ingredient-editor,.step-editor,.preparation-editor{padding:8px 0}.notice{margin:12px 16px}#toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:14px}
:root[data-theme=dark]{--bg:#000;--surface:#1c1c1e;--text:#f2f2f7;--muted:#a1a1a6;--line:#38383a;--soft:#2c2c2e;--accent:#76c5be;--accent-fill:#246d70;--accent-soft:#172f2a;--danger:#ff7786}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#000;--surface:#1c1c1e;--text:#f2f2f7;--muted:#a1a1a6;--line:#38383a;--soft:#2c2c2e;--accent:#76c5be;--accent-fill:#246d70;--accent-soft:#172f2a;--danger:#ff7786}}
@media(min-width:850px){.native-shell{border-inline:1px solid var(--line)}.native-content{padding:12px 28px 28px}.native-header{padding-inline:24px}.native-calendar{padding-inline:28px}.recipe-content{padding:0 28px 32px}.native-tabbar{border-inline:1px solid var(--line)}.native-auth{padding-block:48px!important}}
@media(max-width:600px){dialog,dialog.wide{width:100%;max-width:100%;max-height:calc(100dvh - 16px);margin:auto 0 0;border-radius:24px 24px 0 0}.dialog-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}.dialog-header{padding-top:10px}.native-header{min-height:58px}.native-content{padding-top:0}.recipe-content .recipe-steps li{font-size:16px}.recipe-rating{max-width:65px}.recipe-rating .rating-hearts{max-width:34px}.quick-actions{gap:8px}.quick-actions .button{font-size:14px;gap:5px}.native-auth{padding-block:32px!important}}
@media(max-width:360px){.native-header{grid-template-columns:78px minmax(0,1fr) 78px;padding-inline:6px}.header-tools .icon-button{width:39px}.native-header>h1,.list-title{font-size:20px}.native-content{padding-inline:12px}.recipe-row{gap:8px;padding:12px}.recipe-open{gap:8px}.recipe-rating{max-width:42px}.recipe-rating .rating-hearts{max-width:18px}.recipe-copy>strong{font-size:16px}.thumb{width:56px;height:56px}.section-head h2{font-size:20px}.welcome{gap:24px}.welcome h1{font-size:32px}.native-auth{padding-inline:20px!important}.quick-actions .icon{width:17px;height:17px}.quick-actions .button{font-size:13px}.recipe-title{font-size:26px}.native-meal-row .thumb{width:48px;height:48px}.meal-main strong{font-size:16px}.meal-main span{font-size:13px}}

.profile-control{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--surface);color:var(--accent);font-size:17px;font-weight:600;box-shadow:0 4px 16px #00000007}.home-meal:nth-child(2){border-top:0}

.dialog-header>.save-control{grid-column:3;color:var(--accent)}dialog[data-page=family] .dialog-header>.icon-button,dialog[data-page=shopping-prompt] .dialog-header>.icon-button{grid-column:3;font-size:15px;width:auto;justify-content:flex-end;color:var(--accent)}.recipe-ingredient-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.recipe-ingredient-row>.row-button{flex:1;border:0}.recipe-ingredient-row>.row-button>span{display:block}.recipe-ingredient-row small{display:block;font-size:14px;color:var(--muted)}.recipe-ingredient-row>div[hidden]{display:none}.recipe-ingredient-row>.icon-button{color:var(--muted);width:36px}.success-label{display:flex;align-items:center;gap:8px;color:#2d9050;font-size:15px}.shopping-prompt-title{margin:20px 0 12px}.picker-row.added{color:var(--muted)}.dialog-actions:empty{display:none}.native-content .section-head .text-button{max-width:none}

.row-button>span:only-child{display:block;width:100%}.row-button>span:only-child>strong{display:block}.row-button>span:only-child>small{margin-top:4px}
#meal-day-preview .summary-item,[data-screen-section=tomorrow] .summary-item{display:grid;grid-template-columns:minmax(64px,.4fr) minmax(0,1fr);gap:12px;align-items:start}#meal-day-preview .summary-item{font-size:14px}#meal-day-preview .summary-item>strong{font-weight:500}

/* Quantity overrides apply only to the groceries being added. */
.shopping-candidate + .shopping-candidate { border-top: 1px solid var(--line); }
.shopping-candidate .picker-row { border-bottom: 0; margin: 0; }
.shopping-amount-editor { padding: 0 0 14px 32px; }
.shopping-amount-editor summary { color: var(--accent); cursor: pointer; font-size: .85rem; min-height: 32px; }
.shopping-amount-editor .form-grid { margin-top: 8px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.shopping-amount-editor label { min-width: 0; margin-bottom: 0; }
.item-amount-button { border: 0; background: transparent; padding: 8px 0 8px 8px; min-height: 44px; }

.step-ingredient{margin-top:6px;font-size:.9rem;line-height:1.4}

/* Forms and nested sheets share the current iOS hierarchy. */
dialog.editor-sheet[open]{display:flex;flex-direction:column;overflow:hidden}.editor-sheet>.dialog-header{flex:none;position:relative}.editor-sheet>.dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.editor-action-bar{flex:none;padding:8px 16px max(12px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}.editor-action-bar .button{min-height:48px}.dialog-header>.cancel-control{width:auto;font-size:15px;justify-content:flex-start;white-space:nowrap}.editor-sheet .dialog-header{grid-template-columns:72px minmax(0,1fr) 72px}
.form-section>.section-head h3,.form-section>.section-head{margin:0}.form-section>.section-head{padding:0 16px 8px}.form-section>.section-head h3{font-size:15px;color:var(--muted);font-weight:500}
.stepper-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px}.stepper-row>div{display:flex;align-items:center;gap:2px;flex-shrink:0}.stepper-row input{width:48px!important;min-width:0!important;text-align:center;border:0;padding:0!important;margin:0!important;background:none!important;appearance:textfield;-moz-appearance:textfield}.stepper-row input::-webkit-inner-spin-button,.stepper-row input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper-row .icon-button{width:36px;height:44px;color:var(--accent)}.stepper-row .icon{width:18px}.stepper-row>span{overflow-wrap:anywhere}
.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:12px;align-items:start}.person-choice{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;background:none;border:0;padding:6px 0;margin:0!important;font-size:14px;font-weight:400;color:var(--text);text-align:center;cursor:pointer;position:relative;overflow-wrap:anywhere}.person-choice .avatar{width:44px;height:44px;font-size:17px;position:relative;overflow:visible}.person-choice input{position:absolute;opacity:0;width:1px;height:1px}.person-choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}.person-choice:has(input:not(:checked)) .avatar{filter:grayscale(1);opacity:.55}.person-choice:has(input:checked) .avatar:after{content:'✓';position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;background:var(--accent-fill);color:white;font-size:12px;border:2px solid var(--surface)}.person-heart{position:absolute;bottom:-3px;right:-3px;background:var(--surface);border-radius:50%;color:var(--danger);padding:3px;display:flex}.person-heart .icon{width:14px;height:14px;fill:currentColor}
.food-link{background:var(--accent-soft);border-radius:12px;margin-top:8px;padding:12px;color:var(--accent);border:0;justify-content:flex-start}.food-link>.icon:last-child{margin-left:auto}.meal-selected{display:flex;gap:12px;align-items:center;padding:12px;background:var(--surface);border-radius:24px}.meal-selected>span{flex:1;min-width:0}.meal-selected strong{overflow-wrap:anywhere}.meal-selected small{display:block;color:var(--muted)}.meal-selected .thumb{width:40px;height:40px}.meal-selected .icon-button{flex-shrink:0}.date-pills,.kind-pills{margin:4px -4px;gap:6px;padding:4px}.date-pills .chip,.kind-pills .chip{flex-shrink:0}#meal-selection>label{padding:0 4px}#food-suggestions .thumb{width:40px;height:40px}#food-suggestions .row-button{justify-content:flex-start}#food-suggestions .row-button>span{flex:1}#meal-time-caption{margin-left:auto;font-size:15px;color:var(--muted)}
.picker-dish{padding:12px 0;display:flex;gap:12px;border-bottom:1px solid var(--line)}.picker-dish .recipe-open{flex:1;min-width:0}.picker-dish .recipe-open>span{display:block;min-width:0}.picker-dish strong,.picker-dish small{display:block}.picker-dish small{color:var(--muted);font-size:14px}.picker-dish .recipe-open .rating-hearts{margin-top:6px}
.step-editor{display:grid;grid-template-columns:24px minmax(0,1fr) 36px;gap:8px;align-items:start}.step-editor textarea{grid-column:2;min-width:0;width:100%;margin:0}.step-editor>.icon-button{grid-column:3}.step-editor>.step-uses{grid-column:2/4;font-size:14px;justify-content:flex-start;text-align:left}.step-number{background:var(--accent-soft);color:var(--accent);border-radius:8px;font-size:14px;text-align:center;margin-top:8px;line-height:24px}.step-use-row{padding:12px 0;border-bottom:1px solid var(--line)}.step-use-row:last-child{border:0}.step-use-row .checkbox-label{justify-content:flex-start}.step-use-row>label:last-child{margin-top:8px}
.shopping-candidate{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px}.shopping-candidate .picker-row{display:flex;min-width:0;justify-content:flex-start;text-align:left}.shopping-candidate .picker-row>span{flex:1;text-align:left;min-width:0}.shopping-candidate .picker-row strong,.shopping-candidate .picker-row small{display:block;text-align:left;overflow-wrap:anywhere}.shopping-candidate .picker-row small{color:var(--muted);font-size:14px}.shopping-candidate input[type=checkbox]{flex:none;width:20px;height:20px}.shopping-category{margin-top:20px}
.shopping-photo-preview{display:block;max-height:240px;width:100%;object-fit:contain;border-radius:16px;margin-bottom:12px}.photo-preview-button{background:none;border:0;padding:0;width:100%}.shopping-photo-thumb{width:40px;height:40px;border:0;background:none;padding:0;flex:none}.shopping-photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.recipe-description{color:var(--muted);font-size:15px}.recipe-description summary{list-style:none;display:flex;flex-direction:column;gap:8px;font-size:15px}.recipe-description summary::-webkit-details-marker{display:none}.description-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.description-expand,.description-collapse{font-size:13px;color:var(--accent);min-height:32px;display:flex;align-items:center}.description-collapse{display:none}.recipe-description[open] .description-preview,.recipe-description[open] .description-expand{display:none}.recipe-description[open] .description-collapse{display:flex}.recipe-description[open]{display:flex;flex-direction:column}.recipe-description[open]>summary{order:2}.recipe-description .preserve{margin:0}
.attention-status{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:var(--accent-soft);border-radius:16px}.attention-status>span{min-width:0}.attention-status .text-button{flex-shrink:0}.dialog-actions>.button.danger{background:#b42338;border-color:#b42338;color:#fff!important}
.dialog-actions>.button.danger:hover{background:#961d2e;border-color:#961d2e}[hidden]{display:none!important}
@media(max-width:360px){.stepper-row{gap:4px}.stepper-row>span{font-size:15px}.stepper-row .icon-button{width:30px}.dialog-header>h2{font-size:16px}.editor-sheet .dialog-header{grid-template-columns:64px minmax(0,1fr) 64px}.attention-status{align-items:flex-start}.attention-status .text-button{font-size:13px}.people-grid{gap:8px}}

.row-label{flex:1;text-align:left}.shopping-category h3{text-transform:none}.step-use-row{display:block}.step-use-row [data-step-amount]{padding:8px 0 0 28px}

.step-editor>.step-uses{display:block}.step-uses>span,.summary-item>span>small{display:block}.recipe-likes:disabled,.hero-button:disabled{opacity:1}

/* Keep meal → recipe → AI navigation in one stable sheet. */
dialog.editor-sheet{height:min(720px,calc(100dvh - 48px))}
dialog.editor-sheet.wide{width:min(620px,calc(100% - 32px))}
dialog.confirmation-sheet{width:min(420px,calc(100% - 32px));height:fit-content;margin:auto;border-radius:24px}
.confirmation-sheet .dialog-header{grid-template-columns:40px minmax(0,1fr) 40px}
.confirmation-sheet .dialog-actions{flex-direction:column-reverse;border-top:0;padding-top:0}
.confirmation-sheet .dialog-actions>.button{width:100%;white-space:normal}
.confirmation-sheet .dialog-body>p{text-align:center;color:var(--muted)}
@media(max-width:600px){
  dialog.editor-sheet,dialog.editor-sheet.wide{width:100%;height:calc(100dvh - 16px)}
}
@media(max-width:900px),(pointer:coarse){.desktop-dictation{display:none}}

/* Lightweight shopping editor, matching the grouped rows of the native form. */
dialog.item-sheet{width:min(460px,calc(100% - 32px));height:fit-content}
.item-sheet .dialog-body{padding:16px}
.item-fields{background:var(--surface);border-radius:18px;padding:0 14px}
.item-fields>.item-field{display:flex;align-items:center;gap:12px;min-height:52px;margin:0;font-size:15px;font-weight:400}
.item-field+.item-field{border-top:1px solid var(--line)}
.item-field>span{flex:none;color:var(--text)}
.item-field>input,.item-field>select{flex:1;min-width:0;width:0;margin:0;padding:10px 0;border:0;border-radius:0;background:transparent;font-size:16px;text-align:right;box-shadow:none}
.item-field>select{text-align-last:right;color:var(--accent)}
.item-field>input::placeholder{color:var(--muted)}
.item-field>input:focus-visible,.item-field>select:focus-visible{outline-offset:0;border-radius:6px}
.item-photo{margin-top:12px;padding:0 14px}
.item-photo-add{display:flex;align-items:center;gap:8px;position:relative;min-height:48px;margin:0;color:var(--accent);font-size:15px;font-weight:400;cursor:pointer}
.item-photo-add>input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.item-photo-add:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.item-sheet .shopping-photo-preview{max-height:140px;width:auto;max-width:100%;border-radius:12px;object-fit:contain}
.item-sheet .dialog-actions{border:0;margin-top:12px;padding-top:0}
.item-sheet .form-error:empty{display:none}
@media(max-width:600px){dialog.item-sheet{width:100%;max-width:100%;border-radius:24px 24px 0 0}.item-sheet .dialog-body{padding-bottom:max(16px,env(safe-area-inset-bottom))}}

.participant-archive{border-top:1px solid var(--line)}
.participant-archive>summary{padding:14px 0;min-height:48px;color:var(--muted);cursor:pointer}

/* Recipe creation matches the native plate, with a full-content crossfade. */
.recipe-stage{display:grid!important;align-content:start}.recipe-stage>form,.recipe-generation{grid-area:1/1;min-width:0}.recipe-generation{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 8px;gap:28px;pointer-events:none}.recipe-generation canvas{display:block;width:280px;max-width:100%;height:auto;aspect-ratio:1;--plate-dark:0}.recipe-generation h3{font-size:1.375rem;font-weight:650;line-height:1.3;margin:0}.recipe-generation p{max-width:290px;color:var(--muted);font-size:.9375rem;line-height:1.55;margin:-16px 0 0}
:root[data-theme=dark] .recipe-generation canvas{--plate-dark:1}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .recipe-generation canvas{--plate-dark:1}}

/* First dinner: the arrows share the full card width on every viewport. */
.meal-concept{width:100%;max-width:400px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:left}
.concept-card{width:100%;display:flex;align-items:center;gap:14px;padding:14px;border-radius:20px;background:var(--surface,#fff)}
.concept-card>span:last-child{display:grid;gap:4px}.concept-card small{color:var(--muted,#808087)}.concept-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e8f1f1;color:var(--accent,#26797c);flex-shrink:0}.concept-icon .icon{width:24px;height:24px}
.concept-arrow{width:100%;text-align:center;font-size:20px;line-height:20px;color:var(--muted,#999)}
.first-dinner{max-width:560px;margin:auto;display:flex;flex-direction:column;gap:18px;padding-bottom:32px}.first-dinner h2,.first-dinner h3,.first-dinner p{margin:0}.first-recipes{display:grid;gap:12px}.first-recipe{display:flex;align-items:center;gap:14px;width:100%;text-align:left;color:inherit;cursor:pointer}.first-recipe>span{display:grid;gap:6px}.first-recipe small{color:var(--muted,#777)}.first-recipe img{width:64px;height:64px;object-fit:cover;border-radius:14px}.first-dinner form{display:grid;gap:16px}.first-ingredient{display:flex;align-items:center;gap:12px;padding:12px 0}.first-ingredient small{display:block;color:var(--muted,#777)}.first-ingredient input{width:20px;height:20px}.first-dinner li{margin:8px 0}.first-invite{margin-block:12px}.first-dinner .dialog-actions{position:static}
.first-dinner-header{display:flex;justify-content:space-between;gap:12px;padding-inline:16px}.first-dinner-header>span{display:none}.first-dinner-header>.text-button{white-space:nowrap;flex-shrink:0}.first-dinner-header>h1{text-align:left}
