:root{color-scheme:light;--paper:#f7f5ed;--ink:#24291c;--green:#34452b;--deep:#232c1a;--muted:#5d6453;--line:#d8d8c8;--white:#fffdf6;--gold:#f4ce79;font-family:"DM Sans",system-ui,sans-serif;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--green)}[hidden]{display:none!important}
.wrap{width:min(1120px,calc(100% - 48px));margin:auto}.top{border-bottom:1px solid var(--line);background:#fbf9f1}.mast{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);white-space:nowrap;font:700 23px Georgia,serif}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--gold);background:var(--green);font:20px system-ui}.mast nav{display:flex;gap:8px}.nav{background:transparent;color:var(--muted);border:0;padding:10px 14px;border-radius:7px;font-weight:700}.nav.current{background:#e9eadc;color:var(--deep)}
.hero{margin-top:36px;min-height:360px;border-radius:18px;overflow:hidden;background:linear-gradient(90deg,#202719 4%,#242c1ce8 42%,#252d1b20 77%),url('/hero.webp') center right/cover,radial-gradient(ellipse at right,#727a48,#272e1c 70%);display:flex;align-items:center;color:var(--white);box-shadow:0 15px 35px #24291715}.hero-text{padding:40px 54px;max-width:560px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#627052}.hero .eyebrow{color:#efd099}
h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.04em}h1{font-size:clamp(47px,7vw,83px);line-height:.94;margin:14px 0 17px}h2{font-size:35px;margin-bottom:7px}h3{margin-bottom:7px}p{line-height:1.55;color:var(--muted)}.hero p{color:#eeeadb;margin-bottom:24px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:10px 15px;min-height:42px;border-radius:8px;border:1px solid transparent;text-decoration:none;font-weight:750;font-size:14px;line-height:1.25}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#283723}.hero .primary{background:var(--gold);color:#252a1c}.hero .primary:hover{background:#ffe0a0}.button.outline{border-color:#c9cdbb;background:#ffffff45;color:var(--deep)}.button.outline:hover{background:#eeeee3}.button.danger{color:#903425;background:transparent}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:41px 0 19px}.section-title p{margin:0;font-size:14px}input,select,textarea{border:1px solid #c8cbb9;border-radius:8px;padding:10px 12px;width:100%;min-height:42px;background:#fffdf7;color:var(--ink)}:focus-visible{outline:2px solid #856522;outline-offset:2px}
.recipes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:48px}.card,.empty,.idea{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:22px}.empty{grid-column:1/-1;text-align:center;padding:32px 16px}.empty strong{display:block;font:25px Georgia,serif;margin-bottom:7px}.empty p{margin-bottom:12px}.empty-mark{display:block;color:#66734e;font-size:26px;margin-bottom:9px}.recipe{min-height:169px;display:flex;flex-direction:column;align-items:start;gap:8px;border-top:3px solid #86936c;overflow-wrap:anywhere}.recipe h3{font:25px Georgia,serif;margin:2px 0}.recipe p{font-size:14px;margin:0;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chips{display:flex;flex-wrap:wrap;gap:5px}.chip{background:#eaeedf;border-radius:20px;padding:4px 9px;font-size:12px;font-weight:700;color:#445237}.recipe .actions{margin-top:auto;padding-top:6px}.text-button{background:none;border:0;color:#3c5030;text-decoration:underline;padding:5px 0;font-size:14px;font-weight:700}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:11px}
.planner-head{margin-top:47px}.planner-head h1{font-size:clamp(45px,7vw,74px);line-height:1}.days{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:22px 0 15px}.day{padding:11px 4px;background:#eeeee1;color:var(--deep);border:1px solid var(--line);border-radius:8px;font-weight:750}.day[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.idea{background:#e8eddc}.idea h2{margin-top:7px}.pairings{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:17px}.pairings div{background:#f8faee;border-radius:8px;padding:11px}.pairings strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#526641;margin-bottom:4px}.ai{margin:15px 0 45px}.ai label{margin:12px 0}.ai #ai-answer{white-space:pre-wrap;margin-top:12px}
dialog{border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);width:min(570px,calc(100% - 28px));max-height:calc(100% - 30px);padding:25px;box-shadow:0 20px 80px #151d0f40}dialog::backdrop{background:#1e2918a0}.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:13px}.close{background:none;border:0;color:var(--ink);font-size:28px;padding:0 6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:block;font-size:14px;font-weight:700}label input,label textarea{display:block;margin-top:4px}form label{margin-bottom:11px}textarea{resize:vertical;min-height:61px}hr{border:0;border-top:1px solid var(--line);margin:23px 0}ol{padding-left:24px;line-height:1.55}code{overflow-wrap:anywhere}.upload{position:relative;overflow:hidden}.upload input{opacity:0;position:absolute;inset:0;margin:0;cursor:pointer}.upload:focus-within{outline:2px solid #856522;outline-offset:2px}#candidates{max-height:250px;overflow:auto;margin:10px 0;padding-right:5px}.candidate{display:flex;align-items:start;gap:9px;padding:7px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.candidate input{width:17px;min-height:0;height:17px;flex-shrink:0}.candidate small{display:block;color:var(--muted);font-weight:400}.error{color:#903425;margin:0 0 10px}.error:empty{display:none}#toast{position:fixed;right:20px;bottom:20px;max-width:calc(100% - 40px);color:white;background:var(--deep);padding:12px 17px;border-radius:8px;box-shadow:0 8px 25px #0003}
@media(max-width:750px){.recipes{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-text{padding:30px}.mast{flex-wrap:wrap;gap:8px;padding:10px 0}.mast nav{order:3;width:100%;justify-content:start}.nav{padding:8px 11px}.wrap{width:calc(100% - 30px)}.hero{margin-top:20px;min-height:315px;background-position:center,right center,right center}.section-title{margin-top:30px}}
@media(max-width:490px){.hero{background:linear-gradient(90deg,#202719ed 5%,#2027198a),url('/hero.webp') right center/cover,#323d23}.recipes{grid-template-columns:1fr}.section-title{align-items:start}.section-title h2{font-size:30px}.section-title .button{font-size:12px;padding:8px}.brand{font-size:20px;gap:6px}.brand-mark{width:29px;height:29px}.mast>.button{font-size:12px;padding:7px}.pairings{grid-template-columns:1fr}.hero-text{padding:25px}.days{gap:4px}.day{font-size:12px}}

.folders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:48px}
.folder-group{align-self:start;padding:18px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.folder-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font:24px Georgia,serif;list-style:none;cursor:pointer}
.folder-group-heading::-webkit-details-marker{display:none}
.folder-group[open] > .folder-group-heading{margin-bottom:14px}
.folder-group[open] > .folder-group-heading .folder-chevron{transform:rotate(90deg)}
.folder-group[data-field="shared"]{grid-column:1 / -1}
.folder-group[data-field="shared"] > .actions{margin-bottom:12px}
.folder-list{display:grid;gap:7px;list-style:none;margin:0;padding:0}
.folder-button{display:grid;grid-template-columns:21px minmax(0,1fr) auto 10px;align-items:center;gap:10px;width:100%;min-height:50px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f4f4e9;color:var(--ink);text-align:left}
.folder-button:hover{background:#e8eddc;border-color:#aeb99e}
.folder-icon{position:relative;display:block;width:19px;height:13px;border:1px solid #8a784f;border-radius:2px;background:#e9d39a}
.folder-icon::before{content:"";position:absolute;top:-4px;left:-1px;width:8px;height:4px;border:1px solid #8a784f;border-bottom:0;border-radius:2px 2px 0 0;background:#e9d39a}
.folder-name{font-weight:750;overflow-wrap:anywhere}.folder-count{color:var(--muted);font-size:13px;white-space:nowrap}.folder-chevron{font-size:20px;line-height:1;color:var(--muted)}
.folder-button{list-style:none;cursor:pointer}
.folder-button::-webkit-details-marker{display:none}
.folder[open] > .folder-button .folder-chevron{transform:rotate(90deg)}
.folder-panel{display:grid;gap:9px;padding:9px 0 5px}
.folder-recipes{display:grid;gap:7px}
.folder-recipes .recipe{min-height:0;padding:14px}
@media(max-width:650px){.folders{grid-template-columns:1fr}.folder-group{padding:14px}}

#box-actions{margin-top:16px}#shared-notes p{white-space:pre-wrap;overflow-wrap:anywhere}

.dish-photos{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}
.dish-photos p{font-size:14px;margin:6px 0 10px;overflow-wrap:anywhere}
.dish-photos p:empty{display:none}
.dish-photos label{margin-top:14px}
.dish-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:12px}
.dish-photo{min-width:0;max-width:250px}
.dish-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:var(--line)}
.dish-photo button,.dish-gallery + button{margin-top:7px}
.recipe-main-photo{display:block;width:100%;max-width:420px;max-height:285px;object-fit:cover;border-radius:8px;margin:12px 0}
.recipe-ingredients{padding-left:1.4rem;overflow-wrap:anywhere}
.recipe-ingredients li+li{margin-top:.4em}
#recipe-import-options summary{cursor:pointer;margin-block:12px}
#details-import-status:empty{display:none}
#shared-notes h3{margin-top:1rem}

.chef-reviews {margin:24px 0;padding-bottom:24px;border-bottom:1px solid #d9d1c5}.review-form {display:grid;gap:14px;margin:20px 0}.review-stars {display:flex;flex-wrap:wrap;gap:10px;border:1px solid #d9d1c5;border-radius:10px;padding:12px}.review-stars label {display:flex;align-items:center;gap:4px;cursor:pointer;min-height:44px}.review-stars input {width:auto}.review-stars span {color:#986318;font-size:18px}.chef-review {padding:16px 0;border-top:1px solid #d9d1c5}.review-comment {white-space:pre-wrap;overflow-wrap:anywhere}

.search-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  background: transparent;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: #e9eadc; }
.search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.shelf-search-panel { margin: 12px 0; }
#shelf-search {
  display: block;
  margin-left: auto;
  width: min(100%, 18rem);
  border-radius: 999px;
  font-size: 16px;
}
.shelf-searching > :is(.hero, #box-actions, #recipe-detail-actions) { display: none; }
.shelf-searching > .section-title { margin-top: 15px; }
@media (max-width: 490px) {
  .mast > #bookmarks { display: none; }
}

.shelf-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 28px;
  margin-block: 42px 0;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
}
.shelf-footer h2 {
  margin: 0 0 7px;
  font-size: 23px;
}
.shelf-footer p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.shelf-about {
  flex: 1 1 30rem;
  min-width: 0;
}
.shelf-about p { max-width: 62ch; }
.shelf-about p + p { margin-top: 9px; }
.shelf-support { flex: 0 1 17rem; }
.shelf-support .button { margin-top: 8px; }

/* Keep all three top-level categories in matching bubbles. */
.mast nav { flex-wrap: wrap; }
.nav { border: 1px solid var(--line); border-radius: 999px; background: var(--white); min-height: 44px; }
.nav:hover { background: #eeeee3; }
#about-view { align-items: flex-start; }
#about-view h2 { font-size: 35px; }
#about-view p { font-size: 16px; line-height: 1.6; }

.review-status { padding: 12px; background: #eeeee3; border-radius: 8px; margin: 0; }
.review-success { background: #e8eddc; color: var(--deep); font-weight: 700; }
#review-inbox-list .chef-review strong { display: block; }

/* Reserve system-bar space in the installed app, including Android versions
   that draw edge-to-edge but report a zero safe-area inset. */
.top { padding-top: env(safe-area-inset-top, 0px); }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (display-mode: standalone), (display-mode: fullscreen) {
  .top { padding-top: max(32px, env(safe-area-inset-top, 0px)); }
  body { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 750px) {
  .mast { padding-block: 14px; }
  .brand { white-space: normal; min-width: 0; }
  .mast nav { flex-basis: 100%; }
}

/* Fit narrow screens, large text settings, and landscape cutouts. */
.top, main.wrap { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.mast > * { max-width: 100%; }
.brand-mark { flex-shrink: 0; }
.mast nav { min-width: 0; }
.nav { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 750px) {
  .mast { justify-content: flex-start; }
  .brand { flex: 1 1 12rem; }
  .mast nav { gap: 6px; }
  .nav { flex: 1 1 auto; padding-inline: clamp(8px, 2vw, 14px); }
  #review-notifications { flex-shrink: 0; }
}

/* Food illustrations give each recipe category its own visual cue. */
.folder-button { grid-template-columns: 48px minmax(0,1fr) auto 10px; gap: 12px; min-height: 72px; background: var(--white); padding: 10px 12px; }
.category-food-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eaeedf; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 30px; line-height: 1; }
.folder-button:hover .category-food-icon { background: #dce5ce; }
@media (max-width: 390px) {
  .folder-button { grid-template-columns: 42px minmax(0,1fr) auto 10px; gap: 8px; }
  .category-food-icon { width: 42px; height: 42px; font-size: 27px; }
  .folder-count { white-space: normal; text-align: right; }
}

.category-food-icon.cowboy-taco { position: relative; padding-top: 8px; }
.cowboy-taco::before { content: ""; position: absolute; z-index: 1; top: 2px; left: 50%; transform: translateX(-50%) rotate(-9deg); width: 34px; height: 19px; background: #87552d; clip-path: polygon(0 64%, 15% 70%, 23% 8%, 42% 22%, 58% 22%, 77% 8%, 85% 70%, 100% 64%, 96% 88%, 70% 100%, 30% 100%, 4% 88%); filter: drop-shadow(0 1px 1px #0004); }

.support-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 16px; padding: 14px 18px; border: 1px solid #b7c29e; border-radius: 12px; background: #e9eedf; }
.support-banner p { margin: 0; color: var(--deep); font-size: 16px; font-weight: 650; }
.support-banner p span { display: block; font-size: 14px; font-weight: 400; }
.support-banner .button { min-height: 46px; flex-shrink: 0; }
@media (max-width: 490px) { .support-banner { padding: 14px; } .support-banner .button { width: 100%; } }

.shelf-about p.about-closing { margin-top: 24px; margin-bottom: 24px; }

.creator-photo { float: right; width: 192px; max-width: 42%; margin: 4px 0 16px 20px; }
.creator-photo img { display: block; width: 100%; height: 128px; object-fit: cover; object-position: 55% 55%; border-radius: 12px; }
.creator-photo figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.shelf-about::after { content: ""; display: block; clear: both; }
@media (max-width: 490px) { .creator-photo { width: 144px; margin-left: 14px; } .creator-photo img { height: 108px; } }

.pantry-card { margin-top: 32px; }
.pantry-card h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; }

.install-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; margin-top: 16px; background: #e8eddc; border: 1px solid var(--line); border-radius: 12px; }
.install-banner > div { flex: 1 1 230px; }
.install-banner p { margin: 4px 0 0; font-size: 14px; }

.share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.share-options .button { min-height: 52px; }
#share-menu-status:empty { display: none; }

/* Leave breathing room after the final dinner idea and drink pairings. */
#planner-view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.family-collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 18px 0 30px; }
#family-collections { margin-top: 28px; }
.family-collections summary { font-size: 22px; line-height: 1.3; }
.family-collections .folder-recipes { margin-top: 16px; }
.kitchen-tools { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.serving-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kitchen-tools > label { margin-top: 16px; }
.kitchen-tools > button { margin-top: 12px; }
.shopping-item { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; padding: 12px; background: #eeeee3; border-radius: 8px; font-size: 16px; }
.shopping-item input { width: 22px; min-height: 22px; flex: 0 0 22px; }
.shopping-item small { display: block; font-weight: 400; font-size: 14px; margin-top: 5px; }
.shopping-item:has(input:checked) > span { text-decoration: line-through; opacity: .65; }
#cooking-mode { width: min(760px, calc(100% - 24px)); padding: 24px; }
#cook-step { font-size: clamp(22px, 4vw, 30px); line-height: 1.6; color: var(--ink); }
#cook-progress { margin-top: 24px; font-weight: 700; }
.cook-timer { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.cook-timer input { width: 120px; margin-bottom: 12px; }
#timer-status { font-size: 24px; }

#personal-recipes { margin: 24px 0; }
#personal-recipes h3 { margin-top: 20px; }
.personal-recipe-tools { padding: 16px 0; margin: 12px 0; border-block: 1px solid var(--line); }
.personal-recipe-tools p:empty { display: none; }
.leftover-builder { margin: 24px 0 64px; }
.leftover-builder input, .leftover-builder select { margin: 6px 0 16px; }
#leftover-answer { white-space: pre-wrap; line-height: 1.65; margin-top: 20px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; margin-bottom: 24px; }
.community-photo-card { padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.community-photo-card h3 { font-size: 20px; margin-top: 12px; }
.photo-open { display: block; padding: 0; width: 100%; border: 0; background: transparent; }
.photo-open img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
#community-view { padding-bottom: 96px; }

#favorites-view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.about-support { margin-top: 28px; margin-bottom: 32px; width: 100%; }

.discovery-panel { margin: 24px 0; }
.discovery-panel[open] summary { margin-bottom: 16px; }
.roddo-note { background: #e8eddc; border-left: 4px solid var(--green); border-radius: 8px; padding: 16px; margin: 20px 0; }
.roddo-note p { white-space: pre-wrap; }
#edit-form input[type=checkbox] { width: 22px; min-height: 22px; display: inline-block; vertical-align: middle; }
.kitchen-tools select { display:block; width:100%; margin:4px 0 12px; min-width:0; text-overflow:ellipsis; }
.kitchen-tools .serving-controls input { width:100%; min-width:0; }
@media(max-width:560px) { .kitchen-tools .serving-controls { grid-template-columns:1fr; } }
