/* Renaissance Garden: shared by the app shell and the embedded menu. */
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/cormorant-cyrillic-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0400-04FF}
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/cormorant-latin-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-024F,U+2000-206F}
:root{color-scheme:light;--ink:#29352D;--muted:#52604D;--cream:#F6F0E4;--green:#354C3D;--green-dark:#293D30;--soft:#E8E7D9;--line:#DCD2C0;--gold:#967643;--paper:#FFFCF5;--font-body:'Sofia Sans',Arial,sans-serif;--font-title:'Cormorant Garamond',Georgia,serif;--background:#F6F0E4;--foreground:#29352D;--card:#FFFCF5;--card-foreground:#29352D;--popover:#FFFCF5;--popover-foreground:#29352D;--primary:#354C3D;--primary-foreground:#FFFCF5;--secondary:#E8E7D9;--secondary-foreground:#354C3D;--border:#DCD2C0;--input:#ABB39F;--ring:#354C3D}
body{background:var(--cream);color:var(--ink);font:400 17px/1.55 var(--font-body)}
button,input,select,textarea{font-family:var(--font-body);font-size:16px}
button{border-radius:3px;background:var(--paper);color:var(--green);font-weight:500;transition:background .16s,border-color .16s,transform .16s}
button:hover{background:var(--soft);border-color:var(--gold)}
button:disabled{opacity:.6;cursor:not-allowed}
button:active:not(:disabled){transform:translateY(1px)}
input,textarea,select{border-radius:3px;background:var(--paper);border-color:#ABB39F;font-size:16px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--green);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--font-title);font-weight:500;color:var(--green);line-height:1.15;overflow-wrap:anywhere}
h1,.content>header h1{font-size:38px}
h2{font-size:32px}h3{font-size:28px}h4{font-size:24px}
small,.fine,.field-hint{font-size:14px;color:var(--muted)}
.primary,.login-form>button[type=submit],.planning-submit{
 min-height:56px;min-width:160px;padding:13px 27px;border:0;border-radius:0;background-color:transparent;
 background-image:url('/images/button-cartouche-primary.svg');background-size:100% 100%;background-repeat:no-repeat;
 color:var(--paper);font-size:16px;font-weight:500;box-shadow:0 8px 20px #29352D0D;
}
.primary:hover,.login-form>button[type=submit]:hover,.planning-submit:hover{background-color:transparent;color:var(--paper);filter:brightness(.92)}
.primary:disabled,.login-form>button[type=submit]:disabled{filter:grayscale(.3);opacity:.6}
.primary:focus-visible{outline-offset:4px}
.soft-btn,.header-actions>button:first-of-type{border:0;border-radius:0;background-color:transparent;background-image:url('/images/button-cartouche-secondary.svg');background-size:100% 100%;color:var(--green)}
.soft-btn:hover,.header-actions>button:first-of-type:hover{background-color:transparent;filter:brightness(.96)}
.app-shell{background:var(--cream)!important;color:var(--ink)!important}
.site-header,.site-header:has(.supplied-brand){background:var(--paper);padding:6px 30px;min-height:92px;border-bottom:3px double var(--line);gap:20px}
.brand-lockup.supplied-brand,.site-header .brand-lockup.supplied-brand{padding:0;display:block;flex-shrink:0}
.brand-lockup.supplied-brand img,.site-header .brand-lockup.supplied-brand img{display:block;width:170px;height:80px;object-fit:cover;mix-blend-mode:normal}
.top-menu-nav{gap:4px}
.top-menu-nav button{position:relative;padding:11px 15px;min-height:44px;font-weight:500;background:transparent;color:var(--green)}
.top-menu-nav button:hover{background:var(--soft)}
.top-menu-nav button.active{background:transparent;color:var(--green)}
.top-menu-nav button.active::after{content:'';position:absolute;bottom:1px;left:14px;right:14px;height:1px;background:var(--gold)}
.top-menu-nav button.active::before{content:'';position:absolute;z-index:1;bottom:-5px;left:calc(50% - 6px);width:12px;height:12px;background:var(--paper) url('/images/garden-rosette.svg') center/12px no-repeat}
.header-actions{gap:8px;min-width:0}
.header-actions select{min-height:44px;border-radius:3px;background:var(--paper);padding:7px 4px;max-width:56px;font-size:14px}
.header-actions>button{font-size:15px;min-width:68px}
.header-actions>button:first-of-type{min-width:84px;padding:10px 16px}
.header-actions>button:not(:first-of-type){border-color:transparent;background:transparent;padding:8px}
.sync-status{background:var(--soft)!important;color:var(--green);padding:5px 30px!important;font-size:14px;min-height:32px}
.sync-status button{font-size:14px}
.content{padding:30px clamp(20px,4vw,60px) 60px;background:radial-gradient(ellipse at 50% 20%,#FFFCF538,transparent 68%)}
.content>header{margin-bottom:24px}
.content>header small{color:var(--green);font-size:12px;letter-spacing:1.6px}
.content>header small::before{content:'';display:inline-block;vertical-align:middle;width:22px;height:1px;background:var(--gold);margin-right:10px}
.content>header p{color:var(--muted);font-size:14px}
.week-view:not(.planning-view) #kicker{display:block}
.week-toolbar{padding:18px 20px;margin-bottom:26px;background:var(--paper);border:1px solid var(--line);align-items:center}
.week-toolbar .primary{min-height:48px;min-width:160px;padding:10px 22px}
.week-period b{font-size:18px;font-weight:500}
.day-grid{gap:32px}
.day-head{border-bottom:3px double var(--line);padding-bottom:13px;margin-bottom:17px}
.day-head h2{font-size:30px;display:flex;align-items:center;gap:10px}
.day-head h2::before{content:'';display:inline-block;width:16px;height:16px;background:url('/images/garden-rosette.svg') center/contain no-repeat;flex:none}
.day-head>button{font-size:14px;min-height:44px;color:var(--green)}
.day-meals{gap:18px}
.meal-card,.meal-card:last-child{padding:18px;background:var(--paper);border-radius:2px;border:1px solid var(--line);box-shadow:0 5px 18px #29352D03}
.meal-top{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:14px;align-items:center}
.meal-top strong{font-size:12px;letter-spacing:1.2px;font-weight:500}
.more-button{font-size:14px;color:var(--green)}
.meal-component .component-open,.day-meals:has(>.meal-card:only-child) .meal-component:only-child .component-open{display:flex;flex-direction:column;align-items:stretch;border-radius:0;gap:0;min-width:0}
.meal-component .recipe-visual{width:100%;height:auto;aspect-ratio:4/3;border-radius:2px;grid-column:auto;grid-row:auto}
.meal-component .component-label{font-size:14px;margin-top:12px;color:var(--muted)}
.meal-component .meal-title,.meal-title{font:500 26px/1.1 var(--font-title);color:var(--green);margin-top:6px}
.meal-variant{font-size:14px;line-height:1.45;display:block;margin-top:7px}
.meal-components.has-sides .meal-component:not(:first-child) .component-open{display:grid;grid-template-columns:48px minmax(0,1fr);gap:3px 10px;align-items:start;border-top:1px solid var(--line);padding-top:12px;margin-top:2px}
.meal-components.has-sides .meal-component:not(:first-child) .recipe-visual{width:48px;height:36px;grid-row:1/4;grid-column:1}
.meal-components.has-sides .meal-component:not(:first-child) .component-label{margin:0;grid-column:2;font-size:12px}
.meal-components.has-sides .meal-component:not(:first-child) .meal-title{font:500 17px/1.4 var(--font-body);margin:0;grid-column:2}
.meal-components.has-sides .meal-component:not(:first-child) .meal-variant{grid-column:2;margin:0}
.component-change{margin-left:58px;min-height:44px}
.portion-line{font-size:14px;color:var(--green);margin-top:12px}
.meal-card .meal-actions{padding-top:14px;border-top:1px solid var(--line);margin-top:10px;gap:8px}
.meal-card .meal-actions button:first-child{background:var(--paper);border-color:var(--line)}
.meal-card .meal-actions button:hover{background:var(--soft);border-color:var(--gold)}
.day-meals:has(>.meal-card:only-child) .meal-card{display:flex;max-width:680px}
.day-meals:has(>.meal-card:only-child) .meal-components,.day-meals:has(>.meal-card:only-child) .meal-components.has-sides{grid-template-columns:1fr;max-width:none}
.day-meals:has(>.meal-card:only-child) .meal-component:first-child .component-open{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0 16px}
.day-meals:has(>.meal-card:only-child) .meal-component:first-child .recipe-visual{grid-column:1;grid-row:1/4;max-width:150px}
.day-meals:has(>.meal-card:only-child) .meal-component:first-child .component-label,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .meal-title,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .meal-variant{grid-column:2}
.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.card{background:var(--paper);border-radius:2px;border-color:var(--line);box-shadow:0 5px 18px #29352D03}
.card:hover{border-color:var(--gold)}
.card-media{padding:7px 7px 0}
.card>.card-media>.recipe-visual{height:auto;aspect-ratio:4/3;border-radius:2px}
.card .combination-visual .recipe-visual{height:auto;aspect-ratio:4/3;border-radius:2px}
.card .copy{padding:17px 18px 20px}
.card .copy h3{font:500 26px/1.1 var(--font-title);margin:8px 0 12px}
.card-media .category{background:var(--paper);border:1px solid var(--line);border-radius:2px;color:var(--green)}
.tag{border-radius:2px;background:var(--soft);color:var(--green)}
.catalog-tools input{background:var(--paper);min-height:48px}
.category-filters button{border-radius:3px;font-weight:500}
.modalbg{background:#29352D66;backdrop-filter:none}
.modal{background:var(--paper);border:1px solid var(--gold);border-radius:2px;padding:30px;box-shadow:0 18px 50px #29352D30}
.modal h2{font-size:36px;padding-bottom:23px;border-bottom:3px double var(--line);margin-bottom:23px}
.modal h2{position:relative}.modal h2::after{content:'';position:absolute;bottom:-9px;left:calc(50% - 13px);width:26px;height:16px;background:var(--paper) url('/images/garden-rosette.svg') center/16px no-repeat}
.modal .close{border-radius:50%;min-width:44px;background:var(--paper);color:var(--green)}
.modal h3{font-size:28px}.modal h4{font-size:26px}
.modal-cols{gap:30px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.modal-cols>section>ol{list-style:none;counter-reset:garden-step;padding:0}
.modal-cols>section>ol>li{counter-increment:garden-step;position:relative;padding-left:37px;margin-bottom:20px;line-height:1.6;font-size:17px}
.modal-cols>section>ol>li::before{content:counter(garden-step);position:absolute;left:0;top:2px;width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;font-size:14px;color:var(--green)}
.component-section>.recipe-visual{border-radius:2px;border:1px solid var(--line);padding:4px;background:var(--cream);max-width:540px}
.component-badge{border-radius:2px;background:var(--soft);color:var(--green)}
.component-section{border-color:var(--line)}
.shopping-view .content{max-width:1120px;padding-top:30px}
.shopping-view .shop section{background:var(--paper);border-radius:2px;border:1px solid var(--line);padding:22px 24px}
.shopping-view .shop h3{font:500 28px/1.15 var(--font-title);padding-bottom:12px;border-bottom:3px double var(--line)}
.shopping-view .shop-item{padding:10px 0}
.shop-product{font-weight:400;font-size:17px}
.shop-quantity{color:var(--green);font-size:15px}
.stock-row button{color:var(--green);font-weight:400}
.shopping-tool-actions>button:first-child{background:transparent url('/images/button-cartouche-primary.svg') center/100% 100% no-repeat;border:0;border-radius:0;color:var(--paper);min-height:52px;padding:11px 25px}
.shopping-mode,.shopping-estimate,.pantry-chip,.stock-list label,.import-box,.planning-panel{border-radius:3px}
.shopping-mode{background:var(--paper);border-color:var(--line)}
.shopping-mode button.active{background:var(--green);color:var(--paper)}
.retailer-row strong,.retailer-row small{color:var(--green)}
.notice,.variety-note,.recipe-safety-note{border-radius:3px}
.mobile{background:var(--paper);border-top:3px double var(--line);gap:0;padding:4px 5px max(6px,env(safe-area-inset-bottom))}
.mobile button{color:var(--green);font-size:12px;min-height:60px;border-radius:0;padding:8px 4px}
.mobile button.active{background:var(--soft);color:var(--green)}
.mobile .icon{width:18px;height:18px;stroke-width:1.5}
/* The approved family scene and the main action share one calm composition. */
.planning-view .content{padding:0 0 80px;background:var(--cream)}
.planning-welcome{background:radial-gradient(ellipse at 50% 30%,#FFFCF548,transparent 70%);padding-top:16px}
.planning-welcome .hero-menu{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);align-items:center;gap:32px;width:100%;max-width:1120px;height:auto;min-height:0;margin:0 auto;padding:0 clamp(24px,4vw,40px);background:transparent;overflow:visible;border:0;border-radius:0}
.planning-welcome .hero-copy{position:static;display:block;width:100%;padding:0;background:none;align-self:center;min-width:0}
.planning-welcome .hero-copy h2{font:500 clamp(34px,3.2vw,42px)/1.08 var(--font-title);max-width:590px;margin:14px 0}
.planning-welcome .hero-copy .hero-kicker{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:1.6px;color:var(--green);max-width:none;margin:0}
.hero-kicker::before,.hero-kicker::after{content:'';width:26px;height:1px;background:var(--gold);flex:none}
.planning-welcome .hero-copy .hero-tagline{font-size:17px;line-height:1.6;color:var(--ink);margin:0 0 18px;max-width:410px}
.planning-welcome .hero-copy .hero-caption{font-size:14px;color:var(--green);margin:8px 0 0;max-width:none;text-align:center}
.hero-action{display:grid;justify-items:center;width:245px;max-width:100%}
.hero-primary{min-width:245px;max-width:100%}
.hero-arch{border:1px solid var(--gold);padding:7px;background:var(--paper);border-radius:0;overflow:hidden;margin:0;box-shadow:0 14px 30px #29352D12;aspect-ratio:auto;height:auto;max-width:100%;width:min(100%,500px,70dvh);justify-self:center}
.planning-welcome .hero-drawing{position:static;display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;border-radius:0}
.garden-divider{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px auto;color:var(--gold)}
.garden-divider::before,.garden-divider::after{content:'';height:1px;width:110px;background:var(--line)}
.garden-divider span{width:16px;height:16px;background:url('/images/garden-rosette.svg') center/contain no-repeat}
.welcome-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1120px;margin:0 auto 20px;padding:0 clamp(24px,4vw,40px)}
.welcome-shortcuts button{position:relative;display:flex;align-items:start;gap:13px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:0;padding:16px 18px;color:var(--green);min-width:0}
.welcome-shortcuts button:hover{border-color:var(--gold);background:var(--paper)}
.welcome-shortcuts button::before,.welcome-shortcuts button::after{content:'';position:absolute;width:10px;height:10px;border-color:var(--gold);border-style:solid}
.welcome-shortcuts button::before{left:6px;top:6px;border-width:1px 0 0 1px}.welcome-shortcuts button::after{right:6px;bottom:6px;border-width:0 1px 1px 0}
.welcome-shortcuts .icon{width:18px;height:18px;margin-top:5px;color:var(--gold);stroke-width:1.5}
.welcome-shortcuts span{min-width:0}.welcome-shortcuts strong{display:block;font:500 24px/1.15 var(--font-title);margin-bottom:6px}
.welcome-shortcuts small{font:400 14px/1.5 var(--font-body);display:block;color:var(--ink)}
.garden-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px clamp(24px,4vw,40px);border-top:3px double var(--line);background:#F1EADB}
.garden-footer>div{display:grid;gap:4px}.garden-footer strong{font:500 26px/1.2 var(--font-title);color:var(--green)}
.garden-footer span,.garden-footer a{font-size:14px}.garden-footer nav{display:flex;gap:18px;flex-wrap:wrap}
@media(min-width:761px){.planning-view .content{padding-bottom:0}}
/* Existing family controls retain their behavior and receive the same surfaces. */
.app-shell [data-menu-dialog]{border:1px solid var(--gold);background:var(--paper)!important;border-radius:2px;color:var(--ink);box-shadow:0 18px 50px #29352D22}
.app-shell [data-menu-dialog] h1{font-size:36px}.app-shell [data-menu-dialog] h2{font-size:30px}.app-shell [data-menu-dialog] h3{font-size:28px}
.app-shell [data-menu-dialog] .font-serif{font-family:var(--font-title);font-weight:500}
.app-shell [data-menu-dialog] .rounded-2xl,.app-shell [data-menu-dialog] .rounded-xl{border-radius:3px}
.app-shell [data-menu-dialog] .bg-white{background:var(--paper)}
.app-shell [data-menu-dialog] label{line-height:1.5}
.app-shell [data-menu-dialog] button.primary{border:0;background:transparent url('/images/button-cartouche-primary.svg') center/100% 100% no-repeat;color:var(--paper)}
.app-shell [data-menu-dialog] button.primary:hover{background-color:transparent;filter:brightness(.92)}
.app-shell [data-menu-dialog] [aria-label="Затвори профила"]{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;padding:3px}
.app-shell [data-menu-dialog] input[type=checkbox],.app-shell [data-menu-dialog] input[type=radio]{accent-color:var(--green)}
.app-shell [data-menu-dialog] label:has(input[type=checkbox]),.app-shell [data-menu-dialog] label:has(input[type=radio]){min-height:44px;display:flex;align-items:center}
.profile-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.login-page{min-height:100dvh;background:var(--cream);font-family:var(--font-body);padding:32px 24px}
.login-card{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:2px;padding:34px;box-shadow:0 12px 35px #29352D08;max-width:480px;color:var(--ink)}
.login-card::before{content:'';position:absolute;top:7px;left:7px;right:7px;height:8px;border:1px solid var(--line);border-bottom:0;pointer-events:none}
.login-brand,.login-brand img{width:240px;max-width:100%;height:94px;object-fit:cover;margin:0 auto 16px}
.login-tagline{font-size:15px;color:var(--green);text-align:center;margin:0 0 24px}
.login-card h1{font:500 36px/1.1 var(--font-title);text-align:center;margin:0 0 18px}
.login-card>p{font-size:16px;line-height:1.55}
.login-form{gap:10px;margin-top:26px}.login-form label{font-weight:500;font-size:16px}
.login-form input{border-radius:3px;background:var(--paper);border-color:#ABB39F;min-height:48px;font-family:var(--font-body)}
.login-form .login-help,.login-help{font-size:14px;color:var(--muted);line-height:1.55}
.login-form>button[type=submit]{margin-top:8px}
.login-secondary button{background:var(--soft);color:var(--green);border:1px solid var(--line);border-radius:3px}
.login-error{background:#F8EAE2;color:#7D382B;border:1px solid #D4B3A2;border-radius:3px}
.moderation-page{background:var(--cream);color:var(--ink);font-family:var(--font-body)}
.moderation-page h1,.moderation-page h2{font-family:var(--font-title);font-weight:500;color:var(--green)}
.moderation-page header img{width:200px;height:76px;object-fit:cover}
.moderation-list article,.moderation-dialog{border-radius:3px;background:var(--paper);border-color:var(--line)}
.moderation-page input,.moderation-page select,.moderation-page textarea,.moderation-page button{border-radius:3px;font-family:var(--font-body)}
@media(min-width:761px) and (max-width:1100px){
 .site-header,.site-header:has(.supplied-brand){grid-template-columns:170px auto minmax(155px,1fr);gap:10px;padding-inline:20px}
 .brand-lockup.supplied-brand img,.site-header .brand-lockup.supplied-brand img{width:170px;height:80px}
 .top-menu-nav button{padding-inline:10px}
 .day-meals{gap:14px}.meal-card,.meal-card:last-child{padding:15px}
 .meal-component .meal-title{font-size:25px}
 .meal-card .meal-actions{flex-direction:row}
}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-shortcuts strong{font-size:25px}.welcome-shortcuts button{padding:22px 17px;gap:10px}}
@media(max-width:850px) and (min-width:761px){.site-header,.site-header:has(.supplied-brand){gap:6px;padding-inline:16px;grid-template-columns:152px auto minmax(140px,1fr)}.site-header .brand-lockup.supplied-brand img{width:152px}.top-menu-nav button{padding-inline:7px;font-size:15px}.header-actions{gap:4px}.header-actions>button:first-of-type{min-width:74px;padding-inline:12px}.header-actions>button:not(:first-of-type){min-width:44px;padding-inline:4px}}
@media(max-width:760px){
 .site-header,.site-header:has(.supplied-brand){display:flex;flex-wrap:nowrap;min-height:76px;gap:8px;padding:4px 16px}
 .brand-lockup.supplied-brand img,.site-header .brand-lockup.supplied-brand img{width:144px;height:66px}
 .header-actions{gap:5px}.header-actions>button:first-of-type{min-width:74px;padding:9px 12px}.header-actions>button:not(:first-of-type){min-width:44px;padding:8px 3px;font-size:14px}
 .header-actions select{max-width:45px}.sync-status{padding:4px 16px!important;font-size:14px}
 .sync-status>span{flex-basis:180px}
 .content{padding:25px 20px 100px}.content>header h1{font-size:33px}
 .week-toolbar{padding:15px;gap:10px;margin-bottom:24px}.week-toolbar .primary{min-height:52px}
 .day-head h2{font-size:28px}.day-head{margin-bottom:16px}.day-grid{gap:28px}
 .meal-card,.meal-card:last-child,.day-meals:has(>.meal-card:only-child) .meal-card{padding:17px;max-width:none}
 .meal-component .component-open,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .component-open{display:grid;grid-template-columns:94px minmax(0,1fr);column-gap:14px}
 .meal-component .recipe-visual,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .recipe-visual{grid-column:1;grid-row:1/4;width:94px;height:71px}
 .meal-component .component-label,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .component-label{grid-column:2;margin:0;font-size:12px}
 .meal-component .meal-title,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .meal-title{grid-column:2;font:500 25px/1.1 var(--font-title);margin-top:4px}
 .meal-component .meal-variant,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .meal-variant{grid-column:2;margin-top:6px}
 .meal-components.has-sides .meal-component:not(:first-child) .component-open{grid-template-columns:48px minmax(0,1fr)}
 .meal-components.has-sides .meal-component:not(:first-child) .meal-title{font:500 17px/1.4 var(--font-body)}
 .meal-card .meal-actions{padding-top:13px;gap:8px}
 .cards{grid-template-columns:1fr;gap:20px}.card .copy h3{font-size:26px}
 .modal{padding:24px 19px}.modal h2{font-size:31px}.modal h3,.modal h4{font-size:27px}.modal-cols{grid-template-columns:1fr;gap:25px}
 .shopping-view .content{padding:25px 20px 100px}.shopping-view .shop section{padding:18px 15px}.shopping-view .shop h3{font-size:27px}
 .shopping-tool-actions{width:100%;margin-left:0}.shopping-tool-actions>button:first-child{width:100%}
 .shop-product{font-size:16px}.shop-quantity{font-size:14px}
 .planning-welcome{padding-top:18px}
 .planning-welcome .hero-menu{display:flex;flex-direction:column;height:auto;min-height:0;gap:16px;padding:0 22px}
 .planning-welcome .hero-copy{padding:0;background:none}
 .planning-welcome .hero-copy h2{font-size:34px;line-height:1.07;margin:14px 0 12px;max-width:none}
 .planning-welcome .hero-copy .hero-tagline{display:block;font-size:16px;max-width:410px;margin-bottom:18px}
 .planning-welcome .hero-copy .hero-kicker{display:flex;font-size:11px;letter-spacing:1.4px}
 .planning-welcome .hero-copy .hero-caption{display:block;font-size:14px;margin-top:8px;text-align:center}
 .planning-welcome .hero-action{margin-inline:auto}
 .planning-welcome .hero-primary{display:block;min-width:min(245px,100%);max-width:100%;margin-inline:auto}
 .planning-welcome .hero-drawing{position:static;height:auto;max-height:none;object-fit:contain;object-position:center}
 .hero-arch{width:100%;height:auto;max-width:420px;margin:auto;align-self:center;box-shadow:0 14px 28px #29352D10}
 .garden-divider{margin:20px auto}.garden-divider::before,.garden-divider::after{width:78px}
 .welcome-shortcuts{grid-template-columns:1fr;gap:15px;padding:0 22px;margin-bottom:42px}
 .welcome-shortcuts button{padding:22px 18px;gap:16px}.welcome-shortcuts strong{font-size:28px}
 .garden-footer{align-items:start;flex-direction:column;gap:20px;padding:26px 22px}.garden-footer nav{gap:16px}
 .app-shell [data-menu-dialog]{padding:23px 20px}.app-shell [data-menu-dialog] h1{font-size:32px}.app-shell [data-menu-dialog] h2{font-size:30px}
 .login-page{padding:24px 20px}.login-card{padding:31px 24px}.login-card h1{font-size:33px}
}
@media(max-width:390px){
 .site-header,.site-header:has(.supplied-brand){padding-inline:10px;gap:4px}
 .site-header .brand-lockup.supplied-brand img{width:124px;height:60px}
 .header-actions{gap:3px}.header-actions>button:first-of-type{min-width:67px;padding-inline:9px;font-size:14px}.header-actions select{max-width:42px;padding-inline:2px}
 .planning-welcome .hero-copy h2{font-size:32px}.planning-welcome .hero-copy .hero-kicker{gap:8px;letter-spacing:1px}
 .hero-kicker::before,.hero-kicker::after{width:18px}
 .content,.shopping-view .content{padding-inline:17px}.content>header h1{font-size:31px}
 .meal-component .component-open,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .component-open{grid-template-columns:76px minmax(0,1fr);gap:0 11px}
 .meal-component .recipe-visual,.day-meals:has(>.meal-card:only-child) .meal-component:first-child .recipe-visual{width:76px;height:57px}
 .meal-component .meal-title{font-size:24px}.day-head h2{font-size:26px}
 .login-page{padding:20px 16px}.login-card{padding:29px 21px}
}
@media(prefers-reduced-motion:reduce){button,input,textarea,select{transition:none!important}.primary:hover{filter:none}}

/* Compact logo box trims the transparent canvas while keeping the visible artwork. */
.brand-lockup.supplied-brand img,.site-header .brand-lockup.supplied-brand img{aspect-ratio:auto;object-fit:cover;object-position:center;max-height:none}
.login-brand{width:240px;height:auto;margin:0 auto 12px}
.login-brand img{width:240px;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;margin:0}
.moderation-page header img{height:auto;aspect-ratio:3/2;object-fit:contain}
@media(max-width:760px){.site-header,.site-header:has(.supplied-brand){padding-block:4px;min-height:76px}.site-header .brand-lockup.supplied-brand img{width:144px;height:66px}}
@media(max-width:390px){.site-header .brand-lockup.supplied-brand img{width:124px;height:60px}}

/* Quick access scrolls to a day without filtering the week. */
.week-day-nav{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:8px 0;margin:0 0 24px;background:var(--cream);border-bottom:3px double var(--line)}
.week-day-nav button{min-width:0;min-height:44px;padding:9px 6px;border:1px solid var(--line);background:var(--paper);color:var(--green);font-weight:500}
.week-day-nav button[aria-current=location]{background:var(--green);border-color:var(--green);color:var(--paper)}
.week-day-nav .day-short{display:none}
.day-card{scroll-margin-top:78px}
@media(max-width:1000px){.week-day-nav .day-full{display:none}.week-day-nav .day-short{display:inline}.week-day-nav{gap:4px}}
@media(max-width:760px){.week-day-nav{gap:0}.week-day-nav button{border-radius:0;border-inline-width:0;font-size:14px}}
@media(max-width:350px){.week-day-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.week-day-nav button{border-radius:3px;border-inline-width:1px}.day-card{scroll-margin-top:122px}}

/* The family illustration and live copy share one welcome composition. */
.planning-welcome .hero-menu.book-hero{--book-image:url('/images/home-cookbook-wide-v2.webp');display:block;width:min(calc(100% - 32px),calc(220dvh - 48px));max-width:none;margin:0 auto;padding:0}
.book-pages{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));aspect-ratio:1860/845;background:var(--book-image) center/100% 100% no-repeat;gap:0}
.book-sheet{min-width:0;position:relative}
.planning-welcome .hero-copy.book-copy{height:auto;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8% 8% 20% 10%;text-align:center}
.planning-welcome .book-copy h2{font-size:clamp(32px,3.1vw,46px);line-height:1.08;margin:0 0 16px;max-width:100%}
.planning-welcome .book-copy .hero-tagline{font-size:17px;line-height:1.5;margin:0 0 18px;max-width:380px}
.planning-welcome .book-copy .hero-primary{background:var(--green);border:1px solid var(--gold);border-radius:3px;min-height:50px;box-shadow:none;color:var(--paper);font-weight:500}
.planning-welcome .book-copy .hero-primary:hover{background:var(--green-dark);filter:none}
.planning-welcome .book-copy .hero-caption{font-size:14px;margin-top:8px;text-align:center}
.book-mobile-picture{display:none}
@media(max-width:760px){
 .planning-welcome{padding-top:12px}
 .planning-welcome .hero-menu.book-hero{width:min(calc(100% - 16px),440px)}
 .book-pages{display:block;aspect-ratio:auto;background:url('/images/home-single-page-v1.webp') center/100% 100% no-repeat}
 .book-sheet{width:100%;aspect-ratio:auto;background:none}
 .book-picture-page{display:none}
 .planning-welcome .hero-copy.book-copy{min-height:0;padding:32px 20px 20px;justify-content:flex-start}
 .planning-welcome .book-copy h2{font-size:32px;margin:0 0 8px;padding-left:48px}
 .planning-welcome .book-copy .hero-tagline{font-size:16px;line-height:1.5;margin:0 0 12px;max-width:100%}
 .book-mobile-picture{display:block;width:100%;aspect-ratio:930/845;margin:0 0 12px;background:url('/images/home-cookbook-wide-v2.webp') 94% 45%/224% 112% no-repeat;border-radius:2px}
 .planning-welcome .book-copy .hero-primary{min-height:48px;padding-block:10px}
}
@media(max-width:350px){
 .planning-welcome .hero-copy.book-copy{padding:30px 18px 18px}
 .planning-welcome .book-copy h2{font-size:28px}
 .planning-welcome .book-copy .hero-tagline{font-size:14px;margin-bottom:10px}
 .book-mobile-picture{margin-bottom:10px}
}

/* A decorative spine sits behind the existing, accessible navigation. */
.site-header,.site-header:has(.supplied-brand){position:relative;isolation:isolate;background:transparent;border:0;margin:0;min-height:82px;padding:6px clamp(72px,8vw,180px);flex-shrink:0}
.site-header::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/images/header-book-spine-v1.webp') center 46.7%/102% 355% no-repeat;opacity:.8}
.top-menu-nav button{font-size:18px}.site-header .brand-lockup.supplied-brand img{width:156px;height:68px}.top-menu-nav button.active::before{background-color:transparent}
@media(min-width:761px) and (max-width:1100px){
 .site-header,.site-header:has(.supplied-brand){padding:6px 60px;min-height:80px;gap:8px;grid-template-columns:minmax(130px,1fr) auto minmax(155px,1fr)}
 .site-header .brand-lockup.supplied-brand img{width:130px;height:64px}
 .top-menu-nav{gap:0}.top-menu-nav button{padding-inline:7px;font-size:15px}
 .header-actions{gap:4px}.header-actions>button:first-of-type{min-width:74px;padding-inline:12px}.header-actions>button:not(:first-of-type){min-width:44px;padding-inline:4px}
 .planning-welcome .hero-copy.book-copy{padding:5% 8% 14% 10%}
 .planning-welcome .book-copy h2{font-size:30px;margin:0 0 12px}
 .planning-welcome .book-copy .hero-tagline{font-size:14px;margin-bottom:14px}
 .planning-welcome .book-copy .hero-caption{background:#fffcf5e8;padding-inline:4px;border-radius:2px}
}
@media(max-width:760px){
 .site-header,.site-header:has(.supplied-brand){min-height:72px;margin:0;padding:4px 10px;gap:8px}
 .site-header::before{background-size:132% 355%}
 .site-header .brand-lockup.supplied-brand img{width:132px;height:60px}
 .mobile{z-index:40}
}
@media(max-width:390px){.site-header,.site-header:has(.supplied-brand){padding-inline:4px;gap:4px}.site-header .brand-lockup.supplied-brand img{width:124px;height:60px}}

/* All header actions share the same quiet treatment as the main navigation. */
.site-header .header-actions>button,.site-header .header-actions>button:first-of-type,.site-header .header-actions>button:not(:first-of-type),.site-header .header-actions select{background:transparent;background-image:none;border:0;border-radius:0;box-shadow:none;filter:none;min-height:44px;color:var(--green);font-size:16px;font-weight:500;padding:9px 12px}
.site-header .header-actions select{appearance:none;min-width:44px;max-width:56px;cursor:pointer;text-align:center}
.site-header .header-actions>button:hover,.site-header .header-actions select:hover{background:var(--soft);filter:none}
.sync-footer{min-height:24px;padding:0 16px!important;border-top:1px solid var(--line);border-bottom:0;background:var(--cream)!important;font-size:14px;line-height:1.5;justify-content:flex-end;color:var(--muted)}
.sync-footer.sync-attention{padding:4px 16px!important;background:var(--soft)!important;color:var(--green)}
@media(min-width:761px) and (max-width:1100px){.site-header .header-actions>button,.site-header .header-actions select{font-size:15px;padding-inline:7px;min-width:44px}}
@media(max-width:760px){
 .site-header .header-actions>button,.site-header .header-actions select{font-size:14px;padding-inline:6px;min-width:44px}
 .site-header .header-actions>button:first-of-type{min-width:64px}
 .sync-footer{justify-content:center;padding-inline:12px!important}
 .sync-footer>span{flex:0 1 auto}
}

/* Gentle depth follows the spine artwork and the welcome page. */
.site-header{z-index:1}
.site-header::before{filter:drop-shadow(0 4px 7px #29352d30)}
.planning-welcome .book-pages{isolation:isolate;background:none;filter:drop-shadow(0 7px 12px #29352d26) drop-shadow(0 1px 3px #29352d16)}
.book-pages::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--book-image) center/100% 100% no-repeat;clip-path:polygon(.4% 5.3%,1.9% 4%,40% 3.3%,50% 4.6%,55% 3.4%,98.2% 3.8%,99.6% 5.1%,99.6% 95.9%,98.6% 96.5%,51% 96.4%,50% 97%,49% 96.4%,1% 96.1%,.4% 95.2%)}
@media(max-width:760px){
 .planning-welcome .hero-menu.book-hero{--book-image:url('/images/home-single-page-v1.webp')}
 .planning-welcome .book-pages{filter:drop-shadow(0 4px 8px #29352d22) drop-shadow(0 1px 2px #29352d14)}
 .book-pages::before{clip-path:polygon(.5% 2%,3% 1%,75% .4%,98.5% 1.3%,99.5% 2%,99.5% 98%,98.2% 99%,4% 99%,.5% 98%)}
}
