:root {
  --cream: #f7f1e6;
  --paper: #fffaf1;
  --green: #173f35;
  --green-2: #245848;
  --green-ink: #173f35;
  --green-accent-text: #245848;
  --sage: #dce8dc;
  --sage-2: #b8cdbb;
  --amber: #c77a22;
  --amber-soft: #f6dfbd;
  --ink: #1e2723;
  --muted: #6b736f;
  --danger: #9d3c33;
  --line: #d9d6cc;
  --shadow: 0 14px 38px rgba(23, 63, 53, .12);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(199,122,34,.35); outline-offset: 2px; }
.app-shell { max-width: 1120px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.brand { display:flex; align-items:center; gap:10px; }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:var(--green); color:white; font-size:22px; box-shadow:var(--shadow); }
.brand h1 { font-family: Georgia, "Times New Roman", serif; margin:0; font-size:28px; letter-spacing:-.02em; }
.tagline { margin:2px 0 0; color:var(--muted); font-size:13px; }
.header-actions { display:flex; gap:8px; align-items:center; }
.icon-btn, .secondary-btn, .ghost-btn, .primary-btn, .danger-btn { min-height:44px; border-radius:14px; border:1px solid transparent; padding:10px 15px; font-weight:700; }
.icon-btn { width:44px; padding:0; border-color:var(--line); background:rgba(255,255,255,.55); }
.primary-btn { background:var(--green); color:white; box-shadow:0 8px 20px rgba(23,63,53,.16); }
.primary-btn:hover { background:var(--green-2); }
.secondary-btn { background:var(--sage); color:var(--green-ink); border-color:var(--sage-2); }
.ghost-btn { background:transparent; color:var(--green-ink); border-color:var(--line); }
.danger-btn { background:#f9e1dd; color:var(--danger); border-color:#efc5be; }
.small-btn { min-height:36px; padding:7px 11px; border-radius:11px; font-size:13px; }
.grid { display:grid; gap:16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background:rgba(255,250,241,.92); border:1px solid rgba(217,214,204,.9); border-radius:var(--radius); padding:20px; box-shadow:0 8px 24px rgba(23,63,53,.05); }
.hero { padding:26px; background:linear-gradient(135deg, #fffaf1 0%, #eef2e7 58%, #f7e5c7 100%); position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; width:210px; height:210px; border-radius:50%; background:rgba(23,63,53,.07); right:-80px; top:-90px; }
.hero h2, .section-title, .modal-title, .welcome-title { font-family: Georgia, "Times New Roman", serif; letter-spacing:-.02em; }
.hero h2 { margin:0 0 8px; font-size:clamp(30px,5vw,48px); max-width:720px; }
.hero p { max-width:650px; color:#48524d; font-size:17px; line-height:1.55; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.row.between { justify-content:space-between; }
.stack { display:flex; flex-direction:column; gap:12px; }
.muted { color:var(--muted); }
.kicker { text-transform:uppercase; letter-spacing:.11em; font-size:12px; font-weight:800; color:var(--green-accent-text); }
.badge { display:inline-flex; align-items:center; min-height:28px; border-radius:999px; padding:5px 10px; background:var(--sage); color:var(--green-ink); font-size:12px; font-weight:800; }
.badge.amber { background:var(--amber-soft); color:#7d4b11; }
.badge.outline { background:transparent; border:1px solid var(--line); color:var(--muted); }
.chip-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.chip { min-height:40px; border:1px solid var(--line); background:rgba(255,255,255,.65); border-radius:999px; padding:8px 13px; color:var(--ink); }
.chip.active { background:var(--green); color:#fff; border-color:var(--green); }
.input, textarea, select { width:100%; min-height:44px; border:1px solid var(--line); border-radius:13px; padding:11px 12px; background:#fffdf8; color:var(--ink); }
textarea { min-height:120px; resize:vertical; }
label { font-weight:750; font-size:14px; }
.field { display:flex; flex-direction:column; gap:7px; }
.stat { display:flex; flex-direction:column; gap:3px; }
.stat strong { font-size:21px; }
.scan-card { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; border:2px dashed #9cb3a3; background:#f0f5ed; }
.scan-emoji { font-size:42px; }
.recipe-card { display:flex; flex-direction:column; gap:12px; height:100%; }
.recipe-card h3 { font-family: Georgia, "Times New Roman", serif; font-size:23px; margin:0; }
.recipe-meta { display:flex; gap:8px; flex-wrap:wrap; }
.progress { height:9px; background:#e7e5de; border-radius:999px; overflow:hidden; }
.progress > span { display:block; height:100%; background:var(--green); border-radius:inherit; }
.list { display:flex; flex-direction:column; gap:9px; }
.list-item { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; padding:13px 0; border-bottom:1px solid #e7e3d8; }
.list-item:last-child { border-bottom:0; }
.checkline { display:flex; gap:11px; align-items:flex-start; flex:1; }
.checkline input { margin-top:4px; width:18px; height:18px; accent-color:var(--green); }
.nav { position:fixed; left:50%; transform:translateX(-50%); bottom:max(12px, env(safe-area-inset-bottom)); width:min(720px, calc(100% - 22px)); background:rgba(255,250,241,.95); backdrop-filter:blur(16px); border:1px solid rgba(217,214,204,.95); box-shadow:0 15px 36px rgba(23,63,53,.18); border-radius:22px; display:grid; grid-template-columns:repeat(4,1fr); padding:7px; z-index:20; }
.nav button { min-height:58px; border:0; border-radius:16px; background:transparent; color:var(--muted); font-size:12px; font-weight:750; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; }
.nav button.active { background:var(--green); color:#fff; }
.nav .nav-icon { font-size:20px; }
.feedback-fab { position:fixed; right:18px; bottom:92px; z-index:25; min-height:44px; border:0; border-radius:999px; padding:11px 15px; background:var(--amber); color:#fff; box-shadow:0 8px 25px rgba(125,75,17,.25); font-weight:800; }
.modal-backdrop { position:fixed; inset:0; z-index:100; background:rgba(20,31,27,.48); display:grid; place-items:center; padding:16px; }
.modal { width:min(680px, 100%); max-height:90dvh; overflow:auto; background:var(--paper); border-radius:26px; padding:22px; box-shadow:0 28px 70px rgba(0,0,0,.28); }
.modal-title { font-size:28px; margin:0; }
.close-x { border:0; background:transparent; min-width:44px; min-height:44px; border-radius:50%; font-size:24px; }
.welcome-wrap { min-height:100dvh; display:grid; place-items:center; padding:22px; background:radial-gradient(circle at 18% 15%, #fbdfa9, transparent 30%), radial-gradient(circle at 90% 80%, #c9dfcf, transparent 35%), var(--cream); }
.welcome-card { width:min(760px,100%); background:rgba(255,250,241,.94); border:1px solid rgba(255,255,255,.7); border-radius:30px; padding:clamp(26px,5vw,52px); box-shadow:var(--shadow); }
.welcome-title { font-size:clamp(42px,9vw,72px); margin:0; color:var(--green-ink); }
.onboarding-step { margin:18px 0 0; }
.step-dots { display:flex; gap:6px; margin:16px 0; }
.step-dots span { width:8px; height:8px; border-radius:50%; background:#cdc9bf; }
.step-dots span.active { width:24px; border-radius:999px; background:var(--green); }
.file-drop { border:2px dashed #aebcaf; border-radius:18px; padding:24px; background:#f2f6ef; text-align:center; }
.file-drop input { width:100%; }
.notice { padding:13px 14px; border-radius:14px; background:var(--amber-soft); color:#704411; border:1px solid #ebc993; font-size:13px; line-height:1.45; }
.empty { text-align:center; padding:34px 18px; color:var(--muted); }
.toast { position:fixed; z-index:200; left:50%; transform:translateX(-50%) translateY(20px); bottom:170px; opacity:0; pointer-events:none; background:#1e2723; color:white; padding:11px 15px; border-radius:999px; transition:.2s ease; font-size:14px; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

.recipe-directions { margin-top:22px; padding-top:4px; }
.recipe-directions h3 { margin:0; font-size:20px; }
.recipe-review-note { margin:7px 0 14px; line-height:1.5; }
.recipe-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.recipe-steps li { display:grid; grid-template-columns:34px 1fr; gap:11px; align-items:start; padding:12px 0; border-bottom:1px solid var(--line); line-height:1.5; }
.recipe-steps li:last-child { border-bottom:0; }
.step-number { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--sage); color:var(--green-ink); font-weight:850; font-size:13px; }
.recipe-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.recipe-actions .primary-btn { min-width:150px; }

.cook-step { font-size:20px; line-height:1.55; padding:20px; background:#fffdf8; border-radius:18px; border:1px solid var(--line); }
.price-card { flex:1; min-width:210px; border:2px solid var(--line); border-radius:18px; padding:17px; background:#fffdf8; }
.price-card.selected { border-color:var(--green); box-shadow:0 0 0 3px rgba(23,63,53,.07); }
.price { font-family:Georgia,"Times New Roman",serif; font-size:30px; }
.debug-box { background:#17201c; color:#eaf3ed; border-radius:14px; padding:12px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; overflow:auto; }
@media (max-width: 780px) {
  .grid.two, .grid.three { grid-template-columns:1fr; }
  .scan-card { grid-template-columns:1fr; }
  .topbar { align-items:flex-start; }
  .brand h1 { font-size:24px; }
  .hero { padding:20px; }
  .card { padding:17px; }
  .feedback-fab { bottom:96px; right:12px; }
  .recipe-actions { flex-direction:column; }
  .recipe-actions button { width:100%; }
  .recipe-actions { padding-bottom:20px; }
  .modal { padding-bottom:calc(132px + env(safe-area-inset-bottom)); scroll-padding-bottom:calc(132px + env(safe-area-inset-bottom)); }
}



/* v0.3 smart recipe generation */
.recipe-refresh{display:flex;flex-direction:column;align-items:center;gap:8px;margin:20px 0 6px;text-align:center}
.recipe-refresh .secondary-btn{min-width:220px}
.recipe-blurb{line-height:1.5;margin:8px 0 12px}
.recipe-description{font-size:1rem;line-height:1.65;color:var(--muted);margin:14px 0 18px}
.chef-notes{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}
.chef-notes h3{margin-top:0}.chef-notes ul{margin:8px 0 0;padding-left:20px}.chef-notes li{margin:8px 0;line-height:1.5}
.recipe-loading{margin-top:12px}

/* v0.4 KitchenMuse consumer-app refresh */
:root {
  --coral:#e86f51; --coral-soft:#fde4dc;
  --saffron:#e9a72f; --saffron-soft:#fff0c8;
  --teal:#198f82; --teal-soft:#d9f3ee;
  --berry:#a95078; --berry-soft:#f6dce8;
  --blue:#3979bd; --blue-soft:#deebf8;
  --violet:#7757b3; --violet-soft:#e9e1f6;
  --lime:#659849; --lime-soft:#e7f2df;
}
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.topbar { background:color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter:blur(18px); border:1px solid var(--line); border-radius:22px; margin-bottom:18px; padding:12px 14px; position:sticky; top:10px; z-index:18; box-shadow:0 10px 32px rgba(20,45,36,.08); }
.brand-mark { background:linear-gradient(135deg,var(--coral),var(--saffron)); color:#fff; box-shadow:0 8px 18px rgba(232,111,81,.22); }
.brand h1 { letter-spacing:-.035em; font-weight:850; }
.hero h2,.section-title,.modal-title { font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight:850; letter-spacing:-.04em; }
.welcome-title { font-family:Georgia,"Times New Roman",serif; letter-spacing:-.045em; }
.card { border-color:color-mix(in srgb,var(--line) 82%, transparent); box-shadow:0 12px 32px rgba(24,53,43,.065); }
.hero { background:linear-gradient(135deg,#fff4e8 0%,#f4f0ff 42%,#e4f4ec 100%); }
.primary-btn { background:linear-gradient(135deg,#176b5e,#218f7c); box-shadow:0 10px 24px rgba(23,107,94,.2); }
.primary-hero { min-height:52px; padding-inline:22px; font-size:16px; }
.trial-badge { background:var(--teal-soft); color:#0d6259; border:1px solid #a7dcd4; }

.modern-welcome { position:relative; overflow:hidden; max-width:820px; }
.modern-welcome::before { content:""; position:absolute; width:260px; height:260px; background:radial-gradient(circle,var(--saffron-soft),transparent 68%); top:-120px; right:-90px; pointer-events:none; }
.welcome-brand-row { display:flex; gap:14px; align-items:center; position:relative; }
.brand-orb { display:grid; place-items:center; width:52px; height:52px; border-radius:17px; color:#fff; font-size:24px; background:linear-gradient(135deg,var(--coral),var(--saffron)); box-shadow:0 12px 28px rgba(232,111,81,.2); }
.welcome-subtitle { font-size:clamp(28px,5vw,46px); line-height:1.08; letter-spacing:-.045em; margin:20px 0 12px; max-width:720px; }
.welcome-copy { color:var(--muted); font-size:17px; line-height:1.65; max-width:670px; }
.feature-ribbon { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:24px 0; }
.feature-tile { border-radius:20px; padding:16px; display:grid; gap:4px; min-height:118px; align-content:center; border:1px solid transparent; }
.feature-tile span { font-size:26px; } .feature-tile strong { font-size:16px; } .feature-tile small { color:#43504a; }
.feature-tile.coral { background:var(--coral-soft); border-color:#f6c0b1; }
.feature-tile.saffron { background:var(--saffron-soft); border-color:#f0d48e; }
.feature-tile.teal { background:var(--teal-soft); border-color:#a9ded5; }
.welcome-actions,.onboard-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:22px; }
.microcopy { color:var(--muted); font-size:12px; line-height:1.5; margin:12px 0 0; }
.cuisine-palette { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }

.cuisine-chip,.cuisine-badge { --cuisine-bg:var(--sage); --cuisine-ink:var(--green-ink); --cuisine-border:var(--sage-2); }
.cuisine-chip { background:var(--cuisine-bg); color:var(--cuisine-ink); border-color:var(--cuisine-border); }
.cuisine-chip.active { background:var(--cuisine-ink); color:#fff; border-color:var(--cuisine-ink); box-shadow:0 5px 14px color-mix(in srgb,var(--cuisine-ink) 24%, transparent); }
.cuisine-badge { background:var(--cuisine-bg); color:var(--cuisine-ink); border:1px solid var(--cuisine-border); }
.cuisine-caribbean { --cuisine-bg:#ffe4b8; --cuisine-ink:#80500c; --cuisine-border:#f0c876; }
.cuisine-indian { --cuisine-bg:#f8dfc9; --cuisine-ink:#963e21; --cuisine-border:#eeb99a; }
.cuisine-thai { --cuisine-bg:#e3efd3; --cuisine-ink:#466d2c; --cuisine-border:#bcd49f; }
.cuisine-chinese { --cuisine-bg:#f8d9d8; --cuisine-ink:#9c3737; --cuisine-border:#e9abaa; }
.cuisine-japanese { --cuisine-bg:#f3dfe8; --cuisine-ink:#8d3b62; --cuisine-border:#ddb4c8; }
.cuisine-west-african { --cuisine-bg:#ffe2a8; --cuisine-ink:#82510a; --cuisine-border:#edc36c; }
.cuisine-american { --cuisine-bg:#dcebf9; --cuisine-ink:#32628d; --cuisine-border:#b2d0ed; }
.cuisine-italian { --cuisine-bg:#dff0df; --cuisine-ink:#347244; --cuisine-border:#afd2b4; }
.cuisine-mexican { --cuisine-bg:#f9d9c7; --cuisine-ink:#9a4622; --cuisine-border:#ebb18f; }
.cuisine-mediterranean { --cuisine-bg:#dcefeb; --cuisine-ink:#277066; --cuisine-border:#add5ce; }
.cuisine-card { position:relative; overflow:hidden; }
.cuisine-card::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:var(--cuisine-border,var(--sage-2)); }
.plan-preview { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.plan-preview span { border:1px solid var(--line); border-radius:999px; padding:7px 10px; font-size:12px; font-weight:750; }
.trial-card { background:linear-gradient(135deg,var(--teal-soft),#fff4da); }

@media (max-width:780px){
  .topbar { top:6px; border-radius:18px; }
  .feature-ribbon { grid-template-columns:1fr; }
  .feature-tile { min-height:82px; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; }
  .feature-tile span { grid-row:1/3; }
  .welcome-actions,.onboard-actions { flex-direction:column; align-items:stretch; }
  .welcome-actions button,.onboard-actions button { width:100%; }
}



/* v0.4.1 global cuisine browser */
.cuisine-browser { margin-top:14px; }
.cuisine-browser-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:end; }
.cuisine-browser-summary { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:12px 0 4px; font-size:13px; }
.cuisine-browser .cuisine-palette { max-height:300px; overflow:auto; padding:8px 2px 6px; scrollbar-width:thin; }
.cuisine-option-wrap[hidden], .cuisine-empty[hidden] { display:none !important; }
.cuisine-empty { padding:14px 2px 4px; font-size:13px; }

.cuisine-group-north-american { --cuisine-bg:#dcebf9; --cuisine-ink:#32628d; --cuisine-border:#b2d0ed; }
.cuisine-group-caribbean { --cuisine-bg:#ffe4b8; --cuisine-ink:#80500c; --cuisine-border:#f0c876; }
.cuisine-group-central-american { --cuisine-bg:#f8dec5; --cuisine-ink:#8e4a20; --cuisine-border:#e9b48a; }
.cuisine-group-south-american { --cuisine-bg:#f7d9c9; --cuisine-ink:#98482c; --cuisine-border:#e9aa8e; }
.cuisine-group-western-european { --cuisine-bg:#e8e2f3; --cuisine-ink:#5f4a83; --cuisine-border:#cbc0e1; }
.cuisine-group-southern-european-mediterranean { --cuisine-bg:#dcefeb; --cuisine-ink:#277066; --cuisine-border:#add5ce; }
.cuisine-group-eastern-central-european { --cuisine-bg:#e5e8f3; --cuisine-ink:#4d597f; --cuisine-border:#c1c8df; }
.cuisine-group-nordic-northern-european { --cuisine-bg:#dcecf1; --cuisine-ink:#376b79; --cuisine-border:#b6d4dd; }
.cuisine-group-south-asian { --cuisine-bg:#f8dfc9; --cuisine-ink:#963e21; --cuisine-border:#eeb99a; }
.cuisine-group-east-asian { --cuisine-bg:#f8d9d8; --cuisine-ink:#9c3737; --cuisine-border:#e9abaa; }
.cuisine-group-southeast-asian { --cuisine-bg:#e3efd3; --cuisine-ink:#466d2c; --cuisine-border:#bcd49f; }
.cuisine-group-middle-eastern-west-asian { --cuisine-bg:#efe0c9; --cuisine-ink:#77552c; --cuisine-border:#d9bea0; }
.cuisine-group-central-asian { --cuisine-bg:#eee0d5; --cuisine-ink:#795843; --cuisine-border:#d8bda9; }
.cuisine-group-north-african { --cuisine-bg:#f1dfc2; --cuisine-ink:#7a5823; --cuisine-border:#d9bd87; }
.cuisine-group-west-african { --cuisine-bg:#ffe2a8; --cuisine-ink:#82510a; --cuisine-border:#edc36c; }
.cuisine-group-east-african-horn-of-africa { --cuisine-bg:#f0dfbb; --cuisine-ink:#755622; --cuisine-border:#dac188; }
.cuisine-group-central-african { --cuisine-bg:#e7e6c8; --cuisine-ink:#5f6330; --cuisine-border:#c8c995; }
.cuisine-group-southern-african { --cuisine-bg:#e2ebd1; --cuisine-ink:#526d37; --cuisine-border:#c0d19d; }
.cuisine-group-oceanian-pacific-island { --cuisine-bg:#d9edf0; --cuisine-ink:#286b73; --cuisine-border:#acd4d9; }
.cuisine-group-fusion-cross-cultural { --cuisine-bg:#f0dceb; --cuisine-ink:#7b416f; --cuisine-border:#d7b1cf; }
.cuisine-group-cuisine-styles-dining-categories { --cuisine-bg:#ece7dc; --cuisine-ink:#62594b; --cuisine-border:#d4cab9; }

@media (max-width:640px){
  .cuisine-browser-controls { grid-template-columns:1fr; gap:10px; }
  .cuisine-browser .cuisine-palette { max-height:260px; }
}

/* v0.4.4 cuisine-aware pantry match + adaptation scoring */
.match-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:850;background:var(--teal-soft);color:#0d6259;border:1px solid #a7dcd4;white-space:nowrap}
.recipe-match-line{gap:12px;align-items:baseline;margin-top:8px;font-size:13px}
.adaptation-badge{font-weight:800}
.adaptation-traditional{background:#e6f2e3;color:#426d38;border:1px solid #bdd7b6}
.adaptation-pantry-adaptation{background:#fff0c8;color:#7a5412;border:1px solid #ead18a}
.adaptation-cuisine-inspired{background:#e9e1f6;color:#634b8d;border:1px solid #cdbfe6}
.recipe-top-badges{gap:8px;flex-wrap:wrap}
.recipe-match-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;margin:15px 0;border-radius:18px;background:linear-gradient(135deg,var(--teal-soft),#fff7df);border:1px solid color-mix(in srgb,var(--teal) 25%,var(--line));}
.recipe-match-panel>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.match-score{font-size:26px;font-weight:900;letter-spacing:-.04em;color:#126c61}
.recipe-info-section{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--paper) 96%,var(--cream));}
.recipe-info-section h3{margin:0 0 10px}.recipe-info-section p{line-height:1.6;margin:8px 0}.recipe-info-section ul{margin:8px 0 0;padding-left:20px}.recipe-info-section li{margin:7px 0;line-height:1.5}
.why-panel{border-color:color-mix(in srgb,var(--teal) 28%,var(--line));background:color-mix(in srgb,var(--teal-soft) 45%,var(--paper));}
.adaptation-panel{border-color:color-mix(in srgb,var(--saffron) 30%,var(--line));background:color-mix(in srgb,var(--saffron-soft) 38%,var(--paper));}
.safety-panel{border-color:#d9b278;background:#fff4dc}.safety-panel h3{color:#76511c}
.ingredient-row{gap:12px;align-items:center}.ingredient-row>span:first-child{display:grid;gap:3px}.ingredient-sub{display:block;color:var(--muted);font-size:11px;line-height:1.35}.ingredient-qty{display:flex;align-items:center;gap:8px;text-align:right}.ingredient-status{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.ingredient-status.have{background:var(--teal-soft);color:#0d6259}.ingredient-status.need{background:var(--amber-soft);color:#79520f}.ingredient-status.staple{background:#e9e8e2;color:#5b5a54}.missing-notice{margin-top:12px}
@media (max-width:640px){.recipe-match-panel{align-items:flex-start;flex-direction:column}.recipe-match-line{align-items:flex-start;flex-direction:column;gap:3px}.ingredient-row{align-items:flex-start}.ingredient-qty{align-items:flex-end;flex-direction:column;gap:5px}.match-pill{font-size:11px}}



/* v0.4.5 beta access + freemium launch preview */
.beta-access-card{background:linear-gradient(135deg,var(--teal-soft),#fff4da)}
.beta-full-badge,.plus-badge{background:#176b5e;color:#fff;border:1px solid #176b5e;white-space:nowrap}
.launch-plans{margin-top:16px}
.launch-plan-heading{margin-bottom:4px}
.launch-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.launch-plan-card{border:1px solid var(--line);border-radius:20px;padding:18px;background:var(--paper);box-shadow:0 10px 24px rgba(24,53,43,.05)}
.launch-plan-card.plus{background:linear-gradient(145deg,color-mix(in srgb,var(--teal-soft) 72%,var(--paper)),color-mix(in srgb,var(--saffron-soft) 45%,var(--paper)));border-color:color-mix(in srgb,var(--teal) 28%,var(--line))}
.plan-name-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px}
.plus-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:12px}.plus-price strong{font-size:20px}.plus-price span{color:var(--muted);font-size:13px}
.plan-feature-list{margin:14px 0 0;padding-left:20px;display:grid;gap:8px;color:var(--ink);line-height:1.45}.plan-feature-list li::marker{color:var(--teal)}
@media(max-width:640px){.launch-plan-grid{grid-template-columns:1fr}}


/* v0.4.7 — modern food-app visual system
   Inspired by current editorial recipe apps: warm neutral canvas, photography-ready
   surfaces, expressive food accents, generous spacing, compact floating navigation. */
:root{
  --canvas:#f7f4ef;
  --surface:#ffffff;
  --surface-soft:#f1eee8;
  --surface-tint:#fff6f1;
  --ink:#20211f;
  --muted:#6f726c;
  --line:rgba(32,33,31,.10);
  --line-strong:rgba(32,33,31,.16);
  --primary:#20211f;
  --primary-ink:#ffffff;
  --coral:#df5b43;
  --coral-strong:#c94731;
  --coral-soft:#fbe3dc;
  --saffron:#eab54a;
  --saffron-soft:#fff0c9;
  --teal:#2b806f;
  --teal-soft:#def0ea;
  --berry:#9d5d7d;
  --berry-soft:#f1e3eb;
  --violet:#7765a8;
  --violet-soft:#eae5f6;
  --green:#2b806f;
  --green-2:#23685b;
  --green-ink:#245f54;
  --green-accent-text:#267164;
  --sage:#e1efe9;
  --sage-2:#b9d8cf;
  --amber:#d8902d;
  --amber-soft:#fff0cf;
  --cream:var(--canvas);
  --paper:var(--surface);
  --danger:#b4453b;
  --radius:26px;
  --shadow:0 1px 2px rgba(32,33,31,.04),0 16px 42px rgba(32,33,31,.075);
  --shadow-float:0 16px 50px rgba(32,33,31,.14);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html,body{background:var(--canvas);color:var(--ink)}
body{background:
  radial-gradient(circle at 8% -5%,rgba(223,91,67,.08),transparent 28rem),
  radial-gradient(circle at 96% 16%,rgba(119,101,168,.07),transparent 30rem),
  var(--canvas);
  letter-spacing:-.005em;
}
button,input,select,textarea{letter-spacing:-.005em}
button{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease}
button:active{transform:scale(.985)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(223,91,67,.24);outline-offset:2px}
.ui-icon{display:block;flex:none}
.btn-icon{display:inline-flex;align-items:center;justify-content:center;margin-right:7px;vertical-align:-4px}

.app-shell{max-width:1180px;padding:max(14px,env(safe-area-inset-top)) 18px calc(112px + env(safe-area-inset-bottom))}
.topbar{
  padding:10px 12px 10px 11px;
  margin-bottom:22px;
  top:8px;
  border-radius:20px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(32,33,31,.08);
  box-shadow:0 8px 30px rgba(32,33,31,.07);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
}
.brand{gap:11px}.brand-mark{
  width:42px;height:42px;border-radius:14px;
  background:var(--primary);color:#ff7a62;
  box-shadow:none;
}
.brand h1{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:22px;font-weight:900;letter-spacing:-.045em}
.tagline{font-size:11.5px;color:#7b7d78;margin-top:0}
.header-actions{gap:7px}.icon-btn{
  width:42px;height:42px;min-height:42px;padding:0;border-radius:14px;
  background:#f3f1ec;border:1px solid transparent;color:#4d504b;
}
.icon-btn:hover{background:#ebe8e1}
.trial-badge{background:#e8f4ef;color:#27685c;border:0;padding:6px 10px;min-height:27px;font-weight:800}

.primary-btn,.secondary-btn,.ghost-btn,.danger-btn{min-height:46px;border-radius:15px;padding:10px 16px;font-weight:800;letter-spacing:-.015em}
.primary-btn{background:var(--primary);color:var(--primary-ink);border-color:var(--primary);box-shadow:0 9px 20px rgba(32,33,31,.16)}
.primary-btn:hover{background:#343633;box-shadow:0 11px 26px rgba(32,33,31,.2)}
.secondary-btn{background:var(--coral-soft);color:#953c2b;border-color:transparent}
.secondary-btn:hover{background:#f8d5cb}
.ghost-btn{background:rgba(255,255,255,.58);color:#4d504b;border-color:var(--line)}
.ghost-btn:hover{background:#fff;border-color:var(--line-strong)}
.danger-btn{background:#fbe5e2;color:#973d36;border-color:transparent}
.small-btn{min-height:36px;padding:7px 11px;border-radius:12px}
.primary-hero{min-height:50px}

.card{
  background:var(--surface);
  border:1px solid rgba(32,33,31,.07);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}
.grid{gap:18px}
.kicker{font-size:11px;letter-spacing:.14em;color:var(--coral-strong);font-weight:900}
.section-title,.modal-title,.hero h2,.welcome-title,.recipe-card h3{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.section-title,.modal-title{font-weight:900;letter-spacing:-.045em}
.muted{color:var(--muted)}

.hero{
  padding:clamp(24px,4vw,40px);
  min-height:250px;
  display:flex;flex-direction:column;justify-content:center;
  border:0;
  background:
    radial-gradient(circle at 90% 12%,rgba(234,181,74,.36),transparent 22rem),
    radial-gradient(circle at 72% 92%,rgba(119,101,168,.20),transparent 24rem),
    linear-gradient(135deg,#fff7f1 0%,#f9ece5 45%,#f4f0fa 100%);
  box-shadow:0 20px 58px rgba(80,48,35,.09);
}
.hero::after{width:260px;height:260px;right:-105px;top:-120px;background:rgba(223,91,67,.09)}
.hero::before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;left:-55px;bottom:-70px;background:rgba(43,128,111,.08)}
.hero h2{font-size:clamp(34px,5vw,54px);line-height:1.02;max-width:760px;font-weight:950;letter-spacing:-.06em;margin:8px 0 12px;color:#20211f}
.hero p{font-size:16px;line-height:1.62;color:#5e625d;max-width:680px;margin:0 0 20px}
.hero-actions{gap:10px}
.dashboard-card{min-height:158px}
.ingredients-card{background:linear-gradient(160deg,#fff,#fff8f4)}
.filters-card{background:linear-gradient(160deg,#fff,#f7faf9)}
.cuisine-section{background:linear-gradient(180deg,#fff,#fdfbf8)}

.badge{min-height:27px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:850;background:#efeee9;color:#555852}
.badge.outline{background:#f5f3ef;border:0;color:#666963}
.badge.amber{background:var(--saffron-soft);color:#7a5517}
.chip{min-height:38px;border:1px solid transparent;background:#f2f0eb;color:#3f423e;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(32,33,31,.04)}
.chip:hover{background:#eae7e1}.chip.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 7px 16px rgba(32,33,31,.14)}

.input,textarea,select,input[type="search"]{
  min-height:48px;border:1px solid transparent;border-radius:15px;padding:11px 13px;
  background:#f4f2ee;color:var(--ink);box-shadow:inset 0 0 0 1px rgba(32,33,31,.05);
}
.input:hover,textarea:hover,select:hover,input[type="search"]:hover{background:#f0eee9}
label{font-size:13px;font-weight:800;color:#4d504b}
.field{gap:8px}

.scan-card{border:1px solid rgba(223,91,67,.18);background:linear-gradient(135deg,#fff8f4,#fff1e9);border-radius:24px}
.file-drop{border:1px dashed rgba(223,91,67,.36);background:#fff7f3;border-radius:22px}
.notice{background:#fff3d8;color:#6b4b16;border:1px solid rgba(216,144,45,.18);border-radius:16px}
.empty{padding:38px 18px}

.recipe-card{
  position:relative;overflow:hidden;gap:13px;
  padding:22px;
  border:1px solid rgba(32,33,31,.07);
  box-shadow:0 1px 2px rgba(32,33,31,.03),0 14px 34px rgba(32,33,31,.065);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.recipe-card::before{inset:0 0 auto 0;width:auto;height:5px;border-radius:26px 26px 0 0;background:var(--cuisine-border,var(--coral));opacity:.95}
.recipe-card::after{content:"";position:absolute;right:-50px;top:-70px;width:155px;height:155px;border-radius:50%;background:var(--cuisine-bg,var(--coral-soft));opacity:.36;pointer-events:none}
.recipe-card>*{position:relative;z-index:1}
@media (hover:hover){.recipe-card:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(32,33,31,.04),0 22px 48px rgba(32,33,31,.10);border-color:rgba(32,33,31,.1)}}
.recipe-card h3{font-size:24px;line-height:1.14;font-weight:900;letter-spacing:-.045em;margin:2px 0 0}
.recipe-blurb{font-size:14px;line-height:1.58;margin:0;color:#656862}
.recipe-card .primary-btn{margin-top:auto;width:100%;box-shadow:none}
.recipe-meta{gap:6px}
.progress{height:6px;background:#eeece7}
.progress>span{background:linear-gradient(90deg,var(--teal),#77a95f)}
.match-pill{background:#e7f3ef;color:#266a5e;border:0;padding:6px 9px}
.recipe-match-line{font-size:12.5px}
.adaptation-traditional,.adaptation-pantry-adaptation,.adaptation-cuisine-inspired{border:0}

.cuisine-card{border-left:1px solid rgba(32,33,31,.07)}
.cuisine-card::before{left:0;right:0;bottom:auto}
.cuisine-badge{border:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cuisine-border) 70%,transparent)}
.cuisine-chip{box-shadow:none}
.cuisine-chip.active{background:var(--primary);border-color:var(--primary);color:#fff}

.cuisine-browser-controls{gap:10px}.cuisine-browser-summary{margin:14px 0 6px;color:#575a55}
.cuisine-browser .cuisine-palette{gap:7px;max-height:320px;padding:7px 1px 9px}

.list-item{padding:14px 0;border-bottom:1px solid rgba(32,33,31,.07)}
.checkline input{accent-color:var(--coral)}

.nav{
  bottom:max(10px,env(safe-area-inset-bottom));
  width:min(690px,calc(100% - 20px));
  padding:6px;
  border-radius:24px;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(32,33,31,.08);
  box-shadow:var(--shadow-float);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
}
.nav button{min-height:59px;border-radius:18px;color:#72756f;font-size:11px;font-weight:800;gap:5px}
.nav button.active{background:var(--primary);color:#fff;box-shadow:0 8px 20px rgba(32,33,31,.15)}
.nav .nav-icon{font-size:initial;display:grid;place-items:center}
.feedback-fab{right:16px;bottom:92px;background:var(--coral-strong);color:#fff;border:1px solid rgba(255,255,255,.2);box-shadow:0 12px 28px rgba(201,71,49,.25);font-size:12px;padding:10px 14px}

.modal-backdrop{background:rgba(24,24,22,.46);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.modal{background:var(--surface);border:1px solid rgba(255,255,255,.65);border-radius:30px;padding:24px;box-shadow:0 32px 100px rgba(18,18,17,.28)}
.modal-title{font-size:29px}
.close-x{background:#f3f1ec;color:#545751}
.recipe-info-section{border:1px solid rgba(32,33,31,.07);background:#faf9f6;border-radius:22px;padding:18px}
.why-panel{background:#eff7f4;border:0}.adaptation-panel{background:#fff7e5;border:0}.safety-panel{background:#fff2e2;border:0}
.recipe-match-panel{border:0;border-radius:22px;background:linear-gradient(135deg,#e8f5f0,#fff4de);padding:17px 18px}
.match-score{color:#236b5e}
.recipe-steps li{border-bottom:1px solid rgba(32,33,31,.07);padding:14px 0}
.step-number{background:#efede8;color:#3f423e}
.cook-step{background:#faf8f4;border:0;border-radius:22px;padding:22px}

.welcome-wrap{
  background:
    radial-gradient(circle at 14% 8%,rgba(223,91,67,.22),transparent 28rem),
    radial-gradient(circle at 86% 18%,rgba(234,181,74,.22),transparent 26rem),
    radial-gradient(circle at 78% 88%,rgba(119,101,168,.16),transparent 30rem),
    var(--canvas);
  padding:22px;
}
.welcome-card{max-width:860px;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.72);border-radius:34px;padding:clamp(28px,5vw,56px);box-shadow:0 30px 80px rgba(50,38,31,.12);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.modern-welcome::before{width:330px;height:330px;background:radial-gradient(circle,rgba(223,91,67,.12),transparent 66%);top:-170px;right:-130px}
.welcome-brand-row{gap:13px}.brand-orb{width:54px;height:54px;border-radius:18px;background:var(--primary);color:#ff7a62;box-shadow:0 10px 24px rgba(32,33,31,.14)}
.welcome-title{font-size:clamp(38px,7vw,66px);font-weight:950;letter-spacing:-.065em;color:var(--ink)}
.welcome-subtitle{font-size:clamp(30px,5vw,50px);font-weight:900;line-height:1.03;letter-spacing:-.06em;margin:26px 0 14px;max-width:760px}
.welcome-copy{font-size:16px;line-height:1.65;max-width:660px}
.feature-ribbon{gap:10px;margin:26px 0}
.feature-tile{min-height:118px;border:0;border-radius:24px;padding:17px;box-shadow:inset 0 0 0 1px rgba(32,33,31,.04)}
.feature-tile.coral{background:#fce8e2}.feature-tile.saffron{background:#fff1cf}.feature-tile.teal{background:#e4f2ee}
.feature-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.58);color:#373a36;margin-bottom:4px}
.feature-tile span{font-size:initial}.feature-tile strong{font-size:15px;font-weight:900}.feature-tile small{color:#62655f}
.step-dots span{background:#dbd8d1}.step-dots span.active{background:var(--coral);width:26px}
.microcopy{color:#787a75}

.beta-access-card{background:linear-gradient(135deg,#e5f3ef,#fff3d6);border:0}.beta-full-badge,.plus-badge{background:var(--primary);border:0}
.launch-plan-card{border:1px solid rgba(32,33,31,.07);border-radius:24px;box-shadow:none;background:#faf9f6}
.launch-plan-card.plus{background:linear-gradient(145deg,#edf7f3,#fff4dd);border:0}
.price-card{background:#faf9f6;border:1px solid rgba(32,33,31,.08);border-radius:22px}.price-card.selected{border-color:var(--coral);box-shadow:0 0 0 3px rgba(223,91,67,.10)}
.price{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:900;letter-spacing:-.05em}
.debug-box{background:#20211f;color:#f5f3ed}
.toast{background:#20211f;color:#fff;box-shadow:0 12px 30px rgba(32,33,31,.22)}

@media(max-width:780px){
  .app-shell{padding-left:14px;padding-right:14px}
  .topbar{margin-bottom:16px;border-radius:18px}
  .brand-mark{width:39px;height:39px;border-radius:13px}.brand h1{font-size:20px}.tagline{font-size:10.5px}
  .trial-badge{font-size:10px;padding:5px 8px}.icon-btn{width:39px;height:39px;min-height:39px}
  .hero{padding:24px;min-height:238px;border-radius:28px}.hero h2{font-size:clamp(34px,10vw,44px)}.hero p{font-size:15px}
  .hero-actions{align-items:stretch}.hero-actions button{flex:1}
  .card{padding:18px;border-radius:23px}
  .recipe-card{padding:19px}.recipe-card h3{font-size:22px}
  .feedback-fab{right:10px;bottom:94px}
  .modal{border-radius:26px;padding:20px;padding-bottom:calc(126px + env(safe-area-inset-bottom))}
  .feature-ribbon{grid-template-columns:1fr}.feature-tile{min-height:80px;grid-template-columns:auto 1fr;column-gap:11px}.feature-icon{grid-row:1/3;margin:0}.feature-tile strong{align-self:end}.feature-tile small{align-self:start}
  .welcome-card{border-radius:28px}
}
@media(max-width:520px){
  .trial-badge{display:none}
  .hero-actions{flex-direction:column}.hero-actions button{width:100%}
  .nav{width:calc(100% - 14px);border-radius:22px}.nav button{border-radius:16px;min-height:57px;font-size:10.5px}
  .welcome-wrap{padding:12px}.welcome-card{padding:26px 20px}.welcome-subtitle{font-size:34px}
}




/* Theme preference: explicit dark rules replace OS-only dark media queries. */
html[data-theme="dark"]{ color-scheme:dark; --cream:#111713; --paper:#17201b; --ink:#f4f0e7; --muted:#aab5ae; --line:#344039; --sage:#2b4235; --sage-2:#4d7059; --amber-soft:#4f3b1e; --green-ink:#d9f1df; --green-accent-text:#b9dfc5; }
html[data-theme="dark"],html[data-theme="dark"] body{ background:var(--cream); }
html[data-theme="dark"] .card,html[data-theme="dark"] .modal,html[data-theme="dark"] .nav,html[data-theme="dark"] .welcome-card{ background:rgba(23,32,27,.96); }
html[data-theme="dark"] .hero{ background:linear-gradient(135deg,#1c2922 0%,#24362b 60%,#43321b 100%); }
html[data-theme="dark"] .hero p{ color:#c4cec8; }
html[data-theme="dark"] .scan-card,html[data-theme="dark"] .file-drop{ background:#1e2f26; }
html[data-theme="dark"] .input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] .price-card,html[data-theme="dark"] .cook-step{ background:#111713; color:var(--ink); }
html[data-theme="dark"] .chip{ background:#1a231e; }
html[data-theme="dark"] .list-item{ border-color:#344039; }
html[data-theme="dark"] .icon-btn{ background:#1b261f; }
html[data-theme="dark"] .progress{ background:#344039; }
html[data-theme="dark"] .price-card.selected{ border-color:#8fc6a2; box-shadow:0 0 0 3px rgba(143,198,162,.13); }
html[data-theme="dark"] .badge.amber{ background:#6b4a1c; color:#fff0cf; border:1px solid #8b642b; }
html[data-theme="dark"] .notice{ background:#59411f; color:#fff0cf; border-color:#8b642b; }
html[data-theme="dark"] .step-number{ background:#31503e; color:#eef9f1; }
html[data-theme="dark"] .hero{ background:linear-gradient(135deg,#2a211d 0%,#222536 42%,#17322c 100%); }
html[data-theme="dark"] .feature-tile small{ color:#3c4943; }
html[data-theme="dark"] .trial-card{ background:linear-gradient(135deg,#17332e,#342b1b); }
html[data-theme="dark"] .trial-badge{ background:#1d4b43; color:#d8fff7; border-color:#39756b; }
html[data-theme="dark"] .cuisine-chip.active{ color:#fff; }
html[data-theme="dark"] .match-pill{background:#1d4b43;color:#d8fff7;border-color:#39756b}
html[data-theme="dark"] .recipe-match-panel{background:linear-gradient(135deg,#17332e,#342b1b);border-color:#355f56}
html[data-theme="dark"] .match-score{color:#bce9de}
html[data-theme="dark"] .recipe-info-section{background:#151d18}
html[data-theme="dark"] .why-panel{background:#183029;border-color:#31584e}
html[data-theme="dark"] .adaptation-panel{background:#302818;border-color:#65512b}
html[data-theme="dark"] .safety-panel{background:#362a19;border-color:#725a30}
html[data-theme="dark"] .safety-panel h3{color:#f4d9a8}
html[data-theme="dark"] .ingredient-status.have{background:#1d4b43;color:#d8fff7}
html[data-theme="dark"] .ingredient-status.need{background:#59411f;color:#fff0cf}
html[data-theme="dark"] .ingredient-status.staple{background:#2b302c;color:#d8ddd9}
html[data-theme="dark"] .adaptation-traditional{background:#243d25;color:#d5efd2;border-color:#416d43}
html[data-theme="dark"] .adaptation-pantry-adaptation{background:#4b391b;color:#ffe9b3;border-color:#795c28}
html[data-theme="dark"] .adaptation-cuisine-inspired{background:#352a50;color:#e7ddff;border-color:#59487f}
html[data-theme="dark"] .beta-access-card{background:linear-gradient(135deg,#17332e,#342b1b)}
html[data-theme="dark"] .launch-plan-card{background:#12231e}
html[data-theme="dark"] .launch-plan-card.plus{background:linear-gradient(145deg,#17352f,#2f291c)}
html[data-theme="dark"]{
    --canvas:#11120f;--surface:#191a17;--surface-soft:#20211d;--surface-tint:#211915;
    --paper:var(--surface);--cream:var(--canvas);--ink:#f4f1ea;--muted:#a7aaa3;
    --line:rgba(255,255,255,.08);--line-strong:rgba(255,255,255,.14);
    --primary:#f3f0e8;--primary-ink:#1d1e1b;
    --coral:#f07159;--coral-strong:#ef6c53;--coral-soft:#3b241f;
    --saffron:#e8b65b;--saffron-soft:#3a2d17;
    --teal:#63aa98;--teal-soft:#19342e;
    --green:#63aa98;--green-2:#79b8a8;--green-ink:#a9d8cb;--green-accent-text:#8fc8b9;
    --sage:#1c332d;--sage-2:#31584e;--amber-soft:#3a2d17;
  }
html[data-theme="dark"],html[data-theme="dark"] body{background:var(--canvas)}
html[data-theme="dark"] body{background:radial-gradient(circle at 8% -5%,rgba(240,113,89,.09),transparent 28rem),radial-gradient(circle at 96% 16%,rgba(119,101,168,.09),transparent 30rem),var(--canvas)}
html[data-theme="dark"] .topbar{background:rgba(25,26,23,.78);border-color:rgba(255,255,255,.07);box-shadow:0 10px 34px rgba(0,0,0,.22)}
html[data-theme="dark"] .brand-mark{background:#f3f0e8;color:#d64f38}
html[data-theme="dark"] .tagline{color:#969a93}
html[data-theme="dark"] .icon-btn{background:#242521;color:#d8d6cf}
html[data-theme="dark"] .icon-btn:hover{background:#2b2c27}
html[data-theme="dark"] .trial-badge{background:#1b352f;color:#a9d9cc}
html[data-theme="dark"] .primary-btn{background:#f3f0e8;color:#1d1e1b;border-color:#f3f0e8;box-shadow:none}
html[data-theme="dark"] .primary-btn:hover{background:#fffdf7}
html[data-theme="dark"] .secondary-btn{background:#3a241f;color:#ffb3a2}
html[data-theme="dark"] .ghost-btn{background:#23241f;color:#d3d1ca;border-color:rgba(255,255,255,.07)}
html[data-theme="dark"] .card,html[data-theme="dark"] .modal,html[data-theme="dark"] .welcome-card{background:var(--surface);border-color:rgba(255,255,255,.06);box-shadow:0 1px 2px rgba(0,0,0,.12),0 18px 46px rgba(0,0,0,.20)}
html[data-theme="dark"] .hero{background:radial-gradient(circle at 90% 12%,rgba(232,182,91,.16),transparent 22rem),radial-gradient(circle at 72% 92%,rgba(119,101,168,.20),transparent 24rem),linear-gradient(135deg,#211815 0%,#211b1a 48%,#1d1a25 100%);box-shadow:0 20px 58px rgba(0,0,0,.20)}
html[data-theme="dark"] .hero h2{color:#f7f3ec}
html[data-theme="dark"] .hero p{color:#b8bbb4}
html[data-theme="dark"] .hero::after{background:rgba(240,113,89,.08)}
html[data-theme="dark"] .hero::before{background:rgba(99,170,152,.07)}
html[data-theme="dark"] .dashboard-card,html[data-theme="dark"] .ingredients-card,html[data-theme="dark"] .filters-card,html[data-theme="dark"] .cuisine-section{background:#191a17}
html[data-theme="dark"] .badge{background:#282923;color:#d4d2cb}
html[data-theme="dark"] .badge.outline{background:#242520;color:#b8bbb4}
html[data-theme="dark"] .badge.amber{background:#3b2d16;color:#f4d18b}
html[data-theme="dark"] .chip{background:#242520;color:#d4d2cb;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
html[data-theme="dark"] .chip:hover{background:#2b2c27}
html[data-theme="dark"] .chip.active{background:#f3f0e8;color:#1d1e1b;border-color:#f3f0e8}
html[data-theme="dark"] .input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] input[type="search"]{background:#23241f;color:#f4f1ea;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
html[data-theme="dark"] label{color:#c7c5be}
html[data-theme="dark"] .scan-card,html[data-theme="dark"] .file-drop{background:#251b18;border-color:rgba(240,113,89,.18)}
html[data-theme="dark"] .notice{background:#342915;color:#f2d59a;border-color:rgba(232,182,91,.10)}
html[data-theme="dark"] .recipe-card{background:#191a17;border-color:rgba(255,255,255,.06);box-shadow:0 1px 2px rgba(0,0,0,.14),0 16px 36px rgba(0,0,0,.19)}
html[data-theme="dark"] .recipe-card::after{opacity:.10}
html[data-theme="dark"] .recipe-blurb{color:#aeb1aa}
html[data-theme="dark"] .progress{background:#2a2b26}
html[data-theme="dark"] .progress>span{background:linear-gradient(90deg,#5da792,#89b66f)}
html[data-theme="dark"] .match-pill{background:#1c352f;color:#a8dbcd}
html[data-theme="dark"] .cuisine-chip.active{background:#f3f0e8;color:#1d1e1b;border-color:#f3f0e8}
html[data-theme="dark"] .nav{background:rgba(25,26,23,.86);border-color:rgba(255,255,255,.07);box-shadow:0 18px 56px rgba(0,0,0,.34)}
html[data-theme="dark"] .nav button{color:#969a93}
html[data-theme="dark"] .nav button.active{background:#f3f0e8;color:#1d1e1b;box-shadow:none}
html[data-theme="dark"] .feedback-fab{background:#ef6c53;color:#1b1b18;border-color:transparent}
html[data-theme="dark"] .modal-backdrop{background:rgba(0,0,0,.58)}
html[data-theme="dark"] .close-x{background:#242520;color:#d7d5ce}
html[data-theme="dark"] .recipe-info-section,html[data-theme="dark"] .cook-step{background:#20211d;border-color:rgba(255,255,255,.05)}
html[data-theme="dark"] .why-panel{background:#19302b}
html[data-theme="dark"] .adaptation-panel{background:#312716}
html[data-theme="dark"] .safety-panel{background:#342516}
html[data-theme="dark"] .recipe-match-panel{background:linear-gradient(135deg,#19312b,#302718)}
html[data-theme="dark"] .match-score{color:#a9d9cc}
html[data-theme="dark"] .step-number{background:#292a25;color:#e7e4dd}
html[data-theme="dark"] .welcome-wrap{background:radial-gradient(circle at 14% 8%,rgba(240,113,89,.13),transparent 28rem),radial-gradient(circle at 86% 18%,rgba(232,182,91,.10),transparent 26rem),radial-gradient(circle at 78% 88%,rgba(119,101,168,.12),transparent 30rem),var(--canvas)}
html[data-theme="dark"] .welcome-card{background:rgba(25,26,23,.88);border-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .brand-orb{background:#f3f0e8;color:#d64f38}
html[data-theme="dark"] .welcome-title{color:#f4f1ea}
html[data-theme="dark"] .feature-tile.coral{background:#33221e}
html[data-theme="dark"] .feature-tile.saffron{background:#332b19}
html[data-theme="dark"] .feature-tile.teal{background:#19332d}
html[data-theme="dark"] .feature-icon{background:rgba(255,255,255,.06);color:#e8e5dd}
html[data-theme="dark"] .feature-tile small{color:#adb0a9}
html[data-theme="dark"] .step-dots span{background:#34352f}
html[data-theme="dark"] .step-dots span.active{background:#f07159}
html[data-theme="dark"] .beta-access-card{background:linear-gradient(135deg,#19332d,#322a18)}
html[data-theme="dark"] .beta-full-badge,html[data-theme="dark"] .plus-badge{background:#f3f0e8;color:#1d1e1b}
html[data-theme="dark"] .launch-plan-card,html[data-theme="dark"] .price-card{background:#20211d;border-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .launch-plan-card.plus{background:linear-gradient(145deg,#19322c,#302818)}
html[data-theme="dark"] .toast,html[data-theme="dark"] .debug-box{background:#f3f0e8;color:#1d1e1b}


/* v0.4.8 — mobile polish, visual depth, and user-selectable appearance */
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Settings appearance selector */
.appearance-card{margin-bottom:14px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-soft) 52%,var(--surface)));}
.appearance-intro{font-size:13px;margin-top:4px;line-height:1.45}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:15px}
.theme-choice{position:relative;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;min-height:70px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft);color:var(--ink);text-align:left;box-shadow:none}
.theme-choice:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.theme-choice.active{border-color:color-mix(in srgb,var(--coral) 58%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--coral-soft) 55%,transparent);background:var(--surface)}
.theme-preview{width:42px;height:42px;border-radius:13px;border:1px solid var(--line);padding:5px;display:flex;align-items:flex-end;overflow:hidden}
.theme-preview span{display:block;width:100%;height:13px;border-radius:6px}
.theme-preview.light{background:#f7f4ef}.theme-preview.light span{background:#20211f}
.theme-preview.dark{background:#10120f}.theme-preview.dark span{background:#f1eee7}
.theme-preview.system{background:linear-gradient(135deg,#f7f4ef 0 49%,#10120f 51% 100%)}.theme-preview.system span{background:linear-gradient(90deg,#20211f 0 49%,#f1eee7 51% 100%)}
.theme-copy{min-width:0;display:grid;gap:2px}.theme-copy strong{font-size:13px}.theme-copy small{font-size:10.5px;line-height:1.25;color:var(--muted)}
.theme-check{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--coral);color:#fff;font-size:12px;font-weight:900}
.settings-section{margin-top:14px}

/* Feedback becomes a small utility, not a competing CTA. */
.feedback-fab{width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;display:grid;place-items:center;right:14px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:24}
.feedback-fab svg{width:20px;height:20px}

/* Dense selectors get a visually contained, easier-to-scan viewport. */
.cuisine-browser .cuisine-palette{max-height:252px;gap:6px;padding:10px;background:color-mix(in srgb,var(--surface-soft) 72%,transparent);border:1px solid var(--line);border-radius:18px;overscroll-behavior:contain;scrollbar-gutter:stable}
.cuisine-browser .cuisine-palette .chip{min-height:34px;padding:7px 11px;font-size:12.5px}
.cuisine-browser-summary{font-size:12px;margin:10px 2px 6px}

/* Refined card hierarchy. */
.recipe-card{padding:20px;gap:11px}
.recipe-card h3{font-size:23px;line-height:1.12}
.recipe-blurb{font-size:13.5px;line-height:1.52}
.recipe-meta{gap:5px}.recipe-card .badge{font-size:10.5px;min-height:25px;padding:4px 8px}
.recipe-card::after{width:138px;height:138px;right:-52px;top:-62px;opacity:.26}

/* Dark mode uses more separated surfaces instead of one near-black slab. */
html[data-theme="dark"]{
  --canvas:#10120f;--surface:#1d1f1b;--surface-soft:#272923;--surface-tint:#251b18;
  --paper:var(--surface);--cream:var(--canvas);--ink:#f4f1ea;--muted:#aeb1a9;
  --line:rgba(255,255,255,.095);--line-strong:rgba(255,255,255,.16);
}
html[data-theme="dark"] body{background:radial-gradient(circle at 7% -4%,rgba(240,113,89,.10),transparent 28rem),radial-gradient(circle at 95% 15%,rgba(119,101,168,.09),transparent 28rem),var(--canvas)}
html[data-theme="dark"] .topbar{background:rgba(31,33,29,.91);border-color:rgba(255,255,255,.09);box-shadow:0 12px 36px rgba(0,0,0,.30)}
html[data-theme="dark"] .card{background:#1d1f1b;border-color:rgba(255,255,255,.085);box-shadow:0 1px 2px rgba(0,0,0,.18),0 18px 44px rgba(0,0,0,.22)}
html[data-theme="dark"] .ingredients-card{background:linear-gradient(155deg,#20231e,#1d1f1b)}
html[data-theme="dark"] .filters-card{background:linear-gradient(155deg,#1c211e,#1d1f1b)}
html[data-theme="dark"] .cuisine-section{background:linear-gradient(180deg,#211f1b,#1d1f1b)}
html[data-theme="dark"] .recipe-card{background:#20221e;border-color:rgba(255,255,255,.09);box-shadow:0 1px 2px rgba(0,0,0,.20),0 18px 40px rgba(0,0,0,.24)}
html[data-theme="dark"] .input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] input[type="search"]{background:#292b25;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)}
html[data-theme="dark"] .chip{background:#292b25;box-shadow:inset 0 0 0 1px rgba(255,255,255,.045)}
html[data-theme="dark"] .cuisine-browser .cuisine-palette{background:#181a17;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .nav{background:rgba(31,33,29,.94);border-color:rgba(255,255,255,.09);box-shadow:0 20px 58px rgba(0,0,0,.42)}
html[data-theme="dark"] .modal{background:#1d1f1b;border-color:rgba(255,255,255,.09)}
html[data-theme="dark"] .appearance-card{background:linear-gradient(145deg,#20231e,#1b1d1a)}
html[data-theme="dark"] .theme-choice{background:#272923;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .theme-choice.active{background:#20221e;border-color:rgba(240,113,89,.48);box-shadow:0 0 0 3px rgba(240,113,89,.10)}

/* Light mode remains warm, editorial, and visibly layered even when the device itself is dark. */
html[data-theme="light"]{
  --canvas:#f7f4ef;--surface:#ffffff;--surface-soft:#f1eee8;--surface-tint:#fff6f1;
  --paper:var(--surface);--cream:var(--canvas);--ink:#20211f;--muted:#6f726c;
  --line:rgba(32,33,31,.10);--line-strong:rgba(32,33,31,.16);
  --primary:#20211f;--primary-ink:#ffffff;
  --coral:#df5b43;--coral-strong:#c94731;--coral-soft:#fbe3dc;
  --saffron:#eab54a;--saffron-soft:#fff0c9;--teal:#2b806f;--teal-soft:#e2f1ed;
}
html[data-theme="light"] body{background:radial-gradient(circle at 8% -5%,rgba(223,91,67,.08),transparent 28rem),radial-gradient(circle at 96% 16%,rgba(119,101,168,.07),transparent 30rem),var(--canvas)}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.86);border-color:rgba(32,33,31,.08);box-shadow:0 8px 30px rgba(32,33,31,.07)}
html[data-theme="light"] .brand-mark{background:#20211f;color:#ff7a62}html[data-theme="light"] .tagline{color:#7b7d78}html[data-theme="light"] .icon-btn{background:#f3f1ec;color:#4d504b}html[data-theme="light"] .icon-btn:hover{background:#ebe8e1}html[data-theme="light"] .trial-badge{background:#e8f4ef;color:#27685c;border:0}
html[data-theme="light"] .primary-btn{background:#20211f;color:#fff;border-color:#20211f;box-shadow:0 9px 20px rgba(32,33,31,.16)}html[data-theme="light"] .primary-btn:hover{background:#343633}html[data-theme="light"] .secondary-btn{background:#fbe3dc;color:#953c2b}html[data-theme="light"] .ghost-btn{background:rgba(255,255,255,.58);color:#4d504b;border-color:var(--line)}
html[data-theme="light"] .card,html[data-theme="light"] .modal,html[data-theme="light"] .welcome-card{background:#fff;border-color:rgba(32,33,31,.07)}
html[data-theme="light"] .dashboard-card{background:#fff}html[data-theme="light"] .ingredients-card{background:linear-gradient(160deg,#fff,#fff8f4)}html[data-theme="light"] .filters-card{background:linear-gradient(160deg,#fff,#f7faf9)}html[data-theme="light"] .cuisine-section{background:linear-gradient(180deg,#fff,#fdfbf8)}
html[data-theme="light"] .badge{background:#efeee9;color:#555852}html[data-theme="light"] .badge.outline{background:#f5f3ef;color:#666963}html[data-theme="light"] .badge.amber{background:#fff0c9;color:#7a5517}
html[data-theme="light"] .chip{background:#f2f0eb;color:#3f423e}html[data-theme="light"] .chip:hover{background:#eae7e1}html[data-theme="light"] .chip.active{background:#20211f;color:#fff;border-color:#20211f}
html[data-theme="light"] .input,html[data-theme="light"] textarea,html[data-theme="light"] select,html[data-theme="light"] input[type="search"]{background:#f4f2ee;color:#20211f;box-shadow:inset 0 0 0 1px rgba(32,33,31,.05)}html[data-theme="light"] label{color:#4d504b}
html[data-theme="light"] .scan-card,html[data-theme="light"] .file-drop{background:#fff7f3;border-color:rgba(223,91,67,.25)}html[data-theme="light"] .notice{background:#fff3d8;color:#6b4b16;border-color:rgba(216,144,45,.18)}
html[data-theme="light"] .recipe-card{background:#fff;border-color:rgba(32,33,31,.07);box-shadow:0 1px 2px rgba(32,33,31,.03),0 14px 34px rgba(32,33,31,.065)}html[data-theme="light"] .recipe-blurb{color:#656862}html[data-theme="light"] .progress{background:#eeece7}
html[data-theme="light"] .match-pill{background:#e7f3ef;color:#266a5e}html[data-theme="light"] .cuisine-chip.active{background:#20211f;color:#fff;border-color:#20211f}
html[data-theme="light"] .nav{background:rgba(255,255,255,.90);border-color:rgba(32,33,31,.08);box-shadow:var(--shadow-float)}html[data-theme="light"] .nav button{color:#72756f}html[data-theme="light"] .nav button.active{background:#20211f;color:#fff}
html[data-theme="light"] .feedback-fab{background:#c94731;color:#fff}
html[data-theme="light"] .close-x{background:#f3f1ec;color:#545751}html[data-theme="light"] .recipe-info-section,html[data-theme="light"] .cook-step{background:#faf9f6;border-color:rgba(32,33,31,.07)}html[data-theme="light"] .why-panel{background:#eff7f4}html[data-theme="light"] .adaptation-panel{background:#fff7e5}html[data-theme="light"] .safety-panel{background:#fff2e2}html[data-theme="light"] .recipe-match-panel{background:linear-gradient(135deg,#e8f5f0,#fff4de)}html[data-theme="light"] .match-score{color:#236b5e}
html[data-theme="light"] .welcome-card{background:rgba(255,255,255,.90)}html[data-theme="light"] .brand-orb{background:#20211f;color:#ff7a62}html[data-theme="light"] .welcome-title{color:#20211f}html[data-theme="light"] .feature-tile.coral{background:#fce8e2}html[data-theme="light"] .feature-tile.saffron{background:#fff1cf}html[data-theme="light"] .feature-tile.teal{background:#e4f2ee}html[data-theme="light"] .feature-icon{background:rgba(255,255,255,.58);color:#373a36}html[data-theme="light"] .feature-tile small{color:#62655f}
html[data-theme="light"] .beta-access-card{background:linear-gradient(135deg,#e5f3ef,#fff3d6)}html[data-theme="light"] .beta-full-badge,html[data-theme="light"] .plus-badge{background:#20211f;color:#fff}html[data-theme="light"] .launch-plan-card,html[data-theme="light"] .price-card{background:#faf9f6;border-color:rgba(32,33,31,.07)}html[data-theme="light"] .launch-plan-card.plus{background:linear-gradient(145deg,#edf7f3,#fff4dd)}html[data-theme="light"] .toast,html[data-theme="light"] .debug-box{background:#20211f;color:#f5f3ed}

@media(max-width:780px){
  .app-shell{padding-left:14px;padding-right:14px;padding-bottom:calc(154px + env(safe-area-inset-bottom));}
  .topbar{position:relative;top:auto;z-index:5;margin-bottom:14px;}
  .hero{min-height:220px;padding:22px}.hero h2{font-size:clamp(32px,9.4vw,40px);line-height:1.02}.hero p{font-size:14.5px}
  .cuisine-browser .cuisine-palette{max-height:230px;padding:9px}
  .recipe-card{padding:18px}.recipe-card h3{font-size:21px}
  .feedback-fab{right:12px;bottom:calc(84px + env(safe-area-inset-bottom));width:44px;height:44px;min-height:44px}
  .nav{bottom:max(8px,env(safe-area-inset-bottom))}
  .modal{padding-bottom:calc(148px + env(safe-area-inset-bottom))}
  .theme-options{grid-template-columns:1fr}
  .theme-choice{min-height:64px;grid-template-columns:40px 1fr auto}
}
@media(max-width:520px){
  .app-shell{padding-bottom:calc(158px + env(safe-area-inset-bottom))}
  .cuisine-browser .cuisine-palette{max-height:216px}
  .recipe-grid{gap:14px}
  .feedback-fab{bottom:calc(82px + env(safe-area-inset-bottom))}
}


/* v0.4.9 compact cuisine multi-select */
.compact-cuisine-browser{margin-top:12px}
.cuisine-compact-controls{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px;align-items:end}
.cuisine-select-field{min-width:0}
.cuisine-multiselect{position:relative}
.cuisine-multiselect>summary{list-style:none}
.cuisine-multiselect>summary::-webkit-details-marker{display:none}
.cuisine-select-summary{min-height:54px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:0 15px;border-radius:16px;background:var(--surface-soft);color:var(--ink);cursor:pointer;box-shadow:inset 0 0 0 1px var(--line);font-weight:750}
.cuisine-select-summary:focus-visible{outline:3px solid color-mix(in srgb,var(--coral) 30%,transparent);outline-offset:2px}
.cuisine-select-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cuisine-select-count{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--coral-soft);color:var(--coral-strong);font-size:11px;font-weight:900}
.cuisine-select-count:empty{display:none}
.cuisine-chevron{font-size:18px;line-height:1;transition:transform .18s ease;color:var(--muted)}
.cuisine-multiselect[open] .cuisine-chevron{transform:rotate(180deg)}
.cuisine-dropdown-panel{position:absolute;z-index:45;left:0;right:0;top:calc(100% + 8px);padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 24px 60px rgba(32,33,31,.18)}
.cuisine-dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:13px}
.text-btn{border:0;background:transparent;color:var(--coral-strong);font:inherit;font-size:12px;font-weight:800;padding:5px 2px;cursor:pointer}.text-btn:disabled{opacity:.4;cursor:default}
.cuisine-dropdown-panel input[type="search"]{min-height:46px;border-radius:14px;margin:0}
.cuisine-option-list{max-height:276px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scrollbar-width:thin;overscroll-behavior:contain}
.cuisine-option-row{display:grid;grid-template-columns:minmax(0,1fr) 22px 24px;align-items:center;gap:8px;min-height:49px;padding:8px 7px;border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);cursor:pointer}
.cuisine-option-row:last-child{border-bottom:0}.cuisine-option-row:hover{background:color-mix(in srgb,var(--surface-soft) 65%,transparent)}
.cuisine-option-copy{display:grid;gap:1px;min-width:0}.cuisine-option-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cuisine-option-copy small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cuisine-option-row input{position:absolute;opacity:0;pointer-events:none}
.cuisine-checkmark{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;border:1.5px solid var(--line-strong);color:transparent;background:var(--surface-soft)}
.cuisine-option-row:has(input:checked){background:color-mix(in srgb,var(--coral-soft) 38%,var(--surface))}.cuisine-option-row:has(input:checked) .cuisine-checkmark{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}
.cuisine-selected-line{display:flex;align-items:center;gap:7px;min-height:26px;margin:7px 3px 0;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden}.cuisine-selected-line span:last-child{overflow:hidden;text-overflow:ellipsis}.selected-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--teal)}.selected-dot.empty{background:var(--line-strong)}
.compact-cuisine-browser .cuisine-browser-summary{margin:8px 2px 6px}
.compact-cuisine-browser .cuisine-empty{padding:10px 3px 2px}
/* Hide the legacy palette if an older cached fragment survives a hot refresh. */
.compact-cuisine-browser .cuisine-palette{display:none!important}
html[data-theme="dark"] .cuisine-select-summary{background:#292b25;box-shadow:inset 0 0 0 1px rgba(255,255,255,.075)}
html[data-theme="dark"] .cuisine-dropdown-panel{background:#22241f;border-color:rgba(255,255,255,.10);box-shadow:0 28px 68px rgba(0,0,0,.46)}
html[data-theme="dark"] .cuisine-option-row:hover{background:#2a2c26}html[data-theme="dark"] .cuisine-option-row:has(input:checked){background:#312621}
html[data-theme="dark"] .cuisine-checkmark{background:#2d2f29;border-color:rgba(255,255,255,.16)}html[data-theme="dark"] .cuisine-option-row:has(input:checked) .cuisine-checkmark{background:#f3f0e8;border-color:#f3f0e8;color:#1d1e1b}
html[data-theme="light"] .cuisine-select-summary{background:#f4f2ee}html[data-theme="light"] .cuisine-dropdown-panel{background:#fff}html[data-theme="light"] .cuisine-option-row:has(input:checked){background:#fff2ed}
@media(max-width:780px){
  .cuisine-compact-controls{grid-template-columns:1fr;gap:9px}
  .cuisine-section{padding:18px}
  .cuisine-select-summary{min-height:50px;border-radius:15px}
  .cuisine-dropdown-panel{position:relative;top:6px;margin-bottom:8px;box-shadow:0 14px 34px rgba(32,33,31,.12)}
  .cuisine-option-list{max-height:238px}
}
@media(max-width:520px){.cuisine-option-list{max-height:220px}.cuisine-dropdown-panel{padding:10px}.cuisine-option-row{min-height:46px}}


/* CookMigo v0.5.1 — primary brand icon + stronger wordmark */
.brand-mark{overflow:hidden;background:transparent!important;color:inherit!important;box-shadow:none!important}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.brand h1{font-size:24px;line-height:1;font-weight:900}
.brand>div:last-child{min-width:0}
.tagline{line-height:1.15;margin-top:3px}
.brand-orb.brand-orb-icon{overflow:hidden;padding:0;background:transparent!important;box-shadow:none!important}
.brand-orb.brand-orb-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media(max-width:780px){
  .brand h1{font-size:22px;line-height:1}
  .tagline{font-size:10.5px;margin-top:2px}
}
