@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');
/* Edit these design tokens to restyle the whole app. */
:root{--bg:#fff;--surface:#f8f5f1;--text:#302923;--muted:#786f66;--line:#e9e2da;--accent:#914d36;--accent-soft:#f6ede6;--highlight:#ba9254;--radius:20px;--font:Arial,Helvetica,sans-serif;color-scheme:light}
:root[data-theme=dark]{--bg:#191715;--surface:#25211e;--text:#f5eee5;--muted:#b9aa9c;--line:#3c332d;--accent:#e2a387;--accent-soft:#32251f;--highlight:#d3b078;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);transition:background .2s,color .2s}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--highlight);outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}.topbar{height:92px;max-width:1280px;margin:auto;display:flex;align-items:center;gap:22px;padding:0 40px;border-bottom:1px solid var(--line)}.avatar{background:var(--accent-soft);border:1px solid var(--line);border-radius:50%;width:38px;height:38px;font-weight:bold}.brand{font-family:Georgia,serif;font-size:36px;font-weight:bold;letter-spacing:-2px}.brand span{color:var(--accent);font-size:12px;margin-left:3px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:25px}.edition,.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.edition{color:var(--muted)}.icon-button{border:1px solid var(--line);border-radius:50%;background:var(--bg);width:40px;height:40px;font-size:22px}main{max-width:1200px;margin:auto;padding:0 40px 100px}.intro{display:flex;justify-content:space-between;align-items:center;padding:54px 0 30px}.eyebrow{color:var(--accent);margin:0 0 13px}h1{font-family:Georgia,serif;font-weight:400;font-size:72px;line-height:1.03;letter-spacing:-3px;margin:0}h1 em{color:var(--accent)}.subheading{font-size:14px;color:var(--muted);line-height:1.7}.intro-note{display:flex;align-items:center;gap:25px;padding-right:50px}.intro-note>span{font-size:85px;color:var(--highlight)}.intro-note p{font-size:17px;line-height:1.6}.search-box{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px 18px;gap:15px}.search-box>span{font-size:30px}.search-box input{width:100%;padding:14px 0;background:transparent;border:0;color:var(--text);outline:none}.search-box button{border:0;background:transparent;font-size:25px;color:var(--muted)}.search-options{display:flex;gap:20px;justify-content:space-between;padding:12px 2px;color:var(--muted);font-size:11px}.search-options label{display:flex;align-items:center;gap:5px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 18px}h2{font-size:24px;font-family:Georgia,serif;font-weight:400;margin:0}.section-heading>span{font-size:12px;color:var(--muted)}.cuisine-list{display:flex;gap:10px;overflow:auto;padding:2px 0 8px}.cuisine-list button{white-space:nowrap;min-width:110px;background:var(--surface);border:1px solid var(--line);padding:15px 18px;border-radius:10px;font-size:13px}.cuisine-list button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.category-row{display:flex;gap:8px;overflow:auto;padding:15px 0 22px;border-bottom:1px solid var(--line)}.category-row button{border:0;border-radius:30px;background:transparent;padding:8px 14px;white-space:nowrap;font-size:12px;color:var(--muted)}.category-row button.active{background:var(--text);color:var(--bg)}.text-button{border:0;background:transparent;color:var(--accent);font-size:12px}.muted{color:var(--muted);font-size:13px}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 24px}.recipe-card{position:relative}.photo-button{display:block;width:100%;padding:0;border:0;background:var(--surface);border-radius:var(--radius);overflow:hidden;aspect-ratio:1.5}.photo-button img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.photo-button:hover img{transform:scale(1.05)}.save{position:absolute;right:12px;top:12px;background:#fff;color:#263626;border:0;width:33px;height:33px;border-radius:50%;font-size:20px}.tag{position:absolute;top:14px;left:14px;border-radius:5px;background:#ffffffed;color:#344b33;padding:6px 9px;font-size:9px;letter-spacing:1px;text-transform:uppercase}.card-meta{display:flex;justify-content:space-between;margin-top:15px;font-size:10px;letter-spacing:1px;color:var(--accent);text-transform:uppercase}.recipe-card h3{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:8px 0}.recipe-card .open{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;padding:0;text-align:left}.arrow{font-size:22px;color:var(--accent)}.card-footer{font-size:11px;color:var(--muted);display:flex;gap:13px}.journey{margin-top:45px;background:var(--accent-soft);border-radius:var(--radius);padding:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.journey p:not(.eyebrow){font-size:13px;color:var(--muted)}.journey button{background:var(--accent);color:var(--bg);border:0;border-radius:8px;padding:14px;font-size:12px}footer{display:flex;justify-content:space-between;margin-top:30px;color:var(--muted);font-size:10px}footer span{letter-spacing:2px}.bottom-nav{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-around;width:420px;max-width:calc(100% - 24px);background:var(--bg);border:1px solid var(--line);box-shadow:0 6px 35px #0002;border-radius:22px;padding:9px;z-index:5}.bottom-nav button{background:none;border:0;color:var(--muted);font-size:23px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:56px}.bottom-nav span{font-size:9px}.bottom-nav .active{color:var(--accent)}.bottom-nav .camera{background:var(--accent);color:var(--bg);border-radius:50%;width:49px;min-width:49px;height:49px;justify-content:center}dialog{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:24px;width:620px;max-width:calc(100% - 24px);max-height:90vh;padding:30px}dialog::backdrop{background:#101c1599;backdrop-filter:blur(4px)}.close{float:right;background:var(--surface);border:0;border-radius:50%;width:32px;height:32px;font-size:22px}dialog img{width:100%;height:220px;object-fit:cover;border-radius:15px;margin:15px 0}dialog h2{font-size:32px}dialog p,dialog li{line-height:1.7;font-size:14px}dialog .primary{padding:12px 20px;background:var(--accent);color:var(--bg);border:0;border-radius:10px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:14px 20px;border-radius:12px;z-index:10;display:none;max-width:90%;font-size:13px}.empty{padding:40px;background:var(--surface);border-radius:20px;grid-column:1/-1}
@media(max-width:760px){.topbar{height:75px;padding:0 20px}.edition{display:none}main{padding:0 20px 100px}.intro{padding-top:35px}h1{font-size:53px}.intro-note{display:none}.subheading{max-width:280px;font-size:13px}.section-heading>span{display:none}.recipe-grid{grid-template-columns:repeat(2,1fr);gap:24px 14px}.recipe-card h3{font-size:19px}.card-footer{font-size:10px;gap:8px}.journey{padding:22px;align-items:flex-start;flex-direction:column}.search-options{flex-wrap:wrap;gap:8px}.section-heading h2{font-size:23px}footer span{display:none}.tag{font-size:8px;padding:5px;left:8px;top:10px}.save{right:8px;top:8px}.card-meta{font-size:9px}dialog{padding:22px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Editorial finish: shared by both themes, easy to replace after references. */
.topbar{border-bottom-color:var(--line)}
.brand{font-style:italic;font-weight:400;font-size:39px;letter-spacing:-2.5px}
.avatar{box-shadow:inset 0 0 0 4px var(--bg);color:var(--accent)}
.intro{position:relative;padding-top:62px;padding-bottom:36px}
.intro:after{content:"";position:absolute;right:0;top:32px;width:180px;height:180px;border:1px solid var(--line);border-radius:50%;pointer-events:none;z-index:-1}
.intro-note{padding-right:32px;gap:20px}
.intro-note>span{font-size:78px;font-weight:300}
.intro-note p{font-family:Georgia,serif;font-size:20px;line-height:1.45}
.intro-note strong{font-weight:400;font-style:italic;color:var(--accent)}
h1{letter-spacing:-3.5px}h1 em{font-weight:400}
.eyebrow{letter-spacing:2.4px;font-size:9px}
.search-box{background:var(--bg);border-color:var(--line);box-shadow:0 5px 22px #47301d05;border-radius:12px;padding:9px 20px}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search-box>span{color:var(--accent)}
.cuisine-list button{background:var(--bg);border-radius:8px;transition:background .18s,border-color .18s}
.cuisine-list button:hover{background:var(--surface);border-color:var(--accent)}
.cuisine-list button.active{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.category-row button.active{background:var(--accent-soft);color:var(--accent)}
.section-heading h2{letter-spacing:-.5px}
.photo-button{box-shadow:0 5px 16px #3020160a}
.photo-button img{filter:saturate(.93) contrast(1.025)}
.tag{background:#fff9f1ed;color:#593c2b;letter-spacing:1.3px;border:1px solid #ffffff70}
.save{background:#fffaf3f2;color:#914d36;box-shadow:0 2px 8px #0001}
.card-meta{font-size:9px;letter-spacing:1.4px;margin-top:17px}
.recipe-card h3{letter-spacing:-.35px;line-height:1.2;margin:9px 0 11px}
.card-footer{padding-bottom:12px;border-bottom:1px solid var(--line)}
.arrow{border:1px solid var(--line);border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:17px;flex-shrink:0;margin-left:8px}
.open:hover .arrow{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.journey{position:relative;overflow:hidden;padding:34px;border:1px solid var(--line);background:linear-gradient(115deg,var(--surface),var(--accent-soft))}
.journey h2{font-size:29px;letter-spacing:-.6px}
.journey button{border-radius:7px;letter-spacing:.3px;padding:15px 18px}
.bottom-nav{box-shadow:0 8px 35px #30201615;border-radius:20px}
.bottom-nav .camera{box-shadow:0 3px 10px #914d3625}
:root[data-theme=dark] .photo-button img{filter:saturate(.9) brightness(.9)}
:root[data-theme=dark] .search-box{background:var(--surface)}
@media(max-width:760px){.intro{padding-top:36px;padding-bottom:25px}.intro:after{display:none}h1{letter-spacing:-2.5px}.journey{padding:24px}.journey h2{font-size:26px}.card-meta{letter-spacing:.8px}.recipe-card h3{font-size:19px}.arrow{width:24px;height:24px;font-size:14px}.brand{font-size:35px}}

/* Reference-inspired greeting / search header; independent of the cards. */
.welcome-panel{position:relative;margin-top:30px;padding:32px 34px 18px;border:1px solid var(--line);border-radius:26px;background:linear-gradient(110deg,var(--surface),var(--accent-soft));isolation:isolate;min-height:260px;overflow:hidden}
.welcome-top{display:flex;align-items:flex-start;justify-content:space-between;position:relative;z-index:2}
.welcome-user{display:flex;gap:18px;align-items:center}
.welcome-user .avatar{width:62px;height:62px;flex-shrink:0;font-size:22px;background:var(--bg);border:1px solid var(--line);box-shadow:0 4px 16px #30201608}
.welcome-user .eyebrow{margin-bottom:9px;font-size:10px}
.welcome-user h1{font-size:36px;letter-spacing:-1.2px;line-height:1.15}
.welcome-caption{font-size:12px;color:var(--muted);margin:16px 0 23px 80px}
.theme-switch{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);border-radius:24px;background:var(--bg);flex-shrink:0}
.theme-symbol{font-size:20px;color:var(--highlight);line-height:1}
.theme-track{display:block;width:30px;height:17px;border-radius:20px;background:var(--accent-soft);position:relative}
.theme-track:after{content:"";position:absolute;width:13px;height:13px;top:2px;left:2px;border-radius:50%;background:var(--accent);transition:transform .2s}
:root[data-theme=dark] .theme-track:after{transform:translateX(13px)}
.welcome-panel .search-section{position:relative;z-index:2;width:calc(100% - 255px)}
.welcome-panel .search-box{border-radius:30px;padding:0 16px;background:var(--bg)}
.welcome-panel .search-box input{padding:13px 0;font-size:13px}
.welcome-panel .search-options{padding-bottom:0;font-size:10px;gap:8px;flex-wrap:wrap}
.welcome-food{position:absolute;right:32px;top:66px;width:212px;text-align:center;z-index:1}
.welcome-food img{width:185px;height:185px;object-fit:cover;border-radius:50%;border:7px solid var(--bg);box-shadow:0 12px 30px #30201618}
.welcome-food span{position:absolute;bottom:4px;right:-5px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:9px 13px;font-size:10px;line-height:1.5;transform:rotate(-5deg)}
.welcome-food em{font-family:Georgia,serif;font-size:14px;color:var(--accent)}
@media(max-width:760px){.welcome-panel{margin-top:20px;padding:20px 17px 13px;min-height:245px;border-radius:21px}.welcome-user{gap:10px;align-items:flex-start;max-width:calc(100% - 55px)}.welcome-user .avatar{width:43px;height:43px;font-size:17px}.welcome-user .eyebrow{font-size:8px;letter-spacing:1px;margin:3px 0 8px}.welcome-user h1{font-size:24px;letter-spacing:-.7px}.welcome-caption{margin:13px 105px 19px 0;line-height:1.5;font-size:11px}.theme-switch{padding:5px;gap:4px}.theme-symbol{font-size:17px}.theme-track{width:25px}.theme-track:after{width:13px}:root[data-theme=dark] .theme-track:after{transform:translateX(8px)}.welcome-food{width:106px;right:8px;top:82px}.welcome-food img{width:101px;height:101px;border-width:4px}.welcome-food span{display:none}.welcome-panel .search-section{width:100%}.welcome-panel .search-box input{font-size:12px}.welcome-panel .search-box{gap:8px}.welcome-panel .search-options>span:first-child{display:none}}

/* Day: white, gold and salad pastels. Night: cool black, blue and violet. */
:root{--bg:#fff;--surface:#faf9f3;--text:#30362c;--muted:#707664;--line:#e7e8da;--accent:#566c42;--accent-soft:#eef4e6;--highlight:#a47c2c;--peach:#f9e4da;--yellow:#faf1cd;--green:#e7f0dc;--rose:#f6dfdb;--tag-bg:#fffaf0;--tag-text:#61502f;--header-end:#faf0d7}
:root[data-theme=dark]{--bg:#0b0e16;--surface:#131928;--text:#e8ecfa;--muted:#a4aec7;--line:#283149;--accent:#a8b9fa;--accent-soft:#202842;--highlight:#b7a0ed;--peach:#28213f;--yellow:#212b48;--green:#192e3d;--rose:#302341;--tag-bg:#151d32;--tag-text:#c4cef7;--header-end:#242039}
.welcome-panel{background:linear-gradient(115deg,var(--green),var(--surface) 60%,var(--header-end))}
.welcome-user .eyebrow,.theme-symbol{color:var(--highlight)}
.welcome-food span{background:var(--yellow)}
.cuisine-list button:nth-child(4n+2){background:var(--green)}
.cuisine-list button:nth-child(4n+3){background:var(--yellow)}
.cuisine-list button:nth-child(4n+4){background:var(--peach)}
.cuisine-list button:nth-child(4n+5){background:var(--rose)}
.cuisine-list button.active{background:var(--accent);color:var(--bg)}
.tag{background:var(--tag-bg);color:var(--tag-text);border-color:var(--line)}
.save{background:var(--tag-bg);color:var(--accent)}
.photo-button{box-shadow:0 5px 16px #0000000a}
.bottom-nav .camera{box-shadow:0 3px 15px #00000020}
#regional-browse{padding:17px 16px;margin:12px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:12px}
#regional-browse[hidden]{display:none}
#regional-browse .eyebrow{font-size:9px;margin-bottom:12px;color:var(--highlight)}
.region-list{display:flex;flex-wrap:wrap;gap:8px}
.region-list button{background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:9px 13px;font-size:12px;color:var(--muted)}
.region-list button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
@media(max-width:760px){.region-list{flex-wrap:nowrap;overflow:auto;padding-bottom:5px}.region-list button{white-space:nowrap}}

/* Light-only mid-tone panels and restrained gold edging. */
:root[data-theme=light]{--panel-gold:#b4934e;--panel-ink:#293422;--panel-muted:#4b5840}
:root[data-theme=light] .welcome-panel{background:linear-gradient(115deg,#b5c59d 0%,#c9cfaa 45%,#dfca91 100%);border:1px solid var(--panel-gold);box-shadow:inset 0 0 0 1px #fff8dc55,0 8px 24px #8e733810}
:root[data-theme=light] .welcome-user h1{color:var(--panel-ink)}
:root[data-theme=light] .welcome-user h1 em{color:#405833}
:root[data-theme=light] .welcome-caption,:root[data-theme=light] .welcome-panel .search-options{color:var(--panel-muted)}
:root[data-theme=light] .welcome-user .eyebrow{color:#68511d}
:root[data-theme=light] .welcome-panel .search-box{border-color:#b4934e99}
:root[data-theme=light] .welcome-food img{border-color:#fff8e5;outline:1px solid var(--panel-gold)}
:root[data-theme=light] .journey{background:linear-gradient(120deg,#aebb92 0%,#c0c79e 48%,#d6bd83 100%);border:1px solid var(--panel-gold);box-shadow:inset 0 0 0 1px #fff8dc55}
:root[data-theme=light] .journey h2{color:var(--panel-ink)}
:root[data-theme=light] .journey p:not(.eyebrow){color:var(--panel-muted)}
:root[data-theme=light] .journey .eyebrow{color:#68511d}

/* Larger cuisine labels and theme-aware food art. */
.cuisine-list button{font-size:16px;min-width:120px;font-weight:500}
.welcome-food{width:250px;right:15px;top:48px}
.welcome-food img{width:238px;height:238px;border:0!important;outline:0!important;box-shadow:none;mask-image:radial-gradient(ellipse at center,#000 48%,#0009 65%,transparent 74%);-webkit-mask-image:radial-gradient(ellipse at center,#000 48%,#0009 65%,transparent 74%)}
.welcome-food:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:50%;background:linear-gradient(130deg,#72935725,transparent 48%,#b34c4025);mix-blend-mode:multiply}
.welcome-food span{z-index:2;bottom:3px;right:5px}
:root[data-theme=dark] .welcome-food img{filter:brightness(.8) saturate(.85)}
:root[data-theme=dark] .welcome-food:after{background:linear-gradient(130deg,#4876b940,transparent 45%,#7950b94d);mix-blend-mode:screen}
@media(max-width:760px){.cuisine-list button{font-size:15px;min-width:110px}.welcome-food{width:145px;right:-5px;top:66px}.welcome-food img{width:145px;height:145px}.welcome-caption{margin-right:130px}.welcome-panel .search-section{z-index:3}}

/* Oversized food art with a gradual fade into the welcome panel. */
.welcome-food{width:320px;right:-20px;top:22px;pointer-events:none}
.welcome-food img{width:320px;height:290px;object-fit:cover;mask-image:radial-gradient(ellipse at 57% 47%,#000 26%,#000c 43%,#0006 58%,transparent 74%);-webkit-mask-image:radial-gradient(ellipse at 57% 47%,#000 26%,#000c 43%,#0006 58%,transparent 74%)}
.welcome-food:after{inset:12px;opacity:.7;mask-image:radial-gradient(ellipse,#000 25%,transparent 72%);-webkit-mask-image:radial-gradient(ellipse,#000 25%,transparent 72%)}
.welcome-food span{right:30px;bottom:12px}
@media(max-width:760px){.welcome-food{width:195px;right:-24px;top:48px}.welcome-food img{width:195px;height:180px}.welcome-caption{margin-right:140px}}

/* Global typography: one editable pair for the whole interface. */

:root{--font:'DM Sans','Segoe UI',sans-serif;--heading-font:'Playfair Display','Palatino Linotype',serif}
body,button,input{font-family:var(--font)}
h1,h2,h3,.brand,.intro-note p,.welcome-food em{font-family:var(--heading-font)}
h1,h2,h3{font-weight:500}
.welcome-user h1{line-height:1.2;letter-spacing:-.8px}
.recipe-card h3{font-weight:500;letter-spacing:-.3px}
.cuisine-list button{font-weight:600;letter-spacing:.1px}

.cuisine-directory{margin-bottom:14px;border:1px solid var(--line);border-radius:12px;padding:13px 16px;background:var(--surface)}
.cuisine-directory summary{cursor:pointer;font-size:14px;color:var(--accent);font-weight:600}
.cuisine-directory input{width:100%;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}
.directory-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px;max-height:320px;overflow:auto}
.directory-list button{text-align:left;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:11px;font-size:13px}
.directory-list button:hover{border-color:var(--accent);background:var(--accent-soft)}
.welcome-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.xp-badge{padding:9px 12px;border:1px solid var(--highlight);background:var(--bg);color:var(--accent);border-radius:24px;font-size:12px;font-weight:700;white-space:nowrap}
.xp-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}
.xp-totals>div{display:flex;flex-direction:column;padding:24px;background:var(--accent-soft);border:1px solid var(--line);border-radius:16px}
.xp-totals strong{font-size:40px;color:var(--accent)}.xp-totals span{font-size:12px;color:var(--muted)}
.leaderboard-tabs{display:flex;gap:8px;margin:22px 0}.leaderboard-tabs button{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:9px 15px}.leaderboard-tabs button.active{background:var(--accent);color:var(--bg)}
.collection-view{margin-top:25px;padding:22px;border:1px solid hsl(var(--collection-hue) 25% 76%);border-radius:22px;background:linear-gradient(125deg,hsl(var(--collection-hue) 35% 95%),var(--bg) 65%)}
.collection-view>.section-heading{margin-top:0}.collection-view .eyebrow,.collection-view .card-meta{color:hsl(var(--collection-hue) 35% 30%)}
.collection-view[data-variant="1"] .photo-button{border-radius:28px 6px 28px 6px}.collection-view[data-variant="2"] .photo-button{border-radius:8px}.collection-view[data-variant="2"] h2{font-family:var(--font);font-weight:600}
:root[data-theme=dark] .collection-view{border-color:hsl(var(--collection-hue) 25% 30%);background:linear-gradient(125deg,hsl(var(--collection-hue) 25% 16%),var(--bg) 65%)}
:root[data-theme=dark] .collection-view .eyebrow,:root[data-theme=dark] .collection-view .card-meta{color:hsl(var(--collection-hue) 45% 78%)}
@media(max-width:760px){.welcome-top{flex-wrap:wrap;gap:12px}.welcome-user{max-width:100%}.welcome-controls{margin-left:auto}.welcome-food{top:85px}.welcome-caption{margin-top:10px}.xp-badge{font-size:11px;padding:7px 10px}.collection-view{padding:15px}}
.category-directory-groups{max-height:380px;overflow:auto}.category-directory-groups h3{font-family:var(--font);font-size:13px;color:var(--accent);margin:20px 0 10px}.category-directory-groups .directory-list{max-height:none;overflow:visible}

/* Richer theme accents and more pronounced color surfaces. */
:root[data-theme=light]{--accent:#3e652d;--accent-soft:#dcebc8;--highlight:#956b13;--peach:#f3c1a7;--yellow:#f3d880;--green:#c3dda7;--rose:#edb3ae;--line:#dadfc9;--header-end:#e7bf65;--panel-gold:#a77a21}
:root[data-theme=dark]{--bg:#080c17;--surface:#141d35;--text:#eef2ff;--muted:#b3bedb;--line:#34436b;--accent:#b2c3ff;--accent-soft:#2b3b70;--highlight:#ceb0ff;--peach:#443065;--yellow:#2f4078;--green:#174958;--rose:#572f60;--tag-bg:#182342;--tag-text:#d7dfff;--header-end:#3a245e}
:root[data-theme=light] .welcome-panel{background:linear-gradient(115deg,#94bb72 0%,#b4c77a 45%,#e2b953 100%);border-color:var(--panel-gold);box-shadow:inset 0 0 0 1px #fff5cc66,0 8px 26px #8b6d1f18}
:root[data-theme=light] .journey{background:linear-gradient(120deg,#88af68 0%,#aebe71 48%,#d7ad4d 100%);border-color:var(--panel-gold)}
:root[data-theme=light] .welcome-caption,:root[data-theme=light] .welcome-panel .search-options,:root[data-theme=light] .journey p:not(.eyebrow){color:#34452a}
:root[data-theme=dark] .welcome-panel{background:linear-gradient(115deg,#17394a 0%,#243566 48%,#432962 100%);border-color:#6061a3}
:root[data-theme=dark] .journey{background:linear-gradient(120deg,#183c50 0%,#273a70 50%,#472c69 100%);border-color:#6061a3}
:root[data-theme=dark] .welcome-user h1 em{color:#c9b5ff}
:root[data-theme=dark] .cuisine-list button.active{background:#98b1ff;color:#111a32}
:root[data-theme=dark] .bottom-nav .camera{background:linear-gradient(135deg,#9cbfff,#c49aef);color:#11172c}
.photo-button img{filter:saturate(1.08) contrast(1.03)}
:root[data-theme=dark] .photo-button img{filter:saturate(1.05) brightness(.95) contrast(1.04)}
.collection-view{background:linear-gradient(125deg,hsl(var(--collection-hue) 48% 88%),var(--bg) 75%);border-color:hsl(var(--collection-hue) 38% 65%)}
:root[data-theme=dark] .collection-view{background:linear-gradient(125deg,hsl(var(--collection-hue) 40% 23%),var(--bg) 80%);border-color:hsl(var(--collection-hue) 38% 42%)}

/* Flexible directory tiles keep long cuisine names within their boundaries. */
.directory-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));align-items:stretch}
.directory-list button{min-width:0;white-space:normal;overflow-wrap:anywhere;hyphens:auto;line-height:1.45;height:auto;min-height:44px;padding:12px 14px}
:root[data-theme=dark]{--bg:#141b2b;--surface:#1b263d}

/* Content-sized cuisine/category tiles, rather than fixed-width grid columns. */
.directory-list{display:flex;flex-wrap:wrap;gap:9px;align-items:stretch}
.directory-list button{flex:0 1 auto;width:auto;min-width:0;max-width:100%;height:auto;min-height:44px;padding:11px 17px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.cuisine-list button{min-width:0;width:max-content;flex:0 0 auto;text-align:center;padding:15px 22px}
.region-list button{min-width:0;width:auto;max-width:100%;text-align:center;display:flex;align-items:center;justify-content:center}

/* Cuisine imagery has a dedicated contrast layer; labels remain live text. */
.cuisine-list button.cuisine-photo-tile,.directory-list button.cuisine-photo-tile{background-image:linear-gradient(0deg,#08101bd9,#08101b45),var(--cuisine-photo);background-size:cover;background-position:center;color:#fff;border:1px solid #ffffff35;min-height:84px;padding:18px 24px;text-shadow:0 1px 5px #000;font-weight:600;box-shadow:inset 0 0 0 1px #ffffff12;position:relative;isolation:isolate}
.directory-list button.cuisine-photo-tile{flex:1 1 145px;max-width:230px;min-height:105px;border-radius:12px}
.cuisine-list button.cuisine-photo-tile.active{border:2px solid var(--highlight);box-shadow:inset 0 0 0 2px #fff8}
.cuisine-list button.cuisine-photo-tile:hover,.directory-list button.cuisine-photo-tile:hover{border-color:var(--highlight);background-image:linear-gradient(0deg,#08101bc9,#08101b30),var(--cuisine-photo)}
@media(max-width:760px){.cuisine-list button.cuisine-photo-tile{min-height:78px}.directory-list button.cuisine-photo-tile{flex-basis:125px;max-width:none}}

/* Everywhere: real Apollo 17 Earth photograph, black space to the left. */
.cuisine-list button:first-child{background-color:#020408;background-image:linear-gradient(90deg,#020408 12%,transparent 78%),url('https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cb/The_Blue_Marble_%28remastered%29.jpg/500px-The_Blue_Marble_%28remastered%29.jpg');background-repeat:no-repeat;background-size:100% 100%,112px 112px;background-position:center,right -12px bottom -28px;color:#fff;min-width:170px;min-height:84px;padding:18px 22px;text-align:left;border:1px solid #42556b;text-shadow:0 1px 5px #000}
.cuisine-list button:first-child.active{border:2px solid var(--highlight);background-color:#020408;color:#fff;box-shadow:inset 0 0 0 1px #ffffff30}

/* Chunk 2: ingredient preparation and guided cooking. */
.cooking-dialog{width:760px}.photo-note{font-size:10px!important;color:var(--muted);margin-top:-10px}.recipe-facts{display:flex;flex-wrap:wrap;gap:10px}.recipe-facts span{padding:9px 12px;background:var(--accent-soft);border-radius:8px;font-size:12px}.serving-row{display:flex;align-items:center;gap:15px;margin:20px 0}.serving-row strong{margin-right:auto}.serving-row button{border:1px solid var(--line);background:var(--surface);width:35px;height:35px;border-radius:50%}.ingredient-checklist{display:flex;flex-direction:column;gap:0}.ingredient-checklist label{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.ingredient-checklist strong{margin-left:auto;text-align:right;font-weight:500;white-space:nowrap}.ingredient-checklist input{accent-color:var(--accent);width:17px;height:17px}.ingredient-checklist label:has(input:checked)>span{text-decoration:line-through;color:var(--muted)}.recipe-actions,.step-navigation{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.recipe-actions button,.step-navigation button:not(.primary),.step-timer button,.cooking-stage>button,.resume-cooking button{border:1px solid var(--line);background:var(--bg);padding:11px 14px;border-radius:9px;font-size:12px}button:disabled{opacity:.45;cursor:default}.method-overview{background:var(--surface);padding:14px;border-radius:12px;font-size:13px}.method-overview summary{cursor:pointer}.nutrition-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.nutrition-grid>div{background:var(--surface);padding:13px 8px;border-radius:10px;text-align:center}.nutrition-grid strong{display:block;font-size:20px;color:var(--accent)}.nutrition-grid span{font-size:10px;color:var(--muted)}dialog hr{border:0;border-top:1px solid var(--line);margin:25px 0}.cooking-stage{background:var(--accent-soft);padding:22px;border:1px solid var(--line);border-radius:18px}.cooking-stage progress{width:100%;height:7px;accent-color:var(--accent);margin-bottom:10px}.cooking-stage h3{font-size:24px;font-family:var(--heading-font);margin:10px 0}.step-navigation{justify-content:space-between}.step-list{display:flex;flex-direction:column;gap:5px}.step-list button{text-align:left;padding:10px;background:var(--bg);border:1px solid var(--line);border-radius:6px;font-size:12px}.step-list button[aria-current=step]{border-color:var(--accent)}.step-timer{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.step-timer>span{font-size:25px;font-variant-numeric:tabular-nums;margin-right:10px}.history-panel{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-top:22px}.reference-link{color:var(--accent);text-decoration:underline;font-size:12px}.resume-cooking{background:var(--accent-soft);border:1px solid var(--line);border-radius:12px;margin:15px 0;padding:15px}.resume-cooking[hidden]{display:none}.resume-cooking>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0;font-size:13px}
@media(max-width:500px){.cooking-dialog{padding:20px}.nutrition-grid{grid-template-columns:repeat(3,1fr)}.cooking-stage{padding:16px}.ingredient-checklist label{font-size:12px}.resume-cooking>div{align-items:flex-start}.step-timer button{padding:9px}}

/* Regional labels flow naturally without squeezing or overlapping. */
#regional-browse{width:100%;min-width:0;overflow:hidden}
#regional-browse .region-list{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;overflow:visible;padding:0;margin:0;width:100%;min-width:0}
#regional-browse .region-list button{display:flex;align-items:center;justify-content:center;flex:0 1 auto;width:auto;max-width:100%;min-width:0;min-height:44px;height:auto;margin:0;padding:11px 16px;border-radius:12px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.5;text-align:center;letter-spacing:normal;font-size:14px;box-sizing:border-box}
#regional-browse .eyebrow{line-height:1.6;white-space:normal;overflow-wrap:break-word;margin:0 0 14px}
@media(max-width:760px){#regional-browse{padding:16px 12px}#regional-browse .region-list{flex-wrap:wrap;gap:8px;overflow:visible}#regional-browse .region-list button{flex:0 1 auto;white-space:normal;padding:10px 13px;font-size:13px;line-height:1.5}}

/* Food cards carry the palette through the image and text container. */
:root[data-theme=light]{--card-sage:#e8efd9;--card-peach:#fae5d6;--card-gold:#f7edcb;--card-rose:#f4e0df;--card-edge:#d9dfc8}
:root[data-theme=dark]{--card-sage:#223e49;--card-peach:#35304e;--card-gold:#293b59;--card-rose:#40304d;--card-edge:#45516e}
.recipe-card{background:var(--card-sage);border:1px solid var(--card-edge);border-radius:22px;overflow:hidden;padding-bottom:6px;box-shadow:0 4px 16px #00000008}
.recipe-card:nth-child(4n+2){background:var(--card-peach)}
.recipe-card:nth-child(4n+3){background:var(--card-gold)}
.recipe-card:nth-child(4n+4){background:var(--card-rose)}
.recipe-card .photo-button{border-radius:20px 20px 0 0;box-shadow:none}
.recipe-card .card-meta{margin:16px 16px 0}
.recipe-card .open{padding:0 16px}
.recipe-card .card-footer{margin:0 16px;padding-bottom:10px;border-bottom:0;color:var(--text);opacity:.75}
.recipe-card .arrow{background:var(--bg);border-color:var(--card-edge)}
.collection-view[data-variant="1"] .photo-button,.collection-view[data-variant="2"] .photo-button{border-radius:20px 20px 0 0}
@media(max-width:760px){.recipe-card .card-meta{margin:13px 12px 0}.recipe-card .open{padding:0 12px}.recipe-card .card-footer{margin:0 12px}.recipe-card h3{font-size:18px}}

/* Explicit theme selectors override the cuisine button color rules. */
:root[data-theme=light] .cuisine-list button:first-child,
:root[data-theme=dark] .cuisine-list button:first-child,
:root[data-theme=light] .cuisine-list button:first-child.active,
:root[data-theme=dark] .cuisine-list button:first-child.active{background-color:#020408;background-image:linear-gradient(90deg,#020408 12%,transparent 78%),url('https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cb/The_Blue_Marble_%28remastered%29.jpg/500px-The_Blue_Marble_%28remastered%29.jpg');background-repeat:no-repeat;background-size:100% 100%,112px 112px;background-position:center,right -12px bottom -28px;color:#fff}

/* Chunk 3: local profile and recipe studio. */
.profile-dialog,.editor-dialog{width:780px}.creator-form{display:flex;flex-direction:column;gap:15px;margin:22px 0}.form-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.form-field input,.form-field select,.form-field textarea{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:12px;font:14px var(--font);font-weight:400}.form-field textarea{min-height:90px;resize:vertical}.creator-form>button,.ingredient-edit>button,.step-edit>button,.draft-list button,.profile-dialog>button:not(.close){padding:10px 14px;background:var(--accent-soft);color:var(--text);border:1px solid var(--line);border-radius:9px;font-size:12px}.creator-form .primary{background:var(--accent);color:var(--bg)}.editable-rows{display:flex;flex-direction:column;gap:12px}.ingredient-edit{display:grid;grid-template-columns:2fr 1fr 1fr;align-items:end;gap:10px;background:var(--surface);border:1px solid var(--line);padding:14px;border-radius:12px}.ingredient-edit>button{grid-column:1/-1;justify-self:end}.step-edit{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}.step-edit>button{align-self:flex-end}.upload-preview{max-height:230px;object-fit:cover;border-radius:12px}.form-status{color:var(--accent);font-size:13px;line-height:1.6}.draft-list{display:flex;flex-direction:column;gap:8px;margin:20px 0}.draft-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;background:var(--surface);border-radius:10px;font-size:13px}.welcome-user .eyebrow{overflow-wrap:anywhere}.card-footer{overflow-wrap:anywhere}
@media(max-width:500px){.ingredient-edit{grid-template-columns:1fr 1fr}.ingredient-edit>.form-field:first-child{grid-column:1/-1}}

/* Favorites stay white in both palettes; coral means saved. */
.recipe-card .save,.recipe-actions .recipe-favorite{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:0;border:1px solid #e6e7eb;border-radius:50%;background:#fff;color:#9499a2;font-size:25px;line-height:1;box-shadow:0 3px 12px #0002;transition:color .2s,transform .2s}
.recipe-card .save[aria-pressed="true"],.recipe-actions .recipe-favorite[aria-pressed="true"]{background:#fff;color:#ed6b70}
.recipe-card .save:hover,.recipe-actions .recipe-favorite:hover{background:#fff;transform:scale(1.08)}
.xp-flight{position:fixed;inset:0;pointer-events:none;z-index:10000;overflow:hidden}
.xp-token{position:absolute;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#fff0ad,#edb541);color:#835517;border:2px solid #ffe8a1;box-shadow:0 0 18px #edbd6577;font-size:23px;opacity:0}
.xp-reward{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;padding:10px 16px;border-radius:30px;background:#ffe6a3;color:#684518;font-weight:800;box-shadow:0 4px 28px #d7a44266}
[data-theme="dark"] .xp-token{background:linear-gradient(135deg,#d9c7ff,#9d8bea);border-color:#ded5ff;color:#413577;box-shadow:0 0 20px #b09aff88}
[data-theme="dark"] .xp-reward{background:#c8bbff;color:#302557}
.xp-earned{animation:xp-counter-pop 1.4s ease}
@keyframes xp-counter-pop{60%{transform:scale(1.13);box-shadow:0 0 20px #bca15e88}}
@media(prefers-reduced-motion:reduce){.xp-earned{animation:none}}

/* An unmistakable current destination, in both themes. */
.bottom-nav button:not(.camera){position:relative;padding:8px 10px;border-radius:14px;transition:background .2s,color .2s,box-shadow .2s}
.bottom-nav button.active:not(.camera){background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--highlight)}
.bottom-nav button.active span{font-weight:700}
.bottom-nav button.active:not(.camera)::after{content:'';width:16px;height:3px;border-radius:3px;background:var(--accent);position:absolute;bottom:2px;left:50%;transform:translateX(-50%)}
.bottom-nav button:focus-visible{outline:2px solid var(--highlight);outline-offset:3px}
@media(max-width:420px){.bottom-nav button:not(.camera){padding:8px 5px;min-width:48px}}

.resume-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.resume-cooking .dismiss-resume{width:36px;height:36px;padding:0;border-radius:50%;font-size:23px;color:var(--muted)}.resume-cooking>div>span{min-width:0;overflow-wrap:anywhere}

.passport-dialog{width:920px}.passport-stats{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.passport-stats strong{background:var(--accent-soft);border:1px solid var(--highlight);padding:12px 16px;border-radius:16px;color:var(--accent)}
.passport-challenges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.passport-challenge{padding:18px;background:var(--accent-soft);border:1px solid var(--line);border-radius:16px}.passport-challenge h4{margin:8px 0;font-size:19px}.passport-challenge p{font-size:13px}.passport-challenge progress{width:100%;accent-color:var(--accent)}.passport-challenge[data-state=earned]{border-color:var(--highlight);box-shadow:inset 0 0 0 1px var(--highlight)}.passport-challenge[data-state=locked]{background:var(--surface)}
.passport-dialog .section-heading{flex-wrap:wrap;gap:12px}.passport-dialog input{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px;max-width:100%;min-width:0}
.passport-destinations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.passport-destination{display:flex;flex-direction:column;align-items:center;gap:7px;padding:18px 10px;background:var(--accent-soft);border:1px solid var(--line);border-radius:18px;color:var(--text);text-align:center;min-width:0}.passport-destination img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--highlight)}.passport-destination strong{overflow-wrap:anywhere;font-size:16px}.passport-destination span{color:var(--accent);font-size:12px}.passport-destination small{color:var(--muted)}.passport-destination:hover{border-color:var(--highlight)}
@media(max-width:560px){.passport-dialog{padding:20px}.passport-challenges{grid-template-columns:1fr}.passport-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}.passport-stats strong{font-size:12px;padding:10px}}

.map-controls{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.map-controls button,.map-stop-preview button{background:var(--accent-soft);color:var(--accent);border:1px solid var(--highlight);padding:10px 14px;border-radius:12px}
.food-map-viewport{height:420px;overflow:auto;border:1px solid var(--highlight);border-radius:22px;background:linear-gradient(140deg,#cee7dd,#e0ecf2);cursor:grab;touch-action:none}.food-map-canvas{position:relative;width:1100px;height:550px}.food-map-background{position:absolute;inset:0;width:100%;height:100%;opacity:.35;pointer-events:none}.map-marker{position:absolute;width:0;height:0}.map-city-dot{position:absolute;width:7px;height:7px;background:var(--accent);border-radius:50%;transform:translate(-50%,-50%)}.food-map-pin{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;background:none;border:0;padding:0;gap:4px;width:84px;color:#244534}.food-map-pin img{width:50px;height:50px;object-fit:cover;border-radius:50%;border:3px solid #e5b962;box-shadow:0 4px 16px #0003}.food-map-pin span{background:#fff8eb;padding:3px 7px;border-radius:12px;font-size:11px;white-space:nowrap}.food-map-pin[data-locked=true] img{filter:grayscale(1);border-color:#87949e}.food-map-pin:focus-visible{outline:2px solid var(--accent);border-radius:12px}.map-stop-preview{margin:15px 0;padding:18px;background:var(--accent-soft);border:1px solid var(--line);border-radius:16px}.map-stop-preview h3{margin:8px 0}
:root[data-theme=dark] .food-map-viewport{background:linear-gradient(140deg,#23364d,#302a50)}:root[data-theme=dark] .food-map-background{filter:invert(1);opacity:.3}:root[data-theme=dark] .food-map-pin span{background:#343557;color:#eee5ff}:root[data-theme=dark] .food-map-pin img{border-color:#b5a0ef}
@media(max-width:560px){.food-map-viewport{height:360px}}

.planner-entry{margin-left:20px}.planner-dialog{width:1050px}.planner-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0;flex-wrap:wrap}.planner-navigation button,.planner-meal-actions button{padding:9px 12px;border:1px solid var(--line);background:var(--bg);color:var(--accent);border-radius:10px}.planner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.planner-day{padding:16px;background:var(--accent-soft);border:1px solid var(--highlight);border-radius:20px;min-width:0}.planner-day h3{margin:0 0 12px;font-size:20px}.planner-meal{display:flex;flex-direction:column;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.planner-meal>strong{color:var(--accent);font-size:13px}.planner-meal label{display:flex;flex-direction:column;gap:5px;font-size:12px}.planner-meal select,.planner-meal input{width:100%;min-width:0;padding:9px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:9px;font:inherit}.planner-meal-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:750px){.planner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.planner-grid{grid-template-columns:1fr}.planner-dialog{padding:20px}.planner-navigation strong{order:-1;width:100%}}

.profile-summary{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.profile-summary>*{padding:10px 13px;background:var(--accent-soft);border:1px solid var(--highlight);border-radius:14px;color:var(--accent)}.profile-photo-preview{width:90px;height:90px;border-radius:50%;object-fit:cover}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}

body>main[hidden]{display:none!important}.destination-page{min-height:100vh;padding-bottom:120px}.destination-page .full-page-panel{display:block;position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);overflow:visible}.destination-page .full-page-panel>.close{display:none}.bottom-nav{z-index:20}.cookbook-page>h1,.destination-page h2{margin-top:10px}

.profile-cover{height:230px;border-radius:24px;overflow:hidden;position:relative;background:linear-gradient(120deg,var(--accent-soft),var(--highlight))}.profile-cover>img{width:100%;height:100%;object-fit:cover}.profile-image-control{display:inline-flex;position:relative;overflow:hidden;background:var(--bg);color:var(--accent);padding:8px 12px;border:1px solid var(--highlight);border-radius:20px;font-size:12px;cursor:pointer}.profile-image-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.profile-image-control:focus-within{outline:2px solid var(--accent)}.profile-cover>.profile-image-control{position:absolute;right:16px;bottom:16px}.profile-identity{display:flex;align-items:center;gap:22px;padding:0 20px;margin-top:-32px;position:relative}.profile-large-avatar{width:125px;min-width:125px;height:125px;border-radius:50%;background:var(--accent-soft);border:5px solid var(--bg);display:flex;align-items:center;justify-content:center;position:relative}.profile-large-avatar>img{width:100%;height:100%;border-radius:50%;object-fit:cover}.profile-large-avatar>span{font-size:42px;color:var(--accent)}.profile-large-avatar>.profile-image-control{position:absolute;bottom:-13px;white-space:nowrap}.profile-identity h1{font-size:32px;margin:42px 0 5px}.profile-username{color:var(--accent);margin:0;font-weight:600}.profile-edit{background:var(--surface);padding:16px;border-radius:14px;margin:20px 0}.profile-edit summary{cursor:pointer;font-weight:600}.profile-edit form{margin-top:18px}.profile-posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.profile-post-card{text-align:left;padding:0;overflow:hidden;background:var(--accent-soft);color:var(--text);border:1px solid var(--line);border-radius:20px;min-width:0}.profile-post-card>img{width:100%;height:220px;object-fit:cover}.profile-post-card>div{padding:18px}.profile-post-card h3{margin:8px 0;overflow-wrap:anywhere}.profile-post-card small,.profile-post-card span{color:var(--accent);font-size:12px}.profile-post-placeholder{height:220px;display:grid;place-items:center;background:var(--surface)}
@media(max-width:500px){.profile-cover{height:170px}.profile-identity{gap:15px;padding:0 10px}.profile-large-avatar{width:95px;min-width:95px;height:95px}.profile-identity h1{font-size:25px;overflow-wrap:anywhere}.profile-posts{grid-template-columns:1fr}}

.profile-posts-empty{grid-column:1/-1;text-align:center;padding:35px 22px;border:1px dashed var(--highlight);border-radius:22px;background:var(--accent-soft)}.profile-posts-empty h3{margin:12px 0 8px}.profile-posts-empty p{color:var(--muted);font-size:14px}.empty-post-icon{display:inline-grid;place-items:center;width:50px;height:50px;border-radius:50%;background:var(--bg);color:var(--accent);font-size:28px}.profile-posts-empty button{padding:11px 18px;border:1px solid var(--highlight);border-radius:14px;background:var(--bg);color:var(--accent);font-weight:600}

/* Destination palettes are scoped to the active page; Home keeps its original tokens. */
body[data-page=explore]{--bg:#f0f8fa;--surface:#e4f1f4;--text:#173b47;--muted:#506b76;--line:#c3dfe5;--accent:#166b80;--accent-soft:#d9edf0;--highlight:#67a8b5}
body[data-page=cookbook]{--bg:#fff7f1;--surface:#fbe9df;--text:#49302d;--muted:#795b56;--line:#ebcec4;--accent:#aa4e55;--accent-soft:#f6dfd8;--highlight:#d49a72}
body[data-page=post]{--bg:#f8f4fc;--surface:#eee5f6;--text:#3d2b50;--muted:#726080;--line:#ddd0ea;--accent:#7a4b98;--accent-soft:#e9daf2;--highlight:#ae89c7}
:root[data-theme=dark] body[data-page=explore]{--bg:#152936;--surface:#1d3745;--text:#e6f6fa;--muted:#a8c6d1;--line:#345666;--accent:#83d7e8;--accent-soft:#244757;--highlight:#569fad}
:root[data-theme=dark] body[data-page=cookbook]{--bg:#2b202b;--surface:#3b2b38;--text:#ffedf0;--muted:#d2b6c2;--line:#59404f;--accent:#f0a2b3;--accent-soft:#4a3041;--highlight:#be859a}
:root[data-theme=dark] body[data-page=post]{--bg:#241e38;--surface:#332946;--text:#f2eafa;--muted:#c5b4d7;--line:#534164;--accent:#d1a6ed;--accent-soft:#423052;--highlight:#9e77be}
body[data-page=explore],body[data-page=cookbook],body[data-page=post]{background:var(--bg);color:var(--text)}
body[data-page=explore] .food-map-viewport{background:linear-gradient(135deg,#c9e8ef,#def0ea)}
:root[data-theme=dark] body[data-page=explore] .food-map-viewport{background:linear-gradient(135deg,#203e55,#275251)}
body[data-page=cookbook] .recipe-card{background:var(--accent-soft);border-color:var(--line)}
body[data-page=cookbook] .recipe-card:nth-child(2n){background:var(--surface)}
body[data-page=post] .profile-cover{background:linear-gradient(120deg,var(--accent-soft),var(--highlight),var(--accent))}
body[data-page] .bottom-nav{background:var(--bg);border-color:var(--line)}

/* Mixed destination palettes: white / black canvas with individually tinted surfaces. */
body[data-page=explore],body[data-page=cookbook],body[data-page=post]{--bg:#fff;--surface:#faf7f2;--text:#292d33;--muted:#686c73;--line:#e4ded4;--highlight:#bd9c61;background:#fff}
:root[data-theme=dark] body[data-page=explore],:root[data-theme=dark] body[data-page=cookbook],:root[data-theme=dark] body[data-page=post]{--bg:#000;--surface:#17171c;--text:#f5f1ea;--muted:#b4afb9;--line:#353139;--highlight:#bca574;background:#000}
.destination-page{background-image:radial-gradient(var(--line) .55px,transparent .55px);background-size:22px 22px}
.destination-page .section-heading h3,.cookbook-page>h1{letter-spacing:-.035em}
body[data-page=explore]{--accent:#276b70;--accent-soft:#e2eeeb}
body[data-page=cookbook]{--accent:#a5574c;--accent-soft:#f6e6dc}
body[data-page=post]{--accent:#755575;--accent-soft:#eee5f0}
body[data-page=explore] .passport-stats strong:nth-child(1){background:#e4eee3;color:#42634b}body[data-page=explore] .passport-stats strong:nth-child(2){background:#eee4f3;color:#735685}body[data-page=explore] .passport-stats strong:nth-child(3){background:#f8edce;color:#80652b}
body[data-page=explore] .passport-challenge:nth-child(4n+1),body[data-page=explore] .passport-destination:nth-child(4n+1){background:#e2eeeb}
body[data-page=explore] .passport-challenge:nth-child(4n+2),body[data-page=explore] .passport-destination:nth-child(4n+2){background:#f6e4db}
body[data-page=explore] .passport-challenge:nth-child(4n+3),body[data-page=explore] .passport-destination:nth-child(4n+3){background:#ece4f3}
body[data-page=explore] .passport-challenge:nth-child(4n),body[data-page=explore] .passport-destination:nth-child(4n){background:#f4ebd4}
body[data-page=explore] .food-map-viewport{background:radial-gradient(ellipse at 15% 20%,#e8dbf1,transparent 50%),radial-gradient(ellipse at 80% 80%,#f3e6c4,transparent 55%),#d9eae6}
body[data-page=explore] .map-stop-preview{background:linear-gradient(110deg,#e4eeeb,#f7ead9);border-color:#bda776}
body[data-page=cookbook] .recipe-card:nth-child(4n+1){background:#e7eddf}body[data-page=cookbook] .recipe-card:nth-child(4n+2){background:#f7e4db}body[data-page=cookbook] .recipe-card:nth-child(4n+3){background:#ece6f2}body[data-page=cookbook] .recipe-card:nth-child(4n){background:#f5ecd4}
body[data-page=cookbook] .cookbook-page>h1{border-bottom:1px solid var(--highlight);padding-bottom:20px}
body[data-page=post] .profile-cover{background:radial-gradient(ellipse at 12% 75%,#ceddd0,transparent 55%),radial-gradient(ellipse at 85% 20%,#e3c8d7,transparent 55%),linear-gradient(120deg,#eadbb8,#e5dded)}
body[data-page=post] .profile-summary>:nth-child(1){background:#e2eddf;color:#4b6644}body[data-page=post] .profile-summary>:nth-child(2){background:#f6e9cb;color:#80632b}body[data-page=post] .profile-summary>:nth-child(3){background:#e8e1f1;color:#70577f}
body[data-page=post] .profile-post-card:nth-child(3n+1){background:#f5e5db}body[data-page=post] .profile-post-card:nth-child(3n+2){background:#e3ece6}body[data-page=post] .profile-post-card:nth-child(3n){background:#ece3f1}
body[data-page=post] .profile-posts-empty{background:radial-gradient(ellipse at left top,#e4eddf,transparent 60%),radial-gradient(ellipse at right bottom,#eee1ec,transparent 60%),#faf1de}
:root[data-theme=dark] body[data-page=explore]{--accent:#9fd5ce;--accent-soft:#172c2b}:root[data-theme=dark] body[data-page=cookbook]{--accent:#efb6a5;--accent-soft:#30221f}:root[data-theme=dark] body[data-page=post]{--accent:#d1b4dd;--accent-soft:#2c2332}
:root[data-theme=dark] body[data-page=explore] .passport-challenge:nth-child(4n+1),:root[data-theme=dark] body[data-page=explore] .passport-destination:nth-child(4n+1){background:#172c2b}
:root[data-theme=dark] body[data-page=explore] .passport-challenge:nth-child(4n+2),:root[data-theme=dark] body[data-page=explore] .passport-destination:nth-child(4n+2){background:#322320}
:root[data-theme=dark] body[data-page=explore] .passport-challenge:nth-child(4n+3),:root[data-theme=dark] body[data-page=explore] .passport-destination:nth-child(4n+3){background:#28243a}
:root[data-theme=dark] body[data-page=explore] .passport-challenge:nth-child(4n),:root[data-theme=dark] body[data-page=explore] .passport-destination:nth-child(4n){background:#302b1e}
:root[data-theme=dark] body[data-page=explore] .food-map-viewport{background:radial-gradient(ellipse at 10% 30%,#28223e,transparent 60%),radial-gradient(ellipse at 80% 80%,#193936,transparent 55%),#101b26}
:root[data-theme=dark] body[data-page=explore] .map-stop-preview{background:linear-gradient(110deg,#172c2b,#30283a)}
:root[data-theme=dark] body[data-page=cookbook] .recipe-card:nth-child(4n+1){background:#1f3028}:root[data-theme=dark] body[data-page=cookbook] .recipe-card:nth-child(4n+2){background:#362623}:root[data-theme=dark] body[data-page=cookbook] .recipe-card:nth-child(4n+3){background:#29253a}:root[data-theme=dark] body[data-page=cookbook] .recipe-card:nth-child(4n){background:#302d20}
:root[data-theme=dark] body[data-page=post] .profile-cover{background:radial-gradient(ellipse at 10% 80%,#254239,transparent 60%),radial-gradient(ellipse at 85% 20%,#573b50,transparent 60%),linear-gradient(120deg,#3c3423,#302741)}
:root[data-theme=dark] body[data-page=post] .profile-post-card:nth-child(3n+1){background:#342724}:root[data-theme=dark] body[data-page=post] .profile-post-card:nth-child(3n+2){background:#21322c}:root[data-theme=dark] body[data-page=post] .profile-post-card:nth-child(3n){background:#30263c}
:root[data-theme=dark] body[data-page=post] .profile-posts-empty{background:radial-gradient(ellipse at left top,#23352c,transparent 60%),radial-gradient(ellipse at right bottom,#37283b,transparent 60%),#252219}
:root[data-theme=dark] body[data-page=explore] .passport-stats strong:nth-child(1),:root[data-theme=dark] body[data-page=post] .profile-summary>:nth-child(1){background:#20342a;color:#b4d1b4}
:root[data-theme=dark] body[data-page=explore] .passport-stats strong:nth-child(2),:root[data-theme=dark] body[data-page=post] .profile-summary>:nth-child(3){background:#30263c;color:#d4bce5}
:root[data-theme=dark] body[data-page=explore] .passport-stats strong:nth-child(3),:root[data-theme=dark] body[data-page=post] .profile-summary>:nth-child(2){background:#342e1e;color:#e3ca8e}

body[data-page=community]{--bg:#fff;--surface:#f9f4ed;--text:#303236;--muted:#6a6870;--line:#e4d9cd;--accent:#876052;--accent-soft:#f0e3d5;--highlight:#bea373;background:#fff}:root[data-theme=dark] body[data-page=community]{--bg:#000;--surface:#19191d;--text:#f4eee7;--muted:#b7afbd;--line:#373038;--accent:#dfb4a0;--accent-soft:#302529;--highlight:#bba27b;background:#000}
.feed-filters{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.feed-filters button,.feed-filters input{padding:10px 14px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text)}.feed-filters button.active{background:var(--accent-soft);border-color:var(--highlight)}.feed-filters input{flex:1;min-width:170px}.community-feed-list{max-width:720px;margin:auto;display:flex;flex-direction:column;gap:26px}.community-post{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:var(--surface)}.community-post:nth-child(3n+2){background:var(--accent-soft)}.feed-author{display:flex;gap:12px;align-items:center;padding:16px}.feed-author small{margin-left:auto;color:var(--muted);font-size:11px}.feed-avatar{width:40px;height:40px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;overflow:hidden}.feed-avatar img{width:100%;height:100%;object-fit:cover}.community-post>img,.community-post>video{display:block;width:100%;max-height:520px;object-fit:contain;background:var(--bg)}.community-post>h2,.community-post>p,.community-post>.recipe-actions{margin:16px 20px}.community-post>h2{font-size:24px}.community-post>p{white-space:pre-wrap;overflow-wrap:anywhere}.community-post .recipe-actions button,.community-feed-page>.recipe-actions button{padding:10px 14px;border-radius:12px;border:1px solid var(--highlight);background:var(--bg);color:var(--accent)}.bottom-nav{width:520px}.bottom-nav button:not(.camera){min-width:48px}.feed-composer{width:620px}
@media(max-width:420px){.bottom-nav{padding:7px 4px}.bottom-nav button:not(.camera){min-width:40px;padding:8px 3px}.bottom-nav .camera{width:42px;min-width:42px;height:42px}.bottom-nav span{font-size:8px}}

.pantry-dialog{width:800px}.pantry-chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.pantry-chips button{padding:9px 13px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--highlight);border-radius:20px}.pantry-results{display:flex;flex-direction:column;gap:14px}.pantry-result{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--accent-soft)}.pantry-result:nth-child(2n){background:var(--surface)}.pantry-result h3{margin:0}.pantry-result .recipe-actions button{padding:10px;border-radius:10px;border:1px solid var(--highlight);background:var(--bg);color:var(--accent)}

.account-panel{padding:18px;margin-bottom:22px;background:var(--surface);border:1px solid var(--highlight);border-radius:18px}.account-panel h3{margin:0 0 10px}.account-panel button,.account-dialog>button:not(.close){padding:10px 14px;margin:5px 8px 5px 0;background:var(--accent-soft);color:var(--accent);border:1px solid var(--line);border-radius:12px}.account-panel p{overflow-wrap:anywhere}.account-dialog{width:540px}

body[data-page=camera]{--bg:#fff;--surface:#f7f5ef;--text:#283333;--muted:#667170;--line:#dedfd3;--accent:#456d68;--accent-soft:#e4eee8;--highlight:#ba9a63;background:#fff}:root[data-theme=dark] body[data-page=camera]{--bg:#000;--surface:#171b1c;--text:#f1f4ee;--muted:#aebdb6;--line:#333c39;--accent:#a6d4c4;--accent-soft:#23372f;--highlight:#bda67a;background:#000}
.scan-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;margin:28px 0}.scan-photo-frame{min-height:360px;border:1px solid var(--highlight);border-radius:26px;overflow:hidden;background:radial-gradient(ellipse at 10% 20%,#e0ece0,transparent 60%),radial-gradient(ellipse at 90% 90%,#eee0ef,transparent 60%),#f7ebd5;display:grid;place-items:center}.scan-photo-frame>img{width:100%;max-height:520px;object-fit:contain}.scan-photo-empty{text-align:center;padding:30px}.scan-photo-empty h2{font-size:27px}.scan-symbol{display:inline-grid;place-items:center;width:90px;height:90px;border:1px solid var(--highlight);border-radius:50%;font-size:55px;color:var(--accent)}.scan-controls{display:flex;flex-direction:column;gap:14px}.scan-controls h2{margin:0}.scan-picker{position:relative;overflow:hidden;padding:15px 18px;border:1px solid var(--highlight);border-radius:16px;background:var(--accent-soft);color:var(--accent);font-weight:600;cursor:pointer}.scan-picker:nth-of-type(2){background:var(--surface)}.scan-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.scan-picker:focus-within{outline:2px solid var(--accent)}.scan-controls textarea{width:100%;min-height:90px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit}.scan-controls>button:not(.primary){border:1px solid var(--line);padding:10px;border-radius:12px;background:var(--surface);color:var(--accent)}.scan-result{padding:24px;border:1px solid var(--highlight);border-radius:24px;background:var(--surface)}.scan-result h2{margin:10px 0}.scan-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.scan-metrics>div{padding:16px;text-align:center;border-radius:16px;background:var(--accent-soft)}.scan-metrics>div:nth-child(2n){background:var(--bg)}.scan-metrics strong{display:block;font-size:28px}.scan-metrics span{font-size:12px;color:var(--muted)}:root[data-theme=dark] .scan-photo-frame{background:radial-gradient(ellipse at left top,#254036,transparent 60%),radial-gradient(ellipse at right bottom,#372842,transparent 60%),#292518}.bottom-nav .camera{gap:0}.bottom-nav .camera span{font-size:8px}.bottom-nav .camera.active{outline:2px solid var(--highlight);outline-offset:3px}
@media(max-width:650px){.scan-layout{grid-template-columns:1fr}.scan-photo-frame{min-height:260px}.scan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

body[data-page=cuisine]{background:#fff;--bg:#fff;--surface:#f6f3eb;--text:#30342e;--muted:#6b7167;--line:#deddd1;--accent:#567052;--accent-soft:#e9eddf;--highlight:#baa06b}:root[data-theme=dark] body[data-page=cuisine]{background:#000;--bg:#000;--surface:#191e1b;--text:#eeeedd;--muted:#b6b8a9;--line:#373b32;--accent:#b6ceaa;--accent-soft:#263226;--highlight:#bba579}.cuisine-page-hero{position:relative;min-height:280px;display:flex;align-items:flex-end;padding:28px;border-radius:24px;overflow:hidden;margin:18px 0;background:var(--accent-soft)}.cuisine-page-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cuisine-page-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#101b20e6,#101b201a)}.cuisine-page-hero>div{position:relative;z-index:1;max-width:85%;color:#fff9e9}.cuisine-page-hero h1{font-size:40px;overflow-wrap:anywhere;margin:10px 0}.cuisine-page-hero .eyebrow{color:#e7ca8e}.cuisine-page-filters{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.cuisine-page-filters button,.cuisine-page-filters select,.cuisine-page>div>input{padding:12px 16px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:14px;font:inherit;max-width:100%}.cuisine-page-filters button{white-space:normal;overflow-wrap:anywhere}.cuisine-page-filters .active{background:var(--accent-soft);border-color:var(--highlight);color:var(--accent)}.cuisine-page>div>input{width:100%;margin:10px 0}.cuisine-page[data-style=coast]{--accent-soft:#dbecee;--accent:#266b78}.cuisine-page[data-style=spice],.cuisine-page[data-style=amber]{--accent-soft:#f5e5ca;--accent:#9b6136}.cuisine-page[data-style=lavender],.cuisine-page[data-style=ink]{--accent-soft:#e9e3f1;--accent:#6e568c}.cuisine-page[data-style=berry]{--accent-soft:#f4dfe7;--accent:#9d4b66}:root[data-theme=dark] .cuisine-page[data-style=coast]{--accent-soft:#21373f;--accent:#a1d5df}:root[data-theme=dark] .cuisine-page[data-style=spice],:root[data-theme=dark] .cuisine-page[data-style=amber]{--accent-soft:#392e20;--accent:#e4bd83}:root[data-theme=dark] .cuisine-page[data-style=lavender],:root[data-theme=dark] .cuisine-page[data-style=ink]{--accent-soft:#30273f;--accent:#cdb6e8}:root[data-theme=dark] .cuisine-page[data-style=berry]{--accent-soft:#3b2732;--accent:#e5adc5}.cuisine-page #recipe-section{margin-top:28px}
@media(max-width:500px){.cuisine-page-hero{min-height:230px;padding:20px}.cuisine-page-hero h1{font-size:30px}}

.feed-interactions{padding:0 20px 20px}.feed-social-tools{display:flex;align-items:center;gap:10px;margin:14px 0}.feed-social-tools>button:last-child{margin-left:auto;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--muted)}.feed-like{width:40px;height:40px;border-radius:50%;background:#fff;color:#9499a2;border:1px solid #e6e7eb;font-size:24px;display:grid;place-items:center}.feed-like[aria-pressed=true]{color:#ed6b70}.feed-social-tools span,.feed-interactions small{font-size:12px;color:var(--muted)}.feed-comments{border-top:1px solid var(--line);padding:14px 0}.feed-comments summary{cursor:pointer;font-weight:600}.feed-comment{position:relative;background:var(--bg);border-radius:12px;padding:12px 38px 12px 12px;margin:10px 0}.feed-comment strong{font-size:12px;color:var(--accent)}.feed-comment p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.feed-comment>button{position:absolute;right:8px;top:8px;background:none;border:0;color:var(--muted);font-size:20px}.feed-comment-form{display:flex;gap:10px;align-items:flex-start;margin-top:14px}.feed-comment-form textarea{flex:1;min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit}.feed-comment-form button{padding:10px;border-radius:12px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--highlight)}

.creator-features{margin:40px 0}.creator-features .section-heading>button{padding:10px 14px;background:var(--accent-soft);border:1px solid var(--highlight);border-radius:14px;color:var(--accent)}.creator-feature-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.creator-feature-empty{position:relative;text-align:center;padding:24px 12px;border:1px solid var(--line);border-radius:20px;background:var(--accent-soft);min-width:0}.creator-feature-empty:nth-child(2n){background:var(--surface)}.feature-slot-number{position:absolute;left:12px;top:10px;font-size:12px;color:var(--muted)}.feature-slot-symbol{display:inline-grid;place-items:center;width:50px;height:50px;border-radius:50%;border:1px solid var(--highlight);color:var(--highlight);font-size:28px;background:var(--bg)}.creator-feature-empty h3{font-size:16px;margin:16px 0 8px}.creator-feature-empty p{font-size:12px;color:var(--muted)}.ranking-empty{text-align:center;padding:24px;border:1px dashed var(--highlight);border-radius:20px;background:var(--surface);margin:20px 0}.ranking-empty h4{font-size:19px}.ranking-empty p,.ranking-rules p{font-size:13px;color:var(--muted)}.ranking-rules{padding:14px;background:var(--accent-soft);border-radius:12px}.ranking-rules summary{cursor:pointer}.ranking-local{padding:18px;border:1px solid var(--line);border-radius:16px}.ranking-local>strong{font-size:23px;color:var(--accent)}.ranking-recipe{display:flex;gap:12px;align-items:center;margin:14px 0;flex-wrap:wrap}.ranking-recipe img{width:55px;height:55px;object-fit:cover;border-radius:12px}.ranking-recipe>div{flex:1;min-width:130px}.ranking-recipe p{font-size:12px;color:var(--muted)}.ranking-recipe button{padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft);color:var(--accent)}
@media(max-width:800px){.creator-feature-slots{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:500px){.creator-feature-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.creator-features .section-heading{flex-wrap:wrap;gap:12px}}

.design-dialog{width:700px}.design-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.design-colors input{width:100%;height:45px;padding:3px}.design-dialog select{padding:12px;background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:12px;font:inherit}.design-dialog .recipe-actions button{padding:11px;border:1px solid var(--highlight);background:var(--accent-soft);color:var(--accent);border-radius:12px}footer>.text-button{margin-left:15px}

footer button[hidden]{display:none!important}

.cooking-voice-controls{padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:16px 0}.voice-actions{display:flex;flex-wrap:wrap;gap:8px}.voice-actions button{padding:10px 13px;border:1px solid var(--highlight);border-radius:10px;background:var(--bg);color:var(--accent)}.cooking-voice-controls label{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:12px}.cooking-voice-controls select{padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}.voice-status{font-size:12px;color:var(--muted);margin-bottom:0}
/* Regional collections: rich multi-colour surfaces; country imagery is unchanged. */
:is(.regional-grid,#regional-browse .region-list){display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
:is(.regional-grid,#regional-browse .region-list) .regional-tile{--tile-a:#c6ddb0;--tile-b:#f0d897;--tile-ink:#293a24;--tile-border:#a5ad69;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 1 auto;width:max-content;min-width:min(160px,100%);max-width:100%;min-height:112px;height:auto;padding:14px 18px;gap:8px;overflow:hidden;border:1px solid var(--tile-border);border-radius:18px;background:radial-gradient(circle at 95% 0%,#ffffff50,transparent 48%),linear-gradient(135deg,var(--tile-a),var(--tile-b));color:var(--tile-ink);box-shadow:0 5px 16px #5e471410;text-align:center;white-space:normal;line-height:1.4;letter-spacing:normal;box-sizing:border-box;transition:transform .18s,box-shadow .18s}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="1"]{--tile-a:#f0ba97;--tile-b:#e9c8a5;--tile-ink:#593323;--tile-border:#bf9365}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="2"]{--tile-a:#b2dbda;--tile-b:#c4d3ee;--tile-ink:#244653;--tile-border:#76a8ad}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="3"]{--tile-a:#d3b7df;--tile-b:#e8b9c7;--tile-ink:#543153;--tile-border:#b092be}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="4"]{--tile-a:#efd18b;--tile-b:#e0bf9a;--tile-ink:#584024;--tile-border:#bc9858}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="5"]{--tile-a:#e6aeb1;--tile-b:#f1c2a3;--tile-ink:#5c2f35;--tile-border:#c58e8c}
:is(.regional-grid,#regional-browse .region-list) .regional-tile>img{width:100%;min-width:124px;height:94px;object-fit:cover;border-radius:10px;display:block}
:is(.regional-grid,#regional-browse .region-list) .regional-label{font-size:15px;font-weight:650;white-space:normal;overflow-wrap:anywhere;text-align:center;max-width:260px}
:is(.regional-grid,#regional-browse .region-list) .regional-tile>small{font-size:11px;max-width:240px;line-height:1.4;color:inherit;opacity:.85;overflow-wrap:anywhere}
:is(.regional-grid,#regional-browse .region-list) .regional-tile.active{outline:2px solid var(--highlight);outline-offset:2px;box-shadow:0 6px 20px #76542325}
:is(.regional-grid,#regional-browse .region-list) .regional-tile:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(hover:hover){:is(.regional-grid,#regional-browse .region-list) .regional-tile:hover{transform:translateY(-2px);box-shadow:0 8px 22px #5e471425}}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile{--tile-a:#244b48;--tile-b:#364665;--tile-ink:#e1f0da;--tile-border:#5b927c;background:radial-gradient(circle at 95% 0%,#ffffff12,transparent 48%),linear-gradient(135deg,var(--tile-a),var(--tile-b));box-shadow:0 5px 20px #0004}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="1"]{--tile-a:#633c46;--tile-b:#554467;--tile-ink:#ffe3d6;--tile-border:#a87589}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="2"]{--tile-a:#20556a;--tile-b:#394773;--tile-ink:#d7f5ff;--tile-border:#579bab}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="3"]{--tile-a:#58436e;--tile-b:#6a3b5c;--tile-ink:#f5dff9;--tile-border:#a080b9}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="4"]{--tile-a:#5d4b30;--tile-b:#4d3d64;--tile-ink:#ffe7b9;--tile-border:#aa8c52}
:root[data-theme=dark] :is(.regional-grid,#regional-browse .region-list) .regional-tile[data-tone="5"]{--tile-a:#713c4a;--tile-b:#4e3d65;--tile-ink:#ffe0e4;--tile-border:#b9788d}
.regional-credits{font-size:12px;color:var(--muted);margin:14px 0 20px;line-height:1.6}.regional-credits summary{cursor:pointer}.regional-credits p{overflow-wrap:anywhere}.regional-credits a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){:is(.regional-grid,#regional-browse .region-list) .regional-tile{min-width:min(136px,100%);padding:12px;flex:1 1 136px}.regional-label{font-size:14px}}
@media(prefers-reduced-motion:reduce){:is(.regional-grid,#regional-browse .region-list) .regional-tile{transition:none}}
/* Regional navigation matches the country photo-card treatment. */
:is(.regional-grid,#regional-browse .region-list) .regional-tile{min-height:160px;min-width:min(190px,100%);padding:20px;justify-content:center;isolation:isolate}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-photo=true]{color:#fff;justify-content:flex-end;background:#26313a}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-photo=true]>img{position:absolute;inset:0;width:100%;height:100%;min-width:0;border-radius:0;object-fit:cover;z-index:-2}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-photo=true]:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#07101610 10%,#07101685 58%,#071016dc)}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-photo=true] .regional-label{color:#fff;font-size:17px;text-shadow:0 2px 8px #0009;font-weight:700}
:is(.regional-grid,#regional-browse .region-list) .regional-tile[data-photo=true]>small{color:#fff;opacity:.92;text-shadow:0 1px 6px #000b}
:is(.regional-grid,#regional-browse .region-list) .regional-tile.active{outline:2px solid var(--highlight);outline-offset:3px}
@media(max-width:480px){:is(.regional-grid,#regional-browse .region-list) .regional-tile{min-width:min(145px,100%);flex:1 1 145px;padding:16px;min-height:150px}}
.region-back{display:inline-flex;margin:20px 0 8px;padding:12px 18px;border:1px solid var(--highlight);border-radius:12px;background:var(--accent-soft);color:var(--accent);font:inherit;cursor:pointer}
/* Dish directory: name-first collections, ready for later photos and recipes. */
.dish-name-catalog{margin:32px 0;min-width:0}
.dish-catalog-region{margin:14px 0;padding:18px;border:1px solid #c4ad75;border-radius:20px;background:linear-gradient(125deg,#f4f0df,#edf2e7 50%,#f7e9e3)}
.dish-catalog-region>summary{cursor:pointer;font-weight:700;font-size:1.05rem;overflow-wrap:anywhere}
.dish-catalog-region h3{font-size:.9rem;margin:22px 0 10px;letter-spacing:.03em}
.dish-name-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:10px}
.dish-name-list li{padding:13px 15px;border-radius:12px;border:1px solid #d7cbb1;background:#ffffff91;min-width:0;overflow-wrap:anywhere;line-height:1.45}
.catalog-recipe-link{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;line-height:1.45;white-space:normal;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}
.catalog-recipe-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.dish-catalog-region .reference-link{display:inline-block;margin-top:20px}
[data-theme="dark"] .dish-catalog-region{background:linear-gradient(125deg,#26253d,#203b37 50%,#3c2634);border-color:#837254;color:#f0eaf5}
[data-theme="dark"] .dish-name-list li{background:#171c2d99;border-color:#655b75}
.dish-traditions{display:block;margin-top:5px;font-size:.75rem;color:var(--muted);line-height:1.4}

/* Source label stays visible in both themes. */
.photo-button[data-photo-kind="generated"]::after{content:"AI illustration";position:absolute;bottom:10px;left:10px;padding:4px 8px;background:#18212de6;color:#fff;font-family:var(--font);font-size:10px;font-weight:600;line-height:1.4;border:1px solid #ffffff60;border-radius:12px;pointer-events:none}
.photo-button[data-photo-kind="generated"]{position:relative}
.cuisine-page[data-card-preview="true"] > #recipe-section{display:none}
.regional-card-preview{margin-top:32px}
.regional-food-group{margin:30px 0}
.regional-food-group>h3{font-size:24px;margin:0 0 18px}
.regional-food-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.regional-food-card{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#f1efd9,#fbe7da);min-width:0}
.regional-food-card:nth-child(3n+2){background:linear-gradient(135deg,#e4eddf,#e0edf1)}
.regional-food-card:nth-child(3n){background:linear-gradient(135deg,#f5e1e3,#eee3f4)}
.regional-food-card .photo-button{border-radius:0;aspect-ratio:1.2}
.regional-food-body{padding:18px}
.regional-food-body .eyebrow{font-size:10px;margin-bottom:9px}
.regional-food-open{display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:0;padding:0;width:100%;text-align:left}
.regional-food-card h4{font-size:23px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.regional-food-body .muted{margin-bottom:0}
.regional-food-pending{padding:22px;align-self:start;background:var(--surface)!important;border-style:dashed}
:root[data-theme="dark"] .regional-food-card{background:linear-gradient(135deg,#283b43,#3a3045)}
:root[data-theme="dark"] .regional-food-card:nth-child(3n+2){background:linear-gradient(135deg,#293f3c,#27354c)}
:root[data-theme="dark"] .regional-food-card:nth-child(3n){background:linear-gradient(135deg,#433044,#353353)}
@media(max-width:900px){.regional-food-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.regional-food-grid{gap:12px}.regional-food-body{padding:12px}.regional-food-card h4{font-size:19px}}
/* Compact regional cards: four dishes across tablet and desktop widths. */
.regional-food-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.regional-food-card{border-radius:16px}
.regional-food-body{padding:12px}
.regional-food-card h4{font-size:18px}
.regional-food-body .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:7px}
.regional-food-body .muted{font-size:11px;line-height:1.5}
.regional-food-open{gap:6px}
.regional-food-pending{padding:14px}
.regional-food-card .photo-button[data-photo-kind="generated"]::after{font-size:8px;padding:3px 5px;left:6px;bottom:6px}
@media(max-width:540px){.regional-food-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
/* Three columns balance photograph size and browsing density. */
.regional-food-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:540px){.regional-food-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
