:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --ink: #2b2420;
  --muted: #7a6d64;
  --line: #eadfd3;
  --accent: #b5532f;
  --accent-ink: #ffffff;
  --accent-soft: #f7e4da;
  --green: #3f7d4e;
  --green-soft: #e3f0e4;
  --amber: #9a6a10;
  --amber-soft: #fbf0d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
body.modal-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 16px 64px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- Header ---------- */
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand { display: flex; gap: 12px; align-items: center; }
.logo { font-size: 2.2rem; }
.brand h1 { margin: 0; }
.sub { margin: 0; color: var(--muted); font-size: .92rem; }
.steps { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); overflow-x: auto; }
.step { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px 6px 6px; border-radius: 999px; white-space: nowrap; font-size: .9rem; color: var(--muted); }
.step .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: .8rem; font-weight: 600; color: var(--ink); }
.step.done .num { background: var(--green-soft); color: var(--green); }
.step.active { background: var(--accent); color: var(--accent-ink); }
.step.active .num { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- Generic ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.card + .card { margin-top: 16px; }
.banner { background: var(--accent-soft); border: 1px solid #efc9b6; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.actions.end { justify-content: flex-end; }
.actions.spread { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .05s ease, background .15s ease; }
.btn:active:not(:disabled) { transform: translateY(1px); }
a.btn { color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #9e4626; }
.btn.ghost { background: transparent; }
.btn.on { background: var(--green-soft); border-color: #bcd9c1; color: var(--green); }
.btn.small { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.link { border: 0; background: none; padding: 0; color: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--accent); color: var(--accent); }
.x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.x:hover { background: var(--accent-soft); color: var(--accent); }
.emoji { font-size: 1.15em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.empty-state { text-align: center; padding: 40px 20px; }

/* ---------- Cravings ---------- */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 16px 0 24px; }
.chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px; }
.chip .emoji { grid-row: span 2; font-size: 1.6rem; }
.chip span:not(.emoji) { font-weight: 600; }
.chip small { color: var(--muted); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip.on small { color: var(--accent); }
.settings { display: flex; flex-wrap: wrap; gap: 16px 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.stepper { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ctrl button { border: 0; background: var(--bg); width: 38px; height: 38px; font-size: 1.2rem; }
.ctrl output { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: .88rem; margin: 10px 0 0; }

/* ---------- Menu ---------- */
.menu-layout, .list-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cat-block { margin-bottom: 28px; }
.cat-block > h2 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.recipe { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.recipe.picked { border-color: #9cc8a6; }
.recipe-body { padding: 14px 16px 8px; flex: 1; }
.recipe-body h3 { margin: 6px 0; }
.recipe-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.recipe-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.tag.fresh { background: var(--green-soft); border-color: #cfe3d2; color: var(--green); }
.tag.warn { background: var(--amber-soft); border-color: #f0dfb0; color: var(--amber); }
.week-panel { position: sticky; top: 16px; }
.count { font-weight: 600; color: var(--accent); }
.count.ok { color: var(--green); }
.week-list { list-style: none; padding: 0; margin: 0 0 16px; }
.week-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.week-list li:last-child { border-bottom: 0; }
.week-list .link { flex: 1; font-size: .95rem; }
.week-list select { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 3px 4px; font: inherit; font-size: .85rem; font-weight: 600; }
.week-list li { flex-direction: column; align-items: stretch; gap: 4px; }
.row-main { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.week-list .day-mode { align-self: flex-start; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; padding: 2px 4px; border-radius: 6px; max-width: 100%; }
.week-list .day-mode:hover, .week-list .day-mode:focus { border-color: var(--line); background: var(--bg); }
.week-list li.order-out .day-mode { color: var(--amber); }
.out-label { flex: 1; color: var(--amber); font-weight: 600; font-size: .95rem; }
.store-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.store-bar > div:first-child { display: flex; flex-direction: column; }
.store-bar .muted { font-size: .85rem; }
.store-links { display: flex; gap: 6px; flex-wrap: wrap; }
.day { display: inline-block; min-width: 44px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.panel-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Bake ---------- */
.bake-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; background: linear-gradient(120deg, #fff 0%, var(--accent-soft) 100%); }
.hero-emoji { font-size: 3.4rem; }
.bake-hero p:last-child { margin: 0; }

/* ---------- List ---------- */
.list-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list-head p { margin: 0; }
.list-tools { display: flex; gap: 6px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; margin: 14px 0 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transition: width .25s ease; }
.aisle { margin-top: 18px; }
.aisle h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.aisle ul { list-style: none; padding: 0; margin: 0; }
.aisle li { display: flex; align-items: center; border-bottom: 1px solid #f4ede5; }
.aisle li:last-child { border-bottom: 0; }
.aisle label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; flex: 1; cursor: pointer; }
.aisle input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }
.line { display: flex; flex-direction: column; }
.line small { color: var(--muted); font-size: .8rem; }
.aisle li.checked .line > span { text-decoration: line-through; color: var(--muted); }
.add-extra { display: flex; gap: 8px; margin-top: 18px; }
.add-extra input, .email-card input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: var(--bg); }
.pantry-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px dashed #d8c8b8; background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }
.pill small { color: var(--muted); }
.pill.on { border-style: solid; border-color: #9cc8a6; background: var(--green-soft); color: var(--green); }
.email-card form { display: flex; flex-direction: column; gap: 8px; }
.email-card label { font-size: .88rem; }
.status { margin: 12px 0 0; font-size: .9rem; padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.error { background: var(--amber-soft); color: var(--amber); }
.plan { list-style: none; padding: 0; margin: 0 0 14px; }
.plan li { padding: 5px 0; display: flex; gap: 8px; align-items: baseline; }
.bake-line { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 9px !important; }
.list-layout aside { position: sticky; top: 16px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43, 36, 32, .45); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s ease; }
.modal { position: relative; background: var(--surface); border-radius: 18px; max-width: 820px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal .close { position: absolute; top: 14px; right: 14px; font-size: 1.6rem; }
.modal-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 16px; }
.ing { padding-left: 18px; margin: 0; }
.ing li { margin-bottom: 5px; }
.steps-list { padding-left: 20px; margin: 0; }
.steps-list li { margin-bottom: 10px; }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 60; animation: fade .15s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-layout, .list-layout { grid-template-columns: 1fr; }
  .week-panel { position: static; }
  .list-layout aside { position: static; }
  .modal-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 12px 12px 48px; }
  .step .lbl { display: none; }
  .step.active .lbl { display: inline; }
  .steps { width: 100%; justify-content: space-between; }
  .pad { padding: 16px; }
  .modal { padding: 22px 18px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chip { grid-template-columns: 1fr; }
  .chip .emoji { grid-row: auto; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .steps, .no-print, .list-layout aside .panel-actions { display: none !important; }
  .card { box-shadow: none; border: 0; }
  .list-layout { display: block; }
  .list-layout aside { position: static; }
  .aisle { break-inside: avoid; }
}

/* ---------- Drag to rearrange nights ---------- */
.week-list li { padding-left: 4px; padding-right: 4px; border-radius: 8px; transition: background .12s ease; }
.handle, .handle-spacer { flex: 0 0 18px; width: 18px; text-align: center; }
.handle { cursor: grab; touch-action: none; user-select: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 6px 0; border-radius: 4px; }
.handle:hover { color: var(--accent); background: var(--accent-soft); }
.week-list li.dragging { opacity: .35; }
.week-list li.drop-target { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.week-list .day-mode { margin-left: 26px; }
.drag-hint { margin: 0 0 6px; font-size: .82rem; }
.drag-ghost { position: fixed; z-index: 70; pointer-events: none; list-style: none; display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 12px 32px rgba(60, 40, 20, .22); transform: rotate(-1.5deg); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* ---------- Prices & total ---------- */
.aisle li { gap: 8px; }
.price { display: flex; flex-direction: column; align-items: flex-end; min-width: 72px; border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px 6px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price span { font-weight: 600; }
.price small { font-size: .7rem; color: var(--muted); }
.price:hover { border-color: var(--line); background: var(--bg); }
.price.sale span, .price.sale small { color: var(--green); }
.price.mine small { color: var(--accent); }
.price.none span { color: var(--muted); }
.price-input { width: 84px; border: 1px solid var(--accent); border-radius: 8px; padding: 6px 8px; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.sale-note { color: var(--green) !important; }
.sale-note a { color: inherit; }
.aisle li.checked .price span { color: var(--muted); }
.totals { margin-top: 22px; border-top: 2px solid var(--ink); padding-top: 12px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 1.25rem; }
.total-line strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.cart-line { display: flex; justify-content: space-between; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.breakdown .tag { font-size: .8rem; }
.fine { font-size: .8rem; margin: 0; }
@media print { .price { border: 0; } .price small { display: none; } }

/* ---------- Refreshable meal ideas ---------- */
.ideas-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ideas-head p { margin: 0; font-size: .9rem; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.cat-sub { font-size: .8rem; margin: 2px 0 10px; }
.refresh { white-space: nowrap; }
.refresh:hover { color: var(--accent); border-color: var(--accent); }
.grid.refreshed .recipe { animation: idea-in .35s ease both; }
.grid.refreshed .recipe:nth-child(2) { animation-delay: .04s; }
.grid.refreshed .recipe:nth-child(3) { animation-delay: .08s; }
.grid.refreshed .recipe:nth-child(4) { animation-delay: .12s; }
.grid.refreshed .recipe:nth-child(5) { animation-delay: .16s; }
@keyframes idea-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .grid.refreshed .recipe { animation: none; } }

/* ---------- Clear & start over ---------- */
.btn.danger { background: #a63a2a; border-color: #a63a2a; color: #fff; }
.btn.danger:hover { background: #8c2f21; }
.confirm-clear { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px 18px; background: #fdf0ec; border: 1px solid #efc9b6; border-radius: var(--radius); animation: fade .15s ease; }
.confirm-clear p { margin: 4px 0 0; font-size: .9rem; max-width: 52ch; }
.confirm-actions { display: flex; gap: 8px; }
.undo-banner { align-items: center; justify-content: space-between; background: var(--green-soft); border-color: #cfe3d2; color: var(--green); }

/* ---------- Saved recipes ---------- */
.recipe-body { position: relative; }
.recipe-body .tags { padding-right: 34px; }
.heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; font-size: 1.35rem; line-height: 1; color: var(--muted); transition: transform .12s ease, color .12s ease, background .12s ease; }
.heart:hover { background: var(--accent-soft); color: #c2414b; }
.heart.on { color: #c2414b; }
.heart:active { transform: scale(1.25); }
.saved-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.saved-link > span:first-child { color: #c2414b; }
.saved-link.active { background: #c2414b; border-color: #c2414b; color: #fff; }
.saved-link.active > span:first-child { color: #fff; }
.count-pill { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: .8rem; text-align: center; }
.saved-link.active .count-pill { background: rgba(255,255,255,.25); color: #fff; }
.top { flex-wrap: wrap; }
.top .steps { margin-left: auto; }
.saved-head { margin-bottom: 20px; }
.saved-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.saved-title p { margin: 0; }
.saved-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-tools label { cursor: pointer; }
.saved-search { width: 100%; margin: 16px 0 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; background: var(--bg); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .pill { border-style: solid; }
.filter-chips .pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.saved-card .history { font-size: .8rem; color: var(--muted); margin: 8px 0 6px !important; }
.note { width: 100%; resize: vertical; border: 1px dashed #d8c8b8; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .88rem; background: #fffdf8; color: var(--ink); }
.note:focus { border-style: solid; border-color: var(--accent); outline: none; }
.modal-note { background: #fffdf8; border: 1px dashed #d8c8b8; border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.btn.saved-on { background: #fbe9ea; border-color: #efc2c6; color: #c2414b; }
.saved-empty { max-width: 560px; margin: 0 auto; }
.saved-empty .saved-tools { justify-content: center; margin-top: 18px; }
.big-heart { font-size: 3rem; color: #c2414b; line-height: 1; margin-bottom: 8px; }
.no-results { text-align: center; padding: 24px; }
.recipe-book { display: none; }

@media print {
  body.print-book #app > header, body.print-book main > :not(.recipe-book), body.print-book .toast { display: none !important; }
  body.print-book .recipe-book { display: block; }
  .recipe-book h1 { font-size: 22pt; margin-bottom: 2pt; }
  .book-recipe { break-inside: avoid; border-top: 1px solid #ccc; padding-top: 12pt; margin-top: 14pt; }
  .book-recipe h2 { font-size: 15pt; margin: 2pt 0; }
  .book-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18pt; }
  .book-cols ul, .book-cols ol { padding-left: 14pt; margin: 0; }
  .book-cols li { margin-bottom: 3pt; }
  .book-note { font-style: italic; }
}
@media (max-width: 560px) {
  .top { gap: 10px; }
  .top .steps { order: 3; margin-left: 0; }
  .saved-link { margin-left: auto; padding: 6px 12px; }
}

/* ---------- Meal type tabs (Dinners step) ---------- */
.type-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; }
.type-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.type-tab:hover { border-color: var(--accent); }
.type-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.type-tab .emoji { font-size: 1.2rem; }
.tab-count { font-size: .75rem; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 1px 8px; }
.type-tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.type-tab.add-type { box-shadow: none; border-style: dashed; color: var(--muted); font-weight: 500; }
.ok-text { color: var(--green); }
.week-jump { display: none; }
@media (max-width: 860px) {
  .week-jump { display: inline-flex; }
  .week-panel { margin-top: 8px; scroll-margin-top: 12px; }
}
.menu-layout > *, .list-layout > * { min-width: 0; } /* let wide rows (tabs) scroll instead of stretching the page */

/* ---------- Cravings → suggestions flow ---------- */
.cravings-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.cravings-head p.muted { margin: 0; }
.pick-progress { margin: 0; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: .9rem; white-space: nowrap; }
.pick-progress.ok { color: var(--green); background: var(--green-soft); }
.chip { transition: border-color .12s ease, transform .05s ease; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: translateY(1px); }
.chip small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip.on { border-color: #9cc8a6; background: var(--green-soft); }
.chip.on small { color: var(--green); font-weight: 600; }
.ideas-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ideas-view .cat-head h2 { font-size: 1.5rem; }

/* ---------- New recipes each week ---------- */
.tag.new { background: #f3ecfb; border-color: #e0d2f3; color: #6b45a8; font-weight: 600; }
.new-ideas-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #f7f2fd; border: 1px solid #e6dbf5; color: #5b3d8f; font-size: .88rem; }
.new-ideas-note .spark { font-size: 1.05rem; }
.new-ideas-note.loading .spark { animation: spark 1s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(1.3) rotate(15deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .new-ideas-note.loading .spark { animation: none; } }
