/* finesse · product · warm cream/terracotta/olive · practical sans + editorial accent · quiet kitchen workbench · CSS feedback only */
/* One shared refinement layer; existing component semantics and brand assets remain authoritative. */
:root{--bg:#f7f3eb;--paper:#fffcf7;--card:#fffdfa;--ink:#372c25;--muted:#75675b;--line:#6f4d2f1c;--accent:#a94e2b;--accent-soft:#f3e1d5;--sage:#647450;--sage-soft:#e9eddc;--radius:18px;--shadow:0 2px 4px #42352304,0 12px 28px -20px #58432e24;--sans:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--serif:Georgia,"Noto Serif SC","Songti SC",SimSun,serif}
body{-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.65}
h1,h2,h3{color:var(--ink);text-wrap:balance}
h1{font:600 28px/1.45 var(--sans);letter-spacing:-.6px}
button,input,select,textarea{font-synthesis:none}
button,a{transition:background-color .16s,color .16s,border-color .16s,box-shadow .16s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--sage);outline-offset:3px}
button:active:not(:disabled){filter:brightness(.96)}
.shell{grid-template-columns:224px minmax(0,1fr)}
.sidebar{width:224px;background:#f1eade;padding:30px 16px 20px;border-color:var(--line)}
.brand{gap:11px;padding:0 10px 26px}.brand strong{font-size:20px;letter-spacing:.7px}.brand small{font-size:9px;letter-spacing:1.5px;margin-top:4px}.brand img{width:40px;height:40px}
.nav-label{letter-spacing:.6px;font-size:12px;padding-left:14px;margin:14px 0 16px}.nav{gap:6px}
.nav button{position:relative;min-height:50px;padding:12px 16px;border-radius:11px;font-size:14px;color:#75675b;font-weight:500}.nav button .icon{width:20px;height:20px}
.nav button.active{background:var(--card);color:var(--accent);box-shadow:0 2px 5px #48423108;font-weight:650}
.nav button.active::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:3px;background:var(--accent)}
.sidebar-note{font-size:12px;line-height:1.9;padding:24px 14px 18px}.account-button{font-size:13px;padding-top:20px}.account-button small{font-size:11px}
.topbar{height:72px;padding:0 36px;background:#fffcf7bd}.top-actions{gap:12px}.top-actions .subtle{font-size:13px}.breadcrumb{font-size:12px}.sync{font-size:11px}
main{max-width:1392px;padding:28px 36px 56px}.page-heading{margin-bottom:24px;align-items:center}.eyebrow{letter-spacing:1.7px;font-size:10px;font-weight:600}.subtitle{font-size:14px;line-height:1.7;max-width:650px}
.button{min-height:46px;border-radius:11px;font-weight:600;padding:11px 18px;letter-spacing:.1px;box-shadow:0 2px 3px #64402a08}.button.small{min-height:44px}.button.secondary{background:var(--card);box-shadow:none}.button.soft{box-shadow:none}.subtle{min-height:44px}
.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.home-welcome h1{font-size:24px}.home-welcome p{font-size:13px;color:var(--muted)}.home-welcome>span{font-size:12px;letter-spacing:.8px;color:var(--sage)}
.hero{grid-template-columns:1fr 1.04fr;min-height:252px;background:#eae7d8;border-radius:20px;border:1px solid var(--line)}.hero-content{padding:28px 30px;background:none}.hero-content h2{font:500 29px/1.45 var(--serif);letter-spacing:.3px}.hero-content p{font-size:14px;max-width:340px;margin:12px 0 20px;line-height:1.8}.hero-photo{min-height:252px}.hero-photo::before{background:linear-gradient(90deg,#eae7d8,transparent 20%)}.hero-caption{font-size:11px;border-radius:6px}
.studio-entrances{gap:12px;margin:18px 0}.studio-entry{padding:16px 18px;min-height:78px;border-radius:14px;background:var(--card);box-shadow:var(--shadow)}.studio-entry strong{font-size:15px}.studio-entry small{font-size:12px;margin-top:3px}.studio-entry>.icon:first-child{width:22px;height:22px;color:var(--sage)}.studio-entry>.icon:last-child{color:var(--muted)}
.metrics{margin:20px 0;gap:0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 0}.metric{border:0;background:none;border-radius:0;box-shadow:none;padding:2px 22px}.metric+.metric{border-left:1px solid var(--line)}.metric strong{font:600 28px/1.3 var(--sans);font-variant-numeric:tabular-nums;margin-top:7px}.metric-icon{width:37px;height:37px;border-radius:11px;background:#f1ede4}.metric small{font-size:12px}
.panel{padding:22px;border-radius:18px;border-color:var(--line);box-shadow:var(--shadow)}.home-grid{gap:18px;grid-template-columns:1.45fr 1fr}.section-head h2{font-size:17px}.food-row{padding:13px 0}.dinner-note{font-size:22px;line-height:1.6;margin:16px 0 8px}.quiet-note{font-size:13px}.quicklinks{gap:14px;margin-top:18px}.quicklink{background:#eee9da;border:1px solid var(--line);border-radius:12px;min-height:72px}.quicklink small{font-size:12px;margin-top:2px}
.food-card{border-radius:15px;box-shadow:var(--shadow)}.food-card h3{font-size:16px}.food-card .food-art{height:136px}.food-card .detail{font-size:12px}.food-card .edit{width:44px;min-height:44px}.food-card .pill{font-size:11px}.pill{font-size:12px;border-radius:6px}.inventory-grid{gap:14px}
.recipe-grid{gap:16px}.recipe-card.panel{padding:0}.recipe-body h3,.plan-card h3,.member-card h3,.meal-preview h3{font-family:var(--sans);font-weight:600}.recipe-body p,.recipe-meta{font-size:13px}.recipe-body h3{font-size:19px}.plan-card h3{font-size:22px}.plan-card-top>.pill{align-self:flex-start}.dish-tag{background:var(--paper);border-radius:9px}.portion{background:#faf7f0;border:0;border-radius:12px}.portion .kcal{font-family:var(--sans);font-size:24px;font-weight:500;font-variant-numeric:tabular-nums}.portion small{font-size:12px}
.tabs{gap:4px}.tabs button{font-size:14px;min-height:44px}.tabs button.active{background:var(--accent-soft);box-shadow:none;font-weight:600}.search{border-radius:10px}.search input{font-size:14px}.field>label,.field-label{font-size:13px;color:var(--ink)}.field input,.field select,.field textarea{background:var(--card);border-color:#4e493538;border-radius:10px;min-height:46px}.field small,.small-note,.help-copy{font-size:12px;line-height:1.8}.notice{font-size:13px;line-height:1.7;border-radius:11px}.kitchen-details{border-color:var(--line)}.kitchen-entry,.cook-entry,.discovery-entry{border-radius:16px;box-shadow:none}.discovery-card{border-radius:14px}.cook-guide,.timeline{border-radius:14px}.timeline-track{background:#eee7da}.timeline-label{font-size:13px}.timeline-course li{font-size:14px}.cook-instruction{line-height:1.85}.page-footer{font-size:12px;line-height:1.7}
/* A concise category header and a consistent recipe anatomy, with or without photography. */
.studio-tabs{gap:5px;border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:12px}.studio-tabs a{border:0;background:transparent;border-radius:9px;padding:10px 16px;font-size:14px}.studio-tabs [aria-current=page]{background:var(--accent-soft);font-weight:600}
.studio-hero{background:#eee9da;grid-template-columns:minmax(0,1fr) 150px;padding:24px 28px;border:1px solid var(--line);border-radius:18px;margin-bottom:22px}.studio-hero h1{font-size:26px}.studio-hero p{font-size:14px;line-height:1.8;margin:10px 0 4px;max-width:610px}.studio-hero .subtle{font-size:13px;padding-left:0}.studio-vignette svg{height:110px}.studio-vignette span{font-size:10px}.studio-filters{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 0 14px;gap:12px}.studio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.studio-card{padding:20px;gap:10px;position:relative;overflow:hidden}.studio-card-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.studio-card h2{font:600 19px/1.5 var(--sans);margin:7px 0 0}.studio-card-mark{font-size:12px}.studio-card-mark .icon{width:19px;height:19px}.studio-card p{font-size:13px;line-height:1.75}.studio-card .small-note{margin:0}.studio-card .studio-entity-image{width:80px;height:80px;margin:0;flex-shrink:0;position:relative;border-radius:10px;overflow:hidden}.studio-card .studio-entity-image img{width:100%;height:100%;object-fit:cover;display:block}.studio-card .studio-entity-image figcaption{position:absolute;bottom:0;left:0;right:0;padding:2px;background:#fffcf7e8;font-size:9px;text-align:center}.studio-card .studio-value{color:var(--ink);padding-top:10px;border-top:1px solid var(--line)}.studio-card .button{font-size:13px;justify-content:space-between;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0;color:var(--accent);min-height:44px}.studio-card .button:hover{color:var(--ink)}.studio-card .effort-detail{margin:0}.studio-meta{font-size:12px!important}
/* Dialogs share the same typographic and surface hierarchy as the app. */
dialog{border-radius:20px;border-color:var(--line);box-shadow:0 24px 80px -20px #3e34274d;background:var(--paper)}dialog::backdrop{background:#372c2559;backdrop-filter:blur(4px)}.modal-head{padding:18px 24px;background:var(--paper)}.modal-head h2{font:600 21px/1.45 var(--sans)}.modal-content{padding:22px 24px}.modal-content h3{font-family:var(--sans);line-height:1.6}.ing-row{font-size:14px;padding:12px 0}.studio-phases li{padding-bottom:22px}.studio-phases strong{font-size:15px}.studio-phases span{font-size:12px}.recipe-craft{background:#f5eee2;border-radius:12px;padding:16px}.recipe-craft details{background:var(--paper);border-radius:8px;padding:10px 12px;margin-top:9px}.recipe-craft summary{min-height:28px}.companion-fab{border:0;border-radius:14px;min-height:48px;box-shadow:0 6px 18px #54321e1a}.companion-head h2,.companion-welcome strong{font-family:var(--sans)}
/* Responsive app, retaining document scroll and all five mobile destinations. */
@media(max-width:1200px) and (min-width:851px){.sidebar{width:196px;padding-left:12px;padding-right:12px}.shell{grid-template-columns:196px minmax(0,1fr)}main{padding:26px}.topbar{padding:0 26px}.top-actions{gap:6px}.sync{display:none}.hero-content{padding:24px}.hero-content h2{font-size:26px}.studio-entry{padding:14px}.studio-entry small{font-size:11px}.home-grid{grid-template-columns:1.2fr 1fr}}
@media(max-width:850px){.shell{display:block}.sidebar{width:100%;height:auto;min-height:76px;inset:auto 0 0;padding:6px 10px max(8px,env(safe-area-inset-bottom));background:#fffcf7f5;border-right:0}.nav button{padding:6px 4px;min-height:56px;font-size:11px;gap:4px;border-radius:10px}.nav button.active::before{inset:0 38% auto;height:3px;width:auto}.topbar{height:64px;padding:0 22px}.top-actions{gap:4px}.top-actions .subtle{font-size:0;min-width:44px}.top-actions .button{min-height:44px}.sync{display:none}main{padding:24px 22px calc(120px + env(safe-area-inset-bottom))}.studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid{grid-template-columns:1fr 1fr;gap:14px}.metrics{padding:14px 0}.metric{padding:2px 16px}.companion-fab{bottom:calc(88px + env(safe-area-inset-bottom));right:18px}.page-heading .button{min-height:44px}}
@media(max-width:620px){body{font-size:14px}main{padding:22px 16px calc(124px + env(safe-area-inset-bottom))}.topbar{padding:0 16px}.mobile-top{font-size:15px;letter-spacing:0}.mobile-top img{width:30px;height:30px}.top-actions .button{padding:8px 10px;font-size:12px}.top-actions .voice-entry{display:inline-flex}.home-welcome{margin-bottom:16px;align-items:flex-start}.home-welcome h1{font-size:23px}.home-welcome p{font-size:12px;margin-top:4px}.home-welcome>span{display:none}h1{font-size:24px;letter-spacing:-.5px}.page-heading{gap:12px;align-items:flex-start;flex-wrap:wrap}.page-heading .subtitle{font-size:13px;max-width:none}.eyebrow{font-size:10px;letter-spacing:1.3px}.hero{grid-template-columns:minmax(0,1fr);min-height:0}.hero-content{padding:22px;max-width:none}.hero-content h2{font-size:25px;max-width:none}.hero-content p{font-size:13px;max-width:none;margin:10px 0 16px}.hero-photo{height:144px;min-height:144px;max-height:none}.hero-photo img{object-position:67% 54%}.hero-photo::before{background:linear-gradient(180deg,#eae7d8,transparent 18%)}.hero-caption{font-size:10px}.studio-entrances{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.studio-entry{padding:12px 6px;min-height:82px;display:flex;flex-direction:column;gap:7px;text-align:center;justify-content:center;border-radius:12px}.studio-entry strong{font-size:13px}.studio-entry small,.studio-entry>.icon:last-child{display:none}.studio-entry>.icon:first-child{width:22px;height:22px}.metrics{gap:0;margin:16px 0;padding:14px 0}.metric{display:block;padding:0 10px}.metric small{font-size:11px;line-height:1.5;display:block}.metric strong{font-size:25px}.metric strong span{font-size:11px;margin-left:4px}.metric-icon{display:none}.home-grid{grid-template-columns:1fr;gap:14px}.panel{padding:18px;border-radius:15px}.section-head{gap:8px}.section-head h2{font-size:16px}.section-head .subtle{font-size:12px;padding-right:0}.quiet-note{font-size:13px}.quicklinks{gap:10px}.quicklink{font-size:13px;padding:12px;min-height:72px}.quicklink small{font-size:11px}.food-row .food-art{width:48px;height:48px}.food-row{gap:10px}.food-info small{font-size:12px}.food-card .food-art{height:108px}.food-card h3{font-size:15px}.food-card-body{padding:14px 12px}.food-card .detail{font-size:11px}.food-card .pill{font-size:10px}.inventory-grid{gap:10px}.recipe-grid{grid-template-columns:1fr}.recipe-body{padding:16px}.recipe-body h3{font-size:18px}.recipe-body p{font-size:13px}.notice{font-size:12px}.tabs button{font-size:13px;padding:9px 12px}.studio-tabs{margin-bottom:14px;padding-bottom:10px;gap:2px}.studio-tabs a{font-size:13px;padding:10px 13px}.studio-hero{grid-template-columns:1fr;padding:20px;margin-bottom:16px;border-radius:15px}.studio-hero h1{font-size:23px}.studio-hero p{font-size:13px}.studio-vignette{display:none}.studio-filters{padding:14px;gap:12px;grid-template-columns:1fr 1fr}.studio-grid{grid-template-columns:1fr;gap:12px}.studio-card{padding:18px;gap:9px}.studio-card h2{font-size:19px}.studio-card p{font-size:13px}.studio-card .studio-entity-image{width:72px;height:72px}.field input,.field select,.field textarea,.search input{font-size:16px}.field>label,.field-label{font-size:13px}.modal-head{padding:16px 18px}.modal-head h2{font-size:20px}.modal-content{padding:18px}.modal-actions{gap:8px}.modal-actions .button{flex:1;white-space:normal}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 28px);border-radius:18px}.small-note,.help-copy,.field small{font-size:12px}.page-footer{font-size:11px}.companion-fab{font-size:13px;padding:11px 15px}#companion{border-radius:20px}.timeline-label{font-size:12px}.timeline-course li{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact query grouping keeps the first recipe within reach on a phone. */
.mobile-top{text-decoration:none}.studio-filters{grid-template-columns:2fr 1fr 1fr}.studio-search{display:flex;align-items:flex-end;gap:8px;min-width:0}.studio-search>.field{flex:1;min-width:0}.studio-search>.button{flex-shrink:0}.studio-card-top{min-height:80px}.studio-card .studio-entity-image figcaption{font-size:10px;line-height:1.5;padding:2px}.studio-card .studio-value{min-height:68px}.discovery-entry h2,.cook-entry h2{font:600 19px/1.5 var(--sans)}.companion-welcome{background:#eee9da;border-color:var(--line)}.auth-inner h1{font-family:var(--sans);font-weight:600}.auth-tabs button{min-height:44px}.search:focus-within{outline:2px solid var(--sage);outline-offset:2px}
@media(max-width:620px){.studio-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-search{grid-column:1/-1}.studio-search>.button{min-width:76px;min-height:46px;padding:10px}.studio-hero .subtle{display:none}.studio-hero p{margin-bottom:0}.studio-card-top{min-height:72px}.studio-card .studio-value{min-height:0}.mobile-top{white-space:nowrap}}
