/* Nourish v0. Midnight Luxe base, Nourish gold accent. */
:root {
  --bg: #080a0f; --surface: #0d1117; --panel: #161b22; --line: #21262d; --line2: #30363d;
  --text: #e6edf3; --muted: #8b949e; --soft: #a8b0ba;
  --gold: #c9a84c; --gold-hi: #e2c46e; --gold-bg: rgba(201,168,76,0.12);
  --ok: #3fb950; --warn: #f0883e; --bad: #f85149; --dinner: #a78bfa;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold); }
.noscript { color: var(--muted); text-align: center; padding: 40px; }

/* splash + sign-in */
.center { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b)); text-align: center; }
.splash-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.wordmark { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.wordmark.big { font-size: 44px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.signin-sub { color: var(--soft); margin: 0 0 6px; max-width: 320px; }
#signin { min-height: 360px; }

/* shell */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.top-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.top-row .crumb { color: var(--muted); }
.spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 4px 6px 4px 4px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2414; color: var(--gold); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.user-chip .name { font-size: 13px; }
.btn { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); cursor: pointer; font-size: 14px; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-height: 44px; padding: 0 14px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-size: 14px; white-space: nowrap; }
.tab.on { color: var(--text); border-bottom-color: var(--gold); }
.tab.right { margin-left: auto; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.05; margin: 0; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; }
.lead { color: var(--soft); margin: 8px 0 0; max-width: 640px; }
.grid { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; align-items: stretch; }
.card { flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.card.gold { background: #12100a; border-color: rgba(201,168,76,0.45); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0d1117; background: var(--ok); margin-top: 1px; }
.check .dot.wait { background: var(--line2); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.releases { display: flex; flex-direction: column; }
.rel { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rel:last-child { border-bottom: none; }
.rel .v { font-family: var(--mono); font-size: 12px; color: var(--gold-hi); min-width: 44px; padding-top: 2px; }
.rel.now .v { color: var(--ok); }
.empty { margin-top: 24px; padding: 36px 24px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--soft); text-align: center; }
.empty h2 { color: var(--text); margin-bottom: 6px; }
.stamp { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 0 0 calc(18px + var(--safe-b)); }

/* phone: tabs move to a bottom bar */
@media (max-width: 700px) {
  html, body { font-size: 16px; }
  .top-row { padding: 10px 16px; }
  .top-row .crumb, .user-chip .name { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding: 0 4px var(--safe-b); justify-content: space-around; }
  .tab { flex: 1; font-size: 12px; min-height: 58px; padding: 0 4px; border-bottom: none; border-top: 3px solid transparent; }
  .tab.on { border-top-color: var(--gold); }
  .tab.right { margin-left: 0; }
  .tab.hide-phone { display: none; }
  main { padding: 18px 16px 100px; }
  h1 { font-size: 36px; }
  .stamp { padding-bottom: calc(80px + var(--safe-b)); }
}

/* ---------- v0.1: people ---------- */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.tbl-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.people { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
table.people th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line2); }
table.people td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people tr:last-child td { border-bottom: none; }
table.people td.r { text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line2); color: #c9d1d9; white-space: nowrap; }
.tag.admin { color: var(--gold-hi); border-color: rgba(201,168,76,0.45); background: var(--gold-bg); }
.tag.family { color: #79c0ff; border-color: rgba(56,139,253,0.45); background: rgba(56,139,253,0.1); }
.btn.danger { color: #ff7b72; border-color: rgba(248,81,73,0.45); background: transparent; }
.note { font-size: 13px; color: var(--soft); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.err { font-size: 14px; color: #ffb4ad; background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.4); border-radius: 10px; padding: 10px 12px; }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; color: var(--muted); }
.inp { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 15px; font-family: inherit; }
.inp:disabled { opacity: 0.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line2); background: transparent; color: #c9d1d9; cursor: pointer; font-size: 14px; }
.chip.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold-hi); }
.acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 700px) { .modal-bg { align-items: flex-end; padding: 0; } .modal { border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(20px + var(--safe-b)); } }

/* ---------- v0.3: search ---------- */
.search { position: relative; flex: 0 1 340px; min-width: 200px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px; font-family: inherit; }
.search-box input::-webkit-search-cancel-button { filter: invert(0.6); }
.sr { position: absolute; top: 44px; left: 0; right: 0; z-index: 30; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); max-height: 70vh; overflow-y: auto; }
.sr-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.sr-row:hover, .sr-row:focus-visible { background: #1d232c; }
.sr-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #1b2129; display: grid; place-items: center; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-empty { padding: 10px; color: var(--muted); font-size: 13px; }

/* ---------- v0.3: cook book ---------- */
.segbar { display: flex; align-items: center; gap: 10px; }
.segs { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg { min-height: 36px; padding: 0 14px; border: none; background: transparent; color: #c9d1d9; cursor: pointer; font-size: 13px; }
.seg.on { background: var(--gold); color: #17130a; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 4px; }
.pill-x { min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid rgba(201,168,76,0.45); background: var(--gold-bg); color: var(--gold-hi); cursor: pointer; font-size: 13px; }
.linkbtn { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.filters-btn { display: none; margin-left: auto; }
.cb-body { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; }
.filters { flex: 0 0 210px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 4px; }
.fgroup { display: flex; flex-direction: column; gap: 2px; }
.fgroup-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.fopt { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #c9d1d9; cursor: pointer; font-size: 13px; text-align: left; }
.fopt:hover { background: #12171e; }
.fopt.on { border-color: rgba(201,168,76,0.5); background: var(--gold-bg); color: var(--gold-hi); }
.fopt .muted { font-size: 11px; }
.cb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cat { display: flex; flex-direction: column; gap: 14px; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-title { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.rule { flex: 1; height: 1px; background: var(--line); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.rcard:hover { border-color: #3a4350; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .rcard, .rcard:hover { transition: none; transform: none; } }
.rcard-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #161b22; }
.rcard-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { display: grid; place-items: center; font-size: 40px; background: repeating-conic-gradient(#1b2129 0% 25%, #13181f 0% 50%) 50% / 20px 20px; }
.rcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.rcard-title { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.1; }
.rcard-meta { font-size: 13px; color: var(--soft); }
.rcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.nextstep { font-size: 12px; color: #c9c2ad; background: rgba(201,168,76,0.07); border-radius: 6px; padding: 6px 9px; margin-top: 4px; }
.ins { font-size: 11px; padding: 2px 9px; border-radius: 10px; border: 1px solid; white-space: nowrap; }
.ins.vlow { color: #5eead4; border-color: rgba(45,212,191,0.45); background: rgba(45,212,191,0.1); }
.ins.low { color: #56d364; border-color: rgba(63,185,80,0.45); background: rgba(63,185,80,0.1); }
.ins.mod { color: #f0a35e; border-color: rgba(240,136,62,0.45); background: rgba(240,136,62,0.1); }
.ins.high { color: #ff7b72; border-color: rgba(248,81,73,0.45); background: rgba(248,81,73,0.1); }
.ins.on-photo { position: absolute; left: 10px; top: 10px; background: rgba(8,10,15,0.8); }
.frz { position: absolute; right: 10px; top: 10px; font-size: 11px; padding: 2px 9px; border-radius: 10px; color: #ddd6fe; background: rgba(30,20,60,0.8); border: 1px solid rgba(167,139,250,0.5); }
.frz.inline, .testtag.inline { position: static; }
.testtag { position: absolute; right: 10px; bottom: 10px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; color: #f0bd5e; background: rgba(20,14,4,0.85); border: 1px solid rgba(227,163,59,0.6); }
.work { font-size: 11px; padding: 2px 9px; border-radius: 10px; border: 1px solid; }
.work.rfc { color: #e3a33b; border-color: rgba(227,163,59,0.45); background: rgba(227,163,59,0.1); }
.work.rft { color: #79c0ff; border-color: rgba(56,139,253,0.45); background: rgba(56,139,253,0.1); }
.stars-txt { color: var(--gold-hi); font-size: 13px; letter-spacing: 1px; }
.stars-txt span { color: var(--soft); letter-spacing: 0; margin-left: 4px; }
.hero { position: relative; display: block; height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hero-img, .rec-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,15,0.94) 0%, rgba(8,10,15,0.72) 38%, rgba(8,10,15,0.05) 70%); }
.hero-text { position: absolute; left: 32px; top: 0; bottom: 0; max-width: 460px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hero-eyebrow { font-size: 13px; color: var(--gold); }
.hero-title { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; }
.hero-meta { color: #c9d1d9; }
.hero-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.amber-eyebrow { color: #e3a33b; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rgrid.tk .rcard { border-left: 3px solid #e3a33b; }

/* ---------- v0.3: recipe page ---------- */
.rec { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.rec-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rec-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn.on { border-color: rgba(63,185,80,0.5); color: #7ee28f; background: rgba(63,185,80,0.1); }
.rec-hero { position: relative; min-height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #161b22; display: flex; align-items: flex-end; }
.rec-hero .no-photo { position: absolute; inset: 0; font-size: 80px; }
.rec-hero-text { position: relative; padding: 28px; max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.rec-hero-text h1 { font-size: 50px; line-height: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 10px; border: 1px solid; }
.tag.cat { color: var(--gold-hi); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.14); }
.tag.cui, .tag.suit { color: #79c0ff; border-color: rgba(56,139,253,0.4); background: rgba(56,139,253,0.12); }
.star-row { display: flex; align-items: center; gap: 2px; }
.star { position: relative; width: 34px; height: 34px; padding: 0; border: none; background: transparent; cursor: pointer; font-size: 26px; line-height: 34px; color: #3a414b; }
.star span { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--gold); white-space: nowrap; }
.star-row .muted { margin-left: 10px; }
.rec-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.yields { display: flex; gap: 6px; align-items: center; }
.yields .muted { margin-right: 4px; }
.yb { width: 40px; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: #c9d1d9; cursor: pointer; font-size: 14px; }
.yb.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold-hi); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.panel h2 { font-size: 26px; margin: 0 0 10px; }
.topbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.nuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.nut { display: flex; flex-direction: column; padding: 10px; background: var(--panel); border-radius: 10px; }
.nut-v { font-family: var(--mono); font-size: 22px; }
.nut-k { font-size: 11px; color: var(--muted); }
.info { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-v { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; text-align: right; align-items: center; }
.rec-cols { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(320px, 3fr); gap: 16px; align-items: start; }
.rec-steps { display: flex; flex-direction: column; gap: 16px; }
.ing { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ing-head { font-size: 12px; font-weight: 600; color: var(--gold); padding: 14px 0 4px; letter-spacing: 0.02em; }
.ing-head:first-of-type { padding-top: 0; }
.ing-or { font-size: 12px; color: var(--muted); font-style: italic; padding: 4px 0; }
ol.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
ol.steps li { padding-left: 4px; line-height: 1.5; }
.pff-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 40px; background: none; border: none; color: var(--text); cursor: pointer; font-size: 15px; font-weight: 600; padding: 0; }
.pff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.pff-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--panel); border-radius: 10px; }
.short .short-ing { columns: 2 260px; column-gap: 28px; }
.short .ing { break-inside: avoid; font-size: 14px; padding: 4px 0; }
.short-sec { margin-top: 14px; font-size: 14px; }
.short-sec ol { margin: 6px 0 0; padding-left: 20px; }
.print-only, .short-for-print { display: none; }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; background: #2a1414; border: 1px solid rgba(248,81,73,0.5); color: #ffd4d0; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 60; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .rec-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .search { order: 5; flex: 1 1 100%; }
  .filters-btn { display: inline-flex; align-items: center; }
  .cb-body { display: block; }
  .filters { display: none; position: static; max-height: none; margin-bottom: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .filters.open { display: flex; }
  .rgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .rcard-title { font-size: 19px; }
  .rcard-body { padding: 10px 12px 12px; }
  .hero { height: 260px; }
  .hero-text { left: 18px; right: 18px; }
  .hero-title { font-size: 36px; }
  .rec-hero { min-height: 260px; }
  .rec-hero-text { padding: 18px; }
  .rec-hero-text h1 { font-size: 36px; }
  .segbar { width: 100%; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .top, .tabs, .stamp, .rec-actions, .rec-controls, .rec-hero, .topbox, .long, #toast, .search { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .short-for-print, .print-only { display: block !important; }
  .panel { background: #fff !important; border: none !important; padding: 0 !important; color: #000 !important; }
  .panel h2 { color: #000; font-size: 22pt; }
  .ing, .short .ing { border-color: #ddd !important; color: #000 !important; font-size: 11pt; }
  .ing-head { color: #7a5c12 !important; }
  .short-sec, .short-sec li { color: #000 !important; font-size: 11pt; }
}
@media (max-width: 700px) {
  .top-row { flex-wrap: wrap; row-gap: 8px; }
  .search { min-width: 0; }
}
