/* Neutral appearance tokens apply to the feed, details, profile, and navigation. */
:root{color-scheme:light;--cream:#FFFFFF;--surface:#F6F6F4;--paper:#FFFFFF;--green:#111111;--sage:#666666;--lime:#F6F6F4;--orange:#111111;--border:#E8E8E5;--text:#111111;--muted:#666666;--white:#FFFFFF;--nav-bg:rgba(255,255,255,.96);--outside:#F6F6F4;--accent:#E87544;--accent-text:#111111;--on-strong:#FFFFFF;--strong:#111111}
:root[data-theme="dark"]{color-scheme:dark;--cream:#000000;--surface:#151515;--paper:#181818;--green:#F5F5F5;--sage:#A9A9A9;--lime:#151515;--orange:#F5F5F5;--border:#2D2D2D;--text:#F5F5F5;--muted:#A9A9A9;--nav-bg:rgba(0,0,0,.96);--outside:#151515;--accent-text:#111111;--on-strong:#111111;--strong:#F5F5F5}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--outside);color:var(--text);font-family:'Inter',sans-serif;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{ -webkit-tap-highlight-color:transparent}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{display:block;max-width:100%}[hidden]{display:none!important}.phone-app{width:100%;max-width:430px;min-height:100dvh;margin:0 auto;background:var(--cream);box-shadow:0 0 65px #29372a15;position:relative}main{padding-bottom:calc(98px + env(safe-area-inset-bottom))}.topbar{height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;display:flex;align-items:center;justify-content:space-between}.brand{border:0;background:none;padding:0;display:flex;align-items:center;justify-content:center;min-height:48px;color:var(--text)}.brand-logo{max-width:115px;max-height:38px;width:auto;height:auto;object-fit:contain}.brand-fallback{font-size:27px;font-weight:700;letter-spacing:-1px}.header-actions{display:flex;gap:12px;align-items:center}.icon-button{display:grid;place-items:center;border:0;background:transparent;width:34px;height:34px;padding:0}.avatar{width:34px;height:34px;padding:0;border:2px solid var(--white);border-radius:50%;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.intro{padding:12px 16px 18px}.eyebrow{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;font-weight:700;color:var(--sage)}.intro p{font-size:13px;color:var(--muted);margin:6px 0 0}.intro h1{font-size:clamp(24px,6.5vw,28px);font-weight:500;letter-spacing:-1px;margin:5px 0 0}.intro h1 em{font-family:inherit;color:var(--text);font-style:normal}.categories{display:flex;gap:12px;padding:0 16px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}.categories::-webkit-scrollbar{display:none}.category{width:74px;flex:0 0 74px;height:96px;border:0;padding:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:7px}.category-ring{width:70px;height:70px;border:2px solid var(--border);border-radius:50%;display:grid;place-items:center}.category img{width:62px;height:62px;object-fit:cover;border-radius:50%}.category.active .category-ring{border-color:var(--green);box-shadow:0 0 0 2px var(--surface)}.category.active{color:var(--green);font-weight:700}.category-label{font-size:11px;width:74px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.feed-heading{display:flex;align-items:center;justify-content:space-between;padding:0 16px;margin:24px 0 12px;gap:8px}.feed-heading h2{font-size:22px;font-weight:600;letter-spacing:-.7px;margin:0}.text-button{border:0;background:none;color:var(--green);font-size:11px;font-weight:700;padding:8px 0}.recipe-card{position:relative;width:calc(100% - 32px);max-width:398px;margin:0 16px 24px;border-radius:24px;background:var(--paper);overflow:hidden;box-shadow:0 6px 16px #214e3b12}.card-open{display:block;width:100%;border:0;text-align:left;padding:0;background:#181818;position:relative;color:var(--white)}.card-open>img{width:100%;aspect-ratio:4/5;min-height:420px;object-fit:cover}.card-open:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#071a1100 38%,#10251c55 58%,#10251ce8 100%)}.card-badge{position:absolute;top:18px;left:18px;z-index:1;background:#fffffff0;color:#111111;border-radius:20px;padding:7px 11px;max-width:calc(100% - 82px);font:700 11px/1.2 "Inter",sans-serif;letter-spacing:.12em;text-transform:uppercase}.save-button{position:absolute;z-index:2;top:16px;right:16px;border:1px solid #ffffff55;background:#ffffffed;color:#111111;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.save-button.saved{background:var(--accent);color:#111111}.save-button.saved svg{fill:currentColor}.card-info{position:absolute;z-index:1;left:22px;right:22px;bottom:24px}.card-category{font-size:9px;letter-spacing:1.8px;text-transform:uppercase;color:#FFFFFF;font-weight:700}.card-info h3{font:600 clamp(29px,8.1vw,36px)/1.08 'Inter',sans-serif;letter-spacing:-.6px;margin:9px 0 13px;max-width:290px}.card-meta{display:flex;gap:7px;align-items:center;font-size:11px;color:#ffffffd9}.card-meta svg{width:14px;height:14px}.card-bottom{border-top:1px solid #ffffff35;margin-top:17px;padding-top:14px;display:flex;align-items:center;justify-content:space-between}.price{font-size:19px;font-weight:600}.price small{font-size:10px;color:#ffffffbf;font-weight:400;margin-right:5px}.price-caption{display:block;font-size:9px;color:#ffffffb0;margin-top:2px}.round-arrow{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--text)}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;height:calc(68px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);background:var(--nav-bg);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;backdrop-filter:blur(12px)}.nav-item{border:0;background:none;color:var(--muted);display:grid;place-items:center;min-width:48px;min-height:48px;width:100%;position:relative;font-family:'Inter',sans-serif}.nav-item svg{width:26px;height:26px}.nav-item.active{color:var(--text)}.nav-item.active svg{stroke-width:2.6}.nav-camera{width:54px;height:54px;min-height:54px;justify-self:center;border-radius:50%;background:var(--accent);color:var(--accent-text);transform:translateY(-9px);box-shadow:0 4px 12px #00000020}.nav-camera.active{color:var(--accent-text)}.nav-count{position:absolute;top:4px;right:14px;width:7px;height:7px;background:var(--accent);border:1px solid var(--cream);border-radius:50%;pointer-events:none}.search-field{margin:12px 16px 18px;display:flex;align-items:center;gap:9px;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:var(--paper)}.search-field input{color:var(--text);min-width:0;width:100%;border:0;outline:none;background:none;font-size:13px}.page-title{padding:20px 16px 0}.page-title h1{font-size:28px;letter-spacing:-1px;margin:0 0 7px}.page-title p,.muted{color:var(--muted);font-size:13px;line-height:1.6}.empty{margin:24px 16px;padding:40px 20px;text-align:center;background:var(--paper);border:1px solid var(--border);border-radius:24px}.empty>svg{width:38px;height:38px;color:var(--sage);margin-bottom:12px}.empty h2{font:600 25px 'Inter',sans-serif}.primary,.secondary{border:0;border-radius:14px;padding:16px;width:100%;font-size:13px;font-weight:600;background:var(--strong);color:var(--on-strong);display:flex;justify-content:center;gap:12px;align-items:center}.secondary{background:var(--surface);color:var(--text);margin-top:10px}.box-list{padding:16px}.box-item{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;gap:12px;padding:16px 0;border-bottom:1px solid var(--border);align-items:center}.box-item img{width:64px;height:78px;object-fit:cover;border-radius:12px}.box-item h2{font:600 18px 'Inter',sans-serif;margin:0 0 5px}.box-item p{font-size:11px;color:var(--muted);margin:4px 0}.box-total{margin:12px 16px;padding:20px;background:var(--paper);border-radius:18px;border:1px solid var(--border)}.total-row{display:flex;justify-content:space-between;margin-bottom:18px}.profile-card{margin:22px 16px;padding:24px;background:var(--paper);border:1px solid var(--border);border-radius:24px}.profile-card .avatar{width:64px;height:64px;margin-bottom:15px}.profile-card h2{margin:0}.profile-links{display:grid;gap:10px;margin-top:24px}.profile-links button{padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--cream);text-align:left;display:flex;justify-content:space-between;font-size:13px}dialog{border:0;padding:0;width:100%;max-width:430px;height:100dvh;max-height:100dvh;margin:0 auto;position:fixed;inset:0;background:var(--cream);color:var(--text);overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:#1e2a2466;backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.detail-hero{position:relative}.detail-hero>img{width:100%;height:340px;object-fit:cover}.detail-top{position:absolute;top:calc(16px + env(safe-area-inset-top));left:16px;right:16px;display:flex;justify-content:space-between}.detail-top .icon-button{width:40px;height:40px;background:var(--paper);border-radius:50%}.detail-top .save-button{position:static;width:40px;height:40px}.detail-body{padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.detail-body h1{font:600 clamp(29px,8vw,36px)/1.1 'Inter',sans-serif;margin:10px 0}.detail-body>p{font-size:13px;line-height:1.7;color:var(--muted)}.detail-meta{display:flex;justify-content:space-between;gap:8px;padding:18px 0;border-block:1px solid var(--border);font-size:12px}.detail-meta span{display:flex;align-items:center;gap:5px}.detail-meta svg{width:16px;height:16px}.servings{display:flex;justify-content:space-between;align-items:center;margin:20px 0;font-size:13px}.stepper{display:flex;align-items:center;gap:16px}.stepper button{width:32px;height:32px;border:1px solid var(--border);background:var(--paper);border-radius:50%;font-size:20px}.ingredients{list-style:none;padding:0;margin:10px 0 22px}.ingredients li{padding:11px 0;border-bottom:1px solid var(--border);font-size:13px;display:flex;gap:9px}.ingredients li:before{content:'✓';color:var(--sage)}.detail-body h2{font-size:18px}.kit-price{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px;font-size:13px}.kit-price strong{font-size:25px;color:var(--green)}.guide-progress{height:5px;background:var(--border);border-radius:3px;margin:20px 0}.guide-progress span{display:block;height:100%;background:var(--sage);border-radius:3px}.guide-step{padding:22px;background:var(--paper);border:1px solid var(--border);border-radius:20px}.guide-step p{line-height:1.8;font-size:14px}.guide-controls{display:flex;gap:10px;margin-top:22px}.toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);z-index:50;background:var(--strong);color:var(--on-strong);padding:12px 18px;width:max-content;max-width:calc(100% - 40px);border-radius:14px;font-size:12px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:431px){.phone-app{border-inline:1px solid var(--border)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Clean interface type; display type is reserved for recipe names. */
button,input,.category-label,.card-meta,.eyebrow,.card-category{font-family:'Inter',sans-serif}.eyebrow,.card-category{font-size:11px;font-weight:700;letter-spacing:.12em;line-height:1.2}.category-label{font-weight:500}.empty h2{font-family:'Inter',sans-serif}.appearance{margin-top:26px;border:0;padding:0;min-width:0}.appearance legend{font-size:18px;font-weight:600;margin-bottom:12px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-option{position:relative;text-align:center;cursor:pointer;min-width:0}.theme-option input{position:absolute;opacity:0;width:1px;height:1px}.theme-option span{display:flex;align-items:center;justify-content:center;min-height:48px;background:var(--surface);border:1px solid var(--border);border-radius:12px;font-size:13px}.theme-option input:checked+span{border:2px solid var(--text);font-weight:700}.theme-option input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}.profile-back{margin:8px 0 16px;display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--text);min-height:48px;padding:0;font-size:13px}.create-panel{margin:24px 16px;padding:22px;background:var(--paper);border:1px solid var(--border);border-radius:22px}.create-panel p{font-size:13px;line-height:1.7;color:var(--muted)}.capture-preview{width:100%;max-height:380px;object-fit:contain;border-radius:16px;background:var(--surface);margin:16px 0}.file-label{cursor:pointer}.file-label input{position:absolute;width:1px;height:1px;opacity:0}.file-label:focus-within{outline:3px solid var(--accent);outline-offset:4px}.timer-panel{margin-top:18px;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.timer-fields{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}.timer-fields input{width:68px;padding:9px;background:var(--paper);color:var(--text);border:1px solid var(--border);border-radius:8px}.timer-clock{font-variant-numeric:tabular-nums;font-size:30px;display:block;margin:12px 0}.timer-actions{display:flex;gap:8px}.timer-actions button{min-height:44px;padding:8px 16px;border:1px solid var(--border);border-radius:10px;background:var(--paper)}

/* Photo-first visual direction: a continuous canvas, warm rings, and quiet chrome. */
:root{--story-start:#F5D785;--story-end:#EFA78F;--flavor:#F5C578;--font-ui:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--font-brand:'Grab Community','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--font-note:var(--font-ui)}
body,button,input,.category-label,.card-meta,.eyebrow,.card-category{font-family:var(--font-ui)}
.phone-app{box-shadow:0 0 60px #00000016}
.topbar{height:calc(86px + env(safe-area-inset-top));padding-bottom:4px;align-items:center}
.brand-fallback{font:800 34px/1 var(--font-brand);letter-spacing:-1.7px}
.header-actions{gap:8px}.header-actions .icon-button{width:44px;height:44px;color:var(--muted)}.header-actions svg{width:25px;height:25px}.header-actions .avatar{border:0;width:30px;height:30px;margin-left:3px}
.home-view .intro{display:none}.home-view .categories{padding-top:2px;padding-bottom:4px}.home-view .category{height:76px}.home-view .category-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.categories{gap:10px;padding-inline:16px}.category{flex-basis:72px;width:72px}.category-ring{background:linear-gradient(var(--cream),var(--cream)) padding-box,linear-gradient(135deg,var(--story-start),var(--story-end)) border-box;border:2px solid transparent;width:72px;height:72px;padding:3px}.category img{width:62px;height:62px}.category.active .category-ring{border-color:transparent;box-shadow:none;background:linear-gradient(var(--cream),var(--cream)) padding-box,linear-gradient(135deg,#FFF3A1,#F5D785) border-box}.category.active img{filter:brightness(1.1)}
.home-view .feed-heading{margin:0;height:18px;padding:0}.home-view .feed-heading>*{display:none}
.recipe-card{border-radius:28px;box-shadow:none;margin-bottom:18px;background:transparent}.card-open>img{aspect-ratio:3/4;min-height:420px}.card-open:after{background:linear-gradient(180deg,transparent 36%,#00000012 49%,#000000c9 100%)}
.card-info{left:20px;right:20px;bottom:24px}.card-badge{position:static;display:block;max-width:none;background:transparent;padding:0;border-radius:0;color:var(--flavor);font:700 11px/1.3 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;transform:none;margin-bottom:9px}
.card-info h3{font:600 clamp(27px,7.5vw,33px)/1.14 var(--font-ui);letter-spacing:-.8px;margin:0 0 14px;max-width:100%;text-wrap:balance}.card-meta{font-size:11px;font-weight:400;gap:8px;color:#ffffffc4;flex-wrap:wrap;line-height:1.5}.card-meta>svg{margin-left:auto;width:17px;height:17px;color:white}.meta-dot{color:#ffffff6b}
.recipe-card>.save-button{top:16px;right:16px;border:0;background:transparent;color:#FFFFFF;width:44px;height:44px;filter:drop-shadow(0 1px 5px #00000045)}.recipe-card>.save-button svg{width:25px;height:25px;stroke-width:1.9}.recipe-card>.save-button.saved{color:#F5C578;background:transparent}
.discovery-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 16px 24px}.discovery-chips::-webkit-scrollbar{display:none}.discovery-chips button{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:40px;padding:9px 13px;background:var(--surface);border:1px solid var(--border);border-radius:13px;font-size:12px;font-weight:400;white-space:nowrap}.discovery-chips svg{width:16px;height:16px;color:var(--muted)}
.bottom-nav{border-top:0;background:var(--nav-bg);height:calc(68px + env(safe-area-inset-bottom));padding-top:1px}.nav-item{color:var(--muted)}.nav-item svg{stroke-width:1.9}.nav-item.active svg{stroke-width:2.3}.nav-camera{background:var(--strong);color:var(--on-strong);box-shadow:none;transform:translateY(-3px);width:50px;height:50px;min-height:50px}.nav-camera.active{color:var(--on-strong)}.nav-camera svg{width:25px;height:25px}.nav-count{background:var(--flavor)}
.detail-body h1{font:600 clamp(29px,8vw,36px)/1.13 var(--font-ui);letter-spacing:-1px}.box-item h2{font:600 17px/1.25 var(--font-ui);letter-spacing:-.3px}.page-title h1{font-weight:600;letter-spacing:-.9px}.profile-card,.create-panel,.box-total,.empty{box-shadow:none}.profile-links button{background:var(--surface)}
@media(max-width:350px){.card-info{left:18px;right:18px;bottom:21px}.card-meta{gap:6px;font-size:10px}.card-badge{font-size:15px}.card-info h3{font-size:27px}}

/* Home is a short featured edit; Menu is the complete, easy-to-scan catalog. */
.featured-heading{display:flex;align-items:center;justify-content:space-between;padding:0 16px 14px;gap:12px}.featured-heading>span{font-size:13px;font-weight:600;letter-spacing:-.2px}.featured-heading .text-button{font-size:11px;color:var(--muted)}.menu-invite{margin:8px 16px 20px;padding:22px;text-align:center;background:var(--surface);border-radius:22px}.menu-invite h2{font-size:21px;letter-spacing:-.5px;margin:0 0 6px}.menu-invite p{font-size:13px;color:var(--muted);margin:0 0 16px}.menu-invite .secondary{background:var(--strong);color:var(--on-strong)}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;padding:0 16px}.menu-grid>.empty{grid-column:1/-1;margin:0}.menu-card{min-width:0;position:relative;border-radius:18px;overflow:hidden;background:var(--paper)}.menu-open{display:block;width:100%;padding:0;border:0;background:none;text-align:left}.menu-open>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:18px}.menu-card-copy{padding:12px 2px 6px}.menu-category{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.menu-card h2{font-size:clamp(15px,4vw,18px);font-weight:600;letter-spacing:-.4px;line-height:1.25;margin:5px 0 7px}.menu-card p{font-size:10px;color:var(--muted);margin:0 0 10px;line-height:1.5}.menu-card strong{font-size:14px}.menu-card strong small{font-size:9px;font-weight:400;color:var(--muted)}.menu-card>.save-button{top:6px;right:6px;width:36px;height:36px;background:#00000055;color:white;border:0;backdrop-filter:blur(8px)}.menu-card>.save-button svg{width:18px;height:18px}.menu-card>.save-button.saved{color:var(--flavor)}.menu-count{font-size:11px;color:var(--muted)}

/* Each Home circle represents a cuisine, with its own highest-rated photo. */
.featured-heading>div>span{font-size:13px;font-weight:600;letter-spacing:-.2px}.featured-heading small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:5px}.home-view .category{height:101px}.home-view .category-label{position:static;width:74px;height:auto;clip-path:none;overflow:hidden;font-size:10px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}.home-view .category.active .category-label{color:var(--text)}.recipe-rating{color:var(--flavor);font-weight:600}
/* A focused, one-topic-at-a-time setup, matching the app's continuous canvas. */
#preferencesDialog{z-index:30}.preferences-page{min-height:100dvh;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));width:100%}.preferences-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.preferences-top>span{font-size:11px;color:var(--muted)}.preferences-top .icon-button{min-width:44px;min-height:44px;margin-left:-10px}.preferences-top .text-button{min-height:44px;color:var(--muted)}.preferences-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:22px 0 38px}.preferences-progress span{height:3px;border-radius:4px;background:var(--border)}.preferences-progress span.done{background:var(--text)}.preferences-page h1{font-size:clamp(28px,8vw,34px);line-height:1.03;font-weight:600;letter-spacing:-1px;margin:0;max-width:310px;outline:none}.preferences-subtitle{font-size:13px;line-height:1.7;color:var(--muted);margin:16px 0 26px}.preferences-fields{flex:1;min-width:0}.preference-field{display:block;font-size:12px;color:var(--muted);margin-bottom:26px}.preference-field input,.preference-field select{display:block;width:100%;min-width:0;min-height:52px;margin-top:8px;padding:10px 0 12px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;color:var(--text);font:400 22px/1.3 var(--font-ui);outline-offset:3px}.preference-field input::placeholder{color:var(--muted);opacity:.8}.preference-field input:focus{border-bottom-color:var(--text)}.preference-field select{font-size:18px}.preference-field select option{background:var(--paper);color:var(--text)}.preferences-fields fieldset{padding:0;border:0;margin:0 0 28px;min-width:0}.preferences-fields legend{font-size:14px;font-weight:500;margin-bottom:13px}.preference-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preference-choice,.cuisine-option{position:relative;cursor:pointer;min-width:0}.preference-choice input,.cuisine-option input{position:absolute;width:1px;height:1px;opacity:0}.preference-choice>span{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);min-height:76px}.preference-choice strong{font-size:12px;font-weight:500;line-height:1.5}.preference-choice small{font-size:10px;color:var(--muted);line-height:1.6}.preference-choice input:checked+span,.cuisine-option input:checked+span{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}.preference-choice input:checked+span:after,.cuisine-option input:checked+span:after{content:'✓';position:absolute;right:8px;top:5px;font-size:10px;color:var(--text)}.preference-choice input:focus-visible+span,.cuisine-option input:focus-visible+span{outline:3px solid var(--flavor);outline-offset:3px}.cuisine-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cuisine-option>span{display:flex;align-items:center;justify-content:center;min-height:76px;border:1px solid var(--border);border-radius:16px;background:var(--surface);font-size:12px;text-align:center;line-height:1.5;padding:16px 10px}.preference-note{font-size:11px;line-height:1.8;color:var(--muted);margin:24px 0}.preferences-bottom{padding-top:24px;margin-top:auto}.preferences-bottom .primary{min-height:54px}.profile-link-note{display:block;font-size:10px;color:var(--muted);font-weight:400;line-height:1.6;margin-top:5px}.featured-heading>div{min-width:0}.featured-heading>div>span{overflow-wrap:anywhere}.profile-card h2{overflow-wrap:anywhere}

/* Flags keep featured cuisine shortcuts compact; names remain accessible. */
.home-view .category{height:104px;gap:6px}.category-flag{display:block;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:21px;line-height:26px;text-align:center;filter:drop-shadow(0 1px 2px #00000018)}
.cloud-sync-card{margin:18px 16px 36px;padding:22px;background:var(--paper);border:1px solid var(--border);border-radius:22px}.cloud-sync-card h2{margin:0 0 8px;font-size:20px}.cloud-sync-card>p{font-size:13px;line-height:1.6}.cloud-account{overflow-wrap:anywhere;font-size:12px}.cloud-sync-card form{display:grid;gap:14px;margin-top:18px}.cloud-sync-card form label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.cloud-sync-card form input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:15px}.cloud-auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cloud-auth-actions button{min-height:48px;padding:9px;font-size:12px}.cloud-auth-message{min-height:20px;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.cloud-sync-card>.secondary{min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
/* Let the feed flow beneath the controls without a hard, opaque navigation edge. */
:root{--nav-glass-rgb:255,255,255;--nav-icon-shadow:0 1px 5px #ffffff70}
.preferences-progress{grid-template-columns:repeat(6,1fr)}
.equipment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.equipment-option{position:relative;cursor:pointer;min-width:0}
.equipment-option input{position:absolute;width:1px;height:1px;opacity:0}
.equipment-option>span{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:84px;padding:14px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.equipment-option strong{font-size:12px;font-weight:500;line-height:1.5}
.equipment-option small{font-size:10px;color:var(--muted);line-height:1.6}
.equipment-option input:checked+span{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.equipment-option input:checked+span:after{content:'✓';position:absolute;right:8px;top:5px;font-size:10px;color:var(--text)}
.equipment-option input:focus-visible+span{outline:3px solid var(--flavor);outline-offset:3px}
.optional-note{font-size:10px;color:var(--muted);margin-left:4px}
.address-label-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.address-label-option{position:relative;cursor:pointer}
.address-label-option input{position:absolute;width:1px;height:1px;opacity:0}
.address-label-option span{display:grid;place-items:center;min-height:48px;padding:8px;border:1px solid var(--border);border-radius:14px;background:var(--surface);font-size:12px}
.address-label-option input:checked+span{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.address-label-option input:focus-visible+span{outline:3px solid var(--flavor);outline-offset:3px}
.clear-saved-address{margin-top:4px;color:var(--muted)}
.preference-address-suggestions{margin:0 0 18px}
.preference-address-loading{display:block;padding:12px 14px;background:var(--surface);font-size:11px;line-height:1.6;color:var(--muted)}
.checkout-address-choice-group{padding:0;border:0;margin:20px 0}
.checkout-address-choice-group legend{font-size:12px;color:var(--muted);margin-bottom:10px}
.checkout-address-choices{display:grid;gap:8px}
.checkout-address-choice{display:grid;gap:5px;width:100%;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;text-align:left}
.checkout-address-choice.selected{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.checkout-address-choice strong{font-size:12px}
.checkout-address-choice span{font-size:11px;line-height:1.5;color:var(--muted)}
.checkout-saved-address-note{margin:-12px 0 20px;font-size:10px;line-height:1.6;color:var(--muted)}
:root[data-theme="dark"]{--nav-glass-rgb:0,0,0;--nav-icon-shadow:0 1px 5px #00000080}
.bottom-nav{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;overflow:visible}
.bottom-nav::before{content:'';position:absolute;z-index:-1;inset:-30px 0 0;pointer-events:none;background:linear-gradient(to bottom,rgba(var(--nav-glass-rgb),0),rgba(var(--nav-glass-rgb),.62) 35%,rgba(var(--nav-glass-rgb),.85) 75%,rgba(var(--nav-glass-rgb),.95));backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);mask-image:linear-gradient(to bottom,transparent,#000 40%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 40%)}
.bottom-nav .nav-item:not(.nav-camera)>svg{filter:drop-shadow(var(--nav-icon-shadow))}
.bottom-nav .nav-camera{box-shadow:0 3px 15px #00000012}
@media(prefers-reduced-transparency:reduce){.bottom-nav::before{background:var(--cream);backdrop-filter:none;-webkit-backdrop-filter:none;mask-image:none;-webkit-mask-image:none;inset:0}}

/* Menu: a generous photo lead, followed by compact, complete meal-kit cards. */
.menu-view .page-title{padding-top:16px}.menu-view .page-title:before{content:'THE COOKLY KITCHEN';display:block;font-size:10px;font-weight:600;letter-spacing:.15em;color:var(--flavor);margin-bottom:10px}.menu-view .page-title h1{max-width:280px;font-size:32px;line-height:1.08;letter-spacing:-1.3px}.menu-view .page-title p{max-width:300px;font-size:12px;line-height:1.7}.menu-view .search-field{background:var(--surface);border:0;border-radius:16px;padding:15px;margin-bottom:18px}.menu-cuisines{display:flex;gap:8px;padding:0 16px 4px;overflow-x:auto;scrollbar-width:none}.menu-cuisines::-webkit-scrollbar{display:none}.menu-cuisines button{flex-shrink:0;display:flex;gap:7px;align-items:center;min-height:40px;border:1px solid var(--border);border-radius:24px;padding:10px 15px;font-size:12px;background:var(--surface);color:var(--muted)}.menu-cuisines button.active{background:var(--strong);color:var(--on-strong);border-color:var(--strong)}.menu-cuisines button span{font-size:16px}.menu-view .feed-heading{margin-top:24px}.menu-view .feed-heading h2{font-size:19px}.menu-grid{gap:14px;padding:0 16px}.menu-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;overflow:hidden}.menu-photo{position:relative;overflow:hidden}.menu-photo>img{width:100%;aspect-ratio:4/5;object-fit:cover}.menu-time{position:absolute;left:10px;bottom:10px;display:flex;gap:5px;align-items:center;border-radius:20px;background:#00000065;color:#FFFFFF;padding:5px 8px;font-size:10px;backdrop-filter:blur(10px)}.menu-time svg{width:12px;height:12px}.menu-card-copy{padding:13px 12px 14px}.menu-category{font-size:9px;letter-spacing:.08em}.menu-category>span{font-size:12px;margin-right:3px}.menu-card h2{font-size:clamp(15px,4vw,18px);line-height:1.2;margin:8px 0}.menu-card p{font-size:9px;margin:0 0 14px}.menu-card-bottom{display:flex;justify-content:space-between;gap:6px;align-items:center;border-top:1px solid var(--border);padding-top:12px}.menu-card strong{font-size:17px;font-weight:600;letter-spacing:-.4px}.menu-card strong small{display:block;font-size:9px;margin-top:3px;letter-spacing:0}.menu-recipe-arrow{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1px solid var(--border)}.menu-recipe-arrow svg{width:15px;height:15px}.menu-card>.save-button{top:10px;right:10px}.menu-card:first-child{grid-column:1/-1}.menu-card:first-child .menu-photo>img{aspect-ratio:16/9}.menu-card:first-child .menu-card-copy{padding:16px 18px}.menu-card:first-child h2{font-size:25px;letter-spacing:-.8px}.menu-card:first-child p{font-size:11px}.menu-card:first-child .menu-card-bottom{padding-top:12px}.menu-card:first-child .menu-time{left:16px;bottom:14px;font-size:11px}.menu-card:first-child .menu-recipe-arrow{width:34px;height:34px}
.menu-load-more{grid-column:1/-1;margin:4px 0 16px}

/* Grab Community is used when installed; Inter is the active fallback without its font files. */
.card-info h3,.detail-body h1,.page-title h1,.preferences-page h1,.menu-card h2,.profile-card h2{font-family:var(--font-brand);font-weight:600;letter-spacing:-.035em}
.card-badge{font-family:var(--font-ui);font-size:11px;font-weight:700;letter-spacing:.12em;line-height:1.4;transform:none}
body{font-optical-sizing:auto}button,input,select,textarea{font-family:var(--font-ui)}

/* Direction-aware navigation; include the glass fade when moving it offscreen. */
.bottom-nav{transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .45s ease;will-change:transform}
.bottom-nav.is-scroll-hidden{transform:translate(-50%,calc(100% + 40px));opacity:0;pointer-events:none}
.bottom-nav:focus-within{transform:translate(-50%,0);opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.bottom-nav{transition:none}}

.featured-heading h1{font-family:var(--font-brand);font-size:clamp(18px,5vw,21px);font-weight:600;line-height:1.3;letter-spacing:-.035em;margin:0;overflow-wrap:anywhere;max-width:100%}.featured-heading{padding-top:6px;padding-bottom:18px}

/* Keep the personal greeting quiet and compact above the cuisine strip. */
.featured-heading h1{font-size:13px;font-weight:500;line-height:1.45;letter-spacing:-.015em;width:52%;max-width:200px;color:var(--text)}.featured-heading{padding-top:4px;padding-bottom:16px}
/* A post-meal moment: personal ratings stay separate from sample community scores. */
.personal-review{margin-top:28px;padding:20px 0 0;border-top:1px solid var(--border)}.personal-review h2{margin:0 0 10px}.personal-review p{font-size:12px;line-height:1.7;color:var(--muted)}.review-stars{font-size:20px;letter-spacing:3px;color:var(--flavor)}.review-note{white-space:pre-wrap;overflow-wrap:anywhere}.meal-review-page{min-height:100dvh;padding:calc(16px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom))}.meal-review-photo{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:24px;margin:8px 0 26px}.meal-review-page h1{font:600 30px/1.15 var(--font-brand);letter-spacing:-1px;margin:10px 0}.meal-review-name{font-size:15px;margin:10px 0 22px}.meal-review-page>.primary{margin-top:26px}.meal-stars{border:0;padding:0;margin:26px 0 20px}.meal-stars legend{font-size:12px;color:var(--muted);margin-bottom:14px}.star-options{display:flex;justify-content:space-between;gap:4px}.star-options label{position:relative;cursor:pointer;flex:1;min-width:0}.star-options input{position:absolute;width:1px;height:1px;opacity:0}.star-options span{display:grid;place-items:center;min-height:48px;font-size:34px;color:var(--muted);border-radius:10px}.star-options label.filled span{color:var(--flavor)}.star-options input:focus-visible+span{outline:2px solid var(--text);outline-offset:2px}.star-description{font-size:13px;min-height:20px;color:var(--muted);margin:12px 0 0}.review-comment-label{display:block;font-size:13px;margin-bottom:12px}.review-comment-label span{font-size:11px;color:var(--muted);margin-left:5px}#mealNote{display:block;width:100%;resize:vertical;min-height:120px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);font:13px/1.7 var(--font-ui)}.review-storage-note{font-size:10px;line-height:1.7;color:var(--muted);margin:12px 0 22px}.cooked-meals{margin:26px 16px}.cooked-meals h2{font-size:20px;letter-spacing:-.5px}.cooked-meal{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--border);background:none;text-align:left}.cooked-meal img{width:56px;height:64px;object-fit:cover;border-radius:12px}.cooked-meal>span{flex:1;min-width:0}.cooked-meal strong{display:block;font-size:13px;line-height:1.5}.cooked-meal small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.cooked-meal svg{width:18px;height:18px;color:var(--muted)}
/* Checkout follows the same canvas and typography as the meal box. */
.checkout-demo-note{font-size:10px;color:var(--muted);line-height:1.7;margin:14px 0 0}.checkout-page{padding:calc(16px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom));min-height:100dvh}.checkout-top{display:flex;align-items:center;gap:12px;margin-bottom:28px}.checkout-top>span{font-size:10px;letter-spacing:.1em;color:var(--muted)}.checkout-top .icon-button{width:44px;height:44px}.checkout-page h1{font:600 30px/1.1 var(--font-brand);letter-spacing:-1px;margin:0 0 14px;outline:none}.checkout-field{display:block;font-size:12px;color:var(--muted);margin:22px 0}.checkout-field input,.checkout-field textarea,.checkout-field select{display:block;width:100%;min-width:0;min-height:48px;padding:12px 14px;margin-top:9px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:14px/1.5 var(--font-ui)}.checkout-field textarea{resize:vertical}.checkout-field select option{background:var(--paper)}#checkoutForm>.primary{margin-top:24px}.checkout-address,.checkout-summary{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:18px;margin:22px 0}.checkout-page h2{font-size:16px;letter-spacing:-.3px;margin:0 0 16px}.checkout-address p{font-size:12px;line-height:1.8;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.checkout-address>strong{font-size:13px;overflow-wrap:anywhere}.checkout-kit{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}.checkout-kit img{width:44px;height:54px;border-radius:10px;object-fit:cover}.checkout-kit>span{flex:1;min-width:0}.checkout-kit strong{display:block;font-size:12px;line-height:1.5}.checkout-kit small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.checkout-kit b{font-size:12px;white-space:nowrap}.checkout-total-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:16px}.checkout-grand{border-top:1px solid var(--border);padding-top:16px;font-size:17px}.checkout-success-mark{display:grid;place-items:center;width:56px;height:56px;margin:26px auto 14px;border-radius:50%;background:var(--strong);color:var(--on-strong);font-size:25px}.demo-order-id{text-align:center;font-size:12px;color:var(--muted);letter-spacing:.08em}

.guide-locked-note{font-size:12px;color:var(--muted);text-align:center;padding:14px 12px;border:1px dashed var(--border);border-radius:14px;margin-top:12px}.checkout-unlocked{margin:24px 0}.checkout-unlocked .secondary{line-height:1.5;text-align:left}

.freshness-reminder{padding:14px 16px;margin:18px 0;background:var(--surface);border:1px solid var(--border);border-radius:14px}.freshness-reminder strong{font-size:12px;font-weight:600}.freshness-reminder p{font-size:11px;line-height:1.7;color:var(--muted);margin:6px 0 0}
.required-mark{color:var(--accent);font-weight:700;margin-left:3px}
.checkout-validation{padding:13px 15px;margin:18px 0;border:1px solid #d94841;border-radius:12px;background:color-mix(in srgb,#d94841 10%,var(--surface));color:var(--text);font-size:12px;line-height:1.6}
#checkoutForm [aria-invalid="true"]{border-color:#d94841;box-shadow:0 0 0 1px #d94841}
.address-search-button,.confirm-pin-button{width:100%;margin-top:-10px}
.address-search-button svg{width:17px;height:17px;margin-right:6px;vertical-align:middle}
.address-suggestions{display:grid;gap:1px;margin:-8px 0 18px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--border)}
.address-suggestions[hidden]{display:none}
.location-suggestion{min-height:48px;padding:12px 14px;border:0;background:var(--surface);color:var(--text);font:12px/1.5 var(--font-ui);text-align:left}
.location-suggestion:hover,.location-suggestion:focus-visible{background:var(--paper)}
.location-map-heading{display:grid;gap:5px;margin:20px 0 10px}
.location-map-heading strong{font-size:12px}
.location-map-heading span,.location-status,.map-attribution-note{font-size:10px;line-height:1.6;color:var(--muted)}
.delivery-map{width:100%;height:270px;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.confirm-pin-button{margin:12px 0 0}
.location-status{min-height:17px;margin:8px 0 0}
.location-status.is-error{color:#d94841}
.map-attribution-note{margin:6px 0 16px}
.checkout-map-pin{border:0;background:none}
.checkout-map-pin span{display:block;width:20px;height:20px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#d94841;box-shadow:0 2px 6px #0008;transform:rotate(-45deg)}
.checkout-map-pin span:after{content:'';position:absolute;inset:4px;border-radius:50%;background:#fff}
/* A calm watch-then-cook player stays above the written step. */
.has-guide-player .detail-top{z-index:3}.has-guide-player .detail-top>.icon-button{background:#00000066;color:white;backdrop-filter:blur(12px)}.has-guide-player .detail-top>.save-button{background:#00000066;color:white}.guide-player{background:#141414;color:white}.guide-player video{width:100%;aspect-ratio:4/3;display:block;object-fit:contain;background:#141414}.mock-step-film{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden}.mock-step-film>img{width:100%;height:100%;object-fit:cover;animation:film-drift 18s linear forwards;animation-play-state:paused}.mock-step-film.is-playing>img{animation-play-state:running}.mock-film-shade{position:absolute;inset:0;background:linear-gradient(transparent 20%,#000000d9 100%)}.mock-film-tag{position:absolute;top:78px;left:20px;font-size:9px;letter-spacing:.1em;color:#ffffffb0}.mock-film-caption{position:absolute;left:20px;right:20px;bottom:22px}.mock-film-caption>span{font-size:10px;color:#ffffffaa}.mock-film-caption p{font-size:clamp(15px,4.5vw,20px);font-weight:500;line-height:1.45;letter-spacing:-.4px;margin:10px 0 0}.mock-film-controls{display:flex;align-items:center;gap:9px;padding:12px 14px;background:var(--surface);color:var(--text)}.mock-film-controls button{border:0;background:none;color:var(--text);min-height:44px;padding:4px;font-size:11px;white-space:nowrap}.mock-film-controls button:last-child{font-size:24px;min-width:36px}.mock-film-controls input{width:100%;min-width:20px;accent-color:var(--text);cursor:pointer}.mock-film-controls>span{font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums}.guide-pace-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}.video-failure{padding:14px;font-size:12px;line-height:1.6}.guide-player:has(video)+.detail-top{pointer-events:none}.guide-player:has(video)+.detail-top button{pointer-events:auto}@keyframes film-drift{from{transform:scale(1)}to{transform:scale(1.09)}}@media(prefers-reduced-motion:reduce){.mock-step-film>img{animation:none}}

/* History replaces photo capture; all five navigation icons have equal weight. */
.history-meal{margin-bottom:12px;border-bottom:1px solid var(--border);padding-bottom:14px}.history-meal .cooked-meal{border:0}.history-rate{display:block;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:12px;color:var(--text);text-align:center}.cooked-meals>.secondary{margin-top:18px}
.step-instructions p{font-size:14px;line-height:1.85;margin:14px 0}.step-instructions p+p{padding-top:12px;border-top:1px solid var(--border)}.step-ingredients,.guide-box-reference{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.step-ingredients h3{font-size:13px;font-weight:600;margin:0 0 14px}.step-ingredients ul,.guide-box-reference ul{padding:0;list-style:none;margin:0}.step-ingredients li,.guide-box-reference li{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px;line-height:1.6}.step-ingredients li strong,.guide-box-reference li strong{white-space:nowrap;font-weight:500}.step-ingredients p,.guide-box-reference p{font-size:10px;color:var(--muted);line-height:1.8;margin:14px 0 0}.guide-box-reference summary{cursor:pointer;font-size:12px;font-weight:500;line-height:1.6}.guide-box-reference[open] summary{margin-bottom:14px}

.recorded-portions-note{font-size:10px;line-height:1.7;margin:0;padding:12px 18px;background:var(--surface);color:var(--muted)}
